/* ============================================================
   InkHaven storefront — marketplace-style design system
   White / deep ink / ink-orange, dense commerce grid.
   ============================================================ */

:root {
  --paper: #ffffff;
  --paper-2: #f6f7f9;
  --paper-3: #eceef2;
  --ink: #1b1c1f;
  --ink-soft: #3d4046;
  --muted: #70757e;
  --line: #e6e8ec;
  --line-strong: #d2d6dd;
  --accent: #ff5c00;
  --accent-deep: #d84300;
  --accent-wash: #fff1e7;
  --blue: #1868d8;
  --blue-deep: #1257b5;
  --red: #e8262c;
  --sage: #2f7d5b;
  --success: #2f7d5b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 26, 0.06);
  --shadow-md: 0 10px 26px -14px rgba(20, 22, 26, 0.26);
  --shadow-lg: 0 24px 60px -24px rgba(20, 22, 26, 0.3);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: var(--sans);
  --topbar-h: 34px;
  --header-h: 72px;
  --nav-h: 46px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body.nav-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 800; letter-spacing: -0.02em; margin: 0; line-height: 1.18; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
  font-size: 13px; font-weight: 600;
}
.skip-link:focus { left: 0; }

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

/* SSR 首屏快照（脚本接管前的静态内容） */
.ssr-intro { padding-top: 26px; }
.ssr-intro h1 { font-size: clamp(24px, 3vw, 34px); max-width: 24ch; margin-bottom: 10px; }
.ssr-intro p { color: var(--ink-soft); max-width: 70ch; margin-bottom: 10px; }
.ssr-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 8px 0 18px; }
.ssr-links a {
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 7px 13px; font-size: 12.5px; color: var(--ink-soft);
}
.ssr-links a:hover { border-color: var(--accent); color: var(--accent-deep); }
.ssr-count { font-size: 12.5px; color: var(--muted); margin: 0 0 12px; }

/* ---------- topbar ---------- */
.topbar { background: var(--blue); color: #fff; font-size: 12px; }
.topbar-inner {
  max-width: 1400px; margin: 0 auto; min-height: var(--topbar-h);
  padding: 6px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.topbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar-left i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); display: inline-block; }
.topbar-right { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.topbar-right a { opacity: 0.92; }
.topbar-right a:hover { opacity: 1; text-decoration: underline; }
.topbar-stars { color: #ffc531; letter-spacing: 1px; font-size: 11px; }
.topbar-note { opacity: 0.88; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-main {
  max-width: 1400px; margin: 0 auto; height: var(--header-h);
  padding: 0 20px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 26px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { width: 34px; height: 34px; color: var(--accent); flex: none; }
.brand-logo { display: block; width: auto; max-width: min(150px, 30vw); height: 40px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy .wordmark {
  font-size: 23px; font-weight: 800; color: var(--accent);
  letter-spacing: -0.035em; line-height: 1;
}
.brand-copy .dot { display: none; }
.brand-copy em {
  font-style: normal; font-size: 9px; letter-spacing: 0.17em;
  text-transform: uppercase; color: var(--muted); margin-top: 3px;
}
.header-search {
  justify-self: center;
  width: 100%; max-width: 660px; height: 42px;
  display: flex; align-items: stretch;
  border: 1.5px solid #ffbe93; border-radius: 8px; overflow: hidden;
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.header-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.12); }
.header-search input {
  flex: 1; min-width: 0; border: 0; outline: none; background: #fff;
  padding: 0 14px; font-size: 14px;
}
.header-search button {
  width: 54px; border: 0; background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.16s ease;
}
.header-search button:hover { background: var(--accent-deep); }
.header-search button svg { width: 19px; height: 19px; }

.header-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.icon-btn {
  height: 40px; min-width: 40px; padding: 0 8px;
  border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  position: relative;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.icon-btn:hover { background: var(--paper-2); border-color: var(--line); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-label { font-size: 11px; color: var(--muted); display: none; }
.design-btn {
  height: 40px; padding: 0 15px; border-radius: 999px;
  background: #ffd642; color: #2b2100;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; white-space: nowrap;
  border: 1px solid #f2c400;
  transition: background 0.16s ease, transform 0.16s ease;
}
.design-btn:hover { background: #ffcb1a; transform: translateY(-1px); }
.design-btn svg { width: 16px; height: 16px; }
.cart-count {
  position: absolute; top: 2px; right: 2px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.nav-toggle { display: none; }
.only-mobile { display: none; }

/* ---------- primary nav ---------- */
.primary-nav { border-top: 1px solid var(--line); background: #fff; }
.nav-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 20px;
  min-height: var(--nav-h);
  display: flex; align-items: center; gap: 26px;
}
.nav-inner > a, .nav-item > a {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  white-space: nowrap; height: var(--nav-h);
  border-bottom: 2px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.nav-inner > a:hover, .nav-item > a:hover,
.nav-inner > a.active, .nav-item > a.active { color: var(--accent); border-color: var(--accent); }
.nav-item > a svg { width: 11px; height: 11px; opacity: 0.6; }
.nav-item { position: relative; display: flex; align-items: center; height: 100%; }
.nav-promo {
  margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.mega {
  position: absolute; top: 100%; left: -150px; width: 720px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 0 0 12px 12px; box-shadow: var(--shadow-lg);
  padding: 26px 28px; display: none; z-index: 70;
}
.nav-item:hover .mega, .nav-item:focus-within .mega { display: block; }
.mega-inner { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 26px; }
.mega-col h5 {
  margin: 0 0 12px; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); font-weight: 700;
}
.mega-col a {
  display: block; padding: 7px 0; font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
}
.mega-col a:hover { color: var(--accent); }
.mega-promo {
  background: linear-gradient(140deg, #fff3e8, #ffe1cb);
  border-radius: 10px; padding: 18px;
  display: flex; flex-direction: column; gap: 8px; justify-content: center;
}
.mega-promo-kicker { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-deep); font-weight: 700; }
.mega-promo strong { font-size: 16px; line-height: 1.3; color: var(--ink); }
.mega-promo-link { font-size: 12.5px; font-weight: 700; color: var(--accent); margin-top: 4px; }

/* ---------- mobile drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(14, 16, 20, 0.48);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease; z-index: 80;
}
body.nav-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.mobile-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 330px; max-width: 86vw;
  background: #fff; z-index: 90; overflow-y: auto;
  transform: translateX(-102%); transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 18px 20px 40px;
}
body.nav-open .mobile-drawer { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.drawer-close {
  width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 14px;
}
.drawer-design {
  display: block; text-align: center; margin: 16px 0 8px;
  background: #ffd642; color: #2b2100; font-weight: 700; border-radius: 999px; padding: 11px;
}
.drawer-links { display: flex; flex-direction: column; }
.drawer-links a {
  padding: 12px 2px; border-bottom: 1px solid var(--line);
  font-size: 14.5px; font-weight: 600;
}
.drawer-group { margin-top: 22px; }
.drawer-group h5 {
  margin: 0 0 10px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.drawer-group > a { display: block; padding: 7px 0; font-size: 13.5px; color: var(--ink-soft); }
.drawer-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer-tags a {
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 7px 12px; font-size: 12.5px; color: var(--ink-soft);
}

/* ---------- layout helpers ---------- */
.app { min-height: 60vh; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.eyebrow {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-deep); font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
}
.section { padding: 40px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 22px;
  margin-bottom: 20px;
}
.section-head h2 { font-size: clamp(21px, 2.2vw, 28px); line-height: 1.15; }
.section-head p.sub { color: var(--muted); font-size: 13px; margin-top: 6px; max-width: 64ch; }
.link-more {
  font-size: 13px; font-weight: 700; color: var(--accent-deep);
  white-space: nowrap; display: inline-flex; align-items: center; gap: 5px;
}
.link-more:hover { color: var(--accent-deep); text-decoration: underline; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- buttons / chips / forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 8px; border: 1px solid var(--accent);
  background: var(--accent); color: #fff;
  padding: 13px 22px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.01em;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-1px); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--paper-2); color: var(--ink); border-color: var(--ink-soft); }
.btn.blue { background: var(--blue); border-color: var(--blue); }
.btn.blue:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn.red { background: var(--red); border-color: var(--red); }
.btn.red:hover { background: #cf1b21; border-color: #cf1b21; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn.block { width: 100%; }
.btn.small { padding: 9px 14px; font-size: 12.5px; }

.chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 38px; padding: 0 13px;
  border: 1px solid var(--line-strong); background: #fff; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  transition: all 0.14s ease;
}
.chip:hover { border-color: var(--ink-soft); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.disabled { opacity: 0.35; pointer-events: none; text-decoration: line-through; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; background: #fff; border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 12px 13px; font-size: 14px; outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.12);
}
.field textarea { resize: vertical; min-height: 88px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.select {
  appearance: none; border: 1px solid var(--line-strong); background: #fff;
  border-radius: 8px; padding: 9px 34px 9px 13px; font-size: 13px; font-weight: 500;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M1 3l4 4 4-4' stroke='%233d4046' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: #f4ece4; }
.hero-viewport { position: relative; height: 430px; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slide.tone-cream { background: linear-gradient(105deg, #fff7f0 0%, #ffe6d2 52%, #ffd6b8 100%); color: var(--ink); }
.hero-slide.tone-navy { background: linear-gradient(105deg, #11243c 0%, #16314f 58%, #1d4266 100%); color: #fff; }
.hero-slide.tone-mint { background: linear-gradient(105deg, #eefaf7 0%, #d6f2ec 55%, #bde9e1 100%); color: var(--ink); }
.hero-copy {
  position: relative; z-index: 2;
  max-width: 1400px; padding: 0 20px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.hero-copy-inner { max-width: 560px; padding-left: 44px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  color: var(--accent-deep);
}
.tone-navy .hero-kicker { color: #ffcf7a; }
.hero-copy h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.04; letter-spacing: -0.03em; }
.hero-copy h1 em { font-style: normal; color: var(--accent); }
.tone-navy .hero-copy h1 em { color: #ffb547; }
.hero-copy p { font-size: 15px; line-height: 1.6; max-width: 46ch; color: var(--ink-soft); }
.tone-navy .hero-copy p { color: rgba(255, 255, 255, 0.82); }
.hero-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-cta .btn { padding: 14px 26px; border-radius: 999px; }
.hero-cta .btn.ghost { background: transparent; border-color: currentColor; color: inherit; }
.hero-cta .btn.ghost:hover { background: rgba(0, 0, 0, 0.06); border-color: currentColor; }
.tone-navy .hero-cta .btn.ghost:hover { background: rgba(255, 255, 255, 0.12); }
.hero-meta { display: flex; gap: 22px; margin-top: 14px; flex-wrap: wrap; }
.hero-meta div { font-size: 12px; color: var(--muted); }
.tone-navy .hero-meta div { color: rgba(255, 255, 255, 0.7); }
.hero-meta b { display: block; font-size: 16px; color: var(--ink); }
.tone-navy .hero-meta b { color: #fff; }
.hero-media { position: relative; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 38%);
}
.tone-navy .hero-media::after { background: linear-gradient(90deg, rgba(17, 36, 60, 0.75), rgba(17, 36, 60, 0) 40%); }
.hero-controls {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 4;
  max-width: 1400px; margin: 0 auto; padding: 0 64px;
  display: flex; align-items: center; gap: 10px;
}
.hero-dot {
  width: 26px; height: 6px; border-radius: 999px; border: 1px solid rgba(0, 0, 0, 0.16); padding: 0;
  background: rgba(255, 255, 255, 0.85); transition: background 0.2s ease, width 0.2s ease;
}
.hero-dot.active { background: var(--accent); border-color: var(--accent); width: 42px; }
.hero-arrow {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(4px);
  display: inline-flex; align-items: center; justify-content: center;
}
.hero-arrow:hover { background: #fff; }
.hero-arrow svg { width: 16px; height: 16px; }

/* ---------- promo row ---------- */
.promo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.promo-card {
  display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 12px; transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.promo-card:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); transform: translateY(-2px); }
.promo-thumb { width: 96px; height: 96px; border-radius: 8px; overflow: hidden; background: var(--paper-2); }
.promo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.promo-copy strong { display: block; font-size: 14px; line-height: 1.35; }
.promo-copy span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.promo-arrow { width: 30px; height: 30px; border-radius: 50%; background: var(--paper-2); display: inline-flex; align-items: center; justify-content: center; color: var(--accent); }
.promo-arrow svg { width: 14px; height: 14px; }

/* ---------- gift finder ---------- */
.gift-row {
  display: flex; gap: 20px; justify-content: center; align-items: flex-start;
  overflow-x: auto; padding: 4px 2px 8px;
  scrollbar-width: thin;
}
.gift-item { flex: 0 0 auto; text-align: center; width: 118px; }
.gift-circle {
  width: 108px; height: 108px; border-radius: 50%;
  background: #d9f2ef; border: 1px solid #c6e9e4;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden; margin: 0 auto 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.gift-item:hover .gift-circle { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gift-circle img { width: 96px; height: 96px; object-fit: contain; }
.gift-item span { font-size: 13px; font-weight: 600; }

.gift-form-card {
  background: #fbe8d7; border-radius: 14px; padding: 22px;
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: end;
}
.gift-form-card .field { margin: 0; }
.gift-form-card .field label { font-size: 13px; font-weight: 700; color: var(--ink); }
.gift-form-card select {
  width: 100%; height: 44px; border: 1px solid transparent; border-radius: 8px;
  background: #fff; padding: 0 12px; font-size: 14px; outline: none;
}
.gift-form-card .btn { height: 44px; border-radius: 7px; white-space: nowrap; padding: 0 26px; }

/* ---------- deals ---------- */
.deals-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.deals-head-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.deals-head h2 { font-size: clamp(21px, 2.2vw, 28px); }
.countdown {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-wash); color: var(--accent-deep);
  border-radius: 8px; padding: 6px 10px; font-size: 12px; font-weight: 700;
}
.countdown b { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* ---------- category tiles (collection) ---------- */
.collection-band {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  display: grid; grid-template-columns: 260px 1fr; background: #fff;
}
.collection-band-side {
  background: linear-gradient(160deg, #12243b, #1d3a5a);
  color: #fff; padding: 28px 24px;
  display: flex; flex-direction: column; gap: 10px; justify-content: center;
}
.collection-band-side .eyebrow { color: #ffb547; }
.collection-band-side h2 { font-size: 24px; line-height: 1.15; }
.collection-band-side p { font-size: 13px; color: rgba(255, 255, 255, 0.76); line-height: 1.6; }
.collection-band-side .link-more { color: #ffb547; margin-top: 6px; }
.collection-band .product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 16px; gap: 16px;
}
.collection-band .pc-body { padding-top: 10px; }

/* ---------- service strip ---------- */
.service-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
  padding: 26px 0;
}
.service-item { display: flex; align-items: center; gap: 12px; }
.service-item .ico {
  width: 42px; height: 42px; border-radius: 50%; background: var(--accent-wash);
  color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.service-item .ico svg { width: 20px; height: 20px; }
.service-item strong { display: block; font-size: 13.5px; }
.service-item span { display: block; font-size: 12px; color: var(--muted); }

/* ---------- product grid / card ---------- */
.product-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 16px;
}
.product-card { position: relative; background: #fff; }
.pc-media {
  position: relative; display: block; aspect-ratio: 1 / 1;
  border-radius: 10px; overflow: hidden;
  background: #f5f6f8; border: 1px solid #eef0f3;
}
.pc-media img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 8px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.pc-media .media-link { position: absolute; inset: 0; display: block; z-index: 1; }
.pc-media img.img-missing { object-fit: contain; background: var(--paper-2); }
.pc-media img.alt { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) {
  .product-card:hover .pc-media img.main { opacity: 0; }
  .product-card:hover .pc-media img.alt { opacity: 1; transform: scale(1.03); }
}
.pc-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: #fff; color: var(--ink);
  border-radius: 4px; padding: 4px 8px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.pc-badge.sale { background: var(--red); color: #fff; }
.pc-quick {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
@media (hover: hover) {
  .product-card:hover .pc-quick { opacity: 1; transform: none; }
}
.pc-quick .btn {
  width: 100%; background: #fff; color: var(--ink); border-color: transparent;
  padding: 10px 12px; font-size: 12.5px; box-shadow: var(--shadow-md);
}
.pc-quick .btn:hover { background: var(--accent); color: #fff; }
.pc-body { padding: 10px 2px 0; }
.pc-title {
  font-size: 13.5px; line-height: 1.4; font-weight: 500; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 38px;
}
.pc-title:hover { color: var(--accent); }
.pc-price {
  display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.pc-price b { font-size: 15px; font-weight: 800; color: var(--accent); }
.pc-price .was { font-size: 12px; color: #9aa0a8; text-decoration: line-through; }
.pc-price em {
  font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--red);
  background: #ffeceb; border-radius: 4px; padding: 2px 5px;
}
.pc-colors { display: flex; gap: 4px; margin-top: 7px; }
.pc-colors i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.16); display: block; }

/* ---------- size rail / values ---------- */
.size-rail { display: flex; gap: 8px; flex-wrap: wrap; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { border-top: 1px solid var(--line-strong); padding-top: 18px; }
.value .num { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.value h3 { font-size: 17px; margin: 8px 0 6px; }
.value p { color: var(--muted); font-size: 13.5px; line-height: 1.65; max-width: 38ch; }

/* ---------- shop page ---------- */
.breadcrumb {
  display: flex; gap: 7px; align-items: center; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
  padding: 16px 0;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span.sep { color: var(--line-strong); }
.page-head { padding: 6px 0 20px; }
.page-head h1 { font-size: clamp(24px, 2.8vw, 34px); margin: 6px 0 8px; }
.page-head p { color: var(--muted); max-width: 70ch; font-size: 13.5px; }
.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-bottom: 18px; }
.shop-result-count { display: block; color: var(--muted); font-size: 13px; margin: 4px 0 8px; }
.shop-browse-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.shop-browse-heading h2 { font-size: 19px; margin: 0; }
.shop-browse-heading .shop-filter-toggle { display: none; }
.shop-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 28px; padding: 4px 0 60px; align-items: start; }
.shop-side { position: sticky; top: calc(var(--header-h) + var(--nav-h) + 16px); }
.filter-panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.filter-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 800;
}
.filter-panel-head a { font-size: 11.5px; font-weight: 600; color: var(--accent-deep); }
.filter-group { border-bottom: 1px solid var(--line); padding: 0 16px; }
.filter-group:last-child { border-bottom: 0; }
.filter-group summary {
  list-style: none; cursor: pointer; padding: 14px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--ink);
}
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after { content: "−"; color: var(--muted); font-size: 15px; }
.filter-group:not([open]) summary::after { content: "+"; }
.filter-body { padding-bottom: 14px; }
.filter-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 6px 0; font-size: 13px; color: var(--ink-soft);
}
.filter-link:hover { color: var(--accent); }
.filter-link.active { color: var(--accent); font-weight: 700; }
.filter-link .n { color: var(--muted); font-size: 12px; font-weight: 400; }
.filter-sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-sizes button {
  border: 1px solid var(--line-strong); background: #fff; border-radius: 6px;
  min-width: 38px; height: 32px; font-size: 12px; font-weight: 600;
}
.filter-sizes button:hover { border-color: var(--ink-soft); }
.filter-sizes button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-note { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); padding: 14px; margin-top: 14px; }
.filter-note strong { display: block; font-size: 12.5px; margin-bottom: 4px; }
.filter-note p { font-size: 12px; color: var(--muted); line-height: 1.5; }

.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 0 0 14px; flex-wrap: wrap;
}
.shop-toolbar .count { font-size: 12.5px; color: var(--muted); }
.shop-toolbar .tools { display: flex; align-items: center; gap: 10px; }
.shop-toolbar .tools label { font-size: 12.5px; color: var(--muted); }
.collection-pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 3px; }
.collection-pills a {
  flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 7px 13px; font-size: 12.5px; color: var(--ink-soft); font-weight: 500;
  background: #fff;
}
.collection-pills a:hover { border-color: var(--accent); color: var(--accent); }
.collection-pills a.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-wash); color: var(--accent-deep);
  border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 600;
}
.filter-tag a { color: inherit; opacity: 0.7; }
.filter-tag a:hover { opacity: 1; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; padding: 0 10px;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .gap { border: 0; }

.empty-state { text-align: center; padding: 64px 20px; color: var(--muted); }
.empty-state h3 { font-size: 22px; color: var(--ink); margin-bottom: 8px; }

/* ---------- product detail ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) 500px; gap: 36px; align-items: start; padding-bottom: 24px; }
.gallery { position: sticky; top: calc(var(--header-h) + var(--nav-h) + 16px); }
.gallery-main {
  aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden;
  background: #f5f6f8; border: 1px solid var(--line);
  position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.gallery-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--red); color: #fff; border-radius: 6px;
  padding: 5px 9px; font-size: 12px; font-weight: 800;
}
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs button {
  width: 68px; height: 68px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); background: #f5f6f8; padding: 3px;
}
.gallery-thumbs button.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }

.pdp-info { padding-top: 2px; }
.pdp-cat { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.pdp-cat a:hover { color: var(--accent); }
.pdp-info h1 { font-size: clamp(21px, 2.2vw, 27px); line-height: 1.25; margin: 8px 0 12px; }
.pdp-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.pdp-price > span:first-child { font-size: 28px; font-weight: 800; color: var(--accent); }
.pdp-price .was { font-size: 15px; color: #9aa0a8; text-decoration: line-through; }
.pdp-price .save { font-size: 12px; font-weight: 800; color: var(--red); background: #ffeceb; padding: 3px 8px; border-radius: 5px; }
.pdp-sub { color: var(--ink-soft); font-size: 13.5px; line-height: 1.65; margin: 12px 0 0; }
.pdp-divider { height: 1px; background: var(--line); margin: 18px 0; display: block; }

.opt-block { margin-bottom: 18px; }
.opt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.opt-head label, .opt-head .opt-label { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.opt-head .opt-value { font-size: 12px; color: var(--accent); font-weight: 600; }
.opt-help { font-size: 12px; color: var(--muted); margin: -2px 0 8px; }
.size-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; flex-wrap: wrap; }
.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden;
}
.qty button { width: 38px; height: 40px; border: 0; background: #fff; font-size: 16px; }
.qty button:hover { background: var(--paper-2); }
.qty span { min-width: 34px; text-align: center; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.pdp-actions { display: flex; gap: 10px; margin: 6px 0 14px; }
.pdp-buy-now { min-height: 50px; margin: 6px 0; }
.checkout-sandbox { display: inline-block; padding: 5px 10px; border-radius: 6px; background: #fff3d4; color: #664908; font-size: 12px; font-weight: 650; }
#paypal-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
#paypal-wallet-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0 10px; color: var(--muted); font-size: 12px; }
#paypal-wallet-divider::before, #paypal-wallet-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#paypal-wallet-divider[hidden] { display: none; }
.checkout-card-grid small { color: var(--muted); font-size: 11px; font-weight: 400; }
#paypal-card { max-width: 540px; margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #faf9f7; }
.checkout-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin-bottom: 12px; }
.checkout-card-head h4 { font-size: 15px; }
.checkout-card-head span { color: var(--muted); font-size: 12px; }
.checkout-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; margin-bottom: 12px; }
.checkout-card-grid span { display: block; margin-bottom: 4px; color: var(--ink-soft); font-size: 12px; font-weight: 650; }
.checkout-card-wide { grid-column: 1 / -1; }
.paypal-card-field { height: 46px; background: #fff; border-radius: 7px; }
.paypal-card-field > *, .paypal-card-field iframe { display: block; width: 100%; height: 100%; }
#paypal-billing, #paypal-card-submit { margin-top: 12px; }
#checkout-form [hidden] { display: none; }
.pdp-actions .btn { flex: 1; height: 52px; font-size: 15px; }
.pdp-note { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--ink-soft); margin: 6px 0 4px; }
.pdp-note div { display: flex; gap: 9px; align-items: center; }
.pdp-note svg { width: 16px; height: 16px; flex: none; color: var(--accent); }
.pdp-stock { font-size: 12.5px; color: var(--sage); font-weight: 600; }

.radio-cards { display: grid; gap: 8px; }
.radio-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-size: 13.5px;
}
.radio-card:hover { border-color: var(--line-strong); }
.radio-card.selected { border-color: var(--accent); background: var(--accent-wash); box-shadow: 0 0 0 1px var(--accent); }
.radio-card input { display: none; }
.radio-card .rc-price { font-size: 12px; color: var(--muted); }
.radio-card .rc-price.free { color: var(--sage); }
.text-counter { text-align: right; font-size: 12px; color: var(--muted); margin-top: 6px; }

.upload-box {
  border: 1px dashed var(--line-strong); border-radius: 8px; padding: 14px;
  display: flex; align-items: center; gap: 12px; background: #fff; cursor: pointer;
  transition: border-color 0.15s ease;
}
.upload-box:hover { border-color: var(--accent); }
.upload-box img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; background: var(--paper-2); }
.upload-box .up-text { font-size: 12.5px; color: var(--muted); }
.upload-box .up-text b { display: block; font-size: 13px; color: var(--ink); margin-bottom: 2px; }
.upload-box { position: relative; }
.upload-box input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-box:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.upload-box:has(input[aria-invalid="true"]) { border-color: #b42330; }
.pdp-option-error { margin-top: 6px; color: #b42330; font-size: 13px; font-weight: 600; }

.accordion { border-top: 1px solid var(--line); margin-top: 18px; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item summary {
  list-style: none; cursor: pointer; padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px; font-weight: 700;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after { content: "+"; font-size: 18px; font-weight: 400; color: var(--muted); }
.acc-item[open] summary::after { content: "−"; }
.acc-body { padding: 0 0 18px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; }
.acc-body p { margin: 0 0 10px; }
.acc-body table { border-collapse: collapse; width: 100%; font-size: 13px; }
.acc-body th, .acc-body td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; }

.desc { font-size: 13.5px; line-height: 1.72; color: var(--ink-soft); }
.desc h3, .desc h4 { font-size: 16px; color: var(--ink); margin: 20px 0 8px; }
.desc p { margin: 0 0 12px; }
.desc span { display: inline; }
.desc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13px; }
.desc th, .desc td { border: 1px solid var(--line); padding: 9px 10px; text-align: left; vertical-align: top; }
.desc th { background: var(--paper-2); font-weight: 600; }
.desc ul { list-style: disc; padding-left: 20px; margin: 10px 0; }
.desc li { margin-bottom: 6px; }
.desc img { border-radius: 8px; margin: 12px 0; }

/* ---------- cart ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; padding: 10px 0 60px; align-items: start; }
.cart-list { border-top: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 104px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item .thumb { width: 104px; height: 104px; border-radius: 8px; overflow: hidden; background: #f5f6f8; border: 1px solid var(--line); }
.cart-item .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.ci-body { display: flex; flex-direction: column; gap: 6px; }
.ci-body h3 { font-size: 14.5px; line-height: 1.4; font-weight: 600; }
.ci-meta { font-size: 12.5px; color: var(--muted); }
.ci-custom { font-size: 12px; color: var(--accent-deep); background: var(--accent-wash); border-radius: 5px; padding: 5px 8px; display: inline-block; }
.ci-controls { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.ci-remove { background: none; border: 0; padding: 0; font-size: 12px; color: var(--muted); text-decoration: underline; }
.ci-remove:hover { color: var(--red); }
.ci-total { text-align: right; font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 700; }
.cart-side {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  background: #fff; position: sticky; top: calc(var(--header-h) + var(--nav-h) + 16px);
}
.cart-side h3 { font-size: 18px; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 7px 0; color: var(--ink-soft); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-size: 17px; color: var(--ink); font-weight: 800; }
.ship-progress { margin: 14px 0 18px; }
.ship-progress .bar { height: 6px; border-radius: 999px; background: var(--paper-3); overflow: hidden; }
.ship-progress .bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.4s ease; }
.ship-progress p { font-size: 12px; color: var(--muted); margin-top: 7px; }
.trust-list { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--muted); }
.trust-list div { display: flex; gap: 8px; align-items: center; }
.trust-list svg { width: 14px; height: 14px; color: var(--accent); flex: none; }

/* ---------- checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; padding: 10px 0 60px; align-items: start; }
.co-block { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 24px; }
.co-block h3 { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.co-block h3 .step {
  width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.co-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: calc(var(--header-h) + var(--nav-h) + 16px); }
.co-side h3 { font-size: 18px; margin-bottom: 14px; }
.co-items { display: flex; flex-direction: column; gap: 12px; max-height: 320px; overflow: auto; margin-bottom: 14px; }
.co-item { display: flex; gap: 10px; align-items: center; }
.co-item img { width: 54px; height: 54px; object-fit: contain; border-radius: 6px; background: var(--paper-2); padding: 2px; }
.co-item .m { flex: 1; font-size: 12px; line-height: 1.4; }
.co-item .m span { color: var(--muted); display: block; font-size: 11.5px; }
.co-item .p { font-size: 12px; font-variant-numeric: tabular-nums; }

/* ---------- confirm / track ---------- */
.confirm-wrap { max-width: 780px; margin: 0 auto; padding: 44px 20px 80px; }
.confirm-hero { text-align: center; margin-bottom: 30px; }
.confirm-hero .tick {
  width: 60px; height: 60px; border-radius: 50%; background: var(--sage); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.confirm-hero .tick svg { width: 28px; height: 28px; }
.confirm-hero h1 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 8px; }
.confirm-hero p { color: var(--muted); font-size: 13.5px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 22px; margin-bottom: 18px; }
.panel h3 { font-size: 17px; margin-bottom: 14px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--paper-2); border-radius: 999px; padding: 5px 10px; font-weight: 700;
}
.status-pill.paid { background: #e6f4ec; color: var(--success); }
.status-pill.pending { background: #fdf3dc; color: #8a611c; }
.status-pill.cancelled { background: #fde8e6; color: var(--accent-deep); }
.track-form { max-width: 520px; margin: 0 auto; }
.timeline { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.tl-step { display: flex; gap: 14px; padding-bottom: 20px; position: relative; }
.tl-step::before { content: ""; position: absolute; left: 6px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.tl-step:last-child::before { display: none; }
.tl-dot { width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; margin-top: 4px; flex: none; }
.tl-step.done .tl-dot { background: var(--accent); border-color: var(--accent); }
.tl-step.done p { color: var(--ink); }
.tl-step p { font-size: 13px; color: var(--muted); }
.tl-step small { font-size: 11.5px; color: var(--muted); }

/* ---------- about ---------- */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding: 40px 0; }
.about-hero h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.05; margin: 12px 0 16px; }
.about-hero p { color: var(--ink-soft); line-height: 1.75; margin-bottom: 12px; max-width: 52ch; font-size: 14px; }
.about-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--paper-2); border: 1px solid var(--line); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 16px 0 50px; }

/* ---------- policy pages ---------- */
.doc-wrap { max-width: 900px; margin: 0 auto; padding: 14px 20px 70px; }
.doc-head { padding: 8px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.doc-head h1 { font-size: clamp(26px, 3.2vw, 36px); margin: 6px 0 8px; }
.doc-head p { color: var(--muted); font-size: 13.5px; }
.doc-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.doc-nav a { border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 13px; font-size: 12.5px; color: var(--ink-soft); }
.doc-nav a:hover { border-color: var(--accent); color: var(--accent); }
.doc-nav a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.doc-body { font-size: 14px; line-height: 1.75; color: var(--ink-soft); }
.doc-body h2 { font-size: 18px; color: var(--ink); margin: 28px 0 10px; }
.doc-body h3 { font-size: 15px; color: var(--ink); margin: 20px 0 8px; }
.doc-body p { margin: 0 0 12px; }
.doc-body ul { list-style: disc; padding-left: 20px; margin: 0 0 14px; }
.doc-body li { margin-bottom: 6px; }
.doc-body table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 12px 0 18px; }
.doc-body th, .doc-body td { border: 1px solid var(--line); padding: 9px 10px; text-align: left; }
.doc-body th { background: var(--paper-2); }
.doc-callout { background: var(--accent-wash); border-radius: 8px; padding: 14px 16px; font-size: 13.5px; color: var(--accent-deep); margin: 16px 0; }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 18px; color: var(--muted); }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-a { padding: 0 0 16px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; }

.contact-grid { display: grid; grid-template-columns: 1fr 340px; gap: 34px; align-items: start; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 12px; }
.contact-card h3 { font-size: 14px; margin-bottom: 4px; }
.contact-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.contact-card a { color: var(--accent); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #fff; margin-top: 24px; }
.footer-trust { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.footer-trust-inner {
  max-width: 1400px; margin: 0 auto; padding: 18px 20px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
}
.trust-item { display: flex; align-items: center; gap: 10px; }
.trust-item svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.trust-item strong { display: block; font-size: 12.5px; }
.trust-item span { display: block; font-size: 11.5px; color: var(--muted); }
.footer-top {
  max-width: 1400px; margin: 0 auto; padding: 40px 20px 32px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.4fr; gap: 32px;
}
.footer-brand p { color: var(--muted); font-size: 12.5px; line-height: 1.7; max-width: 36ch; margin: 12px 0 14px; }
.footer-social { display: flex; gap: 14px; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.footer-social a:hover { color: var(--accent); }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 {
  font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 4px; font-weight: 800;
}
.footer-col a { font-size: 12.5px; color: var(--muted); }
.footer-col a:hover { color: var(--accent); }
.footer-news p { font-size: 12px; color: var(--muted); line-height: 1.6; }
.footer-news form { display: flex; gap: 6px; margin-top: 4px; }
.footer-news input {
  flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line-strong); border-radius: 7px;
  padding: 10px 12px; font-size: 13px; outline: none;
}
.footer-news input:focus { border-color: var(--accent); }
.footer-news button {
  border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 7px;
  padding: 0 16px; font-size: 12.5px; font-weight: 700;
}
.footer-pay { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.footer-pay span {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted);
  border: 1px solid var(--line); border-radius: 4px; padding: 3px 6px; background: #fff;
}
.footer-bottom {
  border-top: 1px solid var(--line); padding: 16px 20px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  max-width: 1400px; margin: 0 auto;
  font-size: 11.5px; color: var(--muted);
}
.footer-legal { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--accent); }

/* ---------- toast ---------- */
.toast {
  position: fixed; z-index: 120; left: 50%; bottom: 28px; transform: translate(-50%, 14px);
  background: var(--ink); color: #fff; border-radius: 8px;
  padding: 12px 18px; font-size: 13px; box-shadow: var(--shadow-lg);
  opacity: 0; transition: opacity 0.25s ease, transform 0.25s ease; pointer-events: none;
  max-width: calc(100vw - 40px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--red); }

/* ---------- loading / skeleton ---------- */
.loading { display: flex; align-items: center; justify-content: center; padding: 80px 20px; gap: 12px; color: var(--muted); }
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line-strong); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--paper-2), #fbfbfc, var(--paper-2)); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.fade-up { animation: fadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .pdp { grid-template-columns: minmax(0, 1fr) 420px; gap: 26px; }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; }
  .footer-brand { grid-column: 1 / -1; }
  .collection-band { grid-template-columns: 220px 1fr; }
  .hero-copy-inner { padding-left: 20px; }
}

@media (max-width: 1024px) {
  .topbar-note { display: none; }
  .design-btn span { display: none; }
  .design-btn { width: 40px; padding: 0; justify-content: center; border-radius: 50%; }
  .hero-viewport { height: 380px; }
  .hero-copy h1 { font-size: clamp(30px, 4.6vw, 42px); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-layout { grid-template-columns: 1fr; gap: 18px; }
  .shop-side { position: static; }
  .filter-panel { display: grid; grid-template-columns: repeat(3, 1fr); }
  .filter-panel-head { grid-column: 1 / -1; }
  .filter-group { border-bottom: 0; border-right: 1px solid var(--line); }
  .filter-group:last-child { border-right: 0; }
  .pdp { grid-template-columns: 1fr; gap: 24px; }
  .gallery { position: static; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; gap: 24px; }
  .cart-side, .co-side { position: static; }
  .about-hero { grid-template-columns: 1fr; gap: 26px; }
  .contact-grid { grid-template-columns: 1fr; }
  .collection-band { grid-template-columns: 1fr; }
  .collection-band-side { padding: 22px; }
  .collection-band .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .header-main { grid-template-columns: auto 1fr auto; gap: 10px; height: 62px; padding: 0 14px; }
  .brand-copy em { display: none; }
  .brand-copy .wordmark { font-size: 20px; }
  .brand-mark { width: 29px; height: 29px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 38px; height: 38px; background: none; border: 0; padding: 8px;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); width: 100%; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .header-main { grid-template-columns: auto auto 1fr auto; }
  .brand { justify-self: start; }
  .header-search {
    display: none; position: absolute; left: 0; right: 0; top: 62px;
    max-width: none; border-radius: 0; border-width: 0 0 1px 0;
    padding: 0 14px; height: 52px; background: #fff;
  }
  .site-header.search-open .header-search { display: flex; }
  .only-mobile { display: inline-flex; }
  .primary-nav { display: none; }
  .header-actions { gap: 2px; }
  .icon-btn { min-width: 38px; height: 38px; padding: 0 6px; }
  .icon-btn svg { width: 20px; height: 20px; }
  .topbar-right { gap: 10px; }
  .topbar-right a:last-child { display: none; }
  .hero-viewport { height: 330px; }
  .hero-slide { grid-template-columns: 1fr; }
  .hero-media { position: absolute; inset: 0; opacity: 0.5; }
  .hero-copy-inner { padding-left: 0; max-width: none; }
  .hero-copy { padding: 0 20px; }
  .hero-slide.tone-cream .hero-copy, .hero-slide.tone-mint .hero-copy {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.35));
    border-radius: 10px;
  }
  .hero-meta { display: none; }
  .hero-controls { padding: 0 20px; bottom: 12px; }
  .promo-row { grid-template-columns: 1fr; }
  .gift-form-card { grid-template-columns: 1fr; }
  .gift-form-card .btn { width: 100%; }
  .service-strip { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-trust-inner { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; padding: 30px 20px 26px; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { padding: 14px 16px; }
  .values, .about-grid { grid-template-columns: 1fr; }
  .section { padding: 30px 0; }
  .wrap { padding: 0 16px; }
  .filter-panel { grid-template-columns: 1fr 1fr; }
  .filter-group:nth-child(3) { border-right: 0; }
  .pdp-actions .btn { height: 50px; }
}

@media (max-width: 640px) {
  .topbar-left :is(span, a):nth-child(n + 2), .topbar-left i { display: none; }
  .topbar-right { font-size: 11px; }
  .topbar-stars { font-size: 10px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .pc-title { font-size: 12.5px; min-height: 35px; }
  .pc-price b { font-size: 14px; }
  .pc-quick { display: none; }
  .gift-row { justify-content: flex-start; padding-left: 2px; }
  .gift-item { width: 92px; }
  .gift-circle { width: 86px; height: 86px; }
  .gift-circle img { width: 78px; height: 78px; }
  .gift-item span { font-size: 12px; }
  .deals-head-left { gap: 10px; }
  .countdown { font-size: 11px; }
  .collection-band .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; gap: 12px; }
  .cart-item { grid-template-columns: 82px 1fr; }
  .cart-item .thumb { width: 82px; height: 82px; }
  .ci-total { grid-column: 2; text-align: left; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-trust-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-copy p { font-size: 13px; }
  .hero-cta .btn { padding: 12px 20px; font-size: 13px; }
  .filter-panel { grid-template-columns: 1fr; }
  .filter-group { border-right: 0; border-bottom: 1px solid var(--line); }
  .filter-group:last-child { border-bottom: 0; }
  .gallery-thumbs button { width: 58px; height: 58px; }
}

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

/* Product personalization preview and cart confirmation */
.product-dialog {
  width: min(500px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 24px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
}
.product-dialog::backdrop { background: rgb(0 0 0 / 50%); }
.product-dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 18px; }
.product-dialog-head h2 { font-size: 20px; margin: 0; }
.product-dialog-close { border: 0; background: transparent; color: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.product-dialog-details { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0; overflow-wrap: anywhere; }
.product-dialog-details dt { font-weight: 700; }
.product-dialog-details dd { margin: 0; }
.product-preview-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.product-preview-photos figure { margin: 0; text-align: center; }
.product-preview-photos img { display: block; width: 100%; max-height: 250px; object-fit: contain; background: var(--paper-2); }
.product-preview-photos figcaption { margin-top: 5px; }
.product-dialog-item { display: flex; align-items: center; gap: 14px; }
.product-dialog-item img { border-radius: 6px; object-fit: contain; flex: none; }
.product-dialog-item span { display: block; margin-top: 5px; }
.product-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.gallery-count, .pdp-title-toggle { display: none; }
.pdp-meta { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; color: var(--ink-soft); font-size: 13px; }
.pdp-meta a { margin-right: auto; }
.pdp-meta a:hover, .pdp-meta-btn:hover { text-decoration: underline; }
.pdp-meta-btn, .pdp-payment-options {
  border: 0; padding: 0; background: none; color: inherit; font: inherit;
}
.pdp-meta-btn[aria-pressed="true"] { color: #972f46; }
.pdp-offer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 6px 10px; background: #faf4ef; border-radius: 12px; padding: 9px 12px;
}
.pdp-offer .pdp-price { gap: 7px; }
.pdp-offer .pdp-price > span:first-child { color: #972f46; }
.pdp-return-link { font-size: 12px; font-weight: 650; text-decoration: underline; }
.pdp-preview { margin-bottom: 12px; }
.pdp-actions { display: block; }
.pdp-action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pdp-action-row .btn { min-width: 0; border-radius: 10px; }
.pdp-actions .pdp-add { background: #972f46; border-color: #972f46; }
.pdp-actions .pdp-add:hover { background: #762037; border-color: #762037; }
.pdp-actions .pdp-paypal { background: #ffdc85; border-color: #ffdc85; color: #17366d; }
.pdp-actions .pdp-paypal:hover { background: #ffcf60; border-color: #ffcf60; }
.pdp-paypal strong { font-size: 19px; font-style: italic; }
.pdp-payment-options {
  display: block; text-align: center; min-height: 28px; margin: 3px auto 0;
  font-size: 13px; font-weight: 650;
}
.pdp-payment-options:hover { text-decoration: underline; }
.pdp-share-link { width: 100%; padding: 8px; }
.pdp-info table[aria-label="Product specifications"] { margin-bottom: 16px; }
.product-faq { border-top: 1px solid var(--line); }
.photo-guidelines { margin: 0 0 8px; font-size: 13px; }
.photo-guidelines summary { cursor: pointer; text-decoration: underline; }

@media (max-width: 640px) {
  :root { --header-h: 54px; --nav-h: 0px; }
  .topbar { background: #17476b; }
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-left { justify-content: center; }
  .topbar-right { display: none; }
  .header-main { grid-template-columns: auto minmax(0, 1fr) auto; height: var(--header-h); gap: 5px; padding: 0 10px; }
  .header-main .brand { gap: 5px; }
  .header-main .brand-copy .wordmark { font-size: 18px; }
  .header-search { top: var(--header-h); }
  .header-actions .icon-label { display: none; }
  .hero-viewport { height: 280px; }
  .home-gift-finder .gift-form-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-gift-finder .gift-form-card .btn { grid-column: 1 / -1; }
  .product-grid { gap: 12px 8px; }
  .product-card { border-radius: 9px; }
  .pc-body { padding: 8px; }
  .pc-title { font-size: 13px; }
  .shop-head p { display: none; }
  .shop-head h1 { font-size: 23px; }
  .shop-layout { grid-template-columns: minmax(0, 1fr); }
  .shop-main, .shop-side { min-width: 0; }
  .shop-toolbar { gap: 8px; flex-wrap: wrap; }
  .collection-pills { max-width: 100%; }
  .cart-layout, .checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 32px; }
  .cart-side, .co-side { padding: 14px; border-radius: 10px; background: #faf4ef; }
  .co-block { padding-bottom: 18px; margin-bottom: 18px; }
  .shop-browse-heading .shop-filter-toggle { display: inline-flex; }
  .shop-side:not(.filters-expanded) { display: none; }
  .product-wrap > .breadcrumb { display: none; }
  .product-wrap .pdp { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .product-wrap .gallery { margin-inline: -16px; }
  .product-wrap .gallery-main { border: 0; border-radius: 0; touch-action: pan-y; }
  .product-wrap .gallery-main img { padding: 0; object-fit: contain; }
  .product-wrap .gallery-badge,
  .product-wrap .gallery:has(.gallery-count) .gallery-thumbs { display: none; }
  .gallery-count {
    position: absolute;
    inset: auto auto 10px 12px;
    display: block;
    padding: 5px 12px;
    border: 0;
    border-radius: 999px;
    background: rgb(0 0 0 / 53%);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
  }
  .pdp-title-row { display: flex; align-items: start; gap: 8px; }
  .product-wrap .pdp-info h1 { flex: 1; min-width: 0; font-size: 17px; margin: 9px 0; }
  .pdp-title-row h1:not(.title-expanded) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pdp-title-toggle {
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 38px;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
  }
  .pdp-title-toggle::after { content: ''; width: 8px; height: 8px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); }
  .pdp-title-toggle[aria-expanded="true"]::after { transform: rotate(225deg); }
  .product-wrap .pdp-price > span:first-child { font-size: 24px; }
  .product-wrap .pdp-actions {
    position: fixed;
    z-index: 25;
    inset: auto 0 0;
    margin: 0;
    padding: 10px 14px max(7px, env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -2px 12px rgb(0 0 0 / 12%);
  }
  .product-wrap .pdp-action-row .btn { height: 46px; padding-inline: 8px; font-size: 14px; }
  body:has(.product-wrap .pdp-actions) { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .product-wrap .upload-box { scroll-margin-bottom: 105px; }
}
