/* =========================================================
   RASÉYA — storefront styles
   Tokens → base → components → pages → responsive
   ========================================================= */

:root {
  --bone: #f6f3ef;
  --paper: #ffffff;
  --sand: #ece5db;
  --line: #e3dbd0;
  --line-soft: #efe9e1;
  --ink: #1f1b18;
  --ink-soft: #4a423b;
  /* 5.04:1 on white, 4.56:1 on the bone background — clears WCAG AA for the
     secondary text this is used for. The old #8a7f75 only reached 3.9:1. */
  --muted: #786d63;
  --clay: #9c6f5e;
  --clay-soft: #c9a898;
  --sage: #a9c5b8;
  --success: #2f6b46;
  --danger: #a33a2c;

  --shadow-sm: 0 1px 2px rgba(31, 27, 24, .05);
  --shadow-md: 0 12px 34px -14px rgba(31, 27, 24, .2);
  --shadow-lg: 0 30px 70px -28px rgba(31, 27, 24, .32);

  --serif: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;

  --wrap: 1280px;
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.12;
  margin: 0;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }

.eyebrow {
  font-size: .7rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
  margin: 0 0 1rem;
}
.muted { color: var(--muted); }
.center { text-align: center; }
.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;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem 2rem;
  border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--bone);
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), opacity .2s var(--ease);
}
.btn:hover { background: var(--clay); border-color: var(--clay); color: #fff; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn:disabled:hover { background: var(--ink); border-color: var(--ink); color: var(--bone); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--bone); }

.btn-light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--clay); border-color: var(--clay); color: #fff; }

.btn-sm { padding: .7rem 1.2rem; font-size: .66rem; }
.btn-block { width: 100%; }

.btn-line {
  background: none; border: none; padding: 0 0 3px;
  border-bottom: 1px solid var(--clay);
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
}
.btn-line:hover { color: var(--clay); }

/* ---------------- Header ---------------- */
.announce {
  background: var(--ink); color: var(--sand);
  text-align: center; font-size: .68rem;
  letter-spacing: .22em; text-transform: uppercase; padding: .7rem 1rem;
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 239, .92);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 1rem; height: var(--header-h);
}

.brand {
  font-family: var(--serif);
  font-size: 1.6rem; letter-spacing: .34em;
  text-transform: uppercase; padding-left: .34em;
  grid-column: 2; justify-self: center; white-space: nowrap;
}

.nav { display: flex; gap: 1.5rem; grid-column: 1; }
.nav a {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft); padding: .4rem 0;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--ink); border-color: var(--clay); }

.header-actions {
  grid-column: 3; justify-self: end;
  display: flex; align-items: center; gap: 1.4rem;
}
.icon-btn {
  background: none; border: none; padding: 0;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft); display: inline-flex; align-items: center; gap: .5rem;
}
.icon-btn:hover { color: var(--ink); }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 6px;
  display: inline-grid; place-items: center;
  background: var(--clay); color: #fff;
  border-radius: 999px; font-size: .66rem; font-weight: 700; letter-spacing: 0;
}
.cart-count[data-empty="true"] { background: var(--line); color: var(--muted); }
.nav-toggle { display: none; }

/* ---------------- Search overlay ---------------- */
.search-bar {
  display: none; border-bottom: 1px solid var(--line-soft);
  background: var(--paper); padding: 1.2rem 0;
}
.search-bar.is-open { display: block; }
.search-bar input { border: none; font-size: 1.4rem; font-family: var(--serif); padding: .4rem 0; }
.search-bar input:focus { box-shadow: none; }

/* ---------------- Full-bleed banner (home) ----------------
   The brand's own hero shot, with the house quote over it. The scrim keeps
   the type legible over a light, low-contrast photograph. */
.banner { position: relative; isolation: isolate; background: var(--sand); }
.banner-img {
  width: 100%; height: min(76vh, 700px);
  object-fit: cover; object-position: center 38%;
}
/* Two scrims: a strong one down the text column, plus a soft lift from the
   base. The photograph is light and low-contrast, so a bottom-only gradient
   leaves the headline sitting unreadably over the pale bag. */
.banner::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right,
      rgba(28, 24, 21, .82) 0%, rgba(28, 24, 21, .66) 30%,
      rgba(28, 24, 21, .28) 58%, rgba(28, 24, 21, 0) 82%),
    linear-gradient(to top,
      rgba(28, 24, 21, .55) 0%, rgba(28, 24, 21, .18) 40%, rgba(28, 24, 21, 0) 68%);
}
.banner-inner {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  color: #fff;
}
.banner-inner h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  max-width: 20ch; margin-bottom: 1rem; color: #fff;
  text-wrap: balance;
}
.banner-inner h1 em { font-style: italic; color: #e6cec2; }
.banner-inner p {
  font-size: 1rem; color: rgba(255, 255, 255, .92);
  max-width: 42ch; margin: 0 0 2rem;
}
.banner-link { color: #fff; border-color: var(--clay-soft); }
.banner-link:hover { color: var(--clay-soft); }
.banner--short .banner-img { height: min(44vh, 380px); }

/* Long-form brand copy (About) */
.story p {
  font-size: 1.08rem; line-height: 1.8;
  color: var(--ink-soft); margin: 0 0 1.5rem; max-width: 62ch;
}
.story p:first-of-type {
  font-size: 1.35rem; line-height: 1.6;
  color: var(--ink); font-family: var(--serif);
}
.pull-quote {
  margin: 3rem 0 0; padding-top: 2.2rem;
  border-top: 1px solid var(--line);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  color: var(--clay); text-align: center;
}

/* ---------------- Hero (split, used on About) ---------------- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: min(78vh, 720px);
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 4.5rem clamp(1.5rem, 5vw, 5rem);
}
.hero-copy h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  margin-bottom: 1.4rem;
}
.hero-copy h1 em { font-style: italic; color: var(--clay); }
.hero-copy p { font-size: 1.05rem; color: var(--ink-soft); max-width: 44ch; margin: 0 0 2.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.8rem; align-items: center; }
.hero-media { position: relative; background: var(--sand); overflow: hidden; min-height: 60vh; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- Value strip ---------------- */
.strip { background: var(--paper); border-block: 1px solid var(--line-soft); }
.strip-inner {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; padding: 2.2rem 0; text-align: center;
}
.strip h4 { font-size: .95rem; margin-bottom: .25rem; }
.strip p { margin: 0; font-size: .85rem; color: var(--muted); }

/* ---------------- Sections ---------------- */
.section { padding: 5.5rem 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; margin-bottom: 3rem;
}
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.section-head p { margin: .7rem 0 0; color: var(--muted); max-width: 54ch; }

/* ---------------- Product grid ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 3rem 1.6rem;
}

.card { display: flex; flex-direction: column; position: relative; }
.card-media {
  position: relative; background: var(--sand);
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3 / 4;
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease), opacity .4s var(--ease);
}
.card:hover .card-media img.primary { transform: scale(1.04); }
/* Second photo fades in on hover when the product has one. */
.card-media img.secondary { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-media img.secondary { opacity: 1; }

.card-media-link { position: absolute; inset: 0; z-index: 1; }

.card-tag {
  position: absolute; top: .8rem; left: .8rem; z-index: 2;
  background: var(--ink); color: var(--bone);
  font-size: .6rem; letter-spacing: .18em; text-transform: uppercase;
  padding: .35rem .65rem; border-radius: var(--radius);
}
.card-tag[data-tone="sale"] { background: var(--clay); }
.card-tag[data-tone="new"] { background: var(--paper); color: var(--ink); }
.card-tag[data-tone="out"] { background: rgba(31, 27, 24, .55); }

.card-quick {
  position: absolute; inset-inline: .8rem; bottom: .8rem; z-index: 2;
  opacity: 0; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.card:hover .card-quick, .card:focus-within .card-quick { opacity: 1; transform: none; }

/* Touch devices never fire :hover, so this button stayed invisible while still
   sitting above the product link and swallowing taps — tapping the bottom of a
   photo silently added an item instead of opening the product. Show it. */
@media (hover: none) {
  .card-quick { opacity: 1; transform: none; }
}
.card-quick .btn { width: 100%; padding: .85rem 1rem; }

.card-body { padding-top: 1rem; display: flex; flex-direction: column; gap: .2rem; }
.card-name { font-family: var(--serif); font-size: 1.15rem; }
.card-tagline { font-size: .84rem; color: var(--muted); }
.card-price { margin-top: .3rem; font-size: .94rem; }
.card-price s { color: var(--muted); margin-right: .5rem; font-size: .85rem; }
.card-price .now { color: var(--clay); }

/* Colour swatches on the card — their live store cannot show these. */
.swatches { display: flex; gap: .35rem; margin-top: .55rem; }
.swatch {
  width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid rgba(31, 27, 24, .18);
  padding: 0; background-clip: padding-box;
}
.swatch[data-out="true"] { opacity: .3; }
.swatch.is-active { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink); }
.swatch-more { font-size: .74rem; color: var(--muted); align-self: center; }

/* ---------------- Collection cards ---------------- */
.collection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.collection-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3; background: var(--sand); display: block;
}
.collection-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease);
}
.collection-card:hover img { transform: scale(1.05); }
.collection-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(31, 27, 24, .6), rgba(31, 27, 24, 0) 60%);
}
.collection-card-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 2rem; color: #fff;
}
.collection-card-body h3 { font-size: 1.8rem; color: #fff; margin-bottom: .3rem; }
.collection-card-body p { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .82); }

/* ---------------- Editorial ---------------- */
.editorial { background: var(--sand); padding: 5.5rem 0; }
.editorial-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.editorial h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 1.3rem; }
.editorial p { color: var(--ink-soft); margin: 0 0 1rem; }
.editorial-art { aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.editorial-art img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- Page head / toolbar ---------------- */
.page-head { padding: 3.5rem 0 2rem; }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: .6rem; }
.page-head p { color: var(--muted); margin: 0; max-width: 60ch; }

.toolbar {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  justify-content: space-between;
  padding-bottom: 1.4rem; margin-bottom: 2.6rem;
  border-bottom: 1px solid var(--line);
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  border: 1px solid var(--line); background: var(--paper);
  padding: .5rem 1.05rem; border-radius: 999px;
  font-size: .76rem; color: var(--ink-soft);
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--clay); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bone); }

input, select, textarea {
  font: inherit; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .85rem 1rem; width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
select { cursor: pointer; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(156, 111, 94, .14);
}
.toolbar select, .toolbar input { width: auto; min-width: 190px; }
label { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .45rem; }
textarea { resize: vertical; min-height: 90px; }

/* ---------------- Product detail ---------------- */
.product { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; padding: 2rem 0 5rem; }
.gallery { display: flex; flex-direction: column; gap: .8rem; }
.gallery-main {
  aspect-ratio: 3 / 4; border-radius: var(--radius);
  overflow: hidden; background: var(--sand); box-shadow: var(--shadow-sm);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .8rem; }
.gallery-thumbs button {
  width: 84px; aspect-ratio: 3 / 4; padding: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--sand); opacity: .65; transition: opacity .2s var(--ease), border-color .2s var(--ease);
}
.gallery-thumbs button.is-active { opacity: 1; border-color: var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: .4rem; }
.product-lede { color: var(--muted); font-size: 1rem; margin: 0 0 1.4rem; }
.product-price { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 1.6rem; }
.product-price s { color: var(--muted); font-size: 1.05rem; margin-right: .7rem; }
.product-price .now { color: var(--clay); }
.product-desc { color: var(--ink-soft); margin-bottom: 1.8rem; }

.option-block { margin-bottom: 1.6rem; }
.option-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: .7rem;
}
.option-head span:first-child {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.option-head strong { font-weight: 500; font-size: .92rem; }
.swatch-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.swatch-lg {
  width: 34px; height: 34px; border-radius: 50%; padding: 0;
  border: 1px solid rgba(31, 27, 24, .18); position: relative;
}
.swatch-lg.is-active { box-shadow: 0 0 0 2px var(--bone), 0 0 0 3px var(--ink); }
.swatch-lg[data-out="true"]::after {
  content: ''; position: absolute; inset: -1px;
  background: linear-gradient(to top left, transparent 46%, rgba(31,27,24,.5) 46%,
              rgba(31,27,24,.5) 54%, transparent 54%);
  border-radius: 50%;
}

.buy-row { display: flex; gap: 1rem; margin-bottom: 1rem; }
.qty { display: flex; align-items: center; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--paper); }
.qty button { width: 44px; height: 100%; background: none; border: none;
  font-size: 1.15rem; color: var(--ink-soft); }
.qty button:hover { color: var(--clay); }
.qty span { min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }

.stock-note { font-size: .85rem; color: var(--muted); margin: 0 0 1.6rem; }
.stock-note[data-low="true"] { color: var(--clay); }
.stock-note[data-out="true"] { color: var(--danger); }

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  cursor: pointer; padding: 1.1rem 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 1.1rem; color: var(--muted); }
.accordion details[open] summary::after { content: '−'; }
.accordion .acc-body { padding: 0 0 1.3rem; color: var(--ink-soft); font-size: .94rem; }
.accordion ul { margin: 0; padding-left: 1.1rem; }
.accordion li { margin-bottom: .35rem; }
.spec-row { display: flex; justify-content: space-between; gap: 2rem; padding: .35rem 0; }
.spec-row dt { color: var(--muted); margin: 0; }
.spec-row dd { margin: 0; text-align: right; }

/* Waitlist box on sold-out products */
.waitlist {
  border: 1px solid var(--line); background: var(--paper);
  border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.6rem;
}
.waitlist h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.waitlist p { margin: 0 0 1rem; font-size: .9rem; color: var(--muted); }
.waitlist form { display: flex; gap: .7rem; }

/* ---------------- Cart drawer ---------------- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(31, 27, 24, .38);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: min(420px, 100%); background: var(--bone);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .38s var(--ease);
  box-shadow: var(--shadow-lg);
}
.drawer.is-open { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.5rem; border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-size: 1.3rem; }
.drawer-close { background: none; border: none; font-size: 1.5rem; line-height: 1; color: var(--muted); }
.drawer-close:hover { color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.5rem; }
.drawer-foot { border-top: 1px solid var(--line); padding: 1.4rem 1.5rem; background: var(--paper); }

.mini-line { display: grid; grid-template-columns: 74px 1fr; gap: 1rem; padding: 1rem 0;
  border-bottom: 1px solid var(--line-soft); }
.mini-line img { width: 74px; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); background: var(--sand); }
.mini-line h4 { font-family: var(--serif); font-size: 1rem; margin-bottom: .1rem; }
.mini-line .meta { font-size: .8rem; color: var(--muted); }
.mini-line-foot { display: flex; justify-content: space-between; align-items: center; margin-top: .5rem; }

/* ---------------- Cart page ---------------- */
.cart-layout { display: grid; grid-template-columns: 1.5fr .9fr; gap: 3rem;
  align-items: start; padding-bottom: 5rem; }
.cart-line {
  display: grid; grid-template-columns: 110px 1fr auto;
  gap: 1.3rem; align-items: center;
  padding: 1.4rem 0; border-bottom: 1px solid var(--line);
}
.cart-line img { width: 110px; aspect-ratio: 3/4; object-fit: cover;
  border-radius: var(--radius); background: var(--sand); }
.cart-line h3 { font-size: 1.1rem; margin-bottom: .15rem; }
.cart-line .meta { font-size: .84rem; color: var(--muted); }
.cart-line-right { text-align: right; display: flex; flex-direction: column;
  align-items: flex-end; gap: .5rem; }
.link-remove { background: none; border: none; padding: 0; font-size: .78rem;
  color: var(--muted); text-decoration: underline; }
.link-remove:hover { color: var(--danger); }

.panel {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.9rem; box-shadow: var(--shadow-sm);
}
.panel h2 { font-size: 1.35rem; margin-bottom: 1.3rem; }
.panel + .panel { margin-top: 1.5rem; }

.totals div { display: flex; justify-content: space-between; gap: 1rem;
  padding: .45rem 0; font-size: .94rem; color: var(--ink-soft); }
.totals .grand {
  border-top: 1px solid var(--line); margin-top: .6rem; padding-top: 1rem;
  font-family: var(--serif); font-size: 1.35rem; color: var(--ink);
}
.ship-hint { margin: .9rem 0 0; padding: .8rem .95rem; background: var(--sand);
  border-radius: var(--radius); font-size: .82rem; color: var(--ink-soft); }
.ship-progress { height: 3px; background: var(--line); border-radius: 999px; margin-top: .7rem; overflow: hidden; }
.ship-progress span { display: block; height: 100%; background: var(--clay); transition: width .4s var(--ease); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }

.pay-options { display: grid; gap: .8rem; margin-bottom: 1.4rem; }
.pay-option {
  display: flex; gap: .9rem; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; background: var(--paper); cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
  /* This is a <label>, so undo the uppercase form-label styling. */
  text-transform: none; letter-spacing: normal;
  font-size: 1rem; color: var(--ink); margin-bottom: 0;
}
.pay-option:hover { border-color: var(--clay-soft); }
.pay-option.is-active { border-color: var(--clay); background: #fffcfa; }
.pay-option input { width: auto; margin: .3rem 0 0; accent-color: var(--clay); }
.pay-option strong { display: block; font-weight: 600; font-size: .94rem; }
.pay-option small { color: var(--muted); font-size: .82rem; }
.pay-marks { display: flex; gap: .3rem; margin-top: .5rem; flex-wrap: wrap; }
.pay-marks span {
  font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 3px; padding: .18rem .42rem; color: var(--muted);
}

.notice { padding: .9rem 1.1rem; border-radius: var(--radius); font-size: .9rem; margin-bottom: 1.2rem; }
.notice[data-tone="error"] { background: #fbeae7; color: var(--danger); border: 1px solid #f0cdc7; }
.notice[data-tone="info"] { background: var(--sand); color: var(--ink-soft); }
.notice[data-tone="success"] { background: #e9f3ec; color: var(--success); border: 1px solid #cde3d5; }

/* ---------------- Order confirmation ---------------- */
.confirm { max-width: 760px; margin-inline: auto; padding: 4rem 0 5rem; }
.confirm-badge {
  width: 64px; height: 64px; margin: 0 auto 1.6rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--sand);
  color: var(--clay); font-size: 1.6rem;
}
.confirm h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .7rem; }
.order-ref {
  font-family: var(--serif); font-size: 1.2rem; letter-spacing: .1em;
  background: var(--sand); padding: .5rem 1rem; border-radius: var(--radius);
  display: inline-block; margin: .6rem 0 2rem;
}
.status-pill {
  display: inline-block; font-size: .66rem; letter-spacing: .16em;
  text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; font-weight: 600;
}
.status-pill[data-status="paid"], .status-pill[data-status="delivered"] { background: #e9f3ec; color: var(--success); }
.status-pill[data-status="pending"], .status-pill[data-status="new"] { background: #fbf1de; color: #8a6314; }
.status-pill[data-status="failed"], .status-pill[data-status="cancelled"] { background: #fbeae7; color: var(--danger); }
.status-pill[data-status="shipped"], .status-pill[data-status="packed"] { background: #e7eef5; color: #2c4f70; }

/* ---------------- Newsletter + footer ---------------- */
.newsletter { background: var(--ink); color: var(--sand); padding: 4.5rem 0; text-align: center; }
.newsletter h2 { color: var(--bone); font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: .8rem; }
.newsletter p { color: #b8aca0; max-width: 48ch; margin: 0 auto 2rem; }
.newsletter form { display: flex; gap: .8rem; max-width: 470px; margin-inline: auto; }
.newsletter input { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .18); color: var(--bone); }
.newsletter input::placeholder { color: #90847a; }

.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; }
.footer-grid h5 { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1rem; font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-grid a { font-size: .9rem; color: var(--ink-soft); }
.footer-grid a:hover { color: var(--clay); }
.footer-note {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .8rem; color: var(--muted);
}

/* ---------------- States ---------------- */
.empty-state { text-align: center; padding: 5rem 1rem; }
.empty-state h2 { font-size: 1.7rem; margin-bottom: .6rem; }
.empty-state p { color: var(--muted); margin: 0 0 1.8rem; }

.skeleton {
  background: linear-gradient(100deg, var(--sand) 30%, #f2ebe1 50%, var(--sand) 70%);
  background-size: 220% 100%; animation: shimmer 1.3s infinite linear;
  border-radius: var(--radius);
}
.skeleton-card { aspect-ratio: 3 / 4; }
@keyframes shimmer { to { background-position: -220% 0; } }

.toast {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 90;
  background: var(--ink); color: var(--bone);
  padding: .95rem 1.3rem; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); font-size: .9rem;
  transform: translateY(140%); opacity: 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.toast.is-visible { transform: none; opacity: 1; }

/* ---------------- Admin ---------------- */
.tabs { display: flex; gap: 1.6rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.tab {
  background: none; border: none; padding: .8rem 0; margin-bottom: -1px;
  border-bottom: 2px solid transparent; color: var(--muted);
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
}
.tab.is-active { color: var(--ink); border-color: var(--ink); }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th, .data-table td { text-align: left; padding: .8rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.data-table tbody tr:hover { background: var(--sand); }
.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }
/* ---- Dashboard: chart, status list ---- */
/* One series, so one hue and no legend — the heading names it. */
.chart { display: flex; align-items: flex-end; gap: 2px; height: 160px; margin: 1.4rem 0 .5rem; }
.chart-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  height: 100%; position: relative; min-width: 0; }
.chart-bar {
  background: var(--clay); border-radius: 4px 4px 0 0;   /* rounded data-end */
  min-height: 2px; transition: background .15s var(--ease);
}
.chart-col[data-empty="true"] .chart-bar { background: var(--line); }
.chart-col:hover .chart-bar { background: var(--ink); }
.chart-col:hover .chart-tip { opacity: 1; transform: translate(-50%, -6px); }
.chart-tip {
  position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, 0);
  background: var(--ink); color: var(--bone); font-size: .72rem; line-height: 1.4;
  padding: .4rem .6rem; border-radius: var(--radius); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s var(--ease), transform .15s var(--ease);
  z-index: 5;
}
.chart-axis { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); }

.check-row {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: .95rem 0; border-bottom: 1px solid var(--line-soft);
}
/* Status never rides on colour alone: every row carries a mark and a label. */
.check-mark {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: .74rem; font-weight: 700;
}
.check-mark[data-ok="true"] { background: #e9f3ec; color: var(--success); }
.check-mark[data-ok="false"] { background: #fbeae7; color: var(--danger); }
.check-row strong { display: block; font-size: .94rem; font-weight: 600; }
.check-row span { font-size: .88rem; color: var(--ink-soft); }
.check-state { margin-left: auto; font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 700; white-space: nowrap; }
.check-state[data-ok="true"] { color: var(--success); }
.check-state[data-ok="false"] { color: var(--danger); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.stat span { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.stat strong { display: block; font-family: var(--serif); font-size: 1.8rem; font-weight: 400; margin-top: .3rem; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 56vh; order: -1; }
  .banner-img { height: min(68vh, 560px); }
  .editorial-inner, .product, .cart-layout { grid-template-columns: 1fr; gap: 2.4rem; }
  .collection-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 62px; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bone);
    border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: inline-flex; background: none; border: none; font-size: 1.3rem; color: var(--ink); grid-column: 1; }
  .header-inner { position: relative; }
  .brand { font-size: 1.25rem; letter-spacing: .28em; }
  .strip-inner { grid-template-columns: 1fr; gap: 1.4rem; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2rem 1rem; }
  .cart-line { grid-template-columns: 84px 1fr; }
  .cart-line img { width: 84px; }
  .cart-line-right { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .newsletter form { flex-direction: column; }
  .waitlist form { flex-direction: column; }
  .hero-copy { padding: 3rem 1.25rem; }
}

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