/* ========================================
   ENHANCED CART SYSTEM STYLES
   ======================================== */
/* Cart Item Options Styling */
.cart-item-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0;
}

.cart-item-option {
    display: inline-block;
    padding: 4px 10px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.cart-item-option strong {
    color: #2c2c2c;
    font-weight: 600;
    margin-right: 4px;
}

/* Adjust cart item layout for better spacing */
.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 600;
    color: #c9a96e;
    margin: 4px 0;
}
/* Product Side Menu */
/* Size Selection Styles */
.size-selection {
    margin: 20px 0;
}

.size-selection h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c2c2c;
}

.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    min-width: 80px;
}

.size-option:hover {
    border-color: #c9a96e;
    transform: translateY(-2px);
}

.size-option.selected {
    border-color: #c9a96e;
    background: #faf8f5;
}

.size-label {
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c;
}

.size-price {
    font-size: 12px;
    color: #c9a96e;
    font-weight: 500;
}

.product-side-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-side-menu.active {
    pointer-events: all;
    opacity: 1;
}

.side-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.side-menu-content {
    position: absolute;
    top: 0;
    right: -500px;
    width: 500px;
    max-width: 90vw;
    height: 100%;
    background: white;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-side-menu.active .side-menu-content {
    right: 0;
}

.side-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 36px;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.side-menu-close:hover {
    background: #F5F5F5;
    color: #2D2D2D;
}

/* Side Menu Product */
.side-menu-product {
    padding: 80px 30px 30px;
}

.side-menu-image {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    background: #F5F5F5;
    margin-bottom: 24px;
}

.side-menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-menu-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 500;
    color: #2D2D2D;
    margin-bottom: 12px;
    line-height: 1.3;
}

.side-menu-price {
    font-size: 24px;
    font-weight: 600;
    color: #C89B7B;
    margin-bottom: 16px;
}

.side-menu-description {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Color Selection */
.color-selection {
    margin-bottom: 32px;
}

.color-selection h4 {
    font-size: 16px;
    font-weight: 500;
    color: #2D2D2D;
    margin-bottom: 16px;
}

.color-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.color-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 2px solid #E8E8E8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-option:hover {
    border-color: #C89B7B;
}

.color-option.selected {
    border-color: #C89B7B;
    background: #FFF9F5;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #E8E8E8;
    flex-shrink: 0;
}

.color-name {
    font-size: 14px;
    font-weight: 500;
    color: #2D2D2D;
}

/* Quantity Selection */
.quantity-selection {
    margin-bottom: 32px;
}

.quantity-selection h4 {
    font-size: 16px;
    font-weight: 500;
    color: #2D2D2D;
    margin-bottom: 16px;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.qty-controls .qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #E8E8E8;
    background: white;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 600;
    color: #2D2D2D;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qty-controls .qty-btn:hover {
    border-color: #C89B7B;
    background: #FFF9F5;
}

.qty-display {
    font-size: 20px;
    font-weight: 600;
    color: #2D2D2D;
    min-width: 40px;
    text-align: center;
}

/* Add to Cart Final Button */
.add-to-cart-final-btn {
    width: 100%;
    padding: 18px;
    background: #2D2D2D;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-final-btn:hover {
    background: #C89B7B;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.add-to-cart-final-btn:active {
    transform: translateY(0);
}

/* Confirmation Banner */
.confirmation-banner {
    position: fixed;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 24px 32px;
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 600px;
    width: 90%;
}

.confirmation-banner.show {
    bottom: 32px;
}

.confirmation-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.confirmation-icon {
    width: 48px;
    height: 48px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.confirmation-text {
    flex: 1;
}

.confirmation-text strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #2D2D2D;
    margin-bottom: 4px;
}

.confirmation-text p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.goto-checkout-btn {
    padding: 12px 24px;
    background: #C89B7B;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.goto-checkout-btn:hover {
    background: #B8856B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Cart Item Color Display */
.cart-item-color {
    font-size: 13px;
    color: #999;
    margin-bottom: 6px;
}

/* Responsive */
@media (max-width: 640px) {
    .side-menu-content {
        width: 100%;
        max-width: 100%;
    }
    
    .side-menu-product {
        padding: 70px 20px 20px;
    }
    
    .side-menu-image {
        height: 280px;
    }
    
    .side-menu-title {
        font-size: 24px;
    }
    
    .side-menu-price {
        font-size: 20px;
    }
    
    .confirmation-banner {
        width: 95%;
        padding: 20px;
    }
    
    .confirmation-content {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .goto-checkout-btn {
        width: 100%;
    }
}

/* Scrollbar for Side Menu */
.side-menu-content::-webkit-scrollbar {
    width: 8px;
}

.side-menu-content::-webkit-scrollbar-track {
    background: #F5F5F5;
}

.side-menu-content::-webkit-scrollbar-thumb {
    background: #D4D4D4;
    border-radius: 4px;
}

.side-menu-content::-webkit-scrollbar-thumb:hover {
    background: #C89B7B;
}