/* ============================================================
   NAYGEJI — 3D Printing Consumables DTC
   Design system per spec: 米白/炭黑/科技浅灰/工业青灰/机械蓝
   Mobile-first, responsive, Inter typeface, 8px radius.
   ============================================================ */

:root {
  /* Fixed palette — DO NOT CHANGE */
  --bg:            #FAF8F5;
  --bg-soft:       #F3F0EA;
  --ink:           #2A2A2A;
  --ink-soft:      #3D3D3D;
  --gray:          #D0D5DD;
  --slate:         #94A3B8;
  --accent:        #64748B;
  --line:          #E6E2DB;
  --white:         #FFFFFF;
  --danger:        #B3544E;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(42, 42, 42, 0.06);
  --shadow-sm: 0 4px 12px rgba(42, 42, 42, 0.08);
  --shadow-md: 0 12px 32px rgba(42, 42, 42, 0.12);

  /* Layout */
  --container: 1240px;
  --header-h: 64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; }
ul, ol { padding: 0; list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 300;            /* Inter Light */
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 6vw, 3.75rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p { color: var(--ink-soft); }
.lead { font-size: 1.05rem; line-height: 1.7; color: var(--ink-soft); }
.muted { color: var(--slate); }
.small { font-size: 0.86rem; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.section { padding-block: var(--sp-8); }
.section--tight { padding-block: var(--sp-6); }
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.section__title { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
.section__sub { margin-top: var(--sp-2); max-width: 640px; }
.section__link { font-size: 0.9rem; color: var(--accent); white-space: nowrap; }
.section__link:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 13px 26px;
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  font-weight: 500;              /* Inter Medium */
  letter-spacing: 0.01em;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: var(--white);
}
.btn--primary:hover {
  background: #161616;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.btn--light:hover { border-color: var(--slate); }
.btn--lg { padding: 16px 34px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 18px; font-size: 0.86rem; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 248, 245, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--sp-4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 1.12rem;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
}
.nav { display: none; }
.nav--open { display: flex; }
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.nav__link {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: 6px;
  transition: color .15s ease, background .15s ease;
}
.nav__link:hover { color: var(--ink); background: var(--bg-soft); }
.nav__link--active { color: var(--ink); font-weight: 500; }
.header__actions { display: flex; align-items: center; gap: var(--sp-2); }
.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  transition: background .15s ease;
}
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn svg { width: 20px; height: 20px; stroke: var(--ink); }
.cart-count {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.nav__toggle { display: grid; }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: flex-end;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease, visibility .25s;
}
.drawer--open { visibility: visible; opacity: 1; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(42,42,42,0.35); }
.drawer__panel {
  position: relative;
  width: min(320px, 84vw);
  height: 100%;
  background: var(--bg);
  padding: var(--sp-5);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.22,.9,.28,1);
}
.drawer--open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-5); }
.drawer__link {
  display: block;
  padding: 14px 4px;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--line);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
}
.hero__media img, .hero__media svg { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-5);
  background: linear-gradient(180deg, rgba(250,248,245,0.55) 0%, rgba(250,248,245,0.25) 100%);
}
.hero__title { max-width: 720px; }
.hero__sub { margin-top: var(--sp-4); max-width: 520px; }
.hero__cta { margin-top: var(--sp-6); display: flex; gap: var(--sp-3); flex-wrap: wrap; justify-content: center; }

/* ---------- Grids & product cards ---------- */
.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(2, 1fr); }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card__media {
  position: relative;
  aspect-ratio: 2 / 3;
  background: var(--bg-soft);
  overflow: hidden;
}
.product-card__media img, .product-card__media svg { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.product-card__title { font-size: 1rem; font-weight: 500; letter-spacing: 0; line-height: 1.35; }
.product-card__cat { font-size: 0.78rem; color: var(--slate); text-transform: uppercase; letter-spacing: 0.06em; }
.product-card__price { font-size: 1.02rem; font-weight: 600; }
.product-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: var(--sp-2); }

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.tag--accent { color: var(--accent); background: rgba(100,116,139,0.08); border-color: rgba(100,116,139,0.22); }

/* ---------- Feature split (module 3) ---------- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-7);
  align-items: center;
}
.feature-split__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-soft);
}
.feature-split__media img, .feature-split__media svg { width: 100%; height: 100%; object-fit: cover; }
.feature-split__body h2 { margin-bottom: var(--sp-4); }
.feature-list { margin-top: var(--sp-5); display: grid; gap: var(--sp-4); }
.feature-list__item { display: flex; gap: var(--sp-3); }
.feature-list__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.feature-list__icon svg { width: 20px; height: 20px; stroke: currentColor; }
.feature-list__item h3 { font-size: 1.02rem; font-weight: 500; }
.feature-list__item p { font-size: 0.9rem; margin-top: 3px; }

/* ---------- Scenarios (module 5) ---------- */
.scenario-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.scenario {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-soft);
}
.scenario img, .scenario svg { width: 100%; height: 100%; object-fit: cover; }
.scenario__label {
  position: absolute;
  left: var(--sp-4);
  bottom: var(--sp-4);
  padding: 7px 14px;
  background: rgba(255,255,255,0.92);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: var(--shadow-xs);
}

/* ---------- Reviews (module 6) ---------- */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
.review {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.review__stars { color: #B88A2E; letter-spacing: 2px; font-size: 0.95rem; }
.review__text { font-size: 0.95rem; flex: 1; }
.review__author { display: flex; align-items: center; gap: var(--sp-3); }
.review__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gray); display: grid; place-items: center;
  font-weight: 600; font-size: 0.9rem; color: var(--white);
}
.review__name { font-weight: 500; font-size: 0.9rem; }
.review__meta { font-size: 0.8rem; color: var(--slate); }

/* ---------- Newsletter (module 7) ---------- */
.newsletter {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
  text-align: center;
}
.newsletter__inner { max-width: 560px; margin-inline: auto; }
.newsletter h2 { margin-bottom: var(--sp-3); }
.newsletter__form { margin-top: var(--sp-5); display: flex; gap: var(--sp-2); }
.newsletter__input {
  flex: 1;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease;
}
.newsletter__input:focus { border-color: var(--slate); }
.form-note { margin-top: var(--sp-3); font-size: 0.8rem; color: var(--slate); }

/* ---------- Footer (module 8) ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,0.75); padding-block: var(--sp-8) var(--sp-5); }
.footer a { color: rgba(255,255,255,0.75); }
.footer a:hover { color: var(--white); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-7); }
.footer__brand { color: var(--white); font-weight: 600; font-size: 1.1rem; margin-bottom: var(--sp-3); }
.footer__brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; font-weight: 400; }
.footer h4 { color: var(--white); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--sp-3); }
.footer__links li { margin-bottom: var(--sp-2); }
.footer__links a { font-size: 0.9rem; }
.social { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.social a {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: rgba(255,255,255,0.08);
  transition: background .15s ease;
}
.social a:hover { background: rgba(255,255,255,0.18); }
.social svg { width: 18px; height: 18px; fill: var(--white); }
.footer__bottom {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  font-size: 0.82rem;
}

/* ---------- Email popup ---------- */
.popup {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: var(--sp-5);
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease, visibility .25s;
}
.popup--open { visibility: visible; opacity: 1; }
.popup__scrim { position: absolute; inset: 0; background: rgba(42,42,42,0.45); }
.popup__inner {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bg);
  border-radius: var(--r-lg);
  padding: var(--sp-7) var(--sp-6);
  text-align: center;
  box-shadow: var(--shadow-md);
  transform: translateY(12px);
  transition: transform .28s cubic-bezier(.22,.9,.28,1);
}
.popup--open .popup__inner { transform: translateY(0); }
.popup__close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center; color: var(--slate);
}
.popup__close:hover { background: var(--bg-soft); color: var(--ink); }
.popup__inner h3 { font-size: 1.5rem; }
.popup__inner p { margin-top: var(--sp-3); }

/* ---------- Collection page ---------- */
.collection__hero { padding-block: var(--sp-7); border-bottom: 1px solid var(--line); }
.collection__hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.collection__hero p { margin-top: var(--sp-3); max-width: 620px; }
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: var(--sp-5);
}
.filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--ink-soft);
  transition: all .15s ease;
  background: var(--white);
}
.pill:hover { border-color: var(--slate); }
.pill--active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.sort-select {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  font-size: 0.88rem;
  color: var(--ink);
  outline: none;
}

/* ---------- Product detail page ---------- */
.pdp { padding-block: var(--sp-7); }
.pdp__grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-7); }
.pdp__gallery { display: flex; flex-direction: column; gap: var(--sp-3); }
.pdp__main {
  aspect-ratio: 2 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-soft);
}
.pdp__main img, .pdp__main svg { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.pdp__thumb {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--bg-soft);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .15s ease;
}
.pdp__thumb--active { border-color: var(--ink); }
.pdp__thumb img, .pdp__thumb svg { width: 100%; height: 100%; object-fit: cover; }

.pdp__info h1 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.pdp__price { font-size: 1.5rem; font-weight: 600; margin-top: var(--sp-3); }
.pdp__variant-group { margin-top: var(--sp-5); }
.pdp__variant-label { font-size: 0.86rem; font-weight: 500; margin-bottom: var(--sp-2); }
.pdp__variant-label span { color: var(--slate); font-weight: 400; }
.variant-options { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.variant {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  background: var(--white);
  transition: all .15s ease;
}
.variant:hover { border-color: var(--slate); }
.variant--active { border-color: var(--ink); background: var(--ink); color: var(--white); }
.swatch {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12);
  display: inline-block;
  cursor: pointer;
  transition: transform .15s ease;
}
.swatch:hover { transform: scale(1.1); }
.swatch--active { outline: 2px solid var(--ink); outline-offset: 2px; }

.pdp__cta { margin-top: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); }
.pdp__trust {
  margin-top: var(--sp-5);
  display: grid; gap: var(--sp-2);
  font-size: 0.86rem; color: var(--ink-soft);
}
.pdp__trust li { display: flex; align-items: center; gap: var(--sp-2); }
.pdp__trust svg { width: 16px; height: 16px; stroke: var(--accent); flex-shrink: 0; }

.pdp__desc { margin-top: var(--sp-7); }
.pdp__desc h2 { font-size: 1.4rem; margin-bottom: var(--sp-4); }
.pdp__desc p { margin-bottom: var(--sp-4); }
.pdp__desc ul { list-style: none; display: grid; gap: var(--sp-3); }
.pdp__desc li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.pdp__desc li svg { width: 18px; height: 18px; stroke: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* Specs accordion */
.specs { margin-top: var(--sp-6); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); overflow: hidden; }
.specs__item { border-bottom: 1px solid var(--line); }
.specs__item:last-child { border-bottom: none; }
.specs__toggle {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; font-weight: 500; font-size: 0.95rem; text-align: left;
}
.specs__toggle:hover { background: var(--bg-soft); }
.specs__toggle .chev { transition: transform .2s ease; }
.specs__item--open .specs__toggle .chev { transform: rotate(180deg); }
.specs__body { display: none; padding: 0 20px 18px; }
.specs__item--open .specs__body { display: block; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.spec-table td { padding: 9px 0; border-bottom: 1px solid var(--bg-soft); vertical-align: top; }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td:first-child { color: var(--slate); width: 44%; }

/* FBT bundle */
.fbt { margin-top: var(--sp-6); background: var(--bg-soft); border-radius: var(--r-md); padding: var(--sp-5); }
.fbt h3 { font-size: 1.15rem; font-weight: 500; margin-bottom: var(--sp-4); }
.fbt__items { display: grid; gap: var(--sp-3); }
.fbt__item { display: flex; align-items: center; gap: var(--sp-3); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--sp-3); }
.fbt__thumb { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: var(--bg-soft); flex-shrink: 0; }
.fbt__thumb img, .fbt__thumb svg { width: 100%; height: 100%; object-fit: cover; }
.fbt__item-info { flex: 1; min-width: 0; }
.fbt__item-info p { font-size: 0.88rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fbt__item-info span { font-size: 0.8rem; color: var(--slate); }
.fbt__price { font-weight: 600; font-size: 0.9rem; }
.fbt__total { margin-top: var(--sp-4); display: flex; align-items: center; justify-content: space-between; }
.fbt__total strong { font-size: 1.1rem; }

/* ---------- About page ---------- */
.about-hero { position: relative; aspect-ratio: 16 / 9; background: var(--bg-soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.about-hero img, .about-hero svg { width: 100%; height: 100%; object-fit: cover; }
.about-hero__overlay { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: var(--sp-5); background: rgba(42,42,42,0.35); }
.about-hero__overlay h1 { color: var(--white); }
.values { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
.value { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-6); }
.value__icon { width: 46px; height: 46px; border-radius: var(--r-sm); background: var(--bg-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: var(--sp-4); }
.value__icon svg { width: 22px; height: 22px; stroke: currentColor; }
.value h3 { font-size: 1.15rem; font-weight: 500; margin-bottom: var(--sp-2); }

/* ---------- Policy / legal pages ---------- */
.legal { max-width: 780px; margin-inline: auto; padding-block: var(--sp-8); }
.legal h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: var(--sp-2); }
.legal .updated { color: var(--slate); font-size: 0.88rem; margin-bottom: var(--sp-6); }
.legal h2 { font-size: 1.3rem; font-weight: 500; margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.legal p { margin-bottom: var(--sp-4); }
.legal ul, .legal ol { margin: 0 0 var(--sp-4) var(--sp-5); list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin-bottom: var(--sp-2); color: var(--ink-soft); }
.legal a { color: var(--accent); text-decoration: underline; }

/* ---------- Placeholder media ---------- */
.ph { position: relative; width: 100%; height: 100%; background: var(--bg-soft); }
.ph__art { width: 100%; height: 100%; object-fit: cover; }
.ph__tag {
  position: absolute;
  left: 10px; bottom: 10px;
  padding: 4px 9px;
  background: rgba(255,255,255,0.9);
  border-radius: 6px;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--slate);
  box-shadow: var(--shadow-xs);
}

/* ---------- Material guide ---------- */
.guide-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.guide-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 620px; }
.guide-table th, .guide-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--bg-soft); }
.guide-table th { font-weight: 500; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate); background: var(--bg-soft); }
.guide-table tr:last-child td { border-bottom: none; }
.guide-table td:first-child { font-weight: 500; }
.decision-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
.decision { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-5); }
.decision h3 { font-size: 1.02rem; font-weight: 500; margin-bottom: var(--sp-2); }
.decision a { color: var(--accent); font-size: 0.86rem; }
.decision a:hover { text-decoration: underline; }
@media (min-width: 640px) { .decision-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .decision-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.hidden { display: none !important; }
.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; }

/* Toast */
.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--white);
  padding: 12px 22px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  opacity: 0;
  transition: all .3s ease;
  z-index: 400;
  pointer-events: none;
}
.toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive breakpoints ---------- */
@media (min-width: 640px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .scenario-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .pdp__cta { flex-direction: row; }
  .values { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .nav__toggle { display: none; }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .feature-split { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .pdp__grid { grid-template-columns: 1fr 1fr; }
  .pdp__gallery { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
  .scenario-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- Cart drawer ---------- */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  justify-content: flex-end;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease, visibility .25s;
}
.cart-drawer--open { visibility: visible; opacity: 1; }
.cart-drawer__scrim { position: absolute; inset: 0; background: rgba(42,42,42,0.35); }
.cart-drawer__panel {
  position: relative;
  width: min(400px, 92vw);
  height: 100%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.22,.9,.28,1);
}
.cart-drawer--open .cart-drawer__panel { transform: translateX(0); }
.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.cart-drawer__title { font-weight: 600; font-size: 1.05rem; }
.cart-drawer__items { flex: 1; overflow-y: auto; padding: var(--sp-4) var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); }
.cart-drawer__empty { color: var(--slate); text-align: center; padding: var(--sp-7) 0; }
.cart-drawer__foot { border-top: 1px solid var(--line); padding: var(--sp-5); }
.cart-drawer__row { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 1.05rem; margin-bottom: var(--sp-3); }

.cart-item {
  display: flex; gap: var(--sp-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: var(--sp-3);
}
.cart-item__thumb { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--bg-soft); flex-shrink: 0; }
.cart-item__thumb img, .cart-item__thumb svg { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-size: 0.86rem; font-weight: 500; line-height: 1.3; margin-bottom: 2px; }
.cart-item__color { font-size: 0.76rem; color: var(--slate); }
.cart-item__qty { display: inline-flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 2px 6px; }
.cart-item__qty button { width: 22px; height: 22px; border-radius: 6px; font-size: 0.9rem; line-height: 1; color: var(--ink); }
.cart-item__qty button:hover { background: var(--bg-soft); }
.cart-item__qty span { min-width: 18px; text-align: center; font-size: 0.86rem; }
.cart-item__right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: var(--sp-2); }
.cart-item__price { font-weight: 600; font-size: 0.9rem; }
.cart-item__remove { font-size: 0.76rem; color: var(--slate); text-decoration: underline; }
.cart-item__remove:hover { color: var(--danger); }

/* ---------- Checkout ---------- */
.checkout { padding-block: var(--sp-7); max-width: 1080px; }
.checkout h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: var(--sp-6); }
.checkout__grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-7); }
.checkout__section { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-5); margin-bottom: var(--sp-4); }
.checkout__section h2 { font-size: 1.1rem; font-weight: 500; margin-bottom: var(--sp-4); }
.checkout__section label { display: flex; flex-direction: column; gap: var(--sp-1); margin-bottom: var(--sp-3); font-size: 0.84rem; color: var(--ink-soft); }
.checkout__section input {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease;
}
.checkout__section input:focus { border-color: var(--slate); }
.checkout__field-row { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
.checkout__error {
  background: #FDF0EF; color: var(--danger);
  border: 1px solid #F3D3CF; border-radius: var(--r-sm);
  padding: 12px 16px; margin-bottom: var(--sp-4); font-size: 0.9rem;
}

.checkout__summary { align-self: start; position: sticky; top: calc(var(--header-h) + 16px); }
.summary {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--sp-5);
}
.summary h2 { font-size: 1.1rem; font-weight: 500; margin-bottom: var(--sp-4); }
.summary__items { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.summary__item { display: flex; gap: var(--sp-3); align-items: center; }
.summary__thumb { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: var(--bg-soft); flex-shrink: 0; }
.summary__thumb img, .summary__thumb svg { width: 100%; height: 100%; object-fit: cover; }
.summary__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.summary__name { font-size: 0.86rem; font-weight: 500; line-height: 1.3; }
.summary__color { font-size: 0.76rem; color: var(--slate); }
.summary__qty { font-size: 0.76rem; color: var(--slate); }
.summary__price { font-weight: 600; font-size: 0.88rem; }
.summary__totals { border-top: 1px solid var(--line); padding-top: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); }
.summary__totals > div { display: flex; align-items: center; justify-content: space-between; font-size: 0.9rem; }
.summary__grand { font-weight: 700; font-size: 1.1rem !important; border-top: 1px solid var(--line); margin-top: var(--sp-2); padding-top: var(--sp-3); }

.checkout__success { text-align: center; padding: var(--sp-8) 0; }
.checkout__success .check-icon {
  width: 72px; height: 72px; margin: 0 auto var(--sp-5);
  border-radius: 50%; background: #E7F3EC; color: #1C7C54;
  display: grid; place-items: center;
}
.checkout__success .check-icon svg { width: 34px; height: 34px; stroke: currentColor; }
.checkout__success h2 { margin-bottom: var(--sp-3); }
.checkout__success .order-num { font-weight: 600; color: var(--ink); }

@media (min-width: 900px) {
  .checkout__grid { grid-template-columns: 1.4fr 1fr; }
  .checkout__field-row { grid-template-columns: 1fr 1fr; }
}
