/* Layout: classic KZ shop (client reference larek.kz): top bar, logo + search + cart, blue menu bar, banner, tiles, grid with left filters.
   Single light theme on purpose: the reference is a white storefront. */
:root {
  --bg: #f3f4f6;
  --white: #ffffff;
  --ink: #1d2733;
  --muted: #6b7684;
  --line: #e3e6ea;
  --field: #eef0f3;
  --blue: #1f6fb2;
  --blue-dark: #185a91;
  --blue-soft: #e6f0f9;
  --green: #23944a;
  --red: #c62828;
  --orange: #c26a0a;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 8px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--font); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1100px; margin: 0 auto; padding-inline: 16px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* Header */
.topbar { background: var(--white); font-size: 13px; color: var(--muted); }
.topbar .wrap { display: flex; gap: 22px; align-items: center; padding-block: 8px; }
.topbar .sp { margin-left: auto; }
.topbar a:hover { color: var(--ink); }
.langs { display: flex; gap: 2px; }
.langs button { border: 0; background: none; padding: 2px 6px; border-radius: 4px; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--muted); }
.langs button[aria-pressed="true"] { background: var(--blue-soft); color: var(--blue); }
.langs button:disabled { opacity: .45; cursor: not-allowed; }
.head { background: var(--white); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; }
.head .wrap { display: flex; gap: 20px; align-items: center; padding-block: 12px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 24px; letter-spacing: -.02em; color: var(--blue); white-space: nowrap; }
.logo i, .logo svg { color: var(--ink); }
.logo small { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-top: -4px; }
.search { flex: 1; min-width: 0; display: flex; background: var(--field); border-radius: 6px; }
.search input { flex: 1; min-width: 0; border: 0; background: none; padding: 10px 14px; outline: none; }
.search button { border: 0; background: none; padding: 0 14px; cursor: pointer; }
.search:focus-within { box-shadow: 0 0 0 2px var(--blue); }
.cart-link { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 600; position: relative; }
.cart-link .count { background: var(--blue); color: var(--white); font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding-inline: 5px; position: absolute; left: 10px; top: -9px; }
.menu { background: var(--white); padding-bottom: 12px; }
.menu-bar { background: var(--blue); border-radius: 4px; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.menu-bar > a, .menu-bar > button { color: var(--white); text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 13px 10px; text-align: center; border: 0; background: none; cursor: pointer; display: flex; gap: 10px; justify-content: center; align-items: center; }
.menu-bar > a:hover, .menu-bar > button:hover, .menu-bar > button[aria-expanded="true"] { background: var(--blue-dark); }
.dropdown { position: absolute; left: 0; top: 100%; width: min(720px, 100%); background: var(--white); z-index: 40;
  border-radius: 0 0 var(--r) var(--r); box-shadow: 0 16px 32px -12px rgba(20, 30, 45, .3); padding: 8px;
  display: grid; grid-template-columns: 1fr 1fr; }
.dropdown a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 6px; }
.dropdown a:hover { background: var(--blue-soft); color: var(--blue); }
.dropdown i, .dropdown svg { width: 18px; color: var(--blue); }
.dropdown span { margin-left: auto; font-size: 12px; color: var(--muted); }
.dropdown-group { display: grid; align-content: start; padding-bottom: 4px; }
.dropdown a.sub { margin-top: -6px; padding: 4px 12px 6px 42px; gap: 6px; font-size: 13px; color: var(--muted); }
.dropdown a.sub i, .dropdown a.sub svg { width: auto; font-size: 10px; color: var(--muted); }
.dropdown a.sub:hover, .dropdown a.sub:hover i { color: var(--blue); }
.dropdown a.all { grid-column: 1 / -1; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 6px 6px;
  font-weight: 700; color: var(--blue); }
.dropdown a.all .go { margin-left: auto; width: auto; }

/* Banner slider */
.banner { position: relative; overflow: hidden; }
.slide { display: none; min-height: 340px; }
.slide.on { display: block; }
.slide .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; min-height: 340px; padding-block: 28px; }
.slide h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.01em; }
.slide p { margin: 12px 0 22px; font-size: 16px; color: var(--muted); max-width: 42ch; }
.slide img { max-height: 290px; justify-self: center; object-fit: contain; mix-blend-mode: multiply; }
.s1 { background: linear-gradient(110deg, #e9eef6 0%, #d7e2f1 100%); }
.s2 { background: linear-gradient(110deg, #eef0ea 0%, #e2e6dc 100%); }
.s3 { background: linear-gradient(110deg, #f1ece6 0%, #e7ddd2 100%); }
.pill-btn { display: inline-block; background: var(--blue); color: var(--white); border-radius: 999px; padding: 11px 36px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border: 0; cursor: pointer; }
.pill-btn:hover { background: var(--blue-dark); }
.arrow { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 22px; color: rgba(29, 39, 51, .45); cursor: pointer; padding: 12px; }
.arrow:hover { color: var(--ink); }
.arrow.l { left: 4px; } .arrow.r { right: 4px; }
.dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; }
.dots button { width: 8px; height: 8px; border-radius: 4px; border: 0; background: rgba(29, 39, 51, .25); cursor: pointer; padding: 0; }
.dots button.on { background: var(--blue); width: 22px; }

/* Blocks */
.block { padding-block: 36px 8px; }
.block-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.block h1, .block h2 { font-size: 24px; font-weight: 800; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tile { background: var(--white); border-radius: 4px; box-shadow: 0 1px 2px rgba(20, 30, 45, .06); padding: 16px 12px 14px; display: grid; justify-items: center; gap: 10px; text-align: center; transition: box-shadow .15s; }
.tile:hover { box-shadow: 0 6px 18px -6px rgba(20, 30, 45, .25); }
.tile .pic { width: 100%; aspect-ratio: 4 / 3; display: grid; place-items: center; position: relative; }
/* Percent max-height does not resolve inside an aspect-ratio grid, so a tall photo overflowed the tile. */
.tile .pic img, .card .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tile .pic i, .tile .pic svg { font-size: 44px; color: var(--blue); opacity: .55; }
.tile b { font-weight: 600; font-size: 14px; line-height: 1.3; }
.tile span { font-size: 12px; color: var(--muted); margin-top: -8px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 7px 12px; border-radius: 4px; cursor: pointer; font-weight: 600; }
.tabs button[aria-selected="true"] { background: var(--blue); color: var(--white); }
.center { display: flex; justify-content: center; padding-top: 18px; }
.ghost-pill { background: var(--line); color: var(--ink); border-radius: 999px; padding: 9px 22px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ghost-pill:hover { background: #d6dae0; }
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.brands a { background: var(--white); border-radius: 4px; padding: 22px 10px; text-align: center; font-weight: 800; font-size: 17px; color: var(--muted); box-shadow: 0 1px 2px rgba(20, 30, 45, .06); }
.brands a:hover { color: var(--blue); }
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-block: 36px 40px; }
.perk { display: flex; gap: 14px; align-items: center; background: var(--white); padding: 18px; border-radius: 4px; }
.perk i, .perk svg { font-size: 24px; color: var(--blue); width: 28px; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.grid.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--white); border-radius: 4px; box-shadow: 0 1px 2px rgba(20, 30, 45, .06); padding: 14px; display: flex; flex-direction: column; gap: 8px; position: relative; transition: box-shadow .15s; }
.card:hover { box-shadow: 0 8px 22px -8px rgba(20, 30, 45, .28); }
.card .pic { aspect-ratio: 1; display: grid; place-items: center; position: relative; }
.card .pic i, .card .pic svg { font-size: 54px; color: #c5ccd5; }
.card h3 { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card h3 a:hover { color: var(--blue); }
.sku { font-size: 12px; color: var(--muted); word-break: break-all; }
.card .bottom { margin-top: auto; display: grid; gap: 10px; }
.stock { font-size: 13px; font-weight: 600; display: inline-flex; gap: 5px; align-items: center; }
.stock.ok { color: var(--green); } .stock.wait { color: var(--orange); } .stock.none { color: var(--red); }
.availability-note { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.price { font-size: 20px; font-weight: 800; white-space: nowrap; }
.price small { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.price.ask { font-size: 15px; font-weight: 700; color: var(--muted); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--orange); color: var(--white); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 3px; }
.btn { border: 0; background: var(--blue); color: var(--white); border-radius: 6px; padding: 9px 14px; font-weight: 700; cursor: pointer; display: inline-flex; gap: 8px; justify-content: center; align-items: center; white-space: nowrap; }
.btn:hover { background: var(--blue-dark); }
.btn.in { background: var(--white); color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.btn.big { padding: 13px 26px; font-size: 16px; }
/* List view */
.grid.list { grid-template-columns: 1fr; }
.grid.list .card { flex-direction: row; align-items: center; gap: 18px; }
.grid.list .card .pic { width: 110px; flex: none; }
.grid.list .card .info { flex: 1; min-width: 0; }
.grid.list .card .bottom { margin: 0; width: 190px; flex: none; justify-items: end; text-align: right; }
.card .info { display: grid; gap: 6px; }

/* Catalog page */
.crumbs { background: var(--white); }
.crumbs .wrap { padding-block: 10px 14px; font-size: 13px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.crumbs a:hover { color: var(--blue); }
.crumbs .sep { color: var(--muted); }
.page-title { font-size: 28px; font-weight: 800; padding-block: 28px 16px; }
.sections { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.sections a { flex: none; padding: 10px 16px; font-weight: 700; color: var(--muted); margin-bottom: -1px;
  border-bottom: 3px solid transparent; }
.sections a:hover { color: var(--ink); }
.sections a[aria-current="page"] { color: var(--blue); border-color: var(--blue); }
.chips { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; }
.chip { flex: none; background: var(--white); border-radius: 4px; padding: 14px 18px; display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14px; border: 1.5px solid transparent; cursor: pointer; }
.chip span { background: var(--bg); border-radius: 3px; font-size: 11px; padding: 1px 6px; color: var(--muted); }
.chip[aria-pressed="true"] { border-color: var(--blue); color: var(--blue); }
.cat-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; padding-bottom: 48px; align-items: start; }
.side-title, .sort-title { font-weight: 700; font-size: 14px; display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.fbox { background: var(--white); border-radius: 4px; margin-bottom: 2px; }
.fbox summary { padding: 14px 16px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.fbox summary::-webkit-details-marker { display: none; }
.fbox summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-135deg); margin-top: 7px; }
.fbox:not([open]) summary::after { transform: rotate(45deg); margin-top: 2px; }
.fbox .body { padding: 0 16px 14px; display: grid; gap: 4px; }
.fbox label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; padding: 2px 0; }
.fbox label span { margin-left: auto; color: var(--muted); font-size: 12px; }
.fbox input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--blue); }
.range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.range input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 4px; padding: 7px 8px; background: var(--white); font-size: 13px; }
.reset { margin-top: 10px; border: 0; background: none; color: var(--blue); cursor: pointer; padding: 0; font-weight: 600; }
.sortbar { background: var(--white); border-radius: 4px; padding: 10px 14px; display: flex; gap: 14px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.views { display: flex; gap: 4px; }
.views button { width: 32px; height: 32px; border: 1.5px solid var(--line); border-radius: 4px; background: var(--white); cursor: pointer; color: var(--muted); }
.views button[aria-pressed="true"] { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.sortbar select { margin-left: auto; border: 1px solid var(--line); border-radius: 4px; padding: 7px 10px; background: var(--white); }
.found { font-size: 13px; color: var(--muted); }
.filter-btn { display: none; }
.empty { background: var(--white); border-radius: 4px; padding: 48px 20px; text-align: center; display: grid; gap: 14px; justify-items: center; }

/* Product page */
.prod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding-bottom: 16px; }
.prod-pic { background: var(--white); border-radius: 4px; aspect-ratio: 1; max-width: 100%; display: grid; place-items: center; padding: 36px; }
.prod-pic img { max-height: 100%; object-fit: contain; }
.prod-pic i, .prod-pic svg { font-size: 96px; color: #c5ccd5; }
.prod-info { background: var(--white); border-radius: 4px; padding: 28px; display: grid; gap: 16px; align-content: start; }
.prod-info h1 { font-size: 24px; font-weight: 800; }
.kv { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--muted); }
.kv b { color: var(--ink); font-weight: 600; }
.more-link { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--blue); }
.copy { border: 0; background: none; color: var(--blue); cursor: pointer; padding: 0 4px; }
.prod-info .price { font-size: 30px; }
.buyrow { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--white); }
.qty button { border: 0; background: var(--field); width: 36px; cursor: pointer; font-size: 16px; }
.qty input { width: 52px; border: 0; text-align: center; -moz-appearance: textfield; padding: 9px 0; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.lead { font-size: 15px; max-width: 62ch; margin: 0; }
.prod-tabs { background: var(--white); border-radius: 4px; padding: 6px 28px 28px; margin-bottom: 16px; }
.prod-tabs .tabs { border-bottom: 1px solid var(--line); margin-bottom: 18px; gap: 18px; }
.prod-tabs .tabs button { border-radius: 0; padding: 14px 0; background: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.prod-tabs .tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--blue); }
.specs { width: 100%; max-width: 760px; border-collapse: collapse; }
.specs th, .specs td { padding: 9px 0; border-bottom: 1px dashed var(--line); text-align: left; vertical-align: top; }
.specs th { font-weight: 400; color: var(--muted); width: 45%; padding-right: 16px; }
.raw { color: var(--muted); font-size: 14px; max-width: 80ch; }

/* Cart */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; padding-bottom: 48px; align-items: start; }
.cart-list { background: var(--white); border-radius: 4px; }
.cart-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto 130px 32px; gap: 16px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-row .pic { width: 72px; height: 72px; display: grid; place-items: center; }
.cart-row .pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cart-row .pic i, .cart-row .pic svg { font-size: 30px; color: #c5ccd5; }
.cart-row a:hover { color: var(--blue); }
.cart-row .sum { text-align: right; font-weight: 800; }
.rm { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; }
.rm:hover { color: var(--ink); }
.checkout { background: var(--white); border-radius: 4px; padding: 22px; display: grid; gap: 12px; position: sticky; top: 150px; }
.checkout h2 { font-size: 18px; font-weight: 800; }
.field { display: grid; gap: 4px; }
.field label { font-size: 13px; font-weight: 600; }
.field label em { color: var(--orange); font-style: normal; }
.field input, .field textarea { border: 1px solid var(--line); border-radius: 6px; padding: 9px 11px; background: var(--white); }
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 12px; font-weight: 600; }
.total b { font-size: 22px; font-weight: 800; }
.note { font-size: 12px; color: var(--muted); }
.err { font-size: 13px; color: var(--orange); font-weight: 600; }
.done { background: var(--white); border-radius: 4px; padding: 40px 28px; max-width: 620px; margin: 0 auto 48px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.done .ok { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: var(--white); display: grid; place-items: center; font-size: 24px; }
.done h1 { font-size: 24px; font-weight: 800; }
.done table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.done td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.done td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }

/* Text pages */
.page-lead { max-width: 720px; margin: -4px 0 24px; font-size: 17px; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.step { background: var(--white); border-radius: 4px; padding: 22px; display: grid; align-content: start; gap: 10px; }
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-top i, .step-top svg { font-size: 26px; color: var(--blue); opacity: .85; }
.step-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 800; }
.step h2 { font-size: 17px; font-weight: 800; }
.step p { margin: 0; color: var(--muted); line-height: 1.5; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contact-card { background: var(--white); border-radius: 4px; padding: 22px 22px 22px 74px; position: relative; display: grid; gap: 4px; min-height: 92px; align-content: center; }
.contact-card i, .contact-card svg { position: absolute; left: 22px; top: 50%; translate: 0 -50%; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: 17px; }
.contact-card span { font-size: 13px; color: var(--muted); }
.contact-card b { font-size: 17px; font-weight: 700; }
a.contact-card:hover b { color: var(--blue); }
.cta-band { margin-block: 12px 48px; background: var(--blue); color: var(--white); border-radius: 4px; padding: 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-band h2 { font-size: 22px; font-weight: 800; }
.cta-band p { margin: 6px 0 0; opacity: .85; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.pill-btn.light { background: var(--white); color: var(--blue); }
.pill-btn.light:hover { background: var(--blue-soft); }
.cta-phone { font-size: 20px; font-weight: 800; color: var(--white); }
.zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.zone { background: var(--white); border-radius: 4px; padding: 22px; display: grid; align-content: start; gap: 8px; }
.zone .step-top b { font-size: 16px; font-weight: 800; }
.zone-streets { font-size: 13px; color: var(--muted); }
.zone-price { font-size: 26px; font-weight: 800; color: var(--blue); }
.zone p { margin: 0; color: var(--muted); line-height: 1.5; }
.block .perks { padding-top: 0; }

footer { background: var(--white); border-top: 1px solid var(--line); }
footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; padding-block: 32px; font-size: 14px; }
footer h3 { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
footer p { margin: 0 0 6px; color: var(--muted); }
footer a:hover { color: var(--blue); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--white); padding: 10px 18px; border-radius: 6px; font-weight: 600; z-index: 60; }

.f-cats { display: grid; gap: 4px; }
.empty-icon { font-size: 40px; color: #c5ccd5; }
.empty.mb { margin-bottom: 48px; }
.pt { padding-top: 16px; }
.related { padding-block: 12px 40px; }
.spacer { height: 32px; }
.ask-sm { font-weight: 600; }
.done { margin-top: 28px; }

/* Server-rendered additions */
.views a { width: 32px; height: 32px; border: 1.5px solid var(--line); border-radius: 4px; background: var(--white); color: var(--muted); display: grid; place-items: center; }
.views a[aria-pressed="true"] { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.sort-form { margin-left: auto; }
.sort-form select { border: 1px solid var(--line); border-radius: 4px; padding: 7px 10px; background: var(--white); }
.reset { display: inline-block; }
.card .bottom form, .rm-form { margin: 0; }
.card .bottom .btn { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field input[type="file"] { padding: 6px 0; border: 0; }
.field.consent label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.field.consent input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.pagy { display: flex; gap: 6px; justify-content: center; padding-top: 18px; }
.pagy a { padding: 6px 11px; border-radius: 4px; background: var(--white); }
.pagy a.current { background: var(--blue); color: var(--white); }
.pagy a:not([href]) { color: var(--muted); }
#toasts .toast + .toast { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }

@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid, .grid.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-layout, .prod, .cart { grid-template-columns: 1fr; }
  .side { display: none; }
  .side.open { display: block; }
  .filter-btn { display: inline-flex; }
  .checkout { position: static; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  body { font-size: 14px; }
  .topbar .hide-sm { display: none; }
  .head .wrap { flex-wrap: wrap; gap: 12px; }
  .search { order: 3; flex-basis: 100%; }
  .menu-bar { grid-template-columns: 1fr 1fr; }
  .menu-bar > a.hide-sm { display: none; }
  .dropdown { grid-template-columns: 1fr; width: 100%; }
  .slide .wrap { grid-template-columns: 1fr; min-height: 0; }
  .slide img { max-height: 160px; order: -1; }
  .slide { min-height: 0; }
  .tiles, .grid, .grid.cols3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perks, .steps, .contact-cards, .zones { grid-template-columns: 1fr; }
  .grid.list .card { flex-wrap: wrap; }
  .grid.list .card .bottom { width: 100%; justify-items: start; text-align: left; }
  .cart-row { grid-template-columns: 56px minmax(0, 1fr) 28px; }
  .cart-row .qty, .cart-row .sum { grid-column: 2; justify-self: start; text-align: left; }
  .cart-row .rm { grid-row: 1; grid-column: 3; }
  footer .wrap { grid-template-columns: 1fr; }
  .prod-info, .prod-tabs { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) { .card, .tile { transition: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.about-text { background: var(--white); border-radius: 4px; padding: 28px; margin-bottom: 48px; line-height: 1.6; }
.about-text p { margin: 0 0 12px; max-width: 860px; }

/* Text pages (privacy policy) */
.prose { max-width: 760px; margin-bottom: 40px; }
.prose h2 { font-size: 18px; margin: 24px 0 8px; }
.prose p { line-height: 1.6; margin: 0; }
