/* ============================================================
   МедСнаб — Main Stylesheet
   Fonts: Newsreader (serif), Inter (sans), JetBrains Mono
   ============================================================ */

/* ===== CSS Variables ===== */
:root {
  --bg:          #f6f7f5;
  --surface:     #ffffff;
  --ink:         #0e1a1a;
  --ink-2:       #1f2d2c;
  --muted:       #6b7a78;
  --line:        #e3e6e1;
  --line-2:      #d6dbd5;
  --accent:      oklch(0.55 0.07 175);
  --accent-hex:  #2a9485;
  --accent-2:    oklch(0.62 0.06 175);
  --accent-soft: oklch(0.94 0.025 175);
  --accent-soft-hex: #eaf4f2;
  --warm:        oklch(0.74 0.10 60);
  --danger:      oklch(0.55 0.15 28);
  --danger-hex:  #c0392b;
  --radius:      4px;
  --radius-lg:   10px;
  --shadow-sm:   0 1px 0 rgba(20,30,30,.04), 0 1px 2px rgba(20,30,30,.03);
  --shadow-md:   0 8px 24px -8px rgba(20,30,30,.10), 0 2px 6px rgba(20,30,30,.04);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; padding: 0; margin: 0; }

/* ===== Typography helpers ===== */
.serif {
  font-family: 'Newsreader', 'Georgia', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.mono {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

/* ===== Layout ===== */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== Topbar (top strip) ===== */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-strip {
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
}
.topbar-strip .container {
  display: flex;
  gap: 24px;
  align-items: center;
  height: 34px;
}
.topbar-strip .strip-left { display: flex; gap: 20px; align-items: center; }
.topbar-strip .strip-right { margin-left: auto; display: flex; gap: 16px; align-items: center; }
.topbar-strip a:hover { color: var(--ink); }
.topbar-strip .strip-divider { color: var(--line-2); }

/* ===== Main header ===== */
.topbar-main .container {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 76px;
}

/* Brand / logo */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
}
.brand-tag {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-top: 1px;
  font-family: 'JetBrains Mono', monospace;
}

/* Search bar */
.search-bar {
  flex: 1;
  position: relative;
  max-width: 640px;
}
.search-bar form { display: flex; align-items: center; position: relative; }
.search-bar input {
  width: 100%;
  height: 44px;
  padding: 0 110px 0 44px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, background .15s;
}
.search-bar input:focus {
  border-color: var(--accent-hex);
  background: var(--surface);
}
.search-bar input::placeholder { color: var(--muted); }
.search-bar .search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search-bar .search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .15s;
}
.search-bar .search-btn:hover { background: var(--ink-2); }

/* Header action icons */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: auto;
}
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  position: relative;
  transition: background .15s;
}
.icon-btn:hover { background: var(--bg); }
.icon-btn .badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--accent-hex);
  color: white;
  border-radius: 999px;
  font-size: 10px;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
}

/* Nav row */
.nav-row {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.nav-row .container {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 46px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-row .container::-webkit-scrollbar { display: none; }
.nav-link {
  padding: 0 14px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.nav-link:hover { background: var(--bg); }
.nav-link.active,
.nav-link.current-menu-item a,
.current-menu-item > .nav-link { background: var(--ink); color: var(--bg); }
.nav-meta {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  flex-shrink: 0;
  padding-left: 16px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  transition: background .15s, border-color .15s, color .15s, filter .15s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-accent { background: var(--accent-hex); color: white; border-color: var(--accent-hex); }
.btn-accent:hover { filter: brightness(.93); }
.btn-outline { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: transparent; }
.btn-ghost:hover { background: var(--bg); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 5px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  padding: 16px 0;
  flex-wrap: wrap;
}
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .sep { color: var(--line-2); }
.breadcrumbs .current { color: var(--ink-2); }

/* ===== Hero ===== */
.hero { padding: 56px 0 48px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: end;
}
.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  display: block;
}
.hero h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-hex);
}
.hero .lead {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 480px;
  margin: 0 0 32px;
  line-height: 1.55;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  gap: 32px;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-meta .num {
  font-family: 'Newsreader', serif;
  font-size: 36px;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}
.hero-meta .lbl { font-size: 12.5px; color: var(--muted); }

/* Hero card (right side) */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.hero-card h3 { margin: 0 0 4px; font-size: 15px; font-weight: 500; }
.hero-card .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.hero-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.hero-quick {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .15s;
  background: none;
  text-align: left;
  font-family: inherit;
  color: var(--ink);
}
.hero-quick:hover { border-color: var(--ink); }
.hero-quick .qname { font-size: 13.5px; font-weight: 500; }
.hero-quick .qmeta {
  font-size: 11px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ===== Trust strip ===== */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  background: var(--surface);
}
.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.trust-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.trust-item svg, .trust-item .trust-icon {
  color: var(--accent-hex);
  flex-shrink: 0;
  margin-top: 2px;
  width: 22px;
  height: 22px;
}
.trust-item h4 { margin: 0 0 3px; font-size: 14px; font-weight: 500; }
.trust-item p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; }

/* ===== Section blocks ===== */
section.block { padding: 80px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 32px;
}
.section-head h2 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  max-width: 640px;
}
.section-head .eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.section-head .tag-text { color: var(--muted); font-size: 14px; max-width: 360px; }

/* ===== Category grid ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cat-tile {
  background: var(--surface);
  padding: 24px;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  color: var(--ink);
}
.cat-tile:hover { background: var(--accent-soft-hex); }
.cat-tile .icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: background .15s;
}
.cat-tile:hover .icon-wrap { background: var(--surface); }
.cat-tile .icon-wrap svg { width: 26px; height: 26px; color: var(--ink-2); }
.cat-tile h4 { margin: 14px 0 4px; font-size: 15px; font-weight: 500; line-height: 1.2; }
.cat-tile .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}
.cat-tile .arrow {
  align-self: flex-end;
  color: var(--muted);
  transition: color .15s, transform .15s;
  display: flex;
  align-items: center;
}
.cat-tile:hover .arrow { color: var(--ink); transform: translateX(3px); }

/* ===== Product card ===== */
.product-grid,
ul.products.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.product-grid.dense { grid-template-columns: repeat(5, 1fr); gap: 14px; }

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, box-shadow .15s;
}
.product-card:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}
.product-thumb {
  aspect-ratio: 4 / 3;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform .2s;
}
.product-card:hover .product-thumb img { transform: scale(1.03); }
.product-thumb .no-image svg { width: 52px; height: 52px; color: var(--line-2); }
.product-card:hover .product-thumb { background: var(--accent-soft-hex); }

.product-thumb .ribbon {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 10.5px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
  z-index: 2;
}
.product-thumb .origin {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 4px;
  font-size: 10.5px;
  font-family: 'JetBrains Mono', monospace;
  z-index: 2;
}

.product-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-card .ssku {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.product-card .pcat {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-card .pname {
  font-size: 13.5px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}
.product-card .priceline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.product-card .price {
  font-family: 'Newsreader', serif;
  font-size: 22px;
  line-height: 1;
}
.product-card .price-unit {
  font-size: 11px;
  color: var(--muted);
  margin-left: 3px;
}
.product-card .add-btn {
  border: none;
  background: var(--ink);
  color: var(--bg);
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s;
  white-space: nowrap;
}
.product-card .add-btn:hover { background: var(--accent-hex); }
.product-card .add-btn svg { width: 14px; height: 14px; }

/* ===== Advantages / How-to blocks ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step-counter;
}
.step-item { position: relative; }
.step-num {
  font-family: 'Newsreader', serif;
  font-size: 48px;
  line-height: 1;
  color: var(--line);
  margin-bottom: 12px;
}
.step-item h4 { font-size: 16px; font-weight: 500; margin: 0 0 8px; }
.step-item p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ===== Delivery section ===== */
.delivery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.delivery-cell {
  background: var(--surface);
  padding: 32px;
}
.delivery-cell .d-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.delivery-cell .d-value {
  font-family: 'Newsreader', serif;
  font-size: 36px;
  line-height: 1;
  margin-bottom: 6px;
}
.delivery-cell p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ===== CTA / Contact block ===== */
.cta-block {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.cta-block h2 {
  font-family: 'Newsreader', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 16px;
}
.cta-block h2 em { font-style: italic; color: var(--accent-hex); }
.cta-block p { font-size: 15px; color: rgba(230,240,238,.7); margin: 0; }
.cta-block .cta-right { display: flex; flex-direction: column; gap: 12px; }
.cta-block .btn-outline {
  border-color: rgba(230,240,238,.3);
  color: var(--bg);
}
.cta-block .btn-outline:hover {
  border-color: rgba(230,240,238,.8);
  background: rgba(255,255,255,.08);
}

/* ===== Filter sidebar ===== */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 32px 0 80px;
}
.filter-panel {
  position: sticky;
  top: 140px;
  align-self: start;
}
.filter-block {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.filter-block:first-child { border-top: none; padding-top: 0; }
.filter-block h5 {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.filter-block label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 13.5px;
  cursor: pointer;
  user-select: none;
}
.filter-block label .count {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}
.filter-block label input[type="checkbox"] { accent-color: var(--accent-hex); width: 14px; height: 14px; }
.filter-block label:hover { color: var(--accent-hex); }

.range-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.range-row input {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  outline: none;
}
.range-row input:focus { border-color: var(--accent-hex); }
.range-sep { color: var(--muted); font-size: 12px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
}
.chip button {
  background: none;
  border: none;
  color: var(--muted);
  padding: 0;
  line-height: 1;
  font-size: 14px;
}
.chip:hover button { color: var(--ink); }

/* ===== Catalog top bar ===== */
.catalog-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.catalog-topbar .catalog-count { color: var(--muted); font-size: 13.5px; }
.catalog-topbar .catalog-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.select-input {
  height: 36px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7a78' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

/* ===== Catalog page title ===== */
.catalog-header { padding: 32px 0 0; }
.catalog-header h1 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.catalog-header .catalog-desc { font-size: 14px; color: var(--muted); margin: 0; }

/* ===== Quantity stepper ===== */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  overflow: hidden;
}
.qty button {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--surface);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background .12s;
}
.qty button:hover { background: var(--bg); }
.qty input {
  width: 48px;
  height: 32px;
  border: none;
  border-left: 1px solid var(--line-2);
  border-right: 1px solid var(--line-2);
  text-align: center;
  background: var(--surface);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  outline: none;
}
.qty input:focus { background: var(--bg); }
.qty.lg button { width: 44px; height: 44px; }
.qty.lg input { width: 64px; height: 44px; font-size: 16px; }

/* ===== Product Detail Page ===== */
.pdp-wrap { padding: 0 0 80px; }
.pdp {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  padding: 24px 0 48px;
}
.pdp .gallery {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.pdp .gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
}
.pdp .gallery .no-image svg { width: 80px; height: 80px; color: var(--line-2); }
.pdp .thumbs { display: flex; gap: 10px; margin-top: 14px; }
.pdp .thumbs .thumb-item {
  width: 76px;
  height: 76px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
}
.pdp .thumbs .thumb-item img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.pdp .thumbs .thumb-item.on { border-color: var(--ink); }

.pdp h1 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
}
.pdp .pdp-sku {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.pdp .meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin: 20px 0;
  overflow: hidden;
}
.pdp .meta-cell { background: var(--surface); padding: 14px 16px; }
.pdp .meta-cell .lbl {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.pdp .meta-cell .val { font-size: 14px; font-weight: 500; }
.pdp .price-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.pdp .price-wrap .pp {
  font-family: 'Newsreader', serif;
  font-size: 46px;
  line-height: 1;
}
.pdp .price-wrap .pu { color: var(--muted); font-size: 14px; }
.pdp .price-right {
  margin-left: auto;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
}
.pdp .actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Tier pricing table */
.tier-table {
  margin-top: 20px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.tier-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.tier-row:last-child { border-bottom: none; }
.tier-row.head {
  background: var(--bg);
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tier-row .save { color: var(--accent-hex); }

/* Product tabs */
.pdp-tabs { margin-top: 40px; }
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.tab-btn {
  padding: 10px 18px;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
  font-family: inherit;
}
.tab-btn.active, .tab-btn:hover { color: var(--ink); }
.tab-btn.active { border-bottom-color: var(--ink); }
.tab-panel { display: none; font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }
.tab-panel.active { display: block; }
.tab-panel table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.tab-panel table th,
.tab-panel table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.tab-panel table th { font-weight: 500; color: var(--muted); font-size: 12px; background: var(--bg); width: 40%; }

/* Related products */
.pdp-related { padding-bottom: 80px; border-top: 1px solid var(--line); padding-top: 40px; }
.pdp-related h2 {
  font-family: 'Newsreader', serif;
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 24px;
  letter-spacing: -0.015em;
}

/* ===== Cart ===== */
.cart-wrap { padding: 32px 0 80px; }
.cart-wrap h1 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: 38px;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
}
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
}
.cart-head {
  display: grid;
  grid-template-columns: 88px 1fr 120px 120px 100px 32px;
  gap: 16px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.cart-row {
  display: grid;
  grid-template-columns: 88px 1fr 120px 120px 100px 32px;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-row .thumb {
  width: 88px;
  height: 88px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-row .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.cart-row .thumb .no-image svg { width: 36px; height: 36px; color: var(--line-2); }
.cart-row .cart-name { font-size: 14px; line-height: 1.35; }
.cart-row .cart-sku {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.cart-row .ln-price {
  font-family: 'Newsreader', serif;
  font-size: 20px;
  line-height: 1;
}
.cart-row .ln-unit {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.cart-row .remove-btn {
  background: none;
  border: none;
  color: var(--muted);
  padding: 4px;
  transition: color .15s;
  line-height: 1;
}
.cart-row .remove-btn:hover { color: var(--danger-hex); }

/* Cart summary sidebar */
.cart-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 140px;
  align-self: start;
}
.cart-summary h3 { margin: 0 0 18px; font-size: 17px; font-weight: 500; }
.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.summary-line:last-of-type { border-bottom: none; }
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0 20px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  font-size: 15px;
  font-weight: 500;
}
.summary-total .total-val {
  font-family: 'Newsreader', serif;
  font-size: 32px;
  line-height: 1;
}
.promo-row { display: flex; gap: 8px; margin: 12px 0 20px; }
.promo-row input {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-family: inherit;
  outline: none;
}
.promo-row input:focus { border-color: var(--accent-hex); }
.cart-note { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 14px; text-align: center; }

/* Empty cart */
.empty-cart {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.empty-cart .empty-icon { margin: 0 auto 20px; color: var(--line-2); }
.empty-cart h3 {
  font-family: 'Newsreader', serif;
  font-size: 28px;
  color: var(--ink);
  margin: 0 0 10px;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.empty-cart p { font-size: 14.5px; max-width: 380px; margin: 0 auto 28px; line-height: 1.55; }

/* ===== Checkout ===== */
.checkout-wrap { padding: 32px 0 80px; }
.checkout-wrap h1 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: 38px;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
}
.checkout-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
}
.checkout-steps {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
}
.checkout-step {
  flex: 1;
  padding: 12px 0;
  border-bottom: 2px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.checkout-step.active { border-bottom-color: var(--ink); color: var(--ink); }
.checkout-step .step-n {
  font-family: 'JetBrains Mono', monospace;
  margin-right: 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.checkout-step-title { font-size: 13px; font-weight: 500; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}
.field textarea { height: 96px; padding-top: 12px; resize: vertical; line-height: 1.5; }
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--accent-hex); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.checkout-section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 28px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.checkout-section-title:first-child { margin-top: 0; }

/* Order summary in checkout */
.order-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 140px;
  align-self: start;
}
.order-summary h3 { margin: 0 0 20px; font-size: 17px; font-weight: 500; }
.order-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.order-item:last-of-type { border-bottom: none; }
.order-item-thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.order-item-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.order-item-info { flex: 1; min-width: 0; }
.order-item-info .name { font-size: 13px; line-height: 1.3; }
.order-item-info .qty-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.order-item .item-price {
  font-family: 'Newsreader', serif;
  font-size: 17px;
  flex-shrink: 0;
}

/* ===== Account ===== */
.account-wrap { padding: 32px 0 80px; }
.account-wrap h1 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: 44px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.account-subtitle { font-size: 14px; color: var(--muted); margin: 0 0 40px; }
.account-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
}
.account-nav { display: flex; flex-direction: column; gap: 2px; }
.account-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: background .15s, color .15s;
}
.account-nav-item:hover { background: var(--bg); }
.account-nav-item.active { background: var(--ink); color: var(--bg); }
.account-nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }

.order-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}
.order-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.order-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}
.order-date { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.order-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}
.order-badge.status-completed { background: var(--accent-soft-hex); color: var(--accent-hex); }
.order-badge.status-processing { background: oklch(0.94 0.04 60 / 1); color: oklch(0.45 0.10 60 / 1); }
.order-badge.status-shipped { background: oklch(0.94 0.025 230 / 1); color: oklch(0.45 0.08 230 / 1); }
.order-badge.status-pending { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.order-total {
  font-family: 'Newsreader', serif;
  font-size: 22px;
  line-height: 1;
}

/* ===== About page ===== */
.about-hero { padding: 80px 0 48px; }
.about-hero h1 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  max-width: 900px;
}
.about-hero h1 em { font-style: italic; color: var(--accent-hex); }
.about-hero .lead {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 640px;
  line-height: 1.6;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin: 56px 0;
  overflow: hidden;
}
.about-stat { background: var(--surface); padding: 28px; }
.about-stat .num {
  font-family: 'Newsreader', serif;
  font-size: 56px;
  line-height: 1;
  margin-bottom: 6px;
}
.about-stat .lbl { font-size: 12.5px; color: var(--muted); }
.about-text { font-size: 16px; color: var(--ink-2); line-height: 1.7; max-width: 760px; }
.about-text p { margin: 0 0 20px; }
.about-text p:last-child { margin-bottom: 0; }

/* ===== Search page ===== */
.search-wrap { padding: 32px 0 80px; }
.search-wrap h1 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.search-count { font-size: 14px; color: var(--muted); margin: 0 0 32px; }

/* ===== Page template ===== */
.page-wrap { padding: 32px 0 80px; }
.page-wrap h1 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: clamp(30px, 4vw, 50px);
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.page-content { font-size: 15px; line-height: 1.7; color: var(--ink-2); max-width: 800px; }
.page-content h2, .page-content h3, .page-content h4 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 32px 0 14px;
}
.page-content h2 { font-size: 28px; }
.page-content h3 { font-size: 22px; }
.page-content p { margin: 0 0 16px; }
.page-content ul, .page-content ol { padding-left: 20px; list-style: initial; margin-bottom: 16px; }
.page-content a { color: var(--accent-hex); }
.page-content a:hover { text-decoration: underline; }

/* ===== 404 page ===== */
.not-found { padding: 120px 0; text-align: center; }
.not-found .code {
  font-family: 'Newsreader', serif;
  font-size: 120px;
  line-height: 1;
  color: var(--line);
  margin-bottom: 16px;
}
.not-found h2 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.not-found p { font-size: 15px; color: var(--muted); margin: 0 0 32px; max-width: 400px; margin-left: auto; margin-right: auto; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 56px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer h5 {
  margin: 0 0 14px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.footer-nav { display: flex; flex-direction: column; gap: 9px; }
.footer-nav a { font-size: 13.5px; color: var(--ink-2); transition: color .15s; }
.footer-nav a:hover { color: var(--accent-hex); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand-name { font-size: 17px; font-weight: 600; }
.footer-tagline { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 20px; max-width: 260px; }
.footer-contacts { display: flex; flex-direction: column; gap: 6px; }
.footer-contacts a { font-size: 13.5px; color: var(--ink-2); transition: color .15s; }
.footer-contacts a:hover { color: var(--accent-hex); }
.footer-legal {
  display: flex;
  gap: 24px;
  font-size: 12px;
  color: var(--muted);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.footer-legal .right { margin-left: auto; }
.footer-legal a:hover { color: var(--ink); }

/* ===== Manufacturer strip ===== */
.mfr-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
}
.mfr-strip .container {
  display: grid;
  grid-template-columns: auto repeat(4, 1fr);
  gap: 32px;
  align-items: center;
}
.mfr-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mfr-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.mfr-item .flag-row { display: flex; align-items: center; gap: 10px; }
.mfr-item .name { font-size: 14px; font-weight: 500; }
.mfr-item .pct { font-family: 'Newsreader', serif; font-size: 30px; line-height: 1; }
.mfr-item .small { font-size: 11px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }

/* ===== Notices / alerts ===== */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info,
.woocommerce-notice {
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.woocommerce-message { background: var(--accent-soft-hex); color: var(--ink); border: 1px solid var(--accent-hex); }
.woocommerce-error { background: #fef2f2; color: var(--danger-hex); border: 1px solid var(--danger-hex); }
.woocommerce-info { background: var(--bg); color: var(--ink); border: 1px solid var(--line-2); }

/* ===== Pagination ===== */
.pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 40px 0 0;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink-2);
  transition: background .12s, border-color .12s;
}
.pagination a:hover { background: var(--bg); border-color: var(--line); }
.pagination .current { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 13.5px;
  box-shadow: var(--shadow-md);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-in .25s ease-out;
  white-space: nowrap;
}
@keyframes toast-in {
  from { transform: translate(-50%, 8px); opacity: 0; }
  to   { transform: translate(-50%, 0);   opacity: 1; }
}

/* ===== WooCommerce overrides ===== */
.woocommerce-page .woocommerce { max-width: none; }
.woocommerce form .form-row { margin-bottom: 16px; }
.woocommerce form .form-row label { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; display: block; }
.woocommerce form .form-row input,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.woocommerce form .form-row textarea { height: 96px; padding-top: 12px; }
.woocommerce form .form-row input:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus { border-color: var(--accent-hex); }

/* ===== Shop page layout ===== */
.shop-page { padding-bottom: 80px; }

.shop-hero {
  padding: 28px 0 0;
}
.shop-hero .breadcrumbs { padding: 0 0 16px; }
.shop-title {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.shop-catalog { padding-top: 8px; }

.shop-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.shop-sidebar {
  position: sticky;
  top: 120px;
}

.shop-content { min-width: 0; }

/* ===== Catalog filter panel (sidebar) ===== */
.catalog-filter-panel {
  background: var(--surface);
  border: 1px solid rgba(14, 26, 26, 0.08);
  border-radius: 20px;
  padding: 22px;
}

.filter-block + .filter-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.filter-title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.filter-list li + li { margin-top: 2px; }

.filter-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13.5px;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background .12s, color .12s;
}
.filter-list a:hover { background: var(--bg); color: var(--ink); }
.filter-list a.is-active {
  background: var(--accent-soft-hex);
  color: var(--accent-hex);
  font-weight: 500;
}

.filter-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}

/* ===== Shop toolbar ===== */
.shop-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  min-height: 0;
}
.shop-toolbar:empty { display: none; }

/* ===== WooCommerce pagination fix ===== */
.shop-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
.shop-pagination .woocommerce-pagination { width: 100%; }

.woocommerce-pagination,
.shop-pagination .woocommerce-pagination {
  text-align: center;
}

.woocommerce nav.woocommerce-pagination ul,
.shop-pagination .woocommerce-pagination ul {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.woocommerce nav.woocommerce-pagination ul li,
.shop-pagination .woocommerce-pagination ul li {
  display: block !important;
  float: none !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
.shop-pagination .woocommerce-pagination ul li a,
.shop-pagination .woocommerce-pagination ul li span {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px !important;
  border-radius: 999px;
  border: 1px solid var(--line-2) !important;
  background: var(--surface);
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  transition: background .12s, border-color .12s, color .12s;
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.shop-pagination .woocommerce-pagination ul li span.current {
  background: var(--ink) !important;
  color: var(--bg) !important;
  border-color: var(--ink) !important;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.shop-pagination .woocommerce-pagination ul li a:hover {
  background: var(--accent-soft-hex) !important;
  border-color: var(--accent-hex) !important;
  color: var(--accent-hex);
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 560px; }
  .product-grid, .product-grid.dense, ul.products.product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .trust-strip .container { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .mfr-strip .container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
  .catalog-filter-panel { margin-bottom: 24px; }
}

@media (max-width: 960px) {
  .container { padding: 0 20px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .pdp { grid-template-columns: 1fr; gap: 32px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .account-layout { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-block { grid-template-columns: 1fr; padding: 40px; }
  .delivery-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .product-grid, .product-grid.dense, ul.products.product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar-main .container { height: auto; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; gap: 10px; }
  .search-bar { width: 100%; max-width: none; order: 3; }
  .topbar-actions { margin-left: 0; }
  .cart-head { display: none; }
  .cart-row { grid-template-columns: 64px 1fr; gap: 12px; }
  .cart-row .qty-col, .cart-row .price-col { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .hero { padding: 36px 0 28px; }
  .cta-block { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-strip .container { grid-template-columns: 1fr; gap: 20px; }
  .mfr-strip .container { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .product-grid, .product-grid.dense, ul.products.product-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 20px; flex-wrap: wrap; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
}
