/* ==========================================================================
   PDFVault — storefront styles
   A warm, editorial design system: ink on paper, terracotta accents.
   ========================================================================== */

:root {
  --paper: #f8f4ec;
  --paper-2: #f2ebdd;
  --surface: #fffdf9;
  --surface-2: #f4eee2;
  --ink: #1a1815;
  --ink-soft: #3c372f;
  --muted: #756c5e;
  --muted-strong: #675e51;
  --line: #e5dccb;
  --line-strong: #cfc3ae;
  --accent: #b4471f;
  --accent-strong: #963716;
  --accent-soft: #f7e5da;
  --forest: #1f4034;
  --forest-soft: #e4eee8;
  --gold: #c08a2e;
  --cream: #faf6ec;
  --dark: #141210;
  --danger: #a5302a;
  --ok: #256b4b;
  --btn-bg: #1a1815;
  --btn-fg: #faf6ec;
  --shadow-sm: 0 1px 2px rgba(26, 24, 21, 0.05);
  --shadow-md: 0 1px 2px rgba(26, 24, 21, 0.04), 0 14px 36px -18px rgba(26, 24, 21, 0.24);
  --shadow-lg: 0 30px 70px -30px rgba(26, 24, 21, 0.35);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max: 1200px;
}

[data-theme='dark'] {
  --paper: #14120f;
  --paper-2: #191612;
  --surface: #1d1a16;
  --surface-2: #242019;
  --ink: #f4ede1;
  --ink-soft: #ded5c7;
  --muted: #a89c8a;
  --muted-strong: #b9ad9b;
  --line: #342d24;
  --line-strong: #4a4032;
  --accent: #e2784c;
  --accent-strong: #ee8d62;
  --accent-soft: #3a241a;
  --forest: #8fc0a9;
  --forest-soft: #1d2b25;
  --gold: #d9a441;
  --cream: #f4ede1;
  --btn-bg: #f4ede1;
  --btn-fg: #16130f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.2), 0 14px 36px -18px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
}

/* ── Reset ───────────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; }
fieldset { margin: 0; padding: 0; border: 0; }
table { border-collapse: collapse; width: 100%; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.022em; line-height: 1.07; }
h4, h5 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }

p { color: var(--ink-soft); }

a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ── Layout ──────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.site-main { min-height: 55vh; }

.section { padding: 92px 0; }
.section-tight { padding: 52px 0 72px; }

.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;
}

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

/* ── Typography helpers ──────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.2;
}
.eyebrow-lg { font-size: 12.5px; letter-spacing: 0.18em; }
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}
.eyebrow-light { color: #fdebd0; }

.h3 { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.h4 { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.h5 { font-family: var(--sans); font-size: 1rem; font-weight: 600; }
.lead { font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.55; color: var(--ink-soft); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; }
.optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 11.5px; }
.align-right { text-align: right; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -12px rgba(180, 71, 31, 0.7); }
.btn-accent:hover { background: var(--accent-strong); }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); background: var(--surface); }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-cream { background: var(--cream); color: #1a1815; }
.btn-cream:hover { background: #fff; }
.btn-danger-ghost { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.btn-danger-ghost:hover { background: color-mix(in srgb, var(--danger) 8%, transparent); border-color: var(--danger); }
.btn-lg { padding: 15px 27px; font-size: 15.5px; border-radius: 10px; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-arrow { transition: transform 0.2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.link-arrow span { transition: transform 0.2s ease; }
.link-arrow:hover span { transform: translateX(3px); }
.link-arrow:hover { text-decoration: underline; }

.link-btn {
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.link-btn:hover { color: var(--ink); text-decoration-color: currentColor; }
.link-danger { color: var(--danger); }
.link-danger:hover { color: var(--danger); }

/* ── Announcement + header ───────────────────────────────────────────── */
.announcement {
  background: var(--ink);
  color: var(--paper);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}
.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 9px 28px;
  text-align: center;
}
.announcement-link { color: var(--gold); text-decoration: none; font-weight: 600; white-space: nowrap; }
.announcement-link:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-mark { color: var(--accent); display: flex; }
.brand-word {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand-dot { color: var(--accent); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 12px;
  flex: 1;
}
.primary-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 0;
  position: relative;
  white-space: nowrap;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after, .primary-nav a.is-active::after { transform: scaleX(1); }
.primary-nav a.is-active { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.icon-btn {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.theme-toggle .icon-moon { display: none; }
[data-theme='dark'] .theme-toggle .icon-sun { display: none; }
[data-theme='dark'] .theme-toggle .icon-moon { display: block; }

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 6px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.cart-link:hover { border-color: var(--ink); background: var(--surface); }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px; height: 19px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.cart-count:empty { display: none; }
.nav-toggle { display: none; }

/* ── Flash + toast ───────────────────────────────────────────────────── */
.flash {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 22px 0 -6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
}
.flash p { flex: 1; color: var(--ink-soft); }
.flash-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  background: var(--forest-soft);
  color: var(--forest);
}
.flash-error { border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); background: color-mix(in srgb, var(--danger) 4%, var(--surface)); }
.flash-error .flash-icon { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.flash-info .flash-icon { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.flash-close { flex-shrink: 0; padding: 0 4px; color: var(--muted); font-size: 20px; line-height: 1; }
.flash-close:hover { color: var(--ink); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--paper);
  padding: 11px 20px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: var(--shadow-lg);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 0;
  background:
    radial-gradient(ellipse 60% 60% at 85% 10%, color-mix(in srgb, var(--gold) 11%, transparent), transparent 70%),
    radial-gradient(ellipse 50% 50% at 5% 40%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%);
}
.hero-glow {
  position: absolute;
  width: 620px; height: 620px;
  right: -220px; top: -180px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 12%, transparent), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 60px;
}
.hero-copy { position: relative; z-index: 2; animation: rise 0.7s ease both; }
.hero-title {
  margin: 18px 0 22px;
  font-size: clamp(2.9rem, 5.6vw, 5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero-sub {
  max-width: 34em;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  margin-top: 32px;
  padding: 0;
  font-size: 12.5px;
  color: var(--muted);
}
.trust-row li { display: inline-flex; align-items: center; gap: 7px; }
.trust-row span { color: var(--accent); font-size: 13px; }

.hero-visual { position: relative; z-index: 1; animation: rise 0.8s 0.1s ease both; }
.cover-stack {
  position: relative;
  height: 520px;
  max-width: 440px;
  margin: 0 auto;
}
.stack-item {
  position: absolute;
  width: 52%;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface-2);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.stack-item img { width: 100%; height: 100%; object-fit: cover; }
.stack-1 { left: 0; top: 16%; transform: rotate(-9deg); z-index: 1; }
.stack-2 { left: 24%; top: 4%; transform: rotate(0deg); z-index: 3; width: 56%; }
.stack-3 { right: 0; top: 18%; transform: rotate(8deg); z-index: 2; }
.cover-stack:hover .stack-1 { transform: rotate(-12deg) translate(-8px, -4px); }
.cover-stack:hover .stack-2 { transform: translateY(-8px) scale(1.015); }
.cover-stack:hover .stack-3 { transform: rotate(11deg) translate(8px, -4px); }
.stack-shadow {
  position: absolute;
  bottom: 7%; left: 12%; right: 12%;
  height: 40px;
  background: radial-gradient(ellipse, rgba(26, 24, 21, 0.22), transparent 70%);
  filter: blur(12px);
  z-index: 0;
}
.floating-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
  z-index: 5;
}
.floating-chip strong { color: var(--ink); font-size: 12.5px; }
.chip-rating { left: -2%; bottom: 9%; flex-direction: column; align-items: flex-start; gap: 5px; }
.chip-instant { right: -4%; top: 7%; }
.chip-icon {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 15px;
  flex-shrink: 0;
}
.hero-empty {
  height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.hero-empty-mark { font-family: var(--serif); font-size: 64px; color: var(--line-strong); letter-spacing: -0.04em; }
.hero-empty p { color: var(--muted); font-size: 14px; }

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 24px 0;
  position: relative;
  z-index: 3;
}
.stats-strip > div { padding: 0 28px; border-right: 1px solid var(--line); }
.stats-strip > div:first-child { padding-left: 0; }
.stats-strip > div:last-child { border-right: 0; }
.stats-strip dt {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.stats-strip dd {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  line-height: 1;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stats-strip dd > span { color: var(--accent); font-size: 0.62em; }
.stats-strip .stat-star { color: var(--gold); }
.stats-strip .stat-suffix { font-family: var(--sans); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; margin-left: 4px; }

/* ── Section headings ────────────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}
.section-head h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.02;
}
.section-head-center { justify-content: center; text-align: center; }
.section-head-center .eyebrow { justify-content: center; }

/* ── Product cards ───────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.product-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface-2);
}
.product-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.product-card:hover .product-cover img { transform: scale(1.035); }
.badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}
.badge-gold { background: var(--gold); color: #1a150c; }
.badge-sale { background: var(--accent); color: #fff; }
.badge-sample { background: color-mix(in srgb, var(--ink) 80%, transparent); color: var(--paper); backdrop-filter: blur(4px); }
.cover-hover {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  padding: 9px 12px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.product-card:hover .cover-hover { opacity: 1; transform: none; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 16px; }
.product-kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.product-pages { font-size: 11px; color: var(--muted); white-space: nowrap; }
.product-title { font-family: var(--serif); font-size: 21px; line-height: 1.16; font-weight: 600; letter-spacing: -0.02em; }
.product-title a { text-decoration: none; }
.product-title a:hover { color: var(--accent); }
.product-sub {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-rating { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.rating-text { font-size: 11.5px; color: var(--muted); }
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}
.price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.price-now { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.price-was { font-size: 12.5px; color: var(--muted); text-decoration: line-through; }
.quick-add { flex-shrink: 0; }

/* ── Stars ───────────────────────────────────────────────────────────── */
.stars {
  --rating: 5;
  position: relative;
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  line-height: 1;
  white-space: nowrap;
  color: var(--line-strong);
}
.stars::before { content: '★★★★★'; }
.stars::after {
  content: '★★★★★';
  position: absolute;
  left: 0; top: 0;
  width: calc(var(--rating) / 5 * 100%);
  overflow: hidden;
  color: var(--gold);
}
.stars-lg { font-size: 16px; }

/* ── Categories ──────────────────────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.category-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.category-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.category-cover {
  width: 62px; height: 84px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 18px -10px rgba(26, 24, 21, 0.5);
}
.category-cover img { width: 100%; height: 100%; object-fit: cover; }
.category-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.category-count { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.category-name { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.category-from { font-size: 12px; color: var(--accent); font-weight: 500; }
.category-from span { transition: transform 0.2s ease; display: inline-block; }
.category-card:hover .category-from span { transform: translateX(3px); }

/* ── How it works (dark band) ────────────────────────────────────────── */
.how-section {
  background: var(--dark);
  color: var(--cream);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.how-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 90% 0%, rgba(192, 138, 46, 0.12), transparent 70%);
  pointer-events: none;
}
.how-section .container { position: relative; }
.how-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.how-intro h2 {
  margin: 16px 0 20px;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--cream);
}
.how-intro h2 em { font-style: italic; color: var(--gold); }
.how-intro p { color: rgba(250, 246, 236, 0.62); font-size: 15.5px; max-width: 32em; }
.how-intro .link-arrow { margin-top: 26px; color: var(--gold); }
.steps { list-style: none; display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid rgba(250, 246, 236, 0.13);
}
.step:last-child { border-bottom: 1px solid rgba(250, 246, 236, 0.13); }
.step-num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.06em;
  padding-top: 4px;
}
.step h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: -0.02em; color: var(--cream); margin-bottom: 6px; }
.step p { color: rgba(250, 246, 236, 0.58); font-size: 14.5px; line-height: 1.65; max-width: 38em; }

/* ── Testimonials ────────────────────────────────────────────────────── */
.testimonials-section { background: var(--paper-2); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.testimonial-stars { margin-bottom: 16px; }
.testimonial blockquote {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.01em;
  flex: 1;
}
.testimonial figcaption { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.avatar {
  width: 38px; height: 38px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.testimonial figcaption span:last-child { display: flex; flex-direction: column; font-size: 11.5px; line-height: 1.4; }
.testimonial figcaption strong { font-size: 13px; }
.testimonial figcaption a { color: var(--muted); text-decoration: none; }
.testimonial figcaption a:hover { color: var(--accent); text-decoration: underline; }

/* ── CTA band ────────────────────────────────────────────────────────── */
.cta-band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 58px 56px;
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 30px 60px -40px rgba(180, 71, 31, 0.8);
}
.cta-band h2 {
  margin-top: 14px;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}
.cta-band-actions { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cta-band-actions p { color: rgba(255, 255, 255, 0.95); font-size: 14.5px; max-width: 30em; }
.cta-note { font-size: 11.5px; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.9); }
.cta-decoration {
  position: absolute;
  right: -10px; bottom: -70px;
  font-family: var(--serif);
  font-size: 260px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.08em;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
  user-select: none;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: var(--cream);
  margin-top: 40px;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 0.8fr 0.8fr 1.4fr;
  gap: 48px;
  padding-bottom: 48px;
}
.brand-footer { color: var(--cream); margin-bottom: 16px; }
.brand-footer .brand-dot { color: var(--gold); }
.footer-brand p { color: rgba(250, 246, 236, 0.55); font-size: 13.5px; line-height: 1.65; max-width: 30em; }
.footer-social { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
.footer-social a { font-size: 12px; color: rgba(250, 246, 236, 0.62); text-decoration: none; }
.footer-social a:hover { color: var(--gold); text-decoration: underline; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h3, .footer-news h3 {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 246, 236, 0.55);
  margin-bottom: 6px;
}
.footer-links a { font-size: 13.5px; color: rgba(250, 246, 236, 0.72); text-decoration: none; width: fit-content; }
.footer-links a:hover { color: var(--cream); text-decoration: underline; }
.footer-news p { font-size: 13px; color: rgba(250, 246, 236, 0.55); line-height: 1.6; margin-bottom: 14px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(250, 246, 236, 0.2);
  border-radius: 8px;
  background: rgba(250, 246, 236, 0.06);
  color: var(--cream);
  font-size: 13px;
}
.newsletter-form input::placeholder { color: rgba(250, 246, 236, 0.35); }
.newsletter-form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.newsletter-form .btn { flex-shrink: 0; background: var(--cream); color: #1a1815; border-radius: 8px; }
.newsletter-form .btn:hover { background: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 28px;
  border-top: 1px solid rgba(250, 246, 236, 0.12);
  font-size: 11.5px;
  color: rgba(250, 246, 236, 0.62);
}
.footer-bottom p { color: inherit; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal a { color: inherit; text-decoration: none; }
.footer-legal a:hover { color: var(--cream); }

/* ── Page heads ──────────────────────────────────────────────────────── */
.page-head {
  padding: 48px 0 34px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--surface-2) 45%, transparent), transparent);
}
.page-head-compact { padding-bottom: 28px; }
.page-head h1 {
  margin: 14px 0 10px;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.page-head-sub { font-size: 14px; color: var(--muted); }
.page-head-sub a { color: var(--accent); text-decoration: none; }
.page-head-sub a:hover { text-decoration: underline; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-hidden] { color: var(--line-strong); }

/* ── Catalogue ───────────────────────────────────────────────────────── */
.catalogue-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  min-width: 300px;
}
.catalogue-search svg { color: var(--muted); flex-shrink: 0; }
.catalogue-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  height: 36px;
  font-size: 13.5px;
  outline: none;
}
.catalogue-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip-count { font-size: 10px; opacity: 0.65; }
.sort-form { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.sort-form label { font-size: 11.5px; color: var(--muted); }
.sort-form select {
  height: 36px;
  padding: 0 30px 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23756c5e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  font-size: 12.5px;
  appearance: none;
}
.pagination { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 48px; }
.page-btn {
  min-width: 38px; height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}
.page-btn:hover { border-color: var(--ink); }
.page-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.page-ellipsis { color: var(--muted); padding: 0 4px; }

.empty-state {
  text-align: center;
  padding: 80px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.empty-glyph { display: block; font-size: 46px; line-height: 1; color: var(--line-strong); margin-bottom: 18px; }
.empty-state h2 { font-size: 28px; font-weight: 500; margin-bottom: 10px; }
.empty-state p { max-width: 38em; margin: 0 auto 24px; color: var(--muted); font-size: 14.5px; }
.empty-inline {
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}

/* ── Product page ────────────────────────────────────────────────────── */
.product-page { padding: 28px 0 20px; }
.product-layout {
  display: grid;
  grid-template-columns: minmax(300px, 470px) 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 14px;
}
.product-media-frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.product-media-frame img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.media-badge { top: 16px; left: 16px; font-size: 11px; padding: 7px 11px; }
.product-media-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.product-media-meta span { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.product-media-meta strong { font-size: 9.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.link-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}
.link-copy:hover { color: var(--accent); }

.product-info { padding-top: 6px; }
.product-h1 {
  margin: 14px 0 12px;
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.99;
  text-wrap: balance;
}
.product-lede { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 30em; }
.product-rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 18px 0 24px;
  font-size: 12.5px;
  color: var(--muted);
}
.product-rating-row strong { color: var(--ink); }
.product-rating-row a { color: var(--accent); text-decoration: none; }
.product-rating-row a:hover { text-decoration: underline; }
.dot-sep { color: var(--line-strong); }

.buy-box {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  max-width: 540px;
}
.buy-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 11px; }
.buy-price .price-now { font-size: 38px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.buy-price .price-was { font-size: 16px; }
.price-save {
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.buy-tax { margin-top: 7px; font-size: 11.5px; color: var(--muted); }
.buy-form { display: flex; flex-direction: column; gap: 9px; margin-top: 20px; }
.buy-incart { margin-top: 12px; font-size: 12px; color: var(--muted); }
.buy-incart a { color: var(--accent); font-weight: 600; text-decoration: none; }
.buy-perks { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.buy-perks li { display: flex; gap: 12px; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.buy-perks li > span {
  width: 28px; height: 28px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent);
  font-size: 13px;
}
.buy-perks strong { color: var(--ink); font-size: 12.5px; }
.buy-secure { display: flex; align-items: center; gap: 7px; margin-top: 18px; font-size: 10.5px; color: var(--muted); }

.product-highlights { margin-top: 30px; max-width: 540px; }
.product-highlights h2 { margin-bottom: 8px; }
.product-highlights ul { list-style: none; }
.product-highlights li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.product-highlights li strong { color: var(--ink); font-weight: 500; text-align: right; }

.product-content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 0.85fr); gap: 64px; align-items: start; }
.prose { max-width: 72ch; }
.prose > .eyebrow { margin-bottom: 12px; }
.prose h2 { margin: 0 0 22px; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 500; letter-spacing: -0.025em; }
.prose h3 { margin: 30px 0 10px; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.prose p { margin: 0 0 17px; font-size: 15.5px; line-height: 1.75; color: var(--ink-soft); }
.prose ul, .prose ol { margin: 16px 0 22px; padding-left: 20px; }
.prose li { margin-bottom: 8px; font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.prose ul li::marker { color: var(--accent); }
.prose a { color: var(--accent); }
.prose .btn { color: var(--btn-fg); }
.prose strong { color: var(--ink); }
.prose code { padding: 1px 5px; border-radius: 4px; background: var(--surface-2); font-size: 0.88em; }
.prose-wide { max-width: 780px; margin: 0 auto; }
.prose-cta { margin-top: 40px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.prose-cta p { margin: 0; font-family: var(--serif); font-size: 18px; color: var(--ink); }
.prose-note { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

.product-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.aside-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.aside-card h3 { margin-bottom: 9px; }
.aside-card p { font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.aside-card .link-arrow { margin-top: 12px; }
.aside-card-accent { background: var(--forest); border-color: var(--forest); }
.aside-card-accent h3 { color: var(--cream); }
.aside-card-accent p { color: rgba(250, 246, 236, 0.85); }
.aside-card-accent .aside-list li { color: rgba(250, 246, 236, 0.78); }
.aside-card-accent .aside-list li::before { color: var(--gold); }
.aside-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.aside-list li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.aside-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-size: 11px; }
.aside-list a { color: inherit; text-decoration: underline; }

/* ── Reviews ─────────────────────────────────────────────────────────── */
.section-reviews { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reviews-layout { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; margin-bottom: 40px; }
.reviews-summary { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.reviews-score { display: flex; align-items: center; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.score-number { font-family: var(--serif); font-size: 56px; line-height: 0.9; font-weight: 500; letter-spacing: -0.04em; }
.reviews-score p { margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.rating-bars { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.rating-bars li { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); }
.rating-label { width: 26px; flex-shrink: 0; }
.rating-track { flex: 1; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.rating-fill { display: block; height: 100%; border-radius: 99px; background: var(--gold); }
.rating-count { width: 18px; text-align: right; }
.review-form-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.review-form-card h3 { margin-bottom: 6px; }
.form-hint { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.star-field { margin-bottom: 16px; }
.star-field legend { font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 3px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 25px; line-height: 1; color: var(--line-strong); cursor: pointer; transition: color 0.12s ease; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--gold); }

.review-list { display: flex; flex-direction: column; }
.review { padding: 24px 0; border-top: 1px solid var(--line); }
.review:first-child { border-top: 0; }
.review-head { display: flex; align-items: center; gap: 12px; }
.review-who { flex: 1; display: flex; flex-direction: column; font-size: 11.5px; color: var(--muted-strong); }
.review-who strong { font-size: 13.5px; color: var(--ink); }
.verified { color: var(--ok); font-weight: 600; }
.review p { margin-top: 12px; font-size: 14.5px; line-height: 1.7; max-width: 74ch; }

/* ── Cart ────────────────────────────────────────────────────────────── */
.checkout-progress { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 4px 0 18px; font-size: 11.5px; color: var(--muted); }
.checkout-progress span { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.progress-num {
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
}
.checkout-progress .is-current { color: var(--ink); }
.checkout-progress .is-current .progress-num { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.checkout-progress .is-done { color: var(--ok); }
.checkout-progress .is-done .progress-num { background: var(--forest-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); color: var(--ok); }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr); gap: 44px; align-items: start; }
.cart-items { display: flex; flex-direction: column; }
.cart-item {
  display: grid;
  grid-template-columns: 104px 1fr auto;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.cart-item:first-child { border-top: 0; padding-top: 0; }
.cart-thumb { width: 104px; aspect-ratio: 3/4; border-radius: 5px; overflow: hidden; box-shadow: var(--shadow-md); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-body h2 { margin: 5px 0 4px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.cart-item-body h2 a { text-decoration: none; }
.cart-item-body h2 a:hover { color: var(--accent); }
.cart-item-sub { font-size: 13px; color: var(--muted); margin-bottom: 7px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item-meta { font-size: 11.5px; color: var(--muted); }
.cart-remove { margin-top: 10px; }
.cart-item-price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cart-item-price .price-now { font-size: 17px; }
.continue-link { margin-top: 8px; font-size: 13px; color: var(--accent); text-decoration: none; font-weight: 500; width: fit-content; }
.continue-link:hover { text-decoration: underline; }

.cart-summary { position: sticky; top: 96px; }
.summary-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.summary-card h2 { margin-bottom: 18px; }
.summary-lines { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.summary-lines > div { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; color: var(--muted); }
.summary-lines dd { color: var(--ink); font-weight: 500; }
.summary-discount dd { color: var(--ok); }
.summary-total { padding-top: 12px; border-top: 1px solid var(--line); font-size: 16px !important; color: var(--ink) !important; }
.summary-total dt { font-weight: 600; }
.summary-total dd { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.summary-tax { margin-top: 6px; font-size: 10.5px; color: var(--muted); }
.coupon-code {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--forest-soft);
  color: var(--ok);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.coupon-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.coupon-form > label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.coupon-input { display: flex; gap: 7px; }
.coupon-input input {
  flex: 1; min-width: 0;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 10px 12px; border-radius: 8px; background: var(--forest-soft); font-size: 11.5px; color: var(--ok); }
.field-error { margin-top: 7px; font-size: 11.5px; color: var(--danger); }
.summary-cta { margin-top: 18px; }
.summary-perks { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.summary-perks li { display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--muted); }
.summary-perks span { color: var(--accent); font-size: 12px; width: 14px; }
.summary-help { margin-top: 18px; text-align: center; font-size: 12px; color: var(--muted); }
.summary-help a { color: var(--accent); text-decoration: none; }
.summary-help a:hover { text-decoration: underline; }

/* ── Notices ─────────────────────────────────────────────────────────── */
.notice {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--gold) 7%, var(--surface));
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 26px;
}
.notice-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 18%, transparent);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}
.notice code { padding: 1px 5px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 7%, transparent); font-size: 0.9em; }
.notice-compact { margin: 18px 0 0; }

/* ── Checkout ────────────────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr); gap: 40px; align-items: start; }
.checkout-main { display: flex; flex-direction: column; gap: 18px; }
.checkout-panel { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.checkout-panel-muted { background: var(--surface-2); }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.panel-head span { font-size: 11.5px; color: var(--muted); }
.checkout-form .field { margin-bottom: 18px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 20px; font-size: 12px; line-height: 1.55; color: var(--muted); }
.checkbox input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.checkbox a { color: var(--accent); }
.checkout-error {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--danger) 6%, var(--surface));
  font-size: 12.5px;
  color: var(--danger);
}
.checkout-error span { font-weight: 700; }
.checkout-error p { color: var(--danger); }
.checkout-error[hidden] { display: none; }
.checkout-pay { position: relative; }
.checkout-pay.is-loading [data-pay-label] { opacity: 0.65; }
.btn-spinner {
  display: none;
  width: 15px; height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.checkout-pay.is-loading .btn-spinner { display: inline-block; }
.checkout-secure { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 12px; font-size: 10.5px; color: var(--muted); }
.delivery-row { display: flex; gap: 14px; }
.delivery-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--line);
}
.delivery-row strong { font-size: 13.5px; }
.delivery-row p { margin-top: 4px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.checkout-aside { position: sticky; top: 96px; }
.summary-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.summary-head a { font-size: 12px; color: var(--accent); text-decoration: none; }
.summary-items { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.summary-items li { display: flex; align-items: center; gap: 12px; }
.summary-items img { width: 44px; height: 59px; object-fit: cover; border-radius: 3px; box-shadow: 0 4px 10px -6px rgba(0, 0, 0, 0.5); flex-shrink: 0; }
.summary-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.summary-item-info strong { font-size: 12px; font-weight: 600; line-height: 1.35; }
.summary-item-info span { font-size: 10.5px; color: var(--muted); }
.summary-item-price { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.payment-methods { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 18px; }
.payment-methods span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: var(--paper);
}
.checkout-aside-note { text-align: center; margin-top: 16px; font-size: 11.5px; color: var(--muted); }
.checkout-aside-note a { color: var(--accent); }

/* ── Success + downloads ─────────────────────────────────────────────── */
.success-hero {
  position: relative;
  text-align: center;
  padding: 64px 0 46px;
  background:
    radial-gradient(ellipse 45% 70% at 50% 0%, color-mix(in srgb, var(--forest) 9%, transparent), transparent 70%),
    linear-gradient(to bottom, var(--surface-2), transparent);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.success-mark {
  width: 78px; height: 78px;
  margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  box-shadow: 0 20px 40px -20px rgba(31, 64, 52, 0.7);
  animation: pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4) both;
}
.success-hero h1 { margin: 12px 0 14px; font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 500; letter-spacing: -0.03em; }
.success-sub { max-width: 46em; margin: 0 auto; font-size: 15px; line-height: 1.65; color: var(--muted); }
.success-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 22px; font-size: 11.5px; color: var(--muted); }
.success-meta strong { color: var(--ink); font-weight: 600; }
.success-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.8fr); gap: 32px; align-items: start; }
.success-main { display: flex; flex-direction: column; gap: 18px; }
.panel { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.download-list { display: flex; flex-direction: column; }
.download-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.download-item:first-child { border-top: 0; padding-top: 4px; }
.download-item:last-child { padding-bottom: 4px; }
.download-item img { width: 54px; height: 72px; object-fit: cover; border-radius: 3px; box-shadow: var(--shadow-sm); flex-shrink: 0; }
.download-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.download-info strong { font-size: 14px; font-weight: 600; line-height: 1.35; }
.download-info > span { font-size: 11px; color: var(--muted); }
.download-usage { color: var(--muted); font-size: 10.5px !important; margin-top: 2px; }
.download-item .btn { flex-shrink: 0; }
.download-disabled { font-size: 11px; color: var(--muted); padding: 7px 11px; border: 1px dashed var(--line-strong); border-radius: 6px; white-space: nowrap; }
.download-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.download-note strong { color: var(--ink); }
.next-steps ol { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.next-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.next-steps .step-num { font-size: 12px; padding-top: 2px; color: var(--accent); }
.next-steps strong { font-size: 13.5px; }
.next-steps p { margin-top: 3px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.next-steps p a { color: var(--accent); }
.next-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.success-aside { position: sticky; top: 96px; }
.summary-items-small img { width: 38px; height: 51px; }
.summary-items-small .summary-item-info strong { font-size: 11.5px; }
.success-support { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; }
.success-support p { font-size: 11.5px; color: var(--muted); }
.success-support a { display: inline-block; margin-top: 4px; font-size: 12.5px; color: var(--accent); text-decoration: none; }

/* ── Library ─────────────────────────────────────────────────────────── */
.library-signin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 40px; align-items: start; }
.signin-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.signin-card h2 { margin-bottom: 8px; }
.signin-card > p { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.signin-note { margin-top: 16px; font-size: 11px; line-height: 1.6; color: var(--muted); }
.library-benefits { display: flex; flex-direction: column; gap: 14px; }
.library-benefits article { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.library-benefits span { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); color: var(--accent); font-size: 15px; margin-bottom: 12px; border: 1px solid var(--line); }
.library-benefits h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin-bottom: 5px; letter-spacing: -0.015em; }
.library-benefits p { font-size: 12.5px; line-height: 1.6; color: var(--muted-strong); }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.library-tabs span { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.library-tabs .is-active { color: var(--ink); }
.library-actions { display: flex; align-items: center; gap: 18px; }
.library-orders { display: flex; flex-direction: column; }
.library-order { padding: 26px 0; border-bottom: 1px solid var(--line); }
.library-order-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.library-order-head > div { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.library-order-number { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.library-order-date { font-size: 11.5px; color: var(--muted); }
.library-order-total { display: flex; align-items: center; gap: 16px; }
.library-order-total strong { font-size: 15px; }
.library-order-total .link-arrow { font-size: 12px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 99px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}
.status-pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-paid { background: var(--forest-soft); color: var(--ok); }
.status-pending { background: color-mix(in srgb, var(--gold) 15%, transparent); color: var(--gold); }
.status-refunded { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.status-failed { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
.library-order-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.85fr); gap: 32px; align-items: start; }
.order-aside { display: flex; flex-direction: column; gap: 16px; }
.receipt-meta { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.receipt-meta > div { display: flex; justify-content: space-between; gap: 18px; font-size: 11.5px; }
.receipt-meta dt { color: var(--muted); }
.receipt-meta dd { text-align: right; word-break: break-word; }
.order-aside .btn-block { margin-top: 9px; }

/* ── Contact / FAQ / about / refund ──────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 44px; align-items: start; }
.contact-form-card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contact-form-card h2 { margin-bottom: 20px; }
.contact-aside { display: flex; flex-direction: column; gap: 16px; }
.contact-email { display: inline-block; margin: 6px 0 8px; font-family: var(--serif); font-size: 19px; color: var(--accent); text-decoration: none; word-break: break-word; }
.contact-email:hover { text-decoration: underline; }
.contact-aside .aside-card p { font-size: 12px; }

.faq-layout { display: flex; flex-direction: column; gap: 48px; max-width: 860px; margin: 0 auto; }
.faq-group h2 { margin-bottom: 14px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 2px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-item summary:hover { color: var(--accent); }
.faq-item > div { padding: 0 32px 20px 2px; }
.faq-item p { font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.faq-item a { color: var(--accent); }

.about-lead { margin-bottom: 36px; padding-left: 22px; border-left: 3px solid var(--accent); }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0 48px; }
.about-values article { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.value-num { font-family: var(--serif); font-size: 13px; color: var(--accent); letter-spacing: 0.06em; }
.about-values h3 { margin: 10px 0 7px; font-size: 20px; }
.about-values p { font-size: 12.5px; line-height: 1.65; color: var(--muted); }

.refund-highlight {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.refund-number { font-family: var(--serif); font-size: 64px; line-height: 0.9; color: var(--accent); letter-spacing: -0.04em; }
.refund-highlight strong { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.refund-highlight p { margin-top: 4px; font-size: 13px; color: var(--muted); }

/* ── Error ───────────────────────────────────────────────────────────── */
.error-page { padding: 96px 0 110px; }
.error-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.error-code { font-family: var(--serif); font-size: clamp(5rem, 14vw, 9rem); line-height: 0.8; color: var(--line-strong); letter-spacing: -0.06em; display: block; margin-bottom: 18px; }
.error-inner h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; margin-bottom: 14px; }
.error-inner > p { font-size: 14.5px; color: var(--muted); max-width: 34em; margin: 0 auto; }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.error-hint { margin-top: 30px !important; font-size: 12px !important; }
.error-hint a { color: var(--accent); }

/* ── Invoice ─────────────────────────────────────────────────────────── */
body.invoice-page {
  background: #ece5d8;
  padding: 40px 20px 70px;
  --ink: #1a1815;
  --ink-soft: #3c372f;
  --muted: #756c5e;
  --muted-strong: #675e51;
  --line: #e5dccb;
  --paper: #ffffff;
}
.invoice-actions { max-width: 820px; margin: 0 auto 18px; display: flex; gap: 10px; justify-content: flex-end; }
.invoice-sheet {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px;
  background: #fff;
  color: #1a1815;
  box-shadow: 0 30px 80px -40px rgba(26, 24, 21, 0.4);
}
.invoice-head { display: flex; justify-content: space-between; gap: 32px; padding-bottom: 32px; border-bottom: 2px solid #1a1815; }
.invoice-logo { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: -0.03em; color: #1a1815; }
.invoice-logo span { color: #b4471f; }
.invoice-brand p { margin-top: 5px; font-size: 11px; line-height: 1.5; color: #756c5e; }
.invoice-title { text-align: right; }
.invoice-title h1 { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; color: #1a1815; }
.invoice-title p { margin-top: 7px; font-size: 11px; color: #756c5e; }
.invoice-title p:first-of-type { font-size: 13px; font-weight: 600; color: #1a1815; }
.invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 28px 0; }
.invoice-parties h2 { font-family: var(--sans); font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #8a8073; margin-bottom: 9px; }
.invoice-parties p { font-size: 12px; line-height: 1.6; color: #3c372f; }
.invoice-parties strong { color: #1a1815; font-size: 13px; }
.invoice-table { margin: 14px 0 26px; }
.invoice-table th { text-align: left; padding: 10px 0; border-bottom: 1px solid #1a1815; font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #756c5e; }
.invoice-table td { padding: 16px 0; border-bottom: 1px solid #ece4d8; font-size: 12.5px; vertical-align: top; color: #3c372f; }
.invoice-table td strong { display: block; font-size: 13.5px; color: #1a1815; }
.invoice-item-meta { display: block; margin-top: 3px; font-size: 10.5px; color: #8a8073; }
.invoice-table .num { text-align: right; white-space: nowrap; }
.invoice-totals { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: start; }
.invoice-notes h2 { font-family: var(--sans); font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #8a8073; margin-bottom: 8px; }
.invoice-notes p { font-size: 10.5px; line-height: 1.65; color: #756c5e; margin-bottom: 6px; }
.invoice-totals dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 12px; color: #756c5e; }
.invoice-totals dd { color: #1a1815; }
.invoice-grand { margin-top: 6px; padding-top: 12px !important; border-top: 2px solid #1a1815; font-size: 15px !important; font-weight: 700; color: #1a1815 !important; }
.invoice-grand dd { font-size: 18px; }
.invoice-foot { margin-top: 44px; padding-top: 18px; border-top: 1px solid #ece4d8; }
.invoice-foot p { font-size: 10px; line-height: 1.6; color: #8a8073; margin-bottom: 4px; }
.invoice-foot a { color: #b4471f; }

/* ── Forms (shared) ──────────────────────────────────────────────────── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; }
.field > label { font-size: 11.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
  background: var(--surface);
}
.field input::placeholder,
.field textarea::placeholder { color: color-mix(in srgb, var(--muted) 65%, transparent); }
.field-hint { margin-top: 5px; font-size: 10.5px; line-height: 1.5; color: var(--muted); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { align-self: flex-start; }
.form > .field { margin-bottom: 16px; }
.form-row > .field { margin-bottom: 16px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero-grid { gap: 36px; }
  .cover-stack { height: 460px; }
  .product-layout { grid-template-columns: minmax(280px, 400px) 1fr; gap: 40px; }
  .product-content-grid { gap: 40px; }
  .product-aside { position: static; }
  .checkout-layout { grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.85fr); gap: 28px; }
  .footer-grid { gap: 32px; }
}

@media (max-width: 960px) {
  .primary-nav {
    position: absolute;
    left: 0; right: 0; top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 28px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    margin: 0;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .primary-nav a:last-child { border-bottom: 0; }
  .primary-nav a::after { display: none; }
  .nav-toggle { display: inline-flex; }
  .library-link { display: none; }
  .announcement-inner { font-size: 11.5px; }
  .announcement-link { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
  .hero-copy { max-width: 640px; }
  .hero-visual { order: 2; }
  .cover-stack { max-width: 400px; height: 480px; }
  .stats-strip > div { padding: 0 18px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .how-grid { grid-template-columns: 1fr; gap: 36px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .product-layout { grid-template-columns: 1fr; gap: 34px; }
  .product-media { max-width: 440px; }
  .product-info { padding-top: 0; }
  .product-content-grid { grid-template-columns: 1fr; }
  .product-aside { display: grid; grid-template-columns: 1fr 1fr; }
  .cart-layout { grid-template-columns: 1fr; gap: 30px; }
  .cart-summary { position: static; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-aside { position: static; order: -1; }
  .success-layout { grid-template-columns: 1fr; }
  .success-aside { position: static; order: -1; }
  .library-signin { grid-template-columns: 1fr; }
  .library-order-grid { grid-template-columns: 1fr; }
  .order-aside { order: -1; }
  .reviews-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; gap: 28px; padding: 44px 38px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-news { grid-column: 1 / -1; }
  .page-head-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .catalogue-search { width: 100%; min-width: 0; }
  .catalogue-toolbar { flex-direction: column; align-items: flex-start; gap: 16px; }
  .sort-form { align-self: flex-end; }
  .library-order-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 680px) {
  .container { padding: 0 18px; }
  .section { padding: 62px 0; }
  .section-tight { padding: 36px 0 52px; }
  .header-inner { height: 64px; gap: 10px; }
  .primary-nav { top: 64px; padding: 8px 18px 16px; }
  .brand-word { font-size: 20px; }
  .brand-mark svg { width: 26px; height: 26px; }
  .icon-btn { width: 34px; height: 34px; }
  .cart-link { padding: 8px 11px; }
  .hero { padding-top: 46px; }
  .hero-title { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .hero-sub { font-size: 15px; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .cover-stack { height: 370px; max-width: 310px; }
  .floating-chip { font-size: 10px; padding: 8px 11px; }
  .chip-rating { left: -8px; bottom: 4%; }
  .chip-instant { right: -8px; top: 2%; }
  .stats-strip { grid-template-columns: 1fr 1fr; gap: 18px 0; padding: 18px 0; }
  .stats-strip > div { padding: 0 16px; }
  .stats-strip > div:nth-child(2) { border-right: 0; }
  .stats-strip > div:nth-child(3) { padding-left: 0; }
  .stats-strip dt { font-size: 9.5px; }
  .stats-strip dd { font-size: 26px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 26px; }
  .section-head-center { align-items: center; }
  .product-grid { grid-template-columns: 1fr; gap: 20px; }
  .product-card { max-width: 420px; }
  .category-grid { grid-template-columns: 1fr; }
  .how-section { padding: 64px 0; }
  .step { grid-template-columns: 44px 1fr; gap: 14px; padding: 22px 0; }
  .step h3 { font-size: 21px; }
  .cta-band { padding: 34px 24px; border-radius: 16px; }
  .cta-decoration { font-size: 160px; bottom: -34px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding: 18px; gap: 10px; }
  .footer-links { gap: 8px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }
  .announcement-inner { padding: 8px 18px; }
  .page-head { padding: 30px 0 24px; }
  .page-head h1 { font-size: 2.2rem; }
  .page-head-row { gap: 14px; }
  .product-page { padding-top: 18px; }
  .product-media-meta { grid-template-columns: 1fr 1fr; }
  .product-h1 { font-size: 2.35rem; }
  .buy-box { padding: 20px; }
  .buy-price .price-now { font-size: 32px; }
  .product-aside { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 78px 1fr; gap: 14px; }
  .cart-thumb { width: 78px; }
  .cart-item-price { grid-column: 2; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 8px; }
  .cart-item-body h2 { font-size: 18px; }
  .cart-item-price { margin-top: -6px; }
  .summary-card { padding: 20px; }
  .checkout-panel { padding: 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .success-hero { padding: 44px 0 34px; }
  .success-mark { width: 62px; height: 62px; margin-bottom: 16px; }
  .download-item { flex-wrap: wrap; gap: 12px; }
  .download-info { flex: 1 1 60%; }
  .download-item img { width: 44px; height: 59px; }
  .download-item .btn, .download-disabled { width: 100%; justify-content: center; text-align: center; }
  .library-toolbar { flex-direction: column; align-items: flex-start; }
  .library-actions { width: 100%; justify-content: space-between; }
  .library-order-total { flex-wrap: wrap; gap: 10px; }
  .next-actions .btn { flex: 1 1 auto; }
  .about-values { gap: 14px; }
  .refund-highlight { padding: 20px; gap: 16px; }
  .refund-number { font-size: 46px; }
  .refund-highlight strong { font-size: 18px; }
  .prose p, .prose li { font-size: 14.5px; }
  .prose-cta { flex-direction: column; align-items: flex-start; }
  .invoice-sheet { padding: 26px; }
  .invoice-head { flex-direction: column; gap: 20px; }
  .invoice-title { text-align: left; }
  .invoice-parties { grid-template-columns: 1fr; gap: 20px; }
  .invoice-totals { grid-template-columns: 1fr; gap: 24px; }
  .invoice-actions { justify-content: center; flex-wrap: wrap; }
  body.invoice-page { padding: 24px 12px 50px; }
  .faq-item > div { padding-right: 0; }
  .contact-form-card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .hero-copy, .hero-visual { animation: none; }
}

@media print {
  .no-print, .invoice-actions, .site-header, .site-footer, .announcement { display: none !important; }
  body.invoice-page { background: #fff; padding: 0; }
  .invoice-sheet { box-shadow: none; max-width: none; padding: 24px 10mm; }
  @page { size: A4; margin: 12mm; }
}
