/* MaxStore — UI premium inspiré standards e-commerce sportifs (noir / blanc, accents vifs) */

:root {
    --color-bg: #ffffff;
    --color-bg-subtle: #f5f5f5;
    --color-text: #111111;
    --color-text-muted: #757575;
    --color-border: #e5e5e5;
    --color-inverse: #111111;
    --color-inverse-text: #ffffff;
    --color-accent: #fa5400;
    --color-accent-hover: #e14d00;
    --color-promo: #dfff6a;
    --color-focus: #0066cc;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
    --space-3xl: min(12vw, 6rem);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.5rem;
    --text-2xl: clamp(1.75rem, 4vw, 3rem);
    --text-hero: clamp(2.5rem, 7vw, 4.5rem);
    --header-offset: 0px;
    --transition-fast: 0.15s ease;
    --transition-smooth: 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.08);
    --z-header: 1000;
    --z-dropdown: 1010;
    --z-drawer: 1020;
}

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

html {
    scroll-behavior: smooth;
}

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

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-size: var(--text-base);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: var(--space-md);
    top: -100px;
    z-index: 2000;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-inverse);
    color: var(--color-inverse-text);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-md);
    outline: 2px solid var(--color-focus);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: min(1240px, 92vw);
    margin-inline: auto;
}

.container--wide {
    width: min(1440px, 96vw);
}

.narrow {
    max-width: 560px;
}

.main {
    padding-bottom: var(--space-2xl);
}

/* ——— Header ——— */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.promo-strip {
    background: var(--color-inverse);
    color: var(--color-inverse-text);
    text-align: center;
    font-size: var(--text-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: var(--space-sm) var(--space-md);
}

.promo-strip p {
    margin: 0;
}

.promo-strip__accent {
    color: var(--color-promo);
    font-weight: 800;
    margin-right: var(--space-sm);
}

.nav-shell {
    border-bottom: 1px solid transparent;
}

.nav-shell__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    padding: var(--space-md) min(4vw, var(--space-xl));
    max-width: 1440px;
    margin-inline: auto;
}

.logo {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.04em;
    text-decoration: none !important;
    white-space: nowrap;
}

.logo:hover {
    opacity: 0.85;
}

.logo--footer {
    display: inline-block;
    margin-bottom: var(--space-sm);
}

.nav-primary {
    display: none;
    align-items: center;
    gap: var(--space-xl);
}

@media (min-width: 900px) {
    .nav-primary {
        display: flex;
    }
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none !important;
    color: var(--color-text);
    letter-spacing: 0.02em;
}

.nav-link:hover {
    opacity: 0.6;
}

.nav-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    background: var(--color-accent);
    color: #fff;
    border-radius: 999px;
    line-height: 1;
    pointer-events: none;
    z-index: 1;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown__trigger {
    background: none;
    border: none;
    font: inherit;
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    padding: var(--space-sm) 0;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-dropdown__trigger::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.5;
}

.nav-dropdown__trigger[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.nav-dropdown__panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 220px;
    padding: var(--space-md);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    z-index: var(--z-dropdown);
    flex-direction: column;
    gap: var(--space-sm);
}

/* L’attribut HTML `hidden` est neutralisé par `display: flex` sans cette règle. */
.nav-dropdown__panel[hidden] {
    display: none !important;
}

.nav-dropdown__panel:not([hidden]) {
    display: flex;
}

.nav-dropdown__panel a {
    font-size: var(--text-sm);
    font-weight: 500;
    padding: var(--space-xs) 0;
    text-decoration: none !important;
    color: var(--color-text-muted);
}

.nav-dropdown__panel a:hover {
    color: var(--color-text);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius-sm);
}

@media (min-width: 900px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle__bar {
    display: block;
    height: 2px;
    width: 22px;
    background: var(--color-text);
    transition: transform var(--transition-smooth), opacity var(--transition-fast);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child {
    transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

.search-wrap {
    position: relative;
    width: min(200px, 38vw);
}

@media (min-width: 900px) {
    .search-wrap {
        width: 200px;
    }
}

.site-search {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-bg-subtle);
    color: var(--color-text);
    font-family: inherit;
    font-size: var(--text-sm);
}

.site-search::placeholder {
    color: var(--color-text-muted);
}

.shop-live-filter {
    width: 100%;
    max-width: none;
    border-radius: var(--radius-md);
}

.search-results {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    margin: 0;
    padding: var(--space-sm);
    list-style: none;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    max-height: 320px;
    overflow-y: auto;
    z-index: var(--z-dropdown);
}

.search-results[hidden] {
    display: none !important;
}

.search-results li {
    margin: 0;
}

.search-results a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    text-decoration: none !important;
    font-size: var(--text-sm);
    font-weight: 500;
}

.search-results a[aria-selected="true"],
.search-results a:hover {
    background: var(--color-bg-subtle);
}

.search-result-title {
    display: block;
    font-weight: 600;
}

.search-results .search-meta {
    display: block;
    font-size: var(--text-xs);
    font-weight: 400;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.nav-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: var(--color-text);
    cursor: pointer;
}

.nav-icon-btn:hover {
    border-color: var(--color-text-muted);
    background: var(--color-bg-subtle);
}

.nav-icon-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-user-menu {
    position: relative;
}

.nav-currency-menu {
    position: relative;
}

.nav-user-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    padding: var(--space-sm);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    z-index: var(--z-dropdown);
}

.nav-user-panel[hidden] {
    display: none !important;
}

.nav-user-panel a {
    display: block;
    padding: 0.5rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    text-decoration: none !important;
}

.nav-user-greeting {
    margin: 0 0 0.35rem;
    padding: 0.35rem 0.65rem 0.5rem;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--color-text-muted);
}

.nav-user-panel a:hover {
    background: var(--color-bg-subtle);
}

.nav-pill-btn {
    height: 40px;
    min-width: 56px;
    padding: 0 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: var(--color-text);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.nav-pill-btn:hover {
    border-color: var(--color-text-muted);
    background: var(--color-bg-subtle);
}

@media (max-width: 899px) {
    .nav-user-menu,
    .nav-currency-menu,
    .nav-pill-btn,
    .nav-actions > .nav-icon-btn {
        display: none;
    }
}

.mobile-drawer {
    position: fixed;
    inset: 0;
    top: var(--header-offset, 120px);
    background: var(--color-bg);
    padding: var(--space-xl);
    z-index: var(--z-drawer);
    overflow-y: auto;
    border-top: 1px solid var(--color-border);
}

.mobile-drawer[hidden] {
    display: none !important;
}

.mobile-drawer__nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.mobile-drawer__nav a {
    font-size: var(--text-xl);
    font-weight: 600;
    letter-spacing: -0.02em;
    text-decoration: none !important;
}

.mobile-drawer__prefs {
    margin-top: var(--space-xl);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* ——— Buttons ——— */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: var(--text-sm);
    font-family: inherit;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.btn:active:not(:disabled) {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--color-inverse);
    color: var(--color-inverse-text);
}

.btn-primary:hover {
    opacity: 0.88;
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-text);
}

.btn-outline:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

.btn-secondary {
    background: var(--color-bg-subtle);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}

.btn-ghost:hover {
    color: var(--color-text);
    border-color: var(--color-text);
}

.btn--lg {
    padding: 1rem 2rem;
    font-size: var(--text-base);
}

/* ——— Hero carousel (home) ——— */
.hero-carousel {
    position: relative;
    min-height: min(88vh, 820px);
    background: #111;
    color: #fff;
}

.hero-carousel__track {
    position: relative;
    min-height: inherit;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.6s ease, visibility 0.6s;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--space-3xl) var(--space-md) var(--space-2xl);
}

.hero-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.hero-slide__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-slide__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 55%);
}

.hero-slide--1 .hero-slide__media {
    background-image: linear-gradient(135deg, #1a1a1a 0%, #333 40%, #111 100%);
}

.hero-slide--2 .hero-slide__media {
    background-image: linear-gradient(160deg, #0a1628 0%, #1a3a5c 50%, #0d0d0d 100%);
}

.hero-slide--3 .hero-slide__media {
    background-image: linear-gradient(120deg, #2a1810 0%, #4a2518 45%, #111 100%);
}

.hero-slide__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
}

.hero-slide__eyebrow {
    font-size: var(--text-xs);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.85;
    margin: 0 0 var(--space-md);
}

.hero-slide__title {
    font-size: var(--text-hero);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.02;
    margin: 0 0 var(--space-md);
}

.hero-slide__lead {
    font-size: var(--text-lg);
    opacity: 0.9;
    margin: 0 0 var(--space-xl);
    max-width: 42ch;
    margin-inline: auto;
}

.hero-carousel__controls {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-sm);
    z-index: 2;
}

.hero-carousel__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.hero-carousel__dot[aria-current="true"] {
    background: #fff;
    border-color: #fff;
}

.hero-carousel__arrows {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.hero-carousel__arrow {
    pointer-events: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-carousel__arrow:hover {
    background: rgba(255, 255, 255, 0.15);
}

.hero-carousel__arrow--prev {
    left: min(4vw, 2rem);
}

.hero-carousel__arrow--next {
    right: min(4vw, 2rem);
}

@media (max-width: 600px) {
    .hero-carousel__arrow {
        display: none;
    }
}

/* ——— Sections ——— */
.section {
    padding: var(--space-2xl) 0;
}

.section--tight {
    padding: var(--space-xl) 0;
}

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

.section-title {
    font-size: var(--text-2xl);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0;
}

.section-link {
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

.page-hero {
    padding: var(--space-2xl) 0 var(--space-xl);
    border-bottom: 1px solid var(--color-border);
}

.page-title {
    font-size: var(--text-2xl);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 var(--space-sm);
}

.page-sub {
    color: var(--color-text-muted);
    margin: 0;
    font-size: var(--text-lg);
}

/* ——— Product rail (slider) ——— */
.product-rail-wrap {
    overflow: hidden;
    margin-inline: calc(-1 * min(4vw, var(--space-xl)));
    padding-inline: min(4vw, var(--space-xl));
}

.product-rail {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--space-md);
    padding-bottom: var(--space-md);
    -webkit-overflow-scrolling: touch;
}

.product-rail::-webkit-scrollbar {
    height: 4px;
}

.product-rail::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

.product-rail .product-card-premium {
    flex: 0 0 min(280px, 78vw);
    scroll-snap-align: start;
}

/* ——— Product cards ——— */
.grid-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

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

@media (min-width: 1024px) {
    .grid-products {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-lg);
    }
}

.product-card-premium {
    position: relative;
}

.product-card-premium__link {
    display: block;
    color: inherit;
    text-decoration: none !important;
}

.product-card-premium__visual {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg-subtle);
    margin-bottom: var(--space-md);
}

.product-card-premium__hover {
    position: absolute;
    inset: auto 0 0 0;
    padding: var(--space-sm);
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    pointer-events: none;
}

.product-card-premium__img,
.product-card-premium__placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: transform var(--transition-smooth);
}

.product-card-premium__img {
    object-fit: cover;
}

.product-card-premium__placeholder {
    background: linear-gradient(145deg, #e8e8e8 0%, #f5f5f5 50%, #ddd 100%);
}

[data-theme="dark"] .product-card-premium__placeholder {
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 50%, #333 100%);
}

.product-card-premium:hover .product-card-premium__img,
.product-card-premium:focus-within .product-card-premium__img,
.product-card-premium:hover .product-card-premium__placeholder,
.product-card-premium:focus-within .product-card-premium__placeholder {
    transform: scale(1.06);
}

.product-card-premium:hover .product-card-premium__hover,
.product-card-premium:focus-within .product-card-premium__hover {
    opacity: 1;
    transform: translateY(0);
}

.product-card-premium__badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    z-index: 1;
    font-size: var(--text-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.6rem;
    background: var(--color-promo);
    color: #111;
    border-radius: var(--radius-sm);
}

.product-card-premium__name {
    font-size: var(--text-base);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 0.25rem;
}

.product-card-premium__cat {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 var(--space-sm);
}

.product-card-premium__price {
    font-size: var(--text-sm);
    font-weight: 700;
    margin: 0;
}

.product-card-premium__actions {
    margin-top: var(--space-sm);
    display: flex;
    gap: var(--space-sm);
}

.icon-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text);
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.icon-action-btn:hover {
    background: var(--color-bg-subtle);
    border-color: var(--color-text-muted);
}

.icon-action-btn:active {
    transform: scale(0.97);
}

.icon-action-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-action-btn--wish svg {
    fill: transparent;
}

.icon-action-btn--wish.is-active {
    color: #e11d48;
    border-color: #fecdd3;
    background: #fff1f2;
}

.icon-action-btn--wish.is-active svg {
    fill: currentColor;
    stroke: currentColor;
}

/* ——— Boutique layout ——— */
.shop-layout {
    display: grid;
    gap: var(--space-xl);
}

@media (min-width: 960px) {
    .shop-layout {
        grid-template-columns: 220px 1fr;
        align-items: start;
    }
}

.shop-filters__title {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 var(--space-md);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    color: var(--color-text);
    text-decoration: none !important;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.filter-chip:hover {
    border-color: var(--color-text);
}

.filter-chip.is-active {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.filter-chip:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
}

.shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.shop-sort-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

#shop-sort-panel a.is-active {
    background: var(--color-bg-subtle);
    font-weight: 700;
}

.shop-count {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.shop-count strong {
    color: var(--color-text);
}

/* ——— Product page zoom ——— */
.product-page {
    padding-top: var(--space-lg);
}

.product-layout-premium {
    display: grid;
    gap: var(--space-xl);
}

@media (min-width: 900px) {
    .product-layout-premium {
        grid-template-columns: 1.1fr 1fr;
        gap: var(--space-2xl);
    }
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.product-gallery__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-gallery__thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: var(--color-bg-subtle);
    line-height: 0;
}

.product-gallery__thumb img {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: cover;
    display: block;
}

.product-gallery__thumb.is-active {
    border-color: var(--color-accent);
}

.product-gallery__thumb:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
}

.product-zoom {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--color-bg-subtle);
    cursor: crosshair;
}

.product-zoom__inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #ececec 0%, #fafafa 50%, #d8d8d8 100%);
    transform-origin: center center;
    transition: transform 0.2s ease-out;
}

.product-zoom__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    transition: transform 0.2s ease-out;
}

[data-theme="dark"] .product-zoom__inner {
    background: linear-gradient(160deg, #252525 0%, #1a1a1a 50%, #333 100%);
}

.product-zoom.is-zoomed .product-zoom__inner,
.product-zoom.is-zoomed .product-zoom__img {
    transform: scale(1.35);
}

.product-info-premium .eyebrow {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-sm);
}

.product-info-premium h1 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 var(--space-md);
}

.product-info-premium .price-big {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 var(--space-lg);
}

.prose {
    color: var(--color-text-muted);
    font-size: var(--text-base);
    max-width: 52ch;
}

.add-form-premium {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.add-form-premium label {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.add-form-premium input[type="number"] {
    width: 4.5rem;
    padding: 0.65rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--text-base);
    background: var(--color-bg);
    color: var(--color-text);
}

/* ——— Cart ——— */
.cart-layout {
    display: grid;
    gap: var(--space-xl);
}

@media (min-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr 340px;
    }
}

.cart-lines {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.cart-line {
    display: grid;
    grid-template-columns: 100px 1fr auto minmax(5rem, auto);
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
}

@media (max-width: 600px) {
    .cart-line {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto auto;
    }

    .cart-line__qty {
        grid-column: 1 / -1;
    }

    .cart-line__sub {
        grid-column: 2 / -1;
        justify-self: end;
    }
}

.cart-line__thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    background: var(--color-bg-subtle);
    overflow: hidden;
}

.cart-line__thumb-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ddd, #f5f5f5);
}

[data-theme="dark"] .cart-line__thumb-fallback {
    background: linear-gradient(135deg, #333, #222);
}

.cart-line__name {
    font-weight: 600;
    text-decoration: none !important;
}

.cart-line__name:hover {
    text-decoration: underline !important;
}

.cart-line__meta {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0.25rem 0 0;
}

.cart-line__sub {
    font-weight: 700;
    text-align: end;
}

.cart-line__qty input {
    width: 3.5rem;
    padding: 0.4rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    background: var(--color-bg);
    color: var(--color-text);
}

.cart-summary {
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg-subtle);
    position: sticky;
    top: calc(var(--header-offset, 100px) + var(--space-md));
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    margin-bottom: var(--space-sm);
}

.cart-summary__total {
    font-size: var(--text-lg);
    font-weight: 800;
    margin: var(--space-md) 0 var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.cart-summary__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.cart-summary__actions form {
    margin: 0;
    width: 100%;
}

.cart-lines-form {
    min-width: 0;
}

.cart-empty {
    text-align: center;
    padding: var(--space-3xl) var(--space-md);
}

.cart-empty p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

/* ——— Checkout ——— */
.checkout-page {
    max-width: 960px;
    margin-inline: auto;
}

.checkout-steps {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding: 0;
    list-style: none;
}

.checkout-steps li {
    flex: 1;
    text-align: center;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: var(--space-sm);
    border-bottom: 3px solid var(--color-border);
    color: var(--color-text-muted);
}

.checkout-steps li.is-done {
    color: var(--color-text-muted);
    border-bottom-color: var(--color-text-muted);
}

.checkout-steps li.is-current {
    color: var(--color-text);
    border-bottom-color: var(--color-text);
}

.form-stack-premium {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-field label {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--text-base);
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-field input:hover,
.form-field textarea:hover {
    border-color: var(--color-text-muted);
}

.form-field.is-valid input,
.form-field.is-valid textarea {
    border-color: #16a34a;
}

.form-field.is-invalid input,
.form-field.is-invalid textarea {
    border-color: #dc2626;
}

.form-field__hint {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    min-height: 1rem;
}

.auth-switch {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text);
    margin-top: var(--space-sm);
}

.auth-switch a {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

/* ——— Espace utilisateur: layout dashboard ——— */
.account-layout {
    width: 100%;
    padding: var(--space-lg) max(1rem, 3vw) var(--space-2xl) 0;
    display: block;
    overflow-x: clip;
}

.account-sidebar {
    background: var(--color-inverse);
    color: var(--color-inverse-text);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) 0;
    position: fixed;
    top: calc(var(--header-offset, 100px) + var(--space-sm));
    left: 0;
    width: 250px;
    height: calc(100vh - var(--header-offset, 100px) - var(--space-sm));
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    overflow-y: auto;
}

.account-sidebar__brand {
    margin: 0;
    padding: 0 var(--space-lg) var(--space-md);
    font-size: 1.02rem;
    font-weight: 800;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.account-sidebar__hello {
    margin: var(--space-md) 0 0.35rem;
    padding: 0 var(--space-lg);
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
}

.account-sidebar a {
    display: block;
    padding: 0.62rem var(--space-lg);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none !important;
}

.account-sidebar a:hover,
.account-sidebar a.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.account-main {
    min-width: 0;
    margin-left: calc(250px + var(--space-lg));
    padding-right: max(1rem, 2.5vw);
}

.page-account .site-footer {
    margin-left: calc(250px + var(--space-lg));
}

.page-account {
    overflow-x: hidden;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
}

.account-kpi--click {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.account-kpi--click:hover {
    transform: translateY(-2px);
    border-color: var(--color-text-muted);
    box-shadow: var(--shadow-soft);
}

@media (max-width: 1200px) {
    .account-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .account-layout {
        padding: var(--space-lg) var(--space-md) var(--space-2xl);
    }

    .account-sidebar {
        position: static;
        width: auto;
        height: auto;
        border-radius: var(--radius-lg);
        left: auto;
        margin-bottom: var(--space-md);
    }

    .account-main {
        margin-left: 0;
        padding-right: 0;
    }

    .page-account .site-footer {
        margin-left: 0;
    }
}

.form-field__hint--error {
    color: #dc2626;
}

.auth-switch {
    font-size: var(--text-sm);
    font-weight: 500;
    margin-top: 0.25rem;
}

.auth-switch a {
    font-weight: 700;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

/* ——— Notices ——— */
.notice {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    font-size: var(--text-sm);
}

.notice-warn {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
    color: var(--color-text);
}

.notice-ok {
    border-color: #16a34a;
    background: rgba(22, 163, 74, 0.08);
}

/* ——— Footer ——— */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: var(--space-2xl) 0 var(--space-lg);
    margin-top: var(--space-2xl);
    background: var(--color-bg-subtle);
}

.footer-grid {
    display: grid;
    gap: var(--space-xl);
}

@media (min-width: 700px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-tagline {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    margin: 0;
}

.footer-heading {
    font-size: var(--text-xs);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 var(--space-md);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none !important;
    color: var(--color-text-muted);
}

.footer-links a:hover {
    color: var(--color-text);
}

.footer-bottom {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.footer-bottom p {
    margin: 0;
}

/* ——— Utilities ——— */
.text-center {
    text-align: center;
}

.mt-lg {
    margin-top: var(--space-lg);
}

.hidden {
    display: none !important;
}

.hidden-by-default {
    display: none !important;
}

.account-page {
    padding-top: var(--space-lg);
}

.account-hero {
    margin-bottom: var(--space-lg);
}

.account-welcome {
    margin-top: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg-subtle);
}

.account-welcome__title {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.account-welcome__meta {
    margin: 0;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.account-empty {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.account-empty p {
    margin: 0;
    flex: 1 1 260px;
}

.account-kpis .account-kpi {
    position: static;
    top: auto;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.account-kpis .cart-summary__total {
    margin: var(--space-xs) 0;
    padding-top: 0;
    border-top: none;
    font-size: 1.75rem;
}

.account-kpis .cart-summary__total a {
    text-decoration: none !important;
}

.account-orders .admin-table-wrap {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.account-logout {
    display: flex;
    justify-content: flex-end;
}

/* ——— Thème sombre (landing type campagne) ——— */
html[data-theme="dark"] {
    color-scheme: dark;
    --color-bg: #0a0a0a;
    --color-bg-subtle: #141414;
    --color-text: #f5f5f5;
    --color-text-muted: #a8a8a8;
    --color-border: #2e2e2e;
    --color-inverse: #f5f5f5;
    --color-inverse-text: #0a0a0a;
    --shadow-soft: 0 24px 64px rgba(0, 0, 0, 0.55);
}

/* ——— Hero vidéo plein écran ——— */
.hero-video {
    position: relative;
    min-height: min(92vh, 900px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--space-3xl) var(--space-md) var(--space-2xl);
    background: #050505;
    color: #fff;
}

.hero-video__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-video__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

.hero-video__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
}

.hero-video__eyebrow {
    font-size: var(--text-xs);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.9;
    margin: 0 0 var(--space-md);
}

.hero-video__title {
    font-size: var(--text-hero);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.02;
    margin: 0 0 var(--space-md);
}

.hero-video__lead {
    font-size: var(--text-lg);
    opacity: 0.92;
    margin: 0 0 var(--space-xl);
    max-width: 42ch;
    margin-inline: auto;
}

.hero-video__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

.hero-video .btn-outline {
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff;
}

.hero-video .btn-outline:hover {
    background: #fff;
    color: #111;
}

.hero-video__toolbar {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    z-index: 3;
    display: flex;
    gap: var(--space-sm);
}

.hero-video__ctrl {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video__ctrl:hover {
    background: rgba(255, 255, 255, 0.12);
}

.cart-line__thumb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
