/* The arch design. Colours and sizes come from tokens.css. See design/DESIGN.md. */

/* ------- Base ------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--bg-page); color: var(--fg-default);
  font: 400 var(--size-sm)/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
[hidden] { display: none !important; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; border-radius: 0; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, fieldset, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.on-dark { --focus-ring: var(--focus-ring-on-dark); }

h1, h2 { font-family: var(--font-display); font-weight: 800; font-stretch: 78%; line-height: 1; letter-spacing: -.015em; color: var(--fg-brand); }
h1, h2 { font-size: var(--size-2xl); }
h3 { font-size: var(--size-md); font-weight: 600; line-height: 1.3; }
.muted { color: var(--fg-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--space-3); top: -60px; z-index: 50; background: var(--bg-accent); color: var(--fg-on-accent); padding: var(--space-2) var(--space-3); }
.skip:focus { top: var(--space-3); }
.noscript { padding: var(--space-4) var(--layout-gutter); background: var(--bg-tile); text-align: center; }
.icon { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ------- Logo (takes the current text colour) ------- */
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: var(--layout-touch); text-decoration: none; }
.logo-mark, .logo-word { display: block; background: currentColor; }
.logo-mark { width: 30px; aspect-ratio: 518.8 / 595.5; -webkit-mask: url(../images/logo-mark.svg) center / contain no-repeat; mask: url(../images/logo-mark.svg) center / contain no-repeat; }
.logo-word { width: 88px; aspect-ratio: 880.2 / 153; -webkit-mask: url(../images/logo-word.svg) center / contain no-repeat; mask: url(../images/logo-word.svg) center / contain no-repeat; }

/* ------- Moving text banner ------- */
.marquee { height: var(--layout-marquee); display: flex; align-items: center; overflow: hidden; background: var(--bg-accent); color: var(--fg-on-accent); font-size: var(--size-xs); font-weight: 500; }
.marquee-track { display: flex; flex: none; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex: none; }
.marquee-group span { padding-inline: var(--space-6); white-space: nowrap; }
.marquee-group span::after { content: "◆"; margin-left: var(--space-8); font-size: 8px; vertical-align: 2px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------- Header ------- */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--bg-page); border-bottom: var(--border-thin) solid var(--line-default); }
.site-header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: var(--layout-header); padding-inline: var(--layout-gutter); }
.site-header .logo { color: var(--fg-brand); }
.nav { display: flex; gap: var(--space-6); font-weight: 500; }
.nav a { display: inline-flex; align-items: center; min-height: var(--layout-touch); text-decoration: none; }
.nav a:hover { color: var(--fg-brand); }
.nav a[aria-current="page"] { color: var(--fg-brand); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.bag-link { justify-self: end; display: inline-flex; align-items: center; min-height: var(--layout-touch); font-weight: 500; text-decoration: none; white-space: nowrap; }
.bag-link:hover, .bag-link[aria-current="page"] { color: var(--fg-brand); }
.menu-btn { display: none; width: var(--layout-touch); height: var(--layout-touch); margin-left: calc(-1 * var(--space-3)); padding: 0; place-items: center; background: none; border: 0; }
.menu { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: var(--space-2) var(--layout-gutter) var(--space-5); background: var(--bg-page); border-bottom: var(--border-thin) solid var(--line-default); }
.menu a { display: flex; align-items: center; min-height: 56px; font: 800 var(--size-xl)/1 var(--font-display); font-stretch: 78%; color: var(--fg-brand); text-decoration: none; }

/* ------- Buttons ------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: var(--space-3) var(--space-6);
  border: 0; border-radius: var(--radius-full);
  font-size: var(--size-sm); font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background var(--motion-fast), color var(--motion-fast);
}
.btn--primary { background: var(--bg-accent); color: var(--fg-on-accent); }
.btn--primary:hover { background: var(--bg-accent-hover); }
.btn--ghost { box-shadow: inset 0 0 0 var(--border-strong) var(--line-strong); background: transparent; color: var(--fg-brand); }
.btn--ghost:hover { background: var(--bg-accent); color: var(--fg-on-accent); }
.btn--block { width: 100%; }
.link { font-weight: 500; text-underline-offset: 4px; }
.link:hover { color: var(--fg-brand); }

/* ------- Home: hero ------- */
/* A full-width picture with the text over it.
   Computer: the group stands on the right, the large navy headline sits on the light wall on the left.
   Phone (see the phone section): the picture centres on the group and the text is white at the bottom. */
.hero { position: relative; display: flex; align-items: center; justify-content: flex-start; height: var(--layout-hero); overflow: hidden; background: var(--bg-page); color: var(--fg-brand); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 100% 50%; }
/* A soft cream veil from the left keeps the headline readable on the wall. */
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, color-mix(in srgb, var(--bg-page) 70%, transparent) 0%, color-mix(in srgb, var(--bg-page) 35%, transparent) 30%, transparent 50%); }
.hero-text { position: relative; z-index: 1; display: grid; justify-items: start; gap: var(--space-4); width: min(100%, var(--layout-max)); margin-inline: auto; padding: 0 var(--layout-gutter); text-align: left; }
.hero-text > * { max-width: 34%; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 5rem); line-height: .95; color: inherit; }
.hero-text p { font-size: var(--size-md); font-weight: 500; font-style: italic; }
.hero-text .btn { margin-top: var(--space-2); }
.hero--slideshow { height: clamp(520px, 42vw, 760px); }
.hero-visual { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; }
/* Every photo sits on top of the others; the active one fades in over 1.4 s
   and slowly settles from a slight zoom, so each change feels smooth. */
.hero-picture { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease-in-out; }
.hero-picture.is-active { opacity: 1; }
.hero-picture .hero-media { object-position: var(--hero-pos, right top); transform: scale(1.06); transition: transform 6.5s ease-out; }
.hero-picture.is-active .hero-media { transform: scale(1); }
.hero--slideshow::after { pointer-events: none; }
.btn--outline { box-shadow: inset 0 0 0 var(--border-strong) var(--fg-on-accent); color: var(--fg-on-accent); }
.btn--outline:hover { background: var(--fg-on-accent); color: var(--fg-brand); }

/* ------- Sections ------- */
.section { width: 100%; max-width: var(--layout-max); margin-inline: auto; padding: var(--space-7) var(--layout-gutter); }
.section > h2 { margin-bottom: var(--space-5); }

/* ------- Product grid ------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-7) clamp(16px, 2.4vw, 32px); }
/* The landing page shows smaller cards, 5 across. */
.grid--small { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-5) var(--space-2); }
.grid--small .plate { flex-direction: column; gap: 0; padding-top: var(--space-2); font-size: var(--size-sm); }
.prod { display: block; text-decoration: none; }
/* Every product picture sits in the arch from the logo. */
.thumb { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-tile); -webkit-mask: url(../images/arch.svg) center / 100% 100% no-repeat; mask: url(../images/arch.svg) center / 100% 100% no-repeat; }
.thumb img { position: absolute; left: 13%; top: 11%; width: 74%; height: 82%; max-width: none; object-fit: contain; transition: opacity var(--motion-base); }
.thumb .img-back { opacity: 0; }
/* A real photo, like the owner wearing the clothes, fills the whole arch. */
.thumb--full img { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
@media (hover: hover) {
  a.prod:hover .img-back { opacity: 1; }
  a.prod:hover .img-front:not(:only-child) { opacity: 0; }
}
.plate { display: flex; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-3); font-size: var(--size-md); font-weight: 500; }
.plate > :last-child { white-space: nowrap; }
.prod:hover .plate > :first-child { color: var(--fg-brand); text-decoration: underline; text-underline-offset: 4px; }

/* ------- Footer ------- */
.site-footer { margin-top: var(--space-7); background: var(--bg-accent); color: var(--fg-on-accent); }
.footer-inner { max-width: var(--layout-max); margin-inline: auto; padding: var(--space-7) var(--layout-gutter) var(--space-5); }
.footer-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5) var(--space-7); }
.footer-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-5); margin-top: var(--space-6); padding-top: var(--space-4); border-top: var(--border-thin) solid color-mix(in srgb, var(--fg-on-accent) 30%, transparent); font-size: var(--size-xs); }
.footer-end a { text-underline-offset: 3px; }

/* The WhatsApp label and number: always large and high in contrast. */
.wa-link { display: inline-flex; align-items: center; gap: var(--space-4); max-width: 100%; padding: var(--space-3) var(--space-6) var(--space-3) var(--space-5); border-radius: var(--radius-full); background: var(--fg-on-accent); color: var(--fg-brand); text-decoration: none; transition: background var(--motion-fast), color var(--motion-fast); }
.wa-link:hover { background: var(--color-white); }
.wa-link--solid { background: var(--bg-accent); color: var(--fg-on-accent); }
.wa-link--solid:hover { background: var(--bg-accent-hover); }
/* Social links: round icons in the footer, labelled pills on the Contact page. */
.footer-contact { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); }
.social { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--radius-full); box-shadow: inset 0 0 0 var(--border-thin) currentColor; color: inherit; text-decoration: none; transition: background var(--motion-fast), color var(--motion-fast); }
.social a:hover { background: var(--fg-on-accent); color: var(--fg-brand); }
.social-icon { width: 22px; height: 22px; fill: currentColor; }
.social--text a { width: auto; height: auto; gap: var(--space-3); padding: var(--space-3) var(--space-5) var(--space-3) var(--space-4); color: var(--fg-brand); }
.social--text a:hover { background: var(--bg-accent); color: var(--fg-on-accent); }
.social--text .social-icon { width: 26px; height: 26px; }
.social-text { display: grid; }
.social-name { font-size: var(--size-sm); font-weight: 600; }
.social-handle { font-size: var(--size-xs); }
.wa-icon { flex: none; width: 34px; height: 34px; fill: currentColor; }
.wa-text { display: grid; }
.wa-label { font-size: var(--size-sm); font-weight: 600; }
.wa-number { font: 700 var(--size-xl)/1.2 var(--font-display); white-space: nowrap; }

/* ------- Inner page titles ------- */
.page-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-5); width: 100%; max-width: var(--layout-max); margin-inline: auto; padding: var(--space-7) var(--layout-gutter) var(--space-5); }
.page-head p { color: var(--fg-muted); }

/* ------- Shop ------- */
#shop-grid { width: 100%; max-width: var(--layout-max); margin-inline: auto; padding-inline: var(--layout-gutter); }
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); width: 100%; max-width: var(--layout-max); margin: 0 auto var(--space-6); padding-inline: var(--layout-gutter); }
.chip { min-height: var(--layout-touch); padding: 0 var(--space-5); border-radius: var(--radius-full); background: transparent; border: var(--border-strong) solid var(--line-default); font-weight: 500; transition: background var(--motion-fast), color var(--motion-fast), border-color var(--motion-fast); }
.chip:hover { border-color: var(--line-strong); }
.chip[aria-pressed="true"] { background: var(--bg-accent); border-color: var(--bg-accent); color: var(--fg-on-accent); }
.soon { padding: var(--space-7) var(--layout-gutter) 0; text-align: center; color: var(--fg-muted); }
.state { display: grid; gap: var(--space-4); justify-items: start; width: 100%; max-width: var(--layout-max); margin-inline: auto; padding: var(--space-7) var(--layout-gutter); }

/* ------- Product ------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: var(--space-7); align-items: start; width: 100%; max-width: var(--layout-max); margin-inline: auto; padding: var(--space-5) var(--layout-gutter) 0; }

/* Photos sit side by side in one strip: a finger or trackpad moves it directly,
   and the arrows slide it. Add more photos and they simply join the strip. */
.gallery-wrap { position: relative; width: 100%; max-width: min(640px, calc((100svh - 170px) * .8)); justify-self: center; }
.gallery { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; transition: opacity var(--motion-fast); }
.gallery::-webkit-scrollbar { display: none; }
.gallery.is-fading { opacity: 0; }
.slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.gallery-btn { position: absolute; top: 68%; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 0; background: var(--bg-accent); color: var(--fg-on-accent); transition: background var(--motion-fast), opacity var(--motion-fast); }
.gallery-btn:hover:not(:disabled) { background: var(--bg-accent-hover); }
.gallery-btn:disabled { opacity: 0; pointer-events: none; }
.gallery-btn--prev { left: var(--space-3); }
.gallery-btn--next { right: var(--space-3); }
@media (hover: none) { .gallery-btn { display: none; } }

.buy { position: sticky; top: calc(var(--layout-header) + var(--space-5)); display: grid; gap: var(--space-5); }
.crumbs { display: flex; gap: var(--space-2); font-size: var(--size-xs); color: var(--fg-muted); }
.crumbs a { text-underline-offset: 3px; }
.buy-head { display: grid; gap: var(--space-3); padding-bottom: var(--space-5); border-bottom: var(--border-thin) solid var(--line-default); }
.price { font-size: var(--size-lg); font-weight: 600; }
.field legend { padding: 0; margin-bottom: var(--space-2); }
.field legend strong { font-weight: 600; }
.swatches { display: flex; gap: var(--space-2); }
.swatch { position: relative; width: var(--layout-touch); height: var(--layout-touch); padding: 0; background: none; border: 0; border-radius: 50%; }
.swatch::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--swatch); }
.swatch:hover { box-shadow: inset 0 0 0 var(--border-thin) var(--line-strong); }
.swatch[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--line-strong); }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: var(--space-2); }
.size { min-height: 48px; padding: var(--space-2); background: transparent; border: var(--border-strong) solid var(--line-default); border-radius: var(--radius-full); font-weight: 500; transition: background var(--motion-fast), color var(--motion-fast), border-color var(--motion-fast); }
.size:hover { border-color: var(--line-strong); }
.size[aria-pressed="true"] { background: var(--bg-accent); border-color: var(--bg-accent); color: var(--fg-on-accent); }
.error { margin-top: var(--space-2); color: var(--fg-danger); font-weight: 500; }
.notice { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--bg-tile); }
.added { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); }
.added .link { padding-block: var(--space-2); }
.hint { color: var(--fg-muted); }
.details { display: grid; gap: var(--space-1); padding-top: var(--space-5); border-top: var(--border-thin) solid var(--line-default); }
.details li::before { content: "•"; margin-right: var(--space-2); }

/* ------- Bag and order form ------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); align-items: start; width: 100%; max-width: var(--layout-max); margin-inline: auto; padding: 0 var(--layout-gutter); }
.bag-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; padding-block: var(--space-3); border-bottom: var(--border-thin) solid var(--line-default); }
.bag-thumb { display: block; width: 76px; height: 95px; padding: var(--space-2) var(--space-2) var(--space-1); background: var(--bg-tile); -webkit-mask: url(../images/arch.svg) center / 100% 100% no-repeat; mask: url(../images/arch.svg) center / 100% 100% no-repeat; }
.bag-thumb img { width: 100%; height: 100%; object-fit: contain; }
.bag-thumb--full { padding: 0; }
.bag-thumb--full img { object-fit: cover; object-position: center top; }
.bag-name { font-weight: 600; }
.bag-meta { font-size: var(--size-xs); color: var(--fg-muted); }
.qty { display: inline-flex; align-items: center; gap: 2px; margin-top: var(--space-1); margin-left: calc(-1 * var(--space-2)); }
.qty button { width: var(--layout-touch); height: var(--layout-touch); border: 0; border-radius: 50%; background: transparent; font-size: var(--size-lg); line-height: 1; }
.qty button:hover:not(:disabled) { background: var(--bg-tile); }
.qty button:disabled { color: var(--line-default); cursor: default; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.bag-side { display: grid; justify-items: end; gap: var(--space-1); align-self: start; padding-top: 2px; }
.bag-price { font-weight: 600; white-space: nowrap; }
.remove { background: none; border: 0; padding: var(--space-3) 0; font-size: var(--size-xs); color: var(--fg-muted); text-decoration: underline; text-underline-offset: 3px; }
.remove:hover { color: var(--fg-danger); }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-block: var(--space-4) var(--space-2); }
.total strong { font-size: var(--size-xl); font-weight: 700; }
.order { display: grid; gap: var(--space-4); }
.input label { display: block; margin-bottom: var(--space-1); font-weight: 500; }
.optional { color: var(--fg-muted); font-weight: 400; }
.input input, .input select, .input textarea { display: block; width: 100%; min-height: 48px; padding: var(--space-3); background: var(--bg-field); border: var(--border-strong) solid var(--line-default); border-radius: var(--radius-md); font-size: var(--size-md); }
.input input:focus, .input select:focus, .input textarea:focus { border-color: var(--line-strong); outline: none; }
.input textarea { resize: vertical; }
.input [aria-invalid="true"] { border-color: var(--fg-danger); }
.done { display: grid; gap: var(--space-4); justify-items: start; width: 100%; max-width: 620px; margin-inline: auto; padding: var(--space-7) var(--layout-gutter); }
.done:focus { outline: none; }
.done-ref { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ------- Contact page ------- */
.contact-line { display: grid; gap: var(--space-4); justify-items: start; }
.contact-line > h2 { margin-bottom: 0; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-5); }
.steps li { counter-increment: step; display: grid; align-content: start; gap: var(--space-2); }
.steps li::before { content: counter(step); font: 800 var(--size-xl)/1 var(--font-display); color: var(--fg-brand); }
.steps p { color: var(--fg-muted); max-width: 34ch; }
.faq details { border-bottom: var(--border-thin) solid var(--line-default); }
.faq summary { display: flex; align-items: center; min-height: 56px; font-weight: 500; cursor: pointer; }
.faq details p { padding-bottom: var(--space-4); color: var(--fg-muted); max-width: 60ch; }

/* ------- Tablet and phone ------- */
@media (max-width: 960px) {
  /* Tablet and phone hero: the picture centres on the group, white text at the bottom. */
  .hero { height: var(--layout-hero-phone); align-items: flex-end; justify-content: center; color: var(--fg-on-accent); }
  .hero-media { object-position: 67% 50%; } /* centres three of the four people on a phone */
  .hero::after { background: linear-gradient(to top, color-mix(in srgb, var(--color-ink-900) 75%, transparent) 0%, color-mix(in srgb, var(--color-ink-900) 35%, transparent) 35%, transparent 60%); }
  .hero-text { justify-items: center; padding-bottom: var(--space-7); text-align: center; }
  .hero-text > * { max-width: none; }
  .hero h1 { font-size: clamp(2.25rem, 10vw, 3rem); }
  .hero--slideshow { display: block; height: auto; color: var(--fg-brand); }
  .hero--slideshow .hero-visual { position: relative; inset: auto; width: 100%; aspect-ratio: 3 / 2; }
  .hero--slideshow .hero-media { object-position: center; }
  .hero--slideshow::after { display: none; }
  .hero--slideshow .hero-text { padding: var(--space-5) var(--layout-gutter) var(--space-6); gap: var(--space-3); }
  .hero--slideshow .hero-text .btn { margin-top: 0; }
  .grid--small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product, .checkout { grid-template-columns: minmax(0, 1fr); }
  .buy { position: static; }
  .gallery-wrap { max-width: 520px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .site-header-inner { min-height: var(--layout-header-phone); }
  .menu-btn { display: grid; }
  .nav { display: none; }
  .logo { gap: var(--space-2); }
  .logo-mark { width: 24px; }
  .logo-word { width: 72px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-3); }
  .plate { flex-direction: column; gap: 0; font-size: var(--size-sm); }
  .grid--small { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-3); }
  .footer-main { flex-direction: column; align-items: flex-start; }
  .wa-link { width: 100%; padding-inline: var(--space-4); gap: var(--space-3); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Keep the gentle fade between hero photos, but drop the zoom. */
  .hero-picture .hero-media { transform: none; transition: none; }
}

/* ------- Refinements (2026-11-09): waist-down photo framing, fuller home page, clickable gallery photos, contact cards ------- */
/* 1. Product photos: frame from the waist down, on one even sand arch. */
.thumb { background: var(--bg-tile); }
.thumb--full img { object-position: center bottom; transform: scale(1.1); transform-origin: 50% 100%; mix-blend-mode: multiply; transition: opacity var(--motion-base), transform .5s ease; }
.bag-thumb--full img { object-position: center bottom; mix-blend-mode: multiply; }
@media (hover: hover) { a.prod:hover .thumb--full img { transform: scale(1.15); } }

/* 2. Section titles: smaller than the page title, with a link on the right. */
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-5); margin-bottom: var(--space-5); }
.sec-head .link { font-weight: 600; color: var(--fg-brand); }

/* 3. Home cards: four across, filling the page. */
.grid--small { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6) clamp(12px, 2vw, 28px); }
.grid--small .plate { flex-direction: row; padding-top: var(--space-3); font-size: var(--size-md); }

/* 4. Reassurance strip under the hero. */
.trust { border-bottom: var(--border-thin) solid var(--line-default); }
.trust ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: var(--layout-max); margin-inline: auto; padding: 0 var(--layout-gutter); }
.trust li { display: flex; align-items: center; justify-content: center; gap: var(--space-3); padding: var(--space-5) var(--space-3); font-weight: 600; color: var(--fg-brand); }
.trust li + li { border-left: var(--border-thin) solid var(--line-default); }
.trust .icon { flex: none; width: 26px; height: 26px; }

/* 5. Details band: navy, with one photo in the arch. */
.band { margin-top: var(--space-7); background: var(--bg-accent); color: var(--fg-on-accent); }
.band-inner { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 540px); justify-content: center; align-items: center; gap: var(--space-9); max-width: var(--layout-max); margin-inline: auto; padding: var(--space-8) var(--layout-gutter); }
.band h2 { color: inherit; }
.band-text { display: grid; gap: var(--space-5); justify-items: start; max-width: 540px; }
.band-text > p { font-size: var(--size-lg); }
.band-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-5); width: 100%; }
.band-list li { display: flex; align-items: center; gap: var(--space-3); padding-top: var(--space-3); border-top: var(--border-thin) solid color-mix(in srgb, var(--fg-on-accent) 30%, transparent); font-weight: 500; }
.band-list li::before { content: "✓"; font-weight: 700; color: var(--color-ochre-400); }
.btn--light { background: var(--fg-on-accent); color: var(--fg-brand); }
.btn--light:hover { background: var(--color-white); }

/* 6. Ordering steps as numbered cards. */
.steps li { padding: var(--space-5); border-radius: var(--radius-md); background: var(--bg-tile); }
.steps li::before { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--space-2); border-radius: 50%; background: var(--bg-accent); color: var(--fg-on-accent); font-size: var(--size-lg); }

/* 7. Product page: small photos to click instead of dots, larger price. */
.pthumbs { display: flex; justify-content: center; gap: var(--space-3); padding-top: var(--space-4); }
.pthumbs button { width: 64px; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; border: 0; border-radius: var(--radius-md); background: var(--bg-tile); opacity: .6; transition: opacity var(--motion-fast); }
.pthumbs button:hover { opacity: 1; }
.pthumbs button.is-active { opacity: 1; outline: 2px solid var(--line-strong); outline-offset: 2px; }
.pthumbs img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; mix-blend-mode: multiply; }
.price { font: 800 var(--size-xl)/1 var(--font-display); color: var(--fg-brand); }
.hint { padding: var(--space-4); border-radius: var(--radius-md); background: var(--bg-tile); color: var(--fg-default); }

/* 8. Contact page: two cards side by side, calmer titles. */
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); max-width: var(--layout-max); margin-inline: auto; padding: 0 var(--layout-gutter); }
.contact-card { display: grid; align-content: start; justify-items: start; gap: var(--space-4); padding: var(--space-6); border-radius: var(--radius-md); background: var(--bg-tile); }
.contact-card p { color: var(--fg-muted); }
.faq { max-width: 760px; }
.faq summary { justify-content: space-between; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 var(--size-xl)/1 var(--font-body); color: var(--fg-brand); }
.faq details[open] summary::after { content: "−"; }

@media (max-width: 960px) {
  .grid--small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band-inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); padding-block: var(--space-7); }
  .band-photo { width: 100%; max-width: 300px; margin-inline: auto; }
  .contact-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .trust ul { grid-template-columns: minmax(0, 1fr); padding-block: var(--space-3); }
  .trust li { justify-content: flex-start; padding-block: var(--space-2); }
  .trust li + li { border-left: 0; }
  .band-list { grid-template-columns: minmax(0, 1fr); }
  .grid--small .plate { flex-direction: column; font-size: var(--size-sm); }
}

/* ------- Website update (2026-11-15): ghost-mannequin photos, promo price, sizes with letters, zoom, size guide ------- */
/* 1. Pants-only studio photos fill the arch; their cream blends into the sand tile. */
.thumb--studio img { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; mix-blend-mode: multiply; transition: opacity var(--motion-base), transform .5s ease; }
@media (hover: hover) { a.prod:hover .thumb--studio img { transform: scale(1.04); } }
.gallery .slide img { cursor: zoom-in; }
.bag-thumb--studio { padding: 0; }
.bag-thumb--studio img { object-fit: cover; mix-blend-mode: multiply; }

/* 2. Promo price: new price, old price crossed out, red badge. */
.price-tag { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2); font-variant-numeric: tabular-nums; }
.price-now { font-weight: 700; color: var(--fg-brand); white-space: nowrap; }
.price-old { color: var(--fg-muted); font-weight: 400; white-space: nowrap; text-decoration-thickness: 1.5px; }
.sale-badge { display: inline-flex; align-items: center; padding: 2px var(--space-2); border-radius: var(--radius-full); background: var(--bg-sale); color: var(--fg-on-sale); font: 700 var(--size-xs)/1.4 var(--font-body); white-space: nowrap; align-self: center; }
.thumb-wrap { position: relative; display: block; }
.sale-badge--card { position: absolute; top: 14%; left: 8%; z-index: 1; }
.plate { align-items: start; }
.plate-name { display: grid; gap: 2px; }
.plate-color { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--size-sm); font-weight: 400; color: var(--fg-muted); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg-default) 20%, transparent); }
.plate .price-tag { justify-content: flex-end; text-align: right; }
.price-tag--big { gap: var(--space-2) var(--space-3); }
.price-tag--big .price-now { font: 800 clamp(2rem, 3vw, 2.5rem)/1 var(--font-display); font-stretch: 78%; }
.price-tag--big .price-old { font-size: var(--size-lg); }
.price-tag--big .sale-badge { font-size: var(--size-sm); padding: var(--space-1) var(--space-3); }
.saving { color: var(--fg-sale); font-weight: 600; }
.hero-price .price-tag { padding: var(--space-2) var(--space-4); border-radius: var(--radius-full); background: color-mix(in srgb, var(--bg-page) 88%, transparent); font-size: var(--size-lg); }
.hero-text p.hero-price { font-style: normal; }
.total-saving { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--space-4); color: var(--fg-sale); font-weight: 600; }
.bag-price { justify-content: flex-end; }

/* 3. Sizes: the number large, the letter small under it. */
/* "Taille" on the left and the guide link on the right, on one line above the buttons. */
.field--sizes legend { float: left; display: flex; align-items: center; min-height: var(--layout-touch); margin-bottom: var(--space-1); }
.field--sizes legend strong { font-weight: 600; }
.field-guide { float: right; }
.field--sizes .sizes { clear: both; }
.link-btn { min-height: var(--layout-touch); padding: 0; background: none; border: 0; color: var(--fg-brand); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.link-btn:hover { color: var(--bg-accent-hover); }
.sizes { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.size { display: grid; place-content: center; gap: 0; min-height: 60px; border-radius: var(--radius-md); line-height: 1.15; }
.size-num { font-weight: 700; font-size: var(--size-md); font-variant-numeric: tabular-nums; }
.size-letter { font-size: var(--size-xs); color: var(--fg-muted); }
.size[aria-pressed="true"] .size-letter { color: inherit; opacity: .85; }
.pd-more { max-width: none; }
.pd-more .details { padding: 0 0 var(--space-4); border: 0; }

/* 4. Dialogs: the size guide and the full-screen photo. */
dialog { color: var(--fg-default); }
dialog::backdrop { background: color-mix(in srgb, var(--color-ink-900) 60%, transparent); }
.sheet { width: min(440px, calc(100% - 2 * var(--layout-gutter))); padding: var(--space-6); border: 0; border-radius: var(--radius-md); background: var(--bg-page); }
.sheet[open] { display: grid; gap: var(--space-4); justify-items: start; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.sheet-head h2 { font-size: var(--size-xl); }
.sheet-close { display: grid; place-items: center; width: var(--layout-touch); height: var(--layout-touch); padding: 0; border: 0; border-radius: 50%; background: var(--bg-tile); color: var(--fg-brand); }
.sheet-close:hover { background: var(--line-strong); color: var(--fg-on-accent); }
.size-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.size-table th, .size-table td { padding: var(--space-2) var(--space-3); border-bottom: var(--border-thin) solid var(--line-default); text-align: left; }
.size-table th { font-weight: 600; color: var(--fg-brand); }
.faq .size-table { max-width: 360px; margin-bottom: var(--space-4); }
.zoom { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg-page); overflow: auto; }
.zoom[open] { display: grid; place-items: center; }
.zoom img { max-width: 100%; max-height: 100dvh; object-fit: contain; cursor: zoom-in; }
.zoom.is-zoomed { place-items: start center; }
.zoom.is-zoomed img { max-width: none; max-height: none; width: min(1792px, 200vw); cursor: zoom-out; }
.zoom-close { position: fixed; top: var(--space-4); right: var(--space-4); z-index: 2; }
.zoom .gallery-btn { position: fixed; top: 50%; z-index: 2; display: grid; }
.zoom-prev { left: var(--space-4); }
.zoom-next { right: var(--space-4); }
.zoom-count { position: fixed; bottom: var(--space-4); left: 50%; transform: translateX(-50%); padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); background: var(--bg-tile); font-size: var(--size-xs); font-variant-numeric: tabular-nums; }

/* 5. Phones: the bar at the bottom with the price and the add button. */
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--layout-gutter) calc(var(--space-3) + env(safe-area-inset-bottom)); background: var(--bg-page); border-top: var(--border-thin) solid var(--line-default); box-shadow: 0 -6px 18px color-mix(in srgb, var(--color-ink-900) 8%, transparent); }
.buy-bar .btn { min-height: 48px; padding-inline: var(--space-5); }
.buy-bar-price .price-now { font-size: var(--size-lg); }
body.has-buy-bar { padding-bottom: 80px; }

/* 6. Home: hero pause button and the size band. */
.hero-pause { position: absolute; right: var(--layout-gutter); bottom: var(--space-5); z-index: 2; display: grid; place-items: center; width: var(--layout-touch); height: var(--layout-touch); padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--bg-page) 85%, transparent); color: var(--fg-brand); }
.hero-pause:hover { background: var(--bg-page); }
.hero-pause .icon { width: 18px; height: 18px; }
.size-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--space-6); align-items: center; }
.size-band-text { display: grid; gap: var(--space-3); justify-items: start; max-width: 46ch; }
.size-band-text .link { font-weight: 600; color: var(--fg-brand); }
.size-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: var(--space-3); }
.size-chips li { display: grid; place-content: center; text-align: center; min-height: 72px; border-radius: var(--radius-md); background: var(--bg-tile); line-height: 1.2; }
.size-chips .size-num { font: 800 var(--size-xl)/1 var(--font-display); font-stretch: 78%; color: var(--fg-brand); }

@media (max-width: 960px) {
  .hero-pause { top: calc(100vw * 2 / 3 - var(--layout-touch) - var(--space-3)); bottom: auto; right: var(--space-3); }
  .size-band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .plate .price-tag { justify-content: flex-start; text-align: left; }
  .sale-badge--card { top: 16%; left: 10%; }
  .zoom .gallery-btn { top: auto; bottom: var(--space-4); }
}
@media (prefers-reduced-motion: reduce) {
  .thumb--studio img { transition: none; }
}

/* Checkout form like a shop checkout (2026-11-15): form left, summary right */
.checkout--form { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.checkout--form .order { order: 1; gap: var(--space-6); }
.checkout--form .summary { order: 2; position: sticky; top: calc(var(--layout-touch) + var(--space-6)); padding: var(--space-5); background: var(--bg-tile); border-radius: var(--radius-md); }
.order-sec { display: grid; gap: var(--space-3); }
.order-sec h2 { margin-bottom: 0; }
.input-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3); }
.input input[readonly] { background: var(--bg-tile); color: var(--fg-muted); }
.choice { padding: var(--space-3) var(--space-4); border: var(--border-strong) solid var(--line-default); border-radius: var(--radius-md); }
.choice.is-selected { border-color: var(--line-strong); background: var(--bg-tile); }
.choice-line { display: flex; justify-content: space-between; gap: var(--space-3); }
.choice-sub { font-size: var(--size-sm, 0.9rem); color: var(--fg-muted); }
.sum { display: grid; gap: var(--space-2); padding-top: var(--space-4); }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.sum-row dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.sum-row--saving { color: var(--fg-sale); }
.sum-row--total { padding-top: var(--space-3); border-top: var(--border-thin) solid var(--line-default); font-weight: 700; font-size: var(--size-lg); }
.sum-row--total dd { font-size: var(--size-xl); font-weight: 700; }
.bag-name { font-family: var(--font-display, inherit); font-size: var(--size-lg); font-weight: 700; line-height: 1.2; color: var(--fg-brand); }
.bag-meta { margin-top: var(--space-1); font-size: var(--size-md); font-weight: 600; color: var(--fg-default, inherit); }
.added .btn { margin-top: var(--space-1); }
#pd-buy-now { margin-top: var(--space-2); }
.checkout--form .order { gap: var(--space-4); }
.order-sec { gap: var(--space-2); }
.order .input label { margin-bottom: 2px; font-size: var(--size-sm, 0.9rem); }
.order .input input, .order .input select { min-height: 44px; padding-block: var(--space-2); }
.note-more summary { cursor: pointer; padding-block: var(--space-2); color: var(--fg-brand); font-weight: 600; }
.note-more .input { padding-top: var(--space-1); }
@media (max-width: 960px) {
  .checkout--form .summary { order: 3; position: static; }
  .checkout--form { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
}
@media (max-width: 400px) { .input-row { gap: var(--space-2); } }

/* Model photos and new landing pictures (2026-11-15) */
.thumb--detail img { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Sizes set to 0 in the admin dashboard (2026-11-18) */
.size.is-out { border-style: dashed; color: var(--fg-muted); cursor: not-allowed; }
.size.is-out:hover { border-color: var(--line-default); }
.size.is-out .size-num { text-decoration: line-through; }
.size.is-out .size-letter { color: var(--fg-danger); }

/* Product video (2026-11-20): last slide of the photos. A still picture with a
   play button; the YouTube player loads only after a tap. */
.video-slide { position: relative; }
.gallery .video-slide img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; cursor: pointer; }
.video-play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--space-3); padding: 0; border: 0; background: transparent; color: var(--fg-on-accent); cursor: pointer; }
.video-play__icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--bg-accent); box-shadow: 0 6px 24px color-mix(in srgb, var(--fg-default) 35%, transparent); transition: background var(--motion-fast), transform var(--motion-fast); }
.video-play__icon svg { width: 30px; height: 30px; margin-left: 3px; fill: currentColor; }
.video-play:hover .video-play__icon { background: var(--bg-accent-hover); transform: scale(1.06); }
.video-play__label { padding: var(--space-2) var(--space-3); border-radius: 999px; background: var(--bg-accent); font-weight: 600; font-size: var(--size-sm); }
.video-slide iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--fg-default); }
.pthumbs .video-thumb { position: relative; }
.pthumbs .video-thumb img { object-position: center; mix-blend-mode: normal; }
.pthumbs .video-thumb::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--color-white); font-size: 18px; text-shadow: 0 1px 4px color-mix(in srgb, var(--fg-default) 60%, transparent); }

/* ---------- Privacy page and links to it (2026-11-21) ---------- */
.legal { width: 100%; max-width: var(--layout-max); margin-inline: auto; padding: 0 var(--layout-gutter) var(--space-8); }
.legal > * { max-width: 760px; }
.legal > * + * { margin-top: var(--space-6); }
.legal__lead { font-size: var(--size-md); }
.legal__toc { padding: var(--space-5) var(--space-6); border-radius: var(--radius-md); background: var(--bg-tile); }
.legal__toc ol { display: grid; gap: var(--space-2); padding-left: var(--space-5); list-style: decimal; }
.legal section { scroll-margin-top: calc(var(--layout-header) + var(--space-4)); }
.legal h2 { font-size: var(--size-lg); margin-bottom: var(--space-3); }
.legal h3 { font-size: var(--size-md); margin: var(--space-4) 0 var(--space-2); }
.legal p, .legal li { color: var(--fg-muted); max-width: 68ch; }
.legal strong { color: var(--fg-default); }
.legal ul { display: grid; gap: var(--space-2); padding-left: var(--space-5); list-style: disc; }
.legal ul + p, .legal p + p, .legal p + ul { margin-top: var(--space-3); }
.legal a, .order-privacy a, .faq details p a { color: var(--fg-brand); text-decoration: underline; text-underline-offset: 3px; }
.legal__contact { display: grid; justify-items: start; gap: var(--space-3); margin-top: var(--space-4); }
.order-privacy { font-size: var(--size-xs); color: var(--fg-muted); text-align: center; }

/* "Après votre commande" box on the cart page and the exchange link on the product page. */
.next-steps { padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); background: var(--bg-tile); }
.next-list { display: grid; gap: var(--space-2); padding-left: var(--space-5); list-style: decimal; color: var(--fg-default); font-size: var(--size-sm); }
.next-list li::marker { color: var(--fg-brand); font-weight: 700; }
.next-note { font-size: var(--size-sm); color: var(--fg-muted); }
.next-note a { color: var(--fg-brand); text-decoration: underline; text-underline-offset: 3px; }
.faq details[id] { scroll-margin-top: 96px; }
