/* Thème « Le zip » (25/11/2026). Doublure brune, tissu beige, dents de zip sur les deux côtés de toute l'app.
   Les couleurs viennent du store (thème) ; seules les images de /zip/ sont au thème. */
:root { --zip-bord: clamp(20px, 5.6vw, 84px); --zip-tissu: #E3D1B5; --zip-encre: #3A2812; }
body.style-zip { background: var(--bg); color-scheme: dark; }
html:has(body.style-zip) { background: var(--bg); }

/* ── l'écran d'ouverture ── */
html.zip-ferme, html.zip-ferme body { overflow: hidden; overscroll-behavior: none; }
html.zip-vu .zip { display: none; }
.zip { position: fixed; inset: 0; z-index: 25; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; transition: opacity .28s; }
.zip.is-saisi { cursor: grabbing; }
.zip.is-ouvert { pointer-events: none; }
.zip.is-parti { opacity: 0; }
.zip__doublure { position: absolute; inset: 0; background: var(--bg) url(/zip/doublure.webp) 0 0 / 300px; }
.zip__doublure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(20, 11, 3, .05), rgba(20, 11, 3, .5) 46%); }
.zip__nom { position: absolute; left: 0; right: 0; width: max-content; margin: 0 auto; z-index: 1; padding-left: .14em; font: 300 clamp(17px, 4.6vw, 30px)/1 var(--font-title); letter-spacing: .14em; text-transform: uppercase; color: #FFF0DE; white-space: nowrap; }
.zip__toile, .zip__photo { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .45s; }
.zip__photo { max-width: none; display: none; }
.zip.sans-gl .zip__photo { display: block; inset: auto; }
.zip.is-pret .zip__toile, .zip.is-pret .zip__photo { opacity: 1; }
.zip__broderie { position: absolute; display: none; }
.zip__curseur { position: absolute; z-index: 2; opacity: 0; transition: opacity .45s; touch-action: none; cursor: grab; will-change: transform; filter: drop-shadow(0 5px 5px rgba(40, 24, 6, .38)); }
.zip__curseur::before { content: ""; position: absolute; inset: -14px -30px -18px; }   /* le doigt a de la place autour du curseur */
.zip__curseur img { width: 100%; height: 100%; pointer-events: none; max-width: none; transform-origin: 50% 8%; }
.zip__mots { position: absolute; margin: 0; z-index: 1; left: 0; right: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(46px, 13.5vw, 92px); opacity: 0; transition: opacity .3s; pointer-events: none; font: 600 clamp(26px, 7.6vw, 44px)/1.1 var(--font-title); letter-spacing: -.05em; color: var(--zip-encre); }
.zip__mots span:first-child { text-align: right; }
.zip__cta { position: absolute; z-index: 2; left: 0; right: 0; margin: 0 auto; width: calc(100% - 44px); max-width: 420px; height: 52px; border-radius: 4px; background: #4A361D; color: #FFF0DE; font: 600 16px var(--font-ui); box-shadow: 0 6px 18px rgba(40, 24, 6, .22); transition: opacity .3s, transform .12s; opacity: 0; }
.zip__cta:active { transform: scale(.98); }
.zip.is-large .zip__cta { right: auto; left: calc(50% - max(250px, 19vw) - 270px); width: 270px; height: 60px; font-size: 18px; }
.zip.is-pret .zip__curseur, .zip.is-pret .zip__mots, .zip.is-pret .zip__cta { opacity: 1; }
.zip.is-pret .zip__mots, .zip.is-pret .zip__cta { transition: transform .12s; }
.zip.is-tire .zip__cta { pointer-events: none; }
.zip__curseur:focus-visible, .zip__cta:focus-visible { outline: 3px solid #FFF0DE; outline-offset: 3px; }
@media (max-height: 560px) { .zip__mots { font-size: 22px; } .zip__cta { height: 46px; } }

/* ── l'intérieur : les deux rangées de dents, sur toute l'app ── */
body.style-zip::before, body.style-zip::after { content: ""; position: fixed; top: 0; bottom: 0; width: var(--zip-bord); z-index: 24; pointer-events: none; background: url(/zip/bord-g.webp) right 0 top 0 / calc(var(--zip-bord) * 1.5) auto repeat-y; }
html.zip-ferme body.style-zip::before, html.zip-ferme body.style-zip::after { opacity: 0; }
body.style-zip::before, body.style-zip::after { transition: opacity .2s; }
body.style-zip::before { left: 0; box-shadow: 5px 0 12px rgba(16, 8, 0, .42); }
body.style-zip::after { right: 0; background: url(/zip/bord-d.webp) left 0 top 0 / calc(var(--zip-bord) * 1.5) auto repeat-y; box-shadow: -5px 0 12px rgba(16, 8, 0, .42); }
.style-zip main { max-width: 1420px; padding-left: calc(var(--zip-bord) + 13px); padding-right: calc(var(--zip-bord) + 13px); }
.style-zip .header { background: var(--bg); border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.style-zip .header__inner { max-width: 1420px; padding: 0 calc(var(--zip-bord) + 13px); height: 78px; }
.style-zip .brand__logo { height: 58px; }
.style-zip.sur-menu .header { display: none; }
.style-zip .cartbar { padding: 0 calc(var(--zip-bord) + 13px); }

.z-tete { position: sticky; top: 0; z-index: 12; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: -14px -6px 0; padding: 9px 6px 8px; background: var(--bg); }
.z-tete__logo { flex: none; }
.z-tete__logo img { height: 54px; width: auto; display: block; }
.z-filtres { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.z-filtres::-webkit-scrollbar { display: none; }
.z-filtres button { flex: none; min-height: 44px; font: 500 15px var(--font-ui); color: var(--muted); border-bottom: 2px solid transparent; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 7px) / 0 2px no-repeat; }
.z-filtres .is-on { color: var(--ink); background-size: 100% 2px; }
.z-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 13px; }
.z-p { position: relative; min-width: 0; cursor: pointer; }
.z-p__ph { position: relative; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; background: #6B4E30; }
.z-p__ph img { width: 100%; height: 100%; object-fit: cover; }
.z-p__ph .tag, .z-p__ph .lbl { position: absolute; left: 8px; top: 8px; background: var(--zip-tissu); color: var(--zip-encre); border: 0; font: 600 11px var(--font-ui); text-transform: none; letter-spacing: 0; padding: 4px 8px; border-radius: 3px; }
.z-p__tx { position: relative; padding: 8px 47px 0 0; min-height: 52px; }
.z-p h3 { font: 500 14px/1.25 var(--font-ui); letter-spacing: 0; text-transform: none; overflow-wrap: anywhere; }
@media (max-width: 400px) { .z-p h3 { font-size: 13.5px; } .z-p--une h3 { font-size: 18px; } }
.z-p .price { display: block; margin-top: 4px; font: 600 17px var(--font-ui); }
.z-p .add { position: absolute; right: 0; top: 10px; width: 44px; height: 44px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.z-p .add svg { width: 19px; height: 19px; stroke-width: 2; }
.z-p.is-off .z-p__ph img { opacity: .5; }
/* la pièce mise en avant : sa photo en grand, son nom à côté */
.z-p--une { grid-column: 1 / -1; display: grid; grid-template-columns: 55% 1fr; gap: 15px; margin-bottom: 14px; }
.z-p--une .z-p__tx { padding: 6px 0 0; display: flex; flex-direction: column; align-items: flex-start; }
.z-p--une h3 { font-size: 18px; }
.z-p--une .price { font-size: 22px; margin-top: 8px; }
.z-p--une .add { position: static; margin-top: auto; }
.style-zip .demo-note { margin: 34px 0 6px; }

/* ── barre du bas : le tissu, sa couture ── */
.style-zip .nav { background: var(--zip-tissu); border: 0; color: var(--zip-encre); box-shadow: 0 -6px 18px rgba(16, 8, 0, .28); }
.style-zip .nav::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 1.5px dashed rgba(122, 94, 56, .45); }
.style-zip .nav__item { color: #6B5232; font: 500 11px var(--font-ui); }
.style-zip .nav__item.is-active { color: var(--zip-encre); font-weight: 700; }
.style-zip .nav__bubble { width: auto; height: auto; margin: 0; background: none; color: inherit; border: 0; box-shadow: none; border-radius: 0; }
.style-zip .nav__bubble, .style-zip .cartbar__btn, .style-zip .add, .style-zip .btn:not(.btn--ghost) { background-image: none !important; }
.style-zip .nav__bubble svg { width: 23px; height: 23px; stroke-width: 1.9; }
.style-zip .nav__badge { background: #4A361D; color: #FFF0DE; border: 0; top: -7px; right: -12px; }
.style-zip .cartbar__btn { border-radius: 4px; background: var(--accent); color: var(--accent-ink); }
.style-zip .cartbar__count { border-radius: 3px; background: var(--accent-ink); color: var(--accent); }

/* ── fiche, panier, pages ── */
.style-zip h1, .style-zip h2 { font-weight: 500; letter-spacing: -.045em; line-height: 1.12; }
.style-zip .sheet { border-radius: 14px 14px 0 0; border: 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .5); }
.style-zip .sheet__media { aspect-ratio: auto; width: 100%; height: min(54dvh, 112vw, 620px); background: #6B4E30; border-radius: 14px 14px 0 0; }
.style-zip .sheet__head { flex-wrap: wrap; }
.style-zip .sheet__head h2 { font-size: 23px; flex: 1 1 180px; }
.style-zip .sheet__head .price { font: 600 22px var(--font-ui); color: var(--ink); }
.style-zip .opt { padding: 0; margin-top: 24px; background: none; border: 0; border-radius: 0; box-shadow: none; }
.style-zip .opt.is-bad { box-shadow: none; }
.style-zip .opt.is-bad .opt__head h3::after { content: " : choisis"; color: #FFC7A8; }
.style-zip .opt__head h3 { font: 500 16px var(--font-ui); }
.style-zip .opt__rule { background: none; color: var(--muted); padding: 0; text-transform: none; letter-spacing: 0; font: 500 12.5px var(--font-ui); }
.style-zip .opt__list--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.style-zip .opt__list--grid .choice { justify-content: center; min-height: 50px; border: 1.5px solid var(--line); border-radius: 4px; flex-direction: column; gap: 0; padding: 4px; }
.style-zip .opt__list--grid .choice__mark { display: none; }
.style-zip .opt__list--grid .choice__name { flex: none; font: 500 15px var(--font-ui); }
.style-zip .opt__list--grid .choice.is-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.style-zip .opt__list--grid .choice.is-out { opacity: .45; text-decoration: line-through; }
.style-zip .btn, .style-zip .field, .style-zip .card, .style-zip .line, .style-zip .info, .style-zip .modes, .style-zip .mode, .style-zip .qty, .style-zip .line__img, .style-zip .channel { border-radius: 4px; }
.style-zip .qty button { border-radius: 3px; }
.style-zip .line__name { font: 500 15.5px/1.25 var(--font-ui); letter-spacing: 0; text-transform: none; }
.style-zip .summary__row--total .price { color: var(--ink); }
.style-zip .section-title h2 { font-size: clamp(22px, 6vw, 34px); }
.style-zip .about__logo { width: 92px; height: 78px; }
.style-zip .toast { bottom: auto; top: calc(env(safe-area-inset-top, 0px) + 18px); transform: translate(-50%, -16px); background: #FFF0DE; color: #3A2812; border-radius: 4px; }
.style-zip .toast.is-bad { background: #FFC7A8; color: #3A1505; }
.style-zip .link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.style-zip .toast.is-show { transform: translate(-50%, 0); }
.style-zip .form { margin-top: 14px; }
.style-zip .avatar { background: var(--accent); color: var(--accent-ink); }

/* « Installer l'app » : une icône à droite des filtres, jamais pendant le zip */
html.zip-ferme .install-btn { display: none; }
.style-zip .install-btn { top: calc(env(safe-area-inset-top, 0px) + 19px); right: calc(var(--zip-bord) + 10px); width: 44px; height: 44px; padding: 0; justify-content: center; gap: 0; border-radius: 4px; font-size: 0; background: #3C2A13; color: #FFF0DE; box-shadow: none; z-index: 23; }
.style-zip .install-btn svg { width: 20px; height: 20px; stroke-width: 2; }
body.style-zip:has(.install-btn:not([hidden])) .z-filtres { margin-right: 54px; }
body.style-zip:has(.install-btn:not([hidden])) .header__inner { padding-right: calc(var(--zip-bord) + 64px); }

/* ── ordinateur : la pièce mise en avant à gauche, les autres à droite ── */
@media (min-width: 760px) {
  .style-zip .z-tete__logo img { height: 74px; }
  .z-filtres { gap: 32px; } .z-filtres button { font-size: 17px; }
  .z-grille { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 30px 20px; }
  .z-p h3 { font-size: 17px; } .z-p .price { font-size: 20px; }
  .z-p__ph img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
  .z-p:hover .z-p__ph img { transform: scale(1.03); }
  .style-zip .screen:not([data-screen="menu"]) { max-width: 640px; margin-inline: auto; }
}
@media (min-width: 1000px) {
  .z-cadre { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 34px; align-items: start; padding-top: 6px; }
  .z-cadre > .z-p--une { position: sticky; top: 108px; display: block; grid-column: auto; margin: 0; }
  .z-cadre--seule { grid-template-columns: minmax(0, 560px); justify-content: center; }
  .z-cadre .z-p--une .z-p__ph { aspect-ratio: auto; height: min(calc(100vh - 300px), 720px); min-height: 360px; }
  .z-cadre .z-p--une .z-p__tx { display: block; padding: 16px 70px 0 0; }
  .z-cadre .z-p--une h3 { font: 500 30px/1.1 var(--font-title); letter-spacing: -.045em; }
  .z-cadre .z-p--une .price { font-size: 26px; }
  .z-cadre .z-p--une .add { position: absolute; right: 0; top: 18px; width: 56px; height: 56px; }
  .z-cadre .z-grille { grid-template-columns: 1fr 1fr; padding-top: 0; }
  .z-cadre.z-cadre--peu { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .z-cadre.z-cadre--peu > .z-p--une { position: static; }
  .z-cadre.z-cadre--peu > .z-grille { grid-column: span 2; gap: 24px; }
  .z-cadre.z-cadre--peu .z-p--une .z-p__ph { aspect-ratio: 4 / 5; height: auto; min-height: 0; }
  .z-cadre.z-cadre--peu .z-p .z-p__tx { padding: 14px 64px 0 0; }
  .z-cadre.z-cadre--peu .z-p h3, .z-cadre.z-cadre--peu .z-p--une h3 { font: 500 18px/1.25 var(--font-ui); letter-spacing: 0; }
  .z-cadre.z-cadre--peu .z-p .price, .z-cadre.z-cadre--peu .z-p--une .price { font-size: 22px; margin-top: 4px; }
  .z-cadre.z-cadre--peu .z-p .add, .z-cadre.z-cadre--peu .z-p--une .add { width: 52px; height: 52px; top: 16px; }
}
@media (prefers-reduced-motion: reduce) { .z-p__ph img, .zip, .zip__toile { transition-duration: .01s !important; } }
