/* ============================================================================
   catalog.css — страницы каталога Склада FLUX: /catalog, /catalog/<раздел>, /product/<товар>.
   Разметку печатает сервер (seo/pages.js) в каркас сайта (site/_seo-shell.html), поэтому
   здесь только своё: крошки, плитки разделов, таблицы цен, карточка товара.
   Цвета и радиусы — токены сайта (style.css, palette.css): страница каталога обязана
   читаться частью сайта, а не отдельным прайсом.
   ========================================================================== */

.cat-pg .head{ margin-top:10px }
.cat-pg h1{ max-width:22ch; overflow-wrap:anywhere }

.cat-crumbs{ display:flex; flex-wrap:wrap; gap:6px 8px; align-items:center;
  font-size:13.5px; color:var(--dim); margin-bottom:clamp(14px,2vw,24px) }
.cat-crumbs a{ color:var(--muted); border-bottom:1px solid transparent; transition:border-color .2s var(--e-micro) }
.cat-crumbs a:hover{ border-bottom-color:currentColor }
.cat-crumbs [aria-current]{ color:var(--ink) }

.cat-intro{ margin-top:clamp(18px,2vw,28px); max-width:72ch; color:var(--muted); font-size:16.5px; line-height:1.6 }
.cat-note{ margin-top:18px; color:var(--dim); font-size:14px; max-width:70ch }

/* Узбекская строка — для поиска по-узбекски и для человека, который читает на нём. */
.cat-uz{ margin-top:clamp(20px,2.2vw,30px); padding:12px 16px; max-width:72ch;
  border-left:2px solid var(--cta-edge); background:var(--cta-soft); border-radius:0 12px 12px 0;
  color:var(--muted); font-size:15px; line-height:1.55 }

/* ── плитки разделов ── */
.cat-groups{ list-style:none; margin:clamp(26px,3vw,44px) 0 0; padding:0; display:grid; gap:12px;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr)) }
.cat-gcard{ display:grid; gap:6px; height:100%; align-content:start }
.cat-gname{ font-family:var(--disp); font-weight:700; font-size:clamp(19px,1.5vw,23px); letter-spacing:-.01em; line-height:1.15 }
.cat-guz{ color:var(--dim); font-size:13.5px }
.cat-gmeta{ margin-top:6px; color:var(--cta); font-weight:700; font-size:15px }
.cat-gex{ color:var(--muted); font-size:14px; line-height:1.5 }

/* ── содержание раздела и соседи ── */
.cat-toc,.cat-others{ display:flex; flex-wrap:wrap; gap:8px; margin-top:clamp(22px,2.4vw,34px) }
.cat-toc a,.cat-others a{ padding:7px 13px; border:var(--hair); border-radius:999px; font-size:14px; color:var(--muted);
  transition:border-color .2s var(--e-micro), color .2s var(--e-micro) }
.cat-toc a:hover,.cat-others a:hover{ border-color:var(--cta-edge); color:var(--ink) }
.cat-others{ align-items:center; margin-top:clamp(36px,4vw,60px) }
.cat-others > span{ color:var(--dim); font-size:14px; margin-right:4px }

.cat-sec{ margin-top:clamp(34px,4vw,56px); scroll-margin-top:96px }
.cat-sec h2{ font-size:clamp(22px,2.2vw,32px); display:flex; align-items:baseline; gap:12px }
.cat-sec h2 small{ font-size:14px; color:var(--dim); font-weight:600 }

/* ── таблица товаров: строка = товар, справа цены по сортам ── */
.cat-table{ width:100%; border-collapse:collapse; margin-top:16px; font-size:15.5px }
.cat-table thead th{ text-align:left; font-size:12.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
  color:var(--dim); padding:0 0 10px; border-bottom:var(--hair) }
.cat-table thead th:last-child{ text-align:right }
.cat-table tbody th,.cat-table td{ padding:13px 0; border-bottom:var(--hair); vertical-align:top }
.cat-table tbody th{ text-align:left; font-weight:600; padding-right:18px }
.cat-table tbody th a{ border-bottom:1px solid transparent; transition:border-color .2s var(--e-micro), color .2s var(--e-micro) }
.cat-table tbody th a:hover{ color:var(--cta); border-bottom-color:currentColor }
.cat-table tbody th small{ display:block; margin-top:2px; color:var(--dim); font-weight:500; font-size:13px }
.cat-table td{ text-align:right; white-space:nowrap }
.cat-g{ display:inline-block; margin-left:14px }
.cat-g i{ font-style:normal; color:var(--dim); font-size:13px; margin-right:3px }
.cat-g b{ font-weight:700 }
.cat-u{ display:block; margin-top:3px; color:var(--dim); font-size:12.5px }

@media (max-width:700px){
  .cat-table thead{ display:none }
  .cat-table tbody tr{ display:grid; gap:4px; padding:12px 0; border-bottom:var(--hair) }
  .cat-table tbody th,.cat-table td{ border:0; padding:0 }
  .cat-table td{ text-align:left; white-space:normal }
  .cat-g{ margin:0 14px 0 0 }
}

/* ── карточка товара ── */
.cat-prod{ display:grid; gap:clamp(24px,3.4vw,56px); align-items:start;
  grid-template-columns:minmax(0,1fr) }
@media (min-width:900px){
  .cat-prod{ grid-template-columns:minmax(260px,400px) minmax(0,1fr) }
  .cat-prod.no-ph{ grid-template-columns:minmax(0,1fr) }
}
.cat-ph{ margin:0; aspect-ratio:1; border-radius:var(--r); overflow:hidden;
  background:var(--paper); border:1px solid var(--edge) }
.cat-ph img{ width:100%; height:100%; object-fit:contain; display:block }
@media (max-width:899px){ .cat-ph{ max-width:420px } }
.cat-main .kicker{ margin-bottom:10px }
.cat-main h1{ font-size:clamp(30px,4vw,58px); line-height:1.04 }
.cat-main .lead{ margin-top:16px; max-width:52ch }

.cat-prices{ margin-top:clamp(20px,2.4vw,30px); border-collapse:collapse; min-width:min(100%,360px) }
.cat-prices th,.cat-prices td{ padding:11px 0; border-bottom:var(--hair); text-align:left }
.cat-prices thead th{ font-size:12.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--dim); font-weight:700 }
.cat-prices tbody th{ font-weight:600; padding-right:36px }
.cat-prices td{ text-align:right; color:var(--muted) }
.cat-prices td b{ color:var(--ink); font-size:19px }
.cat-one{ margin-top:clamp(20px,2.4vw,30px); color:var(--muted) }
.cat-one b{ color:var(--ink); font-size:clamp(26px,2.6vw,36px); margin-right:4px }

.cat-facts{ margin:clamp(22px,2.6vw,34px) 0 0; display:grid; gap:0; max-width:620px }
.cat-facts > div{ display:grid; grid-template-columns:130px minmax(0,1fr); gap:14px; padding:10px 0; border-bottom:var(--hair) }
.cat-facts dt{ color:var(--dim); font-size:14px }
.cat-facts dd{ margin:0; overflow-wrap:anywhere }
.cat-facts dd small{ color:var(--dim); margin-left:6px }
.cat-facts a{ border-bottom:1px solid var(--edge) }
.cat-facts a:hover{ border-bottom-color:currentColor }
.cat-names{ margin-top:18px; color:var(--muted); font-size:15px; line-height:1.6; max-width:70ch }
.cat-main .go-row{ margin-top:clamp(24px,2.6vw,36px) }

/* ── как заказать ── */
.cat-how h2{ font-size:clamp(26px,3vw,44px) }
.cat-steps{ list-style:none; margin:clamp(22px,2.6vw,36px) 0 0; padding:0; display:grid; gap:12px;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)) }
.cat-steps li{ display:grid; gap:10px; align-content:start }
.cat-steps h3 a{ border-bottom:1px solid var(--cta-edge) }
.cat-steps p{ color:var(--muted); font-size:15px; line-height:1.55 }
.cat-how .go-row{ margin-top:clamp(22px,2.4vw,32px) }
.cat-sim h2{ font-size:clamp(22px,2.2vw,32px) }
