/* ============================================================
   Kupinji (库品季) · Design system
   视觉方向：胚衫本色（暖白底 + 炭黑 + 陶土点缀）
   签名元素：8 色色带（纯色站的色彩本身即视觉语言）
   字体：Fraunces（display 衬线）+ Figtree（正文）
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --paper: #F7F4EE;
  --paper-bright: #FDFCF9;
  --ink: #1F1E1B;
  --oat: #E8E0D2;
  --oat-deep: #DCD1BE;
  --clay: #C96F4A;
  --clay-deep: #A9563A;
  --line: #DDD6C6;
  --muted: #6B665C;
  --ok: #3E7C4F;
  --ok-bg: #E4EEE6;
  --err: #B3352B;
  --err-bg: #F7E8E5;
  --white: #FFFFFF;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 1px 2px rgba(31, 30, 27, .05), 0 8px 24px -12px rgba(31, 30, 27, .18);
  --shadow-pop: 0 8px 40px -8px rgba(31, 30, 27, .28);

  --header-h: 64px;
  --container: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
a { color: var(--clay-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--clay); }
ul, ol { padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--clay); color: var(--white); }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; inset-inline-start: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { inset-inline-start: 0; }

/* ---------- Top banner ---------- */
.banner {
  background: var(--ink); color: var(--paper);
  font-size: .8125rem; font-weight: 500; letter-spacing: .02em;
  text-align: center; padding: .45rem 1rem;
  text-wrap: balance;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(247, 244, 238, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
}
.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
}
.logo-text { display: inline-flex; align-items: baseline; gap: .5rem; }
.logo-text small {
  font-family: var(--font-body); font-weight: 600; font-size: .68em;
  letter-spacing: .18em; color: var(--clay-deep);
}
.logo:hover { color: var(--ink); }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: .25rem; list-style: none; }
.main-nav a {
  display: block; padding: .5rem .8rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.main-nav a:hover { background: var(--oat); }
.main-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }

.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: .35rem; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .7rem; border-radius: 999px;
  color: var(--ink); font-weight: 500; font-size: .9rem;
  border: 1px solid transparent;
}
.icon-btn:hover { background: var(--oat); }
.icon-btn .globe, .icon-btn .bag { width: 18px; height: 18px; flex: none; }
.cart-count {
  position: absolute; top: -2px; inset-inline-end: -4px;
  min-width: 18px; height: 18px; padding-inline: 4px;
  border-radius: 999px; background: var(--clay); color: var(--white);
  font-size: .6875rem; font-weight: 700; line-height: 18px; text-align: center;
}
.cart-count[hidden] { display: none; }

/* Mobile menu */
.mobile-menu {
  display: none; border-top: 1px solid var(--line); background: var(--paper);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; padding: .5rem 0 1rem; }
.mobile-menu a {
  display: block; padding: .8rem 1.25rem; color: var(--ink);
  text-decoration: none; font-weight: 500; font-size: 1.05rem;
}
.mobile-menu a:hover { background: var(--oat); }
.mobile-menu a[aria-current="page"] { color: var(--clay-deep); font-weight: 700; }

@media (min-width: 900px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
}

/* ---------- Language modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(31, 30, 27, .45);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; pointer-events: none; transition: opacity .18s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--paper-bright); border-radius: var(--radius-lg);
  width: min(480px, 100%); max-height: min(80vh, 640px);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow-pop);
  transform: translateY(8px); transition: transform .18s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.25rem .6rem;
}
.modal-head h2 { font-size: 1.2rem; }
.modal-close {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--oat); color: var(--ink); font-size: 1rem;
}
.modal-close:hover { background: var(--oat-deep); }
.lang-search { margin-inline: 1.25rem .5rem; }
.lang-search input {
  width: 100%; padding: .7rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper);
}
.lang-search input:focus { border-color: var(--clay); outline: none; background: var(--paper-bright); }
.lang-list {
  list-style: none; overflow-y: auto; padding: .6rem 1rem 1rem; margin: 0;
}
.lang-list button {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  width: 100%; text-align: start; padding: .7rem .8rem; border-radius: var(--radius-sm);
  font-weight: 500;
}
.lang-list button:hover { background: var(--oat); }
.lang-list button.current { background: var(--ink); color: var(--paper); }
.lang-list button.current:hover { background: var(--ink); }
.lang-list .native { color: var(--muted); font-weight: 400; font-size: .9rem; }
.lang-list button.current .native { color: var(--oat-deep); }
.lang-list .check { margin-inline-start: auto; color: var(--clay); font-weight: 700; }
.lang-list button.current .check { color: var(--clay); }
.lang-empty { padding: .5rem 1.25rem 1.5rem; color: var(--muted); font-size: .9rem; }

/* ---------- Geo suggestion banner ---------- */
.geo-banner {
  position: fixed; z-index: 100; inset-inline: 1rem; bottom: 1rem;
  max-width: 560px; margin-inline: auto;
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius); padding: .95rem 1.1rem;
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  box-shadow: var(--shadow-pop);
}
.geo-banner p { font-size: .925rem; }
.geo-banner .geo-actions { display: flex; gap: .5rem; margin-inline-start: auto; }
.geo-banner button { padding: .45rem .95rem; border-radius: 999px; font-weight: 600; font-size: .875rem; }
.geo-switch { background: var(--clay); color: var(--white); }
.geo-switch:hover { background: var(--clay-deep); }
.geo-dismiss { color: var(--paper); border: 1px solid rgba(247, 244, 238, .4); }
.geo-dismiss:hover { background: rgba(247, 244, 238, .12); }

/* ---------- Utility ---------- */
.tint { background: var(--oat); }
.modal-body { padding: 0 1.25rem 1.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  border: 1px solid transparent; transition: background .15s ease, color .15s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #34322D; color: var(--paper); }
.btn-clay { background: var(--clay); color: var(--white); }
.btn-clay:hover { background: var(--clay-deep); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Hero (home) ---------- */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 3rem; text-align: center; }
.hero .kicker {
  display: inline-block; font-size: .8125rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--clay-deep);
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  font-weight: 600; letter-spacing: -0.02em;
  max-width: 14ch; margin-inline: auto;
}
.hero .sub {
  max-width: 56ch; margin: 1.25rem auto 0; color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
}
.hero .ctas { margin-top: 2rem; display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* Hero / page banners (PNG assets from assets/product/) */
.hero-media {
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  max-width: 1040px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}
.hero-media img, .page-banner img { display: block; width: 100%; height: auto; }
.page-banner {
  margin: 0 auto 1.75rem;
  max-width: 1040px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}

/* Signature: the color strip */
.color-strip {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: flex; align-items: center; justify-content: center; gap: .9rem; flex-wrap: wrap;
}
.color-strip .label { font-size: .8125rem; color: var(--muted); font-weight: 500; letter-spacing: .05em; }
.color-strip .dots { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; max-width: 100%; }
.color-strip .dot {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(31, 30, 27, .14);
  transition: transform .15s ease;
}
.color-strip .dot:hover { transform: scale(1.18); }

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-tight { padding: 1.5rem 0 3rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.section-head .sub { color: var(--muted); margin-top: .4rem; max-width: 52ch; }
.section-head .link { font-weight: 600; white-space: nowrap; }

.grid-3 { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Product card ---------- */
.pcard {
  background: var(--paper-bright); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  transition: box-shadow .18s ease, transform .18s ease;
}
.pcard:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); color: var(--ink); }
.pcard .media { background: #fff; aspect-ratio: 4 / 4.4; display: grid; place-items: center; padding: 1.2rem; position: relative; border-bottom: 1px solid var(--line); }
.pcard .media img { width: 100%; height: 100%; object-fit: contain; }
.pcard .body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.pcard .name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.pcard .desc { color: var(--muted); font-size: .9rem; flex: 1; }
.pcard .price-row { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.pcard .price { font-weight: 700; font-size: 1.05rem; }
.pcard .from { color: var(--muted); font-size: .85rem; }
.pcard .wholesale { color: var(--clay-deep); font-size: .85rem; font-weight: 600; }
.pcard .dots { display: flex; gap: 5px; flex-wrap: wrap; }
.pcard .dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(31, 30, 27, .16); }

/* ---------- Filter chips ---------- */
.filters { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 1.75rem; }
.filter-group { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.filter-group .flabel { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-inline-end: .35rem; }
.chip {
  padding: .4rem .95rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper-bright); font-size: .875rem; font-weight: 500;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip-swatch { display: inline-flex; align-items: center; gap: .45rem; }
.chip-swatch i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1px solid rgba(31,30,27,.15); }
.chip.active i { border-color: rgba(255,255,255,.5); }

/* ---------- Product detail ---------- */
.pdp { display: grid; gap: 1.75rem; padding: 1.5rem 0 3rem; }
.pdp > * { min-width: 0; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.05fr 1fr; gap: 3rem; } }
.pdp-gallery {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
}
@media (min-width: 900px) { .pdp-gallery { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.pdp-stage { position: relative; aspect-ratio: 1 / 1.05; }
.pdp-stage img {
  position: absolute; inset: 1.5rem;
  width: calc(100% - 3rem); height: calc(100% - 3rem);
  object-fit: contain; margin: auto;
}
.pdp-thumbs {
  display: flex; gap: .6rem; padding: .75rem;
  border-top: 1px solid var(--line); background: var(--paper);
}
.pdp-thumbs .thumb {
  width: 64px; height: 64px; padding: 0; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  overflow: hidden; cursor: pointer;
}
.pdp-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumbs .thumb:hover { border-color: var(--ink); }
.pdp-thumbs .thumb.active { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: -1px; }
.pdp-info h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-top: .35rem; }
.pdp-info .short-desc { color: var(--muted); margin-top: .6rem; max-width: 54ch; }
.pdp-price { display: flex; align-items: baseline; gap: .9rem; margin-top: 1.1rem; flex-wrap: wrap; }
.pdp-price .retail { font-size: 1.6rem; font-weight: 700; font-family: var(--font-display); }
.pdp-price .wholesale { color: var(--clay-deep); font-weight: 600; font-size: .95rem; }
.pdp-colors { margin-top: 1.5rem; }
.pdp-sizes { margin-top: 1.25rem; }
.field-label { font-size: .875rem; font-weight: 600; margin-bottom: .6rem; display: flex; justify-content: space-between; align-items: baseline; }
.field-label .picked { color: var(--muted); font-weight: 500; }
.swatches { display: flex; gap: .55rem; flex-wrap: wrap; }
.swatch {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--paper-bright); outline: 1px solid var(--line);
  transition: transform .12s ease, outline-color .12s ease;
}
.swatch:hover { transform: scale(1.08); }
.swatch.selected { outline: 2px solid var(--ink); outline-offset: 1px; }
.size-pills { display: flex; gap: .5rem; flex-wrap: wrap; }
.size-pill {
  min-width: 52px; padding: .55rem .8rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--paper-bright); font-weight: 600;
}
.size-pill:hover { border-color: var(--ink); }
.size-pill.selected { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.qty-row { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-bright); }
.qty-stepper button { width: 42px; height: 42px; font-size: 1.2rem; font-weight: 600; color: var(--ink); border-radius: 999px; }
.qty-stepper button:hover { background: var(--oat); }
.qty-stepper .qty-val { min-width: 2.2rem; text-align: center; font-weight: 600; }
.pdp-add { margin-top: 1.4rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.pdp-add .btn-primary { flex: 1; min-width: 220px; }
.pdp-note { margin-top: .9rem; font-size: .875rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.pdp-note svg { width: 16px; height: 16px; flex: none; color: var(--ok); }

/* wholesale teaser card on PDP */
.ws-card {
  margin-top: 1.75rem; background: var(--oat); border-radius: var(--radius);
  padding: 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .5rem;
}
.ws-card h3 { font-size: 1.1rem; }
.ws-card p { font-size: .925rem; color: var(--ink); }
.ws-card .btn { align-self: flex-start; }

/* specs */
.specs { margin-top: 1.75rem; border-top: 1px solid var(--line); }
.specs h3 { margin: 1.25rem 0 .6rem; font-size: 1.1rem; }
.specs table { width: 100%; border-collapse: collapse; font-size: .925rem; }
.specs td { padding: .55rem .25rem; border-bottom: 1px solid var(--line); }
.specs td:first-child { color: var(--muted); width: 40%; }
.features { margin: 1.25rem 0 0; list-style: none; display: grid; gap: .5rem; }
.features li { padding-inline-start: 1.5rem; position: relative; font-size: .95rem; }
.features li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .55em;
  width: 10px; height: 10px; border-radius: 50%; background: var(--clay);
}

/* size chart toggle */
.size-chart { margin-top: 1.75rem; border-top: 1px solid var(--line); }
.size-chart summary {
  cursor: pointer; list-style: none; padding: 1.25rem 0 .25rem;
  font-weight: 600; font-size: 1.05rem; display: flex; align-items: center; gap: .5rem;
}
.size-chart summary::-webkit-details-marker { display: none; }
.size-chart summary::after { content: "+"; margin-inline-start: auto; font-size: 1.3rem; font-weight: 400; }
.size-chart[open] summary::after { content: "–"; }
.size-chart .table-wrap { overflow-x: auto; padding: .9rem 0 1rem; }
.size-chart table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 460px; }
.size-chart th, .size-chart td { padding: .6rem .75rem; text-align: start; border-bottom: 1px solid var(--line); }
.size-chart th { background: var(--oat); font-weight: 600; }
.size-chart tr:hover td { background: var(--paper-bright); }

/* ---------- Cart ---------- */
.cart-wrap { display: grid; gap: 1.75rem; padding: 1.5rem 0 3rem; }
@media (min-width: 900px) { .cart-wrap { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.cart-lines { display: flex; flex-direction: column; gap: 1rem; }
.cart-line {
  display: grid; grid-template-columns: 92px 1fr; gap: 1rem;
  background: var(--paper-bright); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem; align-items: center;
}
.cart-line .thumb { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); aspect-ratio: 1; display: grid; place-items: center; padding: .5rem; }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-line .info { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.cart-line .info .name { font-weight: 600; }
.cart-line .info .variant { color: var(--muted); font-size: .875rem; }
.cart-line .row2 { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin-top: .3rem; }
.cart-line .price { font-weight: 700; }
.cart-line .remove { color: var(--muted); font-size: .85rem; text-decoration: underline; text-underline-offset: 2px; }
.cart-line .remove:hover { color: var(--err); }
.qty-stepper.small button { width: 32px; height: 32px; }
.cart-empty { text-align: center; padding: 4rem 1rem; }
.cart-empty h2 { margin-bottom: .75rem; }
.cart-empty p { color: var(--muted); margin-bottom: 1.5rem; }
.cart-empty .ctas { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

.cart-summary {
  background: var(--paper-bright); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; position: sticky; top: calc(var(--header-h) + 1.5rem);
}
.cart-summary h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.sum-row { display: flex; justify-content: space-between; padding: .55rem 0; font-size: .95rem; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .9rem; font-weight: 700; font-size: 1.15rem; }
.sum-row.total .amount { font-family: var(--font-display); font-size: 1.3rem; }
.cart-summary .btn { margin-top: 1rem; }
.cart-summary .hint { margin-top: .8rem; font-size: .85rem; color: var(--muted); }
.ws-teaser {
  margin-top: .9rem; padding: .85rem 1rem; border-radius: var(--radius-sm);
  font-size: .875rem; background: var(--ok-bg); color: var(--ok);
  display: flex; flex-direction: column; gap: .5rem; align-items: flex-start;
}
.ws-teaser a { color: var(--ok); font-weight: 600; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--paper-bright); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2rem); max-width: 640px;
}
.form-grid { display: grid; gap: 1.1rem; }
.form-grid.two { grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .875rem; font-weight: 600; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  padding: .75rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--clay); background: var(--paper-bright);
  box-shadow: 0 0 0 3px rgba(201, 111, 74, .15);
}
.field textarea { min-height: 120px; resize: vertical; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); background: var(--err-bg); }
.field .err-msg { color: var(--err); font-size: .8125rem; }
.field .err-msg[hidden] { display: none; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.form-status { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-size: .925rem; font-weight: 500; }
.form-status[hidden] { display: none; }
.form-status.ok { background: var(--ok-bg); color: var(--ok); }
.form-status.err { background: var(--err-bg); color: var(--err); }

/* ---------- Inquiry colour multi-select（询盘表单 8 色多选） ---------- */
.field .group-label { font-size: .875rem; font-weight: 600; }
.color-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
@media (min-width: 720px) { .color-checks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.color-check {
  display: flex; align-items: center; gap: .5rem; min-width: 0;
  padding: .5rem .7rem; cursor: pointer; user-select: none;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); font-size: .875rem; line-height: 1.2;
}
.color-check:hover { border-color: var(--ink); }
.color-check input {
  /* 复位 .field input 的 width:100%/padding（复选框要原生尺寸，否则撑破标签） */
  width: 16px; height: 16px; padding: 0; margin: 0; border: 0; background: none;
  flex: none; accent-color: var(--ink);
}
.color-check .cname { min-width: 0; overflow-wrap: break-word; }
.color-check .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; border: 1px solid rgba(31, 30, 27, .15); }
.color-check:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.color-check:has(input:focus-visible) { outline: 2px solid var(--clay); outline-offset: 1px; }
.field .hint { font-size: .8125rem; color: var(--muted); }
.field.invalid .color-checks .color-check { border-color: var(--err); }
.hp-field { position: absolute !important; inset-inline-start: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Prose pages (policies / about / faq) ---------- */
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: .75rem; }
.prose .lead { font-size: 1.1rem; color: var(--muted); margin-bottom: 1.75rem; }
.prose h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; }
.prose p { margin-bottom: 1rem; }
.prose ul { list-style: none; }
.prose ul li { padding-inline-start: 1.4rem; position: relative; margin-bottom: .5rem; }
.prose ul li::before { content: ""; position: absolute; inset-inline-start: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: .7rem; }
.faq-list details {
  background: var(--paper-bright); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 1.2rem;
}
.faq-list summary {
  cursor: pointer; list-style: none; padding: 1.05rem 0;
  font-weight: 600; font-size: 1rem; display: flex; align-items: center; gap: .75rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; margin-inline-start: auto; font-size: 1.35rem; font-weight: 400; color: var(--clay); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list .answer { padding: 0 0 1.1rem; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--paper-bright); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.35rem;
}
.step .num {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--clay);
  display: block; margin-bottom: .5rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .925rem; }

/* ---------- Trust grid ---------- */
.trust-grid { display: grid; gap: .9rem; }
@media (min-width: 560px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .trust-grid { grid-template-columns: repeat(5, 1fr); } }
.trust-item { text-align: center; padding: 1.1rem .8rem; }
.trust-item .icon { font-size: 1.5rem; margin-bottom: .4rem; }
.trust-item h3 { font-size: 1rem; }
.trust-item p { font-size: .85rem; color: var(--muted); margin-top: .35rem; }

/* ---------- Split banner (wholesale CTA) ---------- */
.split-cta {
  background: var(--ink); color: var(--paper); border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 5vw, 3rem); display: grid; gap: 1.25rem;
}
@media (min-width: 800px) { .split-cta { grid-template-columns: 1.5fr 1fr; align-items: center; } }
.split-cta h2 { font-size: clamp(1.5rem, 4vw, 2rem); color: var(--paper); }
.split-cta p { color: var(--oat-deep); margin-top: .6rem; }
.split-cta .ctas { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 799px) { .split-cta .ctas { justify-content: flex-start; } }
.split-cta .btn-primary { background: var(--clay); }
.split-cta .btn-primary:hover { background: var(--clay-deep); }
.split-cta .btn-outline { border-color: var(--paper); color: var(--paper); }
.split-cta .btn-outline:hover { background: var(--paper); color: var(--ink); }

/* ---------- Price table ---------- */
.price-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.price-table th, .price-table td { padding: .75rem 1rem; text-align: start; border-bottom: 1px solid var(--line); }
.price-table th { background: var(--oat); font-weight: 600; }
.price-table tr:hover td { background: var(--paper-bright); }
.price-table .num { text-align: end; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); margin-top: 3rem; }
.footer-grid {
  display: grid; gap: 2rem; padding: clamp(2.25rem, 5vw, 3.5rem) 0 2rem;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer .logo { color: var(--paper); }
.site-footer .logo:hover { color: var(--paper); }
.footer-blurb { color: var(--oat-deep); margin-top: .9rem; font-size: .925rem; max-width: 34ch; }
.footer-col h3 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--oat-deep); margin-bottom: .9rem; }
.footer-col ul { list-style: none; display: grid; gap: .55rem; }
.footer-col a { color: var(--paper); text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: var(--oat); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(247, 244, 238, .15);
  padding: 1.25rem 0 1.5rem; display: flex; flex-direction: column; gap: .7rem;
  font-size: .85rem; color: var(--oat-deep);
}
.footer-disclaimer { max-width: 68ch; }
@media (min-width: 800px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 140; bottom: 1.25rem; inset-inline: 1rem;
  max-width: 420px; margin-inline: auto;
  background: var(--ink); color: var(--paper);
  border-radius: 999px; padding: .8rem 1.4rem;
  display: flex; align-items: center; gap: .6rem; font-weight: 500; font-size: .925rem;
  box-shadow: var(--shadow-pop);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast .tick { color: #7FB48A; font-weight: 700; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: clamp(3.5rem, 10vw, 6rem) 1rem; }
.notfound .code { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 7rem); font-weight: 600; color: var(--oat-deep); line-height: 1; }
.notfound h1 { margin: 1rem 0 .6rem; }
.notfound p { color: var(--muted); margin-bottom: 1.75rem; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .85rem; color: var(--muted); padding-top: 1.25rem; display: flex; gap: .45rem; flex-wrap: wrap; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--clay-deep); }

/* ---------- Page head (subpages) ---------- */
.page-head { padding: 2.25rem 0 1rem; }
.page-head h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); }
.page-head .sub { color: var(--muted); margin-top: .5rem; max-width: 60ch; }

/* ---------- RTL overrides ---------- */
[dir="rtl"] .size-chart summary::after, [dir="rtl"] .faq-list summary::after { margin-inline-start: auto; }
[dir="rtl"] .logo, [dir="rtl"] .btn, [dir="rtl"] .chip, [dir="rtl"] .icon-btn { direction: rtl; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .color-strip .dot:hover { transform: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
  .lang-label { display: none; }
  .color-strip .dot { width: 22px; height: 22px; }
  .color-strip .dots { gap: .4rem; }
  .icon-btn { padding: .5rem .55rem; }
}
