/* Шрифт Onest лежит на самом сайте (public/fonts; раньше грузился с Google — два лишних соединения до первого текста;
 * владелец, 26 ноября 2026 — скорость на телефоне). Один файл на все толщины; русские буквы, латиница и отдельно
 * маленький файл со знаками ₸ и ₽. Пока шрифт грузится, текст виден обычным шрифтом телефона (swap). */
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/onest-cyr.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/onest-lat.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/onest-cur.woff2) format('woff2');
  unicode-range: U+20B8, U+20BD; }
/* SVPROTUNING — внешний вид сайта для покупателей. Тёмная (графитовая) шапка, светлый фон, фирменный зелёный — для
 * кнопок действия. Телефон — правила внутри @media (max-width: 760px) и уже ниже. */
/* цвета сайта: графит (шапка, подвал), фон, текст, зелёный (кнопки), рамки, «в наличии», «под заказ», ошибка */
:root {
  --accent: #76BC21; --ink: #17191C; --graphite: #1B1D20; --ground: #F4F4F1; --line: #E3E4DF; --line2: #EDEEEA;
  --muted: #5F625C; --soft: #3E413B; --ok: #3F6E0C; --wait: #8A5200; --err: #B3261E; --tint: #EEF6E4; --ph: #E9EAE5;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* страница никогда не шире экрана: ничто не заставит её ездить вбок на телефоне */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
/* общее: шрифт Onest, ссылки, заголовки, поля и кнопки наследуют шрифт, рамка фокуса для клавиатуры */
body { margin: 0; background: var(--ground); color: var(--ink); font: 15px/1.45 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
a { color: var(--ok); }
a:hover { color: #2D500A; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: 28px; font-weight: 800; margin: 6px 0 4px; }
h2 { font-size: 22px; font-weight: 800; margin: 0 0 10px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); font-size: 14px; }
.mono { font-family: ui-monospace, monospace; }

/* кнопки: зелёная (главная), белая, прозрачная (на тёмном), маленькая, большая */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.btn--p { background: var(--accent); color: var(--ink); }
.btn--p:hover { filter: brightness(.94); color: var(--ink); }
.btn--s { background: #fff; color: var(--ink); border-color: #D3D5CE; font-weight: 500; }
.btn--s:hover { background: #F1F2EE; color: var(--ink); }
.btn--g { background: transparent; color: #fff; border-color: #4A4E54; }
.btn--g:hover { color: #fff; border-color: #7A7E84; }
.btn--sm { min-height: 40px; padding: 0 14px; }
.btn--big { font-size: 16px; flex: 1 1 180px; }

/* верхняя строка: телефоны и переключатель валюты ₸ $ ₽ */
.topline { background: #fff; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.topline__in { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; }
.topline__r { flex: 1; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; min-width: 0; }
.topline__ph { min-width: 0; }
.topline__ph a { color: inherit; text-decoration: none; white-space: nowrap; }
.topline__ph a:hover { color: var(--ink); }
/* номер и за ним кнопка WhatsApp (зелёная, белые буквы — 5,4:1); на телефоне — только значок в зелёном кружке */
.topline__p { display: inline-flex; align-items: center; gap: 8px; }
.topline__ph a.topline__wa { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 10px 0 7px; border-radius: 13px; background: #0F7A40; color: #fff; font-size: 12px; font-weight: 600; }
.topline__ph a.topline__wa:hover { color: #fff; filter: brightness(1.08); }
.topline__wa .wa-ico { width: 16px; height: 16px; flex: none; }
.cur { display: flex; gap: 2px; border: 1px solid #D3D5CE; border-radius: 9px; padding: 2px; }
.cur a { min-height: 30px; padding: 0 10px; border-radius: 7px; font-weight: 600; color: var(--soft); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; } /* gap — знак и код не сливаются: «₸ KZT» */
.cur a.on { background: var(--ink); color: #fff; }

/* шапка: логотип, значки, поиск, «Мои заказы», корзина */
.hdr { background: var(--graphite); color: #fff; }
.hdr__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; flex-direction: column; color: #fff; text-decoration: none; line-height: 1; min-height: 44px; justify-content: center; }
.logo:hover { color: #fff; }
.logo__w { font-weight: 800; font-size: 23px; letter-spacing: .02em; }
.logo__w b { color: var(--accent); font-weight: 800; }
.logo__w--sm { font-size: 18px; color: #fff; }
.logo__s { font-size: 11px; color: #B9BBB4; margin-top: 5px; letter-spacing: .06em; }
/* скопировать ссылку на эту страницу / поделиться — сразу после логотипа (public/shop.js; «Поделиться» — только где
 * браузер умеет) */
.hshare { display: inline-flex; gap: 6px; flex: none; }
.hshare__b { width: 42px; height: 42px; border-radius: 10px; border: 1px solid #3A3D42; background: #2A2D31; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.hshare__b svg { width: 20px; height: 20px; }
.hshare__b:hover { background: #33363B; border-color: #4A4D52; }
.hshare__b:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.hshare__b[hidden] { display: none; }
.search { flex: 1 1 300px; display: flex; gap: 8px; min-width: 0; }
.search input { flex: 1; min-width: 0; min-height: 44px; border-radius: 10px; border: 1px solid #3A3D42; background: #2A2D31; color: #fff; padding: 10px 12px; font-size: 15px; }
.search input::placeholder { color: #A9ACA4; }
.search__b { min-width: 48px; min-height: 44px; border-radius: 10px; border: 1px solid #3A3D42; background: #2A2D31; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.cartlink { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-height: 44px; }
.cartlink:hover { color: #fff; }
.cartlink__i { position: relative; display: inline-flex; }
/* сколько товаров: маленький кружок на значке корзины (не виден, пока корзина пуста) */
.cartlink__n { position: absolute; top: -7px; right: -9px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 11.5px; font-weight: 800; line-height: 19px; text-align: center; }
.cartlink__n:empty, .cartlink__n[data-zero] { display: none; }
.cartlink__s { font-weight: 700; white-space: nowrap; }
.mylink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; justify-content: center; color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
.mylink:hover { color: #fff; }
/* полоса моделей под шапкой (E30, E34, …) */
.models { border-top: 1px solid #2C2F33; }
.models__in { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: thin; }
.models a { min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; background: #2A2D31; color: #E4E5E0; text-decoration: none; display: inline-flex; align-items: center; }
.models a.on, .models a:hover { background: var(--accent); color: var(--ink); }

/* основная часть страницы и белые блоки */
.main { padding-top: 20px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 28px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.box--tight { padding: 8px; }
.box--flush { padding: 0; overflow: hidden; }
/* /staff — «этот браузер не считается»: короткая страница для владельца */
.staffp { max-width: 560px; margin: 24px auto; display: flex; flex-direction: column; gap: 12px; }
.staffp h1 { margin: 0; font-size: 22px; }
.staffp p { margin: 0; }
.box--info { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--soft); padding: 14px 16px; }
.box--info b { color: var(--ink); }
/* блок, спрятанный скриптом (атрибут hidden), остаётся спрятанным, даже если его класс задаёт display (сообщение пустой
 * корзины) */
[hidden] { display: none !important; }
.empty { text-align: center; color: var(--muted); padding: 32px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty b, .empty h1 { color: var(--ink); }
.empty__p { margin: 0; max-width: 560px; line-height: 1.6; }
/* разделы магазина под «ничего не нашлось» в поиске (noResults в src/views/shop.js) */
.empty__cats { width: 100%; max-width: 760px; margin: 14px 0 0; text-align: left; }
.empty__h { grid-column: 1 / -1; font-size: 14px; font-weight: 600; color: var(--ink); }


/* разделы главной и списков */
.sec { display: flex; flex-direction: column; gap: 14px; }
.sec__h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec__h h2 { font-size: 24px; margin: 0; }
.sec__h a { font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
/* «Смотреть все» под товарами главной — по центру, кнопка до 300 px (видно, что она посередине) */
.sec__more { display: flex; justify-content: center; margin-top: 6px; }
.sec__more .btn { flex: 0 1 300px; min-height: 52px; font-weight: 600; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.two h2 { font-size: 18px; }
.two ul { margin: 0; padding-left: 18px; color: var(--soft); display: flex; flex-direction: column; gap: 4px; font-size: 14px; }

/* карточки товаров в сетке: фото 4:3 с плашками, название, цена, наличие */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s; }
.card:hover { border-color: #B9BCB3; }
.card__a { color: inherit; text-decoration: none; display: flex; flex-direction: column; flex: 1; }
.card__a:hover { color: inherit; }
.card__img { aspect-ratio: 4 / 3; background: var(--ph); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.noimg { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.noimg--big { font-size: 14px; }
.badge { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 700; background: var(--ink); color: #fff; padding: 3px 7px; border-radius: 6px; }
.badge--big { font-size: 12px; left: 14px; top: 14px; padding: 4px 9px; }
/* вторая плашка, в правом углу: «Аналог», «Оригинал», «3D»… — белая с зелёной рамкой и зелёными буквами: видна и на
 * зелёной траве, и на белом фото, и не путается с чёрной плашкой модели */
.badge--r { left: auto; right: 10px; max-width: calc(50% - 14px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #fff; color: #2F5E0A; box-shadow: inset 0 0 0 1.5px #3F7D12, 0 1px 4px rgba(0, 0, 0, .25); }
.badge--big.badge--r { left: auto; right: 14px; }
/* третья, внизу слева: сколько получит покупатель — «2 шт», «Пара», «Комплект» */
.badge--b { top: auto; bottom: 10px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.badge--big.badge--b { top: auto; bottom: 14px; }
.badge:not(.badge--r) { max-width: calc(50% - 14px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__b { padding: 12px 12px 4px; display: flex; flex-direction: column; gap: 6px; }
.card__t { font-size: 14px; font-weight: 500; line-height: 1.35; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__f { padding: 8px 12px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.price { font-weight: 700; font-size: 17px; }
.price s, .pp__price s { color: #6B6E68; font-weight: 400; font-size: .8em; }
.stock { font-size: 12.5px; }
.stock--ok { color: var(--ok); }
.stock--wait { color: var(--wait); }
/* товар скрыт в админке — сейчас нет в наличии: надпись красная, под ней «Узнать, когда появится, — напишите нам» */
.stock--out { color: var(--err); font-weight: 600; }
.pp__gone { margin: 6px 0 0; font-size: 15px; color: var(--soft); }
/* товар без цены («Нет цены» в админке): под «Закончился» — что будет, если положить в корзину */
.pp__ask { margin: 6px 0 0; font-size: 15px; color: var(--soft); }

.cat__main { min-width: 0; }
/* рубрики раздела: плитки «название · сколько товаров» */
.subcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin: 6px 0 22px; }
.subcat { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 12px 8px 16px; border-radius: 12px; background: #fff; border: 1px solid #E3E5DF; color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s; }
.subcat:hover { border-color: var(--accent); background: #FAFCF6; }
.subcat:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.subcat__t { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.subcat__n { flex: none; min-width: 28px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--muted); background: #F2F3EF; border-radius: 999px; padding: 3px 8px; }
.subcat:hover .subcat__n { background: var(--accent); color: var(--ink); }
.subcat__go { flex: none; font-size: 20px; line-height: 1; color: #A3A79E; }
.subcats--only { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.subcats--only .subcat { min-height: 76px; padding: 12px 16px 12px 20px; border-radius: 14px; }
.subcats--only .subcat__t { font-size: 16.5px; }
/* «Все товары раздела» — под плитками подгрупп раздела (BMW E30, «Передняя ходовая»), над лентой его товаров */
.cat__all { margin: 4px 0 6px; font-size: 18px; }
/* строка пути «Главная / … / …» */
.crumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.crumbs a { color: var(--muted); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin: 14px 0 16px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; background: #fff; color: var(--ink); border: 1px solid #D3D5CE; text-decoration: none; }
.pill:hover { color: var(--ink); border-color: #A9ACA4; }
.pill.on { background: var(--ink); color: #fff; border-color: var(--ink); }
/* страницы под списком (src/views/shop.js, pager): «← Назад» и «Дальше →», «Страница 2 из 12 · впереди ещё 10», номера */
.pager { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 24px; }
.pager__go { display: flex; gap: 10px; width: 100%; max-width: 520px; justify-content: center; }
.pager__go a { flex: 1 1 0; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-weight: 600; font-size: 16px; text-decoration: none; }
.pager__next { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.pager__next:hover { color: #fff; opacity: .92; }
.pager__prev { background: #fff; color: var(--ink); border: 1px solid #D3D5CE; max-width: 180px; }
.pager__info { margin: 0; color: var(--muted); font-size: 14px; text-align: center; }
.pager__nums { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pager__nums a, .pager__nums span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #fff; border: 1px solid #D3D5CE; text-decoration: none; color: var(--ink); }
.pager__nums span { border: 0; background: none; min-width: 24px; }
/* бесконечная лента: строка под товарами, пока приходят следующие */
.more { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; margin-top: 12px; color: var(--muted); font-size: 14px; }
.more__spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid #D3D5CE; border-top-color: var(--accent); animation: more-spin .8s linear infinite; }
@keyframes more-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .more__spin { animation-duration: 2.4s; } }
.pager__nums a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.rich { color: var(--soft); }
/* текст раздела под плитками подразделов (src/cattexts.js): не шире удобной строки, чуть мельче */
.cat__text { max-width: 780px; margin: 0 0 16px; font-size: 14.5px; line-height: 1.5; }
.cat__text p:last-child { margin-bottom: 0; }
.rich p { margin: 0 0 10px; }
.rich ul, .rich ol { padding-left: 20px; margin: 0 0 10px; }

/* «← Назад» над товаром: обратно в список, откуда пришёл покупатель (public/shop.js), рядом путь */
.pp__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: -12px; }
.pp__top .crumbs { flex: 1 1 260px; min-width: 0; }
.pp__back { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-height: 44px; padding: 5px 14px 5px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-decoration: none; line-height: 1.2; }
.pp__back > span { display: flex; flex-direction: column; min-width: 0; }
.pp__back b { font-size: 15px; }
.pp__where { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62vw; }
.pp__where:empty { display: none; }
.pp__back:hover { border-color: #C9CBC4; background: #F6F7F4; }
.pp__back:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 560px) { .pp__top .crumbs { display: none; } .pp__top { margin-bottom: -14px; } }
/* «← Назад» внизу товара — под описанием и оплатой, перед «Из этого же раздела» */
.pp__bottom { margin: 18px 0 4px; }
/* «← Назад» на разделах, поиске, корзине и страницах (сверху и внизу); в живом поиске её нет — там «назад» — стереть запрос */
.cat__main > .pp__top, .pp__top + h1, .pp__top + .phead, .pp__top + .page { margin-top: 0; }
.cat__main > .pp__top { margin-bottom: 10px; }
.live__res .pp__top > .pp__back, .live__res .pp__bottom { display: none; }
/* страница товара: галерея слева, покупка справа (на телефоне — друг под другом) */
.pp { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.pp__gal { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pp__main { aspect-ratio: 4 / 3; background: var(--ph); border-radius: 16px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.pp__main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pp__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.pp__thumbs button { aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--ph); cursor: pointer; }
.pp__thumbs button.on { border-color: var(--ink); }
.pp__thumbs img { width: 100%; height: 100%; object-fit: cover; }
/* видео: ▶ на миниатюре; играет — в большой картинке, плашки прячутся */
.pp__thumbs .pp__vt { position: relative; background: #2A2C2F; }
.pp__vplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 32px; height: 32px; border-radius: 50%; background: rgba(0, 0, 0, .62); color: #fff; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.pp__vplay svg { width: 16px; height: 16px; margin-left: 2px; }
.pp__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; width: 72px; height: 72px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pp__play svg { width: 32px; height: 32px; margin-left: 4px; }
.pp__player { position: absolute; inset: 0; z-index: 2; background: #000; }
.pp__player iframe, .pp__player video { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.pp__main--play .badge, .pp__main--play .pp__play { display: none; }
.pp__info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.pp__info h1 { font-size: 26px; line-height: 1.25; margin: 0; }
.pp__price { font-size: 32px; font-weight: 800; }
.pp__price s[hidden] { display: none; }
/* «Экономия 4 000 ₸ · −36%» под ценой: прежняя цена зачёркнута (своя «До скидки» или 5 дней после снижения) */
.pp__save { margin: 2px 0 0; color: #2F7A0F; font-size: 15px; font-weight: 700; }
.pp__save[hidden] { display: none; }
/* «−36%» у цены в карточке списка */
.price__off { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 6px; background: #E8F6DC; color: #2F7A0F; font-size: 12px; font-weight: 800; vertical-align: 2px; }
/* блок покупки: варианты, количество, «В корзину», «Узнать цену» */
.buy { display: flex; flex-direction: column; gap: 12px; }
.buy__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.vars { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.vars legend { font-size: 13px; font-weight: 600; color: var(--soft); margin-bottom: 8px; padding: 0; }
.var { position: relative; }
.var input { position: absolute; opacity: 0; }
.var span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px; font-size: 14px; font-weight: 600; background: #fff; border: 1px solid #D3D5CE; cursor: pointer; }
.var input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.var input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.qty { display: flex; align-items: center; border: 1px solid #D3D5CE; border-radius: 10px; background: #fff; }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; cursor: pointer; }
.qty input { width: 40px; text-align: center; border: 0; font-weight: 600; background: none; }
.quick summary { list-style: none; width: 100%; }
.quick summary::-webkit-details-marker { display: none; }
.quick__f { margin-top: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.quick__f label { font-size: 13px; font-weight: 600; color: var(--soft); }
.quick__row { display: flex; gap: 8px; flex-wrap: wrap; }
.quick__row .tel { flex: 1 1 220px; }
/* телефон: страна (флаг и код) и номер в одном поле */
.tel { display: flex; min-width: 0; }
.tel__cc { position: relative; flex: none; display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 24px 0 11px; border: 1px solid #D3D5CE; border-right: 0; border-radius: 10px 0 0 10px; background: #F2F3EF; font-size: 20px; line-height: 1; white-space: nowrap; }
.tel__cc::after { content: ''; position: absolute; right: 9px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.tel__cc:focus-within { outline: 2px solid var(--accent); outline-offset: 0; z-index: 1; }
.tel .tel__cc select { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; opacity: 0; cursor: pointer; font-size: 16px; padding: 0; border: 0; }
.tel input[data-phone] { flex: 1 1 auto; min-width: 0; border-radius: 0 10px 10px 0; }
.err { color: var(--err); font-size: 14px; }
.pp__more { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.pp__desc { flex: 999 1 480px; min-width: 0; }
.pp__chars { flex: 1 1 300px; min-width: 0; }
.pp__chars:only-child { max-width: 560px; }
.pp__pay { flex: 1 1 100%; } /* оплата и консультация: под описанием и характеристиками */
.pp__chars dl { margin: 0; }
.pp__chars dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line2); font-size: 14px; }
.pp__chars dt { color: var(--muted); }
.pp__chars dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.pp__chars dd.mono { font-size: 12.5px; }

/* поля ввода */
input:not([type=radio]):not([type=checkbox]), textarea, select { width: 100%; min-height: 44px; border: 1px solid #D3D5CE; border-radius: 10px; padding: 10px 12px; background: #fff; font-size: 15px; }
.search input { width: auto; }
/* поле белое (общее правило полей): буквы должны быть тёмными; 16px — iPhone не увеличивает страницу */
.search #q { background: #fff; color: var(--ink); border-color: #fff; font-size: 16px; }
@media (max-width: 760px) { input:not([type=radio]):not([type=checkbox]), textarea, select { font-size: 16px; } }
.search #q::placeholder { color: #8A8D86; }
.search { position: relative; }
.qty input:not([type=radio]):not([type=checkbox]) { min-height: 0; border: 0; padding: 0; width: 40px; background: none; }
.qty input:focus { outline: none; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: #9AA394; }
label { font-size: 13px; font-weight: 600; color: var(--soft); display: block; margin-bottom: 6px; }

/* корзина: строки товаров (сетка) и форма заказа */
/* слева товары и сразу под ними «Итого», справа (на телефоне — ниже) форма заказа. Ширину .cartwrap знают правила
 * ниже (container) — «Итого» у кнопки видно, только когда форма стоит справа от товаров */
.cartwrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; container: cartw / inline-size; }
.cartleft { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cartleft .cartgone { margin: 0; }
/* «Покупатель»: в два столбца, когда помещаются (как раньше — от 414 px), — ФИО | Телефон, ниже Город | «＋ Комментарий
 * к заказу» (кнопка прямо под телефоном, высотой с поле); в один столбец — ФИО, телефон, сразу под ним кнопка, потом
 * город. Поле комментария открывается под всеми полями */
/* ширину знает обёртка .fbuy (у fieldset в Safari container-запросы ненадёжны) */
.fbuy { container: cbuy / inline-size; }
.fgrid.fgrid--buy { grid-template-columns: minmax(0, 1fr); }
.fgrid--buy .fb--name { order: 1; } .fgrid--buy .fb--phone { order: 2; } .fgrid--buy .fb--note { order: 3; margin-top: -4px; } .fgrid--buy .fb--city { order: 4; }
@container cbuy (min-width: 414px) {
  .fgrid.fgrid--buy { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fgrid--buy .fb--city { order: 3; } .fgrid--buy .fb--note { order: 4; margin-top: 0; display: flex; align-items: flex-end; }
  .fgrid--buy .fb--note .cnote__open { width: 100%; }
}
.cnote__open { min-height: 44px; padding: 0 14px; border: 1px dashed #B9BDB3; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; white-space: nowrap; cursor: pointer; }
.cnote__open:hover { background: #F6F7F4; }
.cnote__open--on { border-style: solid; border-color: var(--accent, #7ED321); background: #F3FAEA; }
.cnote { margin-top: 12px; }
.cnote textarea { width: 100%; box-sizing: border-box; }
.cartlines { min-width: 0; }
.carttotal .sum__row b { font-size: 26px; }
/* «Итого», ⓘ и две кнопки «поделиться» не помещаются в строку вместе с большой суммой (узкий телефон) — сумма уходит
 * на следующую строку, вправо, а не за край */
.carttotal .sum__row { flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.carttotal .sum__row b { margin-left: auto; }
.sum .sum__row--side { display: none; }
@container cartw (min-width: 896px) { .sum .sum__row--side { display: flex; } }
.cline { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto; grid-template-areas: "img info act sum"; gap: 12px 16px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line2); }
.cline__img { grid-area: img; width: 72px; height: 54px; background: var(--ph); border-radius: 8px; overflow: hidden; display: block; }
.cline__img img { width: 100%; height: 100%; object-fit: cover; }
.cline__t { grid-area: info; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cline__t a { font-weight: 600; color: var(--ink); text-decoration: none; }
.cline__t small { color: var(--muted); }
/* количество, а под ним «Удалить» с корзиной */
.cline__act { grid-area: act; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cline__sum { grid-area: sum; font-weight: 700; min-width: 110px; text-align: right; }
.cline__del { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 10px; border: 0; border-radius: 8px; background: none; color: var(--err); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.cline__del svg { width: 18px; height: 18px; flex: none; }
.cline__del:hover { background: #FBEDEC; }
/* телефон: картинка, название (узко — 3–4 строки) и сумма под ним, а справа количество и «Удалить» под ним — рядом с
 * названием, а не под ним (владелец, 10 ноября 2026) */
@media (max-width: 560px) {
  .cline { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "img info act" "img sum act"; gap: 4px 10px; align-items: start; padding: 12px; }
  .cline__img { width: 56px; height: 42px; }
  .cline__t a { line-height: 1.3; overflow-wrap: anywhere; }
  .cline__sum { align-self: end; text-align: left; min-width: 0; font-size: 17px; padding-top: 4px; }
  .cline__act { gap: 2px; }
  .cline__act .qty button { width: 34px; height: 38px; font-size: 18px; }
  .cline__act .qty input:not([type=radio]):not([type=checkbox]) { width: 28px; }
  .cline__del { min-height: 34px; padding: 2px 6px; font-size: 13.5px; }
}
@media (max-width: 360px) {
  .cline { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 4px 8px; padding: 10px; }
  .cline__img { width: 44px; height: 34px; }
  .cline__t a { -webkit-hyphens: auto; hyphens: auto; } /* длинное слово («Стекловолокно») переносится с дефисом, а не как попало */
  .cline__act .qty button { width: 30px; }
  .cline__act .qty input:not([type=radio]):not([type=checkbox]) { width: 24px; }
}
.checkout { flex: 1 1 360px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.checkout fieldset { margin: 0; min-width: 0; }
/* «Покупатель» стоит внутри блока как заголовок, а не на его рамке */
.checkout legend { float: left; width: 100%; padding: 0; margin: 0 0 12px; font-weight: 800; font-size: 18px; }
.checkout legend + * { clear: both; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border-radius: 12px; border: 1px solid #D3D5CE; background: #fff; margin: 0 0 8px; cursor: pointer; font-weight: 400; color: var(--ink); font-size: 15px; }
.opt input { width: 18px; height: 18px; accent-color: var(--ink); flex-shrink: 0; }
.opt span { display: flex; flex-direction: column; }
.opt small { color: var(--muted); font-size: 13px; }
.opt:has(input:checked) { border: 2px solid var(--ink); background: #FAFAF7; }
.opts2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 8px; }
.addr { margin-top: 6px; }
.sum { display: flex; flex-direction: column; gap: 12px; }
.sum .btn--big { flex: none; min-height: 54px; }
.sum p { margin: 0; }
.sum__row { display: flex; justify-content: space-between; align-items: baseline; }
.sum__row b { font-size: 24px; }
/* «Итого» и ⓘ рядом (под ним — про доставку) */
.sum__l { display: inline-flex; align-items: center; gap: 2px; }
/* «Поделиться корзиной» — две маленькие кнопки сразу за ⓘ у «Итого»: скопировать ссылку и отправить */
.cshare { display: inline-flex; gap: 6px; margin-left: 8px; }
.cshare__b { width: 36px; height: 36px; border-radius: 10px; border: 1px solid #D3D5CE; background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.cshare__b svg { width: 18px; height: 18px; }
.cshare__b:hover { background: #F6F7F4; border-color: #B9BDB3; }
.cshare__b:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cshare__b[hidden] { display: none; }
.sum__l .tip { width: 30px; height: 30px; }
.sum .sum__tip { margin: -4px 0 0; }
/* подпись поля и ⓘ рядом в одну строку (комментарий в корзине) */
.labtip { display: flex; align-items: center; gap: 2px; margin-bottom: 6px; }
.labtip label { margin-bottom: 0; }
.labtip .tip { width: 30px; height: 30px; }
/* страница заказа покупателя и «Мои заказы» */
.done { max-width: 680px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.done__ok { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.done .box { width: 100%; }
.line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line2); font-size: 14px; }
.line--sum { font-size: 16px; border: 0; }
/* скидка, которую магазин дал в эту корзину (src/carts.js): полоса над товарами со временем, которое осталось */
.cartoffer { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; padding: 14px 16px; background: #F1F8E6; border: 1px solid #BFDD99; }
.cartoffer__h { font-size: 18px; color: #2F5A0C; }
.cartoffer [data-offer-left] { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cline__disc { color: #3F6E0C; }
.cline__sum s, .cline__t s, [data-cart-sum] s { color: var(--muted, #6B6E66); font-weight: 400; margin-right: 4px; }
.cline__sum s { display: block; font-size: 13px; }
/* строка заказа со скидкой, которую магазин дал в корзину */
.line__disc { color: #3F6E0C; font-weight: 700; white-space: nowrap; }
.done__st { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.done__btns { display: flex; flex-wrap: wrap; gap: 10px; }
/* статус заказа для покупателя */
.st { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #EEF0EA; color: var(--soft); white-space: nowrap; }
.st::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.st--new { background: #FBECEB; color: #B23A33; }
.st--wait { background: #FFF3DC; color: #8A5200; } /* «Ждём поступления» — заказ в архиве магазина */
.done__wait { background: #FFF6E6; border: 1px solid #F1D9A8; border-radius: 10px; padding: 10px 12px; }
.st--dispatched { background: #E7F2F8; color: #22678A; }
.st--approved { background: var(--tint); color: var(--ok); }
.st--delivered { background: #E2F3E6; color: #1D7535; }
/* «Мои заказы» */
.nw { white-space: nowrap; }
.myo-list { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.myo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 14px 16px; color: var(--ink); text-decoration: none; }
.myo:hover { color: var(--ink); border-color: var(--accent); }
.myo__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.myo__h b { font-size: 16px; }
.myo__l { color: var(--soft); font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.myo__s { white-space: nowrap; justify-self: end; }
.myo__new { font-size: 12px; font-weight: 800; color: var(--ink); background: var(--accent); border-radius: 999px; padding: 2px 8px; }
/* заголовок с ⓘ и справа колокольчик «сообщить, когда статус изменится» */
.phead { display: flex; align-items: center; gap: 4px 6px; max-width: 760px; width: 100%; }
.phead h1 { margin: 6px 0 4px; min-width: 0; }
.done .phead h1 { margin: 0; }
/* кнопка ⓘ и раскрывающаяся подсказка */
.tip { flex: none; width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.tip:hover, .tip[aria-expanded="true"] { color: var(--ink); background: #ECEDE8; }
.tipbox { max-width: 760px; margin: 2px 0 10px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--soft); font-size: 14px; }
/* ⓘ после названия товара: фирмы этой детали с парой слов о каждой («Фирмы» в админке) */
.tip--brand { width: 30px; height: 30px; margin-left: 6px; vertical-align: -5px; color: var(--green-d, #4E8A12); }
.brandbox { color: var(--ink); }
.brandbox__t { display: block; margin-bottom: 6px; font-size: 14px; }
.brandbox dl { margin: 0; display: grid; gap: 2px 0; }
.brandbox dt { font-weight: 700; margin-top: 6px; }
.brandbox dt:first-child { margin-top: 0; }
.brandbox dd { margin: 0; color: var(--soft); white-space: pre-line; }
.obell { position: relative; flex: none; margin-left: auto; width: 46px; height: 46px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--muted); cursor: pointer; }
.obell:hover { color: var(--ink); border-color: #C9CBC3; }
.obell--on { background: var(--tint); border-color: var(--accent); color: var(--ok); }
.obell--on svg path:first-child { fill: currentColor; fill-opacity: .25; }
.obell:disabled { opacity: .6; }
.obell__dot { display: none; position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: #E5534B; box-shadow: 0 0 0 2px #fff; }
.obell--dot .obell__dot { display: block; }
.pushnote { max-width: 760px; margin: 2px 0 10px; padding: 10px 14px; border-radius: 12px; background: #FFF6E5; color: #6B4A00; font-size: 14px; }
.done .pushnote { margin: 0; }
/* строка часов iPhone (время, батарея) поверх страницы: под ней тёмная полоса, страница начинается ниже.
   Со значка «Домой» строка часов теперь своя, непрозрачная, над страницей (STATUS_BAR в src/views/shop.js) — отступ там 0, полосы нет */
body { padding-top: env(safe-area-inset-top, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; z-index: 95; height: env(safe-area-inset-top, 0px); background: var(--graphite); pointer-events: none; }
/* Невидимая полоса у верхнего края (только сенсорные экраны): Safari 26 на iPhone/iPad ищет закреплённый элемент
   у самого верха шириной почти во весь экран и выше 10 px — нашёл: красит строку часов его цветом сплошь и не
   размывает под ней страницу; не нашёл — красит цветом фона страницы и размывает верх (номер, WhatsApp и курс
   были «мутными», владелец, 23 ноября 2026). body::before для этого не годится — Safari считает его самим body.
   Цвет берётся из background-color, а рисуется он только под текстом (background-clip: text), текста нет —
   поэтому полосу не видно и она ничего не закрывает; нажатия проходят сквозь неё. Не убирать. */
.sbar { display: none; }
@media (hover: none) and (pointer: coarse) {
  .sbar { display: block; position: fixed; top: 0; left: 0; right: 0; height: 12px; z-index: 2147483647; background-color: #1B1D20; -webkit-background-clip: text; background-clip: text; color: transparent; pointer-events: none; }
}
.page { max-width: 860px; }

/* подвал: логотип, текст владельца, адрес, телефоны, ссылки */
.ftr { background: var(--graphite); color: #C8CAC3; }
.ftr__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; }
.ftr__in > div { display: flex; flex-direction: column; gap: 6px; }
.ftr b { color: #fff; }
.ftr a { color: #C8CAC3; text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr p { margin: 0; }

/* короткое сообщение внизу экрана */
/* после «В корзину»: в сообщении внизу — ссылка «Оформить заказ →»; кнопка, по которой уже положили, — тоже «Оформить заказ →» */
.toast__go { color: #9be15d; font-weight: 700; text-decoration: underline; white-space: nowrap; margin-left: 4px; }
.btn.btn--go, .btn.btn--go:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
/* оформление заказа: поле, которое нужно исправить, — красная рамка и подсказка под ним */
.checkout .fbad input:not([type=checkbox]), .checkout .fbad .tel__cc { border-color: #c62828 !important; }
.checkout .agree.fbad input[type=checkbox] { outline: 2px solid #c62828; outline-offset: 2px; }
.fmsg { display: block; color: #c62828; font-size: 13px; margin-top: 4px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,.18); max-width: calc(100% - 32px); }

/* ТЕЛЕФОН (до 760 px): всё, что меняется на узком экране */
@media (max-width: 760px) {
  /* верхняя строка на телефоне: телефоны слева, ₸ $ ₽ справа — одной строкой; адрес — в подвале */
  .topline__in { flex-wrap: nowrap; }
  .topline__r { flex: 1; justify-content: space-between; flex-wrap: nowrap; gap: 10px; }
  .topline__ph { flex: 1 1 auto; display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
  .topline__dot { display: none; }
  .topline__ph a { font-size: 13px; color: var(--soft); }
  .topline__p { gap: 6px; }
  .topline__ph a.topline__wa { width: 24px; min-height: 24px; height: 24px; padding: 0; justify-content: center; border-radius: 50%; }
  .topline__wa span { display: none; }
  .cur { flex: none; }
  .cur a { padding: 0 9px; min-width: 34px; justify-content: center; font-size: 15px; }
  .cur__c { display: none; }
  h1 { font-size: 24px; }
  .logo__s { display: none; }
  .hdr__in { gap: 10px 12px; }
  .search { order: 5; flex-basis: 100%; }
  .cartlink { margin-left: auto; }
  .mylink { margin-left: auto; }
  .mylink:not([hidden]) + .cartlink { margin-left: 0; }
  .mylink__s { display: none; }
  .hshare__b { width: 38px; height: 38px; }
  /* одна строка: логотип, «Скопировать» / «Поделиться», «Мои заказы», корзина (fitHeader в public/shop.js): не
   * помещается — сумма корзины мелко под значком; всё ещё нет — всё чуть меньше; потом у корзины только число (сумма —
   * в самой корзине) */
  .hdr--stack .cartlink { flex-direction: column; justify-content: center; gap: 2px; }
  .hdr--stack .cartlink__s { font-size: 11.5px; line-height: 1; }
  .hdr--tight .cartlink__s { display: none; }
  .hdr__in.hdr--tighter { column-gap: 6px; }
  .hdr--tighter .logo__w { font-size: 18px; }
  .hdr--tighter .hshare { gap: 4px; }
  .hdr--tighter .hshare__b { width: 34px; height: 34px; }
  .hdr--tighter .hshare__b svg { width: 18px; height: 18px; }
  .hdr--tighter .mylink { min-width: 34px; }
  /* на телефоне подгруппы стоят одной колонкой, на всю ширину экрана */
  .subcats { grid-template-columns: 1fr; gap: 8px; margin-bottom: 16px; }
  .subcat { min-height: 56px; padding: 8px 12px 8px 16px; gap: 10px; border-radius: 12px; }
  .subcat__t { font-size: 15px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card__f .btn { width: 100%; }
  .pp__price { font-size: 28px; }
}

/* самые узкие телефоны (320–370 px): логотип и корзина помещаются в одну строку */
@media (max-width: 370px) {
  .logo__w { font-size: 19px; }
  .cartlink { gap: 6px; }
  .cartlink__s { font-size: 14px; }
  .hdr__in { gap: 10px 8px; }
}

/* потянуть вниз в самом верху → перезагрузка (public/shop.js); собственное «потянуть» браузера тогда выключено */
.ptr-on { overscroll-behavior-y: none; }
.ptr { position: fixed; top: env(safe-area-inset-top, 0px); left: 50%; z-index: 80; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: var(--muted); box-shadow: 0 3px 12px rgba(0, 0, 0, .22); display: flex; align-items: center; justify-content: center;
  transform: translate(-50%, -52px); opacity: 0; pointer-events: none; }
.ptr__i { display: flex; }
.ptr--go { color: var(--ok); }
.ptr--spin svg { animation: ptr-spin .7s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ptr--spin svg { animation-duration: 2s; } }
/* страница заказа: сумма в рублях или долларах под итогом */
.line--rate { display: block; margin: 0; font-size: 13px; color: var(--muted); border: 0; padding-top: 0; }
.line__m s { font-weight: 400; color: var(--muted); font-size: 13px; }
/* заказ: товар заказан без цены, магазин её ещё не вписал — «цену уточним» */
.line__ask { color: var(--wait); font-weight: 700; }
/* значок на экране «Домой» (public/shop.js → .is-app): запас под подвалом, последнее никогда не прячется под краем */
.is-app .ftr { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px) + var(--cut, 0px)); }

/* «Контакты» внизу: телефон с его WhatsApp / Telegram */
.ftr__ph { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ftr a.ftr__chip { font-size: 12.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid #3A3E44; color: #E3E5DF; }
.ftr a.ftr__chip:hover { border-color: var(--accent); text-decoration: none; }
/* страница «Контакты» */
.cdl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.cdl > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.cdl > div:first-child { border-top: 0; padding-top: 0; }
.cdl dt { color: var(--muted); font-size: 14px; padding-top: 2px; }
.cdl dd { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.cph { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cph__n { font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.cph__b { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
@media (max-width: 560px) { .cdl > div { grid-template-columns: minmax(0, 1fr); } }

/* «Добавьте на экран „Домой“» — на телефоне, пока страницу не открыли с её значка (data-a2hs в скрипте) */
.a2hs { display: flex; align-items: flex-start; gap: 12px; background: #fff; border: 1px solid #CFE3B4; border-left: 4px solid var(--accent); border-radius: 12px; padding: 10px 8px 10px 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }
.a2hs__i { flex: none; width: 44px; height: 44px; border-radius: 10px; }
.a2hs__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; line-height: 1.4; color: var(--soft); }
.a2hs__t b { font-size: 15px; color: var(--ink); }
.a2hs__sh { width: 16px; height: 16px; vertical-align: -3px; color: #0A7AFF; }
.a2hs__go { flex: none; align-self: center; min-height: 40px; padding: 0 14px; }
.a2hs__x { flex: none; align-self: flex-start; width: 36px; height: 36px; border: 0; background: none; color: var(--muted); font-size: 16px; border-radius: 8px; cursor: pointer; }
.a2hs__x:hover { background: #F1F2EE; color: var(--ink); }
.wrap > .a2hs { margin-top: 14px; }
@media (max-width: 380px) { .a2hs { gap: 10px; } .a2hs__i { width: 36px; height: 36px; border-radius: 8px; } }
/* страница нарисована уменьшенной на телефоне (масштаб Safari для этого адреса): полоса увеличена обратно на --z,
 * поэтому читается обычного размера */
.a2hs--wide { --z: 1; gap: calc(12px * var(--z)); padding: calc(10px * var(--z)) calc(8px * var(--z)) calc(10px * var(--z)) calc(12px * var(--z)); border-width: calc(1px * var(--z)) calc(1px * var(--z)) calc(1px * var(--z)) calc(4px * var(--z)); border-radius: calc(12px * var(--z)); align-items: center; }
.a2hs--wide .a2hs__t { font-size: calc(13.5px * var(--z)); gap: calc(2px * var(--z)); }
.a2hs--wide .a2hs__t b { font-size: calc(15px * var(--z)); }
.a2hs--wide .a2hs__i { width: calc(36px * var(--z)); height: calc(36px * var(--z)); border-radius: calc(8px * var(--z)); }
.a2hs--wide .a2hs__x { align-self: center; width: calc(36px * var(--z)); height: calc(36px * var(--z)); font-size: calc(16px * var(--z)); border-radius: calc(8px * var(--z)); }
/* фото товара: «2 / 5» над картинкой, ‹ › и точки под ней; нажатие — на весь экран (.lbx) */
.pp__main img[data-main] { cursor: zoom-in; }
.pp__count { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 1; padding: 4px 10px; border-radius: 999px; background: rgba(23, 25, 28, .72); color: #fff; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }
.pp__main--play .pp__count { display: none; }
.pp__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pp__arr { flex: none; width: 48px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pp__arr:hover { border-color: var(--ink); }
.pp__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-width: 0; }
.pp__dots i { width: 7px; height: 7px; border-radius: 50%; background: #CFD1CC; }
.pp__dots i.on { background: var(--ink); }
/* фото на весь экран (чёрный фон) */
.lbx { position: fixed; inset: 0; z-index: 100; background: #000; display: flex; align-items: center; justify-content: center; touch-action: pinch-zoom; }
.lbx[hidden] { display: none; }
.lbx img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lbx__n { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); color: #fff; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lbx__x { position: absolute; top: calc(8px + env(safe-area-inset-top)); right: 8px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 22px; cursor: pointer; }
.lbx__a { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .14); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lbx__a svg { width: 26px; height: 26px; }
.lbx__a--l { left: 8px; } .lbx__a--r { right: 8px; }
html.lbx-on, html.lbx-on body { overflow: hidden; }
/* «Копировать ссылку» и «Поделиться» у товара */
.pp__share { display: flex; flex-wrap: wrap; gap: 8px; }
.pp__copy { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.pp__copy:hover { border-color: var(--ink); }
.pp__copy[hidden] { display: none; }
/* «Согласен(на), чтобы магазин сохранил мои контакты…» — галочка и «Подробнее» */
.agree { font-size: 14px; color: var(--soft); line-height: 1.45; }
.agree__l { display: inline; cursor: pointer; font-weight: 400; color: var(--ink); }
.agree__t a { white-space: nowrap; }
.agree__l input { width: 20px; height: 20px; margin: 0 8px 0 0; vertical-align: -4px; accent-color: var(--accent); cursor: pointer; }
.agree__more { display: inline; padding: 0; border: 0; background: none; color: var(--accent-ink, #3F6E0F); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.agree__t { margin: 8px 0 0; }

/* корзина: «или — Отправить заказ в WhatsApp» под «Подтвердить заказ» (зелёный цвет WhatsApp, белые буквы — контраст
   с тёмно-зелёным #0F7A40 — 5,4:1) и полоса «Корзина из ссылки» сверху, когда корзину открыли по ссылке из сообщения */
.waorder { display: flex; flex-direction: column; gap: 8px; }
.waorder__or { display: flex; align-items: center; gap: 10px; color: var(--muted, #6b6f66); font-size: 14px; }
.waorder__or::before, .waorder__or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.btn.btn--wa, .btn.btn--wa:hover { background: #0F7A40; border-color: #0F7A40; color: #fff; white-space: normal; text-align: center; }
.btn.btn--wa:hover { filter: brightness(.95); }
.btn--wa .wa-ico { width: 22px; height: 22px; flex: none; }
.waorder small { color: var(--muted, #6b6f66); font-size: 13px; line-height: 1.35; }
.cartfrom { margin-bottom: 16px; background: #f1f8ea; border-color: #c9e2ae; font-size: 15px; line-height: 1.45; }

/* поиск с опечаткой: «По «спойлр» ничего нет. Возможно, вы искали «спойлер» — показываем это.» */
.fixq { margin: -4px 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--tint, #EEF6E4); color: var(--soft); font-size: 15px; }
.fixq a { font-weight: 600; }

/* фото карточки в WebP: <picture> не меняет вёрстку — стили те же, что у <img> */
.card__img picture { display: contents; }

/* ---------- Чат на сайте (public/chat.js, src/chat.js; владелец, 24 ноября 2026) ----------
 * Зелёная кнопка «Чат» справа внизу каждой страницы; подсказка «Есть вопрос?» над ней (один раз за заход); окно
 * переписки — справа внизу на компьютере, на весь экран на телефоне. Свои сообщения покупателя — справа, зелёные;
 * ответы магазина — слева, белые. */
.chatbtn { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px 0 15px; border: 0; border-radius: 26px; background: var(--accent); color: var(--ink); font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 6px 20px rgba(23,25,28,.28); }
.chatbtn:hover { filter: brightness(.97); }
.chatbtn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.chatbtn__n { position: absolute; top: -4px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #D93025; color: #fff; font-size: 12px; line-height: 22px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.chatbtn--new { animation: chatpulse 1.6s ease-in-out 3; }
@keyframes chatpulse { 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .chatbtn--new { animation: none; } }
.chat-open .chatbtn { display: none; }
/* «Есть вопрос по этой детали? Напишите нам здесь» */
.chattip { position: fixed; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); z-index: 61; display: flex; align-items: flex-start; gap: 4px; max-width: min(300px, calc(100vw - 32px)); padding: 4px 4px 4px 0; border-radius: 14px; background: #fff; box-shadow: 0 8px 28px rgba(23,25,28,.22); border: 1px solid var(--line); }
.chattip::after { content: ''; position: absolute; right: 30px; bottom: -7px; width: 12px; height: 12px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
/* «Магазин ответил: …» над кнопкой «Чат» — зелёная полоса слева */
.chattip--reply { border-left: 4px solid var(--accent); }
.chattip__go { flex: 1; padding: 10px 6px 10px 14px; border: 0; background: none; text-align: left; font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--ink); cursor: pointer; }
.chattip__x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-size: 15px; cursor: pointer; }
.chattip__x:hover { background: var(--line2); }
/* окно переписки */
.chatwin { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: flex; flex-direction: column; width: 400px; height: min(580px, calc(100vh - 40px)); border-radius: 16px; background: #fff; box-shadow: 0 16px 48px rgba(23,25,28,.3); overflow: hidden; }
.chatwin[hidden] { display: none; }
.chatwin__h { flex: none; display: flex; align-items: center; gap: 4px; padding: 10px 8px 10px 16px; background: var(--graphite); color: #fff; }
.chatwin__ht { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chatwin__ht b { font-size: 16px; }
.chatwin__ht small { color: #B9BCB4; font-size: 12.5px; }
.chatwin__i, .chatwin__x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: #DADDD6; font-size: 17px; cursor: pointer; }
.chatwin__i:hover, .chatwin__x:hover { background: rgba(255,255,255,.1); color: #fff; }
/* 🔔 в шапке окна: серый с красной точкой — уведомление об ответе можно включить, зелёный — включено */
.chatwin__bell { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: #DADDD6; cursor: pointer; }
.chatwin__bell[hidden] { display: none; }
.chatwin__bell i { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 2px var(--graphite); }
.chatwin__bell--on { color: #8FD14F; }
.chatwin__bell--on i { display: none; }
.chatwin__bell:hover { background: rgba(255,255,255,.1); }
.chatwin__info { flex: none; max-height: 45%; overflow-y: auto; padding: 10px 16px; background: var(--tint); color: var(--soft); font-size: 13.5px; border-bottom: 1px solid var(--line); }
.chatwin__info p { margin: 0 0 6px; }
.chatwin__forget { padding: 6px 10px; border: 1px solid #E5B9B5; border-radius: 8px; background: #fff; color: var(--err); font-size: 13px; font-weight: 600; cursor: pointer; }
.chatwin__m { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 12px 12px 6px; background: var(--ground); }
/* одно сообщение: пузырь, под ним — время */
.cm { display: flex; flex-direction: column; max-width: 84%; margin: 0 0 8px; }
.cm--c { margin-left: auto; align-items: flex-end; }
.cm--a { margin-right: auto; align-items: flex-start; }
.cm__b { padding: 8px 12px; border-radius: 16px; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.cm--c .cm__b { background: #D6EDBD; color: var(--ink); border-bottom-right-radius: 5px; }
.cm--a .cm__b { background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.cm--hello .cm__b { color: var(--soft); }
.cm__t { white-space: pre-wrap; }
.cm__img { display: block; margin: 0 0 6px; padding: 0; border: 0; background: none; cursor: zoom-in; }
.cm__img:last-child { margin-bottom: 0; }
.cm__img img { display: block; max-width: 220px; max-height: 260px; border-radius: 10px; }
.cm__m { margin-top: 2px; padding: 0 4px; color: var(--muted); font-size: 11.5px; }
/* галочки у своих сообщений, как в WhatsApp: ✓ ушло, ✓✓ дошло до магазина, ✓✓ синие — магазин прочитал */
.cm__tk { display: inline-flex; vertical-align: -1px; margin-left: 4px; color: #9AA0A6; }
.cm__tk svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cm__tk--read { color: #34B7F1; }
.chatwin__note { margin: 4px auto 10px; padding: 10px 12px; max-width: 92%; border-radius: 12px; background: #fff; border: 1px dashed #C9CBC4; color: var(--soft); font-size: 13px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.chatwin__push { padding: 7px 12px; border: 1px solid var(--accent); border-radius: 999px; background: var(--tint); color: var(--ink); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.chatwin__push:disabled { opacity: .7; cursor: default; }
.chatwin__st { flex: none; margin: 0; padding: 6px 14px; font-size: 13px; color: var(--soft); background: var(--ground); }
.chatwin__st--bad { color: var(--err); }
/* строка ввода: фото, текст (16px — iPhone не приближает страницу), отправить */
.chatwin__f { flex: none; display: flex; align-items: flex-end; gap: 6px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: #fff; }
.chatwin__f textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 130px; padding: 10px 12px; border: 1px solid #D4D6CF; border-radius: 12px; font-size: 16px; line-height: 1.35; resize: none; background: #fff; }
.chatwin__f textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: #9AA394; }
.chatwin__ph, .chatwin__s { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; }
.chatwin__ph { position: relative; color: var(--soft); background: var(--line2); }
.chatwin__ph:hover { background: var(--line); }
.chatwin__ph input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.chatwin__ph:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.chatwin__s { border: 0; background: var(--accent); color: var(--ink); }
/* 🎤 вместо «Отправить», пока поле пустое; запись: ✕ ● 0:07 Идёт запись… ➤ */
.chatwin__mic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--accent); color: var(--ink); cursor: pointer; }
.chatwin__mic[hidden], .chatwin__s[hidden], .chatwin__rec[hidden] { display: none; }
.chatwin__rec { flex: 1; display: flex; align-items: center; gap: 8px; min-height: 44px; }
.chatwin__f--rec > :not(.chatwin__rec) { display: none; }
.chatwin__rx { flex: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--line2); color: var(--soft); font-size: 18px; cursor: pointer; }
.chatwin__rd { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #E5484D; animation: chatrec 1s ease-in-out infinite; }
@keyframes chatrec { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .chatwin__rd { animation: none; } }
.chatwin__rt { font-variant-numeric: tabular-nums; }
.chatwin__rl { flex: 1; color: var(--soft); font-size: 14px; }
.chatwin__rs { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--accent); color: var(--ink); cursor: pointer; }
/* голосовое в переписке: ▶ / ❚❚, полоска, длина */
.cm__v { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.cm__vp { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--graphite); color: #fff; cursor: pointer; }
.cm--a .cm__vp { background: var(--accent); color: var(--ink); }
.cm__vb { position: relative; flex: 1; height: 6px; border-radius: 3px; background: rgba(23,25,28,.15); cursor: pointer; }
.cm__vb i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: var(--ink); }
.cm__vt { flex: none; min-width: 34px; font-size: 13px; color: var(--soft); font-variant-numeric: tabular-nums; }
/* скрытое поле-ловушка для программ: человеку его не видно и не достать клавиатурой */
.chatwin__hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
/* фото крупно */
.chatlb { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.92); }
.chatlb[hidden] { display: none; }
.chatlb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.chatlb button { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 18px; cursor: pointer; }
/* «в чат на сайте» в тексте страниц: видно, только когда скрипт чата заработал (класс has-chat ставит он) */
.has-chat .chatin[hidden] { display: inline; }
.has-chat .chatcart[hidden], .has-chat .ftr__chat[hidden] { display: block; }
.has-chat .cph__b[data-chat-only][hidden] { display: flex; }
.chatin__b { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--ok); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; vertical-align: baseline; }
.chatin__b svg { position: relative; top: 1px; }
.chatin__b:hover { color: #2D500A; }
.chatcart { margin: 12px 0 0; font-size: 14px; color: var(--soft); }
.cartpush { margin: 12px 0 0; font-size: 14px; color: var(--soft); }
/* у кнопки «В корзину» на странице товара: где магазин, «заказ — не оплата», спросить в мессенджере (src/views/shop.js, product) */
.pp__trust { list-style: none; margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: grid; gap: 8px; font-size: 14px; line-height: 1.4; color: var(--soft); }
.pp__trust li { display: flex; gap: 8px; align-items: flex-start; }
.pp__ti { flex: 0 0 18px; text-align: center; }
/* «Это ещё не оплата…» под «Подтвердить заказ» (src/views/shop.js, cartPage) */
.cartfree { margin: 10px 0 0; font-size: 14px; line-height: 1.4; color: var(--soft); text-align: center; }
.cartfree::before { content: '✓ '; color: var(--accent); font-weight: 700; }
/* «↓ Подешевело — было …» под ценой в строке корзины */
.cline__drop { display: block; margin-top: 2px; color: #2F7A0F; font-size: 13px; font-weight: 700; }
.cline__drop s { color: var(--soft); font-weight: 500; white-space: nowrap; }
.cline__drop b { white-space: nowrap; }
/* «↑ Цена выросла — была …» под ценой в строке корзины */
.cline__up { display: block; margin-top: 2px; color: #8A5200; font-size: 13px; font-weight: 700; }
.cline__up s { color: var(--soft); font-weight: 500; white-space: nowrap; }
/* магазин сообщил этому покупателю срок поставки товара (из «Корзин»): «⏳ Под заказ — срок около 30 дней» */
.cline__wait { display: block; margin-top: 3px; padding: 3px 8px; border-radius: 6px; background: #FFF4D6; color: #6B4A00; font-size: 13px; font-weight: 600; line-height: 1.35; }
/* товар больше не продаётся: строка бледная, название зачёркнуто, почему — красным */
.cline--gone .cline__img img { opacity: .45; filter: grayscale(1); }
/* «Возможно, вы искали» / «Магазин предлагает» — другой товар под строкой корзины или над корзиной (src/suggest.js) */
.csg { margin: 0 16px 14px; padding: 12px 14px; border: 2px solid #8FC04E; border-radius: 12px; background: #F1F8E6; }
.csg--auto { border-color: #E3C96B; background: #FFF8E1; }
.csg__h { margin: 0 0 6px; font-weight: 700; font-size: 15px; }
.csg__note { margin: 0 0 8px; color: var(--ink); font-size: 14px; }
.csg__it { display: flex; align-items: center; gap: 10px; }
.csg__img { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: #fff; }
.csg__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.csg__t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.csg__t a { color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.csg__t small { color: var(--soft); font-size: 14px; }
.csg__b { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.csg__no { border: 0; background: none; color: var(--soft); text-decoration: underline; font: inherit; font-size: 14px; padding: 8px 4px; cursor: pointer; }
.cartsug .csg { margin: 0 0 14px; }
/* предложение прямо под своим товаром: прижато к нему и хвостиком-стрелкой показывает вверх, на него */
.csg--for { position: relative; margin-top: 4px; }
.csg--for::before { content: ''; position: absolute; top: -9px; left: 34px; width: 14px; height: 14px; background: inherit; border: 2px solid; border-color: inherit; border-right: 0; border-bottom: 0; transform: rotate(45deg); }
@media (max-width: 560px) { .csg { margin: 0 10px 12px; } .csg__b .btn { flex: 1 1 auto; } }
.cline--gone .cline__t a, .cline--gone .cline__t s { color: var(--soft); }
.cline__gone { display: block; margin-top: 4px; color: #B3261E; font-size: 13.5px; font-weight: 700; }
/* товар без цены в корзине: вместо цены — «Цена по запросу», вместо суммы — «уточним» (жёлтым, как «Под заказ»); под
 * «Итого» — что эти товары войдут в заказ без цены */
.cline__ask { display: block; margin-top: 2px; color: var(--wait); font-size: 13px; font-weight: 700; }
.cline__sum--ask { color: var(--wait); font-size: 15px; font-weight: 700; }
.sum__ask { margin: -4px 0 0; color: var(--wait); font-size: 14px; font-weight: 500; }
.sum__plus { display: block; color: var(--wait); font-size: 13px; font-weight: 700; text-align: right; }
/* на компьютере «Удалить» у зачёркнутой строки — в том же столбце, что у остальных (ширина блока количества) */
@media (min-width: 561px) { .cline--gone .cline__act { min-width: 130px; } }
.cartgone { margin: 10px 0 0; padding: 10px 14px; border-radius: 10px; background: #FDF0EF; color: #7A1A14; font-size: 14px; line-height: 1.4; }
.offercard__t s { color: var(--soft); }
/* «🎁 Скидка 10% на вашу корзину» на других страницах сайта: заметная карточка внизу слева, пока её не закроют ✕ или
   не кончится скидка (public/shop.js offerCard); справа — место для кнопки «Чат» */
.offercard { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 59; display: flex; flex-direction: column; gap: 6px; width: min(380px, calc(100% - 32px)); padding: 14px 44px 14px 16px; background: #F1F8E6; border: 2px solid #8FC04E; border-radius: 14px; box-shadow: 0 10px 30px rgba(23,25,28,.22); color: var(--ink); animation: offerin .35s ease-out; }
.offercard__h { font-size: 17px; color: #2F5A0C; line-height: 1.25; }
.offercard__t { font-size: 14px; line-height: 1.35; }
.offercard__t b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.offercard__go { align-self: flex-start; margin-top: 2px; }
.offercard__x { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--soft); font-size: 16px; cursor: pointer; }
.offercard__x:hover { background: rgba(0,0,0,.06); color: var(--ink); }
@keyframes offerin { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .offercard { animation: none; } }
.chat-open .offercard { display: none; }
.ftr__chat { align-self: flex-start; padding: 0; border: 0; background: none; color: #C8CAC3; font: inherit; text-align: left; cursor: pointer; }
.ftr__chat:hover { color: #fff; text-decoration: underline; }
/* телефон: кнопка поменьше, окно — на весь экран (высоту над клавиатурой ставит public/chat.js); сообщение внизу экрана
 * и подвал — выше кнопки, чтобы она их не закрывала */
@media (max-width: 640px) {
  .chatbtn { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); min-height: 48px; padding: 0 15px 0 13px; }
  .offercard { left: 12px; width: calc(100% - 24px); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .has-chat .offercard { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  .chattip { right: 12px; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .chatwin { inset: 0; right: 0; bottom: auto; width: 100%; height: 100%; border-radius: 0; padding-top: env(safe-area-inset-top, 0px); background: var(--graphite); }
  .chat-open, .chat-open body { overflow: hidden; }
  .has-chat .toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .has-chat .ftr { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .has-chat.is-app .ftr { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px) + var(--cut, 0px)); }
  .cm__img img { max-width: 200px; }
  .chat-typing .chatbtn, .chat-typing .chattip { display: none; }
}
@media (max-width: 360px) { .chatbtn__t { display: none; } .chatbtn { padding: 0 13px; } }

/* товар: «Смотрите также» — соседние разделы плитками под «Из этого же раздела» */
.pp__near h2 { font-size: 20px; margin: 0 0 10px; }

/* карточка «⏳ Срок по товару в вашей корзине» — жёлтая полоса слева, как у остальных карточек корзины */
.offercard--wait { border-left: 4px solid #E0A100; }
.offercard--wait .offercard__h { color: #6B4A00; }

/* Закрытый каталог (src/closed.js, владелец, 4 декабря 2026): полоса «Ваш каталог «…»» под шапкой — только у человека,
   который открыл свою ссылку; «ваша цена» у карточек и на странице товара; страница каталога /k */
.kbar { background: var(--graphite); border-top: 1px solid #2B2E31; }
.kbar__in { padding-top: 7px; padding-bottom: 7px; }
.kbar a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: #C8F29A; font-weight: 700; font-size: 14px; text-decoration: none; }
.kbar a:hover { color: #fff; }
.price__mine { display: block; margin-top: 1px; color: var(--ok); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.pp__mine { margin: 6px 0 0; padding: 7px 10px; border-radius: 8px; background: var(--tint); color: var(--soft); font-size: 14px; }
.kcart { margin: 0 0 14px; background: var(--tint); border-color: #c9e2ae; font-size: 15px; }
.kcat__note { margin: 6px 0 12px; padding: 10px 14px; border-radius: 10px; background: var(--tint); color: var(--soft); font-size: 14px; line-height: 1.45; }
.kcat__s { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.kcat__s input { flex: 1 1 200px; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.kcat__out { margin: 24px 0 0; text-align: center; }
.kcat__outb { min-height: 40px; padding: 6px 12px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
