/* SunBrand storefront — editorial premium. Warm paper, ink, and gold. */

:root {
  color-scheme: light;
  --ink: #14110c;
  --ink-2: #241e15;
  --ink-soft: #3d3527;
  --muted: #6f6555;
  --paper: #f7f3ea;
  --paper-2: #efe7d8;
  --card: #fffdf9;
  --line: rgb(20 17 12 / 0.10);
  --line-2: rgb(20 17 12 / 0.16);
  --gold: #b8860b;
  --gold-hot: #e0a92e;
  --gold-soft: #f2d99a;
  /* Same hue as --gold, dark enough to clear 4.5:1 on paper, card, and paper-2.
     Use this whenever gold carries words; --gold stays for fills and rules. */
  --gold-ink: #866208;
  --ember: #b4541b;
  --good: #2c6a44;
  --danger: #9a2d1c;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  --shadow-sm: 0 2px 8px rgb(20 17 12 / 0.06);
  --shadow-md: 0 12px 32px rgb(20 17 12 / 0.10);
  --shadow-lg: 0 32px 80px rgb(20 17 12 / 0.18);

  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --max: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  font-synthesis-weight: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

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

/* ---------- Type ---------- */

h1, h2, h3, h4, .display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 0.45em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); }

p { margin: 0 0 1em; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-soft); max-width: 40rem; }
.muted { color: var(--muted); }
.tiny { font-size: 0.85rem; line-height: 1.5; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--gold-ink);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.kicker.bare::before { display: none; }
.on-dark .kicker, .kicker.light { color: var(--gold-soft); }

/* ---------- Header ---------- */

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 80;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip:focus-visible { transform: none; }
main:focus { outline: none; }

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar.is-stuck {
  background: rgb(247 243 234 / 0.88);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.04em;
  font-size: 1.4rem;
  transition: opacity 0.2s var(--ease);
}
.brand:hover { opacity: 0.72; }
.brand img { width: 34px; height: 34px; }
.brand small {
  display: block;
  font-family: var(--font);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-top: -2px;
}

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a.navlink {
  position: relative;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  padding: 9px 14px;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a.navlink:hover { color: var(--ink); background: rgb(20 17 12 / 0.05); }
.nav-links a.navlink[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav-links a.navlink[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-ink);
}

/* Transparent header over a dark hero */
.topbar.on-hero:not(.is-stuck) { color: var(--paper); }
.topbar.on-hero:not(.is-stuck) .brand,
.topbar.on-hero:not(.is-stuck) .navlink { color: rgb(247 243 234 / 0.88); }
.topbar.on-hero:not(.is-stuck) .brand small { color: rgb(247 243 234 / 0.55); }
.topbar.on-hero:not(.is-stuck) .navlink:hover { color: #fff; background: rgb(255 255 255 / 0.12); }
.topbar.on-hero:not(.is-stuck) .cart-btn {
  border-color: rgb(247 243 234 / 0.32);
  color: var(--paper);
  background: rgb(255 255 255 / 0.08);
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--card);
  text-decoration: none;
  font-size: 0.92rem;
  transition: all 0.25s var(--ease);
}
.cart-btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.cart-count {
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  /* 12px white-on-gold needs the deeper tone to clear 4.5:1. */
  background: var(--gold-ink);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  transition: transform 0.3s var(--ease);
}
.cart-count.bump { transform: scale(1.35); }

.menu-btn {
  display: none;
  border: 1px solid var(--line-2);
  background: var(--card);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), opacity 0.2s;
  box-shadow: 0 1px 2px rgb(20 17 12 / 0.16);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-hot), var(--gold));
  color: #2a1e05;
  font-weight: 600;
}
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); box-shadow: none; }
.btn-ghost:hover { border-color: var(--ink); background: rgb(20 17 12 / 0.04); }
.btn-light { background: rgb(255 255 255 / 0.1); border-color: rgb(255 255 255 / 0.3); color: #fff; backdrop-filter: blur(8px); }
.btn-light:hover { background: rgb(255 255 255 / 0.2); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(74vh, 618px);
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  isolation: isolate;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroDrift 26s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgb(12 10 7 / 0.94) 4%, rgb(12 10 7 / 0.55) 42%, rgb(12 10 7 / 0.30) 70%, rgb(12 10 7 / 0.52) 100%),
    linear-gradient(to right, rgb(12 10 7 / 0.62), rgb(12 10 7 / 0.12) 58%, transparent 80%);
}
.hero-inner { padding: 116px 0 56px; }
.hero h1 {
  max-width: 16ch;
  margin-bottom: 0.26em;
  font-size: clamp(2.35rem, 4.4vw, 3.65rem);
}
.hero .lede {
  color: rgb(247 243 234 / 0.82);
  max-width: 33rem;
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  margin-bottom: 22px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgb(247 243 234 / 0.2);
}
.hero-facts div { min-width: 116px; }
.hero-facts strong {
  display: block;
  font-family: var(--display);
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.hero-facts span { font-size: 0.84rem; color: rgb(247 243 234 / 0.62); letter-spacing: 0.04em; }

/* page header for interior pages */
.pagehead { padding: 122px 0 14px; }
.pagehead h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section.tight { padding: 46px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 30px;
}
.section-head h2 { margin-bottom: 0.15em; }
.section-head .lede { font-size: 1.04rem; max-width: 48ch; margin-bottom: 0; }

.band {
  background: var(--ink);
  color: var(--paper);
}
.band .lede { color: rgb(247 243 234 / 0.75); }
.band-soft { background: var(--paper-2); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Trust strip ---------- */

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.trust > div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--paper);
  padding: 22px 22px 24px;
}
.trust svg { flex: none; width: 19px; height: 19px; margin-top: 1px; color: var(--gold-ink); }
.trust strong { display: block; font-family: var(--display); font-size: 1.02rem; margin-bottom: 3px; }
.trust span { display: block; font-size: 0.85rem; color: var(--muted); line-height: 1.45; }

/* ---------- Product tiles ---------- */

.tiles { display: grid; gap: 22px; }
.tiles.two { grid-template-columns: repeat(2, 1fr); }
.tiles.three { grid-template-columns: repeat(3, 1fr); }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.35s var(--ease);
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.tile-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-2);
}
.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.5s var(--ease);
}
.tile:hover .tile-media img { transform: scale(1.07); }
.tile-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgb(12 10 7 / 0.62);
  backdrop-filter: blur(10px);
  color: var(--gold-soft);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}
.tile-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.tile-body h3 { margin-bottom: 0.2em; }
.tile-body .muted {
  flex: 1;
  margin-bottom: 14px;
  font-size: 0.94rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.tile-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.price { font-family: var(--display); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; }
.price small { font-family: var(--font); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; display: block; font-weight: 500; }
.tile-cta { font-size: 0.9rem; color: var(--gold-ink); font-weight: 600; white-space: nowrap; }
.tile:hover .tile-cta { text-decoration: underline; text-underline-offset: 4px; }

.chipspecs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.chipspecs span {
  font-size: 0.73rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ---------- Split feature ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.split.flip .split-media { order: 2; }
.split-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 2;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Steps ---------- */

.steps { counter-reset: step; padding: 0; margin: 0; list-style: none; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 60px;
  margin-bottom: 24px;
}
.steps li:last-child { margin-bottom: 0; }

/* horizontal variant: number sits above the copy instead of beside it */
.steps.row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.steps.row li { padding-left: 0; padding-top: 58px; margin-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  background: rgb(184 134 11 / 0.08);
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-ink);
}
.band .steps li::before {
  border-color: rgb(242 217 154 / 0.34);
  background: rgb(242 217 154 / 0.1);
  color: var(--gold-soft);
}
.steps strong { display: block; font-family: var(--display); font-size: 1.14rem; margin-bottom: 3px; }
.steps p { margin: 0; color: var(--muted); }
.band .steps p { color: rgb(247 243 234 / 0.7); }

/* ---------- Cards / panels ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
}
.card.flat { box-shadow: none; }
.card.dark { background: var(--ink); color: var(--paper); border-color: rgb(247 243 234 / 0.12); }
.card.dark .muted { color: rgb(247 243 234 / 0.62); }

.cta-band {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: 50px 48px;
  color: var(--paper);
  isolation: isolate;
}
.cta-band img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgb(12 10 7 / 0.92), rgb(12 10 7 / 0.55));
}
.cta-band h2 { max-width: 16ch; }
.cta-band p { max-width: 42ch; color: rgb(247 243 234 / 0.8); }

/* ---------- Product page ---------- */

.crumbs { padding: 110px 0 18px; font-size: 0.88rem; color: var(--muted); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 8px; opacity: 0.5; }

.pdp { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr); gap: 56px; align-items: start; }

.gallery-main {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ink-2);
  box-shadow: var(--shadow-md);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; animation: fadeIn 0.5s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }
.thumbs { display: flex; gap: 12px; margin-top: 14px; }
.thumb {
  width: 92px;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: var(--ink-2);
  transition: border-color 0.25s var(--ease), opacity 0.25s var(--ease);
  opacity: 0.6;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--gold); opacity: 1; }
.thumb:hover { opacity: 1; }

.specbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 34px 0;
}
.specbar div { background: var(--card); padding: 20px 18px; }
.specbar dt { font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
/* Two lines are always reserved so swapping accelerators never jolts the page. */
.specbar dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.16rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  min-height: 2.5em;
}

.includes { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.includes li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.includes li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* Not sticky. With five accelerators and three more option groups this panel is
   taller than any laptop screen, and a sticky element that overflows pins its
   own Add to cart off-screen. The buy bar below covers the same need. */
.buybox {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
}
.buybox .price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.buybox .price-row .price { font-size: 2.1rem; }

.option-set { padding: 20px 0; border-bottom: 1px solid var(--line); }
.option-set > .option-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.choices { display: grid; gap: 9px; }
.choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  border: 1px solid var(--line-2);
  background: var(--paper);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  font-size: 0.94rem;
  transition: all 0.22s var(--ease);
}
.choice:hover { border-color: var(--muted); }
.choice .add { color: var(--muted); font-size: 0.86rem; white-space: nowrap; }
.choice[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-sm);
}
.choice[aria-pressed="true"] .add { color: var(--gold-soft); }

/* Accelerator picker. Five GPUs need more than a name to choose between, but
   only the selected row spends the space explaining itself. */
.config-line { margin: 10px 0 0; font-size: 0.86rem; color: var(--muted); }
/* Reconciles this page's opening price with the "from" figure on the shop tile.
   Kept to one short line: the buy box is already taller than a laptop screen. */
.price-cell { display: grid; gap: 3px; min-width: 0; }
.price-floor { font-size: 0.78rem; line-height: 1.35; color: var(--muted); }
.option-help { margin: -2px 0 12px; font-size: 0.84rem; line-height: 1.45; color: var(--muted); }

/* An explicit 100% track, because a button's anonymous content box sizes an
   implicit auto track to its widest child and the prices stop aligning. */
.choice.accel { display: grid; grid-template-columns: 100%; gap: 5px; padding: 14px 16px; }
.accel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.accel-name { font-weight: 500; }
.accel-facts { display: flex; align-items: center; gap: 9px; font-size: 0.8rem; color: var(--muted); }
.accel-tier {
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.71rem;
  letter-spacing: 0.03em;
}
.accel-why { display: none; margin-top: 5px; font-size: 0.85rem; line-height: 1.52; }
.choice.accel[aria-pressed="true"] .accel-why { display: block; color: rgba(255, 255, 255, 0.72); }
.choice.accel[aria-pressed="true"] .accel-facts { color: rgba(255, 255, 255, 0.58); }
.choice.accel[aria-pressed="true"] .accel-tier { border-color: rgba(255, 255, 255, 0.26); color: var(--gold-soft); }

/* Running total and Add to cart, always within reach while you configure. */
.buybar {
  position: fixed;
  inset: auto 0 0;
  z-index: 55;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(20, 17, 12, 0.09);
  transform: translateY(105%);
  transition: transform 0.32s var(--ease);
}
.buybar.show { transform: none; }
.buybar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 13px 0; }
.buybar-what { display: grid; gap: 2px; min-width: 0; }
.buybar-what strong { font-family: var(--display); font-size: 1.05rem; letter-spacing: -0.01em; }
.buybar-what span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buybar-act { display: flex; align-items: center; gap: 18px; flex: none; }
.buybar-act .price { font-size: 1.4rem; }

@media (max-width: 700px) {
  .buybar-inner { gap: 14px; padding: 10px 0; }
  .buybar-what strong { font-size: 0.95rem; }
  .buybar-what span { display: none; }
  .buybar-act { gap: 12px; }
  .buybar-act .price { font-size: 1.15rem; }
}

.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 0; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.stepper button { width: 42px; height: 44px; border: 0; background: var(--paper); font-size: 1.15rem; transition: background 0.2s; }
.stepper button:hover { background: var(--paper-2); }
.stepper input { width: 52px; height: 44px; text-align: center; border: 0; background: var(--card); font-variant-numeric: tabular-nums; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input { -moz-appearance: textfield; }

.assure { display: grid; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.assure div { display: flex; gap: 10px; font-size: 0.86rem; color: var(--muted); }
.assure svg { flex: none; margin-top: 2px; color: var(--gold-ink); }

/* ---------- Cart drawer ---------- */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgb(12 10 7 / 0.5);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.scrim.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: min(430px, 100vw);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.42s var(--ease);
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 { margin: 0; }
.drawer-close {
  border: 0;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border-radius: 999px;
}
.drawer-close:hover { color: var(--ink); background: rgb(20 17 12 / 0.05); }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 26px; }
.drawer-foot { padding: 22px 26px 28px; border-top: 1px solid var(--line); background: var(--card); }
.drawer-foot .row { display: flex; justify-content: space-between; margin-bottom: 14px; }

.mini-line { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mini-line img { width: 72px; height: 58px; object-fit: cover; border-radius: 10px; flex: none; }
.mini-line strong { display: block; font-family: var(--display); font-size: 1.02rem; }

/* ---------- Cart page ---------- */

.cart-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.85fr); gap: 40px; align-items: start; }
.cart-line {
  display: grid;
  grid-template-columns: 132px 1fr auto;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.cart-line:first-child { padding-top: 0; }
.cart-line img { width: 132px; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-md); }
.cart-line h3 { margin-bottom: 0.2em; }
.cart-line .stepper { margin-top: 12px; }
.cart-line .line-price { font-family: var(--display); font-size: 1.3rem; text-align: right; white-space: nowrap; }
.remove {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 0;
  font-size: 0.86rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 10px;
}
.remove:hover { color: var(--danger); }

.summary { position: sticky; top: 104px; }
.summary .row { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.summary .row.total {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-size: 1.3rem;
}

.empty-state { text-align: center; padding: 80px 24px; }
.empty-state img { width: 84px; margin: 0 auto 24px; opacity: 0.5; }

/* ---------- Forms ---------- */

.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field > span {
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 500;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  background: var(--card);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgb(184 134 11 / 0.14);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .wide { grid-column: 1 / -1; }

.pay-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 22px; }
.pay-opt {
  text-align: left;
  border: 1px solid var(--line-2);
  background: var(--card);
  border-radius: var(--r-md);
  padding: 18px;
  transition: all 0.25s var(--ease);
}
.pay-opt strong { display: block; font-family: var(--display); font-size: 1.06rem; margin-bottom: 3px; }
.pay-opt span { font-size: 0.83rem; color: var(--muted); }
.pay-opt[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: var(--paper-2); }
.pay-opt[aria-pressed="true"] span { color: var(--ink-soft); }

.checkout-steps { display: flex; gap: 8px; align-items: center; margin-bottom: 30px; font-size: 0.84rem; color: var(--muted); }
.checkout-steps b { color: var(--ink); font-weight: 500; }
.checkout-steps i { width: 26px; height: 1px; background: var(--line-2); display: inline-block; font-style: normal; }

#payment-element { padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff; }

/* ---------- Notices / toast ---------- */

.notice {
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: rgb(44 106 68 / 0.09);
  color: var(--good);
  margin: 16px 0;
  font-size: 0.92rem;
  border: 1px solid rgb(44 106 68 / 0.18);
}
.notice.bad { background: rgb(154 45 28 / 0.08); color: var(--danger); border-color: rgb(154 45 28 / 0.2); }
.notice.warn { background: rgb(184 134 11 / 0.1); color: #7a5a08; border-color: rgb(184 134 11 / 0.22); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 100;
  transform: translate(-50%, 130%);
  background: var(--ink);
  color: var(--paper);
  padding: 15px 24px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-size: 0.93rem;
  transition: transform 0.45s var(--ease);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 40px);
}
.toast.show { transform: translate(-50%, 0); }
.toast b { color: var(--gold-soft); font-weight: 500; }

/* ---------- Skeleton ---------- */

.skeleton {
  border-radius: var(--r-lg);
  background: linear-gradient(100deg, var(--paper-2) 30%, rgb(255 255 255 / 0.6) 50%, var(--paper-2) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.3s infinite linear;
  min-height: 380px;
}
@keyframes shimmer { from { background-position: 180% 0; } to { background-position: -80% 0; } }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Footer ---------- */

footer.site {
  background: var(--ink);
  color: rgb(247 243 234 / 0.7);
  padding: 56px 0 28px;
  margin-top: 0;
  font-size: 0.93rem;
}
footer.site .brand { color: var(--paper); }
footer.site .brand small { color: rgb(247 243 234 / 0.45); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 34px; }
.foot-grid strong {
  display: block;
  color: var(--paper);
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}
.foot-grid a {
  display: block;
  color: rgb(247 243 234 / 0.7);
  text-decoration: none;
  margin-bottom: 9px;
  transition: color 0.2s var(--ease);
}
.foot-grid a:hover { color: var(--gold-hot); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgb(247 243 234 / 0.14);
  font-size: 0.85rem;
  color: rgb(247 243 234 / 0.5);
}

/* ---------- Legal / prose ---------- */

.prose { max-width: 68ch; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; color: var(--ink-soft); }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .pdp { grid-template-columns: 1fr; gap: 42px; }
  .cart-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .wrap, .narrow { width: calc(100% - 36px); }
  .tiles.two, .tiles.three { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.flip .split-media { order: 0; }
  .steps.row { grid-template-columns: 1fr; gap: 20px; }
  .steps.row li { padding-top: 0; padding-left: 56px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .specbar { grid-template-columns: 1fr 1fr; }
  .section { padding: 54px 0; }
  .section.tight { padding: 38px 0; }
  .hero { min-height: min(70vh, 560px); }
  .hero-inner { padding: 112px 0 48px; }
  .hero-facts { gap: 12px 28px; margin-top: 22px; padding-top: 16px; }
  .hero-facts strong { font-size: 1.28rem; }
  .cta-band { padding: 40px 26px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cart-line { grid-template-columns: 92px 1fr; }
  .cart-line img { width: 92px; }
  .cart-line .line-price { grid-column: 2; text-align: left; }
  .form-grid { grid-template-columns: 1fr; }
  .nav-links .navlink { display: none; }
  .menu-btn { display: inline-flex; }
  .crumbs { padding-top: 96px; }
  .pagehead { padding-top: 102px; }

  /* Thumbs need a 44px target. On desktop these lists are deliberately tight,
     so the extra height is bought back only where the tapping happens. */
  .foot-grid a { padding: 11px 0; margin-bottom: 0; }
  .crumbs { font-size: 0.92rem; }
  .crumbs a { display: inline-block; padding: 11px 0; }
  .crumbs span { margin: 0 4px; }
}

@media (max-width: 520px) {
  .trust { grid-template-columns: 1fr; }
  .pay-toggle { grid-template-columns: 1fr; }
  .thumb { width: 72px; }
}
