/* Cart Sidebar Styling - Enhanced Theme Matching */

/* Empty cart message styling */
.cart-empty-message {
    color: #2c3e50 !important;
    background: linear-gradient(135deg, rgba(240, 235, 228, 0.95), rgba(235, 228, 218, 0.9)) !important;
    border: 1px solid rgba(139, 69, 19, 0.2);
    border-radius: 12px !important;
    margin: 15px !important;
    padding: 25px 15px !important;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.1);
    text-align: center !important;
}

.cart-empty-message i {
    color: #8B4513 !important;
    opacity: 0.8;
    margin-bottom: 15px !important;
}

.cart-empty-message p {
    color: #2c3e50 !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    margin-bottom: 20px !important;
    line-height: 1.4;
}

.cart-empty-message .btn {
    background: linear-gradient(135deg, #6B2C3E, #4A1F2B) !important;
    border: none !important;
    color: white !important;
    font-weight: 500 !important;
    padding: 8px 20px !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
}

.cart-empty-message .btn:hover {
    background: linear-gradient(135deg, #4A1F2B, #3a1621) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 44, 62, 0.3);
}

/* Error message styling */
.cart-error-message {
    color: #e74c3c !important;
    background: linear-gradient(135deg, rgba(255, 245, 245, 0.95), rgba(254, 240, 240, 0.9)) !important;
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 12px !important;
    margin: 15px !important;
    padding: 25px 15px !important;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1);
    text-align: center !important;
}

.cart-error-message i {
    color: #e74c3c !important;
    margin-bottom: 15px !important;
}

.cart-error-message p {
    color: #2c3e50 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    margin-bottom: 0 !important;
    line-height: 1.4;
}

/* Loading message styling with Oak Fusion theme */
.cart-loading-message {
    color: #F4E4BC !important;
    background: linear-gradient(135deg, rgba(107, 44, 62, 0.3), rgba(74, 31, 43, 0.3)) !important;
    border: 1px solid rgba(244, 228, 188, 0.3);
    border-radius: 12px !important;
    margin: 15px !important;
    padding: 20px 15px !important;
    text-align: center !important;
}

.cart-loading-message i {
    color: #F4E4BC !important;
    margin-right: 10px !important;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dark theme overrides */
@media (prefers-color-scheme: dark) {
    .cart-empty-message {
        color: #ecf0f1 !important;
        background: linear-gradient(135deg, rgba(44, 62, 80, 0.95), rgba(52, 73, 94, 0.9)) !important;
        border-color: rgba(149, 165, 166, 0.3);
    }
    
    .cart-empty-message p {
        color: #ecf0f1 !important;
    }
    
    .cart-error-message {
        background: linear-gradient(135deg, rgba(44, 62, 80, 0.95), rgba(52, 73, 94, 0.9)) !important;
        border-color: rgba(231, 76, 60, 0.3);
    }
    
    .cart-error-message p {
        color: #ecf0f1 !important;
    }
    
    .cart-loading-message {
        background: linear-gradient(135deg, rgba(44, 62, 80, 0.95), rgba(52, 73, 94, 0.9)) !important;
        border-color: rgba(52, 152, 219, 0.3);
    }
}

/* Enhanced cart sidebar visibility with Oak Fusion theme */
#cart-sidebar {
    backdrop-filter: blur(10px) !important;
}

/* Cart sidebar content background */
.cart-sidebar-content {
    background: linear-gradient(135deg, #6B2C3E 0%, #4A1F2B 100%) !important;
    color: white !important;
}

/* Cart sidebar header */
.cart-sidebar-header {
    background: linear-gradient(135deg, #4A1F2B 0%, #3a1621 100%) !important;
    color: white !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
}

.cart-sidebar-header h5,
.cart-sidebar-header .h5 {
    color: white !important;
}

/* Cart item styling */
.cart-sidebar-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.cart-sidebar-item-name {
    color: white !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cart-sidebar-item-details {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.85rem;
}

.cart-sidebar-item-price {
    color: #F4E4BC !important;
    font-weight: 700 !important;
    background: rgba(244, 228, 188, 0.2) !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(244, 228, 188, 0.3) !important;
}

/* Quantity controls styling */
.cart-sidebar-qty-controls {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.cart-sidebar-qty-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    transition: all 0.2s ease !important;
}

.cart-sidebar-qty-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.1);
}

.cart-sidebar-qty {
    color: white !important;
    font-weight: 600 !important;
    min-width: 30px !important;
    text-align: center !important;
}

/* Remove button styling */
.cart-sidebar-remove {
    background: rgba(220, 53, 69, 0.8) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 6px 8px !important;
    transition: all 0.2s ease !important;
}

.cart-sidebar-remove:hover {
    background: rgba(220, 53, 69, 1) !important;
    transform: scale(1.05);
}

/* Cart footer styling */
.cart-sidebar-footer {
    background: linear-gradient(135deg, #4A1F2B 0%, #3a1621 100%) !important;
    border-top: 2px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    padding: 20px 15px !important;
}

/* View Full Cart button styling */
.cart-sidebar-footer .btn-primary,
.cart-sidebar-footer .btn,
.cart-sidebar-footer a[href*="cart"] {
    background: linear-gradient(135deg, #F4E4BC 0%, #D4B77A 100%) !important;
    border: 2px solid #F4E4BC !important;
    color: #4A1F2B !important;
    font-weight: 700 !important;
    padding: 12px 25px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-block !important;
    width: 100% !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(244, 228, 188, 0.3) !important;
}

.cart-sidebar-footer .btn-primary:hover,
.cart-sidebar-footer .btn:hover,
.cart-sidebar-footer a[href*="cart"]:hover {
    background: linear-gradient(135deg, #D4B77A 0%, #B8955A 100%) !important;
    color: #3a1621 !important;
    border-color: #D4B77A !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(244, 228, 188, 0.4) !important;
}

.cart-sidebar-footer .btn-primary:active,
.cart-sidebar-footer .btn:active,
.cart-sidebar-footer a[href*="cart"]:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(244, 228, 188, 0.3) !important;
}

/* Cart total styling */
#cart-total,
.cart-total {
    color: #F4E4BC !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Badge styling */
.cart-sidebar .badge {
    color: white !important;
    font-weight: 500 !important;
}

.cart-sidebar .bg-danger {
    background: rgba(220, 53, 69, 0.9) !important;
}

.cart-sidebar .bg-success {
    background: rgba(40, 167, 69, 0.9) !important;
}

/* Additional cart button styling for comprehensive coverage */
.cart-sidebar .btn-success,
.cart-sidebar .btn-outline-primary,
.cart-sidebar button[type="submit"],
.cart-sidebar .checkout-btn,
.cart-sidebar .view-cart-btn,
.cart-sidebar .continue-shopping-btn {
    background: linear-gradient(135deg, #F4E4BC 0%, #D4B77A 100%) !important;
    border: 2px solid #F4E4BC !important;
    color: #4A1F2B !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.cart-sidebar .btn-success:hover,
.cart-sidebar .btn-outline-primary:hover,
.cart-sidebar button[type="submit"]:hover,
.cart-sidebar .checkout-btn:hover,
.cart-sidebar .view-cart-btn:hover,
.cart-sidebar .continue-shopping-btn:hover {
    background: linear-gradient(135deg, #D4B77A 0%, #B8955A 100%) !important;
    color: #3a1621 !important;
    border-color: #D4B77A !important;
    transform: translateY(-1px) !important;
}

/* Close button styling */
.cart-sidebar .close-cart-sidebar,
.cart-sidebar .btn-close,
.cart-sidebar .close {
    color: rgba(255, 255, 255, 0.8) !important;
    background: none !important;
    border: none !important;
    font-size: 1.5rem !important;
    opacity: 0.8 !important;
    transition: all 0.2s ease !important;
}

.cart-sidebar .close-cart-sidebar:hover,
.cart-sidebar .btn-close:hover,
.cart-sidebar .close:hover {
    color: white !important;
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

/* Dark theme overrides - maintain Oak Fusion colors */
@media (prefers-color-scheme: dark) {
    .cart-sidebar-content {
        background: linear-gradient(135deg, #6B2C3E 0%, #4A1F2B 100%) !important;
    }
    
    .cart-empty-message {
        background: linear-gradient(135deg, rgba(107, 44, 62, 0.2), rgba(74, 31, 43, 0.2)) !important;
        border-color: rgba(244, 228, 188, 0.3);
    }
    
    .cart-error-message {
        background: linear-gradient(135deg, rgba(107, 44, 62, 0.2), rgba(74, 31, 43, 0.2)) !important;
        border-color: rgba(220, 53, 69, 0.3);
    }
    
    .cart-loading-message {
        background: linear-gradient(135deg, rgba(107, 44, 62, 0.2), rgba(74, 31, 43, 0.2)) !important;
        border-color: rgba(244, 228, 188, 0.3);
    }
}