/* ==========================================================================
   VEYLO — "Where mystery meets style"
   One deliberate dark theme. Palette pulled from the brand photography:
   warm near-black stone, washed espresso cotton, sand, and the bone-white
   of the embroidered logo.

   Rule for imagery: every photo is the ORIGINAL file, shown at its own
   aspect ratio. No object-fit: cover, no masks, no zoom — nothing is cut.
   ========================================================================== */

@property --mx { syntax: "<length-percentage>"; inherits: false; initial-value: 50%; }
@property --my { syntax: "<length-percentage>"; inherits: false; initial-value: 50%; }

:root {
  color-scheme: dark;

  --ink:      #080706;   /* the room */
  --ink-1:    #0f0d0b;   /* drawer / raised ground */
  --ink-2:    #171411;   /* toast, placeholders */
  --ink-3:    #221e1a;   /* embroidery at rest */
  --line:     #2a2521;   /* hairlines */
  --line-2:   #3f3831;   /* control borders */
  --sand:     #b8a996;   /* sand hoodie — the one accent */
  --bone:     #ebe6de;   /* logo white, primary text */
  --ash:      #978e83;   /* secondary text */

  --gutter: clamp(16px, 5vw, 72px);
  --promo-h: 40px;                          /* the delivery offer strip at the top of the header */
  --bar-h: calc(72px + var(--promo-h));

  --f-display: "Alexandria", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Alexandria", "Segoe UI", Tahoma, system-ui, sans-serif;

  --ease: cubic-bezier(.2, .7, .1, 1);
}

html { scroll-behavior: smooth; background: var(--ink); }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
[hidden] { display: none !important; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Film grain over the page — the photos are grainy, the page should be too. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.site { min-height: 100%; overflow-x: clip; }

::selection { background: var(--sand); color: var(--ink); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[id] { scroll-margin-top: var(--bar-h); }

:focus-visible { outline: 1px solid var(--sand); outline-offset: 4px; }

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

.wrap { max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }

/* Latin uppercase, tracked wide — the voice of the brand's taglines.
   Never applied to Arabic: letter-spacing breaks Arabic joining. */
.latin {
  font-family: var(--f-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .42em;
}

.eyebrow { margin: 0; font-size: 11px; color: var(--ash); }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 300; margin: 0; line-height: 1.25; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.4vw, 42px); }

/* The redrawn wordmark */
.wm { display: block; width: 100%; height: auto; aspect-ratio: 1069 / 100; overflow: visible; }

/* --------------------------------------------------------------------------
   Banner — an original image at its own aspect ratio, never cropped
   -------------------------------------------------------------------------- */
.banner {
  position: relative;
  width: 100%;
  max-width: 1600px;          /* the originals are 1600px wide; don't upscale past that */
  margin: 0 auto;
  isolation: isolate;
  background: var(--ink);
}
.banner > img,
.banner .layer img,
.banner .slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;        /* the box already has the image's ratio; contain guarantees no cut */
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 50px;
  padding: 12px 40px;
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 400;
  border: 1px solid transparent;
  border-radius: 0;
  background: none;
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn--ghost { border-color: rgba(235, 230, 222, .5); color: var(--bone); }
.btn--ghost:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.btn--solid { background: var(--bone); color: var(--ink); }
.btn--solid:hover { background: var(--sand); }
/* Buy now: the one sand button on the page, so it reads apart from Add to bag */
.btn--buy { background: var(--sand); border-color: var(--sand); color: var(--ink); font-weight: 500; }
.btn--buy:hover { background: var(--bone); border-color: var(--bone); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.bar {
  position: sticky;
  top: 0;                                   /* sticks to the very top, status-bar strip included */
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: var(--promo-h) 1fr;   /* the offer strip, then the links, the wordmark and the tools */
  align-items: center;
  gap: 16px;
  row-gap: 10px;
  min-height: var(--bar-h);
  padding-block: env(safe-area-inset-top, 0px) 10px;
  padding-inline: var(--gutter);
  background: var(--ink);                   /* solid: nothing on the page shows through while scrolling */
  border-bottom: 1px solid transparent;
  transition: border-color .5s var(--ease);
}
.bar.is-solid { border-bottom-color: var(--line); }
/* The delivery offer: a strip across the top of the header, on every page, its line running like a tape */
.bar__promo {
  grid-column: 1 / -1;
  position: relative;
  direction: ltr;                           /* the tape starts at the left edge in both languages (an RTL page would push it off-screen) */
  height: var(--promo-h);
  margin: 0 calc(-1 * var(--gutter));
  overflow: hidden;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
  color: var(--sand);
}
.promo__track {
  display: flex;
  width: max-content;
  height: 100%;
  direction: ltr;                           /* the copies sit left to right in both languages; each reads its own way */
  animation: promo-run var(--promo-dur, 40s) linear infinite;
}
[dir="rtl"] .promo__track { animation-name: promo-run-rtl; }
.bar__promo:hover .promo__track { animation-play-state: paused; }
.promo__item {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  padding-inline: 36px;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}
.promo__item svg { flex: none; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
[dir="ltr"] .promo__item svg { transform: scaleX(-1); }   /* the truck faces the way the tape runs */
/* English runs right to left, Arabic left to right: each line comes in from where it begins */
@keyframes promo-run     { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes promo-run-rtl { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.bar__nav { display: flex; gap: clamp(18px, 2.4vw, 34px); font-size: 14px; }
.bar__nav a { color: var(--ash); transition: color .3s; }
.bar__nav a:hover { color: var(--bone); }
.bar__mark { justify-self: center; width: clamp(110px, 10vw, 136px); color: var(--bone); padding-block: 8px; }
.bar__tools { justify-self: end; display: flex; align-items: center; gap: 8px; }

.lang {
  min-height: 36px;
  padding: 4px 12px;
  border: 1px solid var(--line-2);
  background: none;
  color: var(--ash);
  font-family: var(--f-display);
  font-size: 12px;
  cursor: pointer;
  transition: color .3s, border-color .3s;
}
.lang:hover { color: var(--bone); border-color: var(--ash); }

.bag-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  background: none; border: 0;
  cursor: pointer;
  color: var(--bone);
}
.bag-btn svg { width: 24px; height: 24px; }
.bag-btn__count {
  position: absolute;
  top: 4px; inset-inline-end: 2px;
  min-width: 18px; height: 18px;
  padding-inline: 5px;
  border-radius: 9px;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 10px;
  font-weight: 500;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  transition: transform .4s var(--ease);
}
.bag-btn__count[data-empty="true"] { background: var(--line-2); color: var(--ash); }
.bag-btn__count.is-bump { transform: scale(1.35); }

/* --------------------------------------------------------------------------
   Hero — the startup banner (the whole collection on one rail), shown whole,
   with a light the pointer carries and the welcome over its lower part
   -------------------------------------------------------------------------- */
.banner--hero {
  --lx: 55%; --ly: 38%; --lr: 440px;
  width: min(100%, 1280px, calc((100svh - var(--bar-h) - 56px) * 1280 / 853));
  overflow: hidden;
}
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(8, 7, 6, .94) 0%, rgba(8, 7, 6, .7) 22%, rgba(8, 7, 6, 0) 54%);
}
.hero__copy {
  position: absolute;
  z-index: 3;
  inset-inline-start: 6%;
  bottom: 7%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: 52%;
}
.hero__wm { width: clamp(130px, 15vw, 220px); margin-bottom: 10px; color: var(--bone); }
.hero__title { font-size: clamp(26px, 3.2vw, 46px); color: var(--bone); }
.hero__sub { margin: 0; font-size: 11px; color: rgba(235, 230, 222, .72); }
.hero__sub:lang(en) { display: none; }        /* in English the title already says it */
.hero__btn { margin-top: 16px; }

.glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* the room stays dim outside the light; never so dark the banner's own words are lost */
  background: radial-gradient(circle var(--lr) at var(--lx) var(--ly),
    rgba(8, 7, 6, 0) 0%, rgba(8, 7, 6, 0) 38%, rgba(8, 7, 6, .3) 100%);
}
.glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle calc(var(--lr) * .62) at var(--lx) var(--ly),
    rgba(255, 238, 212, .34), rgba(255, 238, 212, 0) 70%);
  mix-blend-mode: soft-light;
}

.hero__hint {
  margin: 0;
  padding-block: 8px 0;
  text-align: center;
  font-size: 10px;
  color: var(--ash);
}
@media (hover: none) { .hero__hint { display: none; } }

/* --------------------------------------------------------------------------
   Manifesto — tone-on-tone, like the embroidery on the hoodie
   -------------------------------------------------------------------------- */
.manifesto {
  margin-top: clamp(40px, 6vw, 72px);
  padding-block: clamp(96px, 13vw, 180px);
  text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, #12100d 0%, var(--ink) 75%);
  border-top: 1px solid var(--line);
}
.manifesto__inner { display: flex; flex-direction: column; align-items: center; gap: 26px; }

.emb {
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5em;
  font-size: clamp(20px, 5vw, 62px);
  line-height: 1.2;
  letter-spacing: .34em;
  padding-inline-start: .34em;   /* balance the trailing tracking */
  color: var(--ash);
  cursor: default;
  user-select: none;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .emb {
    color: transparent;
    background: radial-gradient(circle clamp(180px, 22vw, 320px) at var(--mx) var(--my),
      #f1ebe1 0%, #978e83 30%, #3a342e 64%, var(--ink-3) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    transition: --mx .7s var(--ease), --my .7s var(--ease);
  }
}
.emb.is-tracking { transition: none; }
.emb__rule {
  display: block;
  width: 62%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
  transform: rotate(-1.2deg);    /* the stitched line sits slightly off-level on the garment */
}
.manifesto__origin { margin: 16px 0 0; font-size: 11px; color: var(--ash); }

/* --------------------------------------------------------------------------
   Collection — per category: the banner is the entry, then a grid of pieces
   -------------------------------------------------------------------------- */
.collection { padding-block-start: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); }
.sec-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: clamp(36px, 5vw, 64px); }

.pieces {
  display: flex;
  flex-direction: column;
  gap: clamp(88px, 11vw, 160px);
  padding-block-end: clamp(100px, 12vw, 170px);
}

/* Category entry: the category's portrait photo, shown whole, beside its
   title, line and link. The second category mirrors the first. */
.entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 88px);
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.entry__photo {
  position: relative;
  margin: 0;
  width: min(100%, 540px, calc((100svh - var(--bar-h) - 48px) * 2 / 3));
  justify-self: center;
  background: var(--ink-2);
  overflow: hidden;
}
.entry__photo img { width: 100%; height: 100%; object-fit: contain; }
/* the room's light falls on the photo from above; its foot sinks into the dark */
.entry__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(255, 238, 212, .1), rgba(255, 238, 212, 0) 70%),
    linear-gradient(to top, rgba(8, 7, 6, .45), rgba(8, 7, 6, 0) 28%);
}
.entry--flip .entry__photo { order: 2; }
.entry__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 460px; }
.entry__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 300;
  line-height: 1.1;
  font-size: clamp(40px, 6vw, 88px);
  color: var(--bone);
}
.entry__lede {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 300;
  line-height: 1.5;
  font-size: clamp(15px, 1.5vw, 20px);
  color: rgba(235, 230, 222, .82);
}
.entry__count { margin: 6px 0 0; font-size: 13px; color: var(--ash); }
.entry__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 240px;
  margin-top: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(235, 230, 222, .7);
  font-size: 14px;
  color: var(--bone);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.entry__cta svg { width: 34px; height: auto; flex: none; transition: transform .4s var(--ease); }
.entry__cta:hover { color: var(--sand); border-color: var(--sand); }
.entry__cta:hover svg { transform: translateX(4px); }

.cat__body { padding-block-start: clamp(32px, 4vw, 52px); }
.cat__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  padding-bottom: 18px;
  margin-bottom: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
}
.cat__head > div { display: flex; flex-direction: column; gap: 6px; }
.cat__title { font-size: clamp(24px, 2.6vw, 34px); }
.cat__count { margin: 0; font-size: 13px; color: var(--ash); }

/* One block per style: its number, name and line on one side (it stays in
   view while its colours scroll past), its colours side by side on the other.
   Every product photo is 853 × 1280 and shown whole. */
.styles { display: flex; flex-direction: column; gap: clamp(56px, 7vw, 104px); }
.style {
  display: grid;
  grid-template-columns: minmax(170px, 260px) minmax(0, 780px);
  justify-content: space-between;
  align-items: start;
  gap: 24px clamp(24px, 4vw, 72px);
}
.style__head { position: sticky; top: calc(var(--bar-h) + 28px); display: flex; flex-direction: column; gap: 6px; }
.style__no { margin: 0; font-size: 11px; color: var(--sand); }
.style__name { font-size: clamp(24px, 2.4vw, 32px); }
/* the tagline: the English line as printed on the piece, then (Arabic site) its translation in «» */
.style__tag, .qv__tagline { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 0; }
.style__tag .latin, .qv__tagline .latin { display: block; font-size: 10px; line-height: 1.9; letter-spacing: .3em; color: var(--sand); }
.tagline__ar { display: block; font-size: 14px; line-height: 1.7; color: rgba(235, 230, 222, .82); }   /* no letter-spacing: it breaks Arabic joining */
.style__price {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--f-display);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.style__cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 28px);
}
.card { min-width: 0; }

.card__btn {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: start;
  cursor: pointer;
}

/* Model photo frame. The photo is fitted whole (contain), never cropped.
   Until a photo exists, a placeholder in the garment's colour stands in. */
.photo {
  position: relative;
  display: block;
  aspect-ratio: 853 / 1280;
  overflow: hidden;
  background-color: var(--ink-2);
  transition: box-shadow .5s var(--ease);
}
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 28%, rgba(255, 238, 212, .14), rgba(255, 238, 212, 0) 62%);
  opacity: 0;
  transition: opacity .7s var(--ease);
}
.photo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.photo__ph {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 38%, color-mix(in srgb, var(--c) 50%, var(--ink-2)), var(--ink-2) 78%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(235, 230, 222, .3);
}
.photo__ph svg { width: 44%; height: auto; aspect-ratio: 100 / 125; }
.photo__note { font-size: 11px; color: var(--ash); }
.photo__ph { display: none; }
.photo.is-missing .photo__ph { display: flex; }

.card__btn:hover .photo,
.card__btn:focus-visible .photo { box-shadow: inset 0 0 0 1px var(--line-2); }
.card__btn:hover .photo::after,
.card__btn:focus-visible .photo::after { opacity: 1; }

/* Low stock / sold out, on the photo's top corner */
.card__badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  inset-inline-start: 10px;
  padding: 3px 10px;
  border: 1px solid var(--line-2);
  background: rgba(8, 7, 6, .78);
  font-size: 11px;
  line-height: 1.6;
  color: var(--bone);
}
.card__badge.is-low { border-color: #4a3e2c; color: var(--sand); }
.card__badge.is-out { color: var(--ash); }
/* one short bar per photo; the lit one is the photo showing */
.card__shots {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  inset-inline: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
  pointer-events: none;
}
.card__shots i { width: 14px; height: 2px; background: rgba(235, 230, 222, .32); transition: background-color .4s var(--ease); }
.card__shots i:first-child { background: rgba(235, 230, 222, .9); }
@media (hover: hover) {
  .card__btn:hover .card__shots i:first-child { background: rgba(235, 230, 222, .32); }
  .card__btn:hover .card__shots i:nth-child(2) { background: rgba(235, 230, 222, .9); }
}
.card.is-out .photo img { filter: grayscale(.7) brightness(.55); }

.card__meta { display: flex; flex-direction: column; gap: 2px; }
/* the piece's colour is its title on the card: the style's name sits above, in the style block */
.card__name { display: flex; align-items: center; gap: 8px; font-family: var(--f-display); font-size: 16px; font-weight: 400; }
.qv__title em { font-style: normal; font-weight: 300; color: var(--sand); }
.card__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(235, 230, 222, .28); flex: none; }
.card__price { font-family: var(--f-display); font-size: 14px; font-variant-numeric: tabular-nums; }

/* The sizes, "S · M · L"; a sold-out one is struck through */
.stock {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin-top: 8px;
  font-family: var(--f-display);
  font-size: 12px;
  color: var(--ash);
  font-variant-numeric: tabular-nums;
}
.stock > i { font-style: normal; color: var(--line-2); }
.stock__s.is-out { opacity: .45; text-decoration: line-through; }

/* Options (product view) */
.opt { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.opt__label { padding: 0; font-size: 13px; color: var(--ash); }
.opt__label b { font-weight: 400; color: var(--bone); }

.swatches, .sizes { display: flex; flex-wrap: wrap; gap: 10px; }

.sw {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(235, 230, 222, .2);
  cursor: pointer;
  outline: 1px solid transparent;
  outline-offset: 4px;
  transition: outline-color .3s;
}
.opt input:checked + .sw { outline-color: var(--bone); }
.opt input:focus-visible + .sw,
.opt input:focus-visible + .sz { outline: 1px solid var(--sand); outline-offset: 4px; }

.sz {
  display: grid;
  place-items: center;
  min-width: 50px;
  height: 44px;
  padding-inline: 10px;
  border: 1px solid var(--line-2);
  font-family: var(--f-display);
  font-size: 13px;
  color: var(--ash);
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.sz:hover { border-color: var(--ash); color: var(--bone); }
.opt input:checked + .sz { background: var(--bone); border-color: var(--bone); color: var(--ink); }

/* a sold-out size is struck through and can't be picked */
.opt input:disabled + .sz { opacity: .38; cursor: not-allowed; text-decoration: line-through; }
.opt input:disabled + .sz:hover { border-color: var(--line-2); color: var(--ash); }

/* Add to bag (outline, bone) beside Buy now (solid, sand) */
.ctas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.ctas .btn { padding-inline: 14px; }

.msg { margin: 0; min-height: 1.6em; font-size: 13px; color: var(--sand); }

/* --------------------------------------------------------------------------
   Product view — the gallery beside the details
   -------------------------------------------------------------------------- */
.qv {
  max-width: none;
  max-height: calc(100% - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-2);
  background: var(--ink-1);
  color: var(--bone);
}
.qv::backdrop {
  background: rgba(4, 3, 3, .74);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.qv[open] { animation: qv-in .45s var(--ease); }
@keyframes qv-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.qv { width: min(1140px, calc(100% - 32px)); }
.qv__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
.qv__media { padding: clamp(16px, 2.4vw, 28px); background: var(--ink); border-inline-end: 1px solid var(--line); }
.qv__close {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  z-index: 2;
  background: rgba(8, 7, 6, .7);
  border-radius: 50%;
}
.qv__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  padding: clamp(24px, 3vw, 40px) clamp(22px, 3vw, 40px) clamp(28px, 3.5vw, 44px);
}
.qv__info, .qv__buy { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.qv__buy { gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.qv__more { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.qv__title { font-size: clamp(24px, 2.6vw, 32px); }
.qv__price { margin: 0; font-family: var(--f-display); font-size: 20px; font-weight: 400; font-variant-numeric: tabular-nums; }
.qv__tagline { margin-top: 4px; }
.qv__h { margin-top: 8px; font-family: var(--f-body); font-size: 13px; font-weight: 400; color: var(--ash); }
.qv__details { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.qv__details li::before { content: "—"; margin-inline-end: 10px; color: var(--line-2); }
/* The size chart: hairline rows, the sizes and centimetres centred under each other */
.qv__chart { width: 100%; max-width: 420px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.qv__chart th, .qv__chart td { padding: 9px 6px; border-bottom: 1px solid var(--line); font-weight: 400; text-align: center; }
.qv__chart th:first-child { padding-inline-start: 0; text-align: start; }
.qv__chart thead th { font-size: 12px; color: var(--ash); }
.qv__chart thead th:not(:first-child) { font-family: var(--f-display); letter-spacing: .12em; color: var(--bone); }
.qv__chart tbody th { color: var(--ash); }
.qv__chart tbody tr:last-child > * { border-bottom: 0; }
.qv__note { margin: -2px 0 0; font-size: 13px; color: var(--ash); max-width: 44ch; }

/* Gallery: one photo at a time — swipe, arrows or thumbnails. It runs left
   to right in both languages (dir="ltr" on .gal). */
.gal { display: flex; flex-direction: column; gap: 12px; }
.gal__stage { position: relative; width: min(100%, calc(min(76vh, 760px) * 853 / 1280)); margin-inline: auto; }
.gal__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.gal__track::-webkit-scrollbar { display: none; }
.gal__track:focus-visible { outline-offset: 2px; }
.gal__slide { position: relative; flex: 0 0 100%; margin: 0; aspect-ratio: 853 / 1280; scroll-snap-align: start; background-color: var(--ink-2); }
.gal__slide img { width: 100%; height: 100%; object-fit: contain; }
.gal__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(8, 7, 6, .62);
  color: var(--bone);
  cursor: pointer;
  transition: opacity .3s var(--ease), background-color .3s;
}
.gal__nav:hover { background: rgba(8, 7, 6, .85); }
.gal__nav svg { width: 18px; height: 18px; }
.gal__nav--prev { left: 10px; }
.gal__nav--prev svg { transform: scaleX(-1); }
.gal__nav--next { right: 10px; }
.gal__nav:disabled { opacity: 0; pointer-events: none; }
.gal__count {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 2px 8px 2px 10px;
  background: rgba(8, 7, 6, .6);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--bone);
}
.gal__count b { font-weight: 400; }
.gal__thumbs { display: flex; justify-content: center; gap: 8px; }
.gal__thumb {
  width: 54px;
  aspect-ratio: 853 / 1280;
  padding: 0;
  border: 1px solid transparent;
  background: var(--ink-2);
  cursor: pointer;
  opacity: .5;
  transition: opacity .3s, border-color .3s;
}
.gal__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gal__thumb:hover { opacity: .85; }
.gal__thumb[aria-current="true"] { opacity: 1; border-color: var(--bone); }
@media (hover: none) { .gal__nav { display: none; } }

/* --------------------------------------------------------------------------
   Payment banner (mada, Apple Pay) — its own band right under the
   startup banner, set apart by a line above and below, so the ways to pay
   are seen first. Shown whole, exactly as wide as the startup banner.
   -------------------------------------------------------------------------- */
.paybar {
  margin-top: clamp(28px, 4vw, 48px);
  padding-block: clamp(24px, 3.5vw, 44px);
  border-block: 1px solid var(--line);
}
.paybar .banner { width: min(100%, 1280px, calc((100svh - var(--bar-h) - 56px) * 1280 / 853)); }
.paybar + .manifesto { margin-top: 0; border-top: 0; }     /* the band's own line already closes it */

/* --------------------------------------------------------------------------
   Support — help comes through our social accounts: Instagram and TikTok,
   with the handles and icons from the brand's card
   -------------------------------------------------------------------------- */
.support {
  padding-block: clamp(64px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.support__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.support__title { font-size: clamp(26px, 3vw, 38px); }
.support__lede { margin: 0; max-width: 46ch; color: var(--ash); }
.support__links {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 36px;
  font-family: var(--f-display);
  font-size: 15px;
  color: var(--bone);
}
.support__links li, .support__links a { display: inline-flex; align-items: center; gap: 10px; }
.support__links a { color: inherit; transition: color .3s var(--ease); }
.support__links a:hover, .support__links a:focus-visible { color: var(--sand); text-decoration: underline; text-underline-offset: .3em; }
.support__links svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; }


/* --------------------------------------------------------------------------
   Footer — the brand's stage visual; a slow band of light passes over it
   -------------------------------------------------------------------------- */
.foot { margin-top: clamp(56px, 8vw, 110px); border-top: 1px solid var(--line); }
.rays {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(112deg,
    rgba(255, 240, 214, 0) 40%, rgba(255, 240, 214, .08) 50%, rgba(255, 240, 214, 0) 60%);
  background-size: 300% 100%;
  mix-blend-mode: screen;
  animation: sweep 18s ease-in-out infinite;
}
@keyframes sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
/* just the fine print, centred under the stage (the header carries the links) */
.foot__row { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-block: 28px 40px; text-align: center; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-size: 13px; }
.foot__links a { color: var(--ash); transition: color .3s var(--ease); }
.foot__links a:hover, .foot__links a:focus-visible { color: var(--bone); text-decoration: underline; text-underline-offset: .3em; }
.foot__fine { margin: 0; font-size: 12px; color: var(--ash); }
.foot__legal { margin-top: -8px; font-size: 11px; opacity: .8; }

/* --------------------------------------------------------------------------
   Bag drawer
   -------------------------------------------------------------------------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(4, 3, 3, .62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.scrim.is-on { opacity: 1; }

.bag {
  position: fixed;
  top: 0; bottom: 0;
  inset-inline-end: 0;
  z-index: 90;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--ink-1);
  border-inline-start: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateX(104%);
  visibility: hidden;
  transition: transform .55s var(--ease), visibility 0s linear .55s;
}
[dir="rtl"] .bag { transform: translateX(-104%); }
.bag.is-open, [dir="rtl"] .bag.is-open { transform: none; visibility: visible; transition-delay: 0s; }

.bag__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.bag__head h2 { font-size: 20px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; color: var(--ash); }
.icon-btn:hover { color: var(--bone); }
.icon-btn svg { width: 22px; height: 22px; }

.bag__notice { margin: 0; padding: 14px 24px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.8; color: var(--sand); background: var(--ink-2); }
.bag__items { list-style: none; margin: 0; padding: 4px 24px; flex: 1; overflow-y: auto; }
.bag__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}
/* The piece's cover photo (2:3, shown whole) on a tile of its colour */
.bag__tile {
  display: block;
  width: 56px;
  aspect-ratio: 853 / 1280;
  overflow: hidden;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(235, 230, 222, .12);
}
.bag__tile img { width: 100%; height: 100%; object-fit: contain; }
.bag__hint { margin: 8px 0 0; font-size: 12px; color: var(--sand); }
.bag__name { margin: 0; font-size: 15px; line-height: 1.4; }
.bag__variant { margin: 2px 0 10px; font-size: 13px; color: var(--ash); }
.bag__price { margin: 0; font-family: var(--f-display); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); vertical-align: middle; }
.qty button { width: 30px; height: 30px; background: none; border: 0; cursor: pointer; color: var(--ash); font-family: var(--f-display); font-size: 16px; line-height: 1; }
.qty button:hover { color: var(--bone); }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty output { min-width: 26px; text-align: center; font-family: var(--f-display); font-size: 13px; font-variant-numeric: tabular-nums; }
.bag__remove {
  margin-inline-start: 14px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  color: var(--ash);
  text-decoration: underline;
  text-underline-offset: 3px;
  vertical-align: middle;
}
.bag__remove:hover { color: var(--bone); }

.bag__empty { margin: 0; padding: 56px 32px; text-align: center; color: var(--ash); }
.bag__foot { display: flex; flex-direction: column; gap: 14px; padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.bag__deliv-hint { margin: 0; font-size: 12px; color: var(--sand); }
.bag__lines { display: flex; flex-direction: column; gap: 6px; margin-bottom: -6px; }
.bag__line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ash); }
.bag__line > span:last-child { color: var(--bone); font-variant-numeric: tabular-nums; }
.bag__line > span.is-free { color: var(--sand); }
.bag__total { display: flex; align-items: baseline; justify-content: space-between; color: var(--ash); }
.bag__total strong { font-family: var(--f-display); font-size: 20px; font-weight: 400; color: var(--bone); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Loading: the VEYLO loader (first visit, connection down, payment), photos
   that shimmer only when slow, and images that fade in
   -------------------------------------------------------------------------- */
/* The loader: a black veil at 60% over the site (still visible and sharp behind
   it), and above it the logo, which inverts whatever is behind it through a
   difference blend. The wrapper has no box of its own (display: contents) so the
   logo blends with the darkened page itself, not with an isolated layer. Taps
   pass through: the site stays usable while it plays. */
.loader { display: contents; }
.loader__veil {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, .6);
  pointer-events: none;
}
.loader__stage {
  position: fixed;
  inset: 0;
  z-index: 201;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  mix-blend-mode: difference;
  pointer-events: none;
}
/* first visit only: once the chain has run, the tagline settles in beneath */
.loader__tag {
  margin: 0;
  padding-inline-start: .5em;
  font-size: 10px;
  letter-spacing: .5em;
  color: rgba(255, 255, 255, .62);
  white-space: nowrap;
  opacity: 0;
}
.loader.is-intro .loader__tag { animation: tag-in .8s 2.6s var(--ease) both; }
.loader.is-quick .loader__tag { display: none; }
@keyframes tag-in { from { opacity: 0; letter-spacing: .85em; } to { opacity: 1; letter-spacing: .5em; } }
/* connection down: a line of status beneath the wordmark */
.loader__note { margin: 0; padding-inline: 24px; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .78); text-align: center; }

/* The VEYLO chain loader. Two copies of the wordmark: a dim one (13%) and a lit
   one (#F2F2EF) that shows only left of a soft moving edge — light filling the
   letters like a progress bar. Both copies make the same letter moves at the same
   time, so each move happens in the light. Always left to right; every timing is a
   fraction of --vl-dur (3.6 s on a first visit, 3.3 s for the quick one). */
.vl {
  --vl-w: min(60vw, 440px);
  --vl-dur: 3.6s;
  position: relative;
  display: block;
  width: var(--vl-w);
  direction: ltr;
}
.vl--small { --vl-w: 190px; --vl-dur: 3.3s; mix-blend-mode: difference; }
.vl__svg { display: block; width: 100%; height: auto; overflow: visible; }
.vl__svg polygon, .vl__svg rect { fill: currentColor; }
.vl__svg path { fill: none; stroke: currentColor; stroke-width: 15; }
.vl__svg--dim { color: rgba(255, 255, 255, .28); }
.vl__svg--lit {
  position: absolute;
  inset: 0;
  color: #fff;
  /* solid left of the edge, faint right of it; 300% wide so the edge can travel the full word */
  -webkit-mask-image: linear-gradient(90deg, #000 48.8%, transparent 51.2%);
          mask-image: linear-gradient(90deg, #000 48.8%, transparent 51.2%);
  -webkit-mask-size: 300% 100%;
          mask-size: 300% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: 77.20% 0;
          mask-position: 77.20% 0;
  animation: vl-fill var(--vl-dur) infinite;
}
.vl__svg * { transform-box: fill-box; }
.vl-v  { transform-origin: 50% 100%; animation: vl-v var(--vl-dur) infinite; }
.vl-e1, .vl-e3 { transform-origin: 50% 50%; animation: vl-e-out var(--vl-dur) infinite; }
.vl-e2 { transform-origin: 50% 50%; animation: vl-e-in var(--vl-dur) infinite; }
.vl-ya { transform-origin: 100% 91%; animation: vl-ya var(--vl-dur) infinite; }
.vl-yb { transform-origin: 0% 91%; animation: vl-yb var(--vl-dur) infinite; }
.vl-l  { transform-origin: 50% 50%; animation: vl-l var(--vl-dur) infinite; }
.vl-ot { transform-origin: 50% 50%; animation: vl-coin var(--vl-dur) infinite linear; }

@keyframes vl-fill {
  0%, 6.667% { -webkit-mask-position: 77.20% 0; mask-position: 77.20% 0; opacity: 1; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  16.667% { -webkit-mask-position: 65.56% 0; mask-position: 65.56% 0; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  26.667% { -webkit-mask-position: 55.78% 0; mask-position: 55.78% 0; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  36.667% { -webkit-mask-position: 45.11% 0; mask-position: 45.11% 0; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  46.667% { -webkit-mask-position: 35.68% 0; mask-position: 35.68% 0; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  56.667% { -webkit-mask-position: 23.67% 0; mask-position: 23.67% 0; opacity: 1; }
  83.333% { -webkit-mask-position: 23.67% 0; mask-position: 23.67% 0; opacity: 1; animation-timing-function: ease-in-out; }
  93.333% { -webkit-mask-position: 23.67% 0; mask-position: 23.67% 0; opacity: 0; }
  93.667%, 100% { -webkit-mask-position: 77.20% 0; mask-position: 77.20% 0; opacity: 1; }
}
/* V: the arms stretch upward, then snap back with a small elastic bounce */
@keyframes vl-v {
  0%, 16.667% { transform: none; animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
  20.833% { transform: scaleY(1.42); animation-timing-function: cubic-bezier(.5, 0, .7, .4); }
  23.833% { transform: scaleY(.93); animation-timing-function: ease-out; }
  26.333% { transform: scaleY(1.04); animation-timing-function: ease-in-out; }
  29.167%, 100% { transform: none; }
}
/* E: top and bottom bars slide one way, the middle bar the other, like lock tumblers, then click home */
@keyframes vl-e-out {
  0%, 26.667% { transform: none; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  31.667%, 33.333% { transform: translateX(46px); animation-timing-function: cubic-bezier(.6, 0, .9, .6); }
  36.333% { transform: translateX(-4px); animation-timing-function: ease-out; }
  38.333%, 100% { transform: none; }
}
@keyframes vl-e-in {
  0%, 26.667% { transform: none; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  31.667%, 33.333% { transform: translateX(-46px); animation-timing-function: cubic-bezier(.6, 0, .9, .6); }
  36.333% { transform: translateX(4px); animation-timing-function: ease-out; }
  38.333%, 100% { transform: none; }
}
/* Y: the arms fold shut into one straight line, like a key, then spring open a little wider and settle */
@keyframes vl-ya {
  0%, 36.667% { transform: none; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  41.667%, 43.333% { transform: rotate(52deg); animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  47.333% { transform: rotate(-9deg); animation-timing-function: ease-in-out; }
  50.000%, 100% { transform: none; }
}
@keyframes vl-yb {
  0%, 36.667% { transform: none; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  41.667%, 43.333% { transform: rotate(-52deg); animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  47.333% { transform: rotate(9deg); animation-timing-function: ease-in-out; }
  50.000%, 100% { transform: none; }
}
/* L: turns so its foot points left, toward the Y, holds, then turns back */
@keyframes vl-l {
  0%, 46.667% { transform: none; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  52.500%, 59.167% { transform: scaleX(-1); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  65.000%, 100% { transform: none; }
}
/* O: as the L turns back, the top half flips once over its own centre, like a coin, and lands in place */
@keyframes vl-coin {
  0% { transform: none; }
  60.000% { transform: scaleY(1.0000); }
  61.042% { transform: scaleY(0.9999); }
  62.083% { transform: scaleY(0.9932); }
  63.125% { transform: scaleY(0.9239); }
  64.167% { transform: scaleY(0.5972); }
  65.208% { transform: scaleY(-0.2447); }
  66.250% { transform: scaleY(-1.0000); }
  67.292% { transform: scaleY(-0.2447); }
  68.333% { transform: scaleY(0.5972); }
  69.375% { transform: scaleY(0.9239); }
  70.417% { transform: scaleY(0.9932); }
  71.458% { transform: scaleY(0.9999); }
  72.500% { transform: scaleY(1.0000); }
  100% { transform: none; }
}

.loader .vl { --vl-dur: 3.6s; }
.loader.is-quick .vl { --vl-dur: 3.3s; }
/* first visit, once the chain has finished: stay lit while the tagline settles */
.loader.is-settled .vl__svg--lit { animation: none; -webkit-mask-position: 23.67% 0; mask-position: 23.67% 0; opacity: 1; }
.loader.is-settled .vl__svg * { animation: none; }

/* connection down: the veil and logo fade in quickly */
.loader.is-network .loader__veil, .loader.is-network .loader__stage { animation: loader-in .3s ease-out both; }
/* on the way to Salla's checkout (salla.js): the small loader; the veil takes the taps, so nothing is pressed twice */
.loader--paying .loader__veil { pointer-events: auto; background: rgba(0, 0, 0, .72); }
.loader--paying .loader__veil, .loader--paying .loader__stage { animation: loader-in .3s ease-out both; }
/* leaving: the veil and the logo fade away together, the logo scaling up very slightly */
.loader .vl, .loader__tag { transition: transform .8s var(--ease); }
.loader.is-leaving .loader__veil, .loader.is-leaving .loader__stage { animation: loader-out .8s var(--ease) forwards; }
.loader.is-leaving .vl, .loader.is-leaving .loader__tag { transform: scale(1.06); }
@keyframes loader-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes loader-out { from { opacity: 1; } to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .promo__track { animation: none; width: 100%; justify-content: center; }
  .promo__item ~ .promo__item { display: none; }
  .vl__svg--lit { -webkit-mask-image: none; mask-image: none; }        /* no motion: show the mark plainly */
  .loader.is-intro .loader__tag { opacity: 1; }
}

/* a frame shimmers only when its photo is slow to arrive (app.js flags it
   after 1.2 s in view) — on a good connection there is no loading state at all */
.skel-host.is-slow:not(:has(img.is-loaded)):not(.is-missing) {
  background-color: var(--ink-2);
  background-image: linear-gradient(100deg, transparent 25%, rgba(235, 230, 222, .07) 50%, transparent 75%);
  background-size: 220% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}
@keyframes shimmer { from { background-position: 160% 0; } to { background-position: -60% 0; } }
.fade-img { opacity: 0; transition: opacity .8s var(--ease); }
.fade-img.is-loaded { opacity: 1; }

/* --------------------------------------------------------------------------
   Category page (#pullovers, #sweaters)
   -------------------------------------------------------------------------- */
.catpage { padding-bottom: clamp(80px, 10vw, 140px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-block: 16px; font-size: 13px; color: var(--ash); }
.crumbs a { color: var(--ash); transition: color .3s; }
.crumbs a:hover { color: var(--bone); }
.crumbs [aria-current] { color: var(--bone); }
.catpage__body { padding-top: clamp(28px, 4vw, 48px); }
.catpage .cat__title { font-size: clamp(28px, 3.4vw, 42px); }
.catpage .cat__title:focus { outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(28px, 4vw, 44px); }
.chip {
  min-height: 38px;
  padding: 6px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  color: var(--ash);
  transition: background-color .3s, border-color .3s, color .3s;
}
.chip:hover { border-color: var(--ash); color: var(--bone); }
.chip[aria-pressed="true"] { background: var(--bone); border-color: var(--bone); color: var(--ink); }

/* --------------------------------------------------------------------------
   Shop the collection (#shop) — every piece in one grid; the filters and
   sort stay in reach under the header while the grid scrolls
   -------------------------------------------------------------------------- */
.shop { padding-bottom: clamp(80px, 10vw, 140px); }
.shop__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; padding-block: clamp(8px, 1.6vw, 20px) 20px; }
.shop__head > div { display: flex; flex-direction: column; gap: 6px; }
.shop__title { font-size: clamp(30px, 3.6vw, 46px); }
.shop__title:focus { outline: none; }
.shop__count { margin: 0; font-size: 13px; color: var(--ash); }
.shop__bar {
  position: sticky;
  top: var(--bar-real, var(--bar-h));
  z-index: 40;
  border-block: 1px solid var(--line);
  background: rgba(8, 7, 6, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.shop__bar-in { display: flex; align-items: center; gap: 12px 18px; padding-block: 12px; }
.shop__controls { display: flex; align-items: center; gap: 10px 16px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.shop__controls::-webkit-scrollbar { display: none; }
.shop__group { display: flex; align-items: center; gap: 6px; flex: none; }
.shop__group + .shop__group { padding-inline-start: 16px; border-inline-start: 1px solid var(--line); }
.chip--sm { min-height: 34px; padding: 4px 14px; font-size: 13px; white-space: nowrap; }
.swatch-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 4px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--ash);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .3s, color .3s, background-color .3s;
}
.swatch-chip:hover { border-color: var(--ash); color: var(--bone); }
.swatch-chip[aria-pressed="true"] { border-color: var(--bone); background: var(--ink-2); color: var(--bone); }
.shop__sort { display: flex; align-items: center; gap: 8px; flex: none; font-size: 13px; color: var(--ash); white-space: nowrap; }
.shop__sort .input { width: auto; min-height: 34px; padding-block: 4px; font-size: 13px; }
.shop__clear { flex: none; white-space: nowrap; }
.shop__body { padding-top: clamp(20px, 3vw, 32px); }
.shop__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 2.6vw, 36px) clamp(12px, 1.6vw, 20px);
}
.scard { display: flex; flex-direction: column; gap: 10px; }
.scard .card__btn { gap: 10px; }
.scard__kind { font-size: 13px; color: var(--ash); }
.scard .card__name { font-size: 15px; }
/* quick add: one button per size; one tap adds it to the bag */
.scard__quick { display: flex; gap: 6px; }
.qadd {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  flex: 1;
  min-height: 36px;
  padding: 0;
  border: 1px solid var(--line-2);
  background: none;
  font-family: var(--f-display);
  font-size: 13px;
  color: var(--bone);
  cursor: pointer;
  transition: background-color .25s, border-color .25s, color .25s;
}
.qadd:hover, .qadd:focus-visible { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.qadd:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.qadd:disabled:hover { background: none; border-color: var(--line-2); color: var(--bone); }
.shop__empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 64px 0; color: var(--ash); text-align: center; }
.shop__empty p { margin: 0; }
@media (max-width: 1100px) { .shop__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .shop__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop__bar-in { padding-block: 10px; }
  .scard .card__name { font-size: 14px; }
}

/* --------------------------------------------------------------------------
   Exchange & return policy (#returns) — a short page to read
   -------------------------------------------------------------------------- */
.policy { padding-bottom: clamp(80px, 10vw, 140px); }
.policy__body { max-width: 760px; padding-top: clamp(8px, 1.6vw, 20px); }
.policy__title { margin-bottom: 26px; font-size: clamp(30px, 3.6vw, 44px); }
.policy__title:focus { outline: none; }
.policy__updated { margin: -14px 0 22px; font-size: 12px; color: var(--ash); }
.policy__lede { margin-bottom: 8px; font-size: 17px; color: var(--bone); }
.policy__list a { color: var(--sand); text-decoration: underline; text-underline-offset: .25em; }
.policy__list a:hover, .policy__list a:focus-visible { color: var(--bone); }
.policy__h { margin: 36px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 20px; }
.policy__p { margin: 0; line-height: 1.9; color: rgba(235, 230, 222, .86); }
.policy__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.policy__list li { position: relative; padding-inline-start: 22px; line-height: 1.85; color: rgba(235, 230, 222, .86); }
.policy__list li::before {
  content: "";
  position: absolute;
  top: .8em;
  inset-inline-start: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sand);
}
.policy__list b { font-weight: 500; color: var(--bone); }

.next-cat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: clamp(64px, 8vw, 110px);
  padding-block: 28px;
  border-block: 1px solid var(--line);
  color: var(--bone);
  transition: color .3s var(--ease);
}
.next-cat__title { flex: 1; font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 30px); }
.next-cat svg { width: 44px; height: auto; transition: transform .4s var(--ease); }
.next-cat:hover { color: var(--sand); }
.next-cat:hover svg { transform: translateX(6px); }
.bar__nav a[aria-current="page"] { color: var(--bone); box-shadow: 0 1px 0 var(--sand); }

/* --------------------------------------------------------------------------
   Checkout (demo, end to end)
   -------------------------------------------------------------------------- */
.co { padding-block: clamp(24px, 4vw, 48px) clamp(80px, 10vw, 140px); min-height: 70vh; }
.co__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.co__title { font-size: clamp(26px, 3vw, 36px); }
.co__title:focus { outline: none; }
.co__back { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; border: 0; background: none; cursor: pointer; font-size: 14px; color: var(--ash); }
.co__back:hover { color: var(--bone); }
.co__demo {
  margin: 0 0 28px;
  padding: 12px 16px;
  border: 1px solid #4a3e2c;
  background: #15110b;
  font-size: 13px;
  color: var(--sand);
}
.co__alert { margin: 0 0 16px; padding: 12px 16px; border: 1px solid #6e3a33; background: #1c0f0d; color: #eaa294; font-size: 14px; }

.co__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.co__main { min-width: 0; }
.co__h { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; }
.co__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.btn--quiet { border-color: var(--line-2); color: var(--ash); }
.btn--quiet:hover { border-color: var(--ash); color: var(--bone); }
.btn--apple { background: #f5f5f7; color: #000; font-family: -apple-system, "SF Pro Text", "Helvetica Neue", var(--f-body); font-weight: 500; }
.btn--apple:hover { background: #fff; }
/* the Apple Pay button: Apple's logo then "Pay", the way Apple draws it */
.btn--applepay { direction: ltr; gap: 4px; min-height: 52px; font-size: 19px; font-weight: 500; letter-spacing: -.01em; }   /* " Pay" in both languages */
.btn--applepay svg { width: 19px; height: 19px; margin-top: -3px; }
.bag__foot .btn--applepay { min-height: 48px; font-size: 17px; }

/* One page, three sections: where to, shipping, payment. Apple Pay sits above them all. */
.co__express { display: flex; flex-direction: column; gap: 8px; }
.co__express-note { margin: 0; font-size: 12px; color: var(--ash); text-align: center; }
.co__or { display: flex; align-items: center; gap: 14px; margin: 22px 0; font-size: 12px; color: var(--ash); }
.co__or::before, .co__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.co__sec { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.co__sec:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.co__sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 14px; }
.co__n {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  font-family: var(--f-display);
  font-size: 12px;
  color: var(--ash);
}
.co__sec .addr { margin-bottom: 0; }
.co__src { font-size: 12px; color: var(--ash); }
/* the address came from the shopper's Salla account (Salla's own teal and mint) */
.salla-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border: 1px solid #1d5c63;
  background: #0b2427;
  font-size: 12px;
  color: #baf3e6;
}
.salla-badge i { width: 7px; height: 7px; border-radius: 50%; background: #baf3e6; }
.co__addr-form .fields { margin-top: 2px; }

.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--ash); }
.input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 0;
  background: var(--ink-1);
  color: var(--bone);
  font: inherit;
  font-size: 15px;
  transition: border-color .25s;
}
.input:hover { border-color: #5a5147; }
.input:focus { outline: none; border-color: var(--sand); }
.input[aria-invalid="true"] { border-color: #b8645a; }
.input--ltr { text-align: left; font-family: var(--f-display); letter-spacing: .04em; }
textarea.input { min-height: 80px; resize: vertical; }
select.input {
  appearance: none;
  padding-inline-end: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23978e83' stroke-width='1.2'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
[dir="rtl"] select.input { background-position: left 14px center; }
.field__err { font-size: 12.5px; color: #eaa294; }
.field__hint { font-size: 12px; color: var(--ash); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 104px; }
.input-wrap__tag { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); font-family: var(--f-display); font-size: 12px; color: var(--sand); }

.addr {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  font-size: 14px;
}
.addr p { margin: 0; }
.addr__label { font-size: 12px; color: var(--ash); }
.addr__line { color: var(--ash); }
.link-btn { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: 13px; color: var(--sand); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--bone); }

.choices { display: flex; flex-direction: column; gap: 10px; }
.choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition: border-color .25s, background-color .25s;
}
.choice:hover { border-color: var(--ash); }
.choice:has(input:checked) { border-color: var(--bone); background: var(--ink-1); }
.choice input { appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border: 1px solid var(--ash); border-radius: 50%; }
.choice input:checked { border-color: var(--bone); background: radial-gradient(circle, var(--bone) 0 4px, transparent 5px); }
.choice input:focus-visible { outline: 1px solid var(--sand); outline-offset: 3px; }
.choice__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.choice__title { font-family: var(--f-display); font-size: 15px; color: var(--bone); }
.choice__sub { font-size: 13px; color: var(--ash); }
.choice__price { font-family: var(--f-display); font-size: 14px; font-variant-numeric: tabular-nums; }
/* side by side when there's room: shipping's two options, payment's three */
.choices--row { flex-direction: row; flex-wrap: wrap; }
.choices--row .choice { flex: 1 1 220px; }
.choices--pay .choice { flex-basis: 170px; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; row-gap: 10px; }
.choices--pay .choice__mark { grid-column: 1 / -1; }

/* Marks for each way to pay, drawn in CSS so they stay sharp */
.choice__mark { display: inline-flex; align-items: center; gap: 6px; }
.pm { display: inline-flex; align-items: center; justify-content: center; height: 24px; font-family: Arial, Helvetica, sans-serif; line-height: 1; direction: ltr; }
.pm--mada { gap: 6px; font-size: 13px; font-weight: 700; color: var(--bone); }
.pm--mada b { display: flex; flex-direction: column; gap: 3px; width: 26px; }
.pm--mada i { display: block; height: 6px; }
.pm--mada i:first-child { background: #259bd6; }
.pm--mada i:last-child { background: #84b740; }
.pm--visa { padding: 0 7px; border-radius: 3px; background: #fff; color: #1a1f71; font-size: 13px; font-weight: 800; font-style: italic; letter-spacing: .02em; }
.pm--mc { position: relative; width: 36px; }
.pm--mc i { position: absolute; top: 2px; width: 20px; height: 20px; border-radius: 50%; }
.pm--mc i:first-child { left: 1px; background: #eb001b; }
.pm--mc i:last-child { right: 1px; background: #f79e1b; opacity: .92; }

.pay-panel { display: flex; flex-direction: column; gap: 18px; margin-top: 14px; padding: 20px; border: 1px solid var(--line); background: var(--ink-1); }
.democards { padding: 12px 14px; border: 1px dashed var(--line-2); font-size: 13px; }
.democards__title { margin: 0 0 6px; color: var(--sand); }
.democards ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.democards li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.democards code { font-family: var(--f-display); font-size: 13px; color: var(--bone); letter-spacing: .04em; }
.democards li span { color: var(--ash); }
.democards__rest { margin: 8px 0 0; color: var(--ash); }


/* order summary */
.co__sum { position: sticky; top: calc(var(--bar-h) + 16px); }
.sum { padding: 20px; border: 1px solid var(--line); background: var(--ink-1); }
.sum__toggle { display: none; }
.sum__title { margin-bottom: 14px; font-size: 18px; }
.sum__items { list-style: none; margin: 0; padding: 0; }
.sum__item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); }
/* the piece's cover photo (2:3, shown whole) on a tile of its colour */
.sum__tile { display: block; width: 44px; aspect-ratio: 853 / 1280; overflow: hidden; background: var(--c); box-shadow: inset 0 0 0 1px rgba(235, 230, 222, .12); }
.sum__tile img { width: 100%; height: 100%; object-fit: contain; }
.sum__what { display: flex; flex-direction: column; min-width: 0; }
.sum__name { font-size: 14px; }
.sum__meta { font-size: 12px; color: var(--ash); }
.sum__price { font-family: var(--f-display); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum__rows { margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.sum__rows div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.sum__rows dt { color: var(--ash); }
.sum__rows dd { margin: 0; font-family: var(--f-display); font-variant-numeric: tabular-nums; }
.sum__later { font-family: var(--f-body); font-size: 12px; color: var(--ash); }
.sum__total { padding-top: 10px; border-top: 1px solid var(--line); font-size: 16px !important; }
.sum__total dt { color: var(--bone) !important; }
.sum__vat { margin: 8px 0 0; font-size: 12px; color: var(--ash); }

/* processing + confirmation */
.co__proc { display: grid; place-items: center; align-content: center; gap: 18px; min-height: 42vh; text-align: center; color: var(--ash); }
.spinner { width: 44px; height: 44px; border: 2px solid var(--line-2); border-top-color: var(--bone); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.done { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 640px; margin-inline: auto; padding-top: clamp(16px, 4vw, 40px); text-align: center; }
.done__mark { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; border: 1px solid var(--sand); border-radius: 50%; color: var(--sand); }
.done__mark svg { width: 30px; height: 30px; }
.done__title { font-size: clamp(28px, 4vw, 40px); }
.done__title:focus { outline: none; }
.done__lede { margin: 0; color: var(--ash); }
.done__label { margin: 18px 0 0; font-size: 12px; color: var(--ash); }
.done__no { margin: 0; font-family: var(--f-display); font-size: 22px; letter-spacing: .2em; }
.done__demo { margin: 6px 0 12px; padding: 6px 12px; border: 1px solid #4a3e2c; font-size: 12px; color: var(--sand); }
.done__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; width: 100%; margin: 12px 0 0; padding: 18px 0; border-block: 1px solid var(--line); text-align: start; }
.done__grid dt { font-size: 12px; color: var(--ash); }
.done__grid dd { margin: 2px 0 0; font-size: 14px; }
.done__wide { grid-column: 1 / -1; }
.done__items, .done__rows { width: 100%; text-align: start; }
.done .btn { margin-top: 20px; }

/* approval sheet (bank verification, Apple Pay) */
.sheet {
  width: min(440px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-2);
  background: var(--ink-1);
  color: var(--bone);
}
.sheet::backdrop { background: rgba(4, 3, 3, .74); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet[open] { animation: qv-in .35s var(--ease); }
.sheet__inner { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.sheet__brand { margin: 0; font-family: var(--f-display); font-size: 12px; letter-spacing: .12em; color: var(--sand); }
/* the Apple Pay sheet: Apple's own black-and-white look */
.sheet--apple { background: #111; border-color: #2a2a2a; }
.sheet__brand--apple { display: flex; align-items: center; gap: 3px; font-family: -apple-system, "SF Pro Text", "Helvetica Neue", var(--f-body); font-size: 20px; font-weight: 500; letter-spacing: -.01em; color: #fff; }
.sheet__brand--apple svg { width: 20px; height: 20px; margin-top: -3px; }
.sheet__title { font-size: 20px; }
.sheet__text, .sheet__hint { margin: 0; font-size: 14px; color: var(--ash); }
.sheet__hint { font-size: 12px; }
.sheet__rows { margin: 0; display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-block: 1px solid var(--line); }
.sheet__rows div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.sheet__rows dt { color: var(--ash); }
.sheet__rows dd { margin: 0; text-align: end; }
.sheet__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.sheet__actions .btn { flex: 1; }
.otp { font-family: var(--f-display); font-size: 22px; letter-spacing: .5em; text-align: center; }

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 14px 12px 20px;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  font-size: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
  transform: translate(-50%, 14px);
  opacity: 0;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
[dir="rtl"] .toast { padding: 12px 20px 12px 14px; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast button {
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  background: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--sand);
  white-space: nowrap;
}
.toast button:hover { color: var(--bone); border-color: var(--ash); }

/* --------------------------------------------------------------------------
   Narrow screens
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  /* Product view: the gallery on top, the details beneath */
  .qv__inner { grid-template-columns: minmax(0, 1fr); }
  .qv__media { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .gal__stage { width: min(100%, calc(58vh * 853 / 1280)); }
}

@media (max-width: 700px) {
  /* Style blocks: the name above, both colours side by side beneath */
  .style { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .style__head { position: static; }
  .style__price { margin-top: 4px; padding-top: 0; border-top: 0; }
  .card__name { font-size: 15px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .done__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .ctas { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .co__grid { grid-template-columns: minmax(0, 1fr); }
  .co__sum { position: static; order: -1; }
  .sum__toggle {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    font-size: 14px;
    color: var(--sand);
  }
  .sum__toggle::-webkit-details-marker { display: none; }
  .sum__toggle b { font-family: var(--f-display); font-weight: 400; color: var(--bone); }
  .sum[open] .sum__toggle { margin-bottom: 14px; }
  .sum__title { display: none; }
}

@media (max-width: 760px) {
  :root { --promo-h: 36px; --bar-h: calc(60px + var(--promo-h)); }
  .bar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .promo__item { padding-inline: 26px; font-size: 13px; }
  .promo__item svg { width: 17px; height: 17px; }
  .bar__mark { grid-column: 1; grid-row: 2; justify-self: start; width: 104px; }
  /* phones: of the header links only the exchange & return policy stays (the categories open from the home page) */
  .bar__nav { grid-column: 2; grid-row: 2; justify-self: center; font-size: 12.5px; line-height: 1.3; text-align: center; }
  .bar__nav a:not([data-route="returns"]) { display: none; }
  .bar__tools { grid-column: 3; grid-row: 2; }

  /* Phones: the welcome sits beneath the startup banner instead of over it */
  .banner--hero { width: 100%; aspect-ratio: auto !important; overflow: visible; }
  .hero__shade { display: none; }
  .hero__copy { position: static; max-width: none; align-items: center; gap: 6px; padding: 24px var(--gutter) 0; text-align: center; }
  .hero__wm { width: 150px; margin-bottom: 6px; }
  .hero__btn { align-self: stretch; }

  /* Phones: the category photo runs full width (still whole), its words on a dark fade at its foot */
  .entry { position: relative; grid-template-columns: minmax(0, 1fr); gap: 0; padding-inline: 0; }
  .entry__photo { width: 100%; order: 0 !important; }
  .entry::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(8, 7, 6, .94) 0%, rgba(8, 7, 6, .6) 26%, rgba(8, 7, 6, 0) 50%);
  }
  .entry__copy { position: absolute; z-index: 2; inset: auto var(--gutter) 22px; max-width: none; gap: 6px; }
  .entry__title { font-size: 38px; }
  .entry__lede { font-size: 14px; }
  .entry__count { margin-top: 2px; }
  .entry__cta { min-width: 190px; margin-top: 8px; font-size: 13px; }
  .vl { --vl-w: min(70vw, 320px); }
  .vl--small { --vl-w: 170px; }

  .emb { letter-spacing: .24em; padding-inline-start: .24em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}
