/* ============================================
   FONT AWESOME 6 DEFINITIES
   ============================================ */

/* @font-face {
    font-family: 'Font Awesome 6 Brands';
    src: url('/assets/webfonts/fa-brands-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    src: url('/assets/webfonts/fa-solid-900.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    src: url('/assets/webfonts/fa-regular-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Koppel de classes aan de juiste families */
/* .fa-brands, 
.fab {
    font-family: 'Font Awesome 6 Brands' !important;
    font-weight: 400;
}

.fa-solid,
.fas {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900;
} */

/* .fa-regular,
.far {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 400;
} */

/* Basis stijl voor alle Font Awesome iconen */
/* .fa,
.fas,
.far,
.fab {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}  */

@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter-semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #ec4899;
    --danger: #dc2626;
    --success: #22c55e;
    --warning: #f59e0b;
    --light: #f8fafc;
    --dark: #0f172a;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --border-radius: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Dark mode variables */
.dark-mode {
    --light: #1e293b;
    --dark: #f8fafc;
    --gray: #94a3b8;
    --light-gray: #334155;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
}

/* html,
body {
    height: 100dvh;
    margin: 0;
    padding: 0;
} */

/* Base transitions */
body,
header,
.sidebar,
.product-card,
.dropdown-content,
.promo-banner,
.feature-card,
.countdown-card,
.shop-card,
footer,
.newsletter,
.newsletter-input,
.btn-outline,
.search-bar input,
.dropdown-btn,
.page-link,
.menu-item,
.dropdown-item,
.theme-toggle-left,
.product-name,
.product-price,
.product-brand,
.section-title,
.countdown-title,
.shop-name,
footer a,
.footer-text,
.footer-title,
.footer-link,
.social-icon,
.payment-icon,
.brand-logo {
    transition: var(--transition);
}

/* Dark mode specific styles */
.dark-mode {
    background-color: #0f172a;
    color: #f8fafc;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.dark-mode header,
.dark-mode .sidebar,
.dark-mode .product-card,
.dark-mode .dropdown-content,
.dark-mode .promo-banner,
.dark-mode .feature-card,
.dark-mode .shop-card,
.dark-mode footer {
    background-color: #1e293b;
    color: #f8fafc;
    border-color: #334155;
}

.dark-mode .dropdown-item,
.dark-mode .theme-toggle-left,
.dark-mode .product-name,
.dark-mode .product-price,
.dark-mode .product-brand,
.dark-mode .section-title,
.dark-mode .countdown-title,
.dark-mode .shop-name,
.dark-mode footer a,
.dark-mode .footer-title,
.dark-mode .rating-count,
.dark-mode .shop-products,
.dark-mode .newsletter-text,
.dark-mode .feature-text {
    color: #f8fafc;
}

/* .dark-mode .menu-item:hover, */
.dark-mode .dropdown-item:hover,
.dark-mode .theme-toggle:hover,
.dark-mode .product-card:hover,
.dark-mode .shop-card:hover,
.dark-mode .brand-card:hover {
    background-color: #334155;
    color: #3b82f6;
}

.dark-mode .menu-item.active {
    background-color: #1e3a8a;
    color: #3b82f6;
}

.dark-mode .btn-outline {
    border-color: #334155;
    color: #f8fafc;
}

.dark-mode .btn-outline:hover {
    background-color: #334155;
    border-color: #94a3b8;
}

.dark-mode .search-bar input {
    background-color: #334155;
    border-color: #475569;
    color: #f8fafc;
}

.dark-mode .search-bar input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.dark-mode .dropdown-item {
    color: #94a3b8;
}

/* Dark mode for filter dropdown */
.dark-mode .dropdown-btn {
    background-color: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

.dark-mode .dropdown-btn:hover {
    border-color: #3b82f6;
}

.dark-mode .dropdown-content {
    background-color: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.dark-mode .dropdown-item {
    color: #94a3b8;
}

/* Dark mode for pagination */
.dark-mode .page-link {
    background-color: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

.dark-mode .page-link:hover {
    background-color: #334155;
    color: #3b82f6;
}

.dark-mode .page-link.active {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Dark mode for newsletter */
.dark-mode .newsletter {
    background-color: #1e293b;
}

.dark-mode .newsletter-input {
    background-color: #334155;
    border-color: #475569;
    color: #f8fafc;
}

.dark-mode .newsletter-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* Dark mode for social icons */
.dark-mode .social-icon {
    background-color: #334155;
    color: #f8fafc;
}

/* Promo banner styles */
.promo-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 16px;
    border-radius: var(--border-radius);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.promo-icon {
    font-size: 24px;
}

.promo-text h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.promo-text p {
    font-size: 14px;
    opacity: 0.9;
}

.promo-btn {
    background-color: white;
    color: var(--primary);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.promo-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Banner Slider */
.banner-slider {
    width: 100%;
    max-width: 1200px;
    height: auto;
    /* Let aspect-ratio handle height */
    position: relative;
    overflow: hidden;
    margin: 0 auto 32px;
    touch-action: pan-y;
    border-radius: 8px;
}

.banner-slides-container {
    display: flex;
    height: auto;
    transition: transform 0.5s ease;
    will-change: transform;
    cursor: grab;
}

.banner-slides-container:active {
    cursor: grabbing;
}

.banner-slide {
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 23 / 6;
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: var(--gray);
    cursor: pointer;
    margin-right: 10px;
}

/* Desktop layout */
@media (min-width: 769px) {
    .banner-slide {
        width: calc(50% - 5px);
        aspect-ratio: 23 / 6;
    }

    .banner-slide:last-child {
        margin-right: 0;
    }
}

/* Scrollbar styles */
.main-scrollbar {
    margin-top: 72px;
    position: fixed;
    right: 2px;
    top: 2px;
    bottom: 2px;
    width: 8px;
    border-radius: 4px;
    background-color: rgba(200, 200, 200, 0.3);
    transition: opacity 0.3s, background-color 0.3s;
    z-index: 10;
    opacity: 0;
}

.main-scrollbar-thumb {
    position: absolute;
    width: 100%;
    height: 0;
    background-color: rgba(100, 100, 100, 0.5);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, height 0.3s;
}

.main-scroll-container:hover .main-scrollbar,
.main-scroll-container.scrolling .main-scrollbar,
.main-scrollbar:hover,
.main-scroll-container:not(.sidebar-open) .main-scrollbar {
    opacity: 1;
}

.main-scrollbar-thumb:hover {
    background-color: rgba(100, 100, 100, 0.7);
}

.dark-mode .main-scrollbar-thumb {
    background-color: rgba(200, 200, 200, 0.5);
}

.dark-mode .main-scrollbar-thumb:hover {
    background-color: rgba(200, 200, 200, 0.7);
}

body.sidebar-open {
    overflow: hidden;
}

/*  */

.nav-search {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
    position: relative;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    transition: color 0.3s ease;
}

#search-modal {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    /* Light mode default */
    z-index: 99;
    display: none;
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, background-color 0.3s ease;
    opacity: 0;
}

#search-modal.show {
    transform: translateY(0);
    opacity: 1;
    display: block;
}

/* Dark mode for search modal */
.dark-mode #search-modal {
    background-color: rgba(15, 23, 42, 0.98);
    /* Dark background */
}

#search-bar {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

#search-box {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

/* Search input styling */
#search-input {
    width: 100%;
    padding: 15px 16px 15px 40px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--dark);
    box-shadow: none;
    transition: var(--transition);
}

.dark-mode #search-input {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

#search-input::placeholder {
    color: var(--gray);
}

#search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dark-mode #search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.3);
}

#search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    transition: color 0.3s ease;
}

/* Search results styling */
#search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    max-height: 400px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    margin-top: 5px;
    display: none;
}

.dark-mode #search-results {
    background-color: rgba(15, 23, 42, 0.98);
    border-color: rgba(255, 255, 255, 0.1);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--light-gray);
    color: var(--dark);
    text-decoration: none;
    gap: 16px;
}

.dark-mode .search-result-item {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f1f5f9;
}

.dark-mode .search-result-item:hover {
    background-color: #334155;
}

.search-result-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-shop {
    font-size: 13px;
    color: var(--gray);
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-left: auto;
    padding-left: 16px;
}

.search-result-meta {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 4px;
}

.search-result-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

.dark-mode .search-result-shop {
    color: rgba(255, 255, 255, 0.7);
}

.no-results {
    padding: 20px;
    text-align: center;
    color: var(--gray);
    font-size: 15px;
}

.dark-mode .no-results {
    color: rgba(255, 255, 255, 0.7);
}

.search-loading {
    display: flex;
    justify-content: center;
    padding: 15px;
}

.search-loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

/* Dark mode styles for search */
.dark-mode #searchModal {
    background-color: rgba(15, 23, 42, 0.98);
}

.dark-mode #search-input {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.dark-mode #search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.3);
}

.dark-mode #search-results {
    background-color: rgba(15, 23, 42, 0.98);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .search-result-item {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .search-result-item:hover {
    background-color: #334155;
}

.dark-mode .search-close {
    color: rgba(255, 255, 255, 0.7);
}

.dark-mode .search-close:hover {
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #search-input {
        padding: 12px 16px 12px 45px;
        font-size: 15px;
    }

    #search-box .fi-br-search {
        left: 15px;
        font-size: 18px;
    }

    .search-close {
        right: 15px;
        font-size: 20px;
    }

    .search-result-item {
        padding: 10px 12px;
    }

    .search-result-image {
        width: 40px;
        height: 40px;
    }
}

.hamburger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: none;
    border: none;
    cursor: pointer;

    color: var(--dark);
    font-size: 27px;
}

/* BELANGRIJK: alleen close-icon absoluut */
.hamburger .fa-bars {
    position: relative;   /* blijft in flow → bepaalt grootte */
    transition: transform 0.3s ease, opacity 0.2s ease;
}

/* overlay icoon */
.hamburger .close-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    
    transition: transform 0.3s ease, opacity 0.2s ease;
    opacity: 0;
}

/* open state */
.hamburger.open .fa-bars {
    opacity: 0;
    transform: rotate(90deg);
}

.hamburger.open .close-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 80;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

.main-content {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    transition: margin-left 0.3s ease;
    position: relative;
}

.main-scroll-container {
    height: calc(100dvh - 72px);
    margin-top: 72px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.main-scroll-container::-webkit-scrollbar {
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 40px;
    /* Adjust this value as needed */
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    user-select: none;
    /* Prevents the image from being selected */
    -webkit-user-select: none;
    /* Safari compatibility */
    -ms-user-select: none;
    /* IE/Edge compatibility */
}

/* Adjust logo for smaller screens */
@media (max-width: 768px) {
    .logo-image {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 30px;
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-actions>* {
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-actions>*:hover,
.nav-actions>*.active {
    color: var(--primary);
}

.nav-actions a {
    text-decoration: none;
}

.cart-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
    font-size: 24px;
    display: flex;
    padding: 8px;
    transition: color 0.3s ease;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--secondary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    height: 20px;
    padding: 0 6px;
    min-width: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
}


#search-link {
    font-size: 24px;
}

.main {
    padding: 48px 0;
    flex: 1;
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 48px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transition: var(--transition);
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    transition: var(--transition);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 24px;
    max-width: 600px;
    transition: var(--transition);
}

.hero-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
}

.hero-btn:hover {
    background-color: var(--primary-dark);
}


/* Features Section */
.features {
    display: grid;
    gap: 24px;
    margin-bottom: 48px;
}

@media (min-width: 1120px) {
    .features {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1119px) and (min-width: 641px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    cursor: default;
}

.feature-card:hover,
.dark-mode .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    font-size: 28px;
    color: var(--primary);
    border-radius: 50%;
    background-color: rgba(37, 99, 235, 0.1);
    margin-bottom: 16px;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.feature-text {
    font-size: 14px;
    color: var(--gray);
}

.dark-mode .feature-card {
    background-color: #1e293b;
    border-color: #334155;
}

/* Section headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    transition: color 0.3s ease;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.view-all:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.view-all i {
    font-size: 14px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
    isolation: isolate;
}

/* Combined Product Card and Wishlist Card Styles */
.product-card,
.wishlist-card,
.email-product-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid var(--light-gray);
    cursor: pointer;
    transform: translateZ(0) translateX(0) translateY(0);
    will-change: transform, box-shadow;
    backface-visibility: hidden;
}

.product-card:hover,
.wishlist-card:hover,
.email-product-card:hover,
.dark-mode .product-card:hover,
.dark-mode .wishlist-card:hover,
.dark-mode .email-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

/* Image Container */
.product-image-container,
.wishlist-image-container,
.email-product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid transparent;
}

.product-image,
.wishlist-image,
.email-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background-size: cover;

}

.product-card:hover .product-image,
.wishlist-card:hover .wishlist-image,
.email-product-card:hover .email-product-image {
    transform: scale(1.05);
}

/* Local Tag */
.local-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: var(--success);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    box-shadow: var(--shadow-sm);
    transition: opacity 0.3s ease;
}

/* Content Area */
.product-info,
.wishlist-content,
.email-product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header with title and shop */
.product-header,
.wishlist-header,
.email-product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 8px;
}

.product-name,
.wishlist-title,
.email-product-name {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: var(--dark);
    line-height: 1.4;
    flex: 1;
}

.product-shop,
.wishlist-shop,
.email-product-shop {
    font-size: 12px;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: rgba(236, 72, 153, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Price Container */
.product-price-container,
.wishlist-price-container,
.email-product-price-container {
    margin: 8px 0 12px;
}

.product-price,
.wishlist-price,
.email-product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

/* Rating */
.product-rating,
.wishlist-rating,
.email-product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 16px;
}

.product-rating .stars,
.wishlist-rating .stars,
.email-product-rating .stars {
    color: var(--warning);
    font-size: 14px;
    letter-spacing: 1px;
}

.product-rating .rating-count,
.wishlist-rating .review-count,
.email-product-rating .rating-count {
    font-size: 13px;
    color: var(--gray);
}

/* Action Buttons */
.product-actions,
.wishlist-actions,
.email-product-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.product-actions .add-to-cart-btn,
.wishlist-actions .add-to-cart-btn,
.email-product-actions .add-to-cart-btn {
    flex: 1;
    padding: 8px;
    font-size: 13px;
}

/* Dark Mode Styles */
.dark-mode .product-card,
.dark-mode .wishlist-card,
.dark-mode .email-product-card {
    background-color: #1e293b;
    border-color: #334155;
}

.dark-mode .product-name,
.dark-mode .wishlist-title,
.dark-mode .email-product-name {
    color: #f8fafc;
}

.dark-mode .product-rating .rating-count,
.dark-mode .wishlist-rating .review-count,
.dark-mode .email-product-rating .rating-count {
    color: #94a3b8;
}

.product-grid,
.wishlist-grid,
.email-products-grid {
    isolation: isolate;
}

.product-card:not(:hover),
.wishlist-card:not(:hover),
.email-product-card:not(:hover) {
    opacity: 1;
    filter: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {

    .product-name,
    .wishlist-title,
    .email-product-name {
        font-size: 14px;
        min-height: 38px;
    }

    .product-price,
    .wishlist-price,
    .email-product-price {
        font-size: 16px;
    }

    .product-actions,
    .wishlist-actions,
    .email-product-actions {
        flex-direction: column;
    }

    .product-actions .move-to-cart-btn,
    .wishlist-actions .move-to-cart-btn,
    .email-product-actions .move-to-cart-btn {
        width: 100%;
    }
}

/* Loading animation */
@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.btn {
    padding: 10px 16px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--light-gray);
    color: var(--dark);
}

.btn-outline:hover {
    background-color: #f8fafc;
    border-color: var(--gray);
}

.dark-mode .btn-outline:hover {
    background-color: #334155;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
    border-color: var(--danger);
}

.btn-danger:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
}

.btn-success {
    background-color: var(--success);
    color: white;
    border-color: var(--success);
}

.btn-success:hover {
    background-color: #16a34a;
    border-color: #16a34a;
}

.btn-icon {
    margin-right: 8px;
    font-size: 14px;
}

/* Shops Carousel */
.shops-section {
    margin-bottom: 48px;
}

.shops-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 16px 0;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
}

.shops-carousel::-webkit-scrollbar {
    display: none;
}

.shops-carousel.dragging {
    scroll-behavior: auto;
    cursor: grabbing;
}

.shop-card {
    scroll-snap-align: start;
    flex: 0 0 210px;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.shop-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.shop-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.shop-info {
    padding: 12px;
    text-align: center;
}

.shop-name {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.shop-products {
    font-size: 13px;
    color: var(--gray);
    transition: color 0.3s ease;
}

/* Brands Section */
.brands-section {
    margin-bottom: 48px;
}

.brands-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 16px 0;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
}

.brands-carousel::-webkit-scrollbar {
    display: none;
}

.brands-carousel.dragging {
    scroll-behavior: auto;
    cursor: grabbing;
}

.brand-card {
    scroll-snap-align: start;
    flex: 0 0 150px;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100px;
}

.shop-card,
.brand-card {
    pointer-events: auto;
}

.shops-carousel.dragging .shop-card,
.brands-carousel.dragging .brand-card {
    pointer-events: none;
}

.brand-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.brand-logo {
    max-width: 100%;
    max-height: 75px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.brand-card:hover .brand-logo {
    filter: grayscale(0%);
    opacity: 1;
}

/* Newsletter Section */
/* .newsletter {
    background-color: #f1f5f9;
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    margin-bottom: 48px;
    transition: background-color 0.3s ease;
}

.newsletter-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    transition: var(--transition);
}

.newsletter-text {
    color: var(--gray);
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transition: var(--transition);
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 16px;
    outline: none;
    transition: var(--transition);
}

.newsletter-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.newsletter-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background-color: var(--primary-dark);
} */

/* Footer */
footer {
    background-color: white;
    color: var(--dark);
    padding: 48px 0;
    margin-top: auto;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark);
    transition: color 0.3s ease;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: var(--gray) !important;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 400;
}

.footer-link:hover {
    color: var(--primary) !important;
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-text {
    color: var(--gray);
    font-size: 14px;
    text-align: start;
    transition: color 0.3s ease;
}

.footer-payments {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.payment-icon {
    width: 40px;
    height: 25px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.payment-icon:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .hero {
        height: 400px;
    }

    .hero-title {
        font-size: 36px;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-slide h2 {
        font-size: 28px;
    }

    .promo-slide p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 350px;
    }

    .hero-content {
        padding: 24px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input {
        border-radius: var(--border-radius);
        margin-bottom: 8px;
    }

    .newsletter-btn {
        border-radius: var(--border-radius);
    }

    .promo-slide h2 {
        font-size: 24px;
    }

    .promo-slide p {
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        height: 300px;
    }

    .hero-title {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .hero-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-column {
        align-items: center;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .promo-slide-content {
        padding: 20px;
    }

    .promo-slide h2 {
        font-size: 20px;
    }

    .promo-slide p {
        font-size: 12px;
    }
}

/* Product page /*

        /* Breadcrumb Styles */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb i {
    font-size: 12px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

@media (max-width: 640px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* Filter Dropdown Styles */
.dropdown {
    position: relative;
    width: 240px;
    z-index: 50;
}

.dropdown-btn {
    width: 100%;
    padding: 12px 16px;
    background-color: white;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

.dropdown-btn:hover {
    border-color: var(--primary-light);
}

.dropdown-btn:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}


/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    margin-bottom: 48px;
}

.page-link {
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--light-gray);
    transition: var(--transition);
}

.page-link:hover {
    background-color: #f8fafc;
}

.page-link.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.dark-mode .page-link {
    background-color: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

.dark-mode .page-link:hover {
    background-color: #334155;
    color: #3b82f6;
}

.dark-mode .page-link.active {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 22px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.dark-mode .scroll-to-top {
    background-color: var(--primary);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Updated Shop Header Styles */
.shop-header {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.shop-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('./img/shop-hero.webp') center/cover no-repeat;
}

.shop-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.shop-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: #f8fafc;
}

.shop-year {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    color: #94a3b8;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .shop-header {
        height: 180px;
    }

    .shop-title {
        font-size: 36px;
    }

    .shop-year {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .shop-header {
        height: 150px;
    }

    .shop-title {
        font-size: 28px;
    }

    .shop-year {
        font-size: 16px;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 600px;
    max-height: 65vh;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--light-gray);
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
}

.modal-close:focus {
    outline: none;
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    position: relative;
    flex: 1;
    min-height: 0;        
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-body .form-group {
    margin-bottom: 16px;
}

.modal-body-scroll-container {
    width: 100%;
    flex: 1;             
    min-height: 0;      
    padding: 16px;
    overflow-y: auto;
    scrollbar-width: none;
}

.modal-body p {
    margin-bottom: 16px;
}

.modal-body label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
}

.modal-body input,
.modal-body select,
.modal-body textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 15px;
    transition: var(--transition);
}

.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modal-body textarea {
    min-height: 100px;
    resize: vertical;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--light-gray);
}

.dark-mode .modal-header {
    border-bottom-color: #334155;
}

.dark-mode .modal-body input,
.dark-mode .modal-body select,
.dark-mode .modal-body textarea {
    background-color: #334155;
    border-color: #475569;
    color: white;
}

.dark-mode .modal-body input:focus,
.dark-mode .modal-body select:focus,
.dark-mode .modal-body textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.modal-body-scroll-container::-webkit-scrollbar {
    display: none;
    /* Hide default scrollbar in WebKit */
}

.modal-scrollbar {
    position: absolute;
    right: 4px;
    top: 2px;
    bottom: 2px;
    width: 8px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1001;
    height: auto;
}

.modal-scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease, height 0.3s ease;
}

.modal-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

/* Dark mode styles */
.dark-mode .modal-scrollbar {
    background-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .modal-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
}

.dark-mode .modal-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    transition: border-color 0.3s ease;
}

/* Remove arrows from number inputs */
input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Combined Dropdown Styles */
.custom-dropdown {
    position: relative;
    min-width: 200px;
    width: 100%;
    max-width: 275px;
    margin-bottom: 16px;
}

.shop-filter-dropdown {
    position: relative;
    width: 240px;
}

.custom-dropdown-toggle,
.shop-filter-toggle {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    background-color: var(--light);
    color: var(--dark);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    height: 40px;
    user-select: none;
}

.custom-dropdown-toggle:hover,
.shop-filter-toggle:hover {
    border-color: var(--primary);
}

.custom-dropdown-toggle:focus,
.shop-filter-toggle:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.custom-dropdown-toggle i,
.shop-filter-toggle i {
    transition: transform 0.2s ease;
}

.custom-dropdown-toggle.active i,
.shop-filter-toggle.active i {
    transform: rotate(180deg);
}

.custom-dropdown-menu,
.shop-filter-menu {
    position: absolute;
    overflow: hidden;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background-color: var(--light);
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    z-index: 100;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    visibility: hidden;
    max-height: 0;
}

.custom-dropdown-menu.show,
.shop-filter-menu.show {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.custom-dropdown-menu-content {
    max-height: 498px;
    border-radius: var(--border-radius);
}

.shop-filter-menu-content {
    max-height: 500px;
}

.custom-dropdown-item,
.shop-filter-item {
    padding: 8px 16px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.custom-dropdown-item:first-child,
.shop-filter-item:first-child {
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.custom-dropdown-item:last-child,
.shop-filter-item:last-child {
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.custom-dropdown-item:hover,
.shop-filter-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.custom-dropdown-item.active,
.shop-filter-item.active {
    background-color: var(--primary-light);
    color: white;
}

/* Dark mode specific styles */
.dark-mode .custom-dropdown-toggle,
.dark-mode .shop-filter-toggle {
    background-color: var(--light);
    border-color: var(--light-gray);
    color: var(--dark);
}

.dark-mode .custom-dropdown-menu,
.dark-mode .shop-filter-menu {
    background-color: var(--light);
    border-color: var(--light-gray);
}

.dark-mode .custom-dropdown-item:hover,
.dark-mode .shop-filter-item:hover,
.dark-mode .shop-filter-item.active:hover {
    background-color: #334155;
}

.dark-mode .custom-dropdown-item.active,
.dark-mode .shop-filter-item.active {
    background-color: var(--primary);
}

@media (max-width: 768px) {
    .shop-filter-dropdown {
        width: 200px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .shop-filter-dropdown {
        width: 100%;
    }

    .shop-filter-menu {
        width: 100%;
    }

    .section-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
}

/* File Upload */
.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload-input {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px dashed var(--light-gray);
    border-radius: var(--border-radius);
    background-color: rgba(0, 0, 0, 0.05);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-label:hover {
    border-color: var(--primary);
}

.file-upload-icon {
    font-size: 24px;
    color: var(--gray);
    transition: color 0.3s ease;
}

.file-upload-text {
    color: var(--gray);
    font-size: 14px;
    transition: color 0.3s ease;
}

.file-upload-text strong {
    color: var(--primary);
}

.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.file-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.file-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    border: none;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 24px;
    transition: border-color 0.3s ease;
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.dark-mode .modal-content {
    background-color: #1e293b;
    border-color: #334155;
}

.support-btn {
    margin-top: 20px;
    padding: 10px 16px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    width: fit-content;
}

.support-btn i {
    font-size: 14px;
}

.support-btn:hover {
    transform: translateY(-2px);
}


/* Saved Cart Modal Item */
.saved-cart-modal-item {
    padding: 12px;
    border-radius: var(--border-radius);
    margin-bottom: 8px;
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: white;
    cursor: pointer;
}

@media (min-width: 576px) {
    .saved-cart-modal-item {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 16px;
    }
}

.dark-mode .saved-cart-modal-item {
    border-color: #334155;
    background-color: #1e293b;
}

.saved-cart-modal-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.saved-cart-modal-item.selected {
    background-color: rgba(37, 99, 235, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.dark-mode .saved-cart-modal-item.selected {
    background-color: rgba(37, 99, 235, 0.2);
}

.saved-cart-modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

@media (min-width: 576px) {
    .saved-cart-modal-icon {
        width: 48px;
        height: 48px;
    }
}

.saved-cart-modal-info {
    flex: 1;
    min-width: 0;
}

.saved-cart-modal-name {
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
}

.saved-cart-modal-details {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: var(--gray);
    flex-wrap: wrap;
}

.saved-cart-modal-details span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.saved-cart-modal-total {
    font-weight: 700;
    color: var(--primary);
    font-size: 15px;
    margin-left: auto;
    padding-left: 8px;
    flex-shrink: 0;
}

.saved-cart-modal-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    width: 100%;
}

@media (min-width: 576px) {
    .saved-cart-modal-actions {
        width: auto;
    }
}

.select-cart-btn {
    min-width: 100%;
    font-size: 14px;
}

@media (min-width: 576px) {
    .select-cart-btn {
        min-width: 100px;
    }
}

.select-cart-btn.selected {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.select-cart-btn.selected:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Empty state for modal */
.saved-carts-modal-empty {
    text-align: center;
    padding: 24px;
    color: var(--gray);
}

.saved-carts-modal-empty i {
    font-size: 40px;
    color: var(--light-gray);
    margin-bottom: 12px;
    display: block;
}

.dark-mode .saved-carts-modal-empty i {
    color: #334155;
}


.saved-carts-modal-list {
    margin-top: 16px;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .container {
        padding: 0 12px;
    }

    .cart-container {
        padding: 16px;
    }

    .cart-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cart-header-right {
        width: 100%;
        justify-content: space-between;
    }

    .view-saved-carts-btn {
        flex: 1;
        text-align: center;
    }

    .item-count {
        flex: 1;
        text-align: center;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        width: 100%;
    }

    .saved-cart-modal-actions {
        flex-direction: column;
    }

    .saved-cart-modal-actions .btn {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .cart-title {
        font-size: 24px;
    }
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--gray);
    margin-top: 4px;
}

.checkbox-label {
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.new-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: var(--secondary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    box-shadow: var(--shadow-sm);
    transition: opacity 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.new-tag:hover {
    opacity: 0.9;
}

.dark-mode .new-tag {
    background-color: var(--secondary);
    color: white;
}

.product-price-container,
.email-product-price-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.product-price-container.with-old-price {
    flex-direction: row;
    align-items: center;
}

.product-old-price,
.email-product-old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.85em;
    order: 2;
}

.product-card .product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    order: 1;
}

.sidebar-search {
    margin-bottom: 8px;
}

.sidebar-search .search-bar {
    position: relative;
    margin-bottom: 0;
}

.sidebar-search .search-bar i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 14px;
}

.sidebar-search .search-bar input {
    width: 100%;
    padding: 15px 16px 15px 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--light-gray);
    background-color: white;
    font-size: 14px;
    transition: var(--transition);
    color: var(--dark);
}

.dark-mode .sidebar-search .search-bar input {
    background-color: #334155;
    border-color: #475569;
    color: #f8fafc;
}

.sidebar-search .search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dark-mode .sidebar-search .search-bar input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.sidebar-search .search-bar input::placeholder {
    color: var(--gray);
}

.dark-mode .sidebar-search .search-bar input::placeholder {
    color: #94a3b8;
}


.donation-section {
    background-color: white;
    border-radius: var(--border-radius);
    margin: 64px 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray);
    transition: var(--transition);
}

.dark-mode .donation-section {
    background-color: #1e293b;
    border-color: #334155;
}

.donation-container {
    display: flex;
    align-items: center;
    gap: 48px;
}

.donation-content {
    flex: 1;
    padding: 48px;
}

.donation-image {
    max-height: 330px;
    min-width: 300px;
    aspect-ratio: 3 / 2;
}

.donation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.donation-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
    transition: color 0.3s ease;
}

.donation-text {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 24px;
    transition: color 0.3s ease;
}

.dark-mode .donation-text {
    color: #94a3b8;
}

@media (max-width: 1024px) {
    .donation-container {
        gap: 24px;
    }

    .donation-content {
        padding: 32px;
    }
}

@media (max-width: 900px) {
    .donation-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 24px;
    }

    .donation-content {
        padding: 24px;
    }

    .donation-image {
        width: 100%;
        min-width: auto;
        max-height: 250px;
    }

    .donation-title {
        font-size: 24px;
    }

    .donation-text {
        font-size: 15px;
    }

    .donation-btn {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .donation-content {
        padding: 20px;
    }

    .donation-title {
        font-size: 22px;
    }

    .donation-btn {
        width: 100%;
        justify-content: center;
        padding: 14px;
    }
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    cursor: default;
}

.dark-mode .stat-card {
    background-color: #1e293b;
    border-color: #334155;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.stat-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--danger);
}