/* Storefront engine base: tokens, layout, header, nav, lists, footer.
   Themes override the tokens in their own stylesheet loaded after this one. */
:root {
  --bg: #fff;
  --surface: #f3f5f6;
  --line: #d9e0e3;
  --ink: #1b2326;
  --muted: #5d6a70;
  --accent: #2b4a5c;          /* buttons, links (white text on it >= 4.5:1) */
  --accent-hover: #213a48;
  --accent-soft: #e7eef2;
  --focus: #2b6689;
  --sold: #9a2f1f;
  --ok: #1f7a4d;
  --err: #b42318;
  --hdr-bg: #fff;
  --hdr-ink: var(--ink);
  --hdr-line: var(--line);
  --radius: 6px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --gap: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, p { margin: 0; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ym-px { position: absolute; left: -9999px; }
.skip { position: absolute; left: 8px; top: -48px; z-index: 10; padding: 8px 12px; background: var(--ink); color: #fff; border-radius: var(--radius); }
.skip:focus { top: 8px; color: #fff; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }
.main { min-height: 50vh; padding-bottom: 48px; }
.h1 { font-size: clamp(22px, 1.6vw + 16px, 30px); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.h2 { font-size: 20px; line-height: 1.3; font-weight: 650; margin-bottom: 12px; }
.section { margin-top: 32px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.section__head .h2 { margin: 0; }
.section__more { font-weight: 600; white-space: nowrap; }

/* ---- header ---------------------------------------------------------- */
.hdr { background: var(--hdr-bg); color: var(--hdr-ink); border-bottom: 1px solid var(--hdr-line); }
.hdr__bar { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand . phone" "search search search";
  align-items: center; gap: 10px 12px; padding-block: 10px; }
.hdr__brand { grid-area: brand; display: flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.hdr__logo { height: 26px; width: auto; }
.hdr__name { font-weight: 800; font-size: 20px; letter-spacing: 0.02em; }
.hdr__search { grid-area: search; }
.hdr__phone { grid-area: phone; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 4px;
  color: inherit; font-weight: 650; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hdr__phone:hover { color: inherit; text-decoration: underline; }
@media (max-width: 479px) { .hdr__phone-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hdr__phone { justify-content: center; width: 44px; border: 1px solid var(--hdr-line); border-radius: var(--radius); } }
@media (min-width: 880px) {
  .hdr__bar { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand search phone"; gap: 24px; padding-block: 12px; }
  .hdr__logo { height: 30px; }
}

/* ---- search ---------------------------------------------------------- */
.search { display: flex; width: 100%; }
.search__input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); }
.search__input::placeholder { color: #737f85; }
.search__input:focus-visible { outline-offset: -1px; }
.search__btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; font: inherit; font-weight: 650;
  color: #fff; background: var(--accent); border: 0; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer;
  transition: background-color .15s ease; }
.search__btn:hover { background: var(--accent-hover); }
.search__btn:active { transform: translateY(1px); }
@media (max-width: 479px) { .hdr__search .search__btn-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---- category nav ------------------------------------------------------ */
.nav { border-top: 1px solid var(--hdr-line); }
.nav__list { position: relative; display: flex; gap: 4px; margin: 0 auto; padding-block: 4px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.nav__list::-webkit-scrollbar { display: none; }
.nav__link { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: var(--radius); color: inherit;
  text-decoration: none; white-space: nowrap; font-weight: 550; transition: background-color .15s ease; }
.nav__link:hover { color: inherit; background: rgba(127, 140, 146, .16); }
.nav__link[aria-current] { box-shadow: inset 0 -3px 0 var(--focus); }

/* ---- breadcrumbs, page head ---------------------------------------------- */
.crumbs { padding-block: 12px 4px; font-size: 14px; }
.crumbs__list { display: flex; flex-wrap: wrap; gap: 2px 0; margin: 0; padding: 0; list-style: none; color: var(--muted); }
.crumbs__item + .crumbs__item::before { content: "/"; margin-inline: 8px; color: #9aa5aa; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.phead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding-block: 12px 8px; }
.phead__intro { max-width: 70ch; margin-bottom: 12px; color: var(--muted); }

/* ---- product rows ------------------------------------------------------ */
.plist { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.prow { border-bottom: 1px solid var(--line); }
.prow__link { display: grid; grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "img body" "img side";
  gap: 4px 12px; padding: 12px 4px; color: inherit; text-decoration: none; transition: background-color .15s ease; }
.prow__link:hover { background: var(--surface); color: inherit; }
.prow__link:hover .prow__title { text-decoration: underline; text-decoration-color: var(--muted); }
.prow__img { grid-area: img; align-self: start; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); border-radius: 4px; }
.prow__img img, .prow__img .nophoto { width: 100%; height: 100%; object-fit: cover; }
.prow__body { grid-area: body; display: grid; gap: 6px; align-content: start; min-width: 0; }
.prow__title { font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.prow__pns { display: flex; flex-wrap: wrap; gap: 4px; }
.prow__side { grid-area: side; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.prow__price { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prow__price--ask { font-size: 14px; font-weight: 600; color: var(--muted); }
.prow__sku { font-size: 13px; white-space: nowrap; }
.prow.is-sold .prow__img img { filter: grayscale(1); opacity: .7; }
.prow.is-sold .prow__title { color: var(--muted); }
@media (min-width: 720px) {
  .prow__link { grid-template-columns: 112px minmax(0, 1fr) 150px; grid-template-areas: "img body side"; gap: 16px; padding: 12px 8px; }
  .prow__title { font-size: 16px; }
  .prow__side { flex-direction: column; align-items: flex-end; justify-content: flex-start; gap: 4px; }
  .prow__price { font-size: 18px; }
}
.pn-chip { font: 600 14px/1.4 var(--mono); padding: 1px 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; color: var(--ink); }
.pn-chip.is-hit { background: var(--accent-soft); border-color: var(--focus); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.badge--sold { background: var(--sold); color: #fff; }
.prow__img--ask { display: grid; place-content: center; justify-items: center; gap: 2px; border: 1px dashed #b7c2c7; }
.prow__img.prow__img--ask .nophoto { width: 34px; height: auto; fill: var(--bg); }
.prow__ask { font-size: 11px; line-height: 1.2; color: var(--muted); text-align: center; padding-inline: 4px; }
.nophoto { fill: var(--surface); stroke: #9aa5aa; stroke-width: 2; stroke-linejoin: round; }

/* ---- footer ------------------------------------------------------------- */
.ftr { margin-top: 48px; background: var(--surface); border-top: 1px solid var(--line); font-size: 15px; }
.ftr__grid { display: grid; gap: 24px; padding-block: 32px 16px; }
@media (min-width: 720px) { .ftr__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.ftr__h { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.ftr__links, .contacts--compact { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ftr__steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; max-width: 40ch; }
.ftr__note { margin-top: 12px; color: var(--muted); }
.ftr__copy { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 16px 24px;
  font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.ftr__info { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.ftr__info a { color: inherit; }
.contacts__phone { font-size: 18px; font-weight: 700; color: inherit; }
