/* Main Styles */
body {
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-color: #1e40af;
    --primary-hover: #1d4ed8;
    --secondary-color: #f59e0b;
    --accent-color: #d97706;
    --dates-brown: #8B4513;
    --honey-gold: #fbbf24;
    --text-dark: #1e40af;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 2px 10px rgba(30, 64, 175, 0.15);
    --gradient: linear-gradient(135deg, #1e40af 0%, #f59e0b 100%);
    --dates-gradient: linear-gradient(135deg, #1e40af 0%, #8B4513 50%, #f59e0b 100%);
}

/* Custom Alert Colors - ZamDates Theme */
.alert-success {
    background-color: rgba(30, 64, 175, 0.15) !important;
    border: 1px solid rgba(30, 64, 175, 0.3) !important;
    color: #1e40af !important;
    border-left: 4px solid #1e40af !important;
}

.alert-success .btn-close {
    filter: none !important;
    color: #1e40af !important;
}

/* Force override any bootstrap green colors */
.alert.alert-success {
    background-color: rgba(30, 64, 175, 0.15) !important;
    border-color: rgba(30, 64, 175, 0.3) !important;
    color: #1e40af !important;
}

/* Other alert styles to match theme */
.alert-info {
    background-color: rgba(128, 98, 214, 0.05) !important;
    border-color: rgba(128, 98, 214, 0.1) !important;
    color: #6c5ce7 !important;
}

/* Quantity Control Styles */
.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    background: white;
    width: fit-content;
}

.quantity-btn {
    background: #f8f9fa;
    border: none;
    color: #495057;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: 600;
}

.quantity-btn:hover {
    background: #e9ecef;
    color: #212529;
}

.quantity-btn:active {
    background: #dee2e6;
}

.quantity-input {
    border: none !important;
    text-align: center;
    width: 60px;
    height: 35px;
    background: white;
    font-weight: 500;
    box-shadow: none !important;
}

.quantity-input:focus {
    outline: none;
    box-shadow: none !important;
}

/* Cart item image styling */
.cart-item-image-container {
    width: 100%;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Navigation spacing improvements */
.navbar-nav .nav-item .nav-link {
    padding: 0.5rem 0.5rem;
}

/* Theme toggle spacing */
.form-check-input {
    margin-right: 0.25rem;
}

/* Mobile navigation spacing */
@media (max-width: 991.98px) {
    .navbar-nav .nav-item .nav-link {
        padding: 0.4rem 0.4rem;
    }
    
    .navbar-nav .nav-item {
        margin-right: 0.5rem;
    }
    
    .form-check-input {
        margin-right: 0.2rem;
    }
}

@media (max-width: 767.98px) {
    .navbar-nav .nav-item .nav-link {
        padding: 0.375rem 0.375rem;
    }
    
    .navbar-nav .nav-item {
        margin-right: 0.25rem;
    }
    
    .navbar-nav .nav-item:last-child {
        margin-right: 0;
    }
}

@media (max-width: 575.98px) {
    .navbar-nav .nav-item .nav-link {
        padding: 0.3rem 0.3rem;
    }
    
    .navbar-nav .nav-item {
        margin-right: 0.2rem;
    }
    
    .form-check-input {
        margin-right: 0.15rem;
    }
    
    /* Compact navigation for very small screens */
    .navbar-nav {
        gap: 0.1rem;
    }
}

/* Modern Card Styles */
.product-card {
    border: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    background: #fff !important;
    height: auto !important;
    min-height: 420px !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    cursor: pointer !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 1.5rem 0 !important;
    box-sizing: border-box !important;
    will-change: transform !important;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .product-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .category-card:hover {
        transform: none;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    }
    
    .category-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

.product-image {
    height: 280px !important;
    overflow: hidden !important;
    position: relative !important;
    border-radius: 16px 16px 0 0 !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef) !important;
}

/* Mobile Responsive Overrides */
@media (max-width: 767px) {
    .product-card {
        height: auto !important;
        min-height: 420px !important;
        margin-bottom: 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .product-image {
        height: 200px !important;
        flex-shrink: 0 !important;
    }
    
    .product-card .card-body {
        padding: 1.2rem !important;
        gap: 0.6rem !important;
        flex-grow: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .product-card .card-title {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.6rem !important;
        overflow: visible !important;
        text-overflow: unset !important;
        display: block !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
        height: auto !important;
        max-height: none !important;
    }
    
    .product-card .card-text {
        font-size: 0.9rem !important;
        margin-bottom: 0.7rem !important;
        flex-grow: 1 !important;
        overflow: visible !important;
        text-overflow: unset !important;
        display: block !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
        height: auto !important;
        max-height: none !important;
    }
    
    .product-card .text-muted {
        font-size: 0.8rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .price-tag {
        font-size: 0.9rem !important;
        padding: 0.4rem 0.8rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .btn-card {
        font-size: 0.85rem !important;
        padding: 0.6rem 1rem !important;
        margin-top: auto !important;
    }
    
    .discount-badge {
        font-size: 0.75rem !important;
        top: 0.5rem !important;
        right: 0.5rem !important;
        padding: 0.25rem 0.6rem !important;
    }
    
    .free-shipping-badge {
        font-size: 0.75rem !important;
        right: 0.5rem !important;
        padding: 0.25rem 0.6rem !important;
    }
    
    @supports selector(:has(*)) {
        .product-card:has(.discount-badge) .free-shipping-badge {
            top: 3rem !important;
        }
        
        .product-card:not(:has(.discount-badge)) .free-shipping-badge {
            top: 0.5rem !important;
        }
    }
    
    .product-card.has-discount .free-shipping-badge {
        top: 3rem !important;
    }
    
    .product-card:not(.has-discount) .free-shipping-badge {
        top: 0.5rem !important;
    }
    
    /* Ensure proper container spacing on mobile */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Fix grid layout on mobile */
    .card-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
        padding: 0 1rem !important;
    }
}

@media (max-width: 575px) {
    .product-card {
        height: auto !important;
        min-height: 400px !important;
        margin-bottom: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .product-image {
        height: 180px !important;
        flex-shrink: 0 !important;
    }
    
    .product-card .card-body {
        padding: 1rem !important;
        gap: 0.5rem !important;
        flex-grow: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .product-card .card-title {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.5rem !important;
        overflow: visible !important;
        text-overflow: unset !important;
        display: block !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
        height: auto !important;
        max-height: none !important;
    }
    
    .product-card .card-text {
        font-size: 0.85rem !important;
        margin-bottom: 0.6rem !important;
        flex-grow: 1 !important;
        overflow: visible !important;
        text-overflow: unset !important;
        display: block !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
        height: auto !important;
        max-height: none !important;
    }
    
    .product-card .text-muted {
        font-size: 0.75rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .price-tag {
        font-size: 0.85rem !important;
        padding: 0.35rem 0.7rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .btn-card {
        font-size: 0.8rem !important;
        padding: 0.5rem 0.9rem !important;
        margin-top: auto !important;
    }
    
    .discount-badge {
        font-size: 0.7rem !important;
        top: 0.4rem !important;
        right: 0.4rem !important;
        padding: 0.2rem 0.5rem !important;
    }
    
    .free-shipping-badge {
        font-size: 0.7rem !important;
        right: 0.4rem !important;
        padding: 0.2rem 0.5rem !important;
    }
    
    @supports selector(:has(*)) {
        .product-card:has(.discount-badge) .free-shipping-badge {
            top: 2.8rem !important;
        }
        
        .product-card:not(:has(.discount-badge)) .free-shipping-badge {
            top: 0.4rem !important;
        }
    }
    
    .product-card.has-discount .free-shipping-badge {
        top: 2.8rem !important;
    }
    
    .product-card:not(.has-discount) .free-shipping-badge {
        top: 0.4rem !important;
    }
    
    /* Smaller container margins on mobile */
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    /* Improve grid layout for small screens */
    .card-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
        padding: 0 0.75rem !important;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .product-card {
        height: auto !important;
        min-height: 380px !important;
        margin-bottom: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .product-image {
        height: 150px !important;
        flex-shrink: 0 !important;
    }
    
    .product-card .card-body {
        padding: 1rem !important;
        gap: 0.5rem !important;
        flex-grow: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .product-card .card-title {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.5rem !important;
        overflow: visible !important;
        text-overflow: unset !important;
        display: block !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
        height: auto !important;
        max-height: none !important;
    }
    
    .product-card .card-text {
        font-size: 0.8rem !important;
        margin-bottom: 0.6rem !important;
        flex-grow: 1 !important;
        overflow: visible !important;
        text-overflow: unset !important;
        display: block !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
        height: auto !important;
        max-height: none !important;
    }
    
    .product-card .text-muted {
        font-size: 0.7rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .price-tag {
        font-size: 0.8rem !important;
        padding: 0.3rem 0.6rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .btn-card {
        font-size: 0.75rem !important;
        padding: 0.45rem 0.8rem !important;
        margin-top: auto !important;
    }
    
    .discount-badge {
        font-size: 0.65rem !important;
        padding: 0.15rem 0.4rem !important;
    }
    
    .free-shipping-badge {
        font-size: 0.65rem !important;
        padding: 0.15rem 0.4rem !important;
    }
    
    @supports selector(:has(*)) {
        .product-card:has(.discount-badge) .free-shipping-badge {
            top: 2.5rem !important;
        }
        
        .product-card:not(:has(.discount-badge)) .free-shipping-badge {
            top: 0.3rem !important;
        }
    }
    
    .product-card.has-discount .free-shipping-badge {
        top: 2.5rem !important;
    }
    
    .product-card:not(.has-discount) .free-shipping-badge {
        top: 0.3rem !important;
    }
    
    .container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* Single column layout for very small screens */
    .card-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 0 0.5rem !important;
        max-width: 400px !important;
        margin: 0 auto !important;
    }
}

/* Simple Notification System Styles */
@keyframes slideInRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.custom-notification {
    pointer-events: auto;
    margin-bottom: 10px;
}

/* Mobile notification adjustments */
@media (max-width: 768px) {
    .notification-container {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
        max-width: none !important;
    }
    
    .custom-notification {
        margin-bottom: 8px !important;
        font-size: 13px !important;
        max-width: none !important;
    }
}

/* Optimized wishlist button */
.wishlist-toggle {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 3 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #666 !important;
    transition: all 0.2s ease-out !important;
    cursor: pointer !important;
    will-change: transform, background-color !important;
}

.wishlist-toggle i {
    font-size: 14px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wishlist-toggle:hover {
    background: rgba(255, 255, 255, 1) !important;
    color: #e74c3c !important;
    transform: scale(1.1) !important;
}

.wishlist-toggle.active {
    background: #e74c3c !important;
    color: white !important;
}

.wishlist-toggle i {
    font-size: 14px !important;
}

.product-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    image-rendering: optimizeQuality;
    will-change: transform;
}

.product-image img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image img[loading="lazy"].loaded {
    opacity: 1;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-card .card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.5rem;
    cursor: pointer;
    background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
}

.product-card .card-title {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

/* Category Cards */
.category-card {
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    height: 100%;
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.category-card .card-body {
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.category-card .card-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(245, 158, 11, 0.05) 100%);
    border-radius: 20px;
    z-index: -1;
}

.category-card:hover .card-body::before {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(245, 158, 11, 0.1) 100%);
}



/* Price Tags */
.price-tag {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Free shipping badge styling */
.free-shipping-badge {
    position: absolute;
    right: 1rem;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* Position free shipping badge - fallback first, then has() selector for modern browsers */
.free-shipping-badge {
    top: 1rem; /* Default position when no discount badge */
}

/* Modern browsers: position based on discount badge presence */
@supports selector(:has(*)) {
    .product-card:has(.discount-badge) .free-shipping-badge {
        top: 3.5rem;
    }
    
    .product-card:not(:has(.discount-badge)) .free-shipping-badge {
        top: 1rem;
    }
}

/* Fallback for older browsers: use classes to control positioning */
.product-card.has-discount .free-shipping-badge {
    top: 3.5rem;
}

.product-card:not(.has-discount) .free-shipping-badge {
    top: 1rem;
}



/* Button Styles */
.btn-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
    text-align: center;
}

.btn-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.4);
    color: white;
    text-decoration: none;
}

.btn-card.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Grid Layouts */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure container doesn't overflow */
.container-fluid {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 0 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.25rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 992px) {
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        margin: 1.5rem 0;
    }
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1rem;
        margin: 1rem 0;
        padding: 0 1rem;
        justify-items: center;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem 0;
        padding: 0 1rem;
    }
    
    .product-card {
        width: 100%;
        max-width: 350px;
    }
    
    .product-card .card-body {
        padding: 1rem;
    }
    
    .category-card .card-body {
        padding: 1.5rem;
    }
    
    .product-image {
        height: 220px;
    }
    
    .product-card .card-title {
        font-size: 1rem;
    }
    
    .price-tag {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
    
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

@media (max-width: 576px) {
    .card-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        padding: 0 0.75rem;
        justify-items: center;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0 0.75rem;
    }
    
    .product-card {
        width: 100%;
        max-width: none;
        min-width: 140px;
    }
    
    .product-card .card-body {
        padding: 0.75rem;
    }
    
    .category-card .card-body {
        padding: 1.25rem;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-card .card-title {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }
    
    .product-card .card-text {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .price-tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .btn-card {
        padding: 0.45rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .discount-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .container-fluid {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin: 0.75rem 0;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin: 0.75rem 0;
    }
}

@media (max-width: 375px) {
    .product-card .card-body {
        padding: 0.5rem;
    }
    
    .category-card .card-body {
        padding: 1rem;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-card .card-title {
        font-size: 0.9rem;
    }
    
    .price-tag {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }
}
    line-height: 1.3;
    font-weight: 600;
}

.product-card .card-text {
    margin-bottom: 0.5rem;
    flex-grow: 1;
}

.product-card .mt-auto {
    margin-top: auto;
}

/* Reviews and recommendations spacing */
.reviews-section + section {
    margin-top: 4rem !important;
}

/* Unified price styling across all pages */
.price-section,
.product-price {
    display: flex;
    align-items: center;
    margin-top: auto;
    color: var(--secondary-color) !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
}

.price-section span,
.product-price span {
    color: var(--secondary-color) !important;
    font-weight: 600 !important;
    margin-top: auto;
    color: var(--secondary-color) !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
}

.price-section span,
.product-price span {
    color: var(--secondary-color) !important;
    font-weight: 600 !important;
}

.original-price {
    text-decoration: line-through;
    color: #6c757d !important;
    margin-right: 1rem;
    font-weight: 400 !important;
}

/* Ensure rupee symbol consistency */
.product-price,
.price-section,
.fw-bold.text-primary {
    color: var(--secondary-color) !important;
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.discount-badge,
.free-shipping-badge {
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.free-shipping-badge i {
    margin-right: 3px;
}

/* Remove product hover actions - no longer needed */

/* Category Cards */
.category-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card .card-body {
    padding: 2rem;
    transition: all 0.3s ease;
}

.category-card:hover .card-body {
    background-color: var(--primary-color) !important;
    color: white;
}

.category-card:hover .btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.category-card:hover i {
    color: white !important;
}

/* Hero Slider */
.slider-img-container {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Optimized animations for better performance */
.animate-on-scroll {
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: opacity, transform;
}

.animate-on-scroll.animated {
    opacity: 1;
}

.animate-fade-up {
    transform: translateY(20px);
}

.animate-fade-up.animated {
    transform: translateY(0);
}

.animate-fade-left {
    transform: translateX(-20px);
}

.animate-fade-left.animated {
    transform: translateX(0);
}

.animate-fade-right {
    transform: translateX(20px);
}

.animate-fade-right.animated {
    transform: translateX(0);
}

/* Dark mode toggle */
.form-check-input {
    cursor: pointer;
}

/* Cart Page */
.cart-item {
    transition: all 0.3s ease;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

.qty-input {
    width: 60px;
}

/* Checkout Page */
.checkout-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.checkout-step {
    text-align: center;
    flex: 1;
    position: relative;
}

.checkout-step::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #dee2e6;
    z-index: -1;
}

.checkout-step:last-child::after {
    display: none;
}

.checkout-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.checkout-step.active .checkout-icon {
    background-color: var(--primary-color);
    color: white;
}

.checkout-step.completed .checkout-icon {
    background-color: #28a745;
    color: white;
}

/* Social Icons */
.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    background-color: var(--primary-color);
    color: white !important;
    box-shadow: 0 4px 8px rgba(43, 45, 92, 0.3);
}

.social-icon i {
    font-size: 1.2rem;
}

/* Force blue color on contact page social icons */
.contact .social-icon,
.social-links .social-icon {
    border-color: #2563eb !important;
    color: #2563eb !important;
}

.contact .social-icon:hover,
.social-links .social-icon:hover {
    background-color: #2563eb !important;
    color: white !important;
}

/* Responsive Product Card Styles - Auto Height for Better Text Display */
@media (max-width: 1199.98px) {
    .product-card {
        height: auto;
        min-height: 400px;
    }
    .product-image {
        height: 220px;
    }
    .product-card .card-body {
        padding: 1.2rem;
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }
}

@media (max-width: 991.98px) {
    .product-card {
        height: auto;
        min-height: 380px;
    }
    .product-image {
        height: 200px;
    }

    .product-card .card-body {
        padding: 1.2rem;
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }

    .product-card .card-title {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
        height: auto;
    }

    .product-card .card-text {
        font-size: 0.85rem;
        line-height: 1.4;
        height: auto;
        margin-bottom: 0.6rem;
    }
}

@media (max-width: 767.98px) {
    .product-card {
        height: auto;
        min-height: 360px;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }
    
    .product-image {
        height: 180px;
    }

    .product-card .card-body {
        padding: 1.2rem;
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }

    .product-card .card-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        line-height: 1.4;
        height: auto;
    }

    .product-card .card-text {
        font-size: 0.9rem;
        height: auto;
        line-height: 1.4;
        margin-bottom: 0.6rem;
    }

    .product-card .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    .price-section,
    .product-price {
        font-size: 1.1rem !important;
    }

    .checkout-progress {
        flex-direction: column;
    }

    .checkout-step {
        margin-bottom: 1rem;
    }

    .checkout-step::after {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .product-card {
        height: auto;
        min-height: 340px;
    }
    
    .product-image {
        height: 160px;
    }

    .product-card .card-body {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .product-card .card-title {
        font-size: 0.95rem;
        line-height: 1.4;
        height: auto;
        margin-bottom: 0.4rem;
    }

    .product-card .card-text {
        font-size: 0.85rem;
        height: auto;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }

    .product-card .btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.875rem;
    }

    .price-section,
    .product-price {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .product-card {
        height: auto;
        min-height: 320px;
    }
    
    .product-image {
        height: 140px;
    }

    .product-card .card-body {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .product-card .card-title {
        font-size: 0.9rem;
        line-height: 1.4;
        height: auto;
        margin-bottom: 0.4rem;
    }

    .product-card .card-text {
        font-size: 0.8rem;
        height: auto;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }

    .product-card .btn {
        font-size: 0.8rem;
        padding: 0.45rem 0.75rem;
    }

    .price-section,
    .product-price {
        font-size: 0.95rem !important;
    }
}

/* Ensure proper grid layout on all screens */
.row.g-4 > .col-12,
.row.g-4 > .col-sm-6,
.row.g-4 > .col-md-4,
.row.g-4 > .col-lg-3 {
    display: flex;
}

.row.g-4 > .col-12 .product-card,
.row.g-4 > .col-sm-6 .product-card,
.row.g-4 > .col-md-4 .product-card,
.row.g-4 > .col-lg-3 .product-card {
    width: 100%;
}

/* Responsive Slider Styles */
.slider-img-container {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    max-height: 700px;
    overflow: hidden;
    background: #000;
}

.slider-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.7) !important;
    padding: 2rem;
    border-radius: 15px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    text-align: center;
}

.carousel-caption h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.carousel-caption p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.carousel-caption .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 140px;
    display: inline-block;
    text-decoration: none;
    border: 2px solid transparent;
}

.carousel-caption .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

/* Extra Large Desktop */
@media (min-width: 1400px) {
    .carousel-caption h1 {
        font-size: 3.5rem;
    }

    .carousel-caption p {
        font-size: 1.6rem;
    }

    .carousel-caption .btn {
        padding: 20px 45px;
        font-size: 1.3rem;
        min-width: 180px;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .carousel-caption h1 {
        font-size: 3rem;
    }

    .carousel-caption p {
        font-size: 1.4rem;
    }

    .carousel-caption .btn {
        padding: 18px 40px;
        font-size: 1.2rem;
        min-width: 160px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 3%;
    }
}

/* Tablet Responsive */
@media (max-width: 991.98px) {
    .slider-img-container {
        height: 65vh;
        min-height: 380px;
    }

    .carousel-caption {
        width: 92%;
        padding: 1.8rem;
        top: 45%;
    }

    .carousel-caption h1 {
        font-size: 2.2rem;
        margin-bottom: 0.9rem;
        line-height: 1.2;
    }

    .carousel-caption p {
        font-size: 1.1rem;
        margin-bottom: 1.3rem;
    }

    .carousel-caption .btn {
        padding: 14px 30px;
        font-size: 1.05rem;
        min-width: 130px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 6%;
        opacity: 0.9;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 25px;
        height: 25px;
    }
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
    .slider-img-container {
        height: 50vh;
        min-height: 300px;
        position: relative;
    }

    .carousel-caption {
        width: 90%;
        padding: 1rem;
        border-radius: 8px;
        top: 40%;
        transform: translate(-50%, -50%);
        position: absolute;
    }

    .carousel-caption h1 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
        font-weight: 700;
    }

    .carousel-caption p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
        line-height: 1.4;
    }

    .carousel-caption .btn {
        padding: 10px 25px !important;
        font-size: 0.9rem !important;
        min-width: 120px !important;
        border-radius: 25px !important;
        margin-top: 0.5rem !important;
        font-weight: 600 !important;
        display: inline-block !important;
        text-align: center !important;
        white-space: nowrap !important;
        width: auto !important;
        max-width: 160px !important;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 8%;
        height: 100%;
        top: 0;
        opacity: 0.8;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }

    .carousel-control-prev {
        left: 5px;
    }

    .carousel-control-next {
        right: 5px;
    }

    /* Mobile wishlist buttons */
    .wishlist-toggle,
    .wishlist-btn {
        width: 36px;
        height: 36px;
        top: 10px;
        right: 10px;
        font-size: 14px;
    }

    /* Mobile product cards */
    .product-card {
        margin-bottom: 1.5rem;
        border-radius: 10px;
    }

    .product-card .card-body {
        padding: 1rem;
    }

    .product-card .card-title {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }

    .product-card .card-text {
        font-size: 0.85rem;
    }

    .product-card .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    /* Mobile notification adjustments */
    .advanced-notification-container {
        width: 95vw;
        right: 2.5vw;
        top: 10px;
    }

    .advanced-notification {
        margin-bottom: 8px;
    }

    .notification-content {
        padding: 12px;
        gap: 8px;
    }

    .notification-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .notification-message {
        font-size: 12px;
    }
}

/* Small Mobile */
@media (max-width: 575.98px) {
    .slider-img-container {
        height: 50vh;
        min-height: 300px;
    }

    .carousel-caption {
        width: 95%;
        padding: 0.8rem;
        border-radius: 8px;
    }

    .carousel-caption h1 {
        font-size: 1.3rem;
        margin-bottom: 0.4rem;
        line-height: 1.3;
    }

    .carousel-caption p {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
        line-height: 1.4;
    }

    .carousel-caption .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
        min-width: 120px;
        border-radius: 20px;
        margin-top: 0.3rem;
        display: inline-block;
        text-align: center;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .slider-img-container {
        height: 45vh;
        min-height: 280px;
    }

    .carousel-caption {
        width: 96%;
        padding: 0.8rem;
        border-radius: 6px;
    }

    .carousel-caption h1 {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }

    .carousel-caption p {
        font-size: 0.8rem;
        margin-bottom: 0.7rem;
    }

    .carousel-caption .btn {
        padding: 7px 18px;
        font-size: 0.8rem;
        min-width: 90px;
        border-radius: 18px;
    }
}

/* Very Small Screens */
@media (max-width: 360px) {
    .slider-img-container {
        height: 40vh;
        min-height: 260px;
    }

    .carousel-caption {
        width: 94%;
        padding: 0.6rem;
    }

    .carousel-caption h1 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

    .carousel-caption p {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
    }

    .carousel-caption .btn {
        padding: 6px 16px;
        font-size: 0.75rem;
        min-width: 80px;
        border-radius: 15px;
    }
}

/* Cart Item */
.cart-item {
    transition: background-color 0.3s ease;
}

.cart-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Mobile Navigation Badge Fix */
@media (max-width: 768px) {
    .navbar .badge {
        font-size: 0.5rem !important;
        padding: 2px 4px !important;
        min-width: 14px !important;
        height: 14px !important;
        border-radius: 7px !important;
        line-height: 1 !important;
        top: -2px !important;
        right: -8px !important;
    }

    .navbar .nav-link {
        font-size: 1rem !important;
        padding: 0.5rem !important;
    }

    .navbar .position-relative {
        display: inline-block !important;
    }
}

@media (max-width: 576px) {
    .navbar .badge {
        font-size: 0.45rem !important;
        padding: 1px 3px !important;
        min-width: 12px !important;
        height: 12px !important;
        border-radius: 6px !important;
        top: -1px !important;
        right: -6px !important;
    }
}

/* Modern Product Card Styles */
.product-card-modern {
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.product-card-modern:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15) !important;
}

.product-card-modern:hover img {
    transform: scale(1.05) !important;
}

.product-card-modern .btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    border: none !important;
    transition: all 0.2s ease !important;
}

.product-card-modern .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
}

.wishlist-btn-modern {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    left: 0.5rem !important;
    top: 0.5rem !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.wishlist-btn-modern:hover {
    transform: scale(1.1) translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
    background: rgba(255, 255, 255, 1) !important;
}

.wishlist-btn-modern.active,
.wishlist-btn-modern.in-wishlist {
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2) !important;
    border-color: rgba(220, 53, 69, 0.3) !important;
}

.wishlist-btn-modern:not(.active):not(.in-wishlist) {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Legacy Product Card Styles */
.product-card {
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

@media (max-width: 576px) {
    .product-card .card-img-top {
        height: 180px;
    }
}

.product-card .card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.product-card .product-price {
    color: var(--secondary-color);
    font-weight: 600;
}

.product-card .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Enhanced Wishlist Styles */
.wishlist-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

#wishlist-items .product-card {
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#wishlist-items .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

#wishlist-items .card-body {
    padding: 1.25rem;
}

#wishlist-items .product-image {
    height: 250px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

#wishlist-items .product-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#wishlist-items .product-card:hover .product-image img {
    transform: scale(1.02);
}

/* Wishlist page specific button styling */
#wishlist-items .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

#wishlist-items .price-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#wishlist-items .original-price {
    text-decoration: line-through;
    font-size: 0.875rem;
}

/* Empty wishlist state */
.empty-wishlist-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 50vh;
    padding: 3rem 1rem;
    width: 100%;
}

.empty-wishlist-container i {
    opacity: 0.5;
}

.empty-wishlist-container h3 {
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 1rem;
}

.empty-wishlist-container p {
    max-width: 400px;
    margin: 0 auto 1.5rem;
    text-align: center;
    line-height: 1.6;
}

.empty-wishlist-container .btn {
    min-width: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 50%, var(--secondary-color) 100%);
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.empty-wishlist-container .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.empty-wishlist-container .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(30, 64, 175, 0.4);
    color: white;
    text-decoration: none;
}

.empty-wishlist-container .btn:hover::before {
    left: 100%;
}

.empty-wishlist-container .btn:active {
    transform: translateY(-1px) scale(1.02);
    transition: all 0.1s ease;
}

.empty-wishlist-container .btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.empty-wishlist-container .btn:hover i {
    transform: scale(1.1) rotate(5deg);
}

@media (max-width: 768px) {
    #wishlist-items .product-image {
        height: 200px;
    }

    .wishlist-header h1 {
        font-size: 1.75rem;
    }

    #wishlist-items .btn-sm {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .empty-wishlist-container .btn {
        min-width: 180px;
        padding: 0.9rem 2rem;
        font-size: 1rem;
        border-radius: 40px;
    }
    
    .empty-wishlist-container .btn i {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    #wishlist-items .product-image {
        height: 180px;
    }

    .wishlist-header h1 {
        font-size: 1.5rem;
    }

    #wishlist-items .card-body {
        padding: 1rem;
    }

    #wishlist-items .d-flex.gap-2 {
        flex-direction: column;
        gap: 0.5rem !important;
    }

    #wishlist-items .btn-sm {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .empty-wishlist-container .btn {
        min-width: 160px;
        padding: 0.8rem 1.75rem;
        font-size: 0.95rem;
        border-radius: 35px;
    }
    
    .empty-wishlist-container .btn i {
        font-size: 1rem;
    }
}

/* Enhanced Wishlist button improvements with better styling */
.wishlist-toggle,
.wishlist-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e8ecef;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    color: #495057;
    backdrop-filter: blur(15px);
    text-decoration: none;
    cursor: pointer;
}

.wishlist-toggle:hover,
.wishlist-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #007bff;
    color: #007bff;
}

.wishlist-toggle.active,
.wishlist-btn.active,
.wishlist-toggle.in-wishlist,
.wishlist-btn.in-wishlist {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-color: #007bff;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.wishlist-toggle.active:hover,
.wishlist-btn.active:hover,
.wishlist-toggle.in-wishlist:hover,
.wishlist-btn.in-wishlist:hover {
    background: linear-gradient(135deg, #0056b3, #007bff);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}



.wishlist-toggle i,
.wishlist-btn i {
    font-size: 16px;
    transition: all 0.2s ease;
}

.wishlist-toggle:disabled,
.wishlist-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Product card positioning for wishlist button */
.product-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Custom Confirmation Modal Styles */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
}

.modal-body {
    padding: 2rem;
    background: white;
}

.modal-footer {
    background: #f8f9fa;
    padding: 1.25rem 2rem;
}

.modal-title {
    color: #333;
    font-size: 1.1rem;
}

/* Dark theme modal styles */
[data-bs-theme=dark] .modal-content {
    background: #242424;
    border: 1px solid #2c2c2c;
}

[data-bs-theme=dark] .modal-header {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    border-color: #2c2c2c;
}

[data-bs-theme=dark] .modal-body {
    background: #242424;
    color: #e1e1e1;
}

[data-bs-theme=dark] .modal-footer {
    background: #1a1a1a;
    border-color: #2c2c2c;
}

[data-bs-theme=dark] .modal-title {
    color: #e1e1e1;
}

[data-bs-theme=dark] .text-muted {
    color: #a1a1a1 !important;
}

/* Modal animation improvements */
.modal.fade .modal-dialog {
    transform: scale(0.8) translateY(-50px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Enhanced Mobile Responsiveness for All Product Cards */
@media (max-width: 768px) {
    .product-card {
        border-radius: 8px;
        margin-bottom: 1rem;
    }

    .product-image {
        height: 200px;
        border-radius: 8px 8px 0 0;
    }

    .product-card .card-body {
        padding: 1rem;
    }

    .product-card .card-title {
        font-size: 0.95rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }

    .product-card .card-text {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .product-card .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .wishlist-toggle,
    .wishlist-btn {
        width: 35px;
        height: 35px;
        top: 8px;
        left: 8px;
    }

    .wishlist-toggle i,
    .wishlist-btn i {
        font-size: 14px;
    }

    .empty-wishlist-container {
        min-height: 40vh;
        padding: 2rem 1rem;
    }

    .empty-wishlist-container h3 {
        font-size: 1.5rem;
    }

    .empty-wishlist-container .btn {
        min-width: 180px;
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .product-card {
        border-radius: 6px;
        margin-bottom: 1rem;
    }

    .product-image {
        height: 180px;
        border-radius: 6px 6px 0 0;
    }

    .product-card .card-body {
        padding: 0.875rem;
    }

    .product-card .card-title {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 0.4rem;
    }

    .product-card .card-text {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }

    .product-card .btn {
        font-size: 0.8rem;
        padding: 0.45rem 0.875rem;
    }

    .d-grid.gap-2 .btn {
        margin-bottom: 0.5rem;
    }

    .wishlist-toggle,
    .wishlist-btn {
        width: 32px;
        height: 32px;
        top: 6px;
        left: 6px;
    }

    .wishlist-toggle i,
    .wishlist-btn i {
        font-size: 12px;
    }

    .empty-wishlist-container {
        min-height: 35vh;
        padding: 1.5rem 0.75rem;
    }

    .empty-wishlist-container h3 {
        font-size: 1.3rem;
    }

    .empty-wishlist-container p {
        font-size: 0.9rem;
    }

    .empty-wishlist-container .btn {
        min-width: 160px;
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .product-card {
        margin-bottom: 0.875rem;
    }

    .product-image {
        height: 160px;
    }

    .product-card .card-body {
        padding: 0.75rem;
    }

    .product-card .card-title {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    .product-card .card-text {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .product-card .btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }

    .empty-wishlist-container {
        min-height: 30vh;
        padding: 1rem 0.5rem;
    }

    .empty-wishlist-container h3 {
        font-size: 1.2rem;
    }

    .empty-wishlist-container p {
        font-size: 0.85rem;
    }

    .empty-wishlist-container .btn {
        min-width: 140px;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* Fix slider text visibility in both themes */
.carousel-caption h1,
.carousel-caption h5,
.carousel-caption p {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}

[data-bs-theme=dark] .carousel-caption {
    background: rgba(0, 0, 0, 0.8) !important;
}

[data-bs-theme=dark] .carousel-caption h1,
[data-bs-theme=dark] .carousel-caption h5,
[data-bs-theme=dark] .carousel-caption p {
    color: white !important;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9) !important;
}

/* Dark theme wishlist buttons */
[data-bs-theme=dark] .wishlist-toggle,
[data-bs-theme=dark] .wishlist-btn {
    background: rgba(30, 30, 30, 0.9);
    color: #e1e1e1;
}

[data-bs-theme=dark] .wishlist-toggle:hover,
[data-bs-theme=dark] .wishlist-btn:hover {
    background: rgba(30, 30, 30, 1);
}

[data-bs-theme=dark] {
    --bs-body-bg: #1a1a1a !important;
    --bs-body-color: #e1e1e1 !important;
    --bs-border-color: #2c2c2c !important;
    --bs-link-color: #3498DB !important;
    --bs-link-hover-color: #2563eb !important;
    --bs-secondary-bg: #242424 !important;
    --bs-tertiary-bg: #2c2c2c !important;
}

/* Ensure body uses the theme colors */
[data-bs-theme=dark] body {
    background-color: var(--bs-body-bg) !important;
    color: var(--bs-body-color) !important;
}

[data-bs-theme=dark] .card {
    background-color: #242424 !important;
    border-color: #2c2c2c !important;
    color: #e1e1e1 !important;
}

[data-bs-theme=dark] .product-card {
    background-color: #242424 !important;
    border-color: #2c2c2c !important;
    color: #e1e1e1 !important;
}

[data-bs-theme=dark] .product-card .card-body {
    background: linear-gradient(180deg, #242424 0%, #1a1a1a 100%) !important;
    color: #e1e1e1 !important;
}

[data-bs-theme=dark] .product-card .card-title {
    color: #e1e1e1 !important;
}

[data-bs-theme=dark] .product-card .card-text {
    color: #a1a1a1 !important;
}

[data-bs-theme=dark] .category-card {
    background: linear-gradient(135deg, #242424 0%, #1a1a1a 100%) !important;
    border-color: #2c2c2c !important;
    color: #e1e1e1 !important;
}

[data-bs-theme=dark] .category-card .card-body {
    background: transparent !important;
    color: #e1e1e1 !important;
}

[data-bs-theme=dark] .category-card .card-body::before {
    background: linear-gradient(135deg, transparent 0%, rgba(52, 152, 219, 0.1) 100%) !important;
}

[data-bs-theme=dark] .category-card:hover .card-body::before {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(155, 89, 182, 0.15) 100%) !important;
}

[data-bs-theme=dark] .category-card:hover .card-body {
    background-color: transparent !important;
    color: #e1e1e1 !important;
}

[data-bs-theme=dark] .category-card:hover .btn-primary {
    background-color: #e1e1e1 !important;
    color: #242424 !important;
    border-color: #e1e1e1 !important;
}

[data-bs-theme=dark] .category-card:hover i {
    color: #e1e1e1 !important;
}

[data-bs-theme=dark] .category-card .feature-icon,
[data-bs-theme=dark] .category-card i {
    color: #3498DB !important;
}

/* Light theme navbar and footer */
[data-bs-theme=light] .navbar {
    background: var(--gradient) !important;
}

[data-bs-theme=light] .navbar .nav-link,
[data-bs-theme=light] .navbar .navbar-brand,
[data-bs-theme=light] .navbar .navbar-toggler-icon,
[data-bs-theme=light] .navbar .form-check-label {
    color: #fff !important;
}

.navbar .nav-link:hover {
    color: #e1e1e1 !important;
}

.navbar .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.navbar .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.navbar .btn-outline-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.navbar .btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

footer.bg-dark{
    background: var(--gradient) !important;
}

/* Dark theme navbar and footer */
[data-bs-theme=dark] .navbar {
    background: linear-gradient(135deg, #242424 0%, #1a1a1a 100%) !important;
}

[data-bs-theme=dark] .navbar .nav-link,
[data-bs-theme=dark] .navbar .navbar-brand {
    color: #e1e1e1 !important;
}

[data-bs-theme=dark] .navbar .nav-link:hover {
    color: #3498DB !important;
}

[data-bs-theme=dark] .navbar .form-control {
    background-color: #2c2c2c !important;
    border-color: #444 !important;
    color: #e1e1e1 !important;
}

[data-bs-theme=dark] .navbar .form-control::placeholder {
    color: #a1a1a1 !important;
}

[data-bs-theme=dark] .navbar .btn-outline-secondary {
    color: #e1e1e1 !important;
    border-color: #444 !important;
}

[data-bs-theme=dark] .navbar .btn-outline-secondary:hover {
    background-color: #444 !important;
    color: #fff !important;
}

[data-bs-theme=dark] .form-check-label {
    color: #e1e1e1 !important;
}

/* Smooth theme transitions */
html {
    transition: none !important;
}

html[data-bs-theme="dark"] {
    color-scheme: dark;
}

html[data-bs-theme="light"] {
    color-scheme: light;
}

/* Better theme toggle visibility */
.navbar .form-check-label {
    color: #fff !important;
}

[data-bs-theme=dark] .navbar .form-check-label {
    color: #e1e1e1 !important;
}

/* Force immediate theme application */
[data-bs-theme="dark"] * {
    transition: none !important;
}

[data-bs-theme="light"] * {
    transition: none !important;
}

[data-bs-theme=dark] footer.bg-dark {
    background-color: #242424 !important;
}

[data-bs-theme=dark] footer {
    background: #242424 !important;
}

/* Dark theme section backgrounds and text */
[data-bs-theme=dark] .container,
[data-bs-theme=dark] .container-fluid {
    color: #e1e1e1 !important;
}

[data-bs-theme=dark] h1,
[data-bs-theme=dark] h2,
[data-bs-theme=dark] h3,
[data-bs-theme=dark] h4,
[data-bs-theme=dark] h5,
[data-bs-theme=dark] h6 {
    color: #e1e1e1 !important;
}

[data-bs-theme=dark] p,
[data-bs-theme=dark] span,
[data-bs-theme=dark] div {
    color: #e1e1e1 !important;
}

[data-bs-theme=dark] .lead {
    color: #a1a1a1 !important;
}

[data-bs-theme=dark] .text-center h2 {
    color: #e1e1e1 !important;
}

[data-bs-theme=dark] .product-card {
    background-color: #242424 !important;
    border-color: #2c2c2c !important;
}

[data-bs-theme=dark] .footer {
    background-color: #242424;
    border-top: 1px solid #2c2c2c;
}

[data-bs-theme=dark] .modal-content {
    background-color: #242424;
    border-color: #2c2c2c;
}

[data-bs-theme=dark] .text-muted {
    color: #a1a1a1 !important;
}

[data-bs-theme=dark] .table {
    color: #e1e1e1;
}

[data-bs-theme=dark] .table thead th {
    color: #e1e1e1;
}

[data-bs-theme=dark] .table td,
[data-bs-theme=dark] .table th {
    border-color: #2c2c2c;
}

[data-bs-theme=dark] .text-light {
    color: #e1e1e1 !important;
}

[data-bs-theme=dark] .card {
    background-color: #242424;
    border-color: #2c2c2c;
    color: #e1e1e1;
}

[data-bs-theme=dark] .card-header {
    background-color: #1a1a1a;
    border-color: #2c2c2c;
}

[data-bs-theme=dark] .btn-outline-primary {
    color: #3498DB;
    border-color: #3498DB;
}

[data-bs-theme=dark] .btn-outline-primary:hover {
    background-color: #3498DB;
    color: #1a1a1a;
}

/* Order Confirmation Page - Ensure proper text visibility */
.order-details h1,
.order-details h4,
.order-details p,
.order-details strong,
.order-details td,
.order-details th,
.shipping-info h4,
.shipping-info strong,
.shipping-info p {
    color: var(--bs-body-color) !important;
}

[data-bs-theme=dark] .order-details h1,
[data-bs-theme=dark] .order-details h4,
[data-bs-theme=dark] .order-details p,
[data-bs-theme=dark] .order-details strong,
[data-bs-theme=dark] .order-details td,
[data-bs-theme=dark] .order-details th,
[data-bs-theme=dark] .shipping-info h4,
[data-bs-theme=dark] .shipping-info strong,
[data-bs-theme=dark] .shipping-info p {
    color: #e1e1e1 !important;
}

/* Features Section */
.features-section {
    background-color: var(--bs-body-bg);
    padding: 3rem 0;
    border-top: 1px solid var(--bs-border-color);
    border-bottom: 1px solid var(--bs-border-color);
}

.features-section .feature-item {
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.features-section .feature-item:hover {
    transform: translateY(-5px);
}

.features-section .feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.features-section .feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--bs-body-color);
}

.features-section .feature-text {
    color: var(--bs-body-color);
    opacity: 0.8;
}

[data-bs-theme=dark] .features-section {
    background-color: #1a1a1a !important;
    border-color: #2c2c2c !important;
}

[data-bs-theme=dark] .features-section .feature-item {
    background-color: #242424 !important;
    color: #e1e1e1 !important;
}

[data-bs-theme=dark] .features-section .feature-item:hover {
    background-color: #2c2c2c !important;
}

[data-bs-theme=dark] .features-section .feature-icon {
    color: #3498DB !important;
}

[data-bs-theme=dark] .features-section .feature-title {
    color: #e1e1e1 !important;
}

[data-bs-theme=dark] .features-section .feature-text {
    color: #a1a1a1 !important;
}

/* Cart Sidebar Styles */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    z-index: 9999;
    transition: right 0.3s ease;
}

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

.cart-sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.cart-sidebar-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
}

.cart-sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    flex-shrink: 0;
}

.cart-sidebar-header h5 {
    margin: 0;
    font-weight: 600;
    color: #333;
}

.close-cart-sidebar {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-cart-sidebar:hover {
    background: #f8f9fa;
    color: #333;
}

.cart-sidebar-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: white;
}

.cart-sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #eee;
    background: white;
    flex-shrink: 0;
}

/* Empty cart message styling */
.cart-empty-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    min-height: 300px;
    width: 100%;
}

.cart-empty-message i {
    color: #6c757d;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.cart-empty-message p {
    color: #495057;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-align: center;
}

.cart-empty-message .btn {
    margin: 0 auto;
    min-width: 150px;
}

/* Cart sidebar total styling */
.cart-sidebar-total {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    margin-top: 1rem;
}

.cart-sidebar-total-amount {
    font-size: 1.2rem;
    font-weight: 600;
    color: #495057;
    text-align: center;
}

.cart-sidebar-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 0;
            border-bottom: 1px solid #f0f0f0;
        }

        .cart-sidebar-item:last-child {
            border-bottom: none;
        }

        .cart-sidebar-item img {
            width: 60px;
            height: 60px;
            object-fit: cover;
            border-radius: 8px;
            flex-shrink: 0;
        }

        .cart-sidebar-item-info {
            flex: 1;
            min-width: 0;
        }

        .cart-sidebar-item-name {
            font-weight: 600;
            font-size: 0.9rem;
            margin-bottom: 4px;
            color: #333;
            line-height: 1.2;
        }

        .cart-sidebar-item-details {
            font-size: 0.8rem;
            color: #666;
            margin-bottom: 4px;
        }

        .cart-sidebar-item-price {
            font-weight: 600;
            color: var(--secondary-color);
            font-size: 0.9rem;
        }

        .cart-sidebar-item-controls {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 8px;
            flex-shrink: 0;
        }

        .cart-sidebar-qty-controls {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .cart-sidebar-qty-btn {
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 4px;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 0.8rem;
            color: #666;
            transition: all 0.2s ease;
        }

        .cart-sidebar-qty-btn:hover {
            background: #e9ecef;
            color: #333;
        }

        .cart-sidebar-qty {
            font-weight: 600;
            min-width: 20px;
            text-align: center;
            font-size: 0.9rem;
        }

        .cart-sidebar-remove {
            background: none;
            border: none;
            color: #dc3545;
            cursor: pointer;
            padding: 4px;
            border-radius: 4px;
            transition: all 0.2s ease;
        }

        .cart-sidebar-remove:hover {
            background: rgba(220, 53, 69, 0.1);
        }

        .cart-sidebar-total {
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid #eee;
        }

        .cart-sidebar-total-amount {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--secondary-color);
            margin-bottom: 0.5rem;
        }

        /* Dark theme support */
        [data-bs-theme=dark] .cart-sidebar-content {
            background: #242424;
            color: #e1e1e1;
        }

        [data-bs-theme=dark] .cart-sidebar-header {
            background: #242424;
            border-color: #2c2c2c;
        }

        [data-bs-theme=dark] .cart-sidebar-body {
            background: #242424;
        }

        [data-bs-theme=dark] .cart-sidebar-footer {
            background: #242424;
            border-color: #2c2c2c;
        }

        [data-bs-theme=dark] .cart-sidebar-item {
            border-color: #2c2c2c;
        }

        [data-bs-theme=dark] .cart-sidebar-item-name {
            color: #e1e1e1;
        }

        [data-bs-theme=dark] .cart-sidebar-qty-btn {
            background: #2c2c2c;
            border-color: #444;
            color: #e1e1e1;
        }

```text
        [data-bs-theme=dark] .cart-sidebar-qty-btn:hover {
            background: #3c3c3c;
        }

        @media (max-width: 480px) {
            .cart-sidebar-content {
                width: 100%;
            }

            .cart-sidebar-item {
                gap: 10px;
                padding: 10px 0;
            }

            .cart-sidebar-item img {
                width: 50px;
                height: 50px;
            }

            .cart-sidebar-item-name {
                font-size: 0.85rem;
            }

            .cart-sidebar-item-details {
                font-size: 0.75rem;
            }
        }