/* Discounted Price Styling */
.strike {
    text-decoration: line-through;
    color: #c9c9c9;
    font-size: 0.95em;
    margin-right: 6px;
    opacity: 0.7;
}
.discounted {
    color: #E6C383;
    font-weight: 600;
    font-size: 1.08em;
    letter-spacing: 0.5px;
}

/* Discount badge for 10% off */
.discount-badge {
    display: inline-block;
    background: linear-gradient(90deg, #E6C383 60%, #c7a12f 100%);
    color: #141416;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    padding: 2px 8px;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 1px 4px rgba(230,195,131,0.08);
    letter-spacing: 0.5px;
}
/* Shopping Cart Styles - Luxury Design */

/* Cart Button in Header */
.cart-button {
    position: relative;
    background: none;
    border: none;
    color: #E6C383;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease;
    margin-left: auto;
}

.cart-button:hover {
    color: #f3f3f3;
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #E6C383;
    color: #0d0d0f;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Cart Panel (Slide-out from right) */
.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
}

.cart-panel.active {
    pointer-events: all;
}

.cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-panel.active .cart-overlay {
    opacity: 1;
}

.cart-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: #141416;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(230, 195, 131, 0.1);
}

.cart-panel.active .cart-content {
    transform: translateX(0);
}

/* Cart Header */
.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid rgba(230, 195, 131, 0.1);
}

.cart-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: #E6C383;
    margin: 0;
}

.close-cart {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.close-cart:hover {
    color: #f3f3f3;
    transform: rotate(90deg);
}

/* Cart Items Container */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.cart-items::-webkit-scrollbar {
    width: 8px;
}

.cart-items::-webkit-scrollbar-track {
    background: rgba(230, 195, 131, 0.05);
}

.cart-items::-webkit-scrollbar-thumb {
    background: rgba(230, 195, 131, 0.2);
    border-radius: 4px;
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background: rgba(230, 195, 131, 0.3);
}

/* Empty Cart */
.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    text-align: center;
}

.empty-cart svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-cart p {
    font-size: 18px;
    margin: 8px 0;
    color: #f3f3f3;
}

.empty-cart small {
    font-size: 14px;
    color: #999;
}

/* Cart Item */
.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(230, 195, 131, 0.03);
    border: 1px solid rgba(230, 195, 131, 0.1);
    border-radius: 8px;
    margin-bottom: 12px;
    position: relative;
    transition: background 0.2s ease;
}

.cart-item:hover {
    background: rgba(230, 195, 131, 0.05);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(230, 195, 131, 0.2);
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-details h3 {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 500;
    color: #f3f3f3;
    margin: 0;
    line-height: 1.3;
}

.cart-item-price {
    font-size: 15px;
    font-weight: 500;
    color: #E6C383;
    margin: 0;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(230, 195, 131, 0.3);
    background: rgba(230, 195, 131, 0.05);
    color: #E6C383;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.qty-btn:hover {
    background: rgba(230, 195, 131, 0.1);
    border-color: #E6C383;
}

.quantity {
    font-size: 14px;
    font-weight: 500;
    color: #f3f3f3;
    min-width: 24px;
    text-align: center;
}

.remove-item {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.remove-item:hover {
    color: #ff6b6b;
}

/* Cart Footer */
.cart-footer {
    padding: 24px;
    border-top: 1px solid rgba(230, 195, 131, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.cart-summary {
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 15px;
    color: #f3f3f3;
}

.summary-row span:first-child {
    color: #999;
}

.summary-row span:last-child {
    font-weight: 500;
}

.shipping-info {
    padding: 8px 0;
    border-top: 1px dashed rgba(230, 195, 131, 0.1);
    border-bottom: 1px dashed rgba(230, 195, 131, 0.1);
    margin: 8px 0;
}

.shipping-info small {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

.summary-total {
    font-size: 18px;
    font-weight: 600;
    color: #E6C383;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid rgba(230, 195, 131, 0.2);
}

.summary-total span {
    color: #E6C383;
}

/* Checkout Button */
.checkout-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #E6C383, #d4a960);
    color: #0d0d0f;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.checkout-button:hover {
    background: linear-gradient(135deg, #f0d399, #E6C383);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 195, 131, 0.3);
}

.checkout-button:active {
    transform: translateY(0);
}

/* Add to Cart Button (for product pages) */
.add-to-cart-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, #E6C383, #d4a960);
    color: #0d0d0f;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    margin-bottom: 12px;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #f0d399, #E6C383);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 195, 131, 0.3);
}

.add-to-cart-btn svg {
    width: 20px;
    height: 20px;
}

/* Cart Added Notification */
.cart-notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1c;
    border: 1px solid #E6C383;
    color: #f3f3f3;
    padding: 16px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    transition: bottom 0.3s ease;
}

.cart-notification.show {
    bottom: 32px;
}

.cart-notification svg {
    color: #4caf50;
    flex-shrink: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cart-content {
        max-width: 100%;
    }

    .cart-header h2 {
        font-size: 20px;
    }

    .cart-item {
        padding: 12px;
    }

    .cart-item-image {
        width: 70px;
        height: 70px;
    }

    .cart-item-details h3 {
        font-size: 14px;
    }

    .cart-footer {
        padding: 20px 16px;
    }

    .summary-total {
        font-size: 16px;
    }
}

/* Quick Add Button (on product cards in category grids) */
.quick-add-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 10px 16px;
    background: rgba(230, 195, 131, 0.95);
    backdrop-filter: blur(8px);
    color: #0d0d0f;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-item:hover .quick-add-btn {
    opacity: 1;
    transform: translateY(0);
}

.quick-add-btn:hover {
    background: #E6C383;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 195, 131, 0.4);
}

.quick-add-btn:active {
    transform: translateY(0);
}

.quick-add-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Make product-image position relative for absolute positioning of quick-add button */
.product-image {
    position: relative;
}

/* Product color chips */
.product-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

.detail-info .product-colors {
    margin-top: 12px;
    margin-bottom: 18px;
}

.color-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 30px;
    border-radius: 999px;
    border: 1px solid rgba(230, 195, 131, 0.25);
    background: rgba(230, 195, 131, 0.06);
    color: #f3f3f3;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.color-chip::before {
    content: '';
    position: absolute;
    left: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--chip-color, #E6C383);
    box-shadow: 0 0 0 1px rgba(230, 195, 131, 0.35), 0 0 10px rgba(230, 195, 131, 0.25);
}

.color-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(230, 195, 131, 0.5);
    background: rgba(230, 195, 131, 0.12);
}

.color-chip[style*="--chip-color:"]::before {
    background: var(--chip-color);
}

/* Mobile: Show Quick Add button always (not just on hover) */
@media (max-width: 768px) {
    .quick-add-btn {
        opacity: 1;
        transform: translateY(0);
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .quick-add-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Out of Stock Styles */
.out-of-stock-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(220, 53, 69, 0.95);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.product-item.out-of-stock .product-image img {
    opacity: 0.6;
    filter: grayscale(30%);
}

.quick-add-btn.disabled,
.quick-add-btn:disabled {
    background: rgba(100, 100, 100, 0.8);
    cursor: not-allowed;
    opacity: 1;
}

.quick-add-btn.disabled:hover,
.quick-add-btn:disabled:hover {
    background: rgba(100, 100, 100, 0.8);
    transform: none;
    box-shadow: none;
}

.add-to-cart-btn.disabled,
.add-to-cart-btn:disabled {
    background: linear-gradient(135deg, #666, #555);
    cursor: not-allowed;
    opacity: 0.8;
}

.add-to-cart-btn.disabled:hover,
.add-to-cart-btn:disabled:hover {
    background: linear-gradient(135deg, #666, #555);
    transform: none;
    box-shadow: none;
}

/* Selectable Color Options in Product Detail */
.detail-info .product-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.color-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(230, 195, 131, 0.05);
    border: 1px solid rgba(230, 195, 131, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 13px;
}

.color-option:hover:not(.out-of-stock) {
    background: rgba(230, 195, 131, 0.1);
    border-color: rgba(230, 195, 131, 0.4);
}

.color-option.selected {
    background: rgba(230, 195, 131, 0.15);
    border-color: #E6C383;
    box-shadow: 0 0 0 2px rgba(230, 195, 131, 0.2);
}

.color-option.out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}

.color-option .color-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--chip-color, #666);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.color-option .color-name {
    color: #f3f3f3;
    font-weight: 500;
}

.color-option.selected .color-name {
    color: #E6C383;
}

/* Cart Item Color Display */
.cart-item-color {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.cart-item-color strong {
    color: #E6C383;
    font-weight: 500;
}
