/**
 * KAWADEMA NETWORK - Marketplace Styles
 * Design moderne, premium, professionnel - Mobile-first
 * Révisé par un développeur frontend senior
 */

:root {
    /* Couleurs principales - Alignées avec le design system du projet */
    --primary-50: #fef2f2;
    --primary-100: #fee2e2;
    --primary-200: #fecaca;
    --primary-300: #fca5a5;
    --primary-400: #f87171;
    --primary-500: #1F3A5F; /* Bleu foncé principal */
    --primary-600: #192e4c;
    --primary-700: #780a1e;
    --primary-800: #500714;
    --primary-900: #28050a;
    
    /* Grays - Design system */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Spacing system */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Shadows - Elevation system */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.marketplace-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--gray-900);
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Garantir que le scroll fonctionne toujours sur desktop */
@media (min-width: 769px) {
    body.marketplace-page {
        overflow: auto !important;
        position: static !important;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ============================================
   HEADER - Design Premium avec Glassmorphism
   ============================================ */
.marketplace-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition-base);
}

.marketplace-header.scrolled {
    box-shadow: var(--shadow-lg);
}

.header-top {
    border-bottom: 1px solid var(--gray-200);
}

.header-top-content {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: var(--spacing-xl);
    padding: var(--spacing-md) 0;
    min-height: 72px;
    position: relative;
    z-index: 1001;
}

/* User Country Display */
.user-country-display {
    display: flex;
    align-items: center;
    min-height: 32px;
}

.user-country-display:empty {
    min-height: 0;
}

.country-badge {
    display: flex !important;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    color: var(--gray-700) !important;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    opacity: 1;
    visibility: visible;
}

.country-badge:hover {
    background: var(--gray-200);
    border-color: var(--gray-300);
    color: var(--gray-900) !important;
}

.country-flag {
    font-size: 1.125rem;
    line-height: 1;
    display: inline-block;
}

.country-name {
    white-space: nowrap;
    display: inline-block;
}

/* Logo - Design moderne */
.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: var(--primary-600);
    font-weight: 700;
    font-size: 1.375rem;
    letter-spacing: -0.02em;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(200, 16, 46, 0.2));
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Search Bar - Design moderne avec focus states */
.search-bar-wrapper {
    max-width: 600px;
    width: 100%;
    min-width: 300px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xs);
}

.search-form:focus-within {
    background: white;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.1), var(--shadow-md);
    transform: translateY(-1px);
}

.search-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: none;
    background: transparent;
    font-size: 0.9375rem;
    color: var(--gray-900);
    outline: none;
}

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

.search-btn {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    margin-right: 2px;
    border-radius: var(--radius-full);
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
    transform: scale(1.05);
}

.search-btn:active {
    transform: scale(0.98);
}

.search-btn svg {
    width: 20px;
    height: 20px;
}

/* Search Results Dropdown - Design moderne */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-top: var(--spacing-sm);
    box-shadow: var(--shadow-xl);
    max-height: 500px;
    overflow-y: auto;
    display: none;
    z-index: 99999 !important;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-results-dropdown.show {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    text-decoration: none;
    color: var(--gray-900);
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition-fast);
}

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

.search-result-item:hover {
    background: var(--gray-50);
}

.search-result-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

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

.search-result-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-600);
}

/* Header Actions - Design moderne avec badges animés */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    justify-self: end;
}

.action-btn {
    position: relative;
    padding: var(--spacing-sm);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-700);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    width: 44px;
    height: 44px;
}

.action-btn:hover {
    background: var(--gray-100);
    color: var(--primary-600);
    transform: translateY(-2px);
}

.action-btn svg {
    width: 22px;
    height: 22px;
    transition: transform var(--transition-fast);
}

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

.action-btn {
    position: relative;
}

.action-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: white;
    border-radius: var(--radius-full);
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0 0.375rem;
    box-shadow: 0 2px 4px rgba(200, 16, 46, 0.3);
    animation: pulse 2s infinite;
    z-index: 10;
    line-height: 1;
}

.action-btn .badge:empty,
.action-btn .badge[style*="display: none"] {
    display: none !important;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* User Avatar & Menu - Design premium */
.user-avatar-btn {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    position: relative;
}

.user-avatar-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    transition: border-color var(--transition-base);
}

.user-avatar-btn:hover::before {
    border-color: var(--primary-500);
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--gray-200);
    transition: border-color var(--transition-base);
    display: block;
}

.user-avatar-placeholder {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #9ca3af;
    font-weight: 600;
    font-size: 18px;
    border: 2px solid var(--gray-200);
    transition: border-color var(--transition-base);
}

.user-avatar-placeholder.hidden {
    display: none !important;
}

.user-avatar-btn:hover .user-avatar {
    border-color: var(--primary-500);
}

.user-avatar-btn:hover .user-avatar-placeholder {
    border-color: var(--primary-500);
}

.user-menu-wrapper {
    position: relative;
    z-index: 1002;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    margin-top: var(--spacing-sm);
    min-width: 220px;
    display: none;
    z-index: 1002;
    animation: slideDown 0.2s ease-out;
    overflow: hidden;
}

.user-menu-dropdown.show {
    display: block;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.875rem var(--spacing-md);
    color: var(--gray-700);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 0.9375rem;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.menu-item:hover {
    background: var(--gray-50);
    color: var(--primary-600);
    padding-left: 1.25rem;
}

.menu-item.logout-btn {
    color: #dc2626;
}

.menu-item.logout-btn:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.menu-divider {
    height: 1px;
    background: var(--gray-200);
    margin: var(--spacing-xs) 0;
}

/* Main Navigation - Design moderne avec indicateur actif */
.main-nav {
    background: var(--primary-500);
    border-bottom: 1px solid var(--primary-600);
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    overflow: visible !important;
}

.main-nav .container {
    display: flex;
    justify-content: center;
    position: relative;
    padding: 0.25rem 0;
    overflow: visible !important;
}

.main-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1.5px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-600), var(--primary-500));
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
    z-index: 1;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    gap: 0;
    overflow-x: auto;
    overflow-y: visible !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    position: relative;
    z-index: 2;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-item {
    position: relative;
    flex-shrink: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    color: white;
    font-weight: 600;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    margin-top: 0;
    white-space: nowrap;
    background: transparent;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 0;
    height: 2px;
    background: white;
    border-radius: var(--radius-full) var(--radius-full) 0 0;
    transition: all var(--transition-base);
    z-index: 3;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    transform: none;
    box-shadow: none;
}

.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 700;
    box-shadow: none;
}

.nav-link.active::after,
.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
    width: 80%;
}

.nav-link svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.nav-item-with-mega:hover .nav-link svg {
    transform: rotate(180deg);
}

/* Mega Menu - Menu déroulant pour les branches */
.nav-item-with-mega {
    position: relative !important;
}

.nav-item-with-mega:hover {
    z-index: 1002 !important;
}

.nav-item-with-mega .nav-link {
    padding-right: 0.5rem;
}

.nav-item-with-mega:hover .nav-link svg {
    transform: rotate(180deg);
}

/* Conteneur pour la navbar et le megamenu */
.nav-wrapper {
    position: relative;
    overflow: visible;
}

.mega-menu {
    position: absolute !important;
    top: calc(100% - 8px) !important; /* Monter un peu (8px au-dessus de 100%) */
    left: 50% !important;
    bottom: auto;
    transform: translateX(-50%) translateY(-18px); /* Ajuster pour compenser le top */
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
    min-width: 900px;
    max-width: 1200px;
    width: max-content;
    display: none;
    opacity: 0;
    z-index: 999 !important; /* Derrière le menu principal (z-index: 1000) */
    margin-top: 0;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    overflow-x: visible;
    max-height: calc(100vh - 200px); /* S'assurer que le megamenu ne dépasse pas l'écran */
    will-change: transform, opacity, visibility;
}

.mega-menu.mega-menu-open {
    display: block !important;
    opacity: 1 !important;
    transform: translateX(-50%) translateY(-8px) !important; /* Monter un peu */
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 999 !important; /* Derrière le menu principal (z-index: 1000) */
    position: absolute !important; /* Position absolute pour rester attaché à la navbar */
    animation: slideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* S'assurer que le méga-menu reste centré même avec scroll */
@media (min-width: 1025px) {
    .mega-menu {
        left: 50% !important;
        transform: translateX(-50%) translateY(-18px); /* Ajuster pour compenser le top */
    }
    
    .mega-menu.mega-menu-open {
        transform: translateX(-50%) translateY(-8px) !important; /* Monter un peu */
    }
}

/* Loader pour le méga-menu */
.mega-menu-loader {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
    min-height: 300px;
    color: white;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.05), rgba(200, 16, 46, 0.02));
}

.mega-menu-loader p {
    margin-top: var(--spacing-md);
    font-size: 0.9375rem;
    color: var(--gray-600);
}

.mega-menu-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary-600);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.mega-menu-empty {
    padding: var(--spacing-2xl);
    text-align: center;
    color: var(--gray-600);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mega-menu-empty p {
    margin: 0;
    font-size: 1rem;
}


@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
        visibility: hidden;
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        visibility: visible;
    }
}

/* S'assurer que le méga-menu reste centré même avec scroll */
@media (min-width: 1025px) {
    .mega-menu {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) translateY(-10px);
    }
    
    .mega-menu.mega-menu-open {
        transform: translateX(-50%) translateY(0) !important;
    }
}

/* Mega Menu Content */
.mega-menu-content {
    width: 100%;
}

.mega-menu-wrapper {
    display: flex;
    gap: 0;
    min-height: 400px;
}

/* Section gauche : Grille de catégories */
.mega-menu-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    padding: var(--spacing-xl);
    flex: 1;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

.mega-menu-categories-grid::-webkit-scrollbar {
    width: 6px;
}

.mega-menu-categories-grid::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.mega-menu-categories-grid::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.mega-menu-categories-grid::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

.mega-menu-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.mega-menu-category-block {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    position: relative;
}

.mega-menu-category-image,
.mega-menu-category-icon {
    margin-bottom: var(--spacing-sm);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--gray-50);
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.mega-menu-category-image img,
.mega-menu-category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.mega-menu-category-image:hover img,
.mega-menu-category-icon:hover img {
    transform: scale(1.05);
}

.mega-menu-category-image a,
.mega-menu-category-icon a {
    display: block;
    width: 100%;
    height: 100%;
}

.mega-menu-category-title {
    margin: 0;
    padding: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.mega-menu-category-title a {
    color: var(--gray-900);
    text-decoration: none;
    display: block;
    padding: var(--spacing-xs) 0;
    transition: all var(--transition-fast);
}

.mega-menu-category-title a:hover {
    color: var(--primary-600);
    padding-left: var(--spacing-xs);
}

.mega-menu-subcategories {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding-left: var(--spacing-sm);
}

.mega-menu-subcategories li {
    margin: 0;
}

.mega-menu-subcategories a {
    display: block;
    padding: var(--spacing-xs) 0;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    transition: all var(--transition-fast);
    line-height: 1.5;
}

.mega-menu-subcategories a:hover {
    color: var(--primary-600);
    padding-left: var(--spacing-xs);
}

.mega-menu-view-all-link {
    display: inline-block;
    margin-top: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    color: var(--primary-600);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
    background: var(--primary-50);
    width: fit-content;
}

.mega-menu-view-all-link:hover {
    background: var(--primary-100);
    color: var(--primary-700);
    transform: translateX(4px);
}

/* Section droite : Promotion */
.mega-menu-promo-section {
    width: 300px;
    min-width: 300px;
    background: var(--gray-50);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-left: 1px solid var(--gray-200);
}

.mega-menu-promo-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.mega-menu-promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.mega-menu-promo-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gray-400);
}

.mega-menu-promo-image-placeholder svg {
    width: 60px;
    height: 60px;
}

.mega-menu-promo-content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    flex: 1;
}

.mega-menu-promo-title {
    margin: 0;
    padding: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
}

.mega-menu-promo-subtitle {
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.mega-menu-promo-btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--primary-600);
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-align: center;
    margin-top: auto;
    width: fit-content;
}

.mega-menu-promo-btn:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Dropdown Items */
.dropdown-item {
    position: relative;
    list-style: none;
    margin: 0;
}

/* Ajuster le positionnement du sous-menu pour éviter qu'il sorte de l'écran */
.dropdown-item:last-child .dropdown-submenu {
    top: auto;
    bottom: 0;
}

.dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
    position: relative;
}

.dropdown-link::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 6px;
    border-color: transparent transparent transparent var(--gray-400);
    opacity: 0;
    transition: opacity var(--transition-fast);
    margin-left: var(--spacing-sm);
}

.dropdown-item:hover .dropdown-link::after {
    opacity: 1;
}

.dropdown-link:hover {
    background: linear-gradient(90deg, var(--primary-50) 0%, var(--gray-50) 100%);
    color: var(--primary-600);
    border-left-color: var(--primary-600);
    padding-left: calc(var(--spacing-lg) - 3px);
    transform: translateX(2px);
}

/* Dropdown Submenu */
.dropdown-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-sm) 0;
    min-width: 220px;
    max-width: 280px;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    list-style: none;
    margin: 0;
    margin-left: var(--spacing-xs);
    z-index: 1002;
}

.dropdown-item:hover .dropdown-submenu {
    display: block;
    animation: slideDown 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-submenu li {
    margin: 0;
    list-style: none;
}

.dropdown-submenu a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    transition: all var(--transition-fast);
    border-left: 2px solid transparent;
    position: relative;
}

.dropdown-submenu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--gray-400);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.dropdown-submenu a:hover {
    background: linear-gradient(90deg, var(--primary-50) 0%, var(--gray-50) 100%);
    color: var(--primary-600);
    padding-left: calc(var(--spacing-md) + 8px);
    border-left-color: var(--primary-300);
    transform: translateX(2px);
}

.dropdown-submenu a:hover::before {
    opacity: 1;
    background: var(--primary-600);
}

/* Dropdown Footer */
.dropdown-footer {
    border-top: 1px solid var(--gray-200);
    margin-top: var(--spacing-xs);
    padding-top: var(--spacing-xs);
    list-style: none;
}

.dropdown-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--primary-600);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-fast);
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    margin-top: var(--spacing-xs);
}

.dropdown-view-all::after {
    content: '→';
    display: inline-block;
    transition: transform var(--transition-fast);
}

.dropdown-view-all:hover {
    background: var(--primary-50);
    color: var(--primary-700);
    border-top-color: var(--primary-200);
}

.dropdown-view-all:hover::after {
    transform: translateX(4px);
}

/* Scrollbar pour dropdown */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

.mega-menu-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 0;
    padding: 0;
}

/* Section gauche : Grille de catégories */
.mega-menu-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    padding: var(--spacing-xl);
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Style de scrollbar pour le méga-menu */
.mega-menu-categories-grid::-webkit-scrollbar {
    width: 6px;
}

.mega-menu-categories-grid::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.mega-menu-categories-grid::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 3px;
}

.mega-menu-categories-grid::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

.mega-menu-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.mega-menu-category-block {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.mega-menu-category-title {
    margin: 0 0 var(--spacing-sm) 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.mega-menu-category-title a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.mega-menu-category-title a:hover {
    color: var(--primary-600);
}

.mega-menu-subcategories {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.mega-menu-subcategories li {
    margin: 0;
}

.mega-menu-subcategories a {
    display: block;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
    padding: 4px 0;
    line-height: 1.5;
}

.mega-menu-subcategories a:hover {
    color: var(--primary-600);
}

.mega-menu-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #f97316;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: var(--spacing-sm);
    transition: all var(--transition-fast);
}

.mega-menu-view-all-link::after {
    content: '→';
    display: inline-block;
    transition: transform var(--transition-fast);
}

.mega-menu-view-all-link:hover {
    color: #ea580c;
}

.mega-menu-view-all-link:hover::after {
    transform: translateX(4px);
}

/* Section droite : Promotion */
.mega-menu-promo-section {
    background: var(--primary-500);
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    height: 100%;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.mega-menu-promo-image {
    width: 100%;
    height: 250px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

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

.mega-menu-promo-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

.mega-menu-promo-image-placeholder svg {
    width: 80px;
    height: 80px;
}

.mega-menu-promo-icon {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
}

.mega-menu-promo-icon-placeholder {
    width: 120px;
    height: 120px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
}

.mega-menu-promo-icon-placeholder svg {
    width: 64px;
    height: 64px;
}

.mega-menu-promo-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mega-menu-promo-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    justify-content: flex-start;
}

.mega-menu-promo-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.4;
}

.mega-menu-promo-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.5;
}

.mega-menu-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-lg);
    background: white;
    color: var(--primary-500);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition-base);
    border: 2px solid white;
    margin-top: var(--spacing-md);
    width: fit-content;
}

.mega-menu-promo-btn::after {
    content: '→';
    display: inline-block;
    margin-left: 4px;
    transition: transform var(--transition-fast);
}

.mega-menu-promo-btn:hover {
    background: var(--primary-600);
    color: white;
    border-color: var(--primary-600);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mega-menu-promo-btn:hover::after {
    transform: translateX(4px);
}

/* Indicateurs de carrousel */
.mega-menu-promo-indicators {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: auto;
    padding-top: var(--spacing-md);
}

.mega-menu-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.mega-menu-indicator.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

.mega-menu-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--spacing-md);
}

.mega-menu-product {
    text-decoration: none;
    color: var(--gray-900);
    transition: transform var(--transition-base);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.mega-menu-product:hover {
    transform: translateY(-4px);
}

.mega-menu-product img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    transition: transform var(--transition-base);
}

.mega-menu-product:hover img {
    transform: scale(1.05);
}

.mega-menu-product .product-name {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--gray-900);
}

.mega-menu-product .product-price {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-600);
}

/* ============================================
   BRANCHES SLIDER - Design moderne avec hover effects
   ============================================ */
.branches-slider-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, var(--gray-50) 0%, white 100%);
    position: relative;
    overflow: hidden;
}

.branches-slider-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gray-200), transparent);
}

.branches-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--spacing-lg);
}

.branch-slide {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
    position: relative;
    cursor: pointer;
}

.branch-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.05), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
    pointer-events: none;
}

.branch-slide:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-300);
}

.branch-slide:hover::before {
    opacity: 1;
}

.branch-link {
    display: block;
    text-decoration: none;
    color: var(--gray-900);
    position: relative;
    z-index: 2;
}

.branch-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform var(--transition-slow);
    background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
}

.branch-slide:hover .branch-image {
    transform: scale(1.1);
}

.branch-icon-wrapper {
    width: 100%;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-50), var(--gray-50));
    color: var(--primary-600);
    transition: background var(--transition-base);
}

.branch-slide:hover .branch-icon-wrapper {
    background: linear-gradient(135deg, var(--primary-100), var(--primary-50));
}

.branch-icon {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 8px rgba(200, 16, 46, 0.2));
    transition: transform var(--transition-base);
}

.branch-slide:hover .branch-icon {
    transform: scale(1.1) rotate(5deg);
}

.branch-content {
    padding: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.branch-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--gray-900);
    letter-spacing: -0.01em;
    transition: color var(--transition-fast);
}

.branch-slide:hover .branch-name {
    color: var(--primary-600);
}

.branch-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   HERO SLIDER - Slider principal moderne
   ============================================ */
.hero-slider-section {
    position: relative;
    margin-bottom: var(--spacing-2xl);
    overflow: hidden;
    z-index: 1;
}

.hero-slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 0;
    overflow: hidden;
    background: var(--gray-900);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.hero-slide-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-slide.active .hero-slide-image {
    transform: scale(1.05);
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
}

.hero-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-3xl) var(--spacing-lg);
    z-index: 2;
    color: white;
    transform: translateY(20px);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hero-slide-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 var(--spacing-md) 0;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
    max-width: 800px;
}

.hero-slide-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin: 0 0 var(--spacing-lg) 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    opacity: 0.95;
}

.hero-slide-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: white;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition-base);
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.4);
    margin-top: var(--spacing-md);
}

.hero-slide-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(200, 16, 46, 0.5);
    background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
}

.hero-slide-cta svg {
    transition: transform var(--transition-base);
}

.hero-slide-cta:hover svg {
    transform: translateX(4px);
}

/* Navigation Buttons */
.hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--gray-900);
}

.hero-slider-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.hero-slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.hero-slider-prev {
    left: var(--spacing-lg);
}

.hero-slider-next {
    right: var(--spacing-lg);
}

/* Pagination Dots */
.hero-slider-pagination {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-sm);
    z-index: 10;
}

.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.hero-slider-dot:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.hero-slider-dot.active {
    background: white;
    border-color: white;
    width: 32px;
    border-radius: var(--radius-full);
}

/* Progress Bar */
.hero-slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.hero-slider-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(200, 16, 46, 0.5);
}

.hero-slide.active ~ .hero-slide .hero-slider-progress-bar {
    width: 0%;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-slider-container {
        height: 400px;
    }
    
    .hero-slide-title {
        font-size: 2.25rem;
    }
    
    .hero-slide-description {
        font-size: 1.125rem;
    }
    
    .hero-slider-nav {
        width: 48px;
        height: 48px;
    }
    
    .hero-slider-prev {
        left: var(--spacing-md);
    }
    
    .hero-slider-next {
        right: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .hero-slider-container {
        height: 350px;
    }
    
    .hero-slide-content {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .hero-slide-title {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-slide-description {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-slide-cta {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.9375rem;
    }
    
    .hero-slider-nav {
        width: 40px;
        height: 40px;
        opacity: 0.8;
    }
    
    .hero-slider-prev {
        left: var(--spacing-sm);
    }
    
    .hero-slider-next {
        right: var(--spacing-sm);
    }
    
    .hero-slider-pagination {
        bottom: var(--spacing-lg);
    }
    
    .hero-slider-dot {
        width: 10px;
        height: 10px;
    }
    
    .hero-slider-dot.active {
        width: 24px;
    }
}

/* ============================================
   BANNER SECTIONS - Design moderne premium
   ============================================ */
.banner-section {
    padding: var(--spacing-3xl) 0;
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(249, 250, 251, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
}

.banner-carousel {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    padding: var(--spacing-md) 0;
    width: 100%;
}

/* Scrollbar supprimée car les bannières sont maintenant en colonne */

.banner-item {
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
    background: white;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    width: 100%;
    max-width: 100%;
}

.banner-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-300);
}

.banner-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0) 0%, rgba(200, 16, 46, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
    pointer-events: none;
}

.banner-item:hover::before {
    opacity: 1;
}

.banner-item a {
    display: block;
    text-decoration: none;
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-item img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    transition: transform var(--transition-base);
    display: block;
    object-fit: contain;
}

.banner-item:hover img {
    transform: scale(1.05);
}

/* Banner Grid - Grille moderne */
.banner-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    padding: var(--spacing-md) 0;
}

.banner-grid .banner-item {
    width: 100%;
    height: auto;
    display: block;
}

.banner-grid .banner-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Positions spécifiques avec backgrounds personnalisés */
.banner-section.banner-top,
.banner-section.banner-bottom {
    background: linear-gradient(180deg, var(--gray-50) 0%, rgba(255, 255, 255, 0.8) 100%);
    padding: var(--spacing-2xl) 0;
}

.banner-section.banner-after-flash-sales {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(249, 250, 251, 0.6) 100%);
    padding: var(--spacing-2xl) 0;
}

.banner-section.banner-after-featured-products {
    background: linear-gradient(180deg, rgba(249, 250, 251, 0.6) 0%, rgba(255, 255, 255, 0) 100%);
    padding: var(--spacing-2xl) 0;
}

.banner-section.banner-before-all-products,
.banner-section.banner-before-recently-viewed {
    background: white;
    padding: var(--spacing-2xl) 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.banner-section.banner-middle {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--gray-50) 50%, rgba(255, 255, 255, 0) 100%);
    padding: var(--spacing-3xl) 0;
}

/* Amélioration de l'overlay au hover */
.banner-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(200, 16, 46, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
    pointer-events: none;
    border-radius: var(--radius-xl);
}

.banner-item:hover::after {
    opacity: 1;
}

/* Badge pour les bannières actives */
.banner-item-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-600);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--transition-base);
}

.banner-item:hover .banner-item-badge {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   VENTE FLASH SLIDER - Design premium
   ============================================ */
.vente-flash-section {
    padding: var(--spacing-3xl) 0;
    background: white;
    position: relative;
}

.vente-flash-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gray-200), transparent);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
    gap: var(--spacing-xl);
}

.section-header > div:first-child {
    flex: 1;
    max-width: 600px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    position: relative;
    padding-left: 0;
    margin: 0;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 40px;
    background: linear-gradient(180deg, var(--primary-600), var(--primary-500));
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.section-subtitle {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
    font-weight: 400;
}

/* Recently Viewed Section */
.recently-viewed-section {
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.02), rgba(200, 16, 46, 0.01));
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.recently-viewed-section .section-title {
    display: flex;
    align-items: center;
    color: var(--primary-600);
}

.recently-viewed-section .section-title svg {
    color: var(--primary-500);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    margin: var(--spacing-sm) 0 0 0;
    padding-left: calc(var(--spacing-md) + 4px);
    font-weight: 400;
    line-height: 1.6;
}

.section-view-all {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all var(--transition-base);
    white-space: nowrap;
    padding: var(--spacing-sm) 0;
}

.section-view-all:hover {
    color: var(--primary-700);
    gap: var(--spacing-sm);
}

.section-view-all svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-base);
}

.section-view-all:hover svg {
    transform: translateX(4px);
}

/* .view-all-link est maintenant remplacé par .section-view-all pour cohérence */
.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all var(--transition-base);
    white-space: nowrap;
    padding: var(--spacing-sm) 0;
}

.view-all-link:hover {
    color: var(--primary-700);
    gap: var(--spacing-sm);
}

.view-all-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-base);
}

.view-all-link:hover svg {
    transform: translateX(4px);
}

.vente-flash-slider {
    display: flex;
    gap: var(--spacing-lg);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: var(--spacing-md) 0 var(--spacing-lg);
    scrollbar-width: thin;
    scrollbar-color: var(--primary-500) transparent;
}

.vente-flash-slider::-webkit-scrollbar {
    height: 6px;
}

.vente-flash-slider::-webkit-scrollbar-track {
    background: transparent;
}

.vente-flash-slider::-webkit-scrollbar-thumb {
    background: var(--primary-500);
    border-radius: var(--radius-full);
}

.vente-flash-card {
    flex-shrink: 0;
    width: 300px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    scroll-snap-align: start;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.vente-flash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-600), var(--primary-500));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.vente-flash-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-300);
}

.vente-flash-card:hover::before {
    opacity: 1;
}

.vente-link {
    display: block;
    text-decoration: none;
    color: var(--gray-900);
}

.vente-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
    transition: transform var(--transition-slow);
}

.vente-flash-card:hover .vente-image {
    transform: scale(1.05);
}

.vente-content {
    padding: var(--spacing-lg);
}

.vente-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vente-price {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.price-old {
    text-decoration: line-through;
    color: var(--gray-400);
    font-size: 0.875rem;
    font-weight: 500;
}

.price-new {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-600);
    letter-spacing: -0.01em;
}

.discount-badge {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(200, 16, 46, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vente-company {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.vente-flash-card:hover .vente-company {
    background: var(--primary-50);
}

.company-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid white;
    box-shadow: var(--shadow-xs);
}

.company-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

.vente-timer {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.vente-timer svg {
    width: 16px;
    height: 16px;
    color: var(--primary-600);
}

.timer-text {
    color: var(--primary-600);
    font-weight: 700;
}

/* ============================================
   FEATURES SECTION - Design moderne avec icônes
   ============================================ */
.features-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, white 0%, var(--gray-50) 100%);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gray-200), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    text-align: center;
    padding: var(--spacing-2xl);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-300);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--spacing-lg);
    color: var(--primary-600);
    transition: all var(--transition-base);
    filter: drop-shadow(0 4px 8px rgba(200, 16, 46, 0.2));
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--primary-700);
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--gray-900);
    letter-spacing: -0.01em;
}

.feature-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ============================================
   FOOTER - Design moderne
   ============================================ */
.marketplace-footer {
    background: linear-gradient(180deg, var(--gray-900) 0%, #0a0a0a 100%);
    color: var(--gray-300);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    margin-top: var(--spacing-3xl);
    position: relative;
}

.marketplace-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gray-700), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: white;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.footer-subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.01em;
}

.footer-text {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--gray-400);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    width: fit-content;
}

.footer-links a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-5px);
    transition: all var(--transition-fast);
    color: var(--primary-400);
}

.footer-links a:hover {
    color: white;
    padding-left: var(--spacing-sm);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--gray-800);
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ============================================
   BUTTONS - Design moderne
   ============================================ */
.btn {
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: white;
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
    box-shadow: 0 6px 16px rgba(200, 16, 46, 0.4);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN - Mobile-first
   ============================================ */
@media (max-width: 1024px) {
    .mega-menu {
        min-width: calc(100vw - 2rem);
        left: 1rem;
        right: 1rem;
        transform: none;
    }
    
    .mega-menu-content {
        grid-template-columns: 1fr;
    }
    
    .mega-menu-image-wrapper,
    .mega-menu-icon-wrapper {
        margin-bottom: var(--spacing-lg);
    }
    
    .mega-menu-footer {
        margin-top: var(--spacing-md);
    }
    
    .mega-menu-view-all-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile Menu Toggle Button - Hidden on desktop */
.mobile-menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .header-top-content {
        grid-template-columns: auto 1fr auto;
        flex-wrap: wrap;
        gap: var(--spacing-md);
        padding: var(--spacing-md) 0;
    }
    
    .user-country-display {
        order: 4;
        width: 100%;
        justify-content: center;
        margin-top: var(--spacing-sm);
    }
    
    .logo {
        font-size: 1.125rem;
    }
    
    .logo-img {
        height: 36px;
    }
    
    .search-bar-wrapper {
        order: 3;
        width: calc(100% - 2rem);
        max-width: 100%;
        min-width: unset;
        margin-top: var(--spacing-sm);
        position: relative;
        left: auto;
        transform: none;
    }
    
    .header-actions {
        gap: var(--spacing-sm);
    }
    
    .action-btn {
        width: 40px;
        height: 40px;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
    }
    
    /* Mobile Menu Toggle Button */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0.625rem;
        z-index: 1001;
        position: relative;
        margin-left: auto;
        order: 2;
    }
    
    .hamburger-line {
        width: 24px;
        height: 2.5px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: center;
    }
    
    .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    
    .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Main Nav Mobile */
    .main-nav {
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
        position: relative;
    }
    
    .main-nav .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem var(--spacing-md);
    }
    
    .main-nav::before {
        height: 1.5px;
    }
    
    /* Mobile Menu - Slide-in from right */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: white;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        align-items: stretch;
        padding: 5rem 0 2rem;
        gap: 0;
        overflow-y: auto;
        overflow-x: hidden;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu.mobile-menu-open {
        transform: translateX(0);
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
    }
    
    /* Mobile Nav Items */
    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--gray-100);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 1rem 1.5rem;
        color: var(--gray-900);
        font-weight: 600;
        font-size: 0.9375rem;
        text-decoration: none;
        transition: all 0.2s ease;
        background: white;
        border-radius: 0;
        margin: 0;
        gap: 0.75rem;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: var(--primary-50);
        color: var(--primary-600);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link svg {
        width: 18px;
        height: 18px;
        color: var(--gray-400);
        transition: transform 0.2s ease;
        flex-shrink: 0;
    }
    
    .nav-item-with-dropdown .nav-link svg {
        transform: rotate(0deg);
    }
    
    .nav-item-with-dropdown.mobile-expanded .nav-link svg {
        transform: rotate(180deg);
    }
    
    /* Mobile Dropdown Menu - Accordion Style */
    .dropdown-menu {
        position: static;
        transform: none;
        display: none;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        max-height: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin-top: 0;
        padding: 0;
        background: var(--gray-50);
        max-width: 100%;
        left: 0;
        right: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        background: var(--gray-50);
        margin: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .nav-item-with-dropdown.mobile-expanded .dropdown-menu {
        display: block;
    }
    
    /* Mobile Dropdown Items */
    .dropdown-item {
        border-bottom: 1px solid var(--gray-200);
    }
    
    .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .dropdown-link {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 1rem;
        border-left: none;
    }
    
    .dropdown-link:hover {
        padding-left: var(--spacing-lg);
    }
    
    /* Mobile Dropdown Submenu */
    .dropdown-submenu {
        position: static;
        display: none;
        background: var(--gray-100);
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        min-width: 100%;
    }
    
    .dropdown-item:hover .dropdown-submenu,
    .dropdown-item.mobile-submenu-expanded .dropdown-submenu {
        display: block;
    }
    
    .dropdown-submenu li a {
        padding: var(--spacing-sm) var(--spacing-xl);
        font-size: 0.9375rem;
        font-size: 0.875rem;
        text-decoration: none;
        border-radius: var(--radius-md);
        transition: all 0.2s ease;
    }
    
    .mega-menu-subcategories li a:hover {
        background: white;
        color: var(--primary-600);
        padding-left: 1rem;
    }
    
    .dropdown-view-all {
        text-align: center;
        font-weight: 600;
    }
    
    .dropdown-view-all:hover {
        background: var(--primary-50);
        color: var(--primary-700);
    }
    
    /* Prevent body scroll when menu is open - MOBILE ONLY */
    @media (max-width: 768px) {
        body.mobile-menu-open {
            overflow: hidden;
            position: fixed;
            width: 100%;
        }
    }
    
    .branches-slider {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .branch-slide {
        border-radius: var(--radius-lg);
    }
    
    .branch-image,
    .branch-icon-wrapper {
        height: 180px;
    }
    
    .branch-content {
        padding: var(--spacing-md);
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-title::before {
        height: 32px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-lg);
    }
    
    .section-header > div:first-child {
        max-width: 100%;
    }
    
    .section-view-all {
        width: 100%;
        justify-content: flex-start;
    }
    
    .vente-flash-card {
        width: 260px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .feature-card {
        padding: var(--spacing-lg);
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .mega-menu {
        min-width: 100%;
        max-width: 100%;
        left: 0;
        transform: none;
        border-radius: 0;
        margin-top: 0;
        padding: var(--spacing-lg);
    }
    
    .mega-menu-content {
        grid-template-columns: 1fr;
    }
    
    .mega-menu-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
        padding: 0;
    }
    
    .mega-menu-promo-section {
        border-radius: var(--radius-lg);
        min-height: auto;
        margin-top: var(--spacing-lg);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .category-image-wrapper,
    .category-icon-wrapper {
        height: 150px;
    }
    .mega-menu-categories-grid {
        grid-template-columns: 1fr;
    }
    .branches-slider {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .vente-flash-card {
        width: 240px;
    }
    
    .banner-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ACCESSIBILITY & PERFORMANCE
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states pour accessibilité */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ============================================
   PRODUCT CARDS - Design Moderne Premium
   ============================================ */
.marketplace-products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.marketplace-product-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.marketplace-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 1;
}

.marketplace-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-300);
}

.marketplace-product-card:hover::before {
    transform: scaleX(1);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}

.product-image-wrapper {
    width: 100%;
    height: 220px;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.product-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.02) 100%);
    pointer-events: none;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-image-placeholder {
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    color: var(--primary-600);
}

.product-image-placeholder svg {
    width: 64px;
    height: 64px;
    opacity: 0.4;
}

/* Product Card Actions (Edit/Delete buttons for shop owners) */
.product-card-actions {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 100;
    display: flex;
    gap: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.marketplace-product-card:hover .product-card-actions,
.product-card-actions:hover {
    opacity: 1;
}

.product-card-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    position: relative;
    z-index: 101;
    text-decoration: none;
}

.product-card-action-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.product-card-action-btn.edit-btn {
    color: var(--primary-500);
}

.product-card-action-btn.delete-btn {
    color: #ef4444;
}

.product-card-action-btn svg {
    width: 18px;
    height: 18px;
}

/* Badge Featured */
.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.product-badge svg {
    width: 14px;
    height: 14px;
}

/* Stock Badge */
.product-stock-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(16, 185, 129, 0.95);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.product-stock-badge.out-of-stock {
    background: rgba(239, 68, 68, 0.95);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.product-stock-badge svg {
    width: 14px;
    height: 14px;
}

.product-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    flex: 1;
    position: relative;
}

.product-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
    transition: color 0.2s ease;
}

/* Titres plus petits dans la section produit récemment vu */
.recently-viewed-section .product-title {
    font-size: 0.9375rem;
}

.product-company-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
    display: inline;
}

.marketplace-product-card:hover .product-title {
    color: var(--primary-600);
}

.product-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
}

.product-price-section {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-600);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.product-price-currency {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-left: 0.25rem;
}

/* Flash Sale Price Styles */
.product-flash-price {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-flash-price .price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-flash-price .price-original {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-500);
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    text-decoration-color: var(--gray-400);
}

.product-flash-price .price-flash {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-600);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Flash Sale Badge */
.product-badge-flash {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4) !important;
}

/* Flash Timer */
.flash-timer {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--primary-50);
    border-radius: 8px;
    border: 1px solid var(--primary-200);
    font-size: 0.75rem;
    color: var(--primary-700);
    font-weight: 600;
}

.flash-timer svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--primary-600);
}

.timer-text {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.timer-countdown {
    color: var(--primary-600);
    font-weight: 700;
}

/* Flash Description */
.flash-description {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-top: 0.375rem;
    padding: 0.375rem 0.5rem;
    background: var(--gray-50);
    border-radius: 6px;
    border-left: 3px solid var(--primary-500);
    font-style: italic;
}

.product-wholesale-tiers {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.375rem;
    padding-top: 0.375rem;
    border-top: 1px dashed var(--gray-200);
}

.wholesale-tier-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    background: var(--gray-50);
    border-radius: 4px;
    border: none;
    font-size: 0.75rem;
    transition: all var(--transition-fast);
}

.wholesale-tier-item:hover {
    background: var(--primary-50);
    transform: none;
    box-shadow: none;
}

.tier-quantity {
    color: var(--gray-600);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
}

.tier-quantity::before {
    content: '📦';
    font-size: 0.7rem;
}

.tier-price {
    color: var(--primary-600);
    font-weight: 600;
    font-size: 0.75rem;
    white-space: nowrap;
}

.product-company-info {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    border-top: 1px solid var(--gray-100);
}

.company-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: white;
    padding: 0.25rem;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-fast);
}

.marketplace-product-card:hover .company-logo {
    border-color: var(--primary-300);
    transform: scale(1.05);
}

.company-logo-placeholder {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    color: var(--gray-400);
}

.company-logo-placeholder svg {
    width: 24px;
    height: 24px;
}

.product-actions {
    display: flex !important;
    gap: 0.75rem;
    margin-top: 0;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--gray-100);
    position: relative;
    z-index: 10;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 0 0 16px 16px;
}

.product-actions:empty {
    display: none;
}

.btn-view-product {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--primary-500);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    z-index: 20;
    flex-shrink: 0;
}

.btn-view-product:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: var(--primary-600);
}

.btn-view-product:active {
    transform: scale(1.05);
}

.btn-view-product svg {
    width: 18px;
    height: 18px;
}

.btn-add-to-cart-marketplace {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--primary-500);
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0;
    position: relative;
    z-index: 20;
    flex-shrink: 0;
}

.btn-add-to-cart-marketplace:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: var(--primary-600);
}

.btn-add-to-cart-marketplace:active {
    transform: scale(1.05);
}

.btn-add-to-cart-marketplace:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-add-to-cart-marketplace svg {
    width: 18px;
    height: 18px;
}

.btn-add-to-cart-marketplace.added {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-color: transparent;
}

.btn-add-to-cart-marketplace.added:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: scale(1.1);
}

.btn-add-to-wishlist {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--gray-600);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-add-to-wishlist:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-add-to-wishlist:active {
    transform: scale(0.95);
}

.btn-add-to-wishlist svg {
    width: 18px;
    height: 18px;
}

.btn-add-to-wishlist.added {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: #ef4444;
}

.btn-add-to-wishlist.added:hover {
    background: rgba(239, 68, 68, 0.15);
}

.btn-add-to-comparison {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--gray-600);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-add-to-comparison:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.btn-add-to-comparison:active {
    transform: scale(0.95);
}

.btn-add-to-comparison svg {
    width: 18px;
    height: 18px;
}

.btn-add-to-comparison.added {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-color: transparent;
}

.btn-add-to-comparison.added:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

/* Branch Header Section */
.branch-header-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, var(--gray-50) 0%, white 100%);
    position: relative;
}

.branch-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.branch-header-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.branch-header-content {
    flex: 1;
}

.branch-header-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.branch-header-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Categories Section */
.categories-section {
    padding: var(--spacing-3xl) 0;
    background: var(--gray-50);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.category-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-300);
}

.category-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.category-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    position: relative;
}

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

.category-card:hover .category-image {
    transform: scale(1.05);
}

.category-icon-wrapper {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    padding: var(--spacing-xl);
}

.category-icon-placeholder {
    width: 100px;
    height: 100px;
    color: var(--primary-600);
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.category-icon-placeholder svg {
    width: 56px;
    height: 56px;
}

.category-icon-img {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    background: white;
    padding: var(--spacing-sm);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.category-content {
    padding: var(--spacing-lg);
}

.category-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 var(--spacing-xs) 0;
    transition: color var(--transition-fast);
}

.category-card:hover .category-name {
    color: var(--primary-600);
}

.category-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0 0 var(--spacing-sm) 0;
    line-height: 1.5;
}

.category-subcategories {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--gray-200);
}

.subcategories-count {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Products Section */
.products-section {
    padding: var(--spacing-3xl) 0;
    background: white;
}

.empty-state {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-lg);
    color: var(--gray-500);
}

.empty-state svg {
    margin: 0 auto var(--spacing-lg);
    color: var(--gray-400);
}

.empty-state p {
    font-size: 1.125rem;
    color: var(--gray-600);
}

.pagination-wrapper {
    margin-top: var(--spacing-3xl);
    display: flex;
    justify-content: center;
}

/* Responsive Product Cards */
@media (max-width: 1400px) {
    .marketplace-products-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: var(--spacing-lg);
    }
}

@media (max-width: 1200px) {
    .marketplace-products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-lg);
    }
}

@media (max-width: 1024px) {
    .marketplace-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }
    
    .marketplace-product-card {
        padding: 1.5rem;
    }
    
    .product-title {
        font-size: 1.25rem;
    }
    
    .branch-header-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .marketplace-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .product-content {
        padding: 1rem;
    }
    
    .product-image-wrapper {
        height: 180px;
    }
    
    .product-title {
        font-size: 0.9375rem;
        min-height: 2.4em;
    }
    
    .product-description {
        font-size: 0.8125rem;
        -webkit-line-clamp: 2;
    }
    
    .product-price {
        font-size: 1.125rem;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-view-product,
    .btn-add-to-cart-marketplace {
        width: 32px;
        height: 32px;
    }
    
    .btn-view-product svg,
    .btn-add-to-cart-marketplace svg {
        width: 16px;
        height: 16px;
    }
    
    .product-badge,
    .product-stock-badge {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
        top: 8px;
    }
    
    .product-badge {
        right: 8px;
    }
    
    .product-stock-badge {
        left: 8px;
    }
    
    .branch-header {
        flex-direction: column;
        text-align: center;
    }
    
    .branch-header-image {
        width: 100px;
        height: 100px;
    }
    
    .branch-header-title {
        font-size: 1.75rem;
    }
    
    .branch-header-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    /* Banners Responsive */
    .banner-section {
        padding: var(--spacing-xl) 0;
    }
    
    .banner-carousel {
        gap: var(--spacing-lg);
        padding: var(--spacing-sm) 0;
    }
    
    .banner-item {
        width: 100%;
        border-radius: var(--radius-lg);
    }
    
    .banner-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .banner-item:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

@media (max-width: 480px) {
    .marketplace-products-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .product-content {
        padding: 1rem;
    }
    
    .product-image-wrapper {
        height: 220px;
    }
    
    /* Banners Mobile */
    .banner-section {
        padding: var(--spacing-lg) 0;
    }
    
    .banner-carousel {
        gap: var(--spacing-md);
        padding: var(--spacing-xs) 0;
    }
    
    .banner-item {
        width: 100%;
        border-radius: var(--radius-md);
    }
    
    .banner-grid {
        gap: var(--spacing-md);
    }
}

/* Print styles */
@media print {
    .marketplace-header,
    .main-nav,
    .marketplace-footer {
        display: none;
    }
}

/* ============================================
   NEW PRODUCT CARD DESIGN - Premium Dark Theme
   ============================================ */
.product-card-new-design {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-new-design:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Dark Background Section */
.product-card-dark-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    padding: 2rem 1.5rem 3rem;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Badges Top Left */
.product-badges-top-left {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

.product-badge-featured {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.product-badge-stock {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.product-badge-available {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

/* Badges Top Right */
.product-badges-top-right {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
    z-index: 10;
}

.product-badge-flash-sale {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.flash-timer-countdown {
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

.product-badge-discount {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

/* Product Image Container */
.product-image-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

/* Golden Ring */
.product-golden-ring {
    position: absolute;
    width: 280px;
    height: 280px;
    border: 8px solid #fbbf24;
    border-radius: 50%;
    opacity: 0.6;
    z-index: 1;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
}

/* Palm Leaves (Decorative) */
.product-palm-leaves {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 120px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
    opacity: 0.3;
    z-index: 2;
}

/* Product Image Circle */
.product-image-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    z-index: 3;
    position: relative;
}

.product-image-circle .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

/* Interactive Icons */
.product-interactive-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    z-index: 4;
    position: relative;
}

.product-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #6b7280;
}

.product-icon-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.product-icon-cart {
    color: #ef4444;
}

.product-icon-cart.added {
    background: #ef4444;
    color: white;
}

.product-icon-heart {
    color: #6b7280;
}

.product-icon-heart.added {
    background: #ef4444;
    color: white;
}

.product-icon-stats {
    color: #6b7280;
}

.product-icon-stats.added {
    background: #3b82f6;
    color: white;
}

/* White Content Area */
.product-card-white-content {
    background: white;
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-link-content {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price Section */
.product-price-main {
    margin-top: 0.5rem;
}

.product-price-normal,
.product-price-flash {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ef4444;
    letter-spacing: -0.02em;
}

/* Wholesale Info */
.product-wholesale-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.wholesale-tier {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.wholesale-price {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
}

.wholesale-qty {
    font-size: 0.75rem;
    color: #3b82f6;
    font-weight: 600;
}

.wholesale-reduction {
    font-size: 0.8125rem;
    color: #10b981;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Supplier Info */
.product-supplier-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.supplier-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
}

.product-country {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #111827;
}

.country-flag {
    font-size: 1rem;
}

.country-name {
    font-weight: 500;
}