/* Palette et typographie par défaut (style AliExpress). Surchargées à
   l'exécution par la charte choisie dans l'admin (voir App\Support\Theme),
   qui injecte un bloc <style id="lecoin-theme"> après cette feuille. */
:root {
    --c-bg: #ffffff;
    --c-text: #333333;
    --c-muted: #666666;
    --c-primary: #ff6a00;
    --c-price: #ff4747;
    --c-surface: #f5f5f5;
    --c-border: #e5e5e5;
    --c-footer-bg: #232f3e;
    --c-footer-text: #ffffff;
    --theme-font: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --theme-font-ar: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
    --theme-base-size: 15px;
    --theme-line-height: 1.5;
    --theme-heading-weight: 700;
    --theme-radius: 6px;
}

* { box-sizing: border-box; }

img { max-width: 100%; }

html {
    scroll-behavior: smooth;
    /* Le site est intégralement dimensionné en rem : cette valeur racine
       redimensionne d'un coup tous les textes du site. */
    font-size: var(--theme-base-size, 15px);
}

body {
    margin: 0;
    font-family: var(--theme-font, "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: var(--theme-line-height, 1.5);
}

body.store-ar {
    font-family: var(--theme-font-ar, "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif);
}

/* Style de base des champs de formulaire. Plusieurs vues (auth, contact...)
   posent un <input> sans classe : il gardait le rendu natif, 21px de haut,
   police 13px.
   TWO points importants :
   - :where() donne une specificite NULLE, donc n'importe quel style de
     composant (.store-search, .product-buy...) l'emporte, sans dependre de
     l'ordre de cascade. Un :not() par type aurait monte a (0,4,1) et
     ecrasait .store-search input.
   - le fond utilise --c-bg et non --c-surface : --c-surface n'est PAS
     redefini en theme sombre, ce qui rendait le texte clair sur fond clair. */
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select, textarea) {
    min-height: 38px;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    background: var(--c-bg);
    color: var(--c-text);
    font: inherit;
    font-size: 0.95rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--theme-heading-weight, 700);
    line-height: 1.25;
}

.skip-link {
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    transform: translateY(-150%);
    background: var(--c-primary);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 1000;
}
.skip-link:focus { transform: translateY(0); }

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

.store-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.store-search { position: relative; }
.store-header-top {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
}
.store-brand { font-weight: 800; font-size: 1.15rem; color: var(--c-primary); text-decoration: none; }
.store-logo { height: 42px; width: auto; max-width: 210px; object-fit: contain; border-radius: 6px; display: block; }
.footer-logo { height: 52px; }
.store-search {
    flex: 1 1 320px;
    max-width: 640px;
    display: flex;
}
.store-search input {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.9rem;
    border: 2px solid var(--c-primary);
    border-right: 0;
    border-radius: 6px 0 0 6px;
    font-size: 1rem;
}
.store-search button {
    padding: 0.6rem 1.5rem;
    background: var(--c-primary);
    color: #fff;
    font-weight: 600;
    border: 2px solid var(--c-primary);
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}
body.store-ar .store-search input {
    border-right: 2px solid var(--c-primary);
    border-left: 0;
    border-radius: 0 6px 6px 0;
}
body.store-ar .store-search button {
    border-radius: 6px 0 0 6px;
}
.store-nav-row {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.25rem 1rem 0.5rem;
    border-top: 1px solid var(--c-border);
}
/* `align-items: center` : sans lui, les `li` s'étirent à la hauteur du plus haut
   (celui des catégories, qui contient un bouton de 32 px) et le texte des autres
   entrées reste collé en haut de sa boîte — « Toutes les catégories » apparaissait
   alors décalé vers le bas par rapport à Accueil / Blog / FAQ. */
.store-nav { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin: 0; padding: 0.5rem 0 0; }
.store-nav a { color: var(--c-text); text-decoration: none; font-weight: 500; }
.store-nav a:hover, .store-nav a:focus { color: var(--c-primary); text-decoration: underline; }
.store-nav span { color: var(--c-muted); }
.lang-switch { margin-left: auto; color: var(--c-primary); text-decoration: none; font-weight: 600; }
body.store-ar .lang-switch { margin-left: 0; margin-right: auto; }
.lang-switch:hover, .lang-switch:focus { text-decoration: underline; }

/* --- Méga-menu des catégories (2 niveaux, avec photos) ---------------------
   Ouverture sans script pour la souris (`:hover` sur l'entrée de menu) ; le
   bouton ajoute l'état `.is-open` pour le tactile et le clavier, et le petit
   script le retire au clic extérieur ou à Échap.

   `:focus-within` a été retiré volontairement : le bouton conservant le focus
   après un clic, la règle ré-ouvrait le panneau immédiatement après qu'Échap ou
   le clic extérieur venait de le refermer. Le panneau est donc piloté par un seul
   état (`.is-open`) plus le survol, ce qui rend la fermeture fiable.

   Le panneau est ancré sur `.store-header` (donc `position: static` sur le `li`)
   et non sur l'entrée de menu : une largeur de 1200 px ancrée sur un `li` de
   200 px déborderait du viewport en RTL, où le débordement part vers la gauche.
   -------------------------------------------------------------------------- */
.store-nav-categories { position: static; display: flex; align-items: center; gap: 0.15rem; }
/* Le déclencheur est le libellé lui-même : il porte donc la couleur et le gras des
   autres entrées de menu (avant c'était un <a>, stylé par `.store-nav a`), et toute
   sa surface est cliquable avec `cursor: pointer`. */
.store-mega-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 32px;
    min-height: 32px;
    padding: 0 0.3rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--c-text);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}
/* `color: inherit` sur deux classes : `.store-nav span` (0,1,1) grisit tous les
   spans de la nav, dont le caret — sans ce regain de spécificité, le libellé
   ressortait en gris Muted au lieu de la couleur du texte. */
.store-nav-categories .store-mega-label { white-space: nowrap; color: inherit; }
.store-mega-caret { display: inline-block; transition: transform 0.15s ease; }
.store-nav-categories.is-open .store-mega-caret,
.store-nav-categories:hover .store-mega-caret { transform: rotate(180deg); }
.store-mega-toggle:hover, .store-mega-toggle:focus-visible { color: var(--c-primary); text-decoration: underline; }

.store-mega {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-top: 0;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    max-height: min(70vh, 580px);
    overflow-y: auto;
}
.store-nav-categories:hover .store-mega,
.store-nav-categories.is-open .store-mega { display: block; }

.store-mega-inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.5rem 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1rem 0.75rem;
}
.store-mega-column { min-width: 0; }
.store-mega-parent {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: var(--c-text) !important;
    text-decoration: none !important;
    padding-block: 0.25rem;
}
.store-mega-parent:hover, .store-mega-parent:focus { color: var(--c-primary) !important; }
.store-mega-parent-name { min-width: 0; overflow-wrap: anywhere; }
.store-mega-thumb {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--c-border);
    background: var(--c-bg);
}
.store-mega-thumb-sm { width: 32px; height: 32px; border-radius: 6px; }
.store-mega-thumb-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-muted);
}
.store-mega-children { list-style: none; margin: 0.35rem 0 0; padding: 0; }
.store-mega-children a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 36px;
    padding: 0.3rem 0.4rem;
    border-radius: 6px;
    color: var(--c-muted);
    text-decoration: none;
    min-width: 0;
}
.store-mega-children a span { min-width: 0; overflow-wrap: anywhere; }
.store-mega-children a:hover, .store-mega-children a:focus {
    background: var(--c-bg);
    color: var(--c-primary) !important;
    text-decoration: none;
}
.store-mega-all {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.6rem 1rem 0.9rem;
    border-top: 1px solid var(--c-border);
    color: var(--c-primary) !important;
    font-weight: 600;
    text-decoration: none !important;
}

.store-main { max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; min-height: 60vh; }

.hero { text-align: center; padding: 3rem 1rem; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); margin-bottom: 0.75rem; }
.hero p { color: var(--c-muted); font-size: 1.1rem; }

.store-footer { background: var(--c-footer-bg); color: var(--c-footer-text); font-size: 0.93rem; }
.store-footer-inner { max-width: 1200px; margin: 0 auto; padding: 1.25rem 1rem; }
.footer-newsletter { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.footer-newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-newsletter-text h2 { margin: 0; font-size: 1.15rem; color: #fff; }
.footer-newsletter-text p { margin: 0.25rem 0 0; opacity: 0.8; }
.footer-newsletter-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.footer-newsletter-form input {
    padding: 0.55rem 0.9rem;
    border-radius: 6px;
    border: 1px solid #334155;
    background: #1e293b;
    color: #e2e8f0;
    min-width: 250px;
}
.footer-newsletter-form button {
    padding: 0.55rem 1.2rem;
    border: 0;
    border-radius: 6px;
    background: var(--c-primary);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}
.footer-newsletter-form button:hover { filter: brightness(1.08); }
.footer-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }
.footer-brand-col { grid-column: span 2; }
.footer-brand { color: #fff; font-size: 1.3rem; }
.footer-about { margin: 0.4rem 0; opacity: 0.85; }
.footer-col h3 {
    margin: 0 0 0.5rem;
    color: #fff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.footer-col a { color: var(--c-footer-text); text-decoration: none; }
.footer-col a:hover, .footer-col a:focus { color: #34d399; text-decoration: underline; }
.footer-social { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1e293b;
    border: 1px solid #334155;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}
.footer-social a:hover { background: var(--c-primary); }
.footer-payments { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-payments ul {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
    padding: 0.9rem 1rem;
    max-width: 1200px;
    list-style: none;
}
.footer-payments li {
    background: #1e293b;
    border: 1px solid #334155;
    color: #cbd5e1;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
}
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-bottom p {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 1rem;
    text-align: center;
    opacity: 0.75;
    font-size: 0.85rem;
}

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1000;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.25rem;
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.cookie-banner p { margin: 0; }
.cookie-banner[hidden],
[hidden] { display: none !important; }
.cookie-banner .btn { margin-right: 0.5rem; }
body.store-ar .cookie-banner .btn { margin-right: 0; margin-left: 0.5rem; }

.muted { color: var(--c-muted); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--c-primary);
    outline-offset: 2px;
}

.product-rating { color: #b45309; font-weight: 600; }
.product-price, .product-rating { margin: 0.25rem 0; }
/* Prix des cartes du catalogue : piloté par --price-size (Réglages > Charte
   graphique). Ne PAS mettre de taille ici : cette règle s'applique à toutes les
   fiches de catégorie, sous-catégorie et recherche. */
.product-price { color: var(--c-price); font-size: var(--price-size, 18px); font-weight: 800; }

.category-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0 0 1.5rem; }
.category-menu a {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--c-border);
    border-radius: 999px;
    color: var(--c-text);
    text-decoration: none;
    font-size: 0.95rem;
}
.category-menu a:hover, .category-menu a:focus { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.category-menu a[aria-current="page"] { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.category-menu-parent { font-weight: 600; }
.category-menu-children {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.4rem 0 0;
    padding-inline-start: 0.85rem;
    border-inline-start: 2px solid var(--c-border);
}
.category-menu-children a { font-size: 0.85rem; padding: 0.25rem 0.65rem; }
.category-menu-sub { margin-top: -0.75rem; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}
.product-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--c-border);
    border-radius: var(--theme-radius, 10px);
    overflow: hidden;
    background: var(--c-bg);
}
.product-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: #f3f4f6;
    overflow: hidden;
    text-decoration: none;
}
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.product-card-image-placeholder { color: #9ca3af; font-weight: 700; letter-spacing: 0.15em; font-size: 1.25rem; }
.product-card h2 { font-size: 1rem; font-weight: 600; margin: 0.75rem 0.75rem 0.25rem; }
.product-card h2 a { color: var(--c-text); text-decoration: none; }
.product-card h2 a:hover, .product-card h2 a:focus { color: var(--c-primary); }
.product-card .product-price, .product-card .product-rating, .product-card .product-stock { margin-left: 0.75rem; margin-right: 0.75rem; }
.product-card .btn { margin: 0.75rem; margin-top: auto; }
.product-stock.is-ok { color: #14532d; }
.product-stock.is-low { color: #92400e; }
.product-stock.is-out { color: #991b1b; }

.product-detail-image { margin: 1rem 0; }
.product-detail-image img { max-width: 100%; max-height: 480px; border-radius: 10px; }

.empty-state { color: var(--c-muted); }

@media (max-width: 640px) {
    .store-header-top { flex-direction: column; align-items: stretch; }
    .store-search { max-width: none; }
    .lang-switch, body.store-ar .lang-switch { margin-left: 0; margin-right: 0; }
}
.alert { border-radius: 6px; padding: 0.75rem 1rem; margin: 1rem 0; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-success { background: #dcfce7; color: #14532d; }
.btn { display: inline-block; padding: 0.5rem 1rem; border: 1px solid #d1d5db; border-radius: var(--theme-radius, 6px); background: #fff; color: #1f2937; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
/* Bouton « Voir » (tuiles de l'accueil, cartes du catalogue, héros) : couleur
   propre `--c-cta`, pour qu'elle soit réglable seule dans /admin/accueil. ⚠️ Ne
   jamais revenir à `btn-primary` sur ces boutons : c'est exactement l'incohérence
   qui faisait un « Voir » orange sur l'accueil et blanc dans les catégories. */
.btn-cta { background: var(--c-cta, var(--c-primary)); border-color: var(--c-cta, var(--c-primary)); color: #fff; }
.btn-ghost { color: var(--c-primary); border-color: var(--c-primary); }
.cart-table, .totals-table { border-collapse: collapse; width: 100%; margin-bottom: 1rem; }
.cart-table th, .cart-table td, .totals-table td { border: 1px solid #e5e7eb; padding: 0.5rem 0.65rem; text-align: left; }
body.store-ar .cart-table th, body.store-ar .cart-table td, body.store-ar .totals-table td { text-align: right; }
.grand-total td { font-weight: 700; }
.shipping-option { display: block; margin: 0.4rem 0; }
.inline-form { display: inline; }
.btn-ghost-link { border: 0; background: none; padding: 0; color: var(--c-text); font-weight: 500; cursor: pointer; text-decoration: none; }
.btn-ghost-link:hover, .btn-ghost-link:focus { color: var(--c-primary); text-decoration: underline; }
.account-nav { margin-bottom: 1.5rem; }
.account-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; padding: 0; margin: 0; border-bottom: 1px solid #e5e7eb; }
.account-nav a { display: inline-block; padding: 0.5rem 0.25rem; color: var(--c-muted); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; }
.account-nav a:hover, .account-nav a:focus { color: var(--c-primary); border-bottom-color: var(--c-primary); }
.badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; }
.badge-pending { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.badge-confirmed { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.badge-shipped { background: #ede9fe; color: #5b21b6; border-color: #ddd6fe; }
.badge-delivered { background: #dcfce7; color: #14532d; border-color: #bbf7d0; }
.badge-cancelled { background: #fee2e2; color: #991b1b; border-color: #fecaca; }

.flash { border-radius: 6px; padding: 0.75rem 1rem; margin: 1rem 0; }
.flash-success { background: #dcfce7; color: #14532d; }
.flash-error { background: #fee2e2; color: #991b1b; }
.flash-error ul { margin: 0; padding-left: 1.25rem; }

.reviews { margin-top: 2.5rem; border-top: 1px solid var(--c-border); padding-top: 1.5rem; }
.review { border: 1px solid var(--c-border); border-radius: 8px; padding: 0.75rem 1rem; margin-bottom: 0.75rem; background: #f9fafb; }
.review p { margin: 0.25rem 0; }
.review-rating { color: #f59e0b; letter-spacing: 0.1em; }
.reviews input, .reviews textarea, .reviews select {
    width: 100%; max-width: 640px; padding: 0.45rem 0.6rem;
    border: 1px solid var(--c-border); border-radius: 6px;
}

/* ===== Home dzduino-style ===== */

.store-announce {
    list-style: none;
    margin: 0;
    padding: 0.4rem 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem 0;
    background: var(--c-footer-bg);
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 600;
}
.store-announce li { padding-inline: 0.9rem; }
.store-announce li:not(:first-child) { border-inline-start: 1px solid #334155; }

.hero-page {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #14532d 130%);
    color: #f8fafc;
}
.hero-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    max-width: 1200px;
    margin: 0 auto;
}
.hero-carousel::-webkit-scrollbar { display: none; }
.hero-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 3rem 2rem;
}
.hero-slide-text { flex: 1 1 55%; min-width: 0; }
.hero-slide-text h1, .hero-slide-text h2 {
    font-size: clamp(1.7rem, 4vw, 2.7rem);
    line-height: 1.15;
    margin: 0 0 0.75rem;
    color: #fff;
}
.hero-slide-text p { color: #cbd5e1; font-size: 1.1rem; margin: 0 0 1.25rem; }
.hero-slide-image {
    flex: 0 0 42%;
    max-width: 430px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.hero-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0 0 1.25rem;
}
.hero-control {
    border: 1px solid #334155;
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}
.hero-control:hover, .hero-control:focus { background: var(--c-primary); border-color: var(--c-primary); }
.hero-dots { display: flex; gap: 0.25rem; }
/* La pastille visible reste de 0.6rem, mais le bouton fait 1.75rem : une cible
   de 9px etait inapplicable au doigt. Le trait visible passe en ::after. */
.hero-dot {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hero-dot::after {
    content: "";
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    background: #475569;
}
.hero-dot.is-active::after { background: var(--c-primary); transform: scale(1.15); }

.feature-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 2rem 0 1rem;
}
.feature-item {
    border: 1px solid var(--c-border);
    border-radius: 10px;
    background: #fff;
    padding: 1rem 1.1rem;
    text-align: center;
}
.feature-item strong { display: block; color: var(--c-text); font-size: 1rem; }
.feature-item span { color: var(--c-muted); font-size: 0.85rem; }

.home-section { margin: 2.5rem 0; }
.home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--c-border);
    padding-bottom: 0.5rem;
}
.home-section-head h2 { margin: 0; font-size: 1.5rem; }
.home-section-head p { margin: 0.15rem 0 0; }
.view-all { color: var(--c-primary); font-weight: 600; text-decoration: none; white-space: nowrap; }
.view-all:hover, .view-all:focus { text-decoration: underline; }

.product-rail {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}
body.store-ar .product-rail { direction: rtl; }
.product-tile {
    flex: 0 0 230px;
    scroll-snap-align: start;
    border: 1px solid var(--c-border);
    border-radius: var(--theme-radius, 10px);
    background: var(--c-bg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.product-tile-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: #f3f4f6;
    overflow: hidden;
    text-decoration: none;
}
.product-tile-image img { width: 100%; height: 100%; object-fit: cover; }
.product-tile-body { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.75rem; height: 100%; }
.product-tile-sku {
    color: var(--c-muted);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}
.product-tile-name { font-size: 0.95rem; font-weight: 600; margin: 0; }
.product-tile-name a { color: var(--c-text); text-decoration: none; }
.product-tile-name a:hover, .product-tile-name a:focus { color: var(--c-primary); }
.product-tile-price { font-weight: 800; color: var(--c-price); margin: 0.15rem 0; }
.product-tile-body .product-stock { margin: 0; font-size: 0.85rem; }
.product-tile-body .btn { margin-top: auto; align-self: flex-start; }

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.1rem;
}
.category-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    color: var(--c-text);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.category-card:hover, .category-card:focus {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}
.category-card img, .category-card .product-card-image-placeholder {
    height: 150px;
    width: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
}
.category-card-name { font-weight: 700; padding: 0.65rem 0.85rem 0.1rem; }
.category-card-count { color: var(--c-muted); padding: 0 0.85rem 0.75rem; }

.promo-band {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
    margin: 2.5rem 0;
}
.promo-card {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    min-height: 200px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}
.promo-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}
.promo-card-body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 2rem;
    min-height: 200px;
    justify-content: center;
}
.promo-card-body h2 { margin: 0; font-size: 1.35rem; }

.newsletter {
    margin: 2.5rem 0;
    border: 1px solid var(--c-border);
    border-radius: 14px;
    background: #f8fafc;
    padding: 2rem 1.5rem;
}
.newsletter-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.newsletter h2 { margin: 0 0 0.35rem; }
.newsletter p { margin: 0 0 1rem; }
.newsletter-form { display: flex; gap: 0.5rem; max-width: 440px; margin: 0 auto 0.6rem; }
.newsletter-form input {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    font-size: 1rem;
}
.newsletter small { display: block; }

@media (max-width: 860px) {
    .feature-strip { grid-template-columns: repeat(2, 1fr); }
    .promo-band { grid-template-columns: 1fr; }
    .hero-slide { flex-direction: column; text-align: center; padding: 2rem 1.25rem; }
    .hero-slide-image { max-width: 300px; }
}
@media (max-width: 640px) {
    .store-announce li:not(:first-child) { border-inline-start: 0; padding-top: 0.15rem; }
    .product-tile { flex-basis: 190px; }
}

/* ===== Fiche produit dzduino-style ===== */

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    color: var(--c-muted);
}
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover, .breadcrumbs a:focus { color: var(--c-primary); }
.breadcrumbs-sep { color: #9ca3af; }
.breadcrumbs [aria-current="page"] { color: var(--c-text); font-weight: 600; }

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.product-gallery { position: sticky; top: 1rem; }
.product-gallery-main {
    border: 1px solid var(--c-border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    cursor: zoom-in;
}
.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}
.product-gallery-main:hover img { transform: scale(1.18); }
.product-gallery-thumbs { display: flex; gap: 0.6rem; margin-top: 0.75rem; }
.product-gallery-thumbs button {
    width: 76px;
    height: 76px;
    padding: 0;
    border: 2px solid var(--c-border);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
}
.product-gallery-thumbs button.is-active { border-color: var(--c-primary); }
.product-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-buybox {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    border: 1px solid var(--c-border);
    border-radius: 14px;
    padding: 1.5rem;
    background: #fff;
}
.product-buybox h1 { margin: 0; font-size: clamp(1.25rem, 2.5vw, 1.7rem); line-height: 1.25; }
.product-category {
    align-self: flex-start;
    color: var(--c-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}
.product-category:hover, .product-category:focus { text-decoration: underline; }
.product-sku { margin: 0; color: var(--c-muted); font-size: 0.9rem; }

.product-rating-summary { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; }
.review-rating-value { font-weight: 700; }
.review-count { color: var(--c-muted); text-decoration: none; }
.review-count:hover, .review-count:focus { color: var(--c-primary); text-decoration: underline; }

/* Fiche produit uniquement : la carte du catalogue a sa propre taille, traitée
   plus haut, sinon un prix à 1.9rem atterrissait sur toutes les listes. */
.product-buybox .product-price { margin: 0; font-size: 1.9rem; font-weight: 800; color: var(--c-price); }

.product-buy {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 0.25rem;
}
.product-buy label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 600; font-size: 0.9rem; }
.product-buy select, .product-buy input[type="number"] {
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
}
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--c-border); border-radius: 8px; overflow: hidden; }
.qty-stepper input {
    width: 3.2rem;
    border: 0 !important;
    border-radius: 0 !important;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-step {
    width: 2.3rem;
    height: 2.3rem;
    border: 0;
    background: #f3f4f6;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    color: var(--c-text);
}
.qty-step:hover, .qty-step:focus { background: var(--c-primary); color: #fff; }
.btn-buy { padding: 0.75rem 1rem; font-size: 1rem; font-weight: 700; border-radius: 8px; }
.btn-buy:disabled { opacity: 0.6; cursor: not-allowed; }

.trust-strip {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    border-top: 1px solid var(--c-border);
    padding-top: 0.9rem;
}
.trust-strip li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--c-muted);
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.5rem 0.6rem;
}
.trust-check { color: var(--c-primary); font-weight: 800; }

.shipping-estimator {
    margin-top: 0.5rem;
    border: 1px dashed var(--c-border);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    background: #f8fafc;
}
.shipping-estimator h2 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.shipping-estimator .shipping-hint { margin: 0 0 0.75rem; color: var(--c-muted); font-size: 0.88rem; }
.shipping-form select {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: #fff;
    font-size: 0.95rem;
}
.shipping-result { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.4rem; }
.shipping-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    padding: 0.5rem 0.8rem;
    font-size: 0.92rem;
}
.shipping-row strong { font-weight: 600; }

.product-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--c-border);
    margin: 2.5rem 0 0;
}
.product-tabs a {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    color: var(--c-muted);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.product-tabs a:hover, .product-tabs a:focus { color: var(--c-primary); }
.product-tabs a:first-child { color: var(--c-primary); border-bottom-color: var(--c-primary); }

.product-section { padding-top: 1.5rem; }
.product-section h2 { margin: 0 0 0.75rem; }
.product-description { white-space: normal; }

.related-section { margin-top: 2rem; }

@media (max-width: 860px) {
    .product-layout { grid-template-columns: 1fr; gap: 1.25rem; }
    .product-gallery { position: static; }
    .trust-strip { grid-template-columns: 1fr; }
}
body.store-ar .product-buybox h1 { line-height: 1.4; }
body.store-ar .shipping-row { text-align: right; }

/* ===== Header actions : icônes compte/panier + mode nuit/jour ===== */

.store-header-actions { display: flex; align-items: center; gap: 0.4rem; margin-left: auto; }
body.store-ar .store-header-actions { margin-left: 0; margin-right: auto; }
.header-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    border: 1px solid var(--c-border);
    border-radius: 999px;
    background: transparent;
    color: var(--c-text);
    text-decoration: none;
    cursor: pointer;
    padding: 0;
}
.header-icon:hover, .header-icon:focus { color: var(--c-primary); border-color: var(--c-primary); }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: inline; }
.cart-badge {
    position: absolute;
    top: -5px;
    right: -6px;
    min-width: 1.05rem;
    background: var(--c-primary);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.24rem 0.34rem;
    border-radius: 999px;
    border: 2px solid var(--c-bg);
}
body.store-ar .cart-badge { right: auto; left: -6px; }
body.store-ar .lang-switch { margin-left: 0; margin-right: 0; }

/* ===== Recherche live (suggestions) ===== */

.store-search { position: relative; }
.search-suggest {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline: 0;
    background: #ffffff;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 50;
}
.search-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: var(--c-text);
    border-bottom: 1px solid #f1f5f9;
}
.search-item:last-child { border-bottom: 0; }
.search-item:hover, .search-item:focus { background: #f8fafc; }
.search-item img, .search-item-thumb {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    background: #f1f5f9;
}
.search-item-thumb { display: block; }
.search-item-body { display: flex; flex-direction: column; min-width: 0; }
.search-item-name { font-weight: 600; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item-price { color: var(--c-price); font-weight: 700; font-size: 0.88rem; }
.search-item-empty { margin: 0; padding: 0.75rem; color: var(--c-muted); font-size: 0.9rem; }

/* ===== Blog ===== */

.page-head h1 { margin: 0 0 0.25rem; }
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}
.blog-card {
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 1.25rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.blog-card-date { margin: 0; color: #9ca3af; font-size: 0.85rem; }
.blog-card h2 { margin: 0; font-size: 1.15rem; line-height: 1.35; }
.blog-card p:last-child { margin: 0; color: var(--c-muted); }
.blog-card-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.25rem;
}
.blog-card h2 a { color: var(--c-text); text-decoration: none; }
.blog-card h2 a:hover, .blog-card h2 a:focus { color: var(--c-primary); text-decoration: underline; }
.blog-post { max-width: 760px; }
.blog-post-img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 12px; margin: 1rem 0; }
.blog-post .prose { color: var(--c-text); }

/* ===== FAQ ===== */

.faq-list { margin-top: 1.25rem; max-width: 760px; }
.faq-item {
    border: 1px solid var(--c-border);
    border-radius: 10px;
    background: #fff;
    margin-bottom: 0.6rem;
}
.faq-item summary {
    padding: 0.9rem 1.1rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "＋"; color: var(--c-primary); }
.faq-item[open] summary::before { content: "－"; }
.faq-item summary:hover, .faq-item summary:focus { color: var(--c-primary); }
.faq-answer { padding: 0 1.1rem 1rem; color: var(--c-muted); }

/* ===== Contact ===== */

.contact-list { list-style: none; padding: 0; margin: 1.25rem 0; max-width: 640px; }
.contact-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--c-border); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list a { color: var(--c-primary); }

/* ===== Mode nuit / jour (thème sombre) ===== */

html { color-scheme: light; }
html[data-theme="dark"] {
    color-scheme: dark;
    --c-bg: #0b1220;
    --c-text: #e2e8f0;
    --c-muted: #94a3b8;
    --c-border: #334155;
    --c-primary: #10b981;
}
html[data-theme="dark"] body { background: var(--c-bg); color: var(--c-text); }
html[data-theme="dark"] .store-header { border-color: #334155; background: #0f172a; }
html[data-theme="dark"] .store-header-top, html[data-theme="dark"] .store-nav-row { background: #0f172a; }
html[data-theme="dark"] .store-search input,
html[data-theme="dark"] .product-buy select,
html[data-theme="dark"] .qty-stepper input,
html[data-theme="dark"] .shipping-form select,
html[data-theme="dark"] .newsletter-form input,
html[data-theme="dark"] .reviews input,
html[data-theme="dark"] .reviews textarea,
html[data-theme="dark"] .reviews select {
    background: #0f172a;
    color: #e2e8f0;
    border-color: #334155;
}
html[data-theme="dark"] .product-gallery-main,
html[data-theme="dark"] .product-buybox,
html[data-theme="dark"] .product-tile,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .newsletter,
html[data-theme="dark"] .search-suggest,
html[data-theme="dark"] .blog-card,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .review,
html[data-theme="dark"] .qty-step,
html[data-theme="dark"] .search-item:hover,
html[data-theme="dark"] .search-item:focus { background: #1e293b; }
html[data-theme="dark"] .search-item { border-bottom-color: #334155; }
html[data-theme="dark"] .thumbnail,
html[data-theme="dark"] .search-item img,
html[data-theme="dark"] .search-item-thumb { background: #0f172a; }
html[data-theme="dark"] .trust-strip li,
html[data-theme="dark"] .shipping-estimator,
html[data-theme="dark"] .shipping-row { background: #0f172a; }
html[data-theme="dark"] .shipping-row { border-color: #334155; }
html[data-theme="dark"] .trust-strip li { border-color: #334155; }
html[data-theme="dark"] .btn { background: transparent; border-color: #475569; color: #e2e8f0; }
html[data-theme="dark"] .btn-primary { background: var(--c-primary); border-color: var(--c-primary); color: #052e22; }
html[data-theme="dark"] .btn-cta { background: var(--c-cta, var(--c-primary)); border-color: var(--c-cta, var(--c-primary)); color: #052e22; }
html[data-theme="dark"] .btn-ghost { color: var(--c-primary); border-color: var(--c-primary); }
html[data-theme="dark"] .btn-ghost-link { color: var(--c-text); }
html[data-theme="dark"] .cart-table,
html[data-theme="dark"] .totals-table { color: var(--c-text); }
html[data-theme="dark"] .cart-table th,
html[data-theme="dark"] .cart-table td,
html[data-theme="dark"] .totals-table td { border-color: #334155; }
html[data-theme="dark"] .store-nav a { color: #e2e8f0; }
html[data-theme="dark"] .store-nav a:hover, html[data-theme="dark"] .store-nav a:focus { color: var(--c-primary); }
html[data-theme="dark"] .product-stock.is-ok { color: #34d399; }
html[data-theme="dark"] .product-stock.is-low { color: #fbbf24; }
html[data-theme="dark"] .product-stock.is-out { color: #f87171; }
html[data-theme="dark"] .product-card-image-placeholder { color: #475569; }
html[data-theme="dark"] .cookie-banner { background: #1e293b; color: #e2e8f0; }
html[data-theme="dark"] .cookie-banner .btn:not(.btn-primary) { background: transparent; }
html[data-theme="dark"] .account-nav a { color: #94a3b8; }
html[data-theme="dark"] .blog-card-date { color: #64748b; }
html[data-theme="dark"] .hero-control { border-color: #475569; color: #e2e8f0; }

@media (max-width: 640px) {
    .store-header-actions { margin-left: 0; margin-right: 0; }
    body.store-ar .store-header-actions { margin-left: 0; margin-right: 0; }
    .store-header-top { align-items: stretch; }
    .search-suggest { max-height: 70vh; overflow-y: auto; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand-col { grid-column: auto; }
    .footer-newsletter-inner { justify-content: center; text-align: center; }
    .footer-newsletter-form { justify-content: center; }
    .footer-newsletter-form input { width: 100%; }
    /* La recherche du header avait un min-content de 391px (largeur intrinsique
       de l'input, size=20) : en flex elle refusait de retrecir et pushes le
       header hors du viewport en RTL. On la contraint a la largeur du conteneur. */
    .store-search {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    .store-search input { min-width: 0; width: 100%; }
    .store-brand, .store-header-actions { min-width: 0; }
}

/* Cibles tactiles. Plage elargie a 900px : une tablette est un appareil tactile
   et la nav mesurait 18px de haut, meme sur 768px. Au-dela (souris) on laisse
   la densite d'origine, la cible n'etant plus un enjeu. */
@media (max-width: 900px) {
    /* `> li > a` et non `.store-nav a` : en descendant, cette règle forçait
       `display: inline-flex` sur les liens du méga-menu, qui se dimensionne alors
       sur son min-content — un nom de catégorie long sortait de sa colonne de 4 px
       vers la GAUCHE en RTL (débordement invisible en LTR). */
    .store-nav > li > a, .lang-switch,
    .product-card h2 a, .product-tile-name a,
    .footer-col a {
        display: inline-flex;
        align-items: center;
        min-height: 32px;
    }

    /* 768 px est une tablette tactile : le panneau doit rester confortable, donc
       on garde les vignettes et on resserre les colonnes au lieu de les supprimer. */
    .store-mega { max-height: 62vh; }
    .store-mega-inner {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem 0.9rem;
        padding: 1rem 0.85rem 0.6rem;
    }
    .store-mega-children a { min-height: 40px; }
    .store-mega-parent { min-height: 40px; }
    .store-mega-toggle { min-height: 40px; min-width: 40px; }
}

/* --- Panier : 6 colonnes, largeur intrinsique de 508 px ---
   Mesuré le 2026-10-04 : la page débordait de 148 px à 375 px (et de 203 px à
   320 px), le débordement cessant vers 508 px de large. Les deux gros poids
   sont la colonne « Qté » (140 px : le stepper − input + *et* le bouton MàJ sur
   la même ligne) et « Retirer » (93 px) ; 6 colonnes réelles ne rentrent pas dans
   les 345 px utiles d'un 375 px, un simple repli ne suffirait donc pas.

   Même traitement que `.admin-table` : le `display:block` crée une boîte de
   table anonyme qui préserve la sémantique des lignes (`<thead>`, `<tbody>`,
   `<tr>`) tout en confiant le scroll au tableau lui-même.

   On n'a PAS tenté de faire tenir les 6 colonnes dans la largeur de l'écran :
   mesuré, le bouton « MàJ » passé à la ligne ne réduit pas la largeur
   intrinsèque (508 px avant comme après, le stepperpesant à lui seul 119 px),
   et `overflow-x: hidden` sur `body` est interdit — il casserait le header
   collant et masquerait le vrai débordement. */
@media (max-width: 640px) {
    .cart-table { display: block; overflow-x: auto; }
}
