/**
 * Enhanced Cart & Wishlist Styling
 * Modern design and animations for Tabe Halal
 */

/* Cart Badge Animations */
.cart-badge {
    transition: all 0.3s ease;
    animation: cartBounce 0.6s ease-in-out;
}

.cart-badge-bounce {
    animation: cartBounce 0.6s ease-in-out;
}

.cart-badge-pulse {
    animation: cartPulse 1s ease-in-out;
}

@keyframes cartBounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateY(0); 
    }
    40% { 
        transform: translateY(-10px); 
    }
    60% { 
        transform: translateY(-5px); 
    }
}

@keyframes cartPulse {
    0% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.2); 
    }
    100% { 
        transform: scale(1); 
    }
}

/* Wishlist Badge Animations */
.wishlist-badge {
    transition: all 0.3s ease;
}

.wishlist-badge-bounce {
    animation: wishlistBounce 0.6s ease-in-out;
}

.wishlist-badge-pulse {
    animation: wishlistPulse 1s ease-in-out;
}

@keyframes wishlistBounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateY(0); 
    }
    40% { 
        transform: translateY(-10px); 
    }
    60% { 
        transform: translateY(-5px); 
    }
}

@keyframes wishlistPulse {
    0% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.2); 
    }
    100% { 
        transform: scale(1); 
    }
}

/* Cart & Wishlist Items */
.cart-item,
.wishlist-item {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.cart-item:hover,
.wishlist-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #dee2e6;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-controls .btn {
    transition: all 0.2s ease;
    border-radius: 6px;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-controls .btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quantity-controls input {
    text-align: center;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    padding: 0.25rem;
    width: 60px;
}

/* Cart & Wishlist Dropdowns */
.cart-dropdown,
.wishlist-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 320px;
    max-width: 400px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Cart Sidebar Styles */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1050;
    transition: right 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    border-radius: 20px 0 0 20px;
    overflow: hidden;
}

.cart-sidebar.show {
    right: 0;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100vw;
        right: -100vw;
        border-radius: 0;
        max-width: none;
        /* Ensure full height on mobile */
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height for mobile browsers */
        /* Better mobile layout */
        display: flex;
        flex-direction: column;
    }
    
    .cart-sidebar.show {
        right: 0;
        /* Ensure smooth animation */
        transition: right 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    /* Ensure cart header is always visible */
    .cart-header {
        position: sticky;
        top: 0;
        z-index: 30;
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        border-bottom: 2px solid #e5e7eb;
    }
    
    /* Ensure cart body scrolls properly */
    .cart-body {
        flex: 1;
        overflow-y: auto;
        /* Prevent horizontal scroll */
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .cart-sidebar {
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height for mobile browsers */
    }
}

/* Enhanced header with mobile optimization */
.cart-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 70px;
}

@media (max-width: 768px) {
    .cart-header {
        padding: 1rem 1.25rem;
        min-height: 60px;
    }
}

.cart-header h5 {
    margin: 0;
    font-weight: 600;
    color: #1f2937;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .cart-header h5 {
        font-size: 1rem;
    }
}

/* Enhanced close button with better touch target */
.cart-close {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .cart-close {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
        /* Larger touch target for mobile */
    }
}

.cart-close:hover,
.cart-close:focus {
    color: #dc3545;
    background: rgba(255, 255, 255, 1);
    border-color: #dc3545;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.cart-close:active {
    transform: scale(0.95);
}

/* Enhanced body with better scrolling */
.cart-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem;
    scroll-behavior: smooth;
    /* Enhanced scrolling for mobile */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 transparent;
}

@media (max-width: 768px) {
    .cart-body {
        padding: 0.75rem;
        /* Add bottom padding to account for fixed footer */
        padding-bottom: 160px;
        /* Ensure content doesn't get hidden behind fixed footer */
        margin-bottom: 140px;
    }
}

/* Custom scrollbar for webkit browsers */
.cart-body::-webkit-scrollbar {
    width: 6px;
}

.cart-body::-webkit-scrollbar-track {
    background: transparent;
}

.cart-body::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.cart-body::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Enhanced cart items for mobile */
.cart-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    margin-bottom: 0.75rem;
    background: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

@media (max-width: 768px) {
    .cart-item {
        gap: 0.75rem;
        padding: 0.875rem;
        margin-bottom: 0.5rem;
        border-radius: 12px;
    }
}

.cart-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-1px);
    border-color: #22c55e;
}

@media (max-width: 768px) {
    .cart-item:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
}

/* Enhanced image container */
.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: #f3f4f6;
}

@media (max-width: 768px) {
    .cart-item-image {
        width: 80px;
        height: 80px;
        border-radius: 10px;
    }
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cart-item-image:hover img {
    transform: scale(1.1);
}

/* Enhanced item details */
.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0; /* Prevent flex item from growing beyond container */
}

.cart-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1f2937;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .cart-item-title {
        font-size: 0.875rem;
        margin-bottom: 0.375rem;
    }
}

.cart-item-price {
    margin-bottom: 0.5rem;
    color: #059669;
    font-weight: 700;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .cart-item-price {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
}

/* Enhanced quantity controls for mobile */
.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .cart-item-quantity {
        gap: 0.75rem;
    }
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 0.25rem;
}

@media (max-width: 768px) {
    .quantity-controls {
        gap: 0.75rem;
        padding: 0.375rem;
        border-radius: 12px;
    }
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .quantity-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-radius: 10px;
        /* Larger touch target for mobile */
    }
}

.quantity-btn:hover {
    background: #22c55e;
    color: white;
    border-color: #22c55e;
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.3);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f3f4f6;
    color: #9ca3af;
}

.quantity-btn:disabled:hover {
    transform: none;
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #d1d5db;
}

.quantity-value {
    min-width: 24px;
    text-align: center;
    font-weight: 700;
    color: #374151;
    font-size: 0.9rem;
    padding: 0 0.25rem;
}

@media (max-width: 768px) {
    .quantity-value {
        min-width: 28px;
        font-size: 1rem;
    }
}

/* Enhanced remove button */
.cart-item-remove {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    cursor: pointer;
    padding: 0.375rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

@media (max-width: 768px) {
    .cart-item-remove {
        width: 36px;
        height: 36px;
        padding: 0.5rem;
        border-radius: 10px;
        top: 0.75rem;
        right: 0.75rem;
        /* Larger touch target for mobile */
    }
}

.cart-item-remove:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.cart-item-remove:active {
    transform: scale(0.95);
}

/* Enhanced footer for mobile */
.cart-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: sticky;
    bottom: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .cart-footer {
        padding: 1rem 1.25rem 1.5rem;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
        min-height: 140px;
        /* Ensure footer is always visible on mobile */
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        border-top: 2px solid #e5e7eb;
    }
}

/* Enhanced total summary */
.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.375rem;
    font-size: 0.9rem;
    color: #6b7280;
}

@media (max-width: 768px) {
    .cart-total-row {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
}

.cart-total-row.total {
    border-top: 2px solid #e5e7eb;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
}

@media (max-width: 768px) {
    .cart-total-row.total {
        font-size: 1.125rem;
        padding-top: 1rem;
        margin-top: 1rem;
    }
}

.cart-total-row .price {
    font-weight: 600;
    color: #059669;
}

.cart-total-row.total .price {
    font-weight: 700;
    color: #22c55e;
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .cart-total-row.total .price {
        font-size: 1.2rem;
    }
}

/* Enhanced action buttons */
.cart-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    width: 100%;
}

@media (max-width: 768px) {
    .cart-actions {
        gap: 0.75rem;
        margin-top: 1rem;
        flex-direction: column;
        width: 100%;
        /* Ensure buttons are always visible */
        position: relative;
        z-index: 20;
    }
}

.cart-btn {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    width: 100%;
}

@media (max-width: 768px) {
    .cart-btn {
        padding: 1.125rem 1.5rem;
        font-size: 1.1rem;
        border-radius: 16px;
        min-height: 56px;
        /* Larger touch target for mobile */
        font-weight: 700;
        /* Ensure button is always visible and accessible */
        position: relative;
        z-index: 25;
    }
}

.cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.cart-btn:hover::before {
    transform: translateX(100%);
}

.cart-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: 2px solid transparent;
}

.cart-btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.cart-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.cart-btn-secondary {
    background: #ffffff;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.cart-btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cart-btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Mobile-specific enhancements */
@media (max-width: 768px) {
    .cart-btn-primary {
        order: 2;
        /* Ensure checkout button is prominent */
        background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
        color: white;
        border: 2px solid #22c55e;
        box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
    }
    
    .cart-btn-primary:hover {
        background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    }
    
    .cart-btn-secondary {
        order: 1;
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
        border-color: rgba(239, 68, 68, 0.3);
    }
    
    .cart-btn-secondary:hover {
        background: rgba(239, 68, 68, 0.15);
        border-color: rgba(239, 68, 68, 0.4);
    }
    
    /* Ensure cart total is always visible */
    .cart-total-row.total {
        font-size: 1.25rem;
        font-weight: 800;
        color: #1f2937;
        text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }
    
    .cart-total-row.total .price {
        font-size: 1.4rem;
        font-weight: 800;
        color: #22c55e;
        text-shadow: 0 1px 2px rgba(34, 197, 94, 0.2);
    }
}

/* Enhanced empty state */
.cart-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

@media (max-width: 768px) {
    .cart-empty {
        padding: 2.5rem 1rem;
        min-height: 250px;
    }
}

.cart-empty i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.4;
    color: #9ca3af;
    animation: float 3s ease-in-out infinite;
}

@media (max-width: 768px) {
    .cart-empty i {
        font-size: 5rem;
        margin-bottom: 2rem;
    }
}

.cart-empty h6 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
    .cart-empty h6 {
        font-size: 1.375rem;
        margin-bottom: 1rem;
    }
}

.cart-empty p {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    max-width: 280px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .cart-empty p {
        font-size: 1rem;
        margin-bottom: 2rem;
        max-width: 320px;
    }
}

/* Float animation for empty cart icon */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Enhanced overlay with better mobile experience */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1040;
    display: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
    /* Ensure overlay is visible when shown */
    opacity: 0;
}

.cart-overlay.show {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .cart-overlay {
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
}

.cart-overlay.show {
    display: block;
    opacity: 1;
}

/* Ensure cart sidebar is always on top */
.cart-sidebar {
    z-index: 1050 !important;
}

/* Mobile-specific cart enhancements */
@media (max-width: 768px) {
    /* Ensure cart content is properly spaced */
    .cart-sidebar {
        display: flex;
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
    }
    
    /* Ensure cart body takes available space */
    .cart-body {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    /* Ensure cart footer is always at bottom */
    .cart-footer {
        flex-shrink: 0;
        position: sticky;
        bottom: 0;
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        border-top: 2px solid #e5e7eb;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    }
    
    /* Ensure checkout button is prominent */
    .cart-btn-primary {
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
        color: white !important;
        border: 2px solid #3b82f6 !important;
        font-weight: 700 !important;
        font-size: 1.1rem !important;
        min-height: 56px !important;
        box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3) !important;
    }
    
    .cart-btn-primary:hover {
        background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4) !important;
    }
    
    /* Ensure cart total is visible */
    .cart-total-row.total {
        font-size: 1.25rem !important;
        font-weight: 800 !important;
        color: #1f2937 !important;
        margin-bottom: 1rem !important;
    }
    
    .cart-total-row.total .price {
        font-size: 1.4rem !important;
        font-weight: 800 !important;
        color: #22c55e !important;
    }
}

/* Remove duplicate media query and fix mobile width */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100vw;
        right: -100vw;
        border-radius: 0;
        max-width: none;
    }
    
    .cart-sidebar.show {
        right: 0;
    }
}

.cart-dropdown.show,
.wishlist-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Cart & Wishlist Item Cards */
.cart-item .card-body,
.wishlist-item .card-body {
    padding: 1rem;
}

.cart-item img,
.wishlist-item img {
    border-radius: 6px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cart-item:hover img,
.wishlist-item:hover img {
    transform: scale(1.05);
}

/* Action Buttons */
.cart-actions,
.wishlist-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cart-actions .btn,
.wishlist-actions .btn {
    transition: all 0.2s ease;
    border-radius: 6px;
    font-weight: 500;
}

.cart-actions .btn:hover,
.wishlist-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Wishlist Button States */
.wishlist-btn {
    transition: all 0.2s ease;
    border-radius: 6px;
}

.wishlist-btn:hover {
    transform: scale(1.1);
}

.in-wishlist {
    color: #dc3545 !important;
    border-color: #dc3545 !important;
    background-color: transparent !important;
}

.in-wishlist:hover {
    background-color: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
}

/* Notifications */
.cart-notification,
.wishlist-notification {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cart-notification .alert,
.wishlist-notification .alert {
    margin: 0;
    border: none;
    background: rgba(255, 255, 255, 0.95);
}

/* Progress Bars */
.free-shipping-progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
    overflow: hidden;
}

.free-shipping-progress .progress-bar {
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 0.3s ease;
}

/* Summary Cards */
.cart-summary .card,
.wishlist-summary .card {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 12px;
}

.cart-summary .card-header,
.wishlist-summary .card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
}

/* Mini Cart & Wishlist */
.mini-cart,
.mini-wishlist {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.mini-cart:hover,
.mini-wishlist:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.mini-cart-content,
.mini-wishlist-content {
    text-align: center;
}

.mini-cart-count,
.mini-wishlist-count {
    font-weight: 600;
    color: #495057;
    font-size: 0.875rem;
}

.mini-cart-total,
.mini-wishlist-value {
    font-weight: 700;
    color: #28a745;
    font-size: 1rem;
}

/* Empty States */
.cart-empty,
.wishlist-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.cart-empty i,
.wishlist-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-dropdown,
    .wishlist-dropdown {
        min-width: 280px;
        max-width: 320px;
        right: -10px;
    }
    
    .cart-item .row,
    .wishlist-item .row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cart-item .col-md-2,
    .wishlist-item .col-md-2 {
        text-align: center;
    }
    
    .cart-item .col-md-4,
    .wishlist-item .col-md-4 {
        text-align: center;
    }
    
    .cart-item .col-md-3,
    .wishlist-item .col-md-3 {
        display: flex;
        justify-content: center;
    }
    
    .cart-item .col-md-2,
    .wishlist-item .col-md-2 {
        text-align: center;
    }
    
    .cart-item .col-md-1,
    .wishlist-item .col-md-1 {
        text-align: center;
    }
}

/* Loading States */
.cart-loading,
.wishlist-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #6c757d;
}

.cart-loading .spinner-border,
.wishlist-loading .spinner-border {
    margin-right: 0.5rem;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .cart-badge,
    .wishlist-badge,
    .cart-item,
    .wishlist-item,
    .quantity-controls .btn,
    .wishlist-btn,
    .cart-dropdown,
    .wishlist-dropdown,
    .mini-cart,
    .mini-wishlist {
        transition: none;
        animation: none;
    }
}

/* Focus States */
.cart-actions .btn:focus,
.wishlist-actions .btn:focus,
.quantity-controls .btn:focus,
.wishlist-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .cart-dropdown,
    .wishlist-dropdown,
    .mini-cart,
    .mini-wishlist {
        background: #343a40;
        border-color: #495057;
        color: #f8f9fa;
    }
    
    .cart-item,
    .wishlist-item {
        background: #343a40;
        border-color: #495057;
        color: #f8f9fa;
    }
    
    .cart-summary .card,
    .wishlist-summary .card {
        background: #343a40;
        color: #f8f9fa;
    }
    
    .cart-summary .card-header,
    .wishlist-summary .card-header {
        background: linear-gradient(135deg, #495057, #343a40);
        color: #f8f9fa;
    }
} 
} 
} 