/**
 * City & Mabeauté — Boutique en ligne
 * CSS Premium · Design Élégant · Gradients par session
 * Version 4.0
 */

/* ══════════════════════════════════════════════════════
   IMPORTS TYPOGRAPHIQUES
   ══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ══════════════════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════════════════ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #1a1a2e;
    background: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* ══════════════════════════════════════════════════════
   VARIABLES — SYSTÈME DE DESIGN
   ══════════════════════════════════════════════════════ */

:root {
    /* Gradients de session — surchargés par JS */
    --session-hue:  145;
    --session-hue2: 195;
    --session-hue3: 265;

    --color-primary:       hsl(var(--session-hue), 72%, 20%);
    --color-primary-dark:  hsl(var(--session-hue), 72%, 14%);
    --color-primary-light: hsl(var(--session-hue), 60%, 32%);
    --color-primary-pale:  hsl(var(--session-hue), 60%, 96%);
    --color-accent:        hsl(var(--session-hue2), 65%, 38%);

    --grad-primary: linear-gradient(135deg,
        hsl(var(--session-hue), 72%, 20%) 0%,
        hsl(var(--session-hue), 60%, 32%) 100%);
    --grad-accent:  linear-gradient(135deg,
        hsl(var(--session-hue2), 70%, 38%) 0%,
        hsl(var(--session-hue2), 60%, 52%) 100%);
    --grad-hero:    linear-gradient(135deg,
        hsl(var(--session-hue),  72%, 20%) 0%,
        hsl(var(--session-hue2), 65%, 35%) 50%,
        hsl(var(--session-hue3), 55%, 28%) 100%);
    --grad-card:    linear-gradient(135deg,
        hsl(var(--session-hue),  72%, 98%) 0%,
        hsl(var(--session-hue2), 60%, 97%) 100%);
    --grad-footer:  linear-gradient(135deg,
        hsl(var(--session-hue), 72%, 8%)  0%,
        hsl(var(--session-hue), 55%, 14%) 100%);

    /* Système */
    --success: #10b981;
    --warning: #f59e0b;
    --error:   #ef4444;
    --info:    #3b82f6;

    /* Neutres */
    --white:    #ffffff;
    --gray-50:  #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Ombres */
    --shadow-xs:      0 1px 2px rgba(0,0,0,.04);
    --shadow-sm:      0 1px 4px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:      0 4px 12px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05);
    --shadow-lg:      0 10px 24px rgba(0,0,0,.08), 0 4px 8px rgba(0,0,0,.05);
    --shadow-xl:      0 20px 40px rgba(0,0,0,.10), 0 8px 16px rgba(0,0,0,.06);
    --shadow-2xl:     0 32px 64px rgba(0,0,0,.14);
    --shadow-colored: 0 12px 32px rgba(0,0,0,.18);

    /* Rayons */
    --r-xs:   4px;
    --r-sm:   8px;
    --r-md:   12px;
    --r-lg:   16px;
    --r-xl:   24px;
    --r-2xl:  32px;
    --r-full: 9999px;

    /* Transitions */
    --t-fast:   150ms cubic-bezier(.4,0,.2,1);
    --t-base:   250ms cubic-bezier(.4,0,.2,1);
    --t-slow:   380ms cubic-bezier(.4,0,.2,1);
    --t-spring: 500ms cubic-bezier(.34,1.56,.64,1);

    /* Layout */
    --max-w:    1300px;
    --pad-x:    1.5rem;
    --header-h: 72px;

    /* Z-index */
    --z-sticky:   1020;
    --z-modal-bg: 1040;
    --z-modal:    1050;
    --z-toast:    1070;
}

/* ══════════════════════════════════════════════════════
   UTILITAIRES LAYOUT
   ══════════════════════════════════════════════════════ */

.header-inner,
.categories-bar-inner,
.hero-inner,
.products-section-inner,
.footer-inner {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

/* ══════════════════════════════════════════════════════
   LOADING STATE
   ══════════════════════════════════════════════════════ */

#loadingState {
    position: fixed;
    inset: 0;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 9999;
    transition: opacity var(--t-slow);
}

#loadingState p {
    font-size: .95rem;
    color: var(--gray-500);
    letter-spacing: .03em;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--gray-100);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin .75s linear infinite;
}

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

/* ══════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════ */

.header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--gray-100);
    box-shadow: 0 1px 0 rgba(0,0,0,.03), 0 4px 20px rgba(0,0,0,.03);
    transition: box-shadow var(--t-base);

}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: var(--header-h);
}

/* Brand */
.header-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform var(--t-base);
}

.header-brand:hover { transform: translateY(-1px); }

.logo-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    background: var(--gray-50);
}

.brand-name {
    font-size: 29px;
    font-weight: 700;
    letter-spacing: -.02em;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

/* Barre de recherche */
.header-search {
    flex: 1;
    max-width: 500px;
}

.header-search-mobile { display: none; }

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--gray-400);
    pointer-events: none;
    transition: color var(--t-base);
    flex-shrink: 0;
    z-index: 1;
}

.search-input {
    width: 100%;
    height: 46px;
    padding: 0 3.5rem 0 2.875rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--r-full);
    background: var(--gray-50);
    color: var(--gray-800);
    font-size: .925rem;
    transition: all var(--t-base);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--color-primary-pale);
}

.search-wrapper:focus-within .search-icon { color: var(--color-primary); }
.search-input::placeholder { color: var(--gray-400); }

.search-btn {
    position: absolute;
    right: .35rem;
    width: 36px;
    height: 36px;
    border-radius: var(--r-full);
    background: var(--grad-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-base);
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

.search-btn:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow-colored);
}

/* Actions header */
.header-actions {
    display: flex;
    align-items: center;
    gap: .375rem;
    flex-shrink: 0;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .875rem;
    border-radius: var(--r-full);
    color: var(--gray-700);
    font-size: .875rem;
    font-weight: 500;
    transition: all var(--t-base);
    border: 1.5px solid transparent;
    white-space: nowrap;
}

.header-btn:hover {
    background: var(--color-primary-pale);
    color: var(--color-primary);
    border-color: var(--gray-200);
    transform: translateY(-1px);
}

.header-btn-label { font-size: .85rem; }

/* Bouton panier */
.cart-btn {
    position: relative;
    background: var(--grad-primary) !important;
    color: var(--white) !important;
    border-color: transparent !important;
    padding: .5rem 1.125rem;
    box-shadow: var(--shadow-md);
}

.cart-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-colored) !important;
}

.cart-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    background: var(--error);
    color: var(--white);
    border-radius: var(--r-full);
    font-size: .7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 .35rem;
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(239,68,68,.4);
    animation: badgePop var(--t-spring) forwards;
}

@keyframes badgePop {
    0%   { transform: scale(0); }
    100% { transform: scale(1); }
}

/* ══════════════════════════════════════════════════════
   BARRE DE CATÉGORIES
   ══════════════════════════════════════════════════════ */

.categories-bar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    position: sticky;
    top: var(--header-h);
    z-index: calc(var(--z-sticky) - 1);
    box-shadow: 0 2px 12px rgba(0,0,0,.035);
}

.categories-bar-inner { padding-top: 0; padding-bottom: 0; }

.categories-scroll {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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


.categories-chips-list
{
    display: flex;
}
/* Chips catégorie */
.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem 1rem;
    border-radius: var(--r-full);
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-700);
    font-size: .875rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--t-base);
    flex-shrink: 0;
}

.cat-chip:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-pale);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.cat-chip.active {
    background: var(--grad-primary);
    border-color: transparent;
    color: var(--white);
    box-shadow: var(--shadow-colored);
    transform: translateY(-1px);
}

.cat-chip.active:hover { transform: translateY(-3px); }

.cat-chip-count {
    background: rgba(0,0,0,.08);
    color: inherit;
    border-radius: var(--r-full);
    font-size: .73rem;
    font-weight: 700;
    padding: .1rem .45rem;
    min-width: 22px;
    text-align: center;
}

.cat-chip.active .cat-chip-count { background: rgba(255,255,255,.22); }

.cat-chip-more {
    border-style: dashed;
    border-color: var(--gray-300);
    color: var(--gray-500);
}

.cat-chip-more:hover { border-style: solid; }

/* Modale — Grille toutes catégories */
.all-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: .75rem;
    padding: .25rem 0;
}

.all-cat-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    padding: .875rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--r-lg);
    background: var(--white);
    cursor: pointer;
    transition: all var(--t-base);
    text-align: left;
}

.all-cat-card:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-pale);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.all-cat-card.active {
    background: var(--grad-primary);
    border-color: transparent;
    color: var(--white);
    box-shadow: var(--shadow-colored);
}

.all-cat-name {
    font-weight: 600;
    font-size: .9rem;
    color: var(--gray-800);
    line-height: 1.3;
}

.all-cat-card.active .all-cat-name { color: var(--white); }

.all-cat-count {
    font-size: .78rem;
    font-weight: 700;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: .15rem .5rem;
    border-radius: var(--r-full);
}

.all-cat-card.active .all-cat-count {
    background: rgba(255,255,255,.22);
    color: var(--white);
}

/* ══════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════ */

.hero-section {
    background: var(--white);
    padding: 3.5rem 0 3rem;
    overflow: hidden;
    position: relative;
}

/* Fond décoratif ambiant */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 80% 50%, hsl(var(--session-hue2), 70%, 96%) 0%, transparent 60%),
        radial-gradient(ellipse 40% 50% at 5%  80%, hsl(var(--session-hue),  70%, 95%) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

/* Partie A */
.hero-info { animation: heroSlideLeft .8s cubic-bezier(.4,0,.2,1) forwards; }

@keyframes heroSlideLeft {
    from { opacity: 0; transform: translateX(-28px); }
    to   { opacity: 1; transform: translateX(0); }
}

.hero-info-content {
    display: flex;
    flex-direction: column;
    gap: 1.375rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: var(--grad-card);
    border: 1.5px solid hsl(var(--session-hue), 60%, 90%);
    color: var(--color-primary);
    font-size: .8rem;
    font-weight: 600;
    padding: .375rem .9rem;
    border-radius: var(--r-full);
    width: fit-content;
    letter-spacing: .03em;
}

.hero-title {
    /*font-family: 'Playfair Display', Georgia, serif;*/
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -.025em;
    color: var(--gray-900);
}

.hero-description {
    font-size: 1.0625rem;
    color: var(--gray-600);
    line-height: 1.7;
    max-width: 480px;
}

/* Stats hero */
.hero-stats {
    display: flex;
    gap: 2rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.hero-stat-value {
    /*font-family: 'Playfair Display', Georgia, serif;*/
    font-size: 1.875rem;
    font-weight: 700;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.hero-stat-label {
    font-size: .775rem;
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .07em;
}

/* CTA hero */
.hero-actions {
    display: flex;
    gap: .875rem;
    flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════
   CARROUSEL HERO — PARTIE B
   ══════════════════════════════════════════════════════ */

.hero-carousel-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: heroSlideRight .8s .15s cubic-bezier(.4,0,.2,1) both;
}

@keyframes heroSlideRight {
    from { opacity: 0; transform: translateX(28px); }
    to   { opacity: 1; transform: translateX(0); }
}

.hero-carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 .25rem;
}

.hero-carousel-title {
    font-size: .75rem;
    font-weight: 700;
    color: var(--gray-500);
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hero-carousel-nav {
    display: flex;
    gap: .4rem;
}

.carousel-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--r-full);
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-base);
    cursor: pointer;
    box-shadow: var(--shadow-xs);
}

.carousel-nav-btn:hover:not(:disabled) {
    background: var(--grad-primary);
    border-color: transparent;
    color: var(--white);
    box-shadow: var(--shadow-colored);
    transform: scale(1.05);
}

.carousel-nav-btn:disabled { opacity: .3; cursor: not-allowed; }


.hero-product-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gray-100);
}

.hero-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.4,0,.2,1);
}

.hero-product-card:hover .hero-product-image { transform: scale(1.06); }

.hero-product-badge {
    position: absolute;
    top: .875rem;
    left: .875rem;
    padding: .35rem .8rem;
    border-radius: var(--r-full);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.hero-product-info {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: .875rem;
    background: var(--white);
}

.hero-product-category {
    font-size: .73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--color-accent);
}

.hero-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: auto;
}

.hero-product-price {
    font-size: 1.375rem;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-product-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--r-full);
    background: var(--grad-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-spring);
    box-shadow: var(--shadow-colored);
    flex-shrink: 0;
}

.hero-product-btn:hover {
    transform: scale(1.14) rotate(8deg);
    box-shadow: var(--shadow-xl);
}

/* Dots carrousel */
.carousel-dots {
    display: flex;
    gap: .45rem;
    justify-content: center;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--r-full);
    background: var(--gray-300);
    cursor: pointer;
    transition: all var(--t-base);
    border: none;
}

.carousel-dot.active {
    width: 26px;
    background: var(--grad-primary);
    box-shadow: var(--shadow-colored);
}

.carousel-dot:hover:not(.active) { background: var(--gray-400); }

/* ══════════════════════════════════════════════════════
   BOUTONS — SYSTÈME
   ══════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.625rem;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--r-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--t-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    letter-spacing: .01em;
}

.btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Shimmer effect */
.btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
    transition: left .55s ease;
}
.btn:hover::after { left: 100%; }

.btn-primary {
    background: var(--grad-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-colored);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary-pale);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-ghost {
    background: var(--gray-100);
    color: var(--gray-700);
}
.btn-ghost:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

.btn-sm {
    padding: .45rem .95rem;
    font-size: .825rem;
}

/* ══════════════════════════════════════════════════════
   SECTION PRODUITS
   ══════════════════════════════════════════════════════ */

.products-section { padding: 3rem 0 5rem; }

.products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-radius: var(--r-xl);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.products-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.products-title {
    /*font-family: 'Playfair Display', Georgia, serif;*/
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gray-900);
}

.products-count {
    font-size: .875rem;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: .3rem .8rem;
    border-radius: var(--r-full);
    font-weight: 500;
}

.products-count #resultsCount {
    font-weight: 700;
    color: var(--color-primary);
}

.products-header-right {
    display: flex;
    align-items: center;
    gap: .625rem;
    flex-wrap: wrap;
}

.filter-select {
    height: 40px;
    padding: 0 2.25rem 0 .875rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--r-full);
    background: var(--white);
    color: var(--gray-700);
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--t-base);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .875rem center;
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--color-primary-pale);
}

.view-toggle {
    display: flex;
    gap: 3px;
    background: var(--gray-100);
    padding: 3px;
    border-radius: var(--r-full);
}

.view-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-full);
    color: var(--gray-500);
    transition: all var(--t-base);
    cursor: pointer;
}

.view-btn:hover { color: var(--color-primary); }

.view-btn.active {
    background: var(--white);
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

/* ══════════════════════════════════════════════════════
   GRILLE PRODUITS
   ══════════════════════════════════════════════════════ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Carte produit */
.product-card {
    background: var(--white);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: all var(--t-base);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: hsl(var(--session-hue), 60%, 88%);
}

.product-image-wrapper {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: var(--gray-50);
}

.product-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.4,0,.2,1);
}

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

.product-badge {
    position: absolute;
    top: .875rem;
    left: .875rem;
    padding: .35rem .75rem;
    border-radius: var(--r-full);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.badge-promo { background: linear-gradient(135deg, #ef4444, #dc2626); color: var(--white); }
.badge-top   { background: linear-gradient(135deg, #f59e0b, #d97706); color: var(--white); }

/* Overlay produit */
.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.28) 45%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    opacity: 0;
    transition: opacity var(--t-base);
    z-index: 3;
}

.product-card:hover .product-overlay { opacity: 1; }

.btn-overlay {
    width: 46px;
    height: 46px;
    background: var(--white);
    color: var(--color-primary);
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(12px);
    transition: all var(--t-spring);
    box-shadow: var(--shadow-lg);
}

.product-card:hover .btn-overlay { transform: translateY(0); }

.btn-overlay:hover {
    background: var(--grad-primary);
    color: var(--white);
    transform: scale(1.1) !important;
    box-shadow: var(--shadow-colored);
}

.btn-add-to-cart { transition-delay: 55ms; }

/* Infos produit */
.product-info {
    padding: 1.125rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    flex: 1;
}

.product-category {
    font-size: .73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--color-accent);
}

.product-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.35;
}

.product-description {
    font-size: .875rem;
    color: var(--gray-500);
    line-height: 1.55;
    flex: 1;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid var(--gray-100);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-stock {
    font-size: .765rem;
    font-weight: 600;
    padding: .3rem .7rem;
    border-radius: var(--r-full);
}

.product-stock.in-stock    { background: rgba(16,185,129,.1);  color: var(--success); }
.product-stock.out-of-stock { background: rgba(239,68,68,.08); color: var(--error); }

/* Vue liste */
.products-list .product-card { flex-direction: row; }

.products-list .product-image-wrapper {
    width: 200px;
    padding-top: 0;
    flex-shrink: 0;
}

.products-list .product-image {
    position: static;
    width: 100%;
    height: 100%;
}

/* État vide */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    text-align: center;
    gap: 1rem;
}

.empty-state svg { color: var(--gray-300); }
.empty-state h3  { font-size: 1.375rem; font-weight: 700; color: var(--gray-800); }
.empty-state p   { color: var(--gray-500); }

/* ══════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════ */

.pagination-container {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .875rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: .375rem;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-full);
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-700);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--t-base);
    padding: 0 .625rem;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-pale);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.pagination-btn.active {
    background: var(--grad-primary);
    border-color: transparent;
    color: var(--white);
    box-shadow: var(--shadow-colored);
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: .3;
    cursor: not-allowed;
}

.pagination-prev,
.pagination-next {
    color: var(--gray-600);
}

.pagination-ellipsis {
    color: var(--gray-400);
    font-size: .9rem;
    padding: 0 .25rem;
    user-select: none;
}

.pagination-info {
    font-size: .85rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ══════════════════════════════════════════════════════
   MODALES — SYSTÈME DE BASE
   ══════════════════════════════════════════════════════ */

.modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal.modal-open { display: flex; }

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: fadeOverlay var(--t-base) forwards;
}

@keyframes fadeOverlay { from { opacity: 0; } to { opacity: 1; } }

.modal-panel {
    position: relative;
    background: var(--white);
    border-radius: var(--r-2xl);
    max-width: min(95vw, var(--panel-max-w, 600px));
    max-height: 90vh;
    width: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    display: flex;
    flex-direction: column;
    animation: panelIn var(--t-spring) forwards;
}

@keyframes panelIn {
    from { opacity: 0; transform: translateY(32px) scale(.96); }
    to   { opacity: 1; transform: translateY(0)  scale(1); }
}

.modal-panel-sm   { --panel-max-w: 500px; }
.modal-panel-md   { --panel-max-w: 700px; }
.modal-panel-lg   { --panel-max-w: 980px; }
.modal-panel-cart { --panel-max-w: 520px; }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
    flex-shrink: 0;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: .625rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
}

.modal-title svg { color: var(--color-primary); }

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-full);
    color: var(--gray-500);
    background: var(--white);
    transition: all var(--t-base);
    cursor: pointer;
    border: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--error);
    transform: rotate(90deg);
    border-color: rgba(239,68,68,.2);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
}

.modal-body::-webkit-scrollbar { width: 5px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }

.modal-footer {
    padding: 1.125rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   MODAL DÉTAIL PRODUIT
   ══════════════════════════════════════════════════════ */

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

/* Galerie */
.product-detail-gallery {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--gray-100);
    position: relative;
    box-shadow: var(--shadow-md);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}

.gallery-main:hover img { transform: scale(1.04); }

.video-embed-wrapper { width: 100%; height: 100%; }
.video-embed-wrapper iframe { width: 100%; height: 100%; border: none; }

.gallery-thumbs {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--r-md);
    overflow: hidden;
    cursor: pointer;
    border: 2.5px solid transparent;
    transition: all var(--t-base);
    flex-shrink: 0;
    background: var(--gray-100);
}

.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumb:hover { border-color: hsl(var(--session-hue), 60%, 70%); transform: scale(1.04); }
.gallery-thumb.active { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-pale); }

.video-thumb {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

/* Infos modal produit */
.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-detail-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.product-detail-title {
    /*font-family: 'Playfair Display', Georgia, serif;*/
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.25;
}

.product-detail-ref {
    font-size: .85rem;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: .3rem .75rem;
    border-radius: var(--r-full);
    width: fit-content;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-detail-stock-qty {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .875rem;
    font-weight: 500;
    padding: .625rem 1rem;
    border-radius: var(--r-lg);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    display: none;
}

.product-detail-stock-qty svg { flex-shrink: 0; }

.product-detail-actions {
    display: flex;
    gap: .75rem;
    margin-top: .5rem;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--white);
}

.qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    color: var(--color-primary);
    font-size: 1.25rem;
    font-weight: 700;
    transition: all var(--t-base);
    cursor: pointer;
    flex-shrink: 0;
    border: none;
}

.qty-btn:hover {
    background: var(--grad-primary);
    color: var(--white);
}

.qty-input {
    width: 58px;
    height: 40px;
    text-align: center;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    background: transparent;
}

.qty-input:focus { outline: none; }

.btn-add-modal {
    flex: 1;
    height: 52px;
    font-size: 1rem;
}

.product-out-of-stock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .875rem;
    padding: 1.75rem;
    background: rgba(239,68,68,.04);
    border: 2px dashed rgba(239,68,68,.2);
    border-radius: var(--r-xl);
    text-align: center;
    margin-top: .5rem;
}

.product-out-of-stock svg { color: var(--error); }
.product-out-of-stock p { color: var(--error); font-weight: 600; font-size: .95rem; }

/* Onglets */
.product-detail-tabs {
    border-top: 2px solid var(--gray-100);
    padding-top: 1.5rem;
}

.tabs-nav {
    display: flex;
    gap: .25rem;
    border-bottom: 2px solid var(--gray-200);
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 1.25rem;
}

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

.tab-btn {
    padding: .75rem 1.125rem;
    border: none;
    background: transparent;
    color: var(--gray-500);
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: all var(--t-base);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    border-radius: var(--r-sm) var(--r-sm) 0 0;
    margin-bottom: -2px;
}

.tab-btn:hover { color: var(--color-primary); background: var(--color-primary-pale); }
.tab-btn.active { color: var(--color-primary); border-bottom-color: var(--color-primary); background: var(--color-primary-pale); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeTabIn .3s ease forwards; }

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

.tab-content-text {
    color: var(--gray-700);
    line-height: 1.72;
    font-size: .95rem;
}

/* ══════════════════════════════════════════════════════
   MODAL PANIER
   ══════════════════════════════════════════════════════ */

.cart-modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1.5rem;
    text-align: center;
    gap: .875rem;
}

.empty-cart svg { color: var(--gray-200); margin-bottom: .5rem; }
.empty-cart h3  { font-size: 1.25rem; font-weight: 700; color: var(--gray-800); }
.empty-cart p   { color: var(--gray-500); font-size: .95rem; }

.cart-items { display: flex; flex-direction: column; gap: .75rem; }

.cart-item {
    display: flex;
    align-items: center;
    gap: .875rem;
    padding: .875rem;
    background: var(--gray-50);
    border-radius: var(--r-lg);
    border: 1px solid var(--gray-100);
    transition: all var(--t-base);
    position: relative;
}

.cart-item:hover {
    background: var(--color-primary-pale);
    border-color: hsl(var(--session-hue), 60%, 88%);
}

.cart-item-image {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: var(--r-md);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    background: var(--gray-100);
}

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

.cart-item-name {
    font-size: .95rem;
    font-weight: 600;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: .2rem;
}

.cart-item-price { font-size: .85rem; color: var(--gray-500); }

.cart-item-quantity {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: var(--r-full);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.cart-item-quantity .qty-btn { width: 30px; height: 30px; font-size: 1rem; }

.qty-value {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: var(--gray-900);
    font-size: .9rem;
}

.cart-item-total {
    font-size: 1rem;
    font-weight: 700;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

.cart-item-remove {
    position: absolute;
    top: .5rem;
    right: .5rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-full);
    color: var(--gray-400);
    background: var(--white);
    transition: all var(--t-base);
    cursor: pointer;
    border: 1px solid transparent;
}

.cart-item-remove:hover {
    background: rgba(239,68,68,.08);
    color: var(--error);
    border-color: rgba(239,68,68,.2);
}

.cart-modal-footer {
    display: flex;
    flex-direction: column;
    gap: .875rem;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: var(--gray-700);
}

.cart-subtotal strong {
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cart-actions { display: flex; gap: .75rem; }
.cart-actions .btn { flex: 1; }

/* ══════════════════════════════════════════════════════
   MODAL CHECKOUT
   ══════════════════════════════════════════════════════ */

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .95rem;
    font-weight: 700;
    color: var(--gray-900);
    padding: .625rem 0;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 1rem;
    margin-top: 1.375rem;
}

.form-section-title:first-child { margin-top: 0; }
.form-section-title svg { color: var(--color-primary); }

.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: .4rem;
}

.optional { font-weight: 400; color: var(--gray-400); font-size: .8rem; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--r-lg);
    color: var(--gray-900);
    background: var(--white);
    font-size: .95rem;
    transition: all var(--t-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-primary-pale);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

/* Récap checkout */
.checkout-summary-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-xl);
    padding: 1.25rem;
    position: sticky;
    top: 0;
}

.checkout-summary-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    padding-bottom: .875rem;
    border-bottom: 1px solid var(--gray-200);
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: .9rem;
    gap: .5rem;
}

.checkout-item:last-child { border-bottom: none; }
.checkout-item-name { color: var(--gray-700); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.checkout-item-price { font-weight: 600; color: var(--color-primary); flex-shrink: 0; }

.checkout-totals {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    font-size: .925rem;
    color: var(--gray-700);
}

.checkout-grand-total {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-primary);
    padding-top: .75rem;
    margin-top: .25rem;
    border-top: 2px solid hsl(var(--session-hue), 60%, 85%);
}

.checkout-grand-total strong {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.checkout-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
}

/* ══════════════════════════════════════════════════════
   MODAL CONFIRMATION — PREMIUM
   ══════════════════════════════════════════════════════ */

.confirmation-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem 1.75rem;
    gap: 0;
}

/* Icône succès animée */
.confirmation-success-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 16px 40px rgba(0,0,0,.18);
    animation: iconBounceIn var(--t-spring) forwards;
}

@keyframes iconBounceIn {
    0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
    65%  { transform: scale(1.1) rotate(4deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

.confirmation-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: .75rem;
}

.confirmation-message {
    font-size: .975rem;
    color: var(--gray-600);
    line-height: 1.7;
    max-width: 420px;
    margin-bottom: 1.75rem;
}

/* Bloc référence */
.confirmation-reference-block {
    width: 100%;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--r-xl);
    padding: 1.25rem 1.25rem 1rem;
    margin-bottom: 1rem;
    text-align: left;
}

.confirmation-reference-label {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gray-500);
    margin-bottom: .75rem;
    text-align: center;
}

.confirmation-reference-box {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--white);
    border: 2px solid hsl(var(--session-hue), 60%, 80%);
    border-radius: var(--r-lg);
    padding: .875rem 1rem;
    margin-bottom: 1rem;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.04);
}

.confirmation-reference {
    /*font-family: 'Playfair Display', Georgia, serif;*/
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex: 1;
    letter-spacing: .02em;
    text-align: left;
}

.btn-copy-reference {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .9rem;
    background: var(--grad-primary);
    color: var(--white);
    border-radius: var(--r-lg);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--t-base);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    border: none;
}

.btn-copy-reference:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-colored);
}

.confirmation-reference-hint {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    font-size: .825rem;
    color: var(--gray-500);
    line-height: 1.55;
    background: var(--color-primary-pale);
    border: 1px solid hsl(var(--session-hue), 60%, 88%);
    border-radius: var(--r-lg);
    padding: .75rem .875rem;
    text-align: left;
}

.confirmation-reference-hint svg { color: var(--color-accent); flex-shrink: 0; margin-top: .1rem; }

/* Bannière "Mes commandes" */
.confirmation-my-orders-hint {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    color: var(--gray-600);
    background: hsl(var(--session-hue2), 60%, 97%);
    border: 1px solid hsl(var(--session-hue2), 60%, 88%);
    border-radius: var(--r-lg);
    padding: .75rem 1rem;
    text-align: left;
}

.confirmation-my-orders-hint svg { color: var(--color-accent); flex-shrink: 0; }
.confirmation-my-orders-hint strong { color: var(--color-primary); }

.confirmation-modal-footer {
    display: flex;
    gap: .75rem;
    justify-content: center;
    padding: 1.125rem 2rem;
}

/* ══════════════════════════════════════════════════════
   MODAL SUIVI DE COMMANDE — PREMIUM
   ══════════════════════════════════════════════════════ */

.track-order-body { padding: 1.5rem; }

.track-order-intro {
    font-size: .95rem;
    color: var(--gray-600);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.track-input-row {
    display: flex;
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.track-input {
    flex: 1;
    height: 48px;
    padding: 0 1.125rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--r-lg);
    font-size: .95rem;
    color: var(--gray-900);
    background: var(--white);
    transition: all var(--t-base);
    letter-spacing: .02em;
}

.track-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-primary-pale);
}

/* Loading */
.track-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem;
}

.track-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

.track-loading p { font-size: .9rem; color: var(--gray-500); }

/* Erreur suivi */
.track-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .875rem;
    padding: 2.5rem;
    text-align: center;
}

.track-error svg { color: var(--error); }
.track-error h3  { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); }
.track-error p   { font-size: .925rem; color: var(--gray-600); max-width: 380px; }

/* Résultats de suivi */
.order-details { animation: fadeTabIn .4s ease forwards; }

/* En-tête statut */
.order-track-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--gray-50);
    border-radius: var(--r-xl);
    border: 1px solid var(--gray-200);
    margin-bottom: 1.25rem;
}

.order-track-status-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.order-track-status-icon.status-pending   { background: rgba(245,158,11,.12); color: #d97706; }
.order-track-status-icon.status-delivered { background: rgba(16,185,129,.12); color: var(--success); }
.order-track-status-icon.status-cancelled { background: rgba(239,68,68,.1);  color: var(--error); }

.order-track-status-text { flex: 1; }

.order-track-ref {
    /*font-family: 'Playfair Display', Georgia, serif;*/
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: .35rem;
}

.order-track-badge {
    display: inline-block;
    padding: .3rem .75rem;
    border-radius: var(--r-full);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .03em;
    margin-bottom: .35rem;
}

.order-track-badge.status-pending   { background: rgba(245,158,11,.12); color: #d97706; }
.order-track-badge.status-delivered { background: rgba(16,185,129,.12); color: var(--success); }
.order-track-badge.status-cancelled { background: rgba(239,68,68,.1);  color: var(--error); }

.order-track-desc { font-size: .85rem; color: var(--gray-500); margin-top: .25rem; }

.order-track-date {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .8rem;
    color: var(--gray-500);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Barre de progression */
.order-progress {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--color-primary-pale);
    border-radius: var(--r-xl);
    border: 1px solid hsl(var(--session-hue), 60%, 88%);
    margin-bottom: 1.5rem;
}

.order-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    flex: 1;
}

.step-dot {
    width: 42px;
    height: 42px;
    border-radius: var(--r-full);
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    transition: all var(--t-slow);
    border: 2px solid transparent;
}

.order-progress-step.done .step-dot {
    background: var(--grad-primary);
    box-shadow: var(--shadow-colored);
    border-color: transparent;
}

.step-label {
    font-size: .73rem;
    font-weight: 600;
    color: var(--gray-400);
    text-align: center;
    line-height: 1.3;
}

.order-progress-step.done .step-label { color: var(--color-primary); }

.step-line {
    height: 3px;
    flex: 1;
    background: var(--gray-200);
    border-radius: 2px;
    margin-bottom: 1.75rem;
    transition: background var(--t-slow);
}

.step-line.done { background: var(--grad-primary); }

/* Grille infos commande */
.order-track-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: .875rem;
    margin-bottom: 1.5rem;
}

.order-track-card {
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--r-lg);
    border: 1px solid var(--gray-200);
}

.order-track-card h4 {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 700;
    color: var(--gray-500);
    margin-bottom: .75rem;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.order-track-card h4 svg { color: var(--color-primary); }
.order-track-card p { font-size: .875rem; color: var(--gray-600); margin-bottom: .2rem; }
.order-track-card strong { color: var(--gray-900); }

.order-track-card-delivery {
    border-color: hsl(var(--session-hue), 60%, 85%);
    background: var(--color-primary-pale);
}

/* Produits commandés */
.order-track-products { margin-bottom: 1.25rem; }

.order-track-products h4 {
    font-size: .9rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: .875rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.order-track-products-list { display: flex; flex-direction: column; gap: .625rem; }

.order-track-product {
    display: flex;
    align-items: center;
    gap: .875rem;
    padding: .875rem;
    background: var(--gray-50);
    border-radius: var(--r-lg);
    border: 1px solid var(--gray-100);
    transition: background var(--t-base);
}

.order-track-product:hover { background: var(--color-primary-pale); }

.order-track-product-img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: var(--r-md);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.order-track-product-info { flex: 1; min-width: 0; }
.order-track-product-info strong { display: block; font-size: .9rem; color: var(--gray-900); margin-bottom: .15rem; }
.product-ref-small { font-size: .775rem; color: var(--gray-400); }

.order-track-product-qty   { font-size: .875rem; font-weight: 600; color: var(--gray-600); flex-shrink: 0; }
.order-track-product-price { font-size: .85rem; color: var(--gray-500); flex-shrink: 0; }
.order-track-product-total { font-size: .95rem; font-weight: 700; color: var(--color-primary); flex-shrink: 0; }

/* Totaux commande */
.order-track-totals {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    padding: 1rem 1.125rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1.25rem;
}

.order-track-total-row {
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
    color: var(--gray-600);
}

.order-track-grand-total {
    font-size: 1.125rem;
    font-weight: 800;
    padding-top: .75rem;
    margin-top: .25rem;
    border-top: 2px solid var(--gray-200);
}

.order-track-grand-total strong {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Notes */
.order-track-notes {
    background: hsl(var(--session-hue2), 60%, 97%);
    border-radius: var(--r-lg);
    padding: 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid hsl(var(--session-hue2), 60%, 88%);
}

.order-track-notes h4 { font-size: .85rem; font-weight: 700; color: var(--gray-700); margin-bottom: .4rem; }
.order-track-notes p  { font-size: .9rem; color: var(--gray-600); line-height: 1.55; }

/* Actions suivi */
.order-track-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════
   MES COMMANDES
   ══════════════════════════════════════════════════════ */

.my-orders-body { display: flex; flex-direction: column; gap: .875rem; }

.my-orders-info-banner {
    display: flex;
    align-items: center;
    gap: .625rem;
    background: var(--color-primary-pale);
    border: 1px solid hsl(var(--session-hue), 60%, 88%);
    border-radius: var(--r-lg);
    padding: .75rem 1rem;
    font-size: .85rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.my-orders-info-banner svg { color: var(--color-primary); flex-shrink: 0; }

.my-orders-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    padding: 3.5rem 1.5rem;
    text-align: center;
}

.my-orders-empty svg  { color: var(--gray-200); }
.my-orders-empty h3   { font-size: 1.25rem; font-weight: 700; color: var(--gray-800); }
.my-orders-empty p    { font-size: .925rem; color: var(--gray-500); max-width: 300px; }

.my-orders-list { display: flex; flex-direction: column; gap: .75rem; }

/* Item commande */
.my-order-item {
    padding: 1.125rem;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--r-xl);
    transition: all var(--t-base);
    display: flex;
    flex-direction: column;
    gap: .625rem;
}

.my-order-item:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-pale);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.my-order-ref-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.my-order-ref {
    /*font-family: 'Playfair Display', Georgia, serif;*/
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.my-order-status {
    display: inline-block;
    padding: .25rem .7rem;
    border-radius: var(--r-full);
    font-size: .75rem;
    font-weight: 600;
}

.status-pending   { background: rgba(245,158,11,.12); color: #d97706; }
.status-delivered { background: rgba(16,185,129,.12); color: var(--success); }
.status-cancelled { background: rgba(239,68,68,.1);  color: var(--error); }

.my-order-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.my-order-date,
.my-order-zone {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .8rem;
    color: var(--gray-500);
}

.my-order-total {
    font-weight: 700;
    color: var(--color-primary);
    font-size: .875rem;
    margin-left: auto;
}

.my-order-track-btn { align-self: flex-end; margin-top: .125rem; }

.my-orders-footer {
    display: flex;
    justify-content: flex-end;
}

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */

.footer {
    background: var(--grad-footer);
    color: rgba(255,255,255,.8);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

/* Accents décoratifs */
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
}

.footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 90% 20%, hsl(var(--session-hue2), 55%, 16%) 0%, transparent 55%),
        radial-gradient(ellipse 40% 40% at 5%  90%, hsl(var(--session-hue3), 45%, 12%) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.footer-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-brand-col,
.footer-contact-col,
.footer-delivery-col {
    display: flex;
    flex-direction: column;
    gap: .875rem;
}

.footer-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: var(--r-md);
    background: rgba(255,255,255,.1);
    padding: 4px;
}

.footer-brand-name {
    /*font-family: 'Playfair Display', Georgia, serif;*/
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -.015em;
}

.footer-tagline {
    font-size: .9rem;
    line-height: 1.7;
    color: rgba(255,255,255,.58);
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: .625rem;
    margin-top: .375rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--r-full);
    background: rgba(255,255,255,.09);
    color: rgba(255,255,255,.75);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-base);
    border: 1px solid rgba(255,255,255,.07);
}

.social-link:hover {
    background: rgba(255,255,255,.9);
    color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255,255,255,.12);
}

.footer-col-title {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255,255,255,.42);
    margin-bottom: .125rem;
}

.footer-list { display: flex; flex-direction: column; gap: .625rem; }

.footer-list li {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
    color: rgba(255,255,255,.68);
}

.footer-list li svg { color: rgba(255,255,255,.35); flex-shrink: 0; }
.footer-list a { color: rgba(255,255,255,.68); transition: color var(--t-base); }
.footer-list a:hover { color: var(--white); }

/* Zones footer */
.footer-zone-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .5rem;
    align-items: center;
    padding: .5rem .75rem;
    background: rgba(255,255,255,.055);
    border-radius: var(--r-md);
    margin-bottom: .35rem;
    border: 1px solid rgba(255,255,255,.05);
    font-size: .875rem;
    transition: background var(--t-base);
}

.footer-zone-item:hover { background: rgba(255,255,255,.09); }

.footer-zone-name  { color: rgba(255,255,255,.78); }
.footer-zone-price { font-weight: 700; color: rgba(255,255,255,.95); }
.footer-zone-delay { font-size: .775rem; color: rgba(255,255,255,.42); grid-column: 1 / -1; margin-top: -.25rem; }

/* Bas du footer */
.footer-bottom {
    position: relative;
    z-index: 1;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.07);
    text-align: center;
}

.footer-bottom p { font-size: .85rem; color: rgba(255,255,255,.38); }

/* ══════════════════════════════════════════════════════
   TOASTS
   ══════════════════════════════════════════════════════ */

.toast-container {
    position: fixed;
    top: calc(var(--header-h) + 1rem);
    right: 1.5rem;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-width: 380px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: .875rem;
    padding: .875rem 1.125rem;
    background: var(--white);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--color-primary);
    transform: translateX(calc(100% + 2rem));
    opacity: 0;
    transition: all var(--t-slow);
    pointer-events: none;
}

.toast.toast-visible {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    font-weight: 700;
    flex-shrink: 0;
}

.toast-message {
    font-size: .9rem;
    font-weight: 500;
    color: var(--gray-800);
    flex: 1;
    line-height: 1.4;
}

.toast-success { border-left-color: var(--success); }
.toast-success .toast-icon { background: rgba(16,185,129,.1); color: var(--success); }

.toast-error { border-left-color: var(--error); }
.toast-error .toast-icon { background: rgba(239,68,68,.1); color: var(--error); }

.toast-info { border-left-color: var(--info); }
.toast-info .toast-icon { background: rgba(59,130,246,.1); color: var(--info); }

/* ══════════════════════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════════════════════ */

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; border: 2px solid var(--gray-100); }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

@media (min-width: 1024px) {

    .header {
        padding-top: 27px;
        padding-bottom: 29px;
    }
}
/* ══════════════════════════════════════════════════════
   RESPONSIVE — TABLETTE
   ══════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    :root { --pad-x: 1.25rem; }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-title { font-size: 1.375rem; }
    .hero-carousel-wrapper { order: -1; }

    .product-detail-layout { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }

    .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }

    .logo-image {
        width: 44px;
        height: 44px;
    }

    .brand-name {
        font-size: 29px;
    }



}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
   ══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    :root { --header-h: 60px; --pad-x: 1rem; }

    /* Header mobile */
    .header-inner { gap: .625rem; }
    .brand-name { font-size: 1.125rem; }
    .header-search { display: none; }
    .header-btn-label { display: none; }
    .header-btn { padding: .5rem .625rem; }

    .header-search-mobile {
        display: block;
        padding: .5rem var(--pad-x);
        background: var(--white);
        border-bottom: 1px solid var(--gray-100);
    }

    /* Hero mobile */
    .hero-section { padding: 2rem 0; }
    .hero-title { font-size: 1rem; }
    .hero-stats { gap: 1.25rem; }
    .hero-stat-value { font-size: 1.5rem; }

    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }

    .hero-product-card { grid-template-columns: 1fr; }
    .hero-product-image-wrapper { aspect-ratio: 16/9; }
    .hero-product-info { padding: 0.25rem; }

    /* Produits mobile */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

    .products-header {
        flex-direction: column;
        align-items: stretch;
        gap: .75rem;
    }

    .products-header-left { justify-content: space-between; }
    .products-header-right { justify-content: flex-end; }

    /* Modales mobile */
    .modal { padding: 0; align-items: flex-end; }

    .modal-panel {
        max-width: 100vw;
        width: 100%;
        max-height: 95vh;
        border-radius: var(--r-2xl) var(--r-2xl) 0 0;
    }

    /* Panier */
    .cart-actions { flex-direction: column; }

    /* Produit modal */
    .product-detail-actions { flex-direction: column; }

    /* Confirmation */
    .confirmation-modal-body { padding: 2rem 1.25rem 1.25rem; }
    .confirmation-modal-footer { flex-direction: column; }
    .confirmation-modal-footer .btn { width: 100%; }

    /* Progression suivi */
    .order-progress { padding: .875rem 1rem; }
    .step-dot { width: 34px; height: 34px; font-size: .875rem; }
    .step-label { font-size: .68rem; }

    .order-track-grid { grid-template-columns: 1fr; }
    .order-track-actions { flex-direction: column; }

    /* Track */
    .track-input-row { flex-direction: column; }

    /* Footer */
    .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }

    /* Toasts */
    .toast-container {
        top: auto;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        max-width: 100%;
    }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — PETIT MOBILE
   ══════════════════════════════════════════════════════ */

@media (max-width: 480px) {
    .hero-title { font-size: 1rem; }
    .products-grid { grid-template-columns: 1fr; }
    .gallery-thumb { width: 60px; height: 60px; }

    .hero-product-name { font-size: 1.0625rem; }
    .hero-product-price { font-size: 1.125rem; }

    .pagination-btn { min-width: 36px; height: 36px; font-size: .85rem; }
}

/* ══════════════════════════════════════════════════════
   ACCESSIBILITÉ
   ══════════════════════════════════════════════════════ */

:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

::selection { background: var(--color-primary); color: var(--white); }


/* Correction débordement carrousel mobile */

.hero-carousel-track-container {
    overflow: hidden;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    width: 100%; /* Force le conteneur à ne pas dépasser */
}

.hero-carousel-track {
    display: flex;
    transition: transform .55s cubic-bezier(.4,0,.2,1);
    width: 100%;
}

.hero-product-card {
    min-width: 100%;
    max-width: 100%; /* Empêche la carte de dépasser */
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    background: var(--white);
    transition: box-shadow var(--t-base);
    box-sizing: border-box;
}

.hero-product-info {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: .875rem;
    background: var(--white);
    min-width: 0;      /* Clé principale — empêche le flex/grid item de déborder */
    overflow: hidden;  /* Contient les enfants */
    width: 100%;
}

.hero-product-name {
    /*font-family: 'Playfair Display', Georgia, serif;*/
    font-size: 1.3125rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Limite à 3 lignes max pour éviter les débordements de texte long */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Corrections spécifiques mobile */
@media (max-width: 768px) {
    .hero-product-card {
        grid-template-columns: 1fr; /* Une seule colonne */
    }

    .hero-product-image-wrapper {
        aspect-ratio: 16/9;
        width: 100%;
    }

    .hero-product-info {
        padding: 1rem 1.125rem;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-product-name {
        font-size: 1rem;
        -webkit-line-clamp: 2;
    }

    .hero-product-price {
        font-size: 1.125rem;
    }

    .hero-product-footer {
        flex-wrap: nowrap;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-product-info {
        padding: .875rem 1rem;
    }

    .hero-product-name {
        font-size: .95rem;
    }

    .hero-product-category {
        font-size: .68rem;
    }

    .hero-product-price {
        font-size: 1rem;
    }

    .hero-product-btn {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }
}