

/* Start:/local/templates/astopt/template_styles.css?1795695559121140*/
/* ============================================================
   Astana Opt Torg: design system
   Brand: orange #F95F1F + near-black #161616 (from the logo)

   Material rules (after Apple's HIG, Materials):
   - Glass is for navigation and controls that float over content.
   - Content (cards, tiles, panels) uses plain translucent white, no blur.
   - Never glass on glass: controls on glass use --fill, not their own blur.
   - Regular glass carries text. Clear glass only sits on photos.
   ============================================================ */
:root {
  --orange: #f95f1f;
  --orange-deep: #c4420b;    /* white text passes on this */
  --orange-text: #bf3f0a;    /* orange text on light surfaces */
  --orange-soft: rgba(249, 95, 31, 0.1);
  --ink: #1c1c1e;
  --ink-2: #2c2c2e;
  --ink-3: #3a3a3c;
  --paper: #ffffff;
  --base: #f3f3f5;
  --grey: #565c63;
  --grey-2: #6b7178;
  --line: rgba(60, 60, 67, 0.14);
  --ok: #157344;
  --warn: #9a6a00;

  /* Content layer */
  --surface: rgba(255, 255, 255, 0.74);
  --surface-rim: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 0 0 1.5px rgba(60, 60, 67, 0.05);
  /* Fills that sit on a surface or on glass (Apple's tertiary fill) */
  --mist: rgba(120, 120, 128, 0.11);
  --fill: rgba(120, 120, 128, 0.13);
  --fill-hover: rgba(120, 120, 128, 0.2);

  /* Glass. Solid by default, see the @supports upgrade just below. */
  --glass-bg: rgba(250, 249, 248, 0.97);
  --glass-bg-thick: rgba(252, 251, 250, 0.98);
  --glass-blur: none;
  --glass-blur-clear: none;
  --glass-clear-bg: rgba(40, 40, 44, 0.78);
  --glass-rim:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 0 0 1px rgba(255, 255, 255, 0.32),
    0 0 0 0.5px rgba(30, 30, 40, 0.1);

  --f-head: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
  --f-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;

  /* Corners nest: outer radius = inner radius + padding */
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 22px;
  --r-xl: 28px;

  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  /* damped spring, about 3% overshoot */
  --spring: linear(0, 0.046, 0.155, 0.293, 0.439, 0.575, 0.695, 0.795, 0.874, 0.933, 0.975, 1.003, 1.02, 1.028, 1.031, 1.031, 1.028, 1.023, 1.019, 1.014, 1.01, 1.007, 1.004, 1.002, 1.001, 1, 0.999, 0.999, 1);

  --gut: clamp(16px, 3vw, 32px);
  --max: 1360px;
  --shadow-1: 0 1px 2px rgba(40, 30, 20, 0.06), 0 1px 1px rgba(40, 30, 20, 0.03);
  --shadow-2: 0 2px 6px rgba(40, 30, 20, 0.06), 0 10px 28px rgba(40, 30, 20, 0.1);
  --shadow-float: 0 4px 14px rgba(40, 30, 20, 0.08), 0 24px 60px rgba(40, 30, 20, 0.18);
  --hairline: rgba(255, 255, 255, 0.14);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  :root {
    --glass-bg: rgba(255, 255, 255, 0.56);
    --glass-bg-thick: rgba(255, 255, 255, 0.84);
    --glass-blur: saturate(190%) blur(24px);
    --glass-blur-clear: saturate(160%) blur(12px);
    --glass-clear-bg: rgba(20, 20, 24, 0.35);
  }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  :root {
    --glass-bg: rgba(250, 249, 248, 0.98);
    --glass-bg-thick: rgb(252, 251, 250);
    --glass-blur: none;
    --glass-blur-clear: none;
    --glass-clear-bg: rgba(28, 28, 30, 0.86);
    --surface: rgba(255, 255, 255, 0.96);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--base);
  scrollbar-width: thin;
  scrollbar-color: rgba(60, 60, 67, 0.34) transparent;
}
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  caret-color: var(--orange);
}
/* Wallpaper: painted once from an SVG on its own layer, so scrolling never repaints it */
body::before {
  content: '';
  position: fixed;
  z-index: -1;
  inset: -6% 0;
  pointer-events: none;
  contain: strict;
  background: var(--base) center / cover no-repeat url("/local/templates/astopt/images/bg.svg");
}
@media (prefers-reduced-motion: no-preference) and (min-width: 721px) {
  @supports (animation-timeline: scroll()) {
    body::before { animation: wall-drift linear both; animation-timeline: scroll(root); }
    @keyframes wall-drift { from { transform: translate3d(0, 2.5%, 0); } to { transform: translate3d(0, -2.5%, 0); } }
  }
}
img { display: block; max-width: 100%; transition: opacity 360ms var(--ease); }
img.wait { opacity: 0 !important; }
a { color: inherit; text-decoration: none; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--orange-deep); color: #fff; }
::placeholder { color: #5a6066; opacity: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gut); }
.price, .sumrow, .order-f, .pd-price, .step input, .line .r b { font-variant-numeric: tabular-nums; }

/* Squircles wherever the browser can draw them */
@supports (corner-shape: squircle) {
  .circle .ph, .circle .ph::after, .doc .ic, .order-items img, .line img, .sugg a img, .mega-l a img { corner-shape: squircle; }
}

/* ---------- Glass ---------- */
.head::before, .catnav, .mega, .sugg, .city, .drawer, .modal, .toast, .bnav, .filters.on {
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap; letter-spacing: -0.005em;
  transition: transform 160ms var(--ease), background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.btn:active { transform: scale(0.97); transition-duration: 90ms; }
.btn .lab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: filter 110ms ease, opacity 110ms ease; }
.btn .lab.blur { filter: blur(3px); opacity: 0.4; }
.btn-orange {
  overflow: hidden; color: #fff;
  background: linear-gradient(180deg, #c94612 0%, #b33a08 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 1px 2px rgba(0, 0, 0, 0.2), 0 6px 18px rgba(0, 0, 0, 0.18);
}
.btn-orange::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(110px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.34), transparent 72%);
  transition: opacity 200ms ease;
}
.btn-dark {
  color: #fff;
  background: linear-gradient(180deg, #38383b 0%, #1c1c1e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1px 2px rgba(0, 0, 0, 0.2);
}
.btn-dark.added, .btn-orange.added { background: linear-gradient(180deg, #1f8f55 0%, #157344 100%); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14), 0 6px 18px rgba(0, 0, 0, 0.12); }
.btn-ghost { color: inherit; background: var(--fill); box-shadow: inset 0 0 0 0.5px rgba(60, 60, 67, 0.12); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .btn-orange:hover::after { opacity: 1; }
  .btn-orange:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 1px 2px rgba(0, 0, 0, 0.2), 0 10px 26px rgba(0, 0, 0, 0.24); }
  .btn-dark:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 4px 14px rgba(0, 0, 0, 0.24); }
  .btn-light:hover { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14), 0 10px 26px rgba(0, 0, 0, 0.2); }
  .btn-ghost:hover { background: var(--fill-hover); }
}
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Sliding pill shared by every segmented control */
.tab-thumb {
  position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: inherit; pointer-events: none;
  transition: transform 300ms var(--spring), width 300ms var(--spring), height 300ms var(--spring);
}
[data-pill] > *:not(.tab-thumb) { position: relative; z-index: 1; }

/* ---------- Top utility strip: sits straight on the wallpaper ---------- */
.strip { color: rgba(28, 28, 30, 0.74); font-size: 13px; }
.strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.strip nav { display: flex; gap: 22px; }
.strip a { transition: color 160ms ease; }
.strip-r { display: flex; align-items: center; gap: 10px; }
.seg { position: relative; display: inline-flex; background: var(--fill); border-radius: 999px; padding: 2px; }
.seg .tab-thumb { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14), 0 0 0 0.5px rgba(0, 0, 0, 0.05); border-radius: 999px; }
.seg button {
  min-width: 34px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: rgba(28, 28, 30, 0.68);
  transition: color 180ms ease, transform 160ms var(--ease);
}
.seg button:active { transform: scale(0.94); }
.seg button[aria-pressed="true"] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .strip a:hover { color: var(--ink); } .seg button:hover { color: var(--ink); } }

/* ---------- Main header: a floating glass toolbar, aligned to the content edges ---------- */
#hdr { display: contents; } /* lets .head stick to the whole page, not to this short wrapper */
.head {
  position: sticky; top: 10px; z-index: 50; color: var(--ink);
  width: calc(min(var(--max), 100%) - 2 * var(--gut)); margin-inline: auto;
  border-radius: var(--r-l);
}
.head::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--glass-bg); box-shadow: var(--glass-rim), 0 2px 10px rgba(40, 30, 20, 0.05);
}
/* the toolbar lifts off the page once content scrolls under it */
.head::after {
  content: ''; position: absolute; inset: 0; z-index: -2; border-radius: inherit; pointer-events: none;
  background: rgba(255, 255, 255, 0.24); box-shadow: 0 8px 30px rgba(40, 30, 20, 0.14); opacity: 0;
  transition: opacity 260ms ease;
}
.head.scrolled::after { opacity: 1; }
.head .wrap { padding-inline: 12px; }
.head .row { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 12px; flex: none; padding-left: 4px; }
.logo svg { height: 38px; width: auto; display: block; }
.catbtn { height: 42px; min-height: 42px; padding: 0 18px; }
.search { flex: 1; position: relative; min-width: 0; }
.search input {
  width: 100%; height: 42px; padding: 0 48px 0 18px; border-radius: 999px; border: 0; text-overflow: ellipsis;
  background: var(--fill); color: var(--ink); font-size: 15px;
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: background-color 180ms ease, box-shadow 180ms ease;
  -webkit-appearance: none; appearance: none;
}
.search input:hover { background: var(--fill-hover); }
.search input:focus { outline: none; background: rgba(255, 255, 255, 0.92); box-shadow: inset 0 0 0 1.5px var(--orange), 0 0 0 4px rgba(249, 95, 31, 0.16); }
.search button.go { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(180deg, #c94612, #b33a08); color: #fff; display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34); transition: transform 160ms var(--ease); }
.search button.go .ico { width: 18px; height: 18px; }
.search button.go:active { transform: scale(0.9); }
.sugg {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px); color: var(--ink);
  background: var(--glass-bg-thick); box-shadow: var(--glass-rim), var(--shadow-float);
  border-radius: var(--r-l); padding: 8px; max-height: 70vh; overflow: auto; z-index: 70;
  visibility: hidden; opacity: 0; transform: translateY(-4px) scale(0.985); transform-origin: top center;
  transition: opacity 110ms ease, transform 110ms ease, visibility 0s linear 110ms;
}
.sugg.open { visibility: visible; opacity: 1; transform: none; transition: none; }
.sugg a { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: var(--r-m); transition: background-color 120ms ease; }
.sugg a img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.sugg a b { font-weight: 600; font-size: 14px; display: block; }
.sugg a span { color: var(--grey); font-size: 12px; }
.sugg .none { padding: 16px; color: var(--grey); }
@media (hover: hover) and (pointer: fine) { .sugg a:hover { background: var(--fill); } }
.tools { display: flex; align-items: center; gap: 2px; flex: none; }
.tool { position: relative; display: grid; justify-items: center; gap: 1px; min-width: 62px; padding: 5px 8px; border-radius: 14px; font-size: 12px; font-weight: 500; color: rgba(28, 28, 30, 0.82); transition: transform 160ms var(--ease), color 160ms ease, background-color 160ms ease; }
.tool:active { transform: scale(0.94); }
.tool .badge { position: absolute; top: 1px; right: 10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--orange-deep); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
.tool .badge:empty { display: none; }
@media (hover: hover) and (pointer: fine) { .tool:hover { color: var(--ink); background: var(--fill); } }

/* category bar: a glass capsule with the same edges as the toolbar */
.catnav {
  width: calc(min(var(--max), 100%) - 2 * var(--gut)); margin: 10px auto 0; border-radius: 999px; color: var(--ink);
  background: var(--glass-bg); box-shadow: var(--glass-rim);
}
.catnav .wrap { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 7px 8px; border-radius: inherit; }
.catnav .wrap::-webkit-scrollbar { display: none; }
/* items share the full width of the bar; on small screens they keep their size and scroll */
.catnav a { position: relative; flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: rgba(28, 28, 30, 0.76); transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease); }
.catnav a:active { transform: scale(0.97); }
.catnav a.chip { background: var(--fill); color: var(--ink); padding: 0 14px 0 10px; margin-right: 2px; }
.catnav a.on { color: var(--ink); background: var(--fill-hover); }
.catnav a.chip.on { box-shadow: inset 0 0 0 1.5px var(--orange); }
.nav-ic { width: 20px; height: 20px; flex: none; }
/* sits on the end of the label, wherever the stretched link puts it */
.nav-hat { position: relative; top: -11px; flex: none; width: 22px; height: 19px; margin-left: -6px; margin-right: -16px; transform: rotate(14deg); pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .catnav a:hover { color: var(--ink); background: var(--fill); }
  .catnav a.chip:hover { background: var(--fill-hover); }
}

/* mega menu: grows out of the Catalog button (JS sets transform-origin) */
.mega {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); color: var(--ink); overflow: hidden;
  background: var(--glass-bg-thick); box-shadow: var(--glass-rim), var(--shadow-float);
  border-radius: var(--r-xl); visibility: hidden; opacity: 0; transform: translateY(-6px) scale(0.98);
  transform-origin: 120px 0;
  transition: opacity 130ms ease, transform 130ms ease, visibility 0s linear 130ms;
}
.mega.open { visibility: visible; opacity: 1; transform: none; transition: opacity 200ms var(--ease), transform 300ms var(--spring), visibility 0s; }
.mega .wrap { display: grid; grid-template-columns: 260px 1fr 320px; gap: 32px; padding: 14px 14px 14px 14px; }
.mega-l { position: relative; border-radius: var(--r-m); }
.mega-l .tab-thumb { background: var(--fill); border-radius: var(--r-m); transition: transform 160ms var(--ease), width 160ms var(--ease), height 160ms var(--ease); }
.mega-l a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-m); font-weight: 600; }
.mega-l a img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.mega-m { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 24px; align-content: start; padding-top: 14px; }
.mega-m a { padding: 7px 0; color: var(--grey); transition: color 140ms ease; }
.mega-m h3 { grid-column: 1 / -1; font-family: var(--f-head); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
@media (hover: hover) and (pointer: fine) { .mega-m a:hover { color: var(--orange-text); } }
.mega-r { border-radius: var(--r-m); overflow: hidden; position: relative; min-height: 240px; background: var(--fill); }
.mega-r img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mega-r div { position: absolute; left: 10px; bottom: 10px; right: 10px; color: #fff; background: var(--glass-clear-bg); -webkit-backdrop-filter: var(--glass-blur-clear); backdrop-filter: var(--glass-blur-clear); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 0 0 0.5px rgba(255, 255, 255, 0.2); border-radius: var(--r-s); padding: 12px 14px; font-weight: 600; font-size: 14px; line-height: 1.3; }

/* ---------- Page body sits directly on the wallpaper ---------- */
main { display: block; }
/* short pages: the footer sits at the bottom of the window, not in the middle */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main.sheet { flex: 1 0 auto; }
.sheet { padding-top: clamp(8px, 1.4vw, 16px); }
.sheet > .sec:first-child { padding-top: 0; }
.sec { padding-block: clamp(32px, 4.4vw, 64px); }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: clamp(16px, 2vw, 26px); }
.h2 { font-family: var(--f-head); font-weight: 600; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.12; letter-spacing: -0.024em; text-wrap: balance; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); white-space: nowrap; transition: color 140ms ease; }
.more .ico { transition: transform 240ms var(--spring); }
@media (hover: hover) and (pointer: fine) { .more:hover { color: var(--orange-text); } .more:hover .ico { transform: translateX(3px); } }

/* ---------- Hero carousel ---------- */
#stage { padding-block: 18px 6px; overflow: hidden; }
.hero { --hero-peek: 72px; --hero-gap: 12px; --hero-h: clamp(260px, 21vw, 300px); --hero-w: min(1120px, 100cqw - 2 * var(--hero-peek)); position: relative; }
.hero-view {
  container-type: inline-size; position: relative; overflow: hidden; touch-action: pan-y; padding-block: 8px 46px; margin-bottom: -28px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 min(9%, 150px), #000 calc(100% - min(9%, 150px)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 min(9%, 150px), #000 calc(100% - min(9%, 150px)), transparent 100%);
}
.hero-view.drag { cursor: grabbing; user-select: none; }
.hero-track {
  display: flex; gap: var(--hero-gap); width: max-content; margin-left: calc(50cqw - var(--hero-w) / 2); cursor: pointer;
  transition: transform 340ms var(--ease-drawer);
}
.slide {
  flex: 0 0 var(--hero-w); height: var(--hero-h); position: relative; isolation: isolate; border-radius: var(--r-xl); overflow: hidden;
  background: var(--ink-2); color: #fff; cursor: auto;
  box-shadow: inset 0 0 0 1px var(--hairline), 0 14px 36px rgba(40, 30, 20, 0.16);
  transform: scale(0.965); opacity: 0.6;
  transition: transform 340ms var(--ease-drawer), opacity 260ms ease;
}
.slide.on { transform: none; opacity: 1; }
/* photos travel slower than the slide, which gives a light parallax */
.slide img.main {
  position: absolute; left: -7%; top: 0; z-index: -2; width: 114%; max-width: none; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none;
  transition: transform 340ms var(--ease-drawer), opacity 360ms var(--ease);
}
.slide.before img.main { transform: translate3d(5%, 0, 0); }
.slide.after img.main { transform: translate3d(-5%, 0, 0); }
.slide::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 12, 14, 0.84) 0%, rgba(12, 12, 14, 0.66) 50%, rgba(12, 12, 14, 0) 84%); }
.slide.orange::before { background: linear-gradient(90deg, rgba(196, 62, 10, 0.97) 0%, rgba(214, 71, 12, 0.92) 50%, rgba(249, 95, 31, 0) 86%); }
.slide-t { height: 100%; max-width: 62%; padding: clamp(16px, 2vw, 26px) clamp(22px, 3.2vw, 44px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; }
/* the active slide's text arrives in a short stagger */
.slide-t > * { opacity: 0; transform: translateY(8px); transition: opacity 180ms ease, transform 180ms ease; }
.slide.on .slide-t > * { opacity: 1; transform: none; transition: opacity 240ms var(--ease), transform 300ms var(--ease); }
.slide.on .slide-t > :nth-child(1) { transition-delay: 40ms; }
.slide.on .slide-t > :nth-child(2) { transition-delay: 65ms; }
.slide.on .slide-t > :nth-child(3) { transition-delay: 90ms; }
.slide.on .slide-t > :nth-child(4) { transition-delay: 115ms; }
.hero-track.jump, .hero-track.jump .slide, .hero-track.jump .slide * { transition: none !important; }
.slide-t .tag { padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 0 0 0.5px rgba(255, 255, 255, 0.2); font-size: 12px; font-weight: 600; letter-spacing: 0.005em; }
.slide-h { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: clamp(22px, 2.5vw, 34px); line-height: 1.1; letter-spacing: -0.026em; text-wrap: balance; }
.slide-t p { font-size: 14px; line-height: 1.4; max-width: 34em; color: rgba(255, 255, 255, 0.86); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slide-t .acts { margin-top: 6px; }
.slide .chip {
  position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 18px;
  background: rgba(20, 20, 24, 0.66); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 0 0 0.5px rgba(255, 255, 255, 0.2), 0 8px 24px rgba(0, 0, 0, 0.2); font-size: 12px; font-weight: 500; line-height: 1.3;
  opacity: 0; transition: opacity 240ms ease;
}
.slide.on .chip { opacity: 1; transition: opacity 240ms var(--ease) 120ms; }
.slide .chip b { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: #ffb48c; }
.hero-ctl { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: -6px; }
.hero-pp { position: relative; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--fill); transition: background-color 160ms ease, transform 160ms var(--ease); }
.hero-pp::after { content: ''; position: absolute; inset: -8px; }
.hero-pp .ico { width: 14px; height: 14px; stroke-width: 2.6; }
.hero-pp:active { transform: scale(0.9); }
@media (hover: hover) and (pointer: fine) { .hero-pp:hover { background: var(--fill-hover); } }
.dots { display: flex; justify-content: center; align-items: center; gap: 6px; }
.dots button { position: relative; width: 22px; height: 18px; transition: width 240ms var(--spring); }
.dots button::before { content: ''; position: absolute; left: 7px; right: 7px; top: 6px; height: 6px; border-radius: 3px; background: rgba(28, 28, 30, 0.22); transition: left 240ms var(--spring), right 240ms var(--spring); }
.dots button i { position: absolute; left: 0; right: 0; top: 6px; height: 6px; border-radius: 3px; background: var(--ink); transform-origin: left; transform: scaleX(0); opacity: 0; }
.dots button[aria-current="true"] { width: 44px; }
.dots button[aria-current="true"]::before { left: 0; right: 0; }
.dots button[aria-current="true"] i { opacity: 1; transform: scaleX(1); animation: fill var(--slide-ms) linear; }
.hero.paused .dots button[aria-current="true"] i { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.arrow {
  position: absolute; top: calc(8px + var(--hero-h) / 2 - 21px); z-index: 5; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--glass-clear-bg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36), inset 0 0 0 0.5px rgba(255, 255, 255, 0.24), 0 6px 20px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: var(--glass-blur-clear); backdrop-filter: var(--glass-blur-clear);
  opacity: 0; overflow: hidden; transition: opacity 180ms ease, transform 200ms var(--spring);
}
.arrow::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(40px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.4), transparent 72%); transition: opacity 200ms ease; }
.arrow .ico { width: 18px; height: 18px; stroke-width: 2.2; }
.arrow.prev { left: calc(50cqw - var(--hero-w) / 2 - 21px); }
.arrow.next { right: calc(50cqw - var(--hero-w) / 2 - 21px); }
.arrow:focus-visible { opacity: 1; }
.arrow:active { transform: scale(0.9); }
@media (hover: hover) and (pointer: fine) {
  .hero:hover .arrow { opacity: 1; }
  .arrow:hover { transform: scale(1.06); }
  .arrow:hover::after { opacity: 1; }
}

/* ---------- Quick categories: app icons with a Dock-style hover ---------- */
.circles { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(8px, 2vw, 24px); }
.circle { display: grid; justify-items: center; gap: 12px; text-align: center; font-weight: 600; font-size: 14px; }
.circle .ph {
  position: relative; display: block; width: 100%; max-width: 136px; aspect-ratio: 1; border-radius: 28%; overflow: hidden;
  box-shadow: 0 2px 4px rgba(40, 30, 20, 0.1), 0 10px 24px rgba(40, 30, 20, 0.14);
  transform-origin: 50% 100%;
  transition: transform 340ms var(--spring);
}
.circle .ph img { width: 100%; height: 100%; object-fit: cover; }
.circle .ph::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.circle:active .ph { transform: scale(0.95); transition-duration: 120ms; }
@media (hover: hover) and (pointer: fine) {
  .circle:hover .ph { transform: translateY(-4px) scale(1.09); }
  .circle:hover + .circle .ph, .circle:has(+ .circle:hover) .ph { transform: translateY(-1px) scale(1.035); }
}

/* ---------- Product grid ---------- */
/* Leaders toolbar: category tabs on the left, order-by-SKU on the right */
.lead-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 16px; }
.lead-bar .tabs { margin-bottom: 0; min-width: 0; }
.qbar { position: relative; display: flex; gap: 6px; min-width: 0; }
.qbar input { height: 40px; border-radius: 999px; border: 0; padding: 0 16px; min-width: 0; font-size: 14px; background: var(--surface); box-shadow: var(--surface-rim), var(--shadow-1); transition: background-color 180ms ease, box-shadow 180ms ease; }
.qbar input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--orange), 0 0 0 4px rgba(249, 95, 31, 0.16); }
#qsku { width: 196px; }
#qqty { width: 68px; text-align: center; padding: 0 8px; -moz-appearance: textfield; }
#qqty::-webkit-outer-spin-button, #qqty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qbar .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.qbar .res {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 6; width: max-content; max-width: min(420px, 90vw); padding: 7px 13px; border-radius: 14px; font-size: 13px; line-height: 1.35;
  background: #fff; box-shadow: var(--shadow-2); color: var(--grey); opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}
.qbar .res.err, .qbar .res.ok { opacity: 1; transform: none; transition: none; }
.qbar .res.err { color: #b3261e; }
.qbar .res.ok { color: var(--ok); font-weight: 600; }

.tabs, .acc-tabs { position: relative; display: flex; gap: 2px; width: fit-content; max-width: 100%; padding: 3px; border-radius: 999px; background: var(--fill); overflow-x: auto; scrollbar-width: none; margin-bottom: 20px; }
.tabs::-webkit-scrollbar, .acc-tabs::-webkit-scrollbar { display: none; }
.tabs .tab-thumb, .acc-tabs .tab-thumb { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.05); border-radius: 999px; }
.tab { flex: none; padding: 7px 17px; border-radius: 999px; font-weight: 500; font-size: 14px; color: rgba(28, 28, 30, 0.76); transition: color 180ms ease, transform 160ms var(--ease); }
.tab:active { transform: scale(0.96); }
.tab[aria-pressed="true"], .tab[aria-selected="true"] { color: var(--ink); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .tab:hover { color: var(--ink); } }
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
/* 8px of padding + 14px photo corner = 22px card corner */
.card {
  position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 8px 8px 10px;
  border-radius: var(--r-l); background: var(--surface); box-shadow: var(--surface-rim), var(--shadow-1);
}
.card::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; box-shadow: var(--shadow-2); opacity: 0; transition: opacity 200ms ease; }
.card > :not(.ph) { margin-inline: 4px; }
.card .ph { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-m); overflow: hidden; background: var(--mist); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 200ms var(--ease), opacity 360ms var(--ease); }
.card .ph a { position: absolute; inset: 0; z-index: 1; }
.fav { position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.84); box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(0, 0, 0, 0.14); display: grid; place-items: center; color: var(--ink); transition: transform 240ms var(--spring), color 160ms ease; }
.fav .ico { width: 19px; height: 19px; transition: fill 160ms ease; }
.fav:active { transform: scale(0.86); transition-duration: 90ms; }
.fav[aria-pressed="true"] { color: var(--orange-deep); }
.fav[aria-pressed="true"] svg { fill: currentColor; }
.tags { position: absolute; left: 8px; top: 8px; z-index: 2; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; pointer-events: none; }
.tg { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(28, 28, 30, 0.72); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.tg.o { background: rgba(200, 62, 8, 0.9); }
.tg.w { background: rgba(28, 28, 30, 0.86); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 3px rgba(0, 0, 0, 0.12); }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.price b { font-family: var(--f-head); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.price small { color: var(--grey); font-size: 13px; }
.card h3 { font-size: 14px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.rate { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--grey); }
.rate svg { width: 15px; height: 15px; fill: #f5a623; stroke: none; }
.rate b { color: var(--ink); font-weight: 600; }
.sw { display: flex; gap: 5px; }
.sw i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.tierhint { font-size: 12px; color: var(--ok); font-weight: 600; }
.card .buy { container-type: inline-size; margin-top: auto; display: flex; gap: 6px; align-items: center; padding-top: 2px; margin-inline: 0; }
.card .buy .btn { flex: 1; min-height: 42px; padding: 0 12px; font-size: 14px; min-width: 0; }
.lab-n { font-weight: 500; opacity: 0.8; }
@container (max-width: 216px) { .card .buy .lab .ico { display: none; } }
@container (max-width: 186px) { .card .buy .lab .ico { display: block; } .card .buy .lab-t { display: none; } }
.qv { width: 42px; height: 42px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; flex: none; transition: transform 160ms var(--ease), background-color 160ms ease; }
.qv:active { transform: scale(0.9); }
@media (hover: hover) and (pointer: fine) {
  .card:hover::after { opacity: 1; }
  .card:hover .ph img { transform: scale(1.02); }
  .qv:hover { background: var(--fill-hover); }
  .fav:hover { transform: scale(1.08); color: var(--orange-deep); }
}


/* ---------- Brands ---------- */
.brands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.brand {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-width: 0; min-height: 104px; padding: 16px; text-align: center;
  border-radius: var(--r-l); background: var(--surface); box-shadow: var(--surface-rim), var(--shadow-1);
}
.brand-name { font-family: var(--f-head); font-size: clamp(17px, 1.5vw, 21px); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }
.brand img { width: 100%; height: 56px; object-fit: contain; }
.brand p { color: var(--grey); font-size: 13px; line-height: 1.35; }
a.brand { transition: box-shadow 200ms ease, transform 160ms var(--ease); }
a.brand:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { a.brand:hover { box-shadow: var(--surface-rim), var(--shadow-2); } }
@media (max-width: 1024px) { .brands { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .brands { grid-template-columns: repeat(2, 1fr); gap: 10px; } .brand { min-height: 84px; padding: 12px; } }

/* ---------- Why / steps ---------- */
/* Apple's way: no boxes, no coloured tiles. A plain glyph, a strong line, a short sentence */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3.4vw, 48px) clamp(24px, 3vw, 44px); }
.why > div { display: grid; gap: 8px; align-content: start; }
.why .ic { display: block; color: var(--orange); margin-bottom: 4px; }
.why .ic .ico { width: 32px; height: 32px; stroke-width: 1.5; }
.why h3 { font-family: var(--f-head); font-size: clamp(18px, 1.5vw, 21px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.why p { color: rgba(0, 0, 0, 0.72); font-size: 15px; line-height: 1.45; text-wrap: pretty; }
.doc .ic {
  width: 52px; height: 52px; border-radius: 26%; color: #fff; display: grid; place-items: center;
  background: linear-gradient(180deg, #ff8d4f, #e24f10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 0 0 0.5px rgba(255, 255, 255, 0.2), 0 6px 14px rgba(40, 30, 20, 0.18);
}


/* ---------- Footer: Apple's own recipe. A flat strip, small text, plain columns ---------- */
.foot { background: #f5f5f7; color: rgba(0, 0, 0, 0.56); font-size: 12px; line-height: 1.34; padding-block: 18px 22px; }
.foot .wrap { max-width: var(--max); }
.foot-note { padding-bottom: 16px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.14); }
.foot-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 20px 26px; }
.foot h4 { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: rgba(0, 0, 0, 0.88); }
.foot li { margin-top: 8px; }
.foot li a { color: rgba(0, 0, 0, 0.72); }
.foot-more { padding-bottom: 12px; }
.foot-more a { color: var(--orange-text); text-decoration: underline; }
.foot-b { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; padding-top: 12px; padding-right: 76px; /* room for the WhatsApp button */ box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.14); }
@media (hover: hover) and (pointer: fine) { .foot li a:hover { color: rgba(0, 0, 0, 0.88); text-decoration: underline; } }
@media (max-width: 720px) {
  .foot { font-size: 13px; padding-bottom: calc(98px + env(safe-area-inset-bottom)); }
  .foot-nav { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .foot h4 { font-size: 13px; margin-bottom: 2px; }
  .foot li { margin-top: 0; min-height: 40px; display: flex; align-items: center; }
  .foot li a { display: flex; align-items: center; min-height: 40px; }
  .foot-b { flex-direction: column; }
}

/* ---------- Floating: WhatsApp, bottom nav ---------- */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(180deg, #38e27c, #1fbf5e); color: #06240f; font-weight: 700; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), var(--shadow-float); transition: transform 240ms var(--spring); }
.wa:active { transform: scale(0.96); transition-duration: 90ms; }
@media (hover: hover) and (pointer: fine) { .wa:hover { transform: scale(1.03); } }
.wa .ico { width: 26px; height: 26px; }
.bnav { display: none; }

/* ---------- Drawer / modal / toast ---------- */
/* exits are quicker than entrances: the interface answers immediately */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(30, 28, 34, 0.26); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity 160ms ease, visibility 0s linear 160ms; }
.scrim.on { opacity: 1; visibility: visible; transition: opacity 240ms var(--ease), visibility 0s; }
.drawer {
  position: fixed; top: 10px; right: 10px; bottom: 10px; width: min(460px, 100vw - 20px); z-index: 90; border-radius: var(--r-xl); overflow: hidden;
  background: var(--glass-bg-thick); box-shadow: var(--glass-rim), var(--shadow-float); display: flex; flex-direction: column;
  transform: translateX(calc(100% + 20px)); visibility: hidden;
  transition: transform 240ms var(--ease-drawer), visibility 0s linear 240ms;
}
.drawer.on { transform: none; visibility: visible; transition: transform 340ms var(--ease-drawer), visibility 0s; }
.drawer header { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 14px 18px; box-shadow: 0 0.5px 0 var(--line); }
.drawer h2 { font-family: var(--f-head); font-size: 16px; font-weight: 600; text-align: center; letter-spacing: -0.01em; }
/* macOS window controls: red closes, the other two are disabled, as on a Mac window that can't resize */
.lights { display: flex; align-items: center; gap: 8px; }
.light { position: relative; display: block; width: 13px; height: 13px; border-radius: 50%; flex: none; }
.light.off { background: rgba(120, 120, 128, 0.24); box-shadow: inset 0 0 0 0.5px rgba(60, 60, 67, 0.14); }
.x.light { display: grid; place-items: center; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(150, 30, 20, 0.5); color: #6e0f09; transition: transform 160ms var(--ease), background-color 120ms ease; }
.x.light::after { content: ''; position: absolute; inset: -16px; }
.x.light .ico { width: 9px; height: 9px; stroke-width: 3.4; }
.x.light:active { transform: scale(0.88); background: #e8473f; }
.modal .lights { position: absolute; left: 20px; top: 20px; z-index: 3; padding: 9px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.72); box-shadow: inset 0 1px 0 #fff, 0 2px 10px rgba(0, 0, 0, 0.14); }
.grip { display: none; }
.d-body { flex: 1; overflow: auto; padding: 4px 20px 16px; overscroll-behavior: contain; }
.d-foot { padding: 16px 20px 20px; box-shadow: 0 -0.5px 0 var(--line); display: grid; gap: 12px; }
.lw { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 220ms var(--ease), opacity 150ms ease; }
.lw.removing { grid-template-rows: 0fr; opacity: 0; pointer-events: none; }
.line { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 14px 0; min-height: 0; overflow: hidden; box-shadow: 0 0.5px 0 var(--line); }
.line img { width: 72px; height: 90px; border-radius: 14px; object-fit: cover; }
.line h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.line .meta { color: var(--grey); font-size: 13px; }
.line .r { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }
.line .r b, .sumrow span, .sumrow b { display: inline-block; }
.step { display: inline-flex; align-items: center; background: var(--fill); border-radius: 999px; }
.step button { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; transition: transform 140ms var(--ease), background-color 140ms ease; }
.step button:active { transform: scale(0.88); background: var(--fill-hover); }
.step input { width: 52px; text-align: center; border: 0; background: none; font-weight: 600; height: 36px; -moz-appearance: textfield; }
.step input:focus { outline: none; }
.step input::-webkit-outer-spin-button, .step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rm { color: var(--grey-2); font-size: 13px; text-decoration: underline; transition: color 140ms ease; }
@media (hover: hover) and (pointer: fine) { .rm:hover { color: var(--ink); } .step button:hover { background: var(--fill); } }
.sumrow { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sumrow.total { font-family: var(--f-head); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.sumrow .g { color: var(--ok); font-weight: 600; }
.empty { text-align: center; padding: 56px 16px; color: var(--grey); display: grid; gap: 16px; justify-items: center; }
.nudge { background: var(--orange-soft); color: #8a3410; border-radius: var(--r-s); padding: 9px 13px; font-size: 13px; font-weight: 500; }

.modal {
  position: fixed; z-index: 95; left: 50%; top: 50%; width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; overscroll-behavior: contain;
  transform: translate(-50%, -49%) scale(0.97); opacity: 0; visibility: hidden;
  background: var(--glass-bg-thick); border-radius: var(--r-xl); box-shadow: var(--glass-rim), var(--shadow-float);
  transition: opacity 150ms ease, transform 150ms ease, visibility 0s linear 150ms;
}
.modal.on { opacity: 1; visibility: visible; transform: translate(-50%, -50%); transition: opacity 240ms var(--ease), transform 320ms var(--spring), visibility 0s; }
/* 10px of padding + 18px photo corner = 28px window corner */
.qv-grid { display: grid; grid-template-columns: 1fr 1.1fr; padding: 10px; }
.qv-img { background: var(--mist); min-height: 420px; position: relative; border-radius: 18px; overflow: hidden; }
.qv-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qv-b { padding: clamp(18px, 2.4vw, 34px); display: grid; gap: 18px; align-content: start; }
.qv-b h2 { font-family: var(--f-head); font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.qv-b .sku { color: var(--grey); font-size: 13px; }
.lbl { font-weight: 600; font-size: 14px; margin-bottom: 8px; display: block; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { position: relative; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); transition: transform 200ms var(--spring), outline-color 160ms ease; outline: 2.5px solid transparent; outline-offset: 2px; }
.swatches button:active { transform: scale(0.88); }
.swatches button[aria-pressed="true"] { outline-color: var(--orange-deep); }
.tierbox { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tierbox div { padding: 11px 12px; border-radius: var(--r-m); background: var(--mist); font-size: 13px; transition: background-color 220ms ease, color 220ms ease; }
.tierbox div b { display: block; font-family: var(--f-head); font-size: 16px; margin-top: 2px; letter-spacing: -0.02em; }
.tierbox div.on { background: var(--ink); color: #fff; }
.calc { display: grid; gap: 10px; padding: 14px; border-radius: var(--r-l); background: var(--mist); }
.calc .sumrow.total { color: var(--ink); }
.qrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast {
  color: var(--ink); background: var(--glass-bg-thick); border-radius: 999px; padding: 11px 20px; font-weight: 500; font-size: 14px; display: flex; gap: 10px; align-items: center;
  box-shadow: var(--glass-rim), var(--shadow-float);
  transition: opacity 340ms var(--ease), transform 420ms var(--spring);
}
@starting-style { .toast { opacity: 0; transform: translateY(14px) scale(0.96); } }
.toast.out { opacity: 0; transform: translateY(8px) scale(0.98); transition: opacity 180ms ease, transform 180ms ease; }

/* flying product thumbnail: runs from the card to the bag */
.ghost { position: fixed; z-index: 130; border-radius: 14px; object-fit: cover; pointer-events: none; box-shadow: var(--shadow-2); }

/* city popup */
.city {
  position: fixed; z-index: 45; right: max(calc(var(--gut) + 8px), calc((100vw - var(--max)) / 2 + var(--gut) + 8px)); top: 128px; width: 300px; color: var(--ink);
  background: var(--glass-bg-thick); border-radius: var(--r-l); padding: 18px; box-shadow: var(--glass-rim), var(--shadow-float); text-align: center;
  visibility: hidden; opacity: 0; transform: translateY(-6px) scale(0.97); transform-origin: top right;
  transition: opacity 140ms ease, transform 140ms ease, visibility 0s linear 140ms;
}
.city.on { visibility: visible; opacity: 1; transform: none; transition: opacity 240ms var(--ease), transform 320ms var(--spring), visibility 0s; }
.city p { color: var(--grey); font-size: 14px; }
.city b { font-family: var(--f-head); font-size: 20px; font-weight: 600; display: block; margin: 4px 0 14px; }
.city .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.city .btn-sm { padding: 0 10px; }

/* ---------- Catalog ---------- */
.crumbs { display: flex; gap: 8px; color: var(--grey); font-size: 14px; margin-bottom: 12px; flex-wrap: wrap; padding-top: 12px; }
@media (hover: hover) and (pointer: fine) { .crumbs a { transition: color 140ms ease; } .crumbs a:hover { color: var(--orange-text); } }
.cat-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.cat-top .h1 { font-family: var(--f-head); font-weight: 700; font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.sort { display: flex; gap: 10px; align-items: center; }
.sort select {
  -webkit-appearance: none; appearance: none; height: 40px; border-radius: 999px; border: 0; padding: 0 38px 0 16px; font-weight: 500; font-size: 14px; cursor: pointer;
  background: var(--surface) right 13px center / 12px no-repeat url("/local/templates/astopt/images/select-arrow.svg");
  box-shadow: var(--surface-rim), var(--shadow-1); transition: box-shadow 180ms ease;
}
.cat-wrap { display: grid; grid-template-columns: 272px 1fr; gap: 20px; align-items: start; }
.filters {
  position: sticky; top: 86px; display: grid; gap: 22px; padding: 20px; max-height: calc(100vh - 100px); overflow: auto; scrollbar-width: thin;
  border-radius: var(--r-l); background: var(--surface); box-shadow: var(--surface-rim), var(--shadow-1);
}
.fgroup h3 { font-family: var(--f-head); font-size: 15px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.chk { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 15px; }
.chk input {
  -webkit-appearance: none; appearance: none; position: relative; width: 20px; height: 20px; margin: 0; flex: none; cursor: pointer; border-radius: 6px;
  background: rgba(255, 255, 255, 0.9); box-shadow: inset 0 0 0 1px rgba(60, 60, 67, 0.28), 0 1px 1px rgba(0, 0, 0, 0.05);
  transition: background-color 150ms ease, box-shadow 150ms ease, transform 160ms var(--ease);
}
.chk input::after {
  content: ''; position: absolute; inset: 3px; background: #fff; clip-path: inset(0 100% 0 0); transition: clip-path 200ms var(--ease);
  -webkit-mask: center / contain no-repeat url("/local/templates/astopt/images/check.svg");
  mask: center / contain no-repeat url("/local/templates/astopt/images/check.svg");
}
.chk input:checked { background: linear-gradient(180deg, #c94612, #b33a08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2); }
.chk input:checked::after { clip-path: inset(0 0 0 0); }
.chk input:active { transform: scale(0.9); }
.chk em { margin-left: auto; font-style: normal; color: var(--grey-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.pr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pr input { height: 40px; border-radius: 999px; border: 0; background: var(--fill); padding: 0 14px; min-width: 0; width: 100%; font-size: 14px; box-shadow: inset 0 0 0 1.5px transparent; transition: background-color 180ms ease, box-shadow 180ms ease; }
.pr input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--orange), 0 0 0 4px rgba(249, 95, 31, 0.16); }
.colors { display: flex; flex-wrap: wrap; gap: 9px; }
.colors button { position: relative; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); outline: 2.5px solid transparent; outline-offset: 2px; transition: outline-color 160ms ease, transform 220ms var(--spring); }
.colors button:active { transform: scale(0.86); }
.colors button[aria-pressed="true"] { outline-color: var(--orange-deep); }
@media (hover: hover) and (pointer: fine) { .colors button:hover, .swatches button:hover { transform: scale(1.1); } }
.cat-grid { grid-template-columns: repeat(4, 1fr); }
.fbtn { display: none; }
.nores { padding: 64px 0; text-align: center; color: var(--grey); display: grid; gap: 14px; justify-items: center; }

/* ---------- Account ---------- */
.acc-hero { background: linear-gradient(150deg, #2f2f33, #18181b 70%); color: #fff; border-radius: var(--r-xl); padding: clamp(24px, 3vw, 44px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, 0.12); margin-top: 12px; }
.acc-hero h1 { font-family: var(--f-head); font-size: clamp(24px, 3vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.acc-hero p { color: #c3c7cc; margin-top: 8px; }
.acc-tabs { margin: 24px 0 20px; }
.panel { display: none; }
.panel.on { display: block; transition: opacity 240ms var(--ease), transform 240ms var(--ease); }
@starting-style { .panel.on { opacity: 0; transform: translateY(6px); } }
.order { background: var(--surface); box-shadow: var(--surface-rim), var(--shadow-1); border-radius: var(--r-l); padding: clamp(18px, 2vw, 28px); margin-bottom: 14px; display: grid; gap: 18px; }
.order-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-h h3 { font-family: var(--f-head); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.order-h span { color: var(--grey); font-size: 14px; }
.tl { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.tl li { position: relative; font-size: 13px; font-weight: 500; color: var(--grey-2); padding-top: 18px; }
.tl li::before { content: ''; position: absolute; left: 0; top: 0; right: 4px; height: 6px; border-radius: 3px; background: var(--fill); }
.tl li.done { color: var(--ink); }
.tl li.done::before { background: linear-gradient(90deg, #ff8a52, var(--orange-deep)); }
.tl li.now { color: var(--orange-text); font-weight: 700; }
.order-items { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.order-items img { width: 56px; height: 56px; border-radius: 22%; object-fit: cover; }
.order-items span { color: var(--grey); font-size: 14px; margin-left: 6px; }
.order-f { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-f b { font-family: var(--f-head); font-size: 20px; letter-spacing: -0.02em; }
.docs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.doc { display: flex; align-items: center; gap: 14px; background: var(--surface); box-shadow: var(--surface-rim), var(--shadow-1); border-radius: var(--r-l); padding: 14px 16px; }
.doc .ic { width: 46px; height: 46px; flex: none; background: linear-gradient(180deg, #6d6d72, #3a3a3c); }
.doc.cert .ic { background: linear-gradient(180deg, #ff8d4f, #e24f10); }
.doc div { min-width: 0; flex: 1; }
.doc b { display: block; font-size: 15px; }
.doc span:not(.ic) { color: var(--grey); font-size: 13px; }
.profile { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.profile div { background: var(--surface); box-shadow: var(--surface-rim), var(--shadow-1); border-radius: var(--r-l); padding: 16px 20px; }
.profile span { display: block; color: var(--grey); font-size: 13px; }
.profile b { font-size: 16px; }

/* Keyboard-driven changes happen at once */
html.no-anim .modal, html.no-anim .drawer, html.no-anim .scrim, html.no-anim .filters, html.no-anim .mega, html.no-anim .panel.on, html.no-anim .tab-thumb, html.no-anim .tierbox div, html.no-anim .tiers div { transition: none !important; }

/* ---------- Reveal on scroll ---------- */
/* (no reveal-on-scroll: content is always visible; it is a buying tool people come back to) */

/* ---------- View transitions ---------- */
@view-transition { navigation: auto; }
/* the page stays clickable while a transition plays */
::view-transition { pointer-events: none; }
html.vt-head .head, html[data-vt="grid"] .head { view-transition-name: head; }
/* a snapshot can't carry a live blur, so the group brings its own */
::view-transition-group(head) {
  z-index: 10; border-radius: var(--r-l); overflow: hidden;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  animation-duration: 340ms; animation-timing-function: var(--ease-drawer);
}
/* between pages: content melts across, wallpaper and toolbar hold still */
::view-transition-old(root) { animation: vt-out 140ms ease-out both; }
::view-transition-new(root) { animation: vt-in 200ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
/* language / currency change: a plain soft crossfade */
html[data-vt="swap"]::view-transition-old(root) { animation: vt-fade-out 200ms ease both; }
html[data-vt="swap"]::view-transition-new(root) { animation: vt-fade-in 200ms ease both; }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } }
/* product cards glide to their new places */
html[data-vt="grid"]::view-transition-group(*) { animation-duration: 240ms; animation-timing-function: var(--ease-drawer); }
html[data-vt="grid"]::view-transition-old(*), html[data-vt="grid"]::view-transition-new(*) { animation-duration: 160ms; }
/* the controls just clicked stay live and solid, with no ghost of their old state */
html[data-vt="grid"] .lead-bar { view-transition-name: lead-bar; }
@media (min-width: 1025px) { html[data-vt="grid"] .filters { view-transition-name: filters; } }
::view-transition-group(filters), ::view-transition-group(lead-bar) { animation: none; }
::view-transition-old(filters), ::view-transition-old(lead-bar) { display: none; }
::view-transition-new(filters), ::view-transition-new(lead-bar) { animation: none; }
html[data-vt="grid"]::view-transition-old(root) { animation: vt-fade-out 160ms ease both; }
html[data-vt="grid"]::view-transition-new(root) { animation: vt-fade-in 160ms ease both; }
/* quick view: the card photo grows into the window */
html[data-vt^="qv"] .scrim, html[data-vt^="qv"] .modal { transition: none !important; }
html[data-vt="qv"]::view-transition-old(root) { animation: vt-fade-out 260ms var(--ease) both; }
html[data-vt="qv"]::view-transition-new(root) { animation: vt-fade-in 260ms var(--ease) both; }
html[data-vt="qv-out"]::view-transition-old(root) { animation: vt-fade-out 180ms ease both; }
html[data-vt="qv-out"]::view-transition-new(root) { animation: vt-fade-in 180ms ease both; }
::view-transition-group(qv-photo) { z-index: 20; overflow: hidden; border-radius: 16px; animation-duration: 340ms; animation-timing-function: var(--ease-drawer); }
html[data-vt="qv-out"]::view-transition-group(qv-photo) { animation-duration: 240ms; }
::view-transition-image-pair(qv-photo) { overflow: hidden; border-radius: 16px; }
::view-transition-old(qv-photo), ::view-transition-new(qv-photo) { width: 100%; height: 100%; object-fit: cover; overflow: clip; animation-duration: 200ms; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .strip nav a:nth-child(n+4) { display: none; }
}
@media (max-width: 1024px) {
  .mega { display: none; }
  .tool .t { display: none; }
  .tool { min-width: 44px; padding: 10px; }
  .tool .badge { top: 0; right: 0; }
  .hero { --hero-peek: 40px; }
  .arrow { display: none; }
  .circles { grid-template-columns: repeat(4, 1fr); row-gap: 20px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .cat-wrap { grid-template-columns: 1fr; }
  .filters {
    position: fixed; z-index: 95; left: 8px; right: 8px; bottom: 8px; top: auto; max-height: 86vh; border-radius: var(--r-xl); padding: 20px;
    background: var(--glass-bg-thick); box-shadow: var(--glass-rim), var(--shadow-float);
    transform: translateY(calc(100% + 16px)); visibility: hidden;
    transition: transform 240ms var(--ease-drawer), visibility 0s linear 240ms;
  }
  .filters.on { transform: none; visibility: visible; transition: transform 340ms var(--ease-drawer), visibility 0s; }
  .fbtn { display: inline-flex; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .qv-grid { grid-template-columns: 1fr; }
  .qv-img { min-height: 300px; }
}
@media (max-width: 720px) {
  :root { --glass-blur: saturate(170%) blur(16px); --glass-bg: rgba(255, 255, 255, 0.62); }
  @media (prefers-reduced-transparency: reduce) { :root { --glass-blur: none; --glass-bg: rgba(250, 249, 248, 0.98); } }
  html { scroll-padding-top: 16px; }
  .strip nav { display: none; }
  .strip .wrap { justify-content: flex-end; min-height: 40px; }
  .head { position: relative; top: 0; } /* two rows here: too tall to pin, the bottom nav is always in reach */
  .head .row { flex-wrap: wrap; gap: 10px; min-height: 0; padding-block: 10px; }
  .head .wrap { padding-inline: 10px; }
  .logo svg { height: 34px; }
  .catbtn { order: 3; height: 42px; padding: 0 16px; }
  .search { order: 4; flex: 1 1 0; }
  .tools { margin-left: auto; }
  .tools .tool.hide-m { display: none; }
  .catnav { border-radius: var(--r-l); }
  #stage { padding-block: 10px 4px; }
  .hero { --hero-peek: 20px; --hero-gap: 8px; --hero-h: 330px; }
  .hero-view { -webkit-mask-image: none; mask-image: none; }
  .slide { border-radius: var(--r-l); }
  .slide::before { background: linear-gradient(0deg, rgba(12, 12, 14, 0.88) 0%, rgba(12, 12, 14, 0.66) 44%, rgba(12, 12, 14, 0) 76%); }
  .slide.orange::before { background: linear-gradient(0deg, rgba(196, 62, 10, 0.98) 0%, rgba(214, 71, 12, 0.88) 46%, rgba(249, 95, 31, 0) 78%); }
  .slide-t { max-width: 100%; justify-content: flex-end; padding: 18px; }
  .slide .chip { right: auto; left: 12px; top: 12px; bottom: auto; }
  /* phones: one row that scrolls sideways, no lone icon on the last line */
  .circles { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gut)); padding: 4px var(--gut) 8px; scroll-snap-type: x proximity; scroll-padding-inline: var(--gut); }
  .circles::-webkit-scrollbar { display: none; }
  .circle { flex: 0 0 96px; min-width: 0; font-size: 13px; scroll-snap-align: start; hyphens: auto; overflow-wrap: anywhere; }
  .grid, .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { padding: 6px 6px 8px; border-radius: 20px; }
  .card .ph { border-radius: 14px; }
  .price b { font-size: 16px; }
  .card .buy .btn { padding: 0 8px; font-size: 13px; }
  .card .buy .btn .ico { width: 18px; height: 18px; }
  .qv { width: 38px; height: 38px; }
  .why { gap: 24px 16px; }
  .why .ic .ico { width: 28px; height: 28px; }
  .why h3 { font-size: 16px; }
  .why p { font-size: 13.5px; line-height: 1.4; }
  .wa { bottom: 92px; right: 12px; height: 50px; width: 50px; }
  .bnav {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 5px; border-radius: 28px; background: var(--glass-bg); box-shadow: var(--glass-rim), var(--shadow-float);
  }
  .bnav .tab-thumb { background: var(--fill); border-radius: 23px; }
  .bnav a { display: grid; justify-items: center; gap: 1px; padding: 5px 0; font-size: 11px; font-weight: 500; color: rgba(28, 28, 30, 0.76); border-radius: 23px; min-height: 48px; transition: color 160ms ease, transform 140ms var(--ease); }
  .bnav a:active { transform: scale(0.94); }
  .bnav a.on { color: var(--orange-text); }
  .bnav .badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 16px; height: 16px; border-radius: 8px; background: var(--orange-deep); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
  .bnav .badge:empty { display: none; }
  .toasts { bottom: 96px; }
  .city { left: 16px; right: 16px; width: auto; top: 112px; transform-origin: top center; }
  .drawer { top: 8px; right: 8px; bottom: 8px; left: 8px; width: auto; }
  /* window controls become a single round button on a phone */
  .light.off { display: none; }
  .x.light { width: 36px; height: 36px; background: var(--fill); color: var(--ink); box-shadow: none; }
  .x.light::after { inset: -4px; }
  .x.light .ico { width: 15px; height: 15px; stroke-width: 2.4; opacity: 1; }
  .x.light:active { background: var(--fill-hover); }
  .drawer header { grid-template-columns: 44px 1fr 44px; padding: 10px 12px; }
  .modal .lights { left: auto; right: 16px; top: 22px; padding: 0; background: none; box-shadow: none; }
  .modal .x.light { background: rgba(255, 255, 255, 0.86); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16); }
  .modal { top: auto; bottom: 0; left: 0; width: 100%; max-height: 92vh; border-radius: var(--r-xl) var(--r-xl) 0 0; transform: translateY(100%); opacity: 1; transition: transform 240ms var(--ease-drawer), visibility 0s linear 240ms; }
  .modal.on { transform: none; transition: transform 340ms var(--ease-drawer), visibility 0s; }
  /* swipe-to-dismiss handle */
  .grip { display: block; position: sticky; top: 0; z-index: 4; height: 22px; margin-bottom: -12px; touch-action: none; cursor: grab; }
  .grip::before { content: ''; position: absolute; left: 50%; top: 7px; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: rgba(60, 60, 67, 0.32); }
  .filters .grip { margin: -14px 0 -10px; }
  .tl { grid-template-columns: 1fr; gap: 10px; }
  .tl li { padding: 0 0 0 20px; }
  .tl li::before { right: auto; top: 6px; width: 10px; height: 10px; border-radius: 50%; }
  .docs, .profile { grid-template-columns: 1fr; }
  .doc { flex-wrap: wrap; }
  .acc-hero { grid-template-columns: 1fr; }
  .cat-top { align-items: flex-start; }
  .sort { min-width: 0; }
  .sort select { max-width: 100%; text-overflow: ellipsis; }
  .tierbox { grid-template-columns: 1fr; }
  .tierbox div { display: flex; justify-content: space-between; align-items: center; }
  .tierbox div b { margin: 0; }
}

/* Phones skip the most expensive effects */
@media (max-width: 720px) {
  .scrim { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(30, 28, 34, 0.42); }
  ::view-transition-old(root) { animation: vt-fade-out 240ms var(--ease) both; }
  ::view-transition-new(root) { animation: vt-fade-in 240ms var(--ease) both; }
  /* downward drags on the photo dismiss the sheet; upward drags still scroll it */
  .qv-img { touch-action: pan-y; }
  .modal.at-top .qv-img { touch-action: pan-up; cursor: grab; }
}

/* Touch screens: controls keep their look, but reach about 44px to a finger */
@media (max-width: 720px), (pointer: coarse) {
  .seg button::after, .fav::after, .search button.go::after, .catnav a::after, .dots button::after, .step button::after, .swatches button::after, .colors button::after { content: ''; position: absolute; }
  .seg button { min-width: 44px; }
  .seg button::after { inset: -10px 0; }
  .fav::after, .search button.go::after { inset: -5px; }
  .catnav a::after { inset: -5px 0; }
  .dots button { width: 30px; }
  .dots button::before { left: 11px; right: 11px; }
  .dots button[aria-current="true"] { width: 48px; }
  .dots button::after { inset: -13px -3px; }
  .step button::after { inset: -4px; }
  .swatches button::after { inset: -6px; }
  .colors button { width: 34px; height: 34px; }
  .colors button::after { inset: -5px; }
  .chk { min-height: 44px; }
  .tab, .opt, .tool { min-height: 44px; }
  .card .buy .btn { min-height: 44px; }
  .qv { width: 44px; height: 44px; }
  .qbar input, .qbar .btn { height: 44px; min-height: 44px; }
}
@media (max-width: 720px) {
  .lead-bar { display: grid; grid-template-columns: minmax(0, 1fr); }
  .qbar { width: 100%; }
  #qsku { flex: 1; width: auto; }
  .qbar .res { left: 0; right: 0; width: auto; }
}

/* Reduced motion: nothing travels, but colour and opacity changes still confirm actions */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-property: opacity, color, background-color, border-color, box-shadow !important;
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
  }
  .rv { opacity: 1; transform: none; }
  .slide, .slide img.main { transform: none; }
  .slide-t > * { opacity: 1; transform: none; }
}

/* ============================================================
   Bitrix template additions (astopt.ru)
   New page types the prototype did not have, and real-data cases.
   ============================================================ */
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; }
.skip:focus { top: 12px; }
.muted { color: var(--grey); }
.strip-phone { font-weight: 600; color: var(--ink); }
/* segmented controls also hold links (language, currency) and radio labels (buyer type) */
.seg a, .seg label {
  position: relative; display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: rgba(28, 28, 30, 0.68); cursor: pointer; transition: color 180ms ease;
}
.seg a[aria-current="true"], .seg label:has(input:checked) { color: var(--ink); }
.seg label input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 1px; }
.seg-lg { margin-bottom: 18px; }
.seg-lg label { height: 36px; padding: 0 18px; font-size: 14px; }

/* mega menu: every section's links are in the HTML; JS only shows the hovered one */
.mega-m-wrap { min-width: 0; }
.mega-m[hidden] { display: none; }
.mega-m a.mega-all { color: var(--orange-text); font-weight: 600; grid-column: 1 / -1; }
.circles.c7 { grid-template-columns: repeat(7, 1fr); }
@media (max-width: 1024px) { .circles.c7 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- product card with real 1C data ---------- */
.card .ph img { object-fit: contain; background: #fff; }
.card h3 a { color: inherit; }
.card .meta { color: var(--grey); font-size: 12px; margin-top: -4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stock { font-size: 12px; color: var(--ok); font-weight: 600; }
.stock.ok { font-size: 14px; }
.stock.no { color: var(--grey); }
.nophoto { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; color: rgba(60, 60, 67, 0.28); text-align: center; padding: 12px; background: linear-gradient(160deg, #f7f4f1, #eceef2); }
.nophoto span { font-size: 12px; font-weight: 500; color: var(--grey); }
.nophoto-mark { width: 44px; height: 42px; }
.nophoto.sm { position: relative; width: 72px; height: 90px; border-radius: 14px; }
.nophoto.sm .nophoto-mark { width: 28px; }
@media (hover: hover) and (pointer: fine) { .card h3 a:hover { color: var(--orange-text); } }

/* ---------- home: about line ---------- */
.about { margin-top: clamp(32px, 4vw, 52px); padding: clamp(20px, 3vw, 32px); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--surface-rim), var(--shadow-1); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; align-items: center; }
.about-t { display: grid; gap: 10px; max-width: 760px; }
.about-a { display: grid; gap: 8px; min-width: 260px; }
.about-a .btn { justify-content: center; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about-a { min-width: 0; } }
.about h3 { font-family: var(--f-head); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.about p { color: rgba(0, 0, 0, 0.72); }

/* ---------- catalog index and section ---------- */
.sec-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sec-tile { border-radius: var(--r-l); background: var(--surface); box-shadow: var(--surface-rim), var(--shadow-1); padding: 14px; display: grid; gap: 12px; align-content: start; }
.sec-tile-h { display: flex; align-items: center; gap: 14px; }
.sec-tile-h .ph { width: 64px; height: 64px; flex: none; border-radius: 28%; overflow: hidden; }
.sec-tile-h img { width: 100%; height: 100%; object-fit: cover; }
.sec-tile h2 { font-family: var(--f-head); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.sec-tile ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }
.sec-tile li a { display: block; padding: 5px 0; font-size: 14px; color: var(--grey); }
.sec-tile li a.all { color: var(--orange-text); font-weight: 600; }
/* sub-sections inside a section: one row of chips, so the products start high on the page */
.sub-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(18px, 2.4vw, 28px); }
.sub-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 16px; min-height: 40px; border-radius: 999px; background: var(--surface); box-shadow: var(--surface-rim), var(--shadow-1); font-size: 14px; font-weight: 500; white-space: nowrap; transition: box-shadow 160ms ease, transform 140ms var(--ease); }
.sub-chip:has(.ph) { padding-left: 4px; }
.sub-chip .ph { width: 32px; height: 32px; flex: none; border-radius: 50%; overflow: hidden; background: var(--base); }
.sub-chip img { width: 100%; height: 100%; object-fit: cover; }
.sub-chip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .sec-tile li a:hover, .sec-tile-h:hover h2 { color: var(--orange-text); }
  .sub-chip:hover { box-shadow: var(--surface-rim), var(--shadow-2); }
}
.count { color: var(--grey); margin-top: 8px; }
.count b { color: var(--ink); }

/* filter: real form fields */
.fgroup { border: 0; margin: 0; padding: 0; min-width: 0; }
.fgroup legend { font-family: var(--f-head); font-size: 15px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; padding: 0; }
.ffrm { display: grid; gap: 22px; }
.factions { display: grid; gap: 8px; }
/* sheet title and close button: only when the filter is a bottom sheet (≤1024px) */
.fhead { display: none; }
.fx { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--ink); transition: transform 140ms var(--ease), background-color 140ms ease; }
.fx .ico { width: 15px; height: 15px; stroke-width: 2.4; }
.fx:active { transform: scale(0.9); background: var(--fill-hover); }
/* chosen filters above the grid; each chip removes its own value */
#results { scroll-margin-top: 92px; min-width: 0; }
.fact { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px 0 14px; border-radius: 999px; background: var(--orange-soft); color: #8a3410; font-size: 13px; font-weight: 600; transition: background-color 140ms ease, transform 140ms var(--ease); }
.fchip .ico { width: 13px; height: 13px; stroke-width: 2.6; opacity: 0.8; }
.fchip:active { transform: scale(0.96); }
.fchip-all { background: none; color: var(--grey); padding: 0 8px; text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .fchip:hover { background: rgba(249, 95, 31, 0.18); } .fchip-all:hover { background: none; color: var(--ink); } .fx:hover { background: var(--fill-hover); } }
@media (max-width: 1024px) {
  .fhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: -6px; }
  .fhead h2 { font-family: var(--f-head); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
  .filters .factions { padding-bottom: calc(16px + env(safe-area-inset-bottom)); grid-template-columns: 1fr auto; }
}
/* кнопки «Показать / Сбросить» всегда видны (26.11.2026: на компьютере были только после прокрутки): прилипают к низу */
.filters .factions { position: sticky; bottom: -20px; z-index: 3; margin: 0 -20px -20px; padding: 12px 20px 16px; background: var(--glass-bg-thick, rgba(255, 255, 255, 0.92)); box-shadow: 0 -1px 0 var(--line); border-radius: 0 0 var(--r-l) var(--r-l); }
/* компьютер: панель без своей прокрутки (её низ с кнопками был ниже края окна), кнопки прилипают к низу окна, пока панель видна */
@media (min-width: 1025px) {
  .filters { position: relative; top: auto; max-height: none; overflow: visible; }
  .filters .factions { bottom: 0; -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
}
.factions .btn-ghost { color: var(--ink); }

/* pagination */
.pager { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 28px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 10px; border-radius: 999px; display: grid; place-items: center; font-weight: 600; font-size: 15px; color: rgba(28, 28, 30, 0.76); }
.pager a { transition: background-color 160ms ease, transform 160ms var(--ease); }
.pager a:active { transform: scale(0.94); }
.pager a[aria-current="page"] { background: var(--ink); color: #fff; }
.pager a[aria-disabled="true"] { opacity: 0.35; pointer-events: none; }
.pager .ico { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .pager a:not([aria-current]):hover { background: var(--fill); color: var(--ink); } }

/* ---------- product page ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; margin-top: 8px; }
.pd-gal { display: grid; grid-template-columns: 76px 1fr; gap: 12px; position: sticky; top: 96px; }
.pd-main { grid-column: 2; grid-row: 1; aspect-ratio: 1; border-radius: var(--r-xl); overflow: hidden; background: #fff; box-shadow: var(--surface-rim), var(--shadow-1); }
.pd-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs { grid-column: 1; grid-row: 1; display: grid; gap: 8px; align-content: start; }
.pd-thumbs button { width: 76px; height: 76px; border-radius: var(--r-m); overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); outline: 2.5px solid transparent; outline-offset: 2px; transition: outline-color 160ms ease; }
.pd-thumbs button[aria-current="true"] { outline-color: var(--orange-deep); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd-b { display: grid; gap: 18px; align-content: start; }
.pd-b h1 { font-family: var(--f-head); font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; letter-spacing: -0.026em; line-height: 1.12; text-wrap: balance; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--grey); font-size: 14px; }
.pd-meta b { color: var(--ink); }
.pd-buy { display: grid; gap: 12px; padding: 18px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--surface-rim), var(--shadow-1); }
.pd-price { display: flex; align-items: baseline; gap: 8px; }
.pd-price b { font-family: var(--f-head); font-size: 32px; font-weight: 700; letter-spacing: -0.03em; }
.pd-price small { color: var(--grey); font-size: 15px; }
.pd-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pd-row .btn-orange { flex: 1; min-width: 180px; min-height: 48px; }
.fav.fav-lg { position: static; width: 48px; height: 48px; background: var(--fill); box-shadow: none; }
.fav.fav-lg::after { inset: 0; } /* already 48px: no extra touch area that could stick out of the page */
/* size table: every size and colour of the model, bought in one click */
.pd-mx { gap: 14px; }
.mx-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 2px; }
.mx-h .lbl { margin: 0; }
.mx-fill { font-size: 13px; font-weight: 600; color: var(--orange-text); padding: 6px 2px; border-radius: 6px; white-space: nowrap; }
.mx { width: 100%; border-collapse: collapse; font-size: 14px; }
.mx thead th { font-size: 12px; font-weight: 500; color: var(--grey); text-align: left; padding: 0 10px 6px; }
.mx thead th:nth-child(2) { text-align: right; }
.mx tbody tr { border-top: 1px solid var(--line); transition: background-color 160ms ease; }
.mx tbody th, .mx td { padding: 9px 10px; vertical-align: middle; text-align: left; font-weight: 400; }
.mx tbody th b { font-weight: 600; transition: color 140ms ease; }
.mx tbody th a { color: inherit; }
.mx-c { display: block; font-size: 13px; color: var(--grey); }
.mx-here { display: inline-block; margin-top: 3px; font-size: 11px; font-weight: 600; color: var(--orange-text); }
.mx td:nth-child(2) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mx td:last-child { text-align: right; width: 1%; padding-right: 0; }
.mx-p { display: block; font-weight: 600; }
.mx-st { color: var(--ok); font-weight: 600; }
.mx td.mx-none { color: var(--grey); font-size: 13px; font-weight: 500; text-align: right; padding-right: 10px; }
.mx tr.is-cur { background: var(--orange-soft); }
.mx tr.is-cur th { box-shadow: inset 3px 0 0 var(--orange); }
.mx tr.has-qty:not(.is-cur) { background: rgba(21, 115, 68, 0.06); }
.mx tr.is-out th b, .mx tr.is-out .mx-c { color: var(--grey); }
.mx-step button { width: 32px; height: 32px; }
.mx-step input { width: 40px; height: 32px; }
.mx-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.mx-sum b { font-family: var(--f-head); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.btn[aria-disabled="true"] { opacity: 0.45; }
@media (hover: hover) and (pointer: fine) {
  .mx-fill:hover { text-decoration: underline; text-underline-offset: 3px; }
  .mx tbody th a:hover b { color: var(--orange-text); }
}
@media (max-width: 760px) { .mx tbody th, .mx td { padding: 9px 6px; } .mx thead th { padding: 0 6px 6px; } }

/* order by article (/quick-order/): form, one size table per model, the total sticks to the bottom */
.qo { display: grid; gap: 20px; max-width: 860px; }
.qo-lead { color: var(--grey); font-size: 15px; max-width: 62ch; }
.qo-f { display: grid; gap: 8px; }
.qo-f .lbl { margin: 0; }
.qo-row { display: flex; gap: 10px; align-items: stretch; }
.qo-row textarea { flex: 1; min-width: 0; min-height: 52px; resize: vertical; padding: 14px 16px; border: 0; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--surface-rim), var(--shadow-1); font-size: 16px; line-height: 1.4; text-transform: uppercase; transition: box-shadow 160ms ease; }
.qo-row textarea::placeholder { text-transform: none; color: var(--grey); }
.qo-row textarea:focus { outline: none; box-shadow: 0 0 0 2px var(--orange-deep), var(--shadow-1); }
.qo-row .btn { flex: none; min-height: 52px; }
.qo-nf { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r-m); background: var(--orange-soft); color: #8a3410; font-size: 14px; }
.qo-sim { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.qo-res { display: grid; gap: 16px; padding: 18px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--surface-rim), var(--shadow-1); }
.qo-res .mx-h { margin: 0; }
.qo-m { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.qo-mh { display: flex; gap: 12px; align-items: center; }
.qo-ph { width: 56px; height: 56px; flex: none; border-radius: 12px; overflow: hidden; background: #fff; display: grid; place-items: center; color: var(--grey); box-shadow: var(--surface-rim); }
.qo-ph img { width: 100%; height: 100%; object-fit: contain; }
.qo-ph .nophoto-mark { width: 24px; height: 22px; opacity: 0.35; }
.qo-mh h3 { font-size: 15px; font-weight: 600; line-height: 1.3; }
.qo-mh span { font-size: 13px; color: var(--grey); }
.qo-mh .qo-pr { font-style: normal; color: var(--ink); font-weight: 600; margin-left: 10px; white-space: nowrap; }
.qo-foot { position: sticky; bottom: 12px; z-index: 5; display: grid; gap: 12px; margin: 0 -8px -8px; padding: 14px 16px; border-radius: var(--r-m); background: var(--glass-bg-thick); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-rim), var(--shadow-2); }
.qo-foot .mx-sum { padding-top: 0; border-top: 0; }
.basket-under { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.qo-hint { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--grey); }
.qo-hint .ico { width: 18px; height: 18px; color: var(--orange-text); flex: none; }
.qo-hint b { color: var(--orange-text); }
@media (hover: hover) and (pointer: fine) { .qo-mh h3 a:hover, .qo-hint:hover b { color: var(--orange-text); text-decoration: underline; text-underline-offset: 3px; } }
@media (max-width: 760px) {
  .qo-row { flex-direction: column; }
  .qo-res { padding: 14px; }
  .qo-foot { bottom: calc(86px + env(safe-area-inset-bottom)); }
}

/* sideways rows fade at the edge that has more (script.js bindEdges) */
[data-edge].fade-l, [data-edge].fade-r { -webkit-mask-image: linear-gradient(90deg, var(--ml, #000) 0, #000 36px, #000 calc(100% - 36px), var(--mr, #000) 100%); mask-image: linear-gradient(90deg, var(--ml, #000) 0, #000 36px, #000 calc(100% - 36px), var(--mr, #000) 100%); }
[data-edge].fade-l { --ml: transparent; }
[data-edge].fade-r { --mr: transparent; }

/* minimum order: text + a thin progress line (basket, checkout) */
.minbar { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--r-m); background: var(--orange-soft); color: #8a3410; font-size: 14px; }
.minbar-t { display: grid; gap: 2px; }
.minbar-t small { font-size: 12px; opacity: 0.85; }
.minbar-l { height: 6px; border-radius: 3px; background: rgba(196, 66, 11, 0.15); overflow: hidden; }
.minbar-l i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff8a52, var(--orange-deep)); transition: width 320ms var(--ease); }
.minbar.ok { background: rgba(21, 115, 68, 0.08); color: var(--ok); }
.minbar.ok .minbar-l { background: rgba(21, 115, 68, 0.15); }
.minbar.ok .minbar-l i { background: var(--ok); }
.btn[aria-disabled="true"] { pointer-events: auto; cursor: not-allowed; }

/* one order in the account */
.od { display: grid; gap: 16px; }
.od-back { display: inline-flex; align-items: center; gap: 4px; justify-self: start; font-size: 14px; font-weight: 600; color: var(--grey); transition: color 140ms ease; }
.od-back .ico { width: 16px; height: 16px; }
.od-h span { font-size: 15px; }
.od-h b { color: var(--ink); }
.od .co-main { display: grid; gap: 14px; }
.od .co-main .panel-box + .panel-box { margin-top: 0; }
.oline-list { display: grid; }
.oline { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; box-shadow: 0 0.5px 0 var(--line); }
.oline:last-child { box-shadow: none; padding-bottom: 0; }
.oline img, .oline .nophoto { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; background: #fff; }
.oline-m { display: grid; gap: 3px; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.oline-m a { font-weight: 500; }
.oline-m .muted { font-size: 13px; font-variant-numeric: tabular-nums; }
.oline-s { font-variant-numeric: tabular-nums; white-space: nowrap; }
.od .co-side .btn { width: 100%; }
@media (hover: hover) and (pointer: fine) { .od-back:hover { color: var(--ink); } .oline-m a:hover { color: var(--orange-text); } }
@media (max-width: 760px) { .oline { grid-template-columns: 48px minmax(0, 1fr); } .oline img, .oline .nophoto { width: 48px; height: 48px; } .oline-s { grid-column: 2; } }

/* sticky buy bar: phones only, slides up above the bottom menu once the buy block is off screen */
.pd-bar { display: none; }
@media (max-width: 760px) {
  .pd-bar {
    position: fixed; left: 10px; right: 10px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 59;
    display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 24px;
    background: var(--glass-bg-thick); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-rim), var(--shadow-float);
    transform: translateY(calc(100% + 100px)); visibility: hidden;
    transition: transform 220ms var(--ease-io), visibility 0s linear 220ms;
  }
  .pd-bar[hidden] { display: none; }
  .pd-bar.on { transform: none; visibility: visible; transition: transform 320ms var(--ease-drawer), visibility 0s; }
  .pd-bar-t { display: grid; min-width: 0; line-height: 1.15; }
  .pd-bar-t b { font-family: var(--f-head); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .pd-bar-t small { font-size: 12px; color: var(--grey); }
  .pd-bar .btn { flex: 1; min-height: 48px; max-width: 220px; margin-left: auto; }
  body:has(.pd-bar.on) .wa { bottom: 160px; transition: bottom 320ms var(--ease-drawer); }
  body:has(.pd-bar.on) .toasts { bottom: 164px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .pd-bar, .pd-bar.on { transition: visibility 0s; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips a { padding: 8px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--surface-rim), var(--shadow-1); font-size: 14px; font-weight: 500; transition: box-shadow 160ms ease; }
.chips a[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--orange-deep); font-weight: 600; }
.pd-info { display: grid; gap: 10px; color: var(--grey); font-size: 14px; }
.pd-info li { display: flex; align-items: center; gap: 10px; }
.pd-info a { color: var(--orange-text); font-weight: 600; }
.pd-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 44px); margin-top: clamp(32px, 4vw, 56px); }
.pd-tabs .h2 { margin-bottom: 16px; }
.props { display: grid; margin: 0; }
.props div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 11px 0; box-shadow: 0 0.5px 0 var(--line); font-size: 15px; }
.props dt { color: var(--grey); }
.props dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .chips a:hover { box-shadow: var(--surface-rim), var(--shadow-2); } }

/* ---------- shared boxes and forms ---------- */
.panel-box { border-radius: var(--r-l); background: var(--surface); box-shadow: var(--surface-rim), var(--shadow-1); padding: clamp(16px, 2vw, 26px); }
.panel-box + .panel-box { margin-top: 14px; }
.sticky { position: sticky; top: 96px; }
.co { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.co-side .panel-box { display: grid; gap: 12px; }
.co-h { display: flex; align-items: center; gap: 12px; font-family: var(--f-head); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 18px; }
.co-h span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 14px; }
.co-h.sm { font-size: 18px; margin-bottom: 4px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.fields.one { grid-template-columns: 1fr; }
.fld { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.fld.wide { grid-column: 1 / -1; }
.fld[hidden] { display: none; }
.fld i { color: var(--orange-text); font-style: normal; }
.fld input, .fld textarea {
  width: 100%; min-height: 46px; border: 0; border-radius: var(--r-m); padding: 11px 14px; font-size: 16px; background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(60, 60, 67, 0.2); transition: box-shadow 160ms ease; resize: vertical;
}
.fld input:focus, .fld textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--orange), 0 0 0 4px rgba(249, 95, 31, 0.16); }
.rcards { display: grid; gap: 8px; }
.rcard { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-m); background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1px rgba(60, 60, 67, 0.16); cursor: pointer; transition: box-shadow 160ms ease, background-color 160ms ease; }
.rcard:has(input:checked) { background: #fff; box-shadow: inset 0 0 0 2px var(--orange-deep); }
.rcard input { margin: 3px 0 0; accent-color: var(--orange-deep); width: 18px; height: 18px; flex: none; }
.rcard b { display: block; font-weight: 600; }
.rcard small { color: var(--grey); font-size: 13px; }
.agree { font-size: 13px; color: var(--grey); align-items: flex-start; }
.co-items { display: grid; gap: 10px; padding-bottom: 6px; box-shadow: 0 0.5px 0 var(--line); }
.co-items li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; font-size: 13px; padding-bottom: 10px; }
.co-items img { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: #fff; }
.co-items span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.co-items small { display: block; color: var(--grey); }

/* basket lines */
.bline { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto 110px; gap: 16px; align-items: center; padding: 14px 0; box-shadow: 0 0.5px 0 var(--line); }
.bline:first-child { padding-top: 0; }
.bline:last-child { box-shadow: none; padding-bottom: 0; }
.bline > .nudge { grid-column: 2 / -1; margin-top: -6px; } /* stock note under the line, not in the photo column */
.bline > img { width: 72px; height: 90px; border-radius: 14px; object-fit: contain; background: #fff; }
.bl-main { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.bl-name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.bline .meta { color: var(--grey); font-size: 13px; }
.bl-sum { text-align: right; font-family: var(--f-head); font-size: 17px; letter-spacing: -0.02em; }
.empty-box { margin-top: 40px; border-radius: var(--r-xl); box-shadow: inset 0 0 0 1.5px var(--line); }
.empty-box::before { content: 'Пустая корзина (так выглядит, когда товаров нет)'; display: block; padding: 10px 16px 0; font-size: 12px; color: var(--grey-2); }
.empty-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--ink); }
.empty-ic .ico { width: 28px; height: 28px; }
.empty b { font-family: var(--f-head); font-size: 22px; color: var(--ink); }

/* order done / 404 */
div.done { max-width: 620px; margin: 0 auto; text-align: center; display: grid; gap: 14px; justify-items: center; padding: clamp(24px, 4vw, 48px) 0; }
.done-ic { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #1f8f55, #157344); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), var(--shadow-2); }
.done-ic .ico { width: 36px; height: 36px; stroke-width: 2.4; }
div.done .h1, .txt-page .h1 { font-family: var(--f-head); font-weight: 700; font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -0.03em; line-height: 1.05; }
.done-no { font-size: 17px; }
.done-p { color: var(--grey); max-width: 30em; }
.done-steps { counter-reset: s; display: grid; gap: 8px; text-align: left; margin: 8px 0; }
.done-steps li { counter-increment: s; display: flex; gap: 12px; align-items: center; }
.done-steps li::before { content: counter(s); width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--fill); font-weight: 700; font-size: 13px; }
.done-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.done-acts .btn-ghost, .qv-acts .btn-ghost { color: var(--ink); }
.nf-n { font-family: var(--f-head); font-size: clamp(72px, 12vw, 140px); font-weight: 800; line-height: 1; letter-spacing: -0.05em; color: var(--orange-deep); }
.nf-search { display: flex; gap: 8px; width: min(440px, 100%); }
.nf-search input { flex: 1; min-width: 0; height: 46px; border: 0; border-radius: 999px; padding: 0 18px; background: var(--surface); box-shadow: var(--surface-rim), var(--shadow-1); }
.nf-search input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--orange), 0 0 0 4px rgba(249, 95, 31, 0.16); }
.nores-t { font-family: var(--f-head); font-size: 22px; color: var(--ink); }
.nores { border-radius: var(--r-xl); box-shadow: inset 0 0 0 1.5px var(--line); padding: 40px 16px; }

/* auth */
.auth { max-width: 520px; margin: 0 auto; }
.auth .tabs { margin-inline: auto; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.auth-row a { color: var(--orange-text); font-weight: 600; }
.auth .muted { font-size: 14px; }
.restore { margin-top: 14px; }
.auth .captcha { display: block; border-radius: 10px; }
.auth .tabs a.tab { text-decoration: none; }
.order-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.order-acts .btn-ghost { color: var(--ink); }

/* text pages */
.txt-page { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.side-nav { position: sticky; top: 96px; display: grid; gap: 2px; padding: 8px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--surface-rim), var(--shadow-1); }
.side-nav a { padding: 9px 12px; border-radius: var(--r-s); font-size: 15px; font-weight: 500; color: rgba(28, 28, 30, 0.76); transition: background-color 140ms ease; }
.side-nav a[aria-current="page"] { background: var(--fill-hover); color: var(--ink); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .side-nav a:not([aria-current]):hover { background: var(--fill); color: var(--ink); } }
.text { max-width: 72ch; font-size: 16px; line-height: 1.6; }
.text > * + * { margin-top: 14px; }
.text h2 { font-family: var(--f-head); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-top: 28px; }
.text .lead { font-size: 18px; color: rgba(0, 0, 0, 0.72); }
.text ol, .text ul { padding-left: 1.3em; }
.text ol { list-style: decimal; }
.text ul { list-style: disc; }
.text li + li { margin-top: 6px; }
.text table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r-m); overflow: hidden; box-shadow: var(--surface-rim); font-size: 15px; }
.text th, .text td { text-align: left; padding: 11px 14px; box-shadow: 0 0.5px 0 var(--line); }
.text th { font-size: 13px; color: var(--grey); font-weight: 600; }
/* phones: a 3-column table does not fit; each row becomes a small card (first cell bold, the rest under it) */
@media (max-width: 560px) {
  .text table, .text tbody, .text tr, .text td { display: block; }
  .text thead { display: none; }
  .text tr { padding: 12px 14px; box-shadow: 0 0.5px 0 var(--line); }
  .text td { padding: 0; box-shadow: none; font-size: 14px; color: rgba(28, 28, 30, 0.72); }
  .text td:first-child { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
}
.text .note { font-size: 13px; color: var(--warn); }

/* contacts */
.ct { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; grid-column: 1 / -1; }
.ct-card { display: grid; gap: 4px; align-content: start; padding: 18px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--surface-rim), var(--shadow-1); transition: box-shadow 160ms ease; }
.ct-card .ico { color: var(--orange-deep); margin-bottom: 6px; }
.ct-card span { color: var(--grey); font-size: 13px; }
.ct-card b { font-size: 17px; overflow-wrap: anywhere; }
.ct-card small { color: var(--grey); }
@media (hover: hover) and (pointer: fine) { a.ct-card:hover { box-shadow: var(--surface-rim), var(--shadow-2); } }
.ct-phones b a { display: block; width: fit-content; }
.ct-phones b br { display: none; }
@media (hover: hover) and (pointer: fine) { .ct-phones b a:hover { color: var(--orange-text); } }
.map { position: relative; min-height: 360px; border-radius: var(--r-xl); overflow: hidden; background: var(--base); box-shadow: var(--surface-rim), var(--shadow-1); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map .bx-yandex-view-layout, .map .bx-yandex-view-map, .map .bx-yandex-map { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.ct-form .agree { margin-top: 12px; }
.ct-form .btn { margin-top: 14px; }

/* quick view additions */
.qv-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.qv-acts .btn-orange { flex: 1; }
.qv-img img { object-fit: contain; background: #fff; }
.foot-contacts a { color: rgba(0, 0, 0, 0.72); }

@media (max-width: 1024px) {
  .sec-tiles { grid-template-columns: repeat(2, 1fr); }
  .pd, .pd-tabs, .co { grid-template-columns: 1fr; }
  .pd-gal { position: static; }
  .sticky { position: static; }
  .txt-page { grid-template-columns: 1fr; }
  .side-nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; border-radius: 999px; padding: 4px; }
  .side-nav a { flex: none; border-radius: 999px; }
}
@media (max-width: 720px) {
  .sec-tiles, .ct { grid-template-columns: 1fr; }
  .ct-cards { grid-template-columns: 1fr 1fr; }
  .ct-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  a.ct-card { padding: 16px 14px; }
  a.ct-card b { font-size: 15px; white-space: nowrap; overflow-wrap: normal; } /* phone numbers and e-mail stay on one line */
  /* phones: the chips scroll sideways instead of stacking */
  .sub-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gut)); padding: 2px var(--gut) 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .sub-chips::-webkit-scrollbar { display: none; }
  .fields { grid-template-columns: 1fr; }
  .pd-gal { grid-template-columns: 1fr; }
  .pd-main { grid-column: 1; }
  .pd-thumbs { grid-row: 2; display: flex; overflow-x: auto; }
  .pd-thumbs button { width: 60px; height: 60px; flex: none; }
  .bline { grid-template-columns: 64px minmax(0, 1fr); row-gap: 10px; }
  .bline > img, .bline > .nophoto.sm { width: 64px; height: 80px; grid-row: span 2; }
  .bline .step { justify-self: start; }
  .bl-sum { text-align: left; }
  .map { min-height: 220px; }
}

/* ============================================================
   Bitrix template: states that only exist on the live site
   (errors, saved messages, empty basket, long filter lists…)
   ============================================================ */
.form-errors, .form-ok { border-radius: var(--r-m); padding: 12px 16px; margin-bottom: 14px; font-size: 14px; font-weight: 500; }
.form-errors { background: rgba(179, 38, 30, 0.08); color: #8c1d18; box-shadow: inset 0 0 0 1px rgba(179, 38, 30, 0.2); }
.form-ok { background: rgba(21, 115, 68, 0.08); color: var(--ok); box-shadow: inset 0 0 0 1px rgba(21, 115, 68, 0.2); }
.form-errors p + p, .form-ok p + p { margin-top: 4px; }
.fld select {
  width: 100%; min-height: 46px; border: 0; border-radius: var(--r-m); padding: 11px 14px; font-size: 16px; background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(60, 60, 67, 0.2);
}
.fld small { font-weight: 400; }
.fld input[type="checkbox"] { width: 20px; min-height: 0; height: 20px; }
.chk.off { opacity: 0.45; }
.fmore summary { cursor: pointer; color: var(--orange-text); font-weight: 600; font-size: 14px; padding: 6px 0; list-style: none; }
.fmore summary::-webkit-details-marker { display: none; }
.filters[hidden] { display: none; }
.cat-wrap:has(.filters[hidden]) { grid-template-columns: 1fr; }
.factions .btn-ghost { text-align: center; }

/* basket: the empty state shows when the last line is removed */
.basket-empty { display: none; }
.basket-page.is-empty .basket-empty { display: grid; }
.basket-page.is-empty .co { display: none; }
.basket-clear { display: inline-block; }
.empty-box::before { content: none; }

/* search suggestions: "all results" row */
.sugg a.sugg-all { grid-template-columns: 0 1fr 0; color: var(--orange-text); }
.sugg .nophoto { position: relative; }

/* order history: 4 steps */
.tl.tl4 { grid-template-columns: repeat(4, 1fr); }
.order-cancel { color: #b3261e; }

/* every inner page: breadcrumbs and h1 come from header.php */
.page > .cat-top:first-of-type { margin-top: 0; }
.page div.done { padding-top: 0; }
.co .rm { justify-self: center; }

@media (max-width: 720px) {
  .tl.tl4 { grid-template-columns: 1fr; }
}

/* placeholders stay inside their tile */
.sec-tile-h .ph, .circle .ph { position: relative; display: block; }
.fields[hidden], [data-pt][hidden] { display: none; }

/* the real logo file (images/logo.png, 518×164) */
.logo img { height: 40px; width: auto; display: block; }
@media (max-width: 720px) { .logo img { height: 34px; } }
.co-note { margin: -6px 0 4px; font-size: 14px; }
textarea { font: inherit; color: inherit; }

/* ---------- motion and feedback (impeccable animate pass) ---------- */
/* add to basket: the label swaps in place; the button keeps its width so nothing around it moves */
.btn .lab { min-width: 0; }
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"] .lab { opacity: 0.6; }
/* checkout: busy button with a small spinner */
.btn.is-busy { pointer-events: none; opacity: 0.85; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: spin 700ms linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
/* stock note under the quantity */
[data-stock-nudge] { margin: 0; }
/* badges roll their numbers: keep them on their own layer */
.badge { will-change: auto; }
/* toast: shows the product name, so let it wrap on phones */
.toast { max-width: min(92vw, 520px); text-align: center; line-height: 1.35; }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 1.6s; } }

/* ---------- интеграция в Битрикс (23.11.2026) ---------- */
/* хлебные крошки: разметка списка с микроразметкой, внешне — строка */
.crumbs ol, .crumbs li { display: contents; }
/* логотип выводится картинкой из включаемой области include/astopt/logo.php */
.logo img { height: 38px; width: auto; display: block; }
@media (max-width: 720px) { .logo img { height: 34px; } }
/* внутренние страницы: отступ сверху вместо инлайнового стиля */
.sheet > .page { padding-top: 8px; }
/* заглушка картинки в подсказках поиска */
.sugg .nophoto.sm { width: 48px; height: 48px; border-radius: 12px; }
/* плитки разделов /catalog/: подложка картинки по порядку плитки (вместо инлайновых цветов) */
.sec-tile .ph.tint-1, .circle .ph.tint-1 { background: #E4EEF6; }
.sec-tile .ph.tint-2, .circle .ph.tint-2 { background: #F6E9DD; }
.sec-tile .ph.tint-3, .circle .ph.tint-3 { background: #FDF0DC; }
.sec-tile .ph.tint-4, .circle .ph.tint-4 { background: #FFF1BF; }
.sec-tile .ph.tint-5, .circle .ph.tint-5 { background: #DDF1E8; }
.sec-tile .ph.tint-6, .circle .ph.tint-6 { background: #FFE3D6; }
.sec-tile .ph.tint-7, .circle .ph.tint-7 { background: #DDE7EE; }
/* строка над списком: число найденных слева, фильтры и сортировка справа */
.list-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.list-top .count { margin-top: 0; }
/* постраничка: текущая страница и неактивные стрелки — span */
.pager span[aria-current="page"] { background: var(--ink); color: #fff; }
.pager span[aria-disabled="true"] { opacity: 0.35; }
/* фильтр: «Ещё N» в свёрнутом списке, «Свернуть» — в раскрытом; раскрытый список без лишнего отступа сверху */
.fmore .fmore-hide, .fmore[open] .fmore-show { display: none; }
.fmore[open] .fmore-hide { display: inline; }
.fmore[open] > summary { order: 2; }
.fmore[open] { display: flex; flex-direction: column; }
/* полоса категорий: прокрутка вбок (колесо мыши, тачпад, свайп), заметное затухание у краёв, где есть ещё пункты */
.catnav .wrap { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; scroll-behavior: smooth; }
.catnav .wrap::-webkit-scrollbar { display: none; }
.catnav .wrap[data-edge].fade-l, .catnav .wrap[data-edge].fade-r { -webkit-mask-image: linear-gradient(90deg, var(--ml, #000) 0, #000 96px, #000 calc(100% - 96px), var(--mr, #000) 100%); mask-image: linear-gradient(90deg, var(--ml, #000) 0, #000 96px, #000 calc(100% - 96px), var(--mr, #000) 100%); }
.catnav a { flex: none; }

/* кабинет (sale.personal.section/main): шкала на любое число статусов, h2 в шапке, фильтр, данные покупателя */
@media (min-width: 721px) { .tl { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } } /* до 720px — вертикальная шкала из макета */
.acc-hero h2 { font-family: var(--f-head); font-size: clamp(24px, 3vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.acc-filter { margin-bottom: 14px; }
.order-cancel { color: var(--orange-text); }
.props { display: grid; gap: 10px; font-size: 14px; }
.props div { display: grid; grid-template-columns: minmax(120px, 34%) minmax(0, 1fr); gap: 12px; }
.props dt { color: var(--grey); }
.props dd { overflow-wrap: anywhere; }
@media (max-width: 560px) { .props div { grid-template-columns: 1fr; gap: 2px; } }

/* главная: баннер, где текст нарисован на картинке (TEXT_POSITION = image) — вписан в карточку целиком, без затемнения и подписи */
.slide.img-only { background: #f4ede6; }
.slide.img-only::before { content: none; }
.slide.img-only img.main { left: 0; width: 100%; height: 100%; object-fit: contain; }
.slide.img-only.before img.main, .slide.img-only.after img.main { transform: none; }
.slide-link { position: absolute; inset: 0; z-index: 1; }

/* полоса категорий: что не помещается, уходит в список кнопки «Ещё» (script.js, initCatnavMore); без JS — прокрутка вбок */
.catnav .wrap { overflow: visible; -webkit-mask-image: none; mask-image: none; }
.catnav-items { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.catnav-items::-webkit-scrollbar { display: none; }
.catnav.is-fit .catnav-items { overflow: hidden; }
.catnav-items a.is-out { display: none; }
.catnav-more { position: relative; flex: none; margin-left: 4px; }
.catnav-more[hidden] { display: none; }
.catnav-more-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px 0 10px; border-radius: 999px; background: var(--fill); color: var(--ink); font-size: 14px; font-weight: 600; transition: background-color 160ms ease, transform 160ms var(--ease); }
.catnav-more-btn .ico { width: 18px; height: 18px; }
.catnav-more-btn b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.catnav-more-btn:active { transform: scale(0.97); }
.catnav-more-btn[aria-expanded="true"] { background: var(--fill-hover); }
.catnav-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 260px; max-width: min(360px, calc(100vw - 32px)); max-height: min(60vh, 480px); overflow-y: auto; padding: 8px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--surface-rim), var(--shadow-2); display: grid; gap: 2px; }
.catnav-pop[hidden] { display: none; }
.catnav-pop a { display: flex; justify-content: flex-start; width: 100%; min-height: 40px; border-radius: 12px; }
@media (hover: hover) and (pointer: fine) { .catnav-more-btn:hover { background: var(--fill-hover); } }

/* записи инфоблоков (news.list / news.detail «astopt»: акции и т. п.), тизеры на странице «О компании» */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(14px, 2vw, 24px); }
.post { display: grid; align-content: start; border-radius: var(--r-l); overflow: hidden; background: var(--surface); box-shadow: var(--surface-rim), var(--shadow-1); }
.post-ph { display: block; aspect-ratio: 3 / 2; background: var(--fill); }
.post-ph img { width: 100%; height: 100%; object-fit: cover; }
.post-b { display: grid; gap: 8px; padding: 16px 18px 20px; }
.post-date { color: var(--grey); font-size: 13px; }
.post-h { font-family: var(--f-head); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.post-h a:hover { color: var(--orange-text); }
.post-t { color: rgba(0, 0, 0, 0.72); font-size: 14px; line-height: 1.45; }
.post-detail { display: grid; gap: 16px; max-width: 860px; }
.post-detail-ph { width: 100%; height: auto; border-radius: var(--r-l); }
.post-back { margin-top: 24px; }
.why-page { margin-block: clamp(24px, 3vw, 40px); }

/* полоса меню — свой слой ниже шапки (z 50): список «Ещё» не уходит под карусель главной (у неё transform и mask) */
.catnav { position: relative; z-index: 45; }

/* шапка на узких экранах: поиск не сжимается в ноль — с базой 200px он вместе с «Каталогом» уходит во вторую строку */
/* подсказки поиска не уже min(520px, экран − 24px): узкое поле на планшете и телефоне не рвёт названия по словам;
   выравнивание по правому краю поля — список растёт влево и не выходит за экран */
.sugg { left: auto; right: 0; width: max(100%, min(520px, calc(100vw - 24px))); }
/* сортировка на узких экранах сжимается и переносится, а не выталкивает страницу вбок */
.sort { flex-wrap: wrap; max-width: 100%; }
.sort select { min-width: 0; flex: 0 1 auto; max-width: 100%; }
@media (max-width: 720px) { .search { flex: 1 1 200px; } .sugg { width: 100%; } }
/* подсказки поиска на телефоне: цена под названием, а не отдельной колонкой */
@media (max-width: 480px) { .sugg a:not(.sugg-all) { grid-template-columns: 48px 1fr; row-gap: 2px; } .sugg a:not(.sugg-all) > b:last-child { grid-column: 2; font-size: 13px; } }

/* карточка товара: одно фото или ни одного — без колонки миниатюр; много миниатюр — колонка высотой с фото, прокрутка и стрелки */
.pd-gal.one { grid-template-columns: 1fr; }
.pd-gal.one .pd-main { grid-column: 1; }
.pd-thumbs-box { grid-column: 1; grid-row: 1; position: relative; height: 0; min-height: 100%; display: grid; }
.pd-thumbs-box .pd-thumbs { grid-column: 1; grid-row: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; scroll-behavior: smooth; overscroll-behavior: contain; padding: 3px; margin: -3px; }
.pd-thumbs-box .pd-thumbs::-webkit-scrollbar { display: none; }
.pd-thumbs-nav { position: absolute; left: 50%; z-index: 2; width: 32px; height: 32px; margin-left: -16px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); box-shadow: var(--surface-rim), var(--shadow-1); }
.pd-thumbs-nav[hidden] { display: none; }
.pd-thumbs-nav .ico { width: 16px; height: 16px; transform: rotate(90deg); }
.pd-thumbs-nav.prev { top: 4px; }
.pd-thumbs-nav.next { bottom: 4px; }
@media (max-width: 720px) {
  .pd-thumbs-box { grid-row: 2; height: auto; min-height: 0; }
  .pd-thumbs-box .pd-thumbs { overflow-y: visible; overflow-x: auto; }
  .pd-thumbs-nav { display: none; }
}

/* «Написать нам»: справа на той же высоте, что кнопка открытых линий Б24 слева (её центр — 83px от низа и края);
   по нажатию — WhatsApp и МАКС. Старая одиночная кнопка .wa больше не выводится. */
.fab { position: fixed; right: 55px; bottom: 55px; z-index: 40; display: grid; justify-items: end; gap: 10px; }
.fab-btn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #f95f1f, #c94612); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), var(--shadow-float); transition: transform 240ms var(--spring); }
.fab-btn .ico { width: 26px; height: 26px; }
.fab-btn:active { transform: scale(0.94); transition-duration: 90ms; }
.fab-btn[aria-expanded="true"] { background: var(--ink); }
.fab-list { order: -1; display: grid; gap: 6px; padding: 8px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--surface-rim), var(--shadow-float); min-width: 230px; }
.fab-list[hidden] { display: none; }
.fab-item { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: var(--r-m); transition: background-color 120ms ease; }
.fab-item > .ico { width: 40px; height: 40px; padding: 9px; border-radius: 50%; color: #fff; }
.fab-wa > .ico { background: linear-gradient(180deg, #38e27c, #1fbf5e); color: #06240f; }
.fab-max > .ico { background: linear-gradient(135deg, #4b6bff, #8a3dff); }
.fab-item b { display: block; font-weight: 600; }
.fab-item small { color: var(--grey); font-size: 13px; }
@media (hover: hover) and (pointer: fine) { .fab-item:hover { background: var(--fill); } .fab-btn:hover { transform: scale(1.05); } }
@media (max-width: 720px) { .fab { right: 12px; bottom: 92px; } .fab-btn { width: 50px; height: 50px; } }
body:has(.pd-bar.on) .fab { bottom: 160px; transition: bottom 320ms var(--ease-drawer); }
/* чипы разделов в «Новинках» и «Распродаже»: выбранный раздел */
.sub-chip[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--orange-deep); font-weight: 600; }
/* значок «Акция» (список «Наши предложения» = Акция) */
.tg.s { background: rgba(214, 31, 54, 0.9); }

/* быстрый просмотр: крестик закрытия заметный, 24px (была «точка» 13px) */
.x.light { width: 24px; height: 24px; }
.x.light .ico { width: 12px; height: 12px; }
/* профиль: заголовок «Смена пароля» не вплотную к полям */
form.panel-box > .co-h.sm { margin-top: 22px; }
/* корзина: пока идёт пересчёт, кнопки не нажимаются — быстрые клики не теряются */
.basket-page.is-busy { pointer-events: none; opacity: 0.6; transition: opacity 120ms ease; }

/* верхняя строка: телефоны справа, в одну строку (перенос <br> во включаемой области не нужен) */
.strip-phone { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.strip-phone br { display: none; }
/* номера через отступ и там, где нет flex-gap (старый Safari); в подвале — каждый с новой строки, на узком экране не слипаются */
.strip-phone { gap: 0; }
.strip-phone a ~ a { margin-left: 14px; } /* между номерами в области стоит <br>, поэтому «~», а не «+» */
.foot-contacts a[href^="tel:"] { white-space: nowrap; }
.foot-contacts li:has(> a[href^="tel:"]) { flex-direction: column; align-items: flex-start; } /* на телефоне строка списка — flex: номера в колонку, а не вплотную */
/* «Написать нам»: онлайн-чат Б24 открывается из списка — плавающая кнопка виджета в новом шаблоне не нужна */
/* прячем прозрачностью, а не display: none — пункт «Онлайн-чат» нажимает эту кнопку и её список */
.b24-widget-button-wrapper { opacity: 0 !important; pointer-events: none !important; }
.fab-item { width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.fab-item[hidden] { display: none; }
.fab-chat > .ico { background: linear-gradient(180deg, #f95f1f, #c94612); }
/* «Написать нам» на телефоне: уезжает за правый край, пока листают вниз или когда под ней кнопка/поле/сумма (script.js, initFab) */
.fab .fab-btn { transition: transform 240ms var(--spring), opacity 200ms ease; }
.fab.fab-away { pointer-events: none; }
.fab.fab-away .fab-btn { transform: translateX(calc(100% + 16px)); opacity: 0; }
@media (prefers-reduced-motion: reduce) { .fab.fab-away .fab-btn { transform: none; } }

/* корзина: сумма не рвётся между числом и знаком валюты (на телефоне «₸» уезжал на новую строку); при ₽ — итог в тенге */
.bl-sum, .sumrow span:last-child, .minbar b, .minbar small, .nw { white-space: nowrap; }
.sum-base { margin: -4px 0 10px; color: var(--grey); font-size: 13px; text-align: right; }

/* баннеры главной: какую часть картинки показывать на телефоне — свойство баннера «Положение картинки на телефоне» (26.11.2026) */
@media (max-width: 720px) {
  .slide.pos-left img.main { object-position: 0 50%; }
  .slide.pos-right img.main { object-position: 100% 50%; }
}

/* товары упаковками (26.11.2026): размер упаковки в таблице, цена за штуку, сколько штук выбрано */
.mx-pack { display: block; font-size: 12px; color: var(--grey); font-weight: 500; }
.pack-info { margin: 4px 0 0; font-size: 13px; color: var(--grey); }
.pack-note { margin: 6px 0 0; font-size: 13px; color: var(--grey); font-variant-numeric: tabular-nums; }
.bline .bl-pcs { display: block; margin: 0; text-align: center; }


/* End */
/* /local/templates/astopt/template_styles.css?1795695559121140 */
