/* ===== BeUp Shop — design tokens ===== */

:root {
  /* default palette: Meadow (clean white + deep forest + gold) */
  --bg: #fbfaf6;
  --bg-2: #f2f0e7;
  --paper: #ffffff;
  --ink: #0e1a14;
  --ink-2: #2a3b30;
  --muted: #5b6a60;
  --line: #e3e0d3;
  --line-2: #c4c1b0;
  --primary: #0a4d3c;
  --primary-ink: #ffffff;
  --primary-2: #1f7a5e;
  --secondary: #1a1a1a;
  --accent: #d4a017;
  --accent-ink: #0e1a14;
  --accent-soft: #f5e9c6;
  --warn: #d4a017;
  --ok: #2b8a72;

  /* density */
  --density: 1;
  --r-sm: calc(6px * var(--density));
  --r-md: calc(10px * var(--density));
  --r-lg: calc(18px * var(--density));
  --r-xl: calc(28px * var(--density));
  --pad-1: calc(8px * var(--density));
  --pad-2: calc(14px * var(--density));
  --pad-3: calc(22px * var(--density));
  --pad-4: calc(36px * var(--density));

  --shadow-sm: 0 1px 2px rgba(26, 24, 20, 0.06), 0 1px 1px rgba(26, 24, 20, 0.04);
  --shadow-md: 0 8px 24px -8px rgba(26, 24, 20, 0.18), 0 2px 4px rgba(26, 24, 20, 0.05);
  --shadow-lg: 0 24px 60px -20px rgba(26, 24, 20, 0.30), 0 4px 10px rgba(26, 24, 20, 0.06);

  --font-display: "Newsreader", "Spectral", Georgia, serif;
  --font-ui: "Geist", "Inter Tight", system-ui, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
}

/* dark theme */
[data-theme="dark"] {
  --bg: #0d1411;
  --bg-2: #161d1a;
  --paper: #111714;
  --ink: #f0eee5;
  --ink-2: #c8d0c9;
  --muted: #8a948c;
  --line: #232a26;
  --line-2: #3a443d;
  --primary: #d4a017;
  --primary-ink: #0d1411;
  --primary-2: #e8be4a;
  --secondary: #f0eee5;
  --accent: #1f9e7e;
  --accent-ink: #0d1411;
  --accent-soft: #1a3329;
}

/* ===== reset ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }

/* ===== utility ===== */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; width: 100%; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 24px; width: 100%; }
.row { display: flex; align-items: center; gap: 12px; }
.col { display: flex; flex-direction: column; }
.spacer { flex: 1; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--muted);
}
.serif { font-family: var(--font-display); }

/* ===== buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  transition: transform 0.12s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--ink-2); }
.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-accent:hover { filter: brightness(0.95); }
.btn-forest {
  background: var(--primary);
  color: var(--primary-ink);
}
.btn-forest:hover { filter: brightness(1.1); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--bg-2); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-icon { padding: 10px; border-radius: 999px; }

/* ===== chips ===== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}
.chip:hover { background: var(--bg); border-color: var(--line-2); }
.chip.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.chip-dot::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: currentColor;
}

/* ===== cards ===== */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

/* ===== header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: grid; place-items: center;
  color: var(--primary-ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
}
.nav { display: flex; gap: 2px; flex-shrink: 0; }
.nav-item {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-item:hover { background: var(--bg-2); color: var(--ink); }
.nav-item.active { background: var(--ink); color: var(--paper); }

.search-bar {
  flex: 1;
  min-width: 0;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: border-color 0.15s, background 0.15s;
}
.search-bar input { min-width: 0; }
.search-bar .kbd-hint { flex-shrink: 0; }
.search-bar input {
  border: none; outline: none; background: transparent;
  width: 100%; font: inherit; color: var(--ink);
}
.search-bar:focus-within { border-color: var(--line-2); background: var(--bg-2); }

.header-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.lang-toggle { display: flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; flex-shrink: 0; }
.lang-toggle button { padding: 5px 10px; border-radius: 999px; text-transform: uppercase; font-weight: 600; }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 999px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-2);
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}
.icon-btn:hover { background: var(--bg-2); }
.cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  display: grid; place-items: center;
  border: 2px solid var(--bg);
}

.subnav {
  display: flex;
  gap: 4px;
  padding: 8px 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav-item {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background 0.15s;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.subnav-item:hover { background: var(--bg-2); }
.subnav-item.active { background: var(--bg-2); color: var(--ink); border: 1px solid var(--line); padding: 7px 13px; }
.subnav .pip { width: 6px; height: 6px; border-radius: 50%; }

/* ===== hero ===== */
.hero {
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  font-weight: 400;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: var(--primary);
  font-family: var(--font-display);
}
.hero p.lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 460px;
  margin: 24px 0 32px;
  line-height: 1.55;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-meta {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.meta-stat .n {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1;
}
.meta-stat .lbl {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  display: block;
}

/* hero variant: "editorial" — big serif quote layout */
.hero[data-variant="editorial"] .hero-grid {
  grid-template-columns: 1fr;
  text-align: left;
  gap: 24px;
}
.hero[data-variant="editorial"] h1 {
  font-size: clamp(64px, 8.5vw, 132px);
  line-height: 0.92;
}
.hero[data-variant="editorial"] .hero-media {
  margin-top: 32px;
}

/* hero variant: "split" — image bleed left */
.hero[data-variant="split"] {
  padding-top: 0;
}
.hero[data-variant="split"] .hero-grid {
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
  gap: 0;
}
.hero[data-variant="split"] .hero-text {
  padding: 80px 60px 80px 0;
}
.hero[data-variant="split"] .hero-media {
  height: 100%;
  margin-right: calc(50vw - 50%);
}

/* ===== hero media (custom illustration) ===== */
.hero-media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--primary);
  box-shadow: var(--shadow-lg);
}
.hero-product-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.hero-product-card .price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}

/* ===== category strip ===== */
.section { padding: 64px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.section-head h2 {
  font-size: clamp(32px, 3.4vw, 48px);
  letter-spacing: -0.02em;
  font-weight: 400;
  text-wrap: balance;
}
.section-head h2 em { font-style: italic; color: var(--primary); }
.section-head .link {
  font-size: 14px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.section-head .link:hover { color: var(--ink); border-color: var(--ink); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.cat-tile {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-tile .cat-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.cat-tile .cat-label {
  position: relative;
  z-index: 2;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.cat-tile .cat-count {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* ===== product grid ===== */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: transform 0.18s ease;
}
.product-card:hover { transform: translateY(-2px); }
.product-art {
  aspect-ratio: 1/1;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  background: var(--bg-2);
  display: grid;
  place-items: center;
}
.product-card:hover .product-art { border-color: var(--line-2); }
.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.product-tag.flagship {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.product-quick-add {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  display: grid; place-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s, transform 0.18s, background 0.15s;
}
.product-card:hover .product-quick-add { opacity: 1; transform: translateY(0); }
.product-quick-add:hover { background: var(--accent); color: var(--accent-ink); }

.product-meta {
  padding: 14px 4px 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.product-sub {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.product-sub .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }
.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 6px;
}
.product-price {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.product-rating {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  display: flex; align-items: center; gap: 4px;
}

/* ===== catalog layout ===== */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}
.filters {
  position: sticky;
  top: 140px;
  padding: 20px 0;
}
.filter-group { margin-bottom: 28px; }
.filter-group h4 {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.filter-options { display: flex; flex-direction: column; gap: 4px; }
.filter-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.12s;
}
.filter-opt:hover { background: var(--bg-2); }
.filter-opt.active { background: var(--ink); color: var(--paper); }
.filter-opt .count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.filter-opt.active .count { color: color-mix(in oklab, var(--paper) 75%, transparent); }

.catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.catalog-head h1 {
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.catalog-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.sort-select {
  font-family: var(--font-ui);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-2);
  cursor: pointer;
}

/* ===== product detail ===== */
.pd-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}
.pd-gallery {
  position: sticky;
  top: 140px;
  display: flex;
  gap: 16px;
}
.pd-thumbs { display: flex; flex-direction: column; gap: 10px; width: 72px; }
.pd-thumb {
  aspect-ratio: 1/1;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  cursor: pointer;
  display: grid; place-items: center;
  transition: border-color 0.15s;
}
.pd-thumb.active { border-color: var(--ink); border-width: 2px; }
.pd-main {
  flex: 1;
  aspect-ratio: 1/1;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--paper);
  display: grid; place-items: center;
  overflow: hidden;
  position: relative;
}

.pd-info { padding: 12px 0; }
.pd-info .crumbs {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.pd-info h1 {
  font-size: clamp(40px, 4.4vw, 60px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 12px;
}
.pd-info h1 em { font-style: italic; color: var(--primary); }
.pd-info .tagline { font-size: 16px; color: var(--muted); margin-bottom: 28px; max-width: 480px; }

.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.pd-price {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.pd-unit {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.pd-options { display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
.opt-row .opt-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
  display: block;
}
.opt-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.opt-pill {
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-family: var(--font-ui);
}
.opt-pill:hover { border-color: var(--line-2); }
.opt-pill.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
}
.qty button {
  width: 40px; height: 44px;
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: background 0.12s;
}
.qty button:hover { background: var(--bg-2); }
.qty .val {
  min-width: 40px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 14px;
}

.add-to-cart {
  flex: 1;
  height: 52px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: filter 0.15s;
}
.add-to-cart:hover { filter: brightness(0.95); }
.add-to-cart.added { background: var(--primary); color: var(--primary-ink); }

/* dosage calculator */
.calc {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 22px;
  margin-top: 8px;
}
.calc h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.calc p.calc-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
}
.calc-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.calc-input-row label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  display: block;
}
.calc-field {
  background: var(--bg-2);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid transparent;
  width: 100%;
  outline: none;
}
.calc-field:focus { border-color: var(--ink); background: var(--paper); }
.calc-result {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-md);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calc-result .val {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.calc-result .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

/* assurance row */
.assurance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.assurance-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}
.assurance-item .ic {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  color: var(--primary);
  flex-shrink: 0;
}
.assurance-item .ttl { font-size: 13px; font-weight: 600; letter-spacing: -0.005em; }
.assurance-item .desc { font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 2px; }

/* tabs */
.pd-tabs {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.tab-strip {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.tab-btn {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  transition: color 0.15s;
}
.tab-btn:hover { color: var(--ink-2); }
.tab-btn.active { color: var(--ink); }
.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 2px;
  background: var(--ink);
}

.compo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.compo-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
}
.compo-card .compo-amount {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.compo-card .compo-name {
  font-size: 13px;
  font-weight: 500;
  margin-top: 4px;
}
.compo-card .compo-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.45;
}

/* ===== cart drawer ===== */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(26, 24, 20, 0.4);
  backdrop-filter: blur(2px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(460px, 100vw);
  background: var(--bg);
  z-index: 95;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}
.drawer-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.drawer-item .di-art {
  aspect-ratio: 1/1;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  display: grid; place-items: center;
}
.drawer-item .di-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.15;
}
.drawer-item .di-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.drawer-item .di-price {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
}
.drawer-item .qty-mini {
  display: flex; align-items: center;
  margin-top: 8px;
  gap: 4px;
}
.qty-mini button {
  width: 22px; height: 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 12px;
  color: var(--ink-2);
}
.qty-mini .v { font-family: var(--font-mono); font-size: 12px; min-width: 18px; text-align: center; }

.drawer-empty {
  padding: 80px 40px;
  text-align: center;
  color: var(--muted);
}
.drawer-empty h4 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 500;
}

.drawer-foot {
  padding: 22px 24px 28px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.drawer-foot .sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.drawer-foot .sum-row .v { color: var(--ink); font-family: var(--font-mono); }
.drawer-foot .total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  margin-bottom: 18px;
}
.drawer-foot .total-row .lbl {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
}
.drawer-foot .total-row .val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ===== editorial block ===== */
.editorial {
  background: var(--ink);
  color: var(--paper);
  padding: 96px 0;
}
.editorial[data-tone="forest"] { background: var(--primary); color: var(--primary-ink); }
.editorial .ed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.editorial h2 {
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
  text-wrap: balance;
}
.editorial h2 em { font-style: italic; }
.editorial p {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.78;
  max-width: 480px;
}
.editorial .ed-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 32px;
}
.editorial .ed-stat {
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.editorial .ed-stat .n {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1;
}
.editorial .ed-stat .lbl {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
}

/* ===== footer ===== */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer h4 {
  font-family: var(--font-ui);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { padding: 6px 0; font-size: 14px; opacity: 0.8; cursor: pointer; }
.footer ul li:hover { opacity: 1; }
.footer .brand-blurb {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  font-weight: 500;
  margin-bottom: 18px;
  font-style: italic;
}
.footer .footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.6;
  font-family: var(--font-mono);
}

/* ===== flash toast ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--paper);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  transition: opacity 0.2s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ok); }

/* ===== misc anim ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
.fade-up-d1 { animation-delay: 0.08s; }
.fade-up-d2 { animation-delay: 0.16s; }
.fade-up-d3 { animation-delay: 0.24s; }

/* ===== quiz / selector ===== */
.quiz {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--paper);
  padding: 32px;
  margin-bottom: 24px;
}
.quiz-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 20px; gap: 24px;
}
.quiz-head h3 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.quiz-head h3 em { font-style: italic; color: var(--primary); }
.quiz-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.quiz-tile {
  aspect-ratio: 1/1.1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  color: var(--ink-2);
}
.quiz-tile:hover { transform: translateY(-2px); border-color: var(--line-2); }
.quiz-tile.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.quiz-tile .qt-art {
  width: 42px; height: 42px;
  display: grid; place-items: center;
}
.quiz-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--bg-2);
  overflow: hidden;
  margin-top: 18px;
}
.quiz-progress .bar { height: 100%; background: var(--primary); transition: width 0.3s ease; }

/* ===== responsive (basic) ===== */
@media (max-width: 1280px) {
  .header-top { gap: 16px; }
  .kbd-hint { display: none; }
  .nav-item { padding: 8px 10px; font-size: 13.5px; }
}
@media (max-width: 1180px) {
  .nav-item { padding: 7px 9px; font-size: 13px; }
  .header-top { gap: 12px; }
  .search-bar { padding: 9px 14px; max-width: 240px; }
  .icon-btn { width: 36px; height: 36px; }
}
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .products { grid-template-columns: repeat(3, 1fr); }
  .quiz-grid { grid-template-columns: repeat(3, 1fr); }
  .search-bar input, .search-bar .kbd-hint { display: none; }
  .search-bar { max-width: 44px; padding: 9px 12px; cursor: pointer; }
}
@media (max-width: 980px) {
  .nav .nav-blog, .nav .nav-brand { display: none; }
  .lang-toggle { display: none; }
}
@media (max-width: 800px) {
  .hero-grid, .pd-layout, .catalog-layout, .editorial .ed-grid { grid-template-columns: 1fr; }
  .cat-grid, .products, .quiz-grid { grid-template-columns: repeat(2, 1fr); }
  .compo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
