/* ZHONGDA.RU — design system */
:root {
  --bg: #FAF7F1;
  --bg-warm: #F1E9D7;
  --bg-warm-2: #EBE0C7;
  --paper: #FFFFFF;
  --ink: #1A1614;
  --ink-soft: #4A4540;
  --ink-mute: #807870;
  --border: #E5DDC9;
  --border-soft: #EFE7D5;
  --border-strong: #C9BFA6;
  --red: #A6221A;
  --red-deep: #8B1A14;
  --red-soft: #C13A2F;
  --seal: #B5251D;
  --gold: #B08A4A;
  --success: #4F7A4A;

  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;

  --shadow-xs: 0 1px 2px rgba(26,22,20,0.04);
  --shadow-sm: 0 2px 8px rgba(26,22,20,0.06);
  --shadow-md: 0 8px 24px -10px rgba(26,22,20,0.14);
  --shadow-lg: 0 18px 48px -20px rgba(26,22,20,0.22);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --d-fast: 180ms;
  --d-base: 240ms;
  --d-slow: 320ms;

  --font-display: "Cormorant Garamond", "PT Serif", Georgia, serif;
  --font-sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "PT Mono", ui-monospace, monospace;

  --maxw: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
a { color: inherit; text-decoration: none; }

/* paper texture */
.paper-bg {
  background-color: var(--bg);
  background-image:
    radial-gradient(at 12% 8%, rgba(176,138,74,0.05) 0, transparent 50%),
    radial-gradient(at 92% 80%, rgba(166,34,26,0.025) 0, transparent 55%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.4  0 0 0 0 0.32  0 0 0 0.045 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.maxw { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
@media (max-width: 720px) { .maxw { padding: 0 18px; } }

/* type scale */
.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.04;
}
.h-serif { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -0.005em; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.eyebrow .dot { color: var(--red); }

.mono { font-family: var(--font-mono); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--r-sm);
  transition: transform var(--d-base) var(--ease), box-shadow var(--d-base) var(--ease), background-color var(--d-base) var(--ease), color var(--d-base) var(--ease), border-color var(--d-base) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: #2A2420; }
.btn-red {
  background: var(--red);
  color: #FFF6E8;
  border: 1px solid var(--red);
}
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(166,34,26,0.45); background: var(--red-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--ink); }
.btn-wa {
  background: #1FAE5D;
  color: #fff;
  border: 1px solid #1FAE5D;
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(31,174,93,0.45); background: #168A48; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 15px; }

/* badge */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid var(--border-strong);
  color: var(--ink-soft);
  background: var(--paper);
}
.badge.red { background: var(--red); color: #FFF6E8; border-color: var(--red); }
.badge.gold { background: var(--bg-warm); color: var(--ink); border-color: var(--border-strong); }
.badge.ink { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.badge.new { background: #FFF6E8; color: var(--red); border-color: rgba(166,34,26,0.3); }

/* card */
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: transform var(--d-base) var(--ease), box-shadow var(--d-base) var(--ease), border-color var(--d-base) var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }

/* seal "中大" stamp */
.seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 56px;
  background: var(--seal);
  color: #FFF6E8;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0;
  line-height: 1;
  border-radius: 3px;
  position: relative;
  flex-direction: column;
  gap: 2px;
  box-shadow: inset 0 0 0 2px rgba(255,246,232,0.18), inset 0 0 0 4px var(--seal);
  filter: contrast(1.05);
}
.seal::before {
  content: "";
  position: absolute; inset: 3px;
  border: 1.5px solid rgba(255,246,232,0.35);
  border-radius: 2px;
  pointer-events: none;
}
.seal span { display: block; }

/* divider hairline */
.hr { height: 1px; background: var(--border); border: 0; }

/* utility */
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-40 { gap: 40px; }

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
@media (max-width: 720px) { .section { padding: 56px 0; } .section-tight { padding: 36px 0; } }

/* heading kicker line */
.kicker-line {
  display: flex; align-items: center; gap: 14px;
  color: var(--ink-mute);
}
.kicker-line::before, .kicker-line::after {
  content: ""; height: 1px; background: var(--border-strong); flex: 1;
}
.kicker-line.left::before { display: none; }
.kicker-line.right::after { display: none; }

/* hover scale image */
.img-zoom { overflow: hidden; }
.img-zoom > * { transition: transform 480ms var(--ease); }
.card:hover .img-zoom > * { transform: scale(1.03); }

/* fabric swatch placeholder */
.swatch {
  position: relative;
  width: 100%; aspect-ratio: 4/5;
  background: var(--bg-warm);
  overflow: hidden;
}
.swatch::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.18) 0 1px, transparent 1px 6px),
    radial-gradient(at 30% 30%, rgba(255,255,255,0.18), transparent 60%);
  mix-blend-mode: overlay;
}

/* header */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,241,0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background var(--d-base) var(--ease), border-color var(--d-base) var(--ease);
}
.hdr.compact { background: rgba(250,247,241,0.96); }
.hdr-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  font-size: 12.5px; color: var(--ink-soft);
  border-bottom: 1px solid var(--border-soft);
  transition: max-height var(--d-base) var(--ease), padding var(--d-base) var(--ease), opacity var(--d-base) var(--ease);
  overflow: hidden;
  max-height: 44px;
}
.hdr.compact .hdr-top { max-height: 0; padding: 0; opacity: 0; border-bottom-color: transparent; }
.hdr-main {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px;
  padding: 16px 0;
  transition: padding var(--d-base) var(--ease);
}
.hdr.compact .hdr-main { padding: 10px 0; }
.hdr-logo { display: flex; align-items: center; gap: 14px; }
.hdr-logo .seal { width: 38px; height: 48px; font-size: 16px; }
.hdr.compact .hdr-logo .seal { width: 34px; height: 44px; font-size: 14px; }
.hdr-wordmark { display: flex; flex-direction: column; line-height: 1; }
.hdr-wordmark .mark {
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0.02em;
  font-size: 22px;
}
.hdr-wordmark .mark .ru { color: var(--red); }
.hdr-wordmark .tag {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.32em;
  color: var(--ink-mute); text-transform: uppercase; margin-top: 4px;
}
.hdr-nav { display: flex; gap: 26px; justify-content: center; }
.hdr-nav a {
  font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 6px 0;
  transition: color var(--d-fast) var(--ease);
}
.hdr-nav a:hover { color: var(--ink); }
.hdr-nav a.active { color: var(--ink); }
.hdr-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1.5px; background: var(--red);
}
.hdr-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  color: var(--ink-soft);
  position: relative;
  transition: background var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
}
.icon-btn:hover { background: var(--bg-warm); color: var(--ink); }
.icon-btn .pill {
  position: absolute; top: 4px; right: 2px;
  background: var(--red); color: #FFF6E8;
  font-size: 10px; font-weight: 600;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
}

/* page reveal animation */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; animation: fadeUp 600ms var(--ease) forwards; }
.reveal.d1 { animation-delay: 60ms; }
.reveal.d2 { animation-delay: 120ms; }
.reveal.d3 { animation-delay: 180ms; }
.reveal.d4 { animation-delay: 240ms; }
.reveal.d5 { animation-delay: 320ms; }
.reveal.d6 { animation-delay: 400ms; }

/* tabs */
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--border); }
.tab {
  padding: 14px 4px; margin-right: 24px;
  font-size: 14px; font-weight: 500; color: var(--ink-mute);
  border-bottom: 1.5px solid transparent;
  margin-bottom: -1px;
  transition: color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease);
}
.tab:hover { color: var(--ink-soft); }
.tab.active { color: var(--ink); border-bottom-color: var(--red); }

@keyframes slideFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tab-panel { animation: slideFade 280ms var(--ease); }

/* form controls */
.input, .select {
  height: 42px; padding: 0 14px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: inherit; font-size: 14px; color: var(--ink);
  transition: border-color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
  width: 100%;
}
.input:focus, .select:focus { outline: none; border-color: var(--ink); }

.check {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--ink-soft);
  cursor: pointer; padding: 6px 0;
  transition: color var(--d-fast) var(--ease);
}
.check:hover { color: var(--ink); }
.check input { display: none; }
.check .box {
  width: 16px; height: 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--d-fast) var(--ease);
  flex-shrink: 0;
  background: var(--paper);
}
.check input:checked + .box {
  background: var(--ink); border-color: var(--ink);
}
.check input:checked + .box::after {
  content: ""; width: 8px; height: 5px;
  border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.check .count { margin-left: auto; color: var(--ink-mute); font-size: 12px; font-family: var(--font-mono); }

/* filter group */
.filter-group {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}
.filter-group:first-of-type { border-top: 0; padding-top: 8px; }
.filter-head {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 0;
  font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: 0.01em;
  text-transform: uppercase;
  font-family: var(--font-sans);
}
.filter-head .caret {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform var(--d-base) var(--ease);
}
.filter-group.open .filter-head .caret { transform: rotate(180deg); }
.filter-body {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows var(--d-base) var(--ease), opacity var(--d-base) var(--ease), margin-top var(--d-base) var(--ease);
}
.filter-group.open .filter-body { grid-template-rows: 1fr; opacity: 1; margin-top: 12px; }
.filter-body > div { overflow: hidden; }

/* color swatch chips */
.swatch-chip {
  width: 28px; height: 28px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  position: relative;
  transition: transform var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}
.swatch-chip:hover { transform: scale(1.08); }
.swatch-chip.active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink); }

/* pagination */
.pag {
  display: inline-flex; gap: 6px;
}
.pag a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500;
  background: var(--paper);
  transition: all var(--d-fast) var(--ease);
}
.pag a:hover { border-color: var(--ink); }
.pag a.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* breadcrumbs */
.bc {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em;
  color: var(--ink-mute); text-transform: uppercase;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.bc a:hover { color: var(--ink); }
.bc .sep { opacity: 0.5; }
.bc .cur { color: var(--ink); }

/* footer */
.ftr {
  background: var(--ink); color: #D9D2C5;
  padding: 72px 0 28px;
  margin-top: 80px;
}
.ftr a { color: #D9D2C5; }
.ftr a:hover { color: #FFF6E8; }
.ftr .grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
}
.ftr .col-title {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  font-family: var(--font-mono);
  color: #8E8678; margin-bottom: 18px;
}
.ftr .links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.ftr .bot {
  margin-top: 56px; padding-top: 22px; border-top: 1px solid #2A2420;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #8E8678;
}
@media (max-width: 900px) {
  .ftr .grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 540px) {
  .ftr .grid { grid-template-columns: 1fr; }
}

/* HERO */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, #F4ECDC 100%);
}
.hero-ink {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600'><g fill='none' stroke='%231a1614' stroke-width='0.8' opacity='0.06'><path d='M50,520 q90,-180 220,-150 q60,-180 200,-160 q90,-120 220,-90 q70,-160 250,-90 q80,-100 210,-60'/><path d='M0,560 q160,-100 320,-90 q140,-140 330,-100 q140,-160 350,-80 q120,-100 200,-40'/></g></svg>");
  background-size: cover; background-position: center;
  pointer-events: none;
  opacity: 0.7;
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px;
  align-items: center;
  min-height: 640px;
  padding: 72px 0 96px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 5.8vw, 76px);
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
}
.hero h1 em {
  font-style: italic; color: var(--red); font-weight: 500;
}
.hero p.lead {
  font-size: 17px; color: var(--ink-soft); max-width: 520px;
  line-height: 1.55; margin: 0 0 36px;
}
.hero-meta {
  display: flex; gap: 36px; margin-top: 56px;
  padding-top: 28px; border-top: 1px solid var(--border);
}
.hero-meta .stat .n {
  font-family: var(--font-display); font-size: 38px; font-weight: 500; line-height: 1;
}
.hero-meta .stat .l {
  font-size: 12px; color: var(--ink-mute); margin-top: 6px;
}
.hero-vis {
  position: relative; aspect-ratio: 4/4.4;
  border-radius: var(--r-md); overflow: hidden;
  background: var(--bg-warm);
  box-shadow: var(--shadow-lg);
}
.hero-vis img { width: 100%; height: 100%; object-fit: cover; }
.hero-vis .ribbon {
  position: absolute; left: 24px; top: 24px;
  background: rgba(26,22,20,0.85);
  color: var(--bg); padding: 8px 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-vis .corner-card {
  position: absolute; right: 24px; bottom: 24px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  padding: 16px 20px;
  border-radius: var(--r-md);
  max-width: 240px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .hdr-nav { display: none; }
  .hdr-main { grid-template-columns: auto 1fr auto; gap: 12px; }
  .hero-inner { grid-template-columns: 1fr; padding: 48px 0 64px; min-height: 0; gap: 36px; }
  .hero-vis { aspect-ratio: 4/4.2; }
  .hero-meta { flex-wrap: wrap; gap: 20px 36px; margin-top: 36px; }
}

/* CATEGORY tile */
.cat-tile {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px 22px 18px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--d-base) var(--ease);
  text-align: left; width: 100%;
  overflow: hidden;
}
.cat-tile:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.cat-tile .ico {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-warm); border-radius: 50%;
  color: var(--red);
}
.cat-tile .name { font-family: var(--font-display); font-size: 22px; font-weight: 500; line-height: 1.1; }
.cat-tile .meta { font-size: 12.5px; color: var(--ink-mute); display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-soft); }
.cat-tile .arrow {
  width: 26px; height: 26px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform var(--d-base) var(--ease), background var(--d-base) var(--ease), color var(--d-base) var(--ease);
}
.cat-tile:hover .arrow { background: var(--ink); border-color: var(--ink); color: var(--bg); transform: rotate(-45deg); }

/* FEATURE block */
.feat {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--paper);
  overflow: hidden;
}
.feat .cell {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 14px;
}
.feat .cell:last-child { border-right: 0; }
.feat .num {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.14em;
}
.feat .ttl { font-family: var(--font-display); font-size: 24px; line-height: 1.15; font-weight: 500; }
.feat .desc { font-size: 13px; color: var(--ink-soft); line-height: 1.55; }
@media (max-width: 900px) { .feat { grid-template-columns: 1fr 1fr; } .feat .cell { border-right: 0; border-bottom: 1px solid var(--border); } }
@media (max-width: 540px) { .feat { grid-template-columns: 1fr; } }

/* WS panel */
.ws {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 0;
  background: var(--bg-warm);
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
}
.ws .left { padding: 56px 48px; }
.ws .right {
  background: var(--ink); color: var(--bg);
  padding: 56px 48px;
  position: relative; overflow: hidden;
}
.ws .right::before {
  content: ""; position: absolute; right: -80px; bottom: -80px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(166,34,26,0.22) 0%, transparent 70%);
}
.ws-tiers { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 28px; position: relative; }
.ws-tier {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,246,232,0.12);
  padding: 18px 16px;
  border-radius: var(--r-sm);
}
.ws-tier .vol { font-family: var(--font-mono); font-size: 11px; color: rgba(255,246,232,0.55); letter-spacing: 0.14em; }
.ws-tier .price { font-family: var(--font-display); font-size: 30px; font-weight: 500; margin-top: 6px; }
.ws-tier .disc { color: var(--red-soft); font-size: 12px; margin-top: 4px; font-family: var(--font-mono); }
@media (max-width: 900px) { .ws { grid-template-columns: 1fr; } .ws .left, .ws .right { padding: 40px 28px; } }

/* product cards row */
.prod {
  display: grid; gap: 28px;
}
.prod.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.prod.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .prod.cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .prod.cols-4, .prod.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .prod.cols-4, .prod.cols-3 { grid-template-columns: 1fr; } }

.pcard {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform var(--d-base) var(--ease), box-shadow var(--d-base) var(--ease), border-color var(--d-base) var(--ease);
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.pcard .img { position: relative; overflow: hidden; }
.pcard .img .fill { width: 100%; aspect-ratio: 4/4.5; transition: transform 500ms var(--ease); }
.pcard:hover .img .fill { transform: scale(1.03); }
.pcard .img .badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.pcard .img .fav {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 999px;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--d-fast) var(--ease), background var(--d-fast) var(--ease);
  cursor: pointer;
}
.pcard .img .fav:hover { transform: scale(1.08); }
.pcard .img .fav.active svg { fill: var(--red); stroke: var(--red); }
.pcard .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard .sku { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-mute); letter-spacing: 0.12em; text-transform: uppercase; }
.pcard .name { font-family: var(--font-display); font-size: 20px; font-weight: 500; line-height: 1.15; }
.pcard .specs { display: flex; gap: 12px; font-size: 12px; color: var(--ink-soft); }
.pcard .specs span { display: inline-flex; align-items: center; gap: 4px; }
.pcard .specs span b { color: var(--ink); font-weight: 600; }
.pcard .swatches { display: flex; gap: 4px; margin-top: 2px; }
.pcard .swatches i {
  display: inline-block; width: 14px; height: 14px; border-radius: 999px;
  border: 1px solid var(--border-strong);
}
.pcard .row-foot {
  margin-top: auto; padding-top: 12px;
  display: flex; justify-content: space-between; align-items: flex-end;
  border-top: 1px solid var(--border-soft);
}
.pcard .price-line .from { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-mute); letter-spacing: 0.12em; text-transform: uppercase; }
.pcard .price-line .p { font-family: var(--font-display); font-size: 24px; font-weight: 500; line-height: 1; margin-top: 2px; }
.pcard .price-line .p .cur { font-size: 14px; color: var(--ink-mute); margin-left: 4px; }
.pcard .add {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--d-fast) var(--ease);
}
.pcard .add:hover { background: var(--red); border-color: var(--red); transform: translateY(-1px); }
.pcard .add.success { background: var(--success); border-color: var(--success); }

/* CATALOG layout */
.cat-layout {
  display: grid; grid-template-columns: 264px 1fr; gap: 40px;
}
@media (max-width: 980px) { .cat-layout { grid-template-columns: 1fr; } .cat-sidebar { display: none; } }

.cat-sidebar {
  position: sticky; top: 110px; align-self: start;
}
.cat-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; gap: 16px; flex-wrap: wrap;
}
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: var(--paper); border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px; color: var(--ink-soft);
  transition: all var(--d-fast) var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.cat-h-cats {
  display: flex; gap: 6px;
  margin-bottom: 28px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.cat-h-cats .hcat {
  padding: 12px 18px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
  border-bottom: 1.5px solid transparent;
  margin-bottom: -1px;
  transition: all var(--d-fast) var(--ease);
}
.cat-h-cats .hcat:hover { color: var(--ink); }
.cat-h-cats .hcat.active { color: var(--ink); border-bottom-color: var(--red); }
.cat-h-cats .hcat .ct { color: var(--ink-mute); font-family: var(--font-mono); font-size: 11px; margin-left: 5px; }

/* PRODUCT page */
.prod-layout {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px;
}
@media (max-width: 900px) { .prod-layout { grid-template-columns: 1fr; gap: 36px; } }

.gallery .main {
  position: relative;
  aspect-ratio: 4/4.6;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--bg-warm);
  border: 1px solid var(--border);
}
.gallery .main img, .gallery .main .fill {
  width: 100%; height: 100%; object-fit: cover;
  animation: slideFade 280ms var(--ease);
}
.gallery .thumbs {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
  margin-top: 14px;
}
.gallery .thumbs button {
  aspect-ratio: 1;
  overflow: hidden; border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg-warm);
  transition: border-color var(--d-fast) var(--ease);
  position: relative;
}
.gallery .thumbs button.active { border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink) inset; }
.gallery .thumbs button .fill { width: 100%; height: 100%; }

.spec-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px;
  border-top: 1px solid var(--border);
}
.spec-grid .row {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 12px 0; border-bottom: 1px solid var(--border-soft);
  font-size: 13.5px;
}
.spec-grid .row .l { color: var(--ink-mute); }
.spec-grid .row .v { color: var(--ink); font-weight: 500; text-align: right; }

.tier-table {
  width: 100%; border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
  background: var(--paper);
}
.tier-table th, .tier-table td {
  padding: 12px 16px; text-align: left;
  font-size: 13px; border-bottom: 1px solid var(--border-soft);
}
.tier-table th {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  background: var(--bg-warm);
}
.tier-table tr:last-child td { border-bottom: 0; }
.tier-table .best { background: rgba(166,34,26,0.04); }
.tier-table .best td:first-child { color: var(--red); font-weight: 600; }

.qty {
  display: inline-flex; align-items: center; height: 48px;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--paper);
}
.qty button {
  width: 44px; height: 100%; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  transition: color var(--d-fast) var(--ease);
}
.qty button:hover { color: var(--ink); }
.qty input {
  width: 70px; height: 100%;
  border: 0; background: transparent;
  text-align: center; font-family: var(--font-mono); font-size: 14px;
  font-weight: 600;
  outline: none;
}

/* trust strip */
.trust-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 28px;
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.trust-strip .item { display: flex; gap: 14px; align-items: flex-start; }
.trust-strip .ico {
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--bg-warm); color: var(--red);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-strip .t { font-weight: 600; font-size: 14px; line-height: 1.3; }
.trust-strip .d { font-size: 12.5px; color: var(--ink-mute); margin-top: 4px; }
@media (max-width: 900px) { .trust-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .trust-strip { grid-template-columns: 1fr; } }

/* page enter */
@keyframes pageEnter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-anim { animation: pageEnter 360ms var(--ease); }

/* TOAST */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--bg);
  padding: 14px 22px; border-radius: var(--r-sm);
  display: flex; align-items: center; gap: 12px;
  font-size: 13.5px;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: all 240ms var(--ease);
  z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .dot { width: 8px; height: 8px; border-radius: 999px; background: #4F9A50; }

/* hide scrollbar in horizontal scrolls */
.hscroll { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 8px; }
.hscroll::-webkit-scrollbar { height: 6px; }
.hscroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }

/* section heading */
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 36px; gap: 24px;
}
.sec-head h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(32px, 3.6vw, 44px);
  margin: 8px 0 0; line-height: 1.05; letter-spacing: -0.01em;
}
.sec-head .right { display: flex; gap: 12px; align-items: center; }
@media (max-width: 720px) { .sec-head { flex-direction: column; align-items: flex-start; } }
