/*
Theme Name: МебельБизнес
Theme URI: https://мебельбизнес.рф
Author: Собрано по материалам заказчика
Description: Каталог письменных столов: однотумбовые, двухтумбовые и трапеции.
  Модели — произвольный тип записи, декоры — таксономия с текстурами,
  опции — отдельный тип с доплатой. Корзина на localStorage, без WooCommerce.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: mebelbusiness
*/
/* ============================================================
   Прототип «Мебельбизнес.рф» — стили
   Палитра и типографика подобраны под дерево и бумагу:
   тёплый фон, глубокий зелёный акцент, латунь для деталей.
   Внешних шрифтов нет — только системные, чтобы сайт работал офлайн.
   ============================================================ */

:root {
  --paper: #f7f4ee;
  --card: #fffdf9;
  --ink: #23261f;
  --muted: #676b5e;
  --line: #ded7c9;
  --line-soft: #ece5d8;
  --accent: #2f4635;
  --accent-dark: #213325;
  --brass: #a8814e;
  --warn: #8a5a1e;
  --warn-bg: #f3e8d6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(35, 38, 31, .05), 0 12px 28px -18px rgba(35, 38, 31, .35);
  --serif: Georgia, 'Times New Roman', 'PT Serif', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- лента «прототип» ---------- */

.ribbon {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  background: var(--warn-bg); color: var(--warn);
  font-size: 13px; letter-spacing: .01em;
  padding: 7px 16px; text-align: center;
}
.ribbon .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--warn); flex: none;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- шапка ---------- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 244, 238, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-inner {
  display: flex; align-items: center; gap: 24px;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px;
  font-family: var(--serif); font-size: 19px;
  text-decoration: none; white-space: nowrap;
}
.brand-box { stroke: var(--line); }
.brand-glyph { stroke: var(--accent); }
.brand:hover .brand-box { stroke: var(--brass); }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center; min-height: 38px;
  text-decoration: none; color: var(--muted);
  font-size: 15px; padding: 8px 14px; border-radius: 9px;
  transition: background .16s, color .16s;
}
.nav a:hover { background: var(--line-soft); color: var(--ink); }
.nav a.active { color: var(--ink); font-weight: 600; }

.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-size: 15px;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 14px; background: var(--card);
  transition: border-color .16s, transform .16s;
}
.cart-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px;
  display: inline-grid; place-items: center;
  background: var(--accent); color: #fff;
  border-radius: 999px; font-size: 12px; font-weight: 600;
}

/* ---------- общие блоки ---------- */

.view { animation: fade .28s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em;
  font-size: 11.5px; font-weight: 600; color: var(--brass);
  margin: 0 0 10px;
}
.lede { color: var(--muted); max-width: 60ch; margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-size: 15px; font-weight: 500;
  padding: 13px 22px; border-radius: 11px;
  border: 1px solid transparent; cursor: pointer;
  background: var(--accent); color: #fff; text-decoration: none;
  transition: background .16s, transform .16s, box-shadow .16s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--card); border-color: var(--accent); }
.btn-sm { padding: 9px 15px; font-size: 14px; border-radius: 9px; }
.btn-block { width: 100%; }

/* ---------- главная: герой ---------- */

.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: 40px; padding: 64px 0 72px;
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.05; margin: 0 0 18px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: 17px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-photo {
  position: relative; border-radius: 20px; overflow: hidden;
  aspect-ratio: 4 / 3.2; background: var(--line-soft);
  box-shadow: var(--shadow);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(255, 253, 249, .93);
  font-size: 12.5px; color: var(--muted);
  padding: 6px 11px; border-radius: 8px;
}

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.stat { background: var(--paper); padding: 22px 24px; }
.stat b { display: block; font-family: var(--serif); font-size: 19px; font-weight: 400; }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- карточки категорий ---------- */

.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); text-decoration: none;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-card strong { font-family: var(--serif); font-size: 19px; font-weight: 400; }
.cat-card small { color: var(--muted); font-size: 14px; }
.cat-card .arrow { margin-top: 14px; color: var(--brass); font-size: 18px; }

/* ---------- карточка товара ---------- */

.grid-models {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 18px;
}
.card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.card:hover { border-color: #cfc6b4; transform: translateY(-2px); box-shadow: var(--shadow); }

.card-photo {
  display: grid; place-items: center;
  padding: 26px 20px; min-height: 210px;
  background:
    radial-gradient(120% 100% at 50% 0%, #fffefb 0%, #f2ece0 100%);
  border-bottom: 1px solid var(--line-soft);
}
.card-photo img { max-height: 160px; width: auto; object-fit: contain; }

.card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 8px; }
.tag {
  font-size: 11.5px; letter-spacing: .04em;
  background: var(--line-soft); color: var(--muted);
  padding: 3px 8px; border-radius: 6px;
}
.sku {
  font-size: 12.5px; color: var(--muted);
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.card-title {
  margin: 0; font-size: 17px; line-height: 1.35;
  font-family: var(--sans); font-weight: 600; letter-spacing: 0;
}
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dims-row { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-foot { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.price {
  font-family: var(--serif); font-size: 21px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.price small { font-family: var(--sans); font-size: 12px; color: var(--muted); display: block; }

/* ---------- каталог: фильтры ---------- */

.filters {
  position: sticky; top: 68px; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 0;
  margin-bottom: 26px;
}
.filters-inner { display: grid; grid-template-columns: 1.4fr .9fr .8fr .8fr auto; gap: 10px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.field input, .field select {
  font: inherit; font-size: 14.5px;
  padding: 10px 12px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  min-height: 42px; width: 100%;
}
.field input:focus, .field select:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent;
}
.field input[aria-invalid="true"] { border-color: #b4554a; }

.catalog-top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.result-count { font-size: 14px; color: var(--muted); }
.pl-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pl-links a {
  font-size: 13px; text-decoration: none; color: var(--accent);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 11px; background: var(--card);
  display: inline-flex; align-items: center; gap: 6px;
}
.pl-links a:hover { border-color: var(--accent); }

.empty {
  text-align: center; padding: 64px 20px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty b { display: block; color: var(--ink); font-family: var(--serif); font-size: 20px; margin-bottom: 6px; }

/* ---------- страница модели ---------- */

.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); padding: 22px 0; flex-wrap: wrap; }
.crumbs a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { opacity: .5; }

.product { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; padding-bottom: 64px; }

.gallery-main {
  display: grid; place-items: center; padding: 40px;
  background: radial-gradient(120% 100% at 50% 0%, #fffefb 0%, #f0e9db 100%);
  border: 1px solid var(--line); border-radius: 18px;
  min-height: 340px;
}
.gallery-main img.fit { max-height: 300px; width: auto; }
.gallery-main img.fill {
  width: 100%; height: auto; aspect-ratio: 4 / 3;
  object-fit: cover; border-radius: 12px;
}
.gallery-main:has(img.fill) { padding: 0; overflow: hidden; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumb {
  width: 76px; height: 60px; padding: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 9px; overflow: hidden;
  background: var(--card);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(47,70,53,.12); }

.p-title { margin: 6px 0 10px; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; }
.p-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }

.price-box {
  display: flex; align-items: end; justify-content: space-between; gap: 16px;
  padding: 16px 18px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--card); margin-bottom: 8px;
}
.price-box .price { font-size: 28px; }
.price-note { font-size: 12.5px; color: var(--warn); margin: 0 0 22px; }

.opt-group { margin-bottom: 22px; }
.opt-group > h3 {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
  margin: 0 0 10px;
}

.decors { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  position: relative; display: grid; place-items: center;
  width: 52px; height: 52px; padding: 0; cursor: pointer;
  border-radius: 50%; border: 2px solid transparent;
  background-clip: content-box; background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(35,38,31,.14);
  transition: transform .15s, border-color .15s;
}
.swatch:hover { transform: scale(1.06); }
.swatch[aria-pressed="true"] { border-color: var(--accent); }
.swatch-label { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.decor-name { font-size: 13.5px; color: var(--ink); margin: 10px 0 0; }

.opts { display: grid; gap: 8px; }
.opt {
  display: flex; align-items: start; gap: 11px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.opt:hover { border-color: #cfc6b4; }
.opt:has(input:checked) { border-color: var(--accent); background: #f6f8f3; }
.opt input { margin: 3px 0 0; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.opt-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.opt-txt b { font-weight: 500; font-size: 14.5px; }
.opt-txt span { font-size: 12.5px; color: var(--muted); }
.opt-price { font-size: 13.5px; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.opt-price.plus { color: var(--accent); font-weight: 600; }

.qty-row { display: flex; align-items: center; gap: 14px; margin: 22px 0; }
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  overflow: hidden;
}
.qty button {
  width: 40px; height: 42px; border: 0; background: transparent;
  font-size: 18px; cursor: pointer; color: var(--ink); line-height: 1;
}
.qty button:hover { background: var(--line-soft); }
.qty output { min-width: 42px; text-align: center; font-variant-numeric: tabular-nums; }

.total-row {
  display: flex; align-items: baseline; justify-content: space-between;
  border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px;
}
.total-row .price { font-size: 26px; }

.specs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs-table th, .specs-table td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.specs-table th { font-weight: 400; color: var(--muted); width: 45%; padding-right: 16px; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel + .panel { margin-top: 16px; }
.panel h3 { margin: 0 0 12px; font-size: 18px; }

/* ---------- корзина ---------- */

.cart-layout { display: grid; grid-template-columns: 1.5fr .9fr; gap: 28px; align-items: start; padding-bottom: 64px; }

.line {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 16px;
  padding: 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); align-items: start;
}
.line + .line { margin-top: 12px; }
.line-photo { display: grid; place-items: center; background: #f4efe4; border-radius: 9px; padding: 8px; min-height: 76px; }
.line-photo img { max-height: 64px; width: auto; }
.line-title { margin: 0 0 4px; font-weight: 600; font-size: 15px; }
.line-opts { margin: 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--muted); }
.line-opts li::before { content: '·'; margin-right: 6px; }
.line-side { display: flex; flex-direction: column; align-items: end; gap: 8px; }
.line-price { font-variant-numeric: tabular-nums; font-weight: 600; }
.line-remove {
  border: 0; background: none; color: var(--muted); cursor: pointer;
  font-size: 12.5px; padding: 2px 0; text-decoration: underline; text-underline-offset: 3px;
}
.line-remove:hover { color: #b4554a; }

.summary { position: sticky; top: 96px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; padding: 6px 0; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-size: 17px; }
.summary-row.total .price { font-size: 24px; }

.form-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.form-field label { font-size: 12.5px; color: var(--muted); }
.form-field input, .form-field textarea {
  font: inherit; font-size: 14.5px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--card); color: var(--ink); width: 100%;
}
.form-field textarea { resize: vertical; min-height: 74px; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.order-out {
  margin-top: 14px; padding: 14px; border-radius: 10px;
  background: #f4f6f1; border: 1px solid #d7ddcd;
  font: 13px/1.55 ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  white-space: pre-wrap; word-break: break-word;
}

.note-strip {
  display: flex; gap: 10px; align-items: start;
  font-size: 13px; color: var(--muted);
  border: 1px solid var(--line-soft); background: var(--card);
  border-radius: 10px; padding: 12px 14px; margin-top: 14px;
}

/* ---------- доставка ---------- */

.delivery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.info-card h3 { margin: 0 0 8px; font-size: 17px; }
.info-card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- подвал ---------- */

.footer { border-top: 1px solid var(--line-soft); background: #f2eee5; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; padding: 40px 0 24px; flex-wrap: wrap; }
.footer-brand { font-family: var(--serif); font-size: 20px; margin: 0 0 6px; }
.footer-note { color: var(--muted); font-size: 13.5px; max-width: 38ch; margin: 0; }
.footer-cols { display: flex; gap: 56px; }
.footer-cols a { display: flex; align-items: center; min-height: 36px; text-decoration: none; color: var(--muted); font-size: 14px; padding: 3px 0; }
.footer-cols a:hover { color: var(--ink); }
.footer-head { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); margin: 0 0 8px; }
.footer-legal { border-top: 1px solid var(--line-soft); padding: 16px 0 28px; font-size: 12.5px; color: var(--muted); }

/* ---------- уведомление ---------- */

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; font-size: 14px;
  padding: 11px 18px; border-radius: 10px;
  opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s;
  z-index: 60; max-width: calc(100vw - 40px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.noscript { padding: 24px; background: var(--warn-bg); color: var(--warn); border-radius: 10px; margin-top: 20px; }

/* ---------- адаптив ---------- */

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; padding: 44px 0 52px; }
  .hero-photo { aspect-ratio: 16 / 10; order: -1; }
  .cats { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; gap: 26px; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .filters-inner { grid-template-columns: 1fr 1fr; }
  .filters { position: static; }
  .stats { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { width: min(1120px, 100% - 28px); }

  /* шапка в две строки: логотип с корзиной, под ними навигация */
  .topbar-inner {
    height: auto; flex-wrap: wrap; row-gap: 6px;
    padding: 10px 0 8px; gap: 10px;
  }
  .brand { flex: 1 1 auto; }
  .brand span { display: inline; font-size: 17px; }
  .cart-btn { order: 2; margin-left: auto; font-size: 14px; padding: 8px 12px; }
  .nav {
    order: 3; width: 100%; margin-left: 0; gap: 2px;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 7px 11px; font-size: 14px; white-space: nowrap; min-height: 36px; }
  .section { padding: 40px 0; }
  .filters-inner { grid-template-columns: 1fr; }
  .line { grid-template-columns: 68px 1fr; }
  .line-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-cols { gap: 32px; }
}

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

/* ============================================================
   Дополнения для WordPress
   ============================================================ */

/* [hidden] должен побеждать display: flex у карточек */
.card[hidden],
.grid-models[hidden],
.empty[hidden] { display: none !important; }

/* контент страниц из редактора WordPress */
.page-content { font-size: 16px; line-height: 1.7; color: var(--ink); }
.page-content h2 { font-size: 24px; margin: 28px 0 10px; }
.page-content h3 { font-size: 19px; margin: 22px 0 8px; }
.page-content p { margin: 0 0 14px; }
.page-content ul, .page-content ol { margin: 0 0 14px; padding-left: 22px; }
.page-content li { margin-bottom: 6px; }
.page-content a { color: var(--accent); }
.page-content .delivery-grid { margin-top: 20px; }

/* изображение линии в корзине */
.line-photo img { max-height: 64px; width: auto; }

/* ссылки пагинации */
.pagination, .nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.pagination a, .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; min-height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--card); text-decoration: none; font-size: 14px;
}
.page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* меню в шапке приходит ссылками без ul — выравниваем как раньше */
.nav > a { display: inline-flex; align-items: center; min-height: 38px; }

/* редакционные блоки внутри карточки товара */
.product-desc p:first-child { margin-top: 0; }
.product-desc p:last-child { margin-bottom: 0; }
