/* ==============================================
   MARKETPLACE - Phase 16
   Styles pour la marketplace publique Linkadeo
   ============================================== */

/* === Variables === */
:root {
    --purple-500: #A855F7;
    --purple-600: #9333EA;
    --purple-700: #7E22CE;
    --purple-800: #6B21A8;
    --pink-500: #EC4899;
    --orange-500: #F97316;

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.18);

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

/* === Text Selection === */
::selection {
    background: rgba(73, 158, 241, 0.3);
    color: #1F2937;
}

::-moz-selection {
    background: rgba(73, 158, 241, 0.3);
    color: #1F2937;
}

/* ==============================================
   HEADER MARKETPLACE & MENU ÉLÉGANT MINIMALISTE
   ============================================== */

.marketplace-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 2rem;
    transition: all 0.4s ease;
}

.marketplace-header__container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.marketplace-header__logo {
    position: relative;
    z-index: 1001;
}

.marketplace-header__logo img {
    height: 28px;
    width: auto;
}

/* === Bouton Menu Minimaliste === */
.burger-menu {
    position: relative;
    z-index: 1001;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    padding: 0;
    transition: all 0.3s ease;
}

.burger-menu:hover .burger-menu__line {
    background: var(--purple-600);
}

.burger-menu__line {
    display: block;
    height: 1.5px;
    background: #1a1a2e;
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: right center;
}

.burger-menu__line:nth-child(1) {
    width: 24px;
}

.burger-menu__line:nth-child(2) {
    width: 18px;
}

.burger-menu__line:nth-child(3) {
    width: 24px;
}

.burger-menu:hover .burger-menu__line:nth-child(2) {
    width: 24px;
}

/* État ouvert du burger */
.burger-menu.active .burger-menu__line {
    background: #1a1a2e;
}

.burger-menu.active .burger-menu__line:nth-child(1) {
    width: 24px;
    transform: translateY(7.5px) rotate(-45deg);
}

.burger-menu.active .burger-menu__line:nth-child(2) {
    opacity: 0;
    width: 0;
}

.burger-menu.active .burger-menu__line:nth-child(3) {
    width: 24px;
    transform: translateY(-7.5px) rotate(45deg);
}

/* === Menu Overlay Élégant === */
.menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: #fafafa;
    z-index: 999;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
    overflow-y: auto;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.1);
}

.menu-overlay.active {
    transform: translateX(0);
    visibility: visible;
}

.menu-overlay__content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 7rem 3rem 2.5rem;
}

/* === Navigation principale === */
.menu-overlay__nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.menu-overlay__link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(20px);
}

.menu-overlay.active .menu-overlay__link {
    opacity: 1;
    transform: translateX(0);
}

/* Animation staggered */
.menu-overlay.active .menu-overlay__link:nth-child(1) { transition-delay: 0.05s; }
.menu-overlay.active .menu-overlay__link:nth-child(2) { transition-delay: 0.1s; }
.menu-overlay.active .menu-overlay__link:nth-child(3) { transition-delay: 0.15s; }
.menu-overlay.active .menu-overlay__link:nth-child(4) { transition-delay: 0.2s; }
.menu-overlay.active .menu-overlay__link:nth-child(5) { transition-delay: 0.25s; }
.menu-overlay.active .menu-overlay__link:nth-child(6) { transition-delay: 0.3s; }

.menu-overlay__link-number {
    font-size: 0.6875rem;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.25);
    letter-spacing: 0.05em;
    min-width: 20px;
    font-family: 'Figtree', sans-serif;
}

.menu-overlay__link-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: #1a1a2e;
    transition: all 0.25s ease;
    letter-spacing: -0.01em;
}

.menu-overlay__link:hover .menu-overlay__link-text {
    color: var(--purple-600);
    padding-left: 8px;
}

.menu-overlay__link--active .menu-overlay__link-text {
    color: var(--purple-600);
}

/* === Actions secondaires === */
.menu-overlay__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease 0.35s;
}

.menu-overlay.active .menu-overlay__actions {
    opacity: 1;
    transform: translateX(0);
}

.menu-overlay__action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.5);
    font-weight: 400;
    font-size: 0.875rem;
    transition: all 0.25s ease;
}

.menu-overlay__action-link:hover {
    color: var(--purple-600);
}

.menu-overlay__action-link svg {
    width: 18px;
    height: 18px;
    opacity: 0.5;
    transition: opacity 0.25s ease;
}

.menu-overlay__action-link:hover svg {
    opacity: 1;
}

/* === Footer du menu === */
.menu-overlay__footer {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    opacity: 0;
    transition: all 0.4s ease 0.4s;
}

.menu-overlay.active .menu-overlay__footer {
    opacity: 1;
}

.menu-overlay__social {
    display: flex;
    gap: 0.5rem;
}

.menu-overlay__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    color: rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
}

.menu-overlay__social a svg {
    width: 18px;
    height: 18px;
}

.menu-overlay__social a:hover {
    color: var(--purple-600);
}

.menu-overlay__copyright {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.25);
    font-weight: 400;
}

/* === Header Search Sticky === */
.marketplace-header__search {
    display: none;
    align-items: center;
    gap: 1rem;
    flex: 1;
    max-width: 700px;
    margin: 0 2rem;
}

.header-search-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 100px;
    padding: 0.5rem 1rem;
    flex-shrink: 0;
    min-width: 180px;
}

.header-search-bar svg {
    color: rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.header-search-bar input {
    border: none;
    background: transparent;
    font-size: 0.875rem;
    color: #1a1a2e;
    width: 100%;
    outline: none;
}

.header-search-bar input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.header-categories {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
}

.header-categories::-webkit-scrollbar {
    display: none;
}

.header-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 100px;
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-category-badge:hover {
    border-color: #D4AF37;
    color: #B8960C;
}

.header-category-badge.active {
    background: linear-gradient(135deg, #D4AF37 0%, #B8960C 100%);
    border-color: #D4AF37;
    color: white;
}

/* === Header scrolled state === */
.marketplace-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    padding: 0.75rem 2rem;
}

.marketplace-header.scrolled .marketplace-header__search {
    display: flex;
}

/* === Backdrop overlay === */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(2px);
}

.menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* === Responsive Tablet === */
@media (max-width: 1024px) and (min-width: 769px) {
    .marketplace-hero__content {
        padding: 8rem 4rem 6rem;
        max-width: 90%;
        margin: 0 auto;
    }

    .search-bar-large {
        max-width: 500px;
    }

    .categories-badges {
        padding: 0 2rem;
        max-width: 100%;
    }

    .category-badge {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* === Responsive Mobile === */
@media (max-width: 768px) {
    .marketplace-header {
        padding: 1rem 1.25rem;
    }

    .marketplace-header__logo img {
        height: 24px;
    }

    .marketplace-header__search {
        margin: 0 1rem;
        gap: 0.5rem;
    }

    .header-search-bar {
        min-width: 120px;
        padding: 0.375rem 0.75rem;
    }

    .header-search-bar input {
        font-size: 0.8125rem;
    }

    .header-category-badge {
        padding: 0.25rem 0.625rem;
        font-size: 0.75rem;
    }

    .burger-menu {
        width: 36px;
        height: 36px;
    }

    .burger-menu__line:nth-child(1),
    .burger-menu__line:nth-child(3) {
        width: 20px;
    }

    .burger-menu__line:nth-child(2) {
        width: 14px;
    }

    .menu-overlay {
        max-width: 100%;
    }

    .menu-overlay__content {
        padding: 6rem 2rem 2rem;
    }

    .menu-overlay__link-text {
        font-size: 1rem;
    }

    /* Hero mobile */
    .marketplace-hero--dynamic {
        min-height: 70vh;
        align-items: flex-start;
        padding-top: 0;
        margin-bottom: -10rem;
    }

    .marketplace-hero__content {
        padding: 6rem 2rem 4rem;
        max-width: 100%;
    }

    .marketplace-hero__cloud {
        height: 50%;
    }

    .search-bar-large {
        max-width: 100%;
    }

    .categories-badges {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .marketplace-hero__content {
        padding: 5rem 1rem 4rem;
    }

    .categories-badges {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .category-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .marketplace-header.scrolled .marketplace-header__search {
        display: none;
    }
}

/* iPhone SE, iPhone 12 mini et petits écrans */
@media (max-width: 390px) {
    .marketplace-hero__content {
        padding: 5rem 0.5rem 4rem;
        width: 100%;
        box-sizing: border-box;
    }

    .search-bar-large {
        padding: 0.375rem;
        max-width: calc(100% - 1rem);
    }

    .search-bar-large__input {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }

    .categories-badges {
        gap: 0.25rem;
        padding: 0;
        max-width: 100%;
        justify-content: center;
    }

    .category-badge {
        padding: 0.375rem 0.625rem;
        font-size: 0.6875rem;
    }
}

/* === Hero Section - Style Veepee Luxueux === */
.marketplace-hero {
    background: linear-gradient(135deg, rgba(73, 158, 241, 0.05) 0%, rgba(245, 158, 11, 0.05) 100%);
    color: var(--text-primary);
    padding: 8rem var(--spacing-md) 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Hero dynamique avec fond qui change */
.marketplace-hero--dynamic {
    min-height: 100vh;
    padding: 0;
    padding-bottom: 15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0f;
    margin-bottom: -20rem;
}

.marketplace-hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.marketplace-hero__background-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.05);
}

.marketplace-hero__background-image.active {
    opacity: 1;
    transform: scale(1);
}

/* Effet nuage / dégradé blanc en bas - Style Veepee */
.marketplace-hero__cloud {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(
        to top,
        rgba(249, 250, 251, 1) 0%,
        rgba(249, 250, 251, 1) 15%,
        rgba(249, 250, 251, 0.95) 30%,
        rgba(249, 250, 251, 0.7) 50%,
        rgba(249, 250, 251, 0.3) 70%,
        rgba(249, 250, 251, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.marketplace-hero__content {
    position: relative;
    z-index: 2;
    padding: 10rem var(--spacing-md) 4rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.marketplace-hero--dynamic .marketplace-hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
}

.marketplace-hero--dynamic .marketplace-hero__subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.marketplace-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(73, 158, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.marketplace-hero--dynamic::before {
    display: none;
}

.marketplace-hero__title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.marketplace-hero__subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

/* === Categories Badges - Style Veepee Léger === */
.categories-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 62.5rem;
    color: white;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
}

.category-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.category-badge.active {
    background: white;
    color: #1a1a2e;
    border-color: white;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

/* Skeleton badges */
.skeleton-badge {
    width: 100px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 62.5rem;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

/* === Search Bar === */
.search-bar-large {
    max-width: 650px;
    margin: 0 auto 2rem;
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.9);
    /*backdrop-filter: blur(10px);*/
    border: 2px solid rgba(73, 158, 241, 0.1);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(73, 158, 241, 0.15);
    transition: all 0.3s ease;
    z-index: 2;
}

.search-bar-large:focus-within {
    border-color: rgba(73, 158, 241, 0.3);
    box-shadow: 0 15px 50px rgba(73, 158, 241, 0.25);
    transform: translateY(-2px);
}

.search-bar-large__input {
    flex: 1;
    padding: 1.25rem 1.75rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-primary);
}

.search-bar-large__input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.search-bar-large__input:focus {
    outline: none;
}

.search-bar-large__btn {
    border-radius: 0 50px 50px 0;
    padding: 1.25rem 2rem;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Search bar glass pour hero dynamique */
.search-bar-large--glass {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin-bottom: 0;
}

.search-bar-large--glass:focus-within {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.search-bar-large--glass .search-bar-large__input {
    color: white;
}

.search-bar-large--glass .search-bar-large__input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-bar-large--glass .search-bar-large__btn {
    background: var(--purple-600);
    color: white;
    border-radius: 50px;
    margin: 0.5rem;
    padding: 0.875rem 1.25rem;
}

.search-bar-large--glass .search-bar-large__btn:hover {
    background: var(--purple-700);
}

/* Search bar responsive */
@media (max-width: 480px) {
    .marketplace-hero {
        padding: 5rem 0.75rem 1.5rem;
    }

    .marketplace-hero--dynamic {
        min-height: 85vh;
    }

    .marketplace-hero__content {
        padding: 6rem 1rem 3rem;
    }

    .marketplace-hero__cloud {
        height: 50%;
    }

    .marketplace-hero .container {
        padding: 0;
    }

    .search-bar-large {
        max-width: 100%;
        margin: 0 0 1rem;
        border-radius: 12px;
    }

    .search-bar-large--glass {
        border-radius: 50px;
        margin: 0;
    }

    .search-bar-large__input {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
        min-height: 40px;
    }

    .search-bar-large__btn {
        border-radius: 0 12px 12px 0;
        padding: 0.625rem 0.875rem;
        width: 20% !important;
        min-width: auto;
    }

    .search-bar-large--glass .search-bar-large__btn {
        border-radius: 50px;
        width: auto !important;
        padding: 0.5rem 0.875rem;
    }

    .search-bar-large__btn span {
        display: none;
    }

    .search-bar-large__btn svg {
        width: 16px;
        height: 16px;
    }

    .marketplace-hero__title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .marketplace-hero--dynamic .marketplace-hero__title {
        font-size: 1.75rem;
    }

    .marketplace-hero__subtitle {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .marketplace-hero--dynamic .marketplace-hero__subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Categories badges mobile */
    .categories-badges {
        gap: 0.5rem;
        margin-top: 1.5rem;
        padding: 0 0.5rem;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .categories-badges::-webkit-scrollbar {
        display: none;
    }

    .category-badge {
        flex-shrink: 0;
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .marketplace-hero {
        padding: 6rem 1rem 2rem;
    }

    .search-bar-large {
        max-width: 100%;
        margin: 0 0 1.5rem;
    }

    .search-bar-large__input {
        padding: 1rem 1.25rem;
    }

    .search-bar-large__btn {
        padding: 1rem 1.5rem;
    }
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-top: var(--spacing-xs);
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
}

.autocomplete-section {
    padding: var(--spacing-sm);
}

.autocomplete-section__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    margin-bottom: var(--spacing-xs);
}

.autocomplete-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.autocomplete-item:hover {
    background: rgba(73, 158, 241, 0.05);
}

.autocomplete-item__image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-right: var(--spacing-sm);
}

.autocomplete-item__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(73, 158, 241, 0.1);
    border-radius: var(--radius-md);
    margin-right: var(--spacing-sm);
}

.autocomplete-item__name mark {
    background: rgba(73, 158, 241, 0.2);
    color: var(--purple-600);
    padding: 0 0.25rem;
    border-radius: 0.25rem;
}

.autocomplete-footer {
    padding: var(--spacing-sm);
    border-top: 1px solid #E5E7EB;
}

.autocomplete-footer__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--purple-600);
    font-weight: 500;
    text-decoration: none;
}

/* === Categories Quick Nav === */
.categories-quick-nav {
    padding: 1rem var(--spacing-md);
    background: linear-gradient(180deg, rgba(249, 250, 251, 0) 0%, rgba(249, 250, 251, 1) 100%);
}

.categories-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(73, 158, 241, 0.2) transparent;
    justify-content: center;
    flex-wrap: wrap;
}

.categories-scroll::-webkit-scrollbar {
    height: 6px;
}

.categories-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.categories-scroll::-webkit-scrollbar-thumb {
    background: rgba(73, 158, 241, 0.2);
    border-radius: 10px;
}

/* Mobile carousel style */
@media (max-width: 768px) {
    .categories-carousel {
        position: relative;
        padding: 0.75rem 0;
    }

    .categories-carousel::before,
    .categories-carousel::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 20px;
        pointer-events: none;
        z-index: 10;
    }

    .categories-carousel::before {
        left: 0;
        background: linear-gradient(to right, rgba(249, 250, 251, 1), transparent);
    }

    .categories-carousel::after {
        right: 0;
        background: linear-gradient(to left, rgba(249, 250, 251, 1), transparent);
    }

    .categories-scroll {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .categories-scroll::-webkit-scrollbar {
        display: none;
    }

    .category-chip {
        flex-shrink: 0;
        scroll-snap-align: start;
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        border-radius: 20px;
        gap: 0.375rem;
    }

    .category-chip .category-icon {
        font-size: 1rem;
    }

    .category-chip img {
        width: 18px;
        height: 18px;
        margin-right: 0.25rem;
    }
}

.category-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(73, 158, 241, 0.1);
    border-radius: 50px;
    white-space: nowrap;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.category-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(73, 158, 241, 0.2);
    border-color: rgba(73, 158, 241, 0.3);
    background: rgba(255, 255, 255, 1);
}

.category-chip.active {
    background: linear-gradient(135deg, var(--purple-600) 0%, var(--purple-800) 100%);
    color: white;
    border-color: var(--purple-700);
    box-shadow: 0 4px 16px rgba(147, 51, 234, 0.5);
    font-weight: 600;
}

.category-chip .category-icon,
.category-chip .category-icon-emoji {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.category-chip img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.375rem;
    transition: transform 0.3s ease;
}

.category-chip:hover .category-icon,
.category-chip:hover .category-icon-emoji,
.category-chip:hover img {
    transform: scale(1.15);
}

/* === Marketplace Layout === */
.marketplace-content {
    padding: 1.5rem var(--spacing-md);
    position: relative;
    z-index: 1;
}

.marketplace-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--spacing-lg);
}

.marketplace-layout-full {
    display: block;
    width: 100%;
}

@media (max-width: 1024px) {
    .marketplace-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        display: none; /* Use drawer on mobile */
    }
}

/* === Filters Sidebar === */
.filters-sidebar {
    padding: var(--spacing-lg);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(73, 158, 241, 0.1);
    box-shadow: 0 8px 32px rgba(73, 158, 241, 0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid rgba(73, 158, 241, 0.1);
}

.filters-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-text {
    background: none;
    border: none;
    color: var(--purple-600);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: all 0.2s ease;
}

.btn-text:hover {
    color: var(--purple-700);
    text-decoration: underline;
}

.filter-group {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-group h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.5rem 0.5rem;
    border-radius: 0.5rem;
    margin: 0;
    min-height: 36px;
}

.checkbox:hover {
    background: rgba(73, 158, 241, 0.05);
}

.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--purple-600);
    margin: 2px 0 0 0;
    flex-shrink: 0;
}

.checkbox span {
    color: var(--text-secondary);
    transition: color 0.2s ease;
    font-size: 0.9rem;
    line-height: 1.2;
}

.checkbox:hover span {
    color: var(--text-primary);
}

/* Price chips - Tranches de prix */
.price-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: var(--spacing-md);
}

.price-chip {
    padding: 0.625rem;
    background: rgba(73, 158, 241, 0.05);
    border: 2px solid rgba(73, 158, 241, 0.15);
    border-radius: 0.625rem;
    color: var(--purple-600);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.price-chip:hover {
    background: rgba(73, 158, 241, 0.1);
    border-color: rgba(73, 158, 241, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(73, 158, 241, 0.15);
}

.price-chip.active {
    background: linear-gradient(135deg, var(--purple-600) 0%, var(--purple-700) 100%);
    color: white;
    border-color: var(--purple-600);
    box-shadow: 0 2px 12px rgba(73, 158, 241, 0.3);
}


.tags-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-chip {
    padding: 0.5rem 1rem;
    background: rgba(73, 158, 241, 0.08);
    color: var(--purple-600);
    border: 2px solid rgba(73, 158, 241, 0.15);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag-chip:hover {
    background: rgba(73, 158, 241, 0.15);
    border-color: rgba(73, 158, 241, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(73, 158, 241, 0.15);
}

.tag-chip.active {
    background: var(--purple-600);
    color: white;
    border-color: var(--purple-600);
}

/* === Products Zone === */
.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 2px solid rgba(73, 158, 241, 0.1);
}

.products-count {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.products-count span {
    color: var(--purple-600);
    font-weight: 700;
}

.toolbar-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.sort-select {
    padding: 0.625rem 1rem;
    border: 2px solid rgba(73, 158, 241, 0.1);
    border-radius: 0.625rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-select:focus {
    outline: none;
    border-color: rgba(73, 158, 241, 0.4);
    box-shadow: 0 0 0 3px rgba(73, 158, 241, 0.1);
}

.view-toggle {
    display: flex;
    gap: 0;
    background: rgba(73, 158, 241, 0.05);
    border-radius: 0.625rem;
    padding: 0.25rem;
}

.view-toggle button {
    padding: 0.625rem;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle button:hover {
    background: rgba(73, 158, 241, 0.1);
}

.view-toggle button.active {
    background: var(--purple-600);
    color: white;
    box-shadow: 0 2px 8px rgba(73, 158, 241, 0.3);
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--spacing-md);
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(73, 158, 241, 0.1);
    border: 2px solid rgba(73, 158, 241, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--purple-600);
}

.filter-tag button {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--purple-600);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.filter-tag button:hover {
    background: rgba(73, 158, 241, 0.2);
    transform: scale(1.1);
}

/* === Products Grid === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0 0.5rem;
    }

    .product-card {
        padding: 0.5rem;
        border-radius: 0.75rem;
    }

    .product-card__image {
        border-radius: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .product-card__content {
        padding: 0.5rem;
        padding-top: 0;
        gap: 0.25rem;
    }

    .product-card__name {
        font-size: 0.8rem;
        min-height: auto;
        -webkit-line-clamp: 2;
    }

    .product-card__description {
        display: none;
    }

    .product-card__price {
        margin: 0.5rem 0 0.25rem 0;
    }

    .price-current {
        font-size: 1.1rem;
    }

    .price-compare {
        font-size: 0.75rem;
    }

    .product-card__rating {
        margin-bottom: 0.25rem;
    }

    .stars {
        font-size: 0.75rem;
    }

    .rating-count {
        font-size: 0.7rem;
    }

    .product-card__actions {
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .product-card__actions .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .badge-featured {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.25rem 0.5rem;
        font-size: 0.6rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-card {
        padding: 0.75rem;
    }

    .product-card__name {
        font-size: 0.9rem;
    }

    .price-current {
        font-size: 1.25rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* === Product Card === */
.product-card {
    position: relative;
    background: #FFFFFF;
    border-radius: 1rem;
    border: 1px solid #E5E7EB;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #9333EA;
}

/* Image carrée */
.product-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

/* Badge */
.badge-featured {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Content avec padding interne */
.product-card__content {
    padding: 1rem;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}

/* Titre */
.product-card__name {
    font-size: 1rem;
    font-weight: 600;
    color: #1F2937;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5rem;
}

/* Description courte */
.product-card__description {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.25rem;
}

/* Prix container */
.product-card__price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 1rem 0 0.25rem 0;
}

.price-current {
    font-size: 1.75rem;
    font-weight: 700;
    color: #9333EA;
}

.price-compare {
    font-size: 1rem;
    font-weight: 400;
    text-decoration: line-through;
    color: #9CA3AF;
}

/* Rating */
.product-card__rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stars {
    color: #F59E0B;
    font-size: 1rem;
    letter-spacing: 2px;
}

.rating-count {
    font-size: 0.875rem;
    color: #6B7280;
}

/* Deux boutons empilés */
.product-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.product-card__actions .btn {
    width: 100%;
    height: 44px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 0.625rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

/* Bouton primaire - Voir le produit */
.btn-primary-action {
    background: #9333EA;
    color: white;
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.2);
}

.btn-primary-action:hover {
    background: #7E22CE;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

/* Bouton secondaire - Offrir ce cadeau */
.btn-secondary-action {
    background: transparent;
    color: #9333EA;
    border: 2px solid #9333EA;
}

.btn-secondary-action:hover {
    background: #F3E8FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.15);
}

/* Footer avec stock et vendor */
.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    margin-top: auto;
    border-top: 1px solid #F3F4F6;
}

.product-card__stock {
    font-size: 0.8125rem;
    color: #6B7280;
    font-weight: 500;
}

.product-card__stock.low-stock {
    color: #DC2626;
}

.product-card__vendor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vendor-logo-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #E5E7EB;
    object-fit: cover;
}

/* Tags */
.product-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.75rem;
}

.tag {
    padding: 0.25rem 0.625rem;
    background: #F3F4F6;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    color: #6B7280;
    font-weight: 500;
}

/* === Breadcrumbs === */
/* Breadcrumbs */
.breadcrumb {
    background: rgba(255, 255, 255, 0.5);
    padding: 1rem 0;
    padding-top: calc(80px + 1rem); /* 80px = hauteur navbar fixe + spacing */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.breadcrumb .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    margin: 0 0.5rem;
    color: #9CA3AF;
    font-size: 1.125rem;
}

.breadcrumb-list a {
    color: var(--purple-600);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.breadcrumb-list a:hover {
    color: var(--purple-700);
    text-decoration: underline;
}

.breadcrumb-list li[aria-current="page"] {
    color: #374151;
    font-weight: 600;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: var(--spacing-md) 0;
    padding-top: calc(80px + var(--spacing-md)); /* Espace pour navbar fixe */
    font-size: 0.875rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--purple-600);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--purple-700);
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #D1D5DB;
    margin: 0 0.25rem;
}

.breadcrumbs span:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

/* === Product Detail === */
.product-page {
    background: linear-gradient(135deg, rgba(73, 158, 241, 0.02) 0%, rgba(245, 158, 11, 0.02) 100%);
    min-height: 100vh;
    padding-bottom: 3rem;
}

.product-page .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.gallery-main {
    position: relative;
    margin-bottom: var(--spacing-md);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 2px solid rgba(73, 158, 241, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.gallery-main__image-container {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(73, 158, 241, 0.03) 0%, rgba(245, 158, 11, 0.03) 100%);
}

.gallery-main__image-container picture,
.gallery-main__image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-main__image {
    width: 100%;
    border-radius: var(--radius-lg);
}

.gallery-nav {
    position: absolute;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    display: flex;
    gap: 0.5rem;
}

.gallery-nav button {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
}

.gallery-thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    position: relative;
}

.gallery-thumb.active {
    border-color: var(--purple-600);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

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

.vendor-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

/* Product Info Section */
.product-info {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(73, 158, 241, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.product-name {
    font-size: 2rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin: 1rem 0;
}

.price-current {
    font-size: 2rem;
    font-weight: 700;
    color: #9333EA;
}

.price-compare {
    font-size: 1.25rem;
    font-weight: 400;
    text-decoration: line-through;
    color: #9CA3AF;
}

.price-discount {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.product-cta {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin: 1.5rem 0;
}

.product-cta .btn {
    height: 44px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.625rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.product-cta .btn-primary {
    background: #9333EA;
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.2);
}

.product-cta .btn-primary:hover {
    background: #7E22CE;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.product-cta .btn-outline {
    background: transparent;
    color: #9333EA;
    border: 2px solid #9333EA;
}

.product-cta .btn-outline:hover {
    background: #F3E8FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.15);
}

.linkadeo-usp {
    margin: 1.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(73, 158, 241, 0.05) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-radius: 0.75rem;
    border: 1px solid rgba(73, 158, 241, 0.15);
}

.usp-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: #4B5563;
    font-weight: 500;
}

.usp-item:last-child {
    margin-bottom: 0;
}

.usp-item svg {
    color: #9333EA;
    flex-shrink: 0;
}

.product-description,
.product-reviews,
.related-products {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(73, 158, 241, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.product-description h2,
.product-reviews h2,
.related-products h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(73, 158, 241, 0.1);
    color: #1F2937;
}

.description-content {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #4B5563;
}

.description-content p {
    margin-bottom: 1rem;
}

.description-content ul,
.description-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.product-vendor-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(73, 158, 241, 0.05) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-radius: 0.75rem;
    border: 1px solid rgba(73, 158, 241, 0.15);
}

.product-vendor-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1F2937;
}

.product-vendor-info p {
    color: #6B7280;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.9375rem;
}

.product-info__vendor img {
    border: 2px solid rgba(73, 158, 241, 0.1);
}

.vendor-name {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.vendor-name:hover {
    color: var(--purple-600);
}

.vendor-rating {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--spacing-md);
    font-size: 0.875rem;
}

.product-rating a {
    color: var(--purple-600);
    text-decoration: none;
    font-weight: 500;
}

.product-rating a:hover {
    text-decoration: underline;
}

.product-short-description {
    color: #6B7280;
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.product-shipping,
.product-stock {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    color: #4B5563;
}

.product-shipping svg {
    color: #9333EA;
    flex-shrink: 0;
}

.stock-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
}

.stock-indicator.in-stock {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.stock-indicator.low-stock {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.stock-indicator.out-of-stock {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.stock-count {
    font-size: 0.875rem;
    color: #6B7280;
    font-weight: 500;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

/* Related Products Carousel */
.products-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .products-carousel {
        grid-template-columns: 1fr;
    }
}

/* === Checkout === */
.checkout-steps {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
}

.step.active,
.step.completed {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E5E7EB;
    color: #6B7280;
    border-radius: 50%;
    font-weight: 700;
}

.step.active .step-number {
    background: var(--purple-600);
    color: white;
}

.step.completed .step-number {
    background: #10B981;
    color: white;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--spacing-xl);
}

@media (max-width: 1024px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

.checkout-section {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
}

.radio-card {
    display: block;
    padding: var(--spacing-md);
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-md);
    cursor: pointer;
    margin-bottom: var(--spacing-sm);
}

.radio-card:has(input:checked) {
    border-color: var(--purple-600);
    background: rgba(73, 158, 241, 0.05);
}

.checkout-summary {
    position: sticky;
    top: 100px;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
}

.summary-product {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid #E5E7EB;
}

.summary-product__image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.summary-amounts {
    margin: var(--spacing-md) 0;
}

.amount-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.amount-row.total {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 2px solid #E5E7EB;
    font-size: 1.25rem;
}

.gift-preview-card {
    background: rgba(73, 158, 241, 0.05);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
}

/* === Loader & Empty State === */
.products-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem var(--spacing-xl);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 1.25rem;
    border: 2px dashed rgba(73, 158, 241, 0.2);
}

.products-loader p {
    margin-top: var(--spacing-md);
    color: var(--text-secondary);
    font-weight: 500;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(73, 158, 241, 0.1);
    border-top-color: var(--purple-600);
    border-right-color: var(--purple-600);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.products-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem var(--spacing-xl);
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 1.25rem;
    border: 2px dashed rgba(73, 158, 241, 0.2);
}

.products-empty svg {
    color: rgba(73, 158, 241, 0.3);
    margin-bottom: var(--spacing-lg);
    opacity: 0.8;
}

.products-empty h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.products-empty p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: 1.125rem;
}

/* === Pagination === */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1.5rem 0;
}

.pagination-btn {
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(73, 158, 241, 0.1);
    border-radius: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
    min-width: 48px;
    text-align: center;
}

.pagination-btn:hover {
    background: rgba(73, 158, 241, 0.1);
    border-color: rgba(73, 158, 241, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(73, 158, 241, 0.15);
}

.pagination-btn.active {
    background: linear-gradient(135deg, var(--purple-600) 0%, var(--purple-700) 100%);
    color: white;
    border-color: var(--purple-600);
    box-shadow: 0 4px 16px rgba(73, 158, 241, 0.4);
}

.pagination-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(73, 158, 241, 0.5);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(73, 158, 241, 0.1);
    transform: none;
    box-shadow: none;
}

/* === Glass Effect === */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

/* === Utilities === */
/* Note: .container est défini dans design-system.css - ne pas redéfinir ici */

.btn-block {
    width: 100%;
}

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

.text-muted {
    color: #6B7280;
}

/* ==============================================
   PAGE VENDEUR PUBLIQUE
   ============================================== */

/* Vendor Profile Wrapper */
.vendor-profile {
    background: linear-gradient(135deg, rgba(73, 158, 241, 0.03) 0%, rgba(245, 158, 11, 0.03) 100%);
    min-height: 100vh;
    padding-top: 80px; /* Hauteur navbar fixe */
}

.vendor-profile .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Vendor Banner - Simple Style Luxe */
.vendor-banner-simple {
    width: 100%;
    aspect-ratio: 1500 / 500;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1a1a;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Vendor Header - Style Luxe */
.vendor-header {
    background: #fafafa;
    padding: 6rem var(--spacing-md) 2rem;
    margin-bottom: 2rem;
}

.vendor-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.vendor-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e5e5e5;
}

.vendor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vendor-avatar svg {
    width: 50px;
    height: 50px;
    color: #9ca3af;
}

.vendor-info {
    flex: 1;
}

.vendor-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.01em;
}

.vendor-tagline {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.vendor-stats {
    display: flex;
    gap: 1.5rem;
}

.vendor-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.vendor-stats .stat-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
}

.vendor-stats .stat-label {
    font-size: 0.6875rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Collapse à propos dans header */
.vendor-about-collapse {
    margin-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
    padding-top: 1rem;
}

.vendor-about-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--purple-700);
    list-style: none;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.vendor-about-toggle::-webkit-details-marker {
    display: none;
}

.vendor-about-toggle svg {
    transition: transform 0.3s ease;
    color: var(--purple-600);
}

.vendor-about-collapse[open] .vendor-about-toggle svg {
    transform: rotate(180deg);
}

.vendor-about-toggle:hover {
    color: var(--purple-600);
}

.vendor-about-collapse .vendor-description {
    color: #4B5563;
    line-height: 1.7;
    font-size: 0.9375rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(73, 158, 241, 0.05);
}

.vendor-description p {
    margin: 0 0 1rem 0;
}

.vendor-description p:last-child {
    margin-bottom: 0;
}

/* Products Section */
.vendor-products {
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.4);
}

.vendor-products .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.vendor-products .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(73, 158, 241, 0.1);
}

.vendor-products .section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
}

.vendor-products .toolbar-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.vendor-products .sort-select {
    padding: 0.5rem 1rem;
    border: 2px solid rgba(73, 158, 241, 0.2);
    border-radius: var(--radius-md);
    background: white;
    color: #1F2937;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vendor-products .sort-select:hover {
    border-color: var(--purple-600);
}

.vendor-products .sort-select:focus {
    outline: none;
    border-color: var(--purple-600);
    box-shadow: 0 0 0 3px rgba(73, 158, 241, 0.1);
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-toggle button {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 2px solid rgba(73, 158, 241, 0.2);
    border-radius: var(--radius-md);
    background: white;
    color: #6B7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.view-toggle button:hover {
    border-color: var(--purple-600);
    color: var(--purple-600);
}

.view-toggle button.active {
    background: var(--purple-600);
    border-color: var(--purple-600);
    color: white;
}

/* Products Loader */
.products-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) 0;
    gap: var(--spacing-md);
}

.products-loader .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(73, 158, 241, 0.2);
    border-top-color: var(--purple-600);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.products-loader p {
    color: #6B7280;
    font-size: 1rem;
}

/* Empty State */
.products-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.products-empty svg {
    color: #D1D5DB;
    margin-bottom: var(--spacing-md);
}

.products-empty h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4B5563;
    margin: 0 0 var(--spacing-sm) 0;
}

.products-empty p {
    color: #6B7280;
    margin: 0 0 var(--spacing-lg) 0;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination-ellipsis {
    padding: 0.5rem;
    color: #9CA3AF;
}

/* Reviews Section */
.vendor-reviews {
    padding: var(--spacing-xl) 0;
    background: rgba(249, 250, 251, 0.5);
}

.vendor-reviews h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 var(--spacing-lg) 0;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Responsive */
/* ========== VENDOR PAGE RESPONSIVE ========== */

/* Ultra-mobile (< 480px) */
@media (max-width: 480px) {
    .vendor-profile {
        padding-top: 60px;
    }

    .vendor-profile .container {
        padding: 0 0.5rem;
    }

    .vendor-banner-simple {
        aspect-ratio: 2 / 1;
        height: auto;
        max-height: 120px;
        border-radius: 0.75rem;
        margin-bottom: 1rem;
        background-color: #f5f5f5;
    }

    .vendor-header {
        padding: 1rem 0.5rem 1.5rem;
        margin-bottom: 1rem;
    }

    .vendor-header-content {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: 0.75rem;
        border-radius: 0.75rem;
    }

    .vendor-avatar {
        width: 60px;
        height: 60px;
    }

    .vendor-avatar svg {
        width: 30px;
        height: 30px;
    }

    .vendor-name {
        font-size: 1.125rem;
        margin-bottom: 0.125rem;
    }

    .vendor-tagline {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .vendor-stats {
        justify-content: center;
        gap: 0.75rem;
    }

    .vendor-stats .stat-value {
        font-size: 1rem;
    }

    .vendor-stats .stat-label {
        font-size: 0.625rem;
    }

    .vendor-about-collapse {
        margin-top: 1rem;
        padding-top: 0.75rem;
    }

    .vendor-about-toggle {
        font-size: 0.8125rem;
        padding: 0.625rem 0;
    }

    .vendor-about-collapse .vendor-description {
        font-size: 0.8125rem;
        line-height: 1.6;
    }

    .vendor-products {
        padding: 1rem 0;
    }

    .vendor-products .container {
        padding: 0 0.5rem;
    }

    .vendor-products .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .vendor-products .section-header h2 {
        font-size: 1.25rem;
    }

    .vendor-products .toolbar-actions {
        width: 100%;
    }

    .vendor-products .sort-select {
        width: 100%;
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }

    .view-toggle {
        display: none;
    }

    .pagination-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }

    .pagination-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Products Grid - Style Amazon liste horizontale */
    .vendor-products .products-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .vendor-products .product-card {
        flex-direction: row;
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .vendor-products .product-card__image {
        width: 100px;
        min-width: 100px;
        aspect-ratio: 1 / 1;
        margin-bottom: 0;
        border-radius: 0.5rem;
    }

    .vendor-products .product-card__content {
        padding: 0;
        flex: 1;
        justify-content: center;
    }

    .vendor-products .product-card__name {
        font-size: 0.875rem;
        min-height: auto;
        -webkit-line-clamp: 2;
    }

    .vendor-products .product-card__description {
        display: none;
    }

    .vendor-products .product-card__price {
        margin: 0.5rem 0 0;
    }

    .vendor-products .price-current {
        font-size: 1rem;
    }

    .vendor-products .price-compare {
        font-size: 0.75rem;
    }

    .vendor-products .product-card__rating {
        margin-bottom: 0.25rem;
    }

    .vendor-products .product-card__actions {
        display: none;
    }
}

/* Mobile (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .vendor-profile {
        padding-top: 70px;
    }

    .vendor-banner-simple {
        aspect-ratio: 2.5 / 1;
        max-height: 160px;
        border-radius: 1rem;
        margin-bottom: 1.25rem;
        background-color: #f5f5f5;
    }

    .vendor-header {
        padding: 1.5rem var(--spacing-md) 2rem;
        margin-bottom: 1.5rem;
    }

    .vendor-header-content {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
        gap: 1rem;
    }

    .vendor-avatar {
        width: 70px;
        height: 70px;
    }

    .vendor-name {
        font-size: 1.25rem;
    }

    .vendor-tagline {
        font-size: 0.8125rem;
    }

    .vendor-stats {
        justify-content: center;
        gap: 1rem;
    }

    .vendor-stats .stat-value {
        font-size: 1rem;
    }

    .vendor-products .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .vendor-products .section-header h2 {
        font-size: 1.5rem;
    }

    .vendor-products .toolbar-actions {
        width: 100%;
        flex-direction: column;
    }

    .vendor-products .sort-select {
        width: 100%;
    }

    .view-toggle {
        width: 100%;
        justify-content: center;
    }
}

/* Tablette (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .vendor-banner-simple {
        aspect-ratio: 1500 / 500;
        background-color: #f5f5f5;
    }

    .vendor-header {
        padding: 4rem var(--spacing-md) 2rem;
    }

    .vendor-header-content {
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .vendor-avatar {
        width: 80px;
        height: 80px;
    }

    .vendor-name {
        font-size: 1.375rem;
    }

    .vendor-products .section-header h2 {
        font-size: 1.625rem;
    }
}

/* General marketplace hero responsive */
@media (max-width: 768px) {
    .marketplace-hero {
        padding: 6rem 1rem 1.5rem;
    }

    .marketplace-hero__title {
        font-size: 1.75rem;
    }

    .marketplace-hero__subtitle {
        font-size: 1rem;
    }

    .pagination-wrapper {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .pagination-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ========================================
   MARKETPLACE BRANDS - VENTE-PRIVÉE STYLE
   ======================================== */

.marketplace-brands .brands-zone {
    flex: 1;
}

.brands-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    margin-bottom: 1.5rem;
}

.brands-count {
    display: none;
}

/* ========== Grid Marques ========== */

.brands-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* ========== Carte Marque Premium & Uniforme ========== */

.brand-card--premium,
.brand-card--uniform {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    grid-column: span 1;
    min-height: 480px;
}

.brand-card--premium:hover,
.brand-card--uniform:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.brand-card--premium::before,
.brand-card--uniform::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.brand-card--premium:hover::before,
.brand-card--uniform:hover::before {
    left: 100%;
}

.brand-card__banner {
    position: relative;
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--purple-100);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 40px;
}

.brand-card__banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.85), transparent);
}

.brand-card__logo-wrapper {
    position: relative;
    z-index: 2;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    border: 4px solid white;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.brand-card--premium:hover .brand-card__logo-wrapper,
.brand-card--uniform:hover .brand-card__logo-wrapper {
    transform: scale(1.1) rotate(3deg);
}

.brand-card__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
}

.brand-card__content {
    padding: var(--spacing-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.brand-card__name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    text-align: center;
}

.brand-card__description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
}

.brand-card__categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
}

.category-tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, var(--purple-100), var(--purple-50));
    border: 1px solid var(--purple-200);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--purple-700);
}

.brand-card__stats {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    margin-top: auto;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat__value {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat__label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.brand-card__cta {
    padding: 0 var(--spacing-xl) var(--spacing-xl);
    text-align: center;
}

.brand-card__cta .btn {
    width: 100%;
    transition: all 0.3s ease;
}

.brand-card--premium:hover .brand-card__cta .btn {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(124, 106, 245, 0.5);
}

/* ========== Responsive Brand Cards ========== */

@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }
}

@media (max-width: 480px) {

    .brand-card--premium,
    .brand-card--uniform {
        min-height: auto;
    }

    .brand-card__banner {
        height: 120px;
        padding-bottom: 30px;
    }

    .brand-card__logo-wrapper {
        width: 80px;
        height: 80px;
        border-width: 3px;
    }

    .brand-card__content {
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
    }

    .brand-card__name {
        font-size: 1.125rem;
    }

    .brand-card__description {
        font-size: 0.8125rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .brand-card__categories {
        gap: 0.375rem;
    }

    .category-tag {
        padding: 0.25rem 0.625rem;
        font-size: 0.6875rem;
    }

    .brand-card__stats {
        gap: var(--spacing-md);
    }

    .stat__value {
        font-size: 1.125rem;
    }

    .stat__label {
        font-size: 0.75rem;
    }

    .brand-card__cta {
        padding: 0 var(--spacing-md) var(--spacing-md);
    }

    .brand-card__cta .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .brands-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .brand-card--premium,
    .brand-card--uniform {
        min-height: 380px;
    }

    .brand-card__banner {
        height: 140px;
    }

    .brand-card__logo-wrapper {
        width: 100px;
        height: 100px;
    }

    .brand-card__name {
        font-size: 1.25rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brand-card--premium,
    .brand-card--uniform {
        min-height: 420px;
    }
}

/* ========== Carte Marque Compact ========== */

.brand-card--compact {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    min-height: 120px;
}

.brand-card--compact:hover {
    transform: translateX(8px);
    border-color: var(--purple-400);
    box-shadow: 0 8px 24px rgba(124, 106, 245, 0.25);
}

.brand-card__logo-compact {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background: white;
    border: 2px solid var(--glass-border);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.brand-card--compact:hover .brand-card__logo-compact {
    transform: scale(1.08);
}

.brand-card__logo-compact img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
}

.brand-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.brand-card--compact .brand-card__name {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    text-align: left;
}

.brand-card__meta {
    display: flex;
    gap: var(--spacing-lg);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.brand-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.tag-sm {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: var(--purple-100);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--purple-700);
}

.brand-card__arrow {
    flex-shrink: 0;
    color: var(--purple-500);
    transition: transform 0.3s ease;
}

.brand-card--compact:hover .brand-card__arrow {
    transform: translateX(4px);
}

/* ========== Carte Marque Premium Luxe - Style Haute Couture ========== */

.brand-card--horizontal {
    position: relative;
    display: block;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
    color: inherit;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 10px 20px rgba(0, 0, 0, 0.03);
}

.brand-card--horizontal::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(212, 175, 55, 0.2) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.brand-card--horizontal:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 30px 60px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.brand-card--horizontal:hover::before {
    opacity: 1;
}

.brand-card__banner-compact {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f5f5f5;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.brand-card--horizontal:hover .brand-card__banner-compact {
    transform: scale(1.05);
}

/* Overlay sombre élégant par défaut */
.brand-card__banner-compact::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        transparent 100%
    );
    transition: opacity 0.6s ease;
}

.brand-card--horizontal:hover .brand-card__banner-compact::after {
    opacity: 0.7;
}

/* Overlay luxueux discret */
.brand-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 2;
}

/* Overlay visible au hover */
.brand-card--horizontal:hover .brand-card__overlay {
    opacity: 1;
}

.brand-card__overlay h3 {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
}

.brand-card__overlay-stats {
    display: none;
}

.brand-card__overlay-stats svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Suppression des anciens styles non utilisés */
.brand-card--horizontal .brand-card__logo-compact {
    display: none;
}

.brand-card__info {
    display: none;
}

.brand-card__header {
    display: none;
}

.brand-card--horizontal .brand-card__name {
    display: none;
}

.brand-card--horizontal .brand-card__description {
    display: none;
}

.brand-card__meta {
    display: none;
}

.brand-card--horizontal .brand-card__categories {
    display: none;
}

.category-tag-sm {
    display: none;
}

.brand-card--horizontal .brand-card__stats {
    display: none;
}

.stat-compact {
    display: none;
}

.stat-compact svg {
    display: none;
}


/* ========== Badges ========== */

.badge-certified {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 12px rgba(247, 181, 24, 0.4);
    z-index: 3;
    animation: pulse-glow 2s ease-in-out infinite;
}

.badge-certified-sm {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    border-radius: 50%;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(247, 181, 24, 0.4);
    z-index: 2;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(247, 181, 24, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(247, 181, 24, 0.7);
    }
}

/* ========== Categories Carousel ========== */

.categories-carousel {
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.5),
        transparent
    );
}

.categories-scroll {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    padding: var(--spacing-sm) 0;
    scrollbar-width: thin;
    scrollbar-color: var(--purple-300) transparent;
}

.categories-scroll::-webkit-scrollbar {
    height: 6px;
}

.categories-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.categories-scroll::-webkit-scrollbar-thumb {
    background: var(--purple-300);
    border-radius: 3px;
}

.category-chip {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1.5rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
}

.category-chip img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.category-chip:hover {
    transform: translateY(-2px);
    border-color: var(--purple-400);
    box-shadow: 0 4px 12px rgba(124, 106, 245, 0.2);
}

.category-chip.active {
    background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
    border-color: var(--purple-700);
    color: white;
    box-shadow: 0 4px 12px rgba(124, 106, 245, 0.4);
}

.skeleton-categories {
    display: flex;
    gap: var(--spacing-md);
}

.skeleton-chip {
    width: 150px;
    height: 44px;
    background: linear-gradient(90deg,
        var(--glass-bg) 0%,
        rgba(255, 255, 255, 0.9) 50%,
        var(--glass-bg) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-full);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ========== Loader & Empty State ========== */

.brands-loader,
.brands-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
    min-height: 400px;
}

.brands-loader .spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--glass-border);
    border-top-color: var(--purple-600);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.brands-empty svg {
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

.brands-empty h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.brands-empty p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* ========== Product Variants & Tabs ========== */

/* Product Variants */
.product-variants {
    margin: 2rem 0;
}

.variant-option {
    margin-bottom: 1.5rem;
}

.variant-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.variant-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Styles .variant-btn définis plus bas dans le fichier (ligne ~3142) */

.selected-variant {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    background: rgba(73, 158, 241, 0.05);
    border-left: 3px solid #499EF1;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    color: #1F2937;
}

.selected-variant strong {
    color: #499EF1;
    font-weight: 600;
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    gap: 0.25rem;
    border-bottom: 2px solid rgba(73, 158, 241, 0.1);
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    bottom: -2px;
}

.tab-btn:hover {
    color: #499EF1;
    background: rgba(73, 158, 241, 0.03);
}

.tab-btn.active {
    color: #499EF1;
    border-bottom-color: #499EF1;
}

.tab-content {
    display: none;
    padding: 2rem 1.5rem;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid rgba(73, 158, 241, 0.1);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table th {
    text-align: left;
    padding: 1rem;
    font-weight: 600;
    color: #374151;
    width: 40%;
    background: rgba(73, 158, 241, 0.03);
}

.specs-table td {
    padding: 1rem;
    color: #6B7280;
}

.specs-table tr:hover {
    background: rgba(73, 158, 241, 0.02);
}

/* Product Details Section */
.product-details {
    margin-top: 3rem;
    padding: 2rem;
}

.description-content {
    color: #374151;
    line-height: 1.8;
    font-size: 1rem;
}

.description-content h1,
.description-content h2,
.description-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1F2937;
}

.description-content h1 {
    font-size: 1.75rem;
}

.description-content h2 {
    font-size: 1.5rem;
}

.description-content h3 {
    font-size: 1.25rem;
}

.description-content p {
    margin-bottom: 1rem;
}

.description-content ul,
.description-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.description-content li {
    margin-bottom: 0.5rem;
}

.description-content a {
    color: #499EF1;
    text-decoration: underline;
}

.description-content a:hover {
    color: #9333EA;
}

.shipping-info h3 {
    color: #1F2937;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.shipping-info p {
    color: #374151;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.shipping-info ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.shipping-info li {
    color: #374151;
    margin-bottom: 0.5rem;
}

/* ========== Responsive ========== */

@media (max-width: 1024px) {
    .brands-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .brand-card--premium,
    .brand-card--uniform {
        min-height: auto;
    }

    .brand-card__banner {
        height: 140px;
        padding-bottom: 30px;
    }

    .brand-card__logo-wrapper {
        width: 100px;
        height: 100px;
    }

    .brand-card--compact {
        flex-direction: column;
        text-align: center;
    }

    .brand-card__logo-compact {
        width: 100px;
        height: 100px;
    }

    .brand-card--compact .brand-card__name {
        text-align: center;
    }

    .brand-card__meta,
    .brand-card__tags {
        justify-content: center;
    }

    /* Horizontal card responsive - Style Premium Luxe */
    .brand-card--horizontal {
        min-height: 100px;
    }

    .brand-card__banner-compact {
        height: 100px;
        aspect-ratio: auto;
    }

    .brand-card__overlay {
        padding: 1rem 0.875rem;
    }

    .brand-card__overlay h3 {
        font-size: 1.0625rem;
        letter-spacing: 0.015em;
    }

    .brand-card__overlay-stats {
        font-size: 0.8125rem;
        gap: 0.625rem;
        flex-wrap: wrap;
    }

    .brand-card__overlay-stats span {
        padding: 0.25rem 0.5rem;
    }

    .products-grid {
        gap: 1rem;
    }

    .brands-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .toolbar-actions {
        width: 100%;
    }

    .sort-select {
        width: 100%;
    }
}

/* ==============================================
   PRODUCT VARIANTS
   ============================================== */

.product-variants {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.variant-option {
    margin-bottom: var(--spacing-md);
}

.variant-option:last-child {
    margin-bottom: 0;
}

.variant-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.variant-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.variant-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-md);
    color: #1F2937;
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.variant-btn:hover {
    border-color: #499EF1;
    background: rgba(73, 158, 241, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(73, 158, 241, 0.15);
}

.variant-btn.active {
    background: linear-gradient(135deg, #499EF1 0%, #9333EA 100%);
    color: #FFFFFF !important;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(73, 158, 241, 0.3);
    font-weight: 600;
}

.variant-btn:disabled,
.variant-btn.out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
    background: #F3F4F6;
    border-color: #E5E7EB;
    color: #9CA3AF;
    position: relative;
}

.variant-btn.out-of-stock {
    text-decoration: line-through;
}

.variant-btn.out-of-stock:hover {
    transform: none;
    box-shadow: none;
    background: #F3F4F6;
    border-color: #E5E7EB;
}

.variant-btn .stock-label {
    display: block;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
    color: #DC2626;
    font-weight: 600;
    text-decoration: none;
}

.selected-variant {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(73, 158, 241, 0.1);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-primary);
}

.selected-variant strong {
    color: var(--primary);
    font-weight: 600;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .variant-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .variant-buttons {
        gap: 0.5rem;
    }
}

/* ============================================
   MOBILE FILTER SYSTEM - Style Amazon
   ============================================ */

/* Mobile Sticky Filter Bar */
.mobile-filter-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #E5E7EB;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .mobile-filter-bar {
        display: flex;
    }

    /* Add padding to prevent content being hidden by sticky bar */
    .marketplace-content {
        padding-bottom: 80px;
    }

    /* Hide desktop sort on mobile */
    .brands-toolbar .sort-select {
        display: none;
    }
}

.mobile-filter-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: white;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
}

.mobile-filter-btn:active {
    transform: scale(0.98);
    background: #F9FAFB;
}

.mobile-filter-btn--primary {
    background: #499EF1;
    border-color: #499EF1;
    color: white;
}

.mobile-filter-btn--primary:active {
    background: #3B82F6;
}

.filter-count {
    background: white;
    color: #499EF1;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Filter Drawer */
.filter-drawer,
.sort-drawer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s ease;
}

.filter-drawer.open,
.sort-drawer.open {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.3s ease;
}

.filter-drawer__backdrop,
.sort-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.filter-drawer__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 90vh;
    background: white;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.filter-drawer.open .filter-drawer__content {
    transform: translateY(0);
}

.sort-drawer__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sort-drawer.open .sort-drawer__content {
    transform: translateY(0);
}

/* Drawer Header */
.filter-drawer__header,
.sort-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #E5E7EB;
    flex-shrink: 0;
}

.filter-drawer__header h3,
.sort-drawer__header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: #111827;
}

.filter-drawer__close,
.sort-drawer__close {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #6B7280;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.filter-drawer__close:hover,
.sort-drawer__close:hover {
    background: #F3F4F6;
    color: #111827;
}

/* Drawer Body */
.filter-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
}

.sort-drawer__body {
    padding: 0.5rem 0 1.5rem;
}

/* Filter Sections */
.filter-section {
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-section__title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem;
}

.filter-section__content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Category Checkboxes in Drawer */
.filter-checkbox-drawer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    cursor: pointer;
    user-select: none;
}

.filter-checkbox-drawer input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #D1D5DB;
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--primary);
}

.filter-checkbox-drawer span {
    font-size: 0.9375rem;
    color: #374151;
}

/* Price Range Inputs */
.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-input-group {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.price-input-prefix {
    position: absolute;
    left: 0.75rem;
    color: #9CA3AF;
    font-size: 0.875rem;
    font-weight: 500;
}

.price-input-group input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2rem;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: #111827;
}

.price-input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(73, 158, 241, 0.1);
}

.price-separator {
    color: #9CA3AF;
    font-weight: 500;
}

/* Rating Filter */
.rating-filter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-btn:hover {
    border-color: var(--primary);
    background: rgba(73, 158, 241, 0.05);
}

.rating-btn.active {
    border-color: var(--primary);
    background: rgba(73, 158, 241, 0.1);
}

.rating-btn .stars {
    color: #F59E0B;
    font-size: 1rem;
    letter-spacing: 0.125em;
}

.rating-btn .label {
    font-size: 0.8125rem;
    color: #6B7280;
}

/* Toggle Switch */
.filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem 0;
}

.filter-toggle input {
    display: none;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 28px;
    background: #E5E7EB;
    border-radius: 14px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.filter-toggle input:checked + .toggle-switch {
    background: var(--primary);
}

.filter-toggle input:checked + .toggle-switch::after {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 0.9375rem;
    color: #374151;
}

/* Drawer Footer */
.filter-drawer__footer {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #E5E7EB;
    background: white;
    flex-shrink: 0;
}

.filter-drawer__footer .btn {
    flex: 1;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 8px;
    min-height: 48px;
}

.filter-drawer__footer .btn-outline {
    background: white;
    border: 1px solid #D1D5DB;
    color: #374151;
}

.filter-drawer__footer .btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

/* Sort Options */
.sort-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    color: #374151;
    transition: background 0.15s ease;
}

.sort-option:hover {
    background: #F9FAFB;
}

.sort-option.active {
    color: var(--primary);
    font-weight: 600;
}

.sort-option svg {
    display: none;
}

.sort-option.active svg {
    display: block;
    color: var(--primary);
}

/* Prevent body scroll when drawer is open */
body.drawer-open {
    overflow: hidden;
}

/* ============================================
   PRODUCT PAGE - MOBILE APP ENHANCEMENTS
   ============================================ */

/* Mobile Sticky CTA */
.product-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #E5E7EB;
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (max-width: 768px) {
    .product-sticky-cta {
        display: flex;
    }

    .product-cta--desktop {
        display: none;
    }

    /* Add padding to page content for sticky CTA */
    .product-page {
        padding-bottom: 80px;
    }
}

.sticky-cta__price {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.sticky-cta__current {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.sticky-cta__compare {
    font-size: 0.8125rem;
    color: #9CA3AF;
    text-decoration: line-through;
}

.sticky-cta__btn {
    flex: 1;
    max-width: 200px;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
}

/* Share Button */
.product-share-btn {
    display: none;
    position: fixed;
    top: 5rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 50;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.product-share-btn:active {
    transform: scale(0.95);
    background: #F3F4F6;
}

.product-share-btn svg {
    color: #374151;
}

@media (max-width: 768px) {
    .product-share-btn {
        display: flex;
    }
}

/* Gallery Dots Indicator */
.gallery-dots {
    display: none;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
}

@media (max-width: 768px) {
    .gallery-dots {
        display: flex;
    }

    .gallery-thumbs {
        display: none;
    }
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D1D5DB;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-dot.active {
    background: #499EF1;
    width: 24px;
    border-radius: 4px;
}

/* Product Page Mobile Improvements */
@media (max-width: 768px) {
    /* Breadcrumbs smaller on mobile */
    .product-page .breadcrumbs {
        font-size: 0.75rem;
        padding-top: calc(70px + 0.5rem);
    }

    /* Product layout stack */
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Gallery full width */
    .product-gallery {
        margin: 0 -1rem;
    }

    .gallery-main {
        border-radius: 0;
    }

    /* Product name */
    .product-name {
        font-size: 1.375rem;
        line-height: 1.3;
    }

    /* Price bigger */
    .product-price .price-current {
        font-size: 1.5rem;
    }

    /* Vendor info compact */
    .product-info__vendor {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .product-info__vendor .vendor-logo {
        width: 40px;
        height: 40px;
    }

    /* USP items horizontal scroll */
    .linkadeo-usp {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
        background: #F9FAFB;
        border-radius: 12px;
        margin: 1rem 0;
    }

    .usp-item {
        font-size: 0.8125rem;
        gap: 0.5rem;
    }

    .usp-item svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    /* Tabs - horizontal scroll */
    .tabs-nav {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
        border-bottom: 1px solid #E5E7EB;
        margin: 0 -1rem;
        padding: 0 1rem;
    }

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

    .tab-btn {
        flex-shrink: 0;
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }

    /* Product details section */
    .product-details {
        padding: 1rem;
        margin: 0 -1rem;
        border-radius: 0;
    }

    /* Touch targets */
    .product-tags .tag {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        min-height: 32px;
    }

    .variant-btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }

    /* Vendor info card */
    .product-vendor-info {
        padding: 1rem;
        margin-top: 1.5rem;
    }

    .product-vendor-info h4 {
        font-size: 0.9375rem;
        margin-bottom: 0.5rem;
    }

    .product-vendor-info p {
        font-size: 0.8125rem;
        line-height: 1.5;
    }
}

/* Ultra small mobile */
@media (max-width: 380px) {
    .product-name {
        font-size: 1.25rem;
    }

    .sticky-cta__current {
        font-size: 1.125rem;
    }

    .sticky-cta__btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}
