/* =====================================================================
   Típicos Juanita — Redesign  ·  "Warm & Cultural"
   One design system. Cream canvas; red / indigo / gold as deliberate
   accents. No Tailwind. Every component maps to fields the API returns.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg:          #FBF6EE;
  --surface:     #FFFFFF;
  --surface-alt: #F3EADC;
  --ink:         #1E1813;
  --ink-soft:    #6B6157;
  --line:        #E7DCCB;

  --red:     #B23A2E;
  --red-deep:#8E2C22;
  --indigo:  #2C3A5A;
  --indigo-deep:#212C46;
  --gold:    #C4922E;
  --gold-soft:#E9C878;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(1.15rem, 3.5vw, 2.25rem);
  --radius: 12px;
  --shadow: 0 16px 36px -22px rgba(30, 24, 19, .38);
  --topbar-h: 40px;
  --header-h: 72px;

  /* Legacy-name compatibility (old templates/app.js) mapped to the new palette */
  --primary-color: var(--red);
  --accent-color: var(--red-deep);
  --secondary-color: var(--surface-alt);
  --neutral-bg: var(--bg);
  --text-primary: var(--ink);
  --text-secondary: var(--ink-soft);
  --guatemalan-blue: var(--indigo);
  --guatemalan-green: #4A7856;
  --highlight-color: var(--gold);
  --traditional-red: var(--red);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Type scale (bold, high-contrast) ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600; font-optical-sizing: auto;
  line-height: 1.0; letter-spacing: -0.02em; margin: 0;
  text-wrap: balance;
}
.mega { font-size: clamp(3rem, 7vw, 6rem); font-weight: 600; line-height: .95; }
h1.display { font-size: clamp(2.8rem, 5.6vw, 4.6rem); font-weight: 600; }
h2.display { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 600; }
h3.display { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; }
.lede  { color: var(--ink-soft); font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 56ch; line-height: 1.45; }
.muted { color: var(--ink-soft); }

/* Color utilities for headlines / text */
.t-red    { color: var(--red); }
.t-indigo { color: var(--indigo); }
.t-gold   { color: var(--gold); }
.t-cream  { color: var(--bg); }
.t-white  { color: #fff; }

/* Bold lead-in label (text, not a pill) */
.label {
  display: inline-block; font-family: var(--font-body);
  font-weight: 800; font-size: .82rem; letter-spacing: .16em;
  text-transform: uppercase;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); width: 100%; }
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--tight { padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.section--alt { background: var(--surface-alt); }
.stack > * + * { margin-top: 1rem; }

/* Saturated full-bleed panels — light text, white cards pop against them */
.section--indigo { background: var(--indigo); color: #EFE7D8; }
.section--red    { background: var(--red);    color: #FBEDE9; }
.section--gold   { background: var(--gold);   color: #2A1E06; }
.section--ink    { background: var(--ink);    color: #EFE7D8; }
.section--indigo .lede, .section--red .lede { color: rgba(255,255,255,.82); }
.section--gold .lede { color: rgba(42,30,6,.8); }
.section--indigo .muted, .section--red .muted { color: rgba(255,255,255,.78); }
.on-dark { color: #fff; }

/* ---------- Woven divider (restrained textile motif) ---------- */
.weave {
  height: 6px; border: 0; margin: 0;
  background: repeating-linear-gradient(90deg,
    var(--red) 0 13px, var(--gold) 13px 20px,
    var(--indigo) 20px 33px, var(--gold-soft) 33px 40px,
    var(--red-deep) 40px 47px);
}
.weave--soft { opacity: .5; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 700; font-size: .96rem;
  padding: .8rem 1.5rem; border-radius: 10px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .16s ease, background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--ondark { background: #fff; color: var(--ink); }
.btn--ondark:hover { background: var(--gold-soft); }
.btn--gold { background: var(--gold); color: #221a05; }
.btn--gold:hover { background: var(--gold-soft); }
.btn--block { width: 100%; }
.btn--lg { padding: .95rem 1.9rem; font-size: 1rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Topbar + header ---------- */
.topbar {
  background: var(--indigo); color: #EFE7D8; height: var(--topbar-h);
  display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: .8rem; letter-spacing: .02em; padding-inline: 1rem;
}
.topbar b { color: var(--gold-soft); font-weight: 700; }

.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1.4rem; height: 100%; }
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand img { height: 44px; width: 44px; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1; letter-spacing: -.01em; }
.brand-sub { font-size: .7rem; color: var(--ink-soft); }
.nav-links { display: flex; gap: 1.4rem; margin-left: .6rem; }
.nav-links a { font-weight: 600; font-size: .94rem; padding-bottom: 3px; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.nav-links a:hover, .nav-links a.on { color: var(--red); border-color: var(--red); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: .8rem; }
.search { display: flex; align-items: center; gap: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .85rem; min-width: 230px; color: var(--ink-soft); }
.search input { border: 0; background: transparent; outline: none; font: inherit; font-size: .9rem; width: 100%; color: var(--ink); }
.icon-btn { position: relative; display: grid; place-items: center; height: 42px; width: 42px; border-radius: 10px; color: var(--ink); transition: background .2s, color .2s; }
.icon-btn:hover { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
.icon-btn .badge { position: absolute; top: 2px; right: 2px; background: var(--red); color: #fff; font-size: .62rem; font-weight: 800; height: 17px; min-width: 17px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; }
.lang { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 10px; padding: 3px; background: var(--surface); }
.lang a { font-size: .72rem; font-weight: 800; padding: .26rem .55rem; border-radius: 7px; color: var(--ink-soft); }
.lang a.on { background: var(--red); color: #fff; }

/* ---------- Full-bleed hero (fills viewport, no overflow) ---------- */
.hero {
  position: relative;
  height: calc(100dvh - var(--topbar-h) - var(--header-h));
  min-height: 460px;
  overflow: hidden;
}
.hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,15,12,.72) 0%, rgba(20,15,12,.38) 42%, rgba(20,15,12,.05) 72%);
}
.hero-inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center; gap: 1.15rem;
  max-width: 640px;
}
.hero h1 { color: #fff; font-size: clamp(3rem, 6.5vw, 5.6rem); text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero .lede { color: #F5EEE2; max-width: 44ch; font-size: clamp(1.15rem, 1.7vw, 1.4rem); }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: .3rem; }
.hero-quicklinks { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.22); }
.hero-quicklinks a { color: #F1E9DB; font-weight: 600; font-size: .95rem; border-bottom: 2px solid transparent; padding-bottom: 2px; }
.hero-quicklinks a:hover { border-color: var(--gold-soft); color: #fff; }

/* ---------- Section heading ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.2rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.sec-head .display { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.sec-head .sub { color: var(--ink-soft); font-size: 1.05rem; margin-top: .5rem; max-width: 52ch; }
.section--indigo .sec-head .sub, .section--red .sec-head .sub { color: rgba(255,255,255,.8); }
.sec-head .link { font-weight: 800; color: var(--red); font-size: 1rem; border-bottom: 3px solid transparent; padding-bottom: 2px; white-space: nowrap; }
.sec-head .link:hover { border-color: currentColor; }
.section--indigo .sec-head .link, .section--red .sec-head .link { color: var(--gold-soft); }
.section--gold .sec-head .link { color: var(--indigo-deep); }

/* ---------- Product grid + card ---------- */
.grid { display: grid; gap: clamp(.8rem, 1.6vw, 1.4rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .22s, box-shadow .22s, border-color .22s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
.card-media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--surface-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.04); }
.tag { position: absolute; top: .6rem; left: .6rem; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .28rem .5rem; border-radius: 6px; color: #fff; }
.tag--sale { background: var(--red); }
.tag--sold { background: #6B6157; }
.card-body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.card-title { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.15; letter-spacing: -.01em; }
.card:hover .card-title { color: var(--red); }
.price { display: flex; align-items: baseline; gap: .5rem; margin-top: auto; padding-top: .4rem; }
.price .now { font-weight: 800; font-size: 1.05rem; }
.price .was { color: var(--ink-soft); text-decoration: line-through; font-size: .9rem; }
.price .now.sale { color: var(--red); }
/* One-of-a-kind stock signals — deliberately loud */
.stock-low { display: inline-flex; align-items: center; gap: .35rem; align-self: flex-start; background: var(--gold); color: #2A1E06; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .22rem .5rem; border-radius: 6px; margin-top: .1rem; }
.stock-out { color: var(--red); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-top: auto; padding-top: .4rem; }
.card--past .card-media img { filter: saturate(.55) brightness(.96); }
.card--past:hover .card-media img { filter: none; }

/* ---------- Collection cards (collections list) ---------- */
.coll-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; display: block; box-shadow: var(--shadow); }
.coll-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.coll-card:hover img { transform: scale(1.05); }
.coll-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,15,12,.78) 0%, rgba(20,15,12,.05) 60%); }
.coll-card .cap { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; z-index: 2; color: #fff; }
.coll-card .cap h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin: 0 0 .1rem; }
.coll-card .cap p { font-size: .85rem; color: #EADFCF; margin: 0; opacity: .9; }

/* ---------- Story ---------- */
.story { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem,3.5vw,3.5rem); align-items: center; }
.story-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5/4; }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-copy { display: flex; flex-direction: column; gap: .95rem; }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.value { padding: 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.value .ic { height: 40px; width: 40px; margin-bottom: .7rem; display: grid; place-items: center; border-radius: 9px; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.value h4 { margin: 0 0 .2rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.value p { margin: 0; font-size: .88rem; color: var(--ink-soft); }

/* ---------- Newsletter ---------- */
.news { text-align: center; max-width: 620px; margin: 0 auto; }
.news .display { color: #fff; }
.news p { color: #D7CDBD; }
.news form { display: flex; gap: .6rem; max-width: 440px; margin: 1.1rem auto 0; }
.news input { flex: 1; border: 0; border-radius: 10px; padding: .8rem 1.1rem; font: inherit; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D9CFC2; padding-block: clamp(2.5rem,5vw,3.5rem) 1.5rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h5 { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 1.05rem; margin: 0 0 .9rem; }
.site-footer a { color: #D9CFC2; font-size: .92rem; }
.site-footer a:hover { color: var(--gold-soft); }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.foot-social { display: flex; gap: .7rem; margin-top: .9rem; }
.foot-social a { display: grid; place-items: center; height: 38px; width: 38px; border-radius: 9px; border: 1px solid rgba(255,255,255,.18); }
.foot-social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.2rem; text-align: center; font-size: .82rem; color: #9c9085; }

/* ---------- Page header (collection / search / static) ---------- */
.page-head { padding-block: clamp(1.8rem, 3.5vw, 3rem); }
.page-head h1 { margin: .3rem 0 .5rem; font-size: clamp(2.6rem, 5.2vw, 4.4rem); }
.crumbs { font-size: .84rem; color: var(--ink-soft); display: flex; gap: .45rem; flex-wrap: wrap; }
.crumbs a:hover { color: var(--red); }
.crumbs .here { color: var(--ink); font-weight: 600; }

/* ---------- Toolbar (sort / count) ---------- */
.toolbar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.toolbar .count { color: var(--ink-soft); font-size: .92rem; }
.toolbar .spacer { margin-left: auto; }
.select { border: 1.5px solid var(--line); border-radius: 9px; padding: .55rem .8rem; font: inherit; font-size: .9rem; background: var(--surface); color: var(--ink); }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 2.5rem; }
.page-btn { display: inline-flex; align-items: center; gap: .4rem; border: 1.5px solid var(--line); background: var(--surface); border-radius: 9px; padding: .55rem .9rem; font-weight: 600; font-size: .9rem; color: var(--ink); transition: border-color .2s, color .2s; }
.page-btn:hover { border-color: var(--red); color: var(--red); }
.page-btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.page-info { font-weight: 600; font-size: .9rem; color: var(--ink-soft); padding-inline: .6rem; }

/* ---------- Product detail (PDP) ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem,3.5vw,3rem); align-items: start; }
.pdp-gallery { display: flex; flex-direction: column; gap: .7rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.pdp-main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/5; background: var(--surface-alt); }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; }
.pdp-thumbs button { border: 1.5px solid var(--line); border-radius: 9px; overflow: hidden; padding: 0; aspect-ratio: 1; background: none; cursor: pointer; }
.pdp-thumbs button.on { border-color: var(--red); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-title { margin: .5rem 0 .5rem; }
.pdp-price { font-size: 1.45rem; font-weight: 700; display: flex; align-items: baseline; gap: .6rem; }
.pdp-price .was { font-size: 1rem; color: var(--ink-soft); text-decoration: line-through; font-weight: 400; }
.pdp-price .now.sale { color: var(--red); }
.field { margin: 1.2rem 0; }
.field > label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: .5rem; }
.qty input, .select.full { width: 100%; }
.qty input { width: 96px; text-align: center; border: 1.5px solid var(--line); border-radius: 9px; padding: .7rem; font: inherit; background: var(--surface); color: var(--ink); }
.assurances { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.assurances li { display: flex; gap: .55rem; align-items: center; font-size: .9rem; color: var(--ink-soft); }
.assurances .ic { color: var(--gold); flex-shrink: 0; font-weight: 800; }
.pdp-meta { border-top: 1px solid var(--line); margin-top: 1.6rem; padding-top: 1.3rem; }
.pdp-meta h4 { font-family: var(--font-display); font-weight: 600; margin: 0 0 .5rem; font-size: 1.1rem; }
.pdp-meta p { color: var(--ink-soft); margin: 0 0 1rem; }

/* ---------- Cart ---------- */
.cart { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(1.5rem,3vw,2.5rem); align-items: start; }
.cart-list { display: flex; flex-direction: column; }
.cart-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item:first-child { padding-top: 0; }
.cart-item .thumb { width: 92px; aspect-ratio: 4/5; border-radius: 9px; overflow: hidden; background: var(--surface-alt); }
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h4 { margin: 0 0 .2rem; font-size: 1rem; font-weight: 600; }
.cart-item .variant { font-size: .85rem; color: var(--ink-soft); }
.cart-item .li-price { font-weight: 700; text-align: right; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 9px; overflow: hidden; margin-top: .5rem; }
.stepper button { border: 0; background: var(--surface); width: 32px; height: 32px; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.stepper span { min-width: 34px; text-align: center; font-weight: 600; font-size: .9rem; }
.link-remove { background: none; border: 0; color: var(--ink-soft); font-size: .82rem; cursor: pointer; margin-top: .4rem; padding: 0; }
.link-remove:hover { color: var(--red); }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.summary h3 { font-family: var(--font-display); font-weight: 600; margin: 0 0 1rem; }
.summary-row { display: flex; justify-content: space-between; padding: .5rem 0; font-size: .95rem; color: var(--ink-soft); }
.summary-row.total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .9rem; font-size: 1.15rem; font-weight: 700; color: var(--ink); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(1.5rem,3vw,2.5rem); align-items: start; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.info-card h3 { font-family: var(--font-display); font-weight: 600; margin: 0 0 .3rem; font-size: 1.05rem; }
.info-block + .info-block { margin-top: 1.3rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.hours { list-style: none; margin: .4rem 0 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; padding: .25rem 0; font-size: .92rem; }
.hours li span:first-child { color: var(--ink); font-weight: 600; }
.hours li span:last-child { color: var(--ink-soft); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; background: var(--surface-alt); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- About ---------- */
.prose { max-width: 66ch; }
.prose p { color: var(--ink-soft); margin: 0 0 1.15rem; font-size: 1.12rem; line-height: 1.6; }
.prose.on-dark p { color: rgba(255,255,255,.9); }
/* Big pull quote for drama / contrast */
.pull {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.12;
  letter-spacing: -.015em; margin: 0; text-wrap: balance;
}
.pull .mark { font-style: italic; }
/* Story card with thick colored spine (echoes the original about page) */
.storycard {
  background: var(--surface); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.8rem); border-left: 10px solid var(--red);
  box-shadow: var(--shadow);
}
.about-panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,3.5vw,3.5rem); align-items: center; }
.about-panel .media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); }
.about-panel .media img { width: 100%; height: 100%; object-fit: cover; }
.about-hero { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 21/9; box-shadow: var(--shadow); }
.about-hero img { width: 100%; height: 100%; object-fit: cover; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,3vw,2.5rem); }
.about-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .7rem; }
.about-gallery > div { border-radius: 10px; overflow: hidden; background: var(--surface-alt); }
.about-gallery img { width: 100%; height: 100%; object-fit: cover; }
.about-gallery .tall { grid-row: span 2; aspect-ratio: auto; }
.about-gallery .wide { grid-column: span 2; }

/* ---------- Empty / 404 ---------- */
.centered { min-height: 52vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .story, .pdp, .cart, .contact, .about-cols { grid-template-columns: 1fr; }
  .pdp-gallery, .summary, .pdp-thumbs { position: static; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .search, .nav-links, .lang { display: none; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item .thumb { width: 72px; }
  .cart-item .li-price { grid-column: 2; text-align: left; }
}
@media (max-width: 480px) {
  .grid--3, .grid--4, .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   Motion — one cohesive system, all one-time & reduced-motion safe
   ========================================================== */
.site-header { transition: box-shadow .3s ease; }
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgba(30,24,19,.5); }

@media (prefers-reduced-motion: no-preference) {
  /* Scroll reveal (fade + rise), staggered via --d on grid children */
  .reveal {
    opacity: 0; transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.22,.7,.2,1) var(--d,0ms),
                transform .7s cubic-bezier(.22,.7,.2,1) var(--d,0ms);
    will-change: opacity, transform;
  }
  .reveal.in { opacity: 1; transform: none; }

  /* Woven divider draws in left→right */
  .reveal-x {
    opacity: .001; transform: scaleX(0); transform-origin: left center;
    transition: transform .85s cubic-bezier(.22,.7,.2,1), opacity .3s ease;
  }
  .reveal-x.in { opacity: 1; transform: none; }

  /* Hero: slow settle-zoom + staggered content entrance */
  .hero img.hero-bg { animation: heroZoom 20s ease-out both; }
  @keyframes heroZoom { from { transform: scale(1.09); } to { transform: scale(1); } }

  .hero-inner > * { opacity: 0; animation: heroUp .85s cubic-bezier(.22,.7,.2,1) both; }
  .hero-inner > *:nth-child(1) { animation-delay: .15s; }
  .hero-inner > *:nth-child(2) { animation-delay: .30s; }
  .hero-inner > *:nth-child(3) { animation-delay: .45s; }
  .hero-inner > *:nth-child(4) { animation-delay: .60s; }
  @keyframes heroUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
}

/* ==========================================================
   Mobile navigation + mobile optimization
   ========================================================== */
.tb-full { display: inline; }
.tb-short { display: none; }
.topbar b { white-space: nowrap; }

.nav-toggle { display: none; align-items: center; justify-content: center; height: 44px; width: 44px; border: 0; background: transparent; color: var(--ink); border-radius: 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nav-toggle:hover { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
.nav-toggle .ic-close { display: none; }
.nav-toggle.is-open .ic-open { display: none; }
.nav-toggle.is-open .ic-close { display: block; }

.mobile-menu { display: none; }

@media (max-width: 720px) {
  .site-header { height: auto; }
  .nav { height: var(--header-h); }
  .nav-toggle { display: inline-flex; }

  .mobile-menu {
    display: block; overflow: hidden; max-height: 0;
    background: var(--bg); border-top: 1px solid var(--line);
    transition: max-height .32s ease;
  }
  .mobile-menu.open { max-height: 78vh; overflow-y: auto; }
  .mobile-menu .inner { padding: .5rem var(--gutter) 1.1rem; display: flex; flex-direction: column; }
  .m-search { display: flex; gap: .5rem; margin: .5rem 0 .3rem; }
  .m-search input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: .8rem .9rem; font: inherit; background: var(--surface); color: var(--ink); }
  .m-search button { border: 0; background: var(--red); color: #fff; border-radius: 10px; padding: 0 1rem; display: grid; place-items: center; }
  .m-link { display: block; padding: .95rem .3rem; font-weight: 700; font-size: 1.08rem; color: var(--ink); border-bottom: 1px solid var(--line); }
  .m-link.on { color: var(--red); }
  .m-lang { display: flex; gap: .6rem; margin-top: 1rem; }
  .m-lang a { flex: 1; text-align: center; padding: .8rem; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 800; color: var(--ink); }
  .m-lang a.on { background: var(--red); color: #fff; border-color: var(--red); }

  /* Stronger bottom scrim + text lower so the hero copy is readable on phones */
  .hero::after { background: linear-gradient(180deg, rgba(20,15,12,.28) 0%, rgba(20,15,12,.34) 40%, rgba(20,15,12,.72) 100%); }
  .hero-inner { justify-content: flex-end; padding-bottom: 2.2rem; }
}

@media (max-width: 600px) {
  .tb-full { display: none; }
  .tb-short { display: inline; }
  .topbar { font-size: .74rem; }
}

@media (max-width: 560px) {
  .display { overflow-wrap: break-word; }
  .hero h1 { font-size: clamp(1.95rem, 8.5vw, 2.7rem); }
  .hero .lede { font-size: 1.05rem; }
  .mega { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .section { padding-block: clamp(2rem, 7vw, 2.75rem); }
  .card-title { font-size: 1rem; }
  .price .now { font-size: 1rem; }
  .sec-head { margin-bottom: 1.2rem; }
  .btn { padding: .8rem 1.25rem; }         /* keep tap targets comfortable */
  .stepper button { width: 40px; height: 40px; }
  .pdp-thumbs { grid-template-columns: repeat(4, 1fr); }
  /* Simplify the About inspiration gallery to a clean stack */
  .about-gallery { aspect-ratio: auto !important; grid-template-columns: 1fr 1fr; }
  .about-gallery .tall, .about-gallery .wide { grid-column: auto !important; grid-row: auto !important; }
  .about-gallery > div { aspect-ratio: 1 / 1; }
}

@media (max-width: 380px) {
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
}

/* ==========================================================
   PHP app integration (predictive search, badge, utilities)
   ========================================================== */
.hidden { display: none !important; }
.search { position: relative; }
.predictive-results {
  position: absolute; top: calc(100% + 8px); left: 0;
  width: min(420px, 92vw); background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); z-index: 50; max-height: 70vh; overflow: auto;
}
.icon-btn .badge.hidden { display: none !important; }
.newsletter { display: flex; gap: .6rem; max-width: 420px; margin-top: .9rem; }
.newsletter input { flex: 1; min-width: 0; border: 0; border-radius: 10px; padding: .75rem 1rem; font: inherit; }
.newsletter-msg { font-size: .85rem; margin-top: .5rem; color: var(--gold-soft); }

/* ---------- PDP carousel (app.js) ---------- */
.pdp-main { position: relative; }
.pdp-main .carousel-slide.hidden { display: none; }
.pdp-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: .7rem; }
.pdp-arrow { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; width: 38px; height: 38px; cursor: pointer; font-size: 1rem; color: var(--ink); }
.pdp-arrow:hover { border-color: var(--red); color: var(--red); }
.pdp-dots { display: flex; gap: .45rem; align-items: center; }
.pdp-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer; padding: 0; transition: opacity .2s; }
