/* Zayno Plus — boutique. Mobile-first. Palette relevée sur le modèle (mauve #776c89 / foncé #3b3643). */
@font-face { font-family: "Cairo"; src: url("../fonts/cairo-arabic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Cairo"; src: url("../fonts/cairo-arabic-700-normal.woff2") format("woff2"); font-weight: 600 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Cairo"; src: url("../fonts/cairo-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC; }
@font-face { font-family: "Cairo"; src: url("../fonts/cairo-latin-700-normal.woff2") format("woff2"); font-weight: 600 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC; }

:root {
    --primary-50: #e7e5eb;
    --primary-100: #b9b3c2;
    --primary-200: #776c89;
    --primary-300: #3b3643;
    --border: #94a3b8;
    --border-light: #e5e7eb;
    --text: #000;
    --muted: rgba(0, 0, 0, .6);
    --pill-text: #5f6c72;
    --bg: #fff;
    --danger: #c0262d;
    --ok: #1f7a4d;
    --radius: 8px;
    --radius-lg: 16px;
    --gutter: 16px;
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html[dir="rtl"] { --font: "Cairo", "Tajawal", ui-sans-serif, system-ui, "Segoe UI", Tahoma, Arial, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--text); background: var(--bg); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
.sr-only, .skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; inset-inline-start: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: var(--radius); }
:focus-visible { outline: 2px solid var(--primary-200); outline-offset: 2px; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.section { margin-block: 24px; }
.muted { color: var(--muted); }
.mt { margin-top: 16px; }
.empty { padding: 24px 0; color: var(--muted); }

/* ---------- Bandeau + header ---------- */
.announce { background: var(--primary-200); color: #fff; text-align: center; font-size: 14px; font-weight: 500; line-height: 20px; padding: 8px 12px; }
.site-header { background: #fff; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo img { width: 56px; height: 56px; border-radius: 50%; }
.logo-text { font-weight: 700; font-size: 18px; letter-spacing: .3px; color: var(--primary-300); }
.logo-text b { color: var(--primary-200); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 6px; border-radius: 6px; border: 1px solid transparent; background: transparent; cursor: pointer; text-decoration: none; }
.icon-btn--outline { border-color: var(--primary-200); color: var(--primary-300); }
.icon-btn--dark { background: var(--primary-300); border-color: var(--primary-300); color: #fff; }
.icon-btn--sm { width: 32px; height: 32px; padding: 4px; }
.cart-badge { position: absolute; top: -9px; inset-inline-end: -9px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #e5484d; color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; border: 2px solid #fff; }
.cart-badge.is-empty { display: none; }
.cart-badge.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.lang-switch { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--primary-300); border: 1px solid var(--primary-100); border-radius: 6px; height: 38px; display: inline-flex; align-items: center; padding: 0 10px; }
.search-row { padding-bottom: 12px; }
.search { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--pill-text); background: #fff; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; height: 100%; font-size: 16px; color: var(--text); min-width: 0; }
.search input::placeholder { color: #6b7280; }
.search--desktop { display: none; }

/* ---------- Accueil ---------- */
.hero { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); min-height: 200px; display: flex; align-items: center; justify-content: center; padding: 24px 12px;
    background: var(--hero-img, linear-gradient(135deg, #efe8df 0%, #e7e5eb 55%, #d9d2e3 100%)) center / cover no-repeat; }
.hero__box { display: flex; align-items: center; gap: 14px; max-width: 760px; width: 100%; padding: 16px; border-radius: var(--radius); background: rgba(59, 54, 67, .78); color: #fff; }
.hero__logo { width: 72px; height: 72px; border-radius: 50%; flex: none; }
.hero__title { font-size: 22px; font-weight: 700; }
.hero__text { margin: 6px 0 0; font-size: 13px; line-height: 1.5; opacity: .92; }
.shortcuts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.shortcut { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: 14px; }
.shortcut__img { width: 100%; max-width: 92px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 2px solid var(--primary-200); background: var(--primary-50); }
.shortcut__img img { width: 100%; height: 100%; object-fit: cover; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; aspect-ratio: 1 / 1.1; }
.tile--tall { grid-row: span 2; aspect-ratio: auto; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45), transparent 55%); }
.tile__label { position: absolute; bottom: 16px; inset-inline-start: 16px; z-index: 1; color: #fff; font-weight: 600; font-size: 16px; }
.section-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.sub-title { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.trust { list-style: none; margin: 0; padding: 16px; display: grid; gap: 12px; border: 1px solid var(--primary-100); border-radius: var(--radius-lg); background: rgba(231, 229, 235, .3); }
.trust li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--primary-300); }
.trust--compact { margin-top: 16px; padding: 12px; }

/* ---------- Grille produits ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card__media { position: relative; display: block; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); aspect-ratio: 1 / 1; background: #f6f5f8; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__noimg { position: absolute; inset: 0; background: var(--primary-50); }
.card--oos .card__media img { opacity: .55; }
.card__title { margin-top: 10px; font-size: 16px; font-weight: 600; line-height: 1.6; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__price { margin: 0; font-size: 15px; line-height: 1.43; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 8px; }
.card__price s { color: var(--muted); }
.badge { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; padding: 4px 8px; border-radius: 4px; background: #000; color: #fff; font-size: 12px; font-weight: 600; line-height: 16px; }
.badge--oos { background: var(--primary-300); }
.badge--lg { font-size: 14px; padding: 6px 10px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.list-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sort select { height: 38px; border: 1px solid var(--border); border-radius: var(--radius); padding: 0 8px; background: #fff; }
.chips { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 2px solid var(--border-light); color: var(--pill-text); text-decoration: none; font-size: 14px; font-weight: 500; }
.chip:hover { border-color: var(--primary-200); color: var(--primary-300); background: var(--primary-50); }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.pager a { padding: 8px 18px; border-radius: 50px; border: 1px solid var(--primary-300); text-decoration: none; color: var(--primary-300); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 32px; border-radius: 50px; border: 1px solid transparent; font-size: 16px; font-weight: 500; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: filter .15s, background .15s; }
html[dir="rtl"] .btn { text-transform: none; font-weight: 700; }
.btn--primary { background: var(--primary-200); color: #fff; }
.btn--primary:hover { filter: brightness(.93); }
.btn--outline { background: transparent; color: var(--primary-300); border-color: var(--primary-300); }
.btn--outline:hover { background: var(--primary-50); }
.btn--block { width: 100%; margin-top: 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.is-loading { pointer-events: none; opacity: .75; }

/* ---------- Page produit ---------- */
.product__grid { display: grid; gap: 20px; }
.gallery { position: relative; min-width: 0; }
.gallery__viewport { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); border: 1px solid var(--border-light); background: #f6f5f8; }
.gallery__viewport::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; aspect-ratio: 1 / 1; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__nav { position: absolute; top: calc(50% - 40px); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); box-shadow: 0 1px 4px rgba(0,0,0,.2); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--primary-300); }
.gallery__nav--prev { left: 8px; }
.gallery__nav--next { right: 8px; }
html[dir="rtl"] .gallery__nav--prev { left: auto; right: 8px; }
html[dir="rtl"] .gallery__nav--next { right: auto; left: 8px; }
html[dir="rtl"] .gallery__nav svg { transform: scaleX(-1); }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.gallery__thumb { flex: none; width: 60px; height: 60px; padding: 0; border-radius: var(--radius); border: 2px solid var(--border-light); overflow: hidden; background: #fff; cursor: pointer; }
.gallery__thumb.is-active { border-color: var(--primary-200); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery .badge { top: 12px; inset-inline-end: 12px; }
.product__title { font-size: 20px; font-weight: 700; }
.product__price { margin: 6px 0 16px; font-size: 18px; color: var(--muted); display: flex; gap: 10px; align-items: baseline; }
.product__price span { color: var(--text); font-weight: 600; }
.variant-box { border: 1px solid var(--primary-200); border-radius: var(--radius-lg); background: rgba(231, 229, 235, .3); padding: 16px; margin-bottom: 16px; }
.variant-box.has-error { border-color: var(--danger); }
.variant-box fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.variant-box fieldset:last-of-type { margin-bottom: 0; }
.variant-box legend { font-size: 14px; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; padding: 0; }
.legend-value { font-weight: 500; text-transform: none; color: var(--pill-text); }
.pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pill { position: relative; cursor: pointer; }
.pill input, .swatch input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--border-light); background: #fff; color: var(--pill-text); font-size: 14px; font-weight: 500; line-height: 20px; transition: all .15s; }
.pill input:checked + span { background: var(--primary-50); border-color: var(--primary-200); color: var(--primary-300); }
.pill input:focus-visible + span { outline: 2px solid var(--primary-200); outline-offset: 2px; }
.pill.is-unavailable span { opacity: .45; text-decoration: line-through; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { position: relative; width: 55px; height: 55px; border-radius: var(--radius); border: 2px solid var(--border-light); overflow: hidden; cursor: pointer; background: #fff; display: flex; align-items: center; justify-content: center; }
.swatch img { width: 100%; height: 100%; object-fit: cover; }
.swatch__dot { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.swatch:has(input:checked) { border-color: var(--primary-200); box-shadow: 0 0 0 1px var(--primary-200); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--primary-200); outline-offset: 2px; }
.swatch.is-unavailable { opacity: .45; }
.variant-msg, .stock-msg { margin: 10px 0 0; font-size: 14px; color: var(--danger); min-height: 0; }
.variant-msg:empty, .stock-msg:empty { display: none; }
.stock-msg.is-ok { color: var(--primary-300); }

/* ---------- Formulaire commande ---------- */
.fields { display: grid; gap: 14px; }
.field label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.req { color: var(--danger); }
.field input, .field select { width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; font-size: 16px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235f6c72' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-inline-end: 36px; }
html[dir="rtl"] .field select { background-position: left 14px center; }
.field input:focus, .field select:focus { border-color: var(--primary-200); outline: 2px solid var(--primary-50); }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field-error { margin: 6px 0 0; font-size: 13px; color: var(--danger); }
.field-error:empty { display: none; }
.totals { margin: 18px 0 4px; display: grid; gap: 8px; }
.totals > div { display: flex; justify-content: space-between; font-size: 16px; font-weight: 500; }
.totals__total { border-top: 1px solid var(--border-light); padding-top: 10px; font-size: 20px !important; font-weight: 700 !important; }
.free-hint { margin: 2px 0 0; font-size: 14px; color: var(--primary-200); font-weight: 600; }
.free-hint:empty { display: none; }
.free-hint--ok { color: var(--ok); }
.buy-row { display: flex; gap: 12px; margin-top: 16px; }
.btn--buy { flex: 1; padding-inline: 16px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--primary-300); border-radius: 50px; height: 46px; overflow: hidden; }
.qty button { width: 42px; height: 100%; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--primary-300); }
.qty button[disabled] { opacity: .35; cursor: not-allowed; }
.qty input { width: 38px; border: 0; text-align: center; font-size: 16px; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty--sm { height: 34px; }
.qty--sm button { width: 32px; }
.qty__value { min-width: 24px; text-align: center; font-size: 15px; }
.description { margin-top: 28px; }
.tab-title { display: inline-block; padding: 14px 16px; font-size: 16px; font-weight: 600; text-transform: uppercase; color: var(--primary-300); border-bottom: 2px solid var(--primary-300); }
html[dir="rtl"] .tab-title { text-transform: none; }
.description__body { padding: 16px 0; border-top: 1px solid var(--border-light); line-height: 1.7; }
.check-parcel { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--primary-300); font-size: 15px; }
.sticky-buy { position: fixed; z-index: 30; inset-inline: 0; bottom: 0; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,.08); transform: translateY(110%); transition: transform .25s ease; }
.sticky-buy.is-visible { transform: none; }
.sticky-buy .btn { width: 100%; }

/* ---------- Panier ---------- */
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border-light); align-items: start; }
.cart-line__img { width: 72px; height: 72px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-light); background: #f6f5f8; }
.cart-line__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__name { font-weight: 600; text-decoration: none; font-size: 15px; }
.cart-line__variant { margin: 2px 0; font-size: 13px; color: var(--pill-text); }
.cart-line__price { margin: 2px 0 0; font-weight: 600; font-size: 14px; }
.cart-line__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-layout { display: grid; gap: 24px; }
.checkout-box { border: 1px solid var(--primary-100); border-radius: var(--radius-lg); padding: 16px; background: #fff; }

/* ---------- Panneaux (menu + tiroir panier) ---------- */
.panel-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.4); }
.side-panel { position: fixed; z-index: 50; top: 0; bottom: 0; inset-inline-end: 0; width: min(380px, 88vw); background: #fff; display: flex; flex-direction: column; box-shadow: -4px 0 20px rgba(0,0,0,.15); transform: translateX(100%); transition: transform .25s ease; }
html[dir="rtl"] .side-panel { transform: translateX(-100%); box-shadow: 4px 0 20px rgba(0,0,0,.15); }
.side-panel.is-open { transform: none !important; }
.side-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border-light); font-size: 18px; }
.side-panel--menu { background: var(--primary-300); color: #fff; }
.side-panel--menu .side-panel__head { border-color: rgba(255,255,255,.15); }
.side-panel--menu .icon-btn { color: #fff; }
.menu-list { list-style: none; margin: 0; padding: 8px 0; overflow-y: auto; }
.menu-list a { display: block; padding: 12px 20px; font-weight: 600; text-decoration: none; }
.menu-list a:hover { background: rgba(255,255,255,.08); }
.menu-list ul { list-style: none; margin: 0; padding: 0 0 6px; }
.menu-list ul a { padding: 8px 36px; font-weight: 400; font-size: 15px; opacity: .9; }
.cart-drawer { padding: 8px 16px 20px; overflow-y: auto; flex: 1; }
.drawer-added { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; padding: 10px 12px; border-radius: var(--radius); background: #eaf6ef; color: var(--ok); font-weight: 600; font-size: 14px; }
body.panel-open { overflow: hidden; }

/* ---------- Divers ---------- */
.flash { margin: 12px 0; padding: 12px 14px; border-radius: var(--radius); font-size: 15px; }
.flash--error { background: #fdecec; color: #8a1c1c; border: 1px solid #f5c2c2; }
.flash--success { background: #eaf6ef; color: var(--ok); border: 1px solid #bfe3cf; }
.thanks { max-width: 640px; text-align: center; }
.thanks .checkout-box { text-align: start; margin: 20px 0; }
.thanks__icon { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%; background: var(--primary-200); color: #fff; display: flex; align-items: center; justify-content: center; }
.thanks__lead { font-size: 18px; font-weight: 600; }
.summary-lines { list-style: none; margin: 0; padding: 0; }
.summary-lines li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: 15px; }
.summary-lines small { display: block; color: var(--pill-text); }
.page { max-width: 760px; }
.prose { line-height: 1.8; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 10px; }
.wa-float { position: fixed; z-index: 35; bottom: 18px; inset-inline-end: 18px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
body.has-sticky .wa-float { bottom: 84px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; background: #fff; border-top: 1px solid var(--border-light); }
.announce--footer { margin-bottom: 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 20px; }
.footer-grid h2 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.footer-grid a { text-decoration: none; color: var(--muted); }
.footer-grid a:hover { color: var(--primary-200); }
.footer-grid img { border-radius: 50%; }
.footer-cod { font-size: 14px; color: var(--muted); }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--primary-100); display: inline-flex; align-items: center; justify-content: center; color: var(--primary-300); }
.copyright { margin: 0; padding: 14px var(--gutter); text-align: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border-light); }

/* ---------- Tablette / desktop ---------- */
@media (min-width: 640px) {
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero { min-height: 280px; }
    .hero__title { font-size: 30px; }
    .hero__text { font-size: 15px; }
    .hero__logo { width: 96px; height: 96px; }
    .tiles { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
    .trust { grid-template-columns: repeat(3, 1fr); }
    .trust--compact { grid-template-columns: 1fr 1fr; }
    .shortcuts { gap: 24px; max-width: 640px; margin-inline: auto; }
}
@media (min-width: 900px) {
    .search-row { display: none; }
    .search--desktop { display: flex; flex: 1; max-width: 420px; margin-inline: auto; }
    .product__grid { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
    .gallery { position: sticky; top: 16px; }
    .cart-layout { grid-template-columns: 1.4fr 1fr; align-items: start; }
    .sticky-buy { display: none; }
    body.has-sticky .wa-float { bottom: 18px; }
}
@media (min-width: 1024px) {
    .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }
    .section-title { font-size: 24px; }
    .hero { min-height: 360px; }
    .tiles { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Bannières promotionnelles (slider) */
.promo-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); border: 1px solid var(--border); }
.promo-slider::-webkit-scrollbar { display: none; }
.promo-slide { flex: 0 0 100%; scroll-snap-align: center; }
.promo-slide img { width: 100%; height: auto; }

/* ---------- Offres pack (Pack de 3 / 6 / 9) ---------- */
.offers { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; display: grid; gap: 12px; }
.offers.has-error .offer { border-color: var(--danger); }
.offer { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px; border-radius: 16px; background: var(--primary-50); border: 2px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; }
.offer input { position: absolute; opacity: 0; pointer-events: none; }
.offer__label { font-size: 15px; font-weight: 700; text-transform: uppercase; color: #111; line-height: 1.3; }
.offer__free { white-space: nowrap; }
.offer__price { font-size: 19px; font-weight: 800; color: #111; white-space: nowrap; }
.offer:hover { border-color: var(--primary-100); }
.offer.is-selected, .offer:has(input:checked) { background: var(--primary-100); border-color: var(--primary-300); box-shadow: 0 1px 4px rgba(59, 54, 67, .25); }
.offer input:focus-visible ~ .offer__label { outline: 2px solid var(--primary-300); outline-offset: 3px; }
@media (max-width: 420px) { .offer { padding: 12px 16px; } .offer__label { font-size: 13px; } .offer__price { font-size: 17px; } }

/* Bannière avec image : image entière, sans texte ni cadre sombre par-dessus */
.hero.hero--image { display: block; padding: 0; min-height: 0 !important; background: #f6f5f8; }
.hero.hero--image img { display: block; width: 100%; height: auto; }

/* =====================================================================
   Optimisations mobile (toutes les pages)
   ===================================================================== */
/* Panneaux fermés : vraiment masqués (sinon leur ombre déborde sur le bord de l'écran) */
.side-panel[hidden], .panel-backdrop[hidden] { display: none !important; }
.side-panel:not(.is-open) { box-shadow: none; }
html, body { max-width: 100%; }
img, video { max-width: 100%; }
/* Champs : 16 px minimum pour éviter le zoom automatique sur iPhone */
.sort select, select, input, textarea { font-size: 16px; }
/* Titres des cartes : 2 lignes au lieu d'être coupés */
.card__title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; min-height: 2.7em; }
/* Bouton Acheter : jamais sur 2 lignes */
.btn--buy { white-space: nowrap; min-width: 0; }
.buy-row .qty { flex: none; }

@media (max-width: 639px) {
    :root { --gutter: 12px; }
    .section { margin-block: 18px; }
    .section-title { font-size: 18px; margin-bottom: 12px; }
    .header-row { min-height: 64px; gap: 8px; }
    .logo img { width: 46px; height: 46px; }
    .logo-text { font-size: 16px; }
    .header-actions { gap: 8px; }
    .lang-switch { height: 38px; padding: 0 8px; }
    .search { height: 44px; }
    .announce { font-size: 13px; padding: 7px 10px; }
    /* Grille produits */
    .grid { gap: 18px 10px; }
    .card__title { font-size: 14px; margin-top: 8px; }
    .card__price { font-size: 14px; }
    .badge { top: 6px; inset-inline-end: 6px; font-size: 11px; padding: 3px 6px; }
    /* Tuiles plus compactes */
    .tiles { gap: 10px; }
    .tile { aspect-ratio: 4 / 3; }
    .tile__label { bottom: 10px; inset-inline-start: 10px; font-size: 15px; }
    .tile__label small { display: block; font-weight: 500; opacity: .9; }
    .shortcuts { gap: 8px; }
    .shortcut { font-size: 13px; }
    /* Fiche produit */
    .product__title { font-size: 18px; }
    .variant-box { padding: 12px; border-radius: 12px; }
    .pills, .swatches { gap: 8px; }
    .pill span { min-width: 44px; padding: 7px 12px; }
    .swatch { width: 50px; height: 50px; }
    .btn { padding-inline: 18px; font-size: 15px; }
    .buy-row { gap: 8px; }
    .qty button { width: 36px; }
    .qty input { width: 30px; }
    .totals > div { font-size: 15px; }
    .totals__total { font-size: 18px !important; }
    .description { margin-top: 20px; }
    .gallery__nav { width: 34px; height: 34px; }
    .gallery__thumb { width: 52px; height: 52px; }
    /* Panier */
    .cart-line { grid-template-columns: 64px 1fr; gap: 10px; }
    .cart-line__img { width: 64px; height: 64px; }
    .cart-line__actions { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
    .checkout-box { padding: 12px; border-radius: 12px; }
    .summary-lines li { grid-template-columns: 1fr auto; }
    .summary-lines li > span:last-child { grid-column: 2; }
    /* Divers */
    .list-head { align-items: center; }
    .sort label { display: none; }
    .sort select { height: 40px; }
    .footer-grid { gap: 18px; }
    .wa-float { width: 50px; height: 50px; bottom: 14px; inset-inline-end: 14px; }
    body.has-sticky .wa-float { bottom: 78px; }
    .thanks__lead { font-size: 16px; }
    .side-panel { width: min(340px, 88vw); }
}
@media (max-width: 359px) {
    .logo-text { display: none; }
    .btn { padding-inline: 12px; font-size: 14px; }
}
