/* ============================================================
   LUMINOS — Effortless by Design
   Design system. Mobile-first. Quiet premium, editorial.
   ============================================================ */

/* ---------------------------------------------------- tokens */
:root {
  /* Paper — warm off-whites carry the whole site */
  --paper:      #FBFAF8;
  --paper-2:    #F4F1EC;
  --paper-3:    #EDE8E0;
  --paper-4:    #E4DDD3;

  /* Ink */
  --ink:        #2A2521;
  --ink-2:      #574F48;
  --muted:      #8B8179;
  --muted-2:    #A79D93;

  --line:       #E5DFD6;
  --line-soft:  #F0EBE3;

  /* Brand mark brown — used sparingly */
  --brand:      #7A5C48;
  --brand-soft: #A08A76;

  --ok:         #4E6B57;
  --warn:       #9A6A3C;
  --danger:     #9B4A45;

  /* Type */
  --display: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, 'Times New Roman', serif;
  --sans:    'Jost', 'IBM Plex Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --thai:    'IBM Plex Sans Thai', 'Jost', sans-serif;

  /* Rhythm */
  --gutter: 20px;
  --maxw: 1440px;
  --section: 72px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 60px;
}

@media (min-width: 768px)  { :root { --gutter: 40px; --section: 100px; --header-h: 72px; } }
@media (min-width: 1200px) { :root { --gutter: 64px; --section: 128px; --header-h: 80px; } }

/* ----------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keep in-page anchors (colour stories, size guide) clear of the sticky header. */
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 300; line-height: 1.18; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 3px; }

/* ------------------------------------------------- utilities */
.wrap {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  /* max() keeps the notch clear when the site is installed to the home screen. */
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.wrap-narrow { max-width: 780px; }
.wrap-mid { max-width: 1080px; }
.section { padding-block: var(--section); }
.section-sm { padding-block: calc(var(--section) * .6); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.center { text-align: center; }
.tight { max-width: 62ch; }
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.stack > * + * { margin-top: 1rem; }

.display {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.d-xl { font-size: clamp(2.6rem, 10vw, 5.4rem); }
.d-lg { font-size: clamp(2.1rem, 7.2vw, 3.9rem); }
.d-md { font-size: clamp(1.7rem, 5.4vw, 2.7rem); }
.d-sm { font-size: clamp(1.35rem, 4.2vw, 1.9rem); }

.eyebrow {
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin: 0 0 1.1rem;
}
.eyebrow-brand { color: var(--brand-soft); }
.lede { font-size: 1.02rem; color: var(--ink-2); line-height: 1.85; }
.small { font-size: .82rem; color: var(--muted); line-height: 1.7; }
.thai { font-family: var(--thai); }

/* Hairline flourish echoing the brand mark's divider */
.flourish {
  display: flex; align-items: center; gap: .8rem;
  color: var(--brand-soft); margin: 1.4rem 0;
}
.flourish::before, .flourish::after {
  content: ''; height: 1px; background: var(--line); flex: 1 1 auto; max-width: 120px;
}
.flourish span { font-size: .7rem; line-height: 1; }
.flourish.center-x { justify-content: center; }

/* ---------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 15px 30px;
  font-size: .74rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), opacity .2s;
  text-align: center; min-height: 48px; border-radius: 0;
}
.btn:hover { background: var(--brand); border-color: var(--brand); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .35; cursor: not-allowed; pointer-events: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-quiet { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-quiet:hover { background: var(--paper-2); color: var(--ink); border-color: var(--muted-2); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; min-height: 40px; font-size: .68rem; }

/* Underlined editorial link with the arrow from the brand mock-up */
.link-arrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  padding-bottom: 6px; border-bottom: 1px solid var(--ink);
  transition: gap .3s var(--ease), color .3s, border-color .3s;
}
.link-arrow::after { content: '⟶'; font-size: .95rem; line-height: 1; }
.link-arrow:hover { gap: 1.1rem; color: var(--brand); border-color: var(--brand); }
.link-underline { border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .3s; }
.link-underline:hover { border-color: var(--ink); }

/* ------------------------------------------------ announcement */
.announce {
  background: var(--paper-3); color: var(--ink-2);
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  text-align: center; padding: 9px var(--gutter); line-height: 1.5;
}

/* ------------------------------------------------------ header */
.header {
  position: sticky; top: 0; z-index: 80;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line); }
.header.over-hero { background: transparent; position: fixed; left: 0; right: 0; }
.header.over-hero.is-stuck { background: var(--paper); }
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brandmark { display: flex; align-items: center; gap: .55rem; flex: 0 0 auto; }
.brandmark img { height: 26px; width: auto; }
@media (min-width: 768px) { .brandmark img { height: 30px; } }

.nav { display: none; }
@media (min-width: 1024px) {
  .nav { display: flex; gap: 2.1rem; align-items: center; }
  .nav a {
    font-size: .69rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2);
    padding: 6px 0; position: relative; transition: color .3s;
  }
  .nav a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: currentColor; transform: scaleX(0); transform-origin: left;
    transition: transform .35s var(--ease);
  }
  .nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
  .nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
}
.header-actions { display: flex; align-items: center; gap: .45rem; flex: 0 0 auto; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; position: relative;
  color: var(--ink); transition: opacity .25s;
}
.icon-btn:hover { opacity: .6; }
.icon-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.25; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--brand); color: #fff; border-radius: 999px;
  font-size: .58rem; line-height: 16px; text-align: center; letter-spacing: 0;
  font-family: var(--sans); font-weight: 400;
}
.cart-count[hidden] { display: none; }
.menu-btn { display: grid; }
@media (min-width: 1024px) { .menu-btn { display: none; } }

/* ------------------------------------------------ mobile drawer */
.drawer-scrim {
  position: fixed; inset: 0; background: rgba(42,37,33,.34); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
  backdrop-filter: blur(2px);
}
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; right: 0; width: min(420px, 90vw); z-index: 95;
  background: var(--paper); display: flex; flex-direction: column;
  transform: translateX(101%); transition: transform .45s var(--ease);
  box-shadow: -20px 0 60px rgba(42,37,33,.07);
}
.drawer.open { transform: translateX(0); }
.drawer-left { right: auto; left: 0; transform: translateX(-101%); box-shadow: 20px 0 60px rgba(42,37,33,.07); }
.drawer-left.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px 0 24px; height: var(--header-h); border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.drawer-title { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
.drawer-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 24px 28px; }
.drawer-foot { flex: 0 0 auto; border-top: 1px solid var(--line); padding: 20px 24px calc(20px + env(safe-area-inset-bottom)); background: var(--paper-2); }

.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a {
  font-family: var(--display); font-size: 1.55rem; padding: 13px 0;
  border-bottom: 1px solid var(--line-soft); transition: color .25s, padding-left .3s var(--ease);
}
.drawer-nav a:hover { color: var(--brand); padding-left: 6px; }
.drawer-meta { margin-top: 26px; display: flex; flex-direction: column; gap: .55rem; }
.drawer-meta a { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.drawer-meta a:hover { color: var(--ink); }

/* -------------------------------------------------------- hero */
.hero { position: relative; background: var(--paper-2); }
.hero-media { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(251,250,248,.55) 0%, rgba(251,250,248,0) 42%, rgba(251,250,248,.12) 78%, rgba(251,250,248,.6) 100%);
}
.hero-copy { position: relative; z-index: 2; padding: 34px 0 56px; }
.hero-copy .d-xl { margin-bottom: .2em; }
.hero-sub {
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
  margin: 1.4rem 0 2rem; line-height: 2;
}
.hero .eyebrow { color: var(--brand); }
@media (min-width: 900px) {
  .hero { display: grid; grid-template-columns: 1fr; align-items: stretch; min-height: min(88vh, 820px); }
  .hero-media { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
  /* Portrait campaign shots crop tall in a wide hero — bias upward to keep the
     model's face in frame. */
  .hero-media img { object-position: 55% 12%; }
  /* Hold a readable paper wash under the copy column, then release it fast so
     the campaign image still reads as the hero. */
  .hero-media::after {
    background: linear-gradient(100deg, rgba(244,241,236,.97) 0%, rgba(244,241,236,.93) 34%, rgba(244,241,236,.62) 48%, rgba(244,241,236,.12) 64%, rgba(244,241,236,0) 78%);
  }
  .hero-inner { position: relative; z-index: 2; display: flex; align-items: center; min-height: min(88vh, 820px); }
  .hero-copy { padding: 0; max-width: 540px; }
  .hero.align-center .hero-inner { justify-content: center; text-align: center; }
  .hero.align-center .hero-media::after {
    background: linear-gradient(180deg, rgba(244,241,236,.7), rgba(244,241,236,.35) 45%, rgba(244,241,236,.75));
  }
  .hero.align-center .flourish { justify-content: center; }
}
.scroll-hint {
  display: none; position: absolute; left: var(--gutter); bottom: 40px; z-index: 3;
  writing-mode: vertical-rl; font-size: .6rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted); align-items: center; gap: 14px;
}
.scroll-hint::after { content: ''; width: 1px; height: 54px; background: var(--line); display: block; }
@media (min-width: 1200px) { .scroll-hint { display: flex; left: 24px; } }

/* --------------------------------------------- collection strip */
.strip { background: var(--paper-2); }
.strip-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .strip-grid { grid-template-columns: minmax(260px, 340px) 1fr; gap: 64px; align-items: center; } }

.swatch-rail {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 12px;
}
@media (min-width: 640px) { .swatch-rail { grid-template-columns: repeat(6, 1fr); gap: 16px; } }
.swatch-item { text-align: center; }
.swatch-item .chip {
  width: 100%; aspect-ratio: 3 / 4; border-radius: 2px; overflow: hidden;
  background: var(--paper-3); position: relative; display: block;
  transition: transform .5s var(--ease);
}
.swatch-item .chip img { width: 100%; height: 100%; object-fit: cover; }
.swatch-item:hover .chip { transform: translateY(-4px); }
.swatch-item .code { display: block; font-size: .62rem; letter-spacing: .18em; color: var(--muted-2); margin-top: 12px; }
.swatch-item .name { display: block; font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-2); margin-top: 3px; line-height: 1.5; }

/* ------------------------------------------------ product cards */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
@media (min-width: 700px)  { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; } }
@media (min-width: 1100px) { .product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.card { display: block; position: relative; }
.card-media {
  position: relative; overflow: hidden; background: var(--paper-2); aspect-ratio: 3 / 4;
}
.card-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease), opacity .6s var(--ease);
}
.card-media img.alt { opacity: 0; }
.card:hover .card-media img.main { opacity: 0; }
.card:hover .card-media img.alt { opacity: 1; }
.card:hover .card-media img { transform: scale(1.035); }
.card-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(251,250,248,.92); color: var(--ink-2);
  font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; padding: 6px 10px;
}
.card-tag.sold { background: rgba(42,37,33,.86); color: var(--paper); }
.card-body { padding-top: 16px; }
.card-name { font-family: var(--display); font-size: 1.24rem; line-height: 1.3; }
.card-sub { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.card-price { font-size: .84rem; color: var(--ink-2); margin-top: 9px; letter-spacing: .04em; }
.card-dots { display: flex; gap: 5px; margin-top: 11px; flex-wrap: wrap; }
.card-dots i {
  width: 11px; height: 11px; border-radius: 50%; display: block;
  box-shadow: inset 0 0 0 1px rgba(42,37,33,.14);
}

/* ------------------------------------------------ feature block */
.feature { display: grid; gap: 0; }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; align-items: stretch; } }
@media (min-width: 1200px) { .feature.thirds { grid-template-columns: 1fr 1.05fr .8fr; } }
.feature-img { position: relative; overflow: hidden; background: var(--paper-2); aspect-ratio: 4/5; }
.feature-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .feature-img { aspect-ratio: auto; min-height: 560px; } }
.feature-copy {
  background: var(--paper); padding: 48px var(--gutter);
  display: flex; flex-direction: column; justify-content: center;
}
@media (min-width: 900px) { .feature-copy { padding: 64px clamp(32px, 5vw, 72px); } }
.feature-quote {
  position: relative; display: grid; place-items: center; text-align: center;
  background: var(--paper-3); padding: 56px 32px; overflow: hidden;
}
.feature-quote img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-quote::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(52,39,30,.26), rgba(52,39,30,.48));
}
.feature-quote .q {
  position: relative; z-index: 2; font-family: var(--display);
  font-size: clamp(1.3rem,4vw,1.85rem); line-height: 1.45; color: #fff;
  text-shadow: 0 1px 18px rgba(46,34,26,.45); max-width: 22ch;
}

.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(4, 1fr); gap: 40px; } }
.pillar .ico { color: var(--brand-soft); margin-bottom: 14px; }
.pillar .ico svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1; }
.pillar h4 { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.pillar p { font-size: .82rem; color: var(--muted); line-height: 1.8; }

/* -------------------------------------------------- editorial */
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 900px) { .mosaic { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.mosaic figure { margin: 0; aspect-ratio: 1; overflow: hidden; background: var(--paper-2); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mosaic figure:hover img { transform: scale(1.05); }

/* ---------------------------------------------- product detail */
.pdp { display: grid; gap: 0; }
@media (min-width: 1000px) { .pdp { grid-template-columns: minmax(0,1.15fr) minmax(380px,.85fr); align-items: start; } }

/* Mobile: swipe gallery. Desktop: stacked editorial column. */
.gallery { position: relative; background: var(--paper-2); }
.gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; aspect-ratio: 3/4; background: var(--paper-2); }
.gallery-slide > img, .gallery-slide > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-slide.is-video::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
}
.gallery-dots { display: flex; justify-content: center; gap: 2px; padding: 10px 0 2px; }
/* 26px tap target around a 6px dot — comfortable on a phone, invisible on screen. */
.gallery-dots button {
  width: 26px; height: 26px; display: grid; place-items: center; background: none; padding: 0;
}
.gallery-dots button::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--line);
  transition: background .3s, transform .3s var(--ease);
}
.gallery-dots button[aria-current="true"]::before { background: var(--brand); transform: scale(1.3); }
.gallery-counter {
  position: absolute; right: 14px; bottom: 14px; z-index: 3;
  background: rgba(251,250,248,.9); color: var(--ink-2);
  font-size: .62rem; letter-spacing: .1em; padding: 4px 9px;
}
.gallery-slide[hidden] { display: none; }
@media (min-width: 1000px) {
  .gallery-track { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; overflow: visible; }
  .gallery-slide { flex: none; aspect-ratio: 3/4; }
  /* The lead slide is the first *visible* one, which changes with the colour. */
  .gallery-slide.is-lead { grid-column: 1 / -1; aspect-ratio: 4/5; }
  .gallery-dots, .gallery-counter { display: none; }
}

.pdp-info { padding: 32px var(--gutter) 56px; }
@media (min-width: 1000px) {
  .pdp-info {
    position: sticky; top: calc(var(--header-h) + 16px);
    padding: 48px clamp(28px, 4vw, 64px) 64px;
  }
}
.pdp-title { font-family: var(--display); font-size: clamp(1.9rem, 5.6vw, 2.6rem); line-height: 1.14; }
.pdp-sub { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.pdp-price { font-size: 1.06rem; letter-spacing: .06em; color: var(--ink); margin-top: 18px; }
.pdp-price del { color: var(--muted-2); margin-right: .6rem; font-size: .9em; }
.pdp-tagline { font-family: var(--display); font-style: italic; font-size: 1.12rem; color: var(--brand); margin-top: 6px; }

.opt-group { margin-top: 30px; }
.opt-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 13px;
}
.opt-head b { color: var(--ink); font-weight: 400; letter-spacing: .12em; }
.opt-head a { color: var(--ink-2); border-bottom: 1px solid var(--line); text-transform: none; letter-spacing: .06em; font-size: .72rem; }

.colors { display: flex; flex-wrap: wrap; gap: 12px; }
.color-dot {
  width: 34px; height: 34px; border-radius: 50%; position: relative; padding: 0;
  box-shadow: inset 0 0 0 1px rgba(42,37,33,.13);
  transition: transform .25s var(--ease);
}
.color-dot::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid transparent; transition: border-color .25s;
}
.color-dot[aria-pressed="true"]::after { border-color: var(--ink); }
.color-dot:hover { transform: scale(1.06); }
.color-dot.out::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 44px; height: 1px;
  background: var(--muted); transform: translate(-50%,-50%) rotate(-45deg); opacity: .8;
}

.sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)); gap: 8px; }
.size-btn {
  min-height: 50px; border: 1px solid var(--line); background: var(--paper);
  font-size: .8rem; letter-spacing: .12em; color: var(--ink-2);
  transition: border-color .25s, background .25s, color .25s;
  display: grid; place-items: center; position: relative;
}
.size-btn:hover:not(:disabled) { border-color: var(--muted-2); }
.size-btn[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.size-btn:disabled {
  color: var(--muted-2); cursor: not-allowed; background: var(--paper-2);
  text-decoration: line-through; text-decoration-color: var(--muted-2);
}
.stock-note { font-size: .74rem; color: var(--muted); margin-top: 12px; min-height: 1.4em; }
.stock-note.low { color: var(--warn); }
.stock-note.out { color: var(--danger); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); height: 52px; flex: 0 0 auto; }
/* flex: 0 0 auto — a narrow row must never squeeze the steppers below tap size. */
.qty button { flex: 0 0 auto; width: 46px; height: 100%; display: grid; place-items: center; font-size: 1rem; color: var(--ink-2); transition: color .2s; }
.qty button:hover { color: var(--ink); }
/* input[type=number] is also matched by the global form rule further down, which
   sets width:100%; the attribute selector here keeps this one from winning. */
.qty input[type="number"] {
  flex: 0 0 auto; width: 46px; height: 100%; text-align: center; border: 0; background: transparent;
  font-size: .9rem; -moz-appearance: textfield; padding: 0; min-height: 0;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.buy-row { display: flex; gap: 10px; margin-top: 26px; align-items: stretch; }
.buy-row .btn { flex: 1 1 auto; }

.trust { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.trust li { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; color: var(--muted); line-height: 1.65; }
.trust svg { width: 15px; height: 15px; stroke: var(--brand-soft); fill: none; stroke-width: 1.2; flex: 0 0 auto; margin-top: 3px; }
.trust ul { list-style: none; margin: 0; padding: 0; }

/* ---------------------------------------------------- accordion */
.acc { border-top: 1px solid var(--line); margin-top: 34px; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 19px 0; text-align: left;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
}
.acc-btn .sign { position: relative; width: 12px; height: 12px; flex: 0 0 auto; }
.acc-btn .sign::before, .acc-btn .sign::after {
  content: ''; position: absolute; background: var(--ink-2); transition: transform .35s var(--ease), opacity .3s;
}
.acc-btn .sign::before { left: 0; right: 0; top: 50%; height: 1px; transform: translateY(-50%); }
.acc-btn .sign::after { top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-50%); }
.acc-btn[aria-expanded="true"] .sign::after { transform: translateX(-50%) scaleY(0); opacity: 0; }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.acc-panel > div { overflow: hidden; }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-body { padding: 0 0 22px; font-size: .87rem; color: var(--ink-2); line-height: 1.85; }
.acc-body ul { margin: 0; padding-left: 1.1rem; }
.acc-body li { margin-bottom: .35rem; }

/* ------------------------------------------------------- table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.measure { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 420px; }
table.measure th, table.measure td { padding: 13px 10px; text-align: left; border-bottom: 1px solid var(--line); }
table.measure th { font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
table.measure td { color: var(--ink-2); }
table.measure tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------- color story */
.story-row { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .story-row { grid-template-columns: 1fr 1fr; } .story-row.flip .story-img { order: 2; } }
.story-img { background: var(--paper-2); aspect-ratio: 4/3; overflow: hidden; }
.story-img img { width: 100%; height: 100%; object-fit: cover; }
.story-copy { padding: 40px var(--gutter); display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 900px) { .story-copy { padding: 56px clamp(32px,5vw,72px); } }
.story-code { font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--brand-soft); }
.story-name { font-family: var(--display); font-size: clamp(1.6rem,4.4vw,2.2rem); margin-top: 6px; }

/* Colour Letter artwork — shown whole, never cropped. */
.letters { display: grid; gap: 16px; }
@media (min-width: 800px) { .letters { grid-template-columns: 1fr 1fr; gap: 20px; } }
.letter-card {
  display: block; background: var(--paper); border: 1px solid var(--line);
  overflow: hidden; transition: transform .5s var(--ease), border-color .3s;
}
.letter-card img { width: 100%; height: auto; display: block; }
.letter-card:hover { transform: translateY(-3px); border-color: var(--muted-2); }

/* ---------------------------------------------------------- cart */
.line { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
@media (min-width: 640px) { .line { grid-template-columns: 96px 1fr; gap: 18px; } }
.line-img { aspect-ratio: 3/4; background: var(--paper-2); overflow: hidden; }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-name { font-family: var(--display); font-size: 1.08rem; line-height: 1.3; }
.line-meta { font-size: .72rem; color: var(--muted); margin-top: 5px; letter-spacing: .06em; }
.line-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.line-price { font-size: .86rem; color: var(--ink); letter-spacing: .04em; }
.line-remove {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line); transition: color .25s;
  padding: 8px 0; min-height: 34px; display: inline-flex; align-items: center;
}
.line-remove:hover { color: var(--danger); }
.qty-sm { height: 40px; }
.qty-sm button { width: 38px; }
.qty-sm input[type="number"] { width: 36px; font-size: .82rem; }

.totals { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 4px; }
.totals .row { display: flex; justify-content: space-between; gap: 1rem; font-size: .86rem; color: var(--ink-2); padding: 7px 0; }
.totals .row.grand {
  border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px;
  font-size: 1.02rem; color: var(--ink); letter-spacing: .04em;
}
.totals .row .free { color: var(--ok); }
.totals .row.disc { color: var(--ok); }

@media (min-width: 900px) {
  .cart-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 56px !important; align-items: start; }
  .cart-layout .summary-panel { position: sticky; top: calc(var(--header-h) + 16px); }
}

.empty { text-align: center; padding: 60px 0; }
.empty .mark { width: 46px; opacity: .3; margin: 0 auto 22px; }

/* ------------------------------------------------------- forms */
.field { margin-bottom: 16px; }
.field label, .lbl {
  display: block; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 7px;
}
.field .req { color: var(--brand-soft); }
.input, input[type=text], input[type=email], input[type=tel], input[type=number],
input[type=password], input[type=date], input[type=url], select, textarea {
  width: 100%; padding: 13px 14px; min-height: 48px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 0;
  font-size: 16px; /* prevents iOS zoom on focus */
  font-weight: 300; color: var(--ink); transition: border-color .25s, background .25s;
  -webkit-appearance: none; appearance: none;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.7; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B8179' fill='none' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.input:focus, input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
.input.err, input.err, select.err, textarea.err { border-color: var(--danger); }
.err-msg { color: var(--danger); font-size: .74rem; margin-top: 5px; }
.grid-2 { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.choice { display: block; border: 1px solid var(--line); padding: 16px; margin-bottom: 10px; cursor: pointer; transition: border-color .25s, background .25s; }
.choice:hover { border-color: var(--muted-2); }
.choice.sel { border-color: var(--ink); background: var(--paper-2); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .ttl { display: flex; align-items: center; gap: 11px; font-size: .9rem; color: var(--ink); }
.choice .dot { width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--muted-2); flex: 0 0 auto; position: relative; }
.choice.sel .dot { border-color: var(--ink); }
.choice.sel .dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--ink); }
.choice .desc { font-size: .78rem; color: var(--muted); margin-top: 7px; padding-left: 26px; line-height: 1.7; }
.choice .fee { margin-left: auto; font-size: .8rem; color: var(--ink-2); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--ink-2); cursor: pointer; line-height: 1.6; }
.check input { width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--brand); flex: 0 0 auto; }

.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1 1 auto; text-transform: uppercase; letter-spacing: .08em; }
.coupon-row .btn { flex: 0 0 auto; white-space: nowrap; }

/* Checkout: order summary is a collapsible bar on mobile, panel on desktop */
.checkout { display: grid; gap: 40px; }
@media (min-width: 1000px) { .checkout { grid-template-columns: 1fr minmax(360px, 420px); gap: 64px; align-items: start; } }
.summary-panel { background: var(--paper-2); padding: 26px 22px; }
@media (min-width: 1000px) { .summary-panel { position: sticky; top: calc(var(--header-h) + 16px); padding: 32px 28px; } }
.summary-heading { margin-bottom: 16px; }
.summary-toggle {
  display: flex; width: 100%; justify-content: space-between; align-items: center;
  padding: 12px 0; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-2); border-bottom: 1px solid var(--line);
}
.summary-toggle .chev { transition: transform .35s var(--ease); font-size: 1rem; line-height: 1; }
.summary-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.summary-content { display: none; }
.summary-content.open { display: block; }
@media (min-width: 1000px) {
  .summary-toggle { display: none; }
  .summary-content { display: block !important; }
}
/* Phone: lead with the order summary, then the form. */
@media (max-width: 999px) {
  .checkout .summary-panel { order: -1; }
  .checkout { display: flex; flex-direction: column; }
}

.step-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
/* Cormorant's 0 and 1 read as O and I at this size — step numbers use the sans. */
.step-head .n { font-family: var(--sans); font-size: 1rem; letter-spacing: .1em; color: var(--brand-soft); line-height: 1; }
.step-head h2 { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; }

/* ------------------------------------------------------ payment */
.pay-box { background: var(--paper-2); padding: 26px 22px; text-align: center; }
.pay-qr { width: min(260px, 72vw); margin: 0 auto 18px; background: #fff; padding: 14px; border: 1px solid var(--line); }
.pay-qr img { width: 100%; }
.pay-rows { text-align: left; max-width: 380px; margin: 0 auto; }
.pay-rows .r { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.pay-rows .r:last-child { border-bottom: 0; }
.pay-rows .k { color: var(--muted); font-size: .78rem; }
.pay-rows .v { color: var(--ink); text-align: right; }
.copy-btn { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); border-bottom: 1px solid var(--line); margin-left: 8px; }
.amount-due { font-family: var(--display); font-size: 2.2rem; color: var(--ink); line-height: 1.1; }

.dropzone {
  border: 1px dashed var(--muted-2); background: var(--paper); padding: 30px 20px; text-align: center;
  transition: border-color .25s, background .25s; cursor: pointer; display: block;
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--paper-2); }
.dropzone svg { width: 26px; height: 26px; stroke: var(--muted-2); fill: none; stroke-width: 1; margin-bottom: 10px; }
.dropzone .hint { font-size: .78rem; color: var(--muted); }
.slip-preview { max-width: 220px; margin: 16px auto 0; border: 1px solid var(--line); }

.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .64rem; letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 12px; background: var(--paper-3); color: var(--ink-2); border-radius: 999px;
}
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.s-awaiting_payment { background: #F6EFE4; color: #8A6534; }
.status-pill.s-verifying      { background: #EFEDF6; color: #5C5488; }
.status-pill.s-paid           { background: #E9F0EA; color: #43684E; }
.status-pill.s-packing        { background: #EEF1F4; color: #4A5B6B; }
.status-pill.s-shipped        { background: #E6EFF3; color: #3C6377; }
.status-pill.s-completed      { background: #E9F0EA; color: #3C6349; }
.status-pill.s-cancelled      { background: #F6EBEA; color: #8E4741; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 22px 26px; border-left: 1px solid var(--line); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; left: -4.5px; top: 5px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px var(--muted-2);
}
.timeline li.done::before { background: var(--brand); box-shadow: none; }
.timeline .t { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.timeline .d { font-size: .76rem; color: var(--muted); margin-top: 3px; }

/* ------------------------------------------------------- notice */
.notice { padding: 15px 18px; font-size: .84rem; line-height: 1.7; border-left: 2px solid var(--brand-soft); background: var(--paper-2); color: var(--ink-2); }
.notice.ok   { border-color: var(--ok);     background: #F0F4F1; color: #3D5A48; }
.notice.warn { border-color: var(--warn);   background: #F8F3EB; color: #7C5A32; }
.notice.bad  { border-color: var(--danger); background: #F8EFEE; color: #85413C; }

/* -------------------------------------------------------- toast */
.toast-host { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.toast {
  background: var(--ink); color: var(--paper); padding: 13px 20px; font-size: .8rem; letter-spacing: .04em;
  box-shadow: 0 12px 40px rgba(42,37,33,.18); animation: toast-in .4s var(--ease);
}
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------- footer */
.footer { background: var(--paper-2); border-top: 1px solid var(--line); margin-top: 0; }
.footer-top { display: grid; gap: 40px; padding-block: 56px; }
@media (min-width: 760px)  { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }
@media (min-width: 1100px) { .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 56px; } }
.footer h5 { font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .85rem; color: var(--ink-2); transition: color .25s; }
.footer-links a:hover { color: var(--brand); }
.footer-mark img { width: 132px; margin-bottom: 16px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink-2); transition: border-color .25s, color .25s, background .25s;
}
.socials a:hover { border-color: var(--brand); color: var(--brand); background: var(--paper); }
.socials svg { width: 16px; height: 16px; }
.newsletter { display: flex; gap: 0; border-bottom: 1px solid var(--muted-2); align-items: stretch; }
.newsletter input { border: 0; background: transparent; padding: 12px 0; min-height: 46px; }
.newsletter button {
  flex: 0 0 auto; width: 46px; min-height: 46px; display: grid; place-items: center;
  color: var(--ink); font-size: 1rem; transition: color .25s, transform .3s var(--ease);
}
.newsletter button:hover { color: var(--brand); transform: translateX(3px); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: .7rem; color: var(--muted); letter-spacing: .06em;
}
.footer-bottom a:hover { color: var(--ink); }

/* Sticky add-to-cart bar on mobile PDP */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(251,250,248,.97); border-top: 1px solid var(--line);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  display: flex; gap: 12px; align-items: center;
  transform: translateY(102%); transition: transform .4s var(--ease);
  backdrop-filter: blur(8px);
}
.sticky-buy.show { transform: none; }
.sticky-buy .info { flex: 1 1 auto; min-width: 0; }
.sticky-buy .nm { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy .pr { font-size: .74rem; color: var(--muted); }
.sticky-buy .btn { flex: 0 0 auto; padding-inline: 22px; }
@media (min-width: 1000px) { .sticky-buy { display: none; } }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Very small phones (iPhone SE 320px) */
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .d-xl { font-size: 2.25rem; }
  .btn { padding-inline: 20px; font-size: .68rem; letter-spacing: .16em; }
  .product-grid { gap: 24px 10px; }
  .swatch-rail { gap: 16px 10px; }
  .sizes { grid-template-columns: repeat(3, 1fr); }
}

/* Print — packing slips */
@media print {
  .header, .footer, .announce, .sticky-buy, .no-print { display: none !important; }
  body { background: #fff; font-size: 12px; }
}

.summary-grand {
  display: flex; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px;
  font-size: 1.02rem; color: var(--ink); letter-spacing: .04em;
}
