/* site.css — ПУБЛИЧНЫЙ ВЕБ-САЙТ магазина. Отдельная десктоп-первая вёрстка (не Mini App).
   Палитра наша: светлый фон · зелёный бренд (--accent) — он же цвет кнопок-действий (--action) · графит-каркас.
   Владелец может перекрыть цвета/радиус в админке «Оформление» (appearance.js, инлайн-переменные на <html>). */
:root {
  /* Фон ПЛОТНЕЕ белых карточек — чтобы товар «выступал», а не тонул в молочном поле. */
  --bg: #e8ebe6; --panel: #ffffff; --ink: #14201a; --muted: #67746c;
  --accent: #2f8a56; --accent-ink: #fff;          /* зелёный — бренд и статус «в наличии»/«проверено» */
  --action: var(--accent); --action-ink: #fff;    /* кнопки-действия = фирменный зелёный: ссылка на --accent, поэтому цвет из «Оформления» красит и кнопки */
  --frame: #2b3036; --frame-ink: #eef0f2;         /* графит — активные чипы/табы */
  /* Тёмная «оправа» подвала — глубокий брендовый зелёный (шапка теперь на нейтральном --panel, см. «Шапка»). */
  --head-bg: #143723; --head-ink: #eaf2ec;
  --line: rgba(20,40,25,.14); --soft: #e7ebe6;
  --red: #e5484d; --amber: #e0a100;
  --maxw: 1280px; --radius: 14px;
  /* Тени глубже — объём вместо плоскости. */
  --shadow: 0 2px 6px rgba(20,33,26,.09), 0 14px 34px rgba(20,33,26,.11);
}
/* Тёмная тема (переключатель 🌙): переопределяем токены — шапка, карточки, секции темнеют сами. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1310; --panel: #1b211c; --ink: #e9efea; --muted: #94a399;
  --accent: #3ab466; --accent-ink: #0f1310;
  --frame: #33414a; --frame-ink: #eef0f2;
  --line: rgba(255,255,255,.12); --soft: #242c25;
  --head-bg: #10251a; --head-ink: #e9efea;
  --shadow: 0 2px 8px rgba(0,0,0,.5), 0 16px 38px rgba(0,0,0,.55);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
body[data-page="product"] { background: var(--product-bg, var(--bg)); } /* у страницы товара может быть свой фон (Оформление) */
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
/* «Уменьшить движение»: html назван отдельно — иначе html { scroll-behavior: smooth } выше перебивал * (у * вес меньше),
   и прокрутка к товарам/возврат на место всё равно «ехали». */
@media (prefers-reduced-motion: reduce) { html, * { transition: none !important; scroll-behavior: auto !important; } }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(14px, 4vw, 32px); width: 100%; }

/* Загрузка */
.boot { min-height: 70vh; display: grid; place-content: center; gap: 8px; text-align: center; color: var(--muted); }
.boot-logo { font-size: 34px; font-weight: 900; letter-spacing: 1px; color: var(--accent); }

/* Кнопки */
.btn { border: 0; border-radius: 12px; padding: 11px 18px; font-weight: 700; background: var(--soft); color: var(--ink); transition: background .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn--action { background: var(--action); color: var(--action-ink); }
.btn--action:hover { filter: brightness(.9); } /* темнее на наведении — от ЛЮБОГО акцента из «Оформления», без зашитого цвета */
.btn--ghost { background: transparent; border: 1px solid var(--line); }
.btn--block { width: 100%; }

/* ── Шапка ── */
/* Шапка на НЕЙТРАЛЬНЫХ токенах (panel/ink/soft/line): в светлой теме — светлая (как Uzum/Ali),
   в тёмной теме токены переопределяются → шапка сама становится тёмной. Контраст даёт плотный фон. */
.hdr { position: sticky; top: 0; z-index: 30; background: var(--panel); color: var(--ink); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.hdr--scrolled { box-shadow: 0 6px 20px rgba(20,33,26,.10); }
.hdr__row { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.brand { display: flex; align-items: baseline; gap: 8px; font-weight: 900; font-size: 22px; color: var(--accent); letter-spacing: .5px; white-space: nowrap; }
.topnav a:hover { opacity: 1; }
.search { flex: 1; min-width: 0; max-width: 620px; display: flex; align-items: center; gap: 8px;
  background: var(--soft); border: 1px solid transparent; border-radius: 12px; padding: 9px 14px; }
.search:focus-within { border-color: var(--accent); background: var(--panel); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); outline: none; }
.search input::placeholder { color: var(--muted); }
.hdr__tools { display: flex; align-items: center; gap: 6px; }
.pill { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 10px; padding: 8px 11px; font-size: 13px; font-weight: 600; }
.cartbtn { position: relative; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 12px; padding: 9px 13px; font-size: 15px; display: flex; align-items: center; gap: 7px; font-weight: 700; }
.cartbtn__count { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--action); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
/* Кнопка темы ☀️/🌙 */
.themebtn { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 10px; width: 38px; height: 38px; font-size: 16px; cursor: pointer; display: grid; place-items: center; flex: 0 0 auto; }
.themebtn:hover { border-color: var(--accent); }

/* Выпадашки: язык с флагом страны (в шапке, .langdd) и «Ещё ▾» у категорий (.dd). Поведение — site.js dropdown(). */
.langdd, .dd { position: relative; }
.langdd__btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.langdd__flag { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(0,0,0,.07); }
.langdd__cev { font-size: 10px; opacity: .55; }
.langdd__menu, .dd__menu { display: none; position: absolute; top: calc(100% + 5px); right: 0; z-index: 60;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 5px; min-width: 168px; flex-direction: column; gap: 2px; }
.langdd.is-open .langdd__menu, .dd.is-open .dd__menu { display: flex; }
/* Узкий телефон: кнопка языка стоит у левого края ряда — меню, раскрытое влево от её правого края, уезжало за экран. */
@media (max-width: 479px) { .langdd__menu { right: auto; left: 0; } }
.dd__menu { max-height: min(60vh, 420px); overflow-y: auto; } /* категорий может быть много — список листается */
.langdd__item, .dd__item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 11px; border: 0;
  background: transparent; color: var(--ink); font: inherit; font-size: 14px; border-radius: 9px; text-align: left; }
.langdd__item:hover, .dd__item:hover { background: var(--soft); }
.langdd__item.is-active, .dd__item.is-active { font-weight: 700; }
.langdd__ok, .dd__ok { margin-left: auto; color: var(--accent); font-weight: 700; }

/* Лента категорий (в фильтр-блоке над сеткой) */
/* position:relative — offsetLeft чипа считается от ленты (доводка выбранного чипа, site.js revealChip). */
.cats { position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 2px 0; scrollbar-width: none; overscroll-behavior-x: contain; }
.cats::-webkit-scrollbar { display: none; }
/* Растворённый край = «дальше есть ещё» (классы ставит site.js fadeCats по положению прокрутки). */
.cats.fade-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
.cats.fade-l { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px); mask-image: linear-gradient(to right, transparent, #000 28px); }
.cats.fade-l.fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.chip { flex: 0 0 auto; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 999px; padding: 8px 16px; font-size: 14px; white-space: nowrap; transition: .15s; }
.chip:hover { border-color: var(--frame); }
.chip.on { background: var(--frame); color: var(--frame-ink); border-color: var(--frame); }
/* Рамка фокуса с клавиатуры — внутри чипа: лента листается вбок (overflow), и рамка снаружи срезалась бы сверху/снизу. */
.cats .chip:focus-visible { outline-offset: -4px; }
/* «Ещё ▾» — та же высота, что у чипов, но контурная и без заливки: это кнопка списка, а не категория. */
.chip--more { background: transparent; border-color: var(--muted); font-weight: 600; padding-inline: 13px; }
.catmore[hidden] { display: none; }

/* Отдельного «героя» нет — верх страницы на промо-баннерах. Для SEO/скринридеров оставляем скрытый h1. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Плитки категорий */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 22px 0; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; background: var(--soft);
  border: 1px solid var(--line); display: flex; align-items: flex-end; transition: .18s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--frame); }
.tile span { position: relative; z-index: 2; padding: 16px 18px; font-size: 20px; font-weight: 800; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.tile::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(transparent 40%, rgba(0,0,0,.55)); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Трастовая лента */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 22px 0; }
.trust div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.trust b { color: var(--accent); font-size: 20px; }
/* Телефон: лента доверия — сеткой 2×2 и компактно (раньше 4 широкие плашки столбиком занимали почти весь экран
   до товаров); нечётная последняя плашка — на всю ширину. Плитки категорий — тоже по две в ряд, пониже. */
@media (max-width: 559px) {
  .trust { grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
  .trust div { padding: 10px 11px; gap: 8px; font-size: 13px; line-height: 1.25; border-radius: 10px; }
  .trust div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .trust b { font-size: 17px; flex: 0 0 auto; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
  .tile { aspect-ratio: 4 / 3; }
  .tile span { padding: 10px 12px; font-size: 15px; }
}

/* ── Фильтр-блок над сеткой: категории + сортировка (как в Telegram-витрине) ──
   Прилипает под шапку (её высоту site.js watchHdr кладёт в --hdr-h). Фон = фон страницы: товары уезжают под блок.
   Прилипание держится, пока на экране сетка (блок живёт в одном контейнере с ней), — к подвалу он уходит вверх. */
.results { margin-top: 18px; }
.fbar { position: sticky; top: var(--hdr-h, 0px); z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: 10px 0; margin-bottom: 6px; background: var(--bg); }
/* Фон — на всю ширину окна (тенью псевдоэлемента, без влияния на раскладку): тени карточек не просвечивают у краёв
   блока. Именно псевдоэлемент: clip-path на самом блоке обрезал бы выпадашку «Ещё ▾». */
.fbar::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--bg); box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax); }
.fbar__cats { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.fbar__cats .cats { flex: 1; min-width: 0; }
/* Сортировка: кнопка «⇅ По умолчанию ▾», поверх неё — прозрачный родной <select> (щелчок открывает обычный список). */
.sortbox { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); font-size: 14px; white-space: nowrap; }
.sortbox:hover { border-color: var(--frame); }
.sortbox:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.sortbox__ico { display: inline-flex; color: var(--accent); }
.sortbox__cev { font-size: 10px; opacity: .55; }
/* font-size 16px — иначе iPhone приближает страницу при выборе. */
.sortbox__sel { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; font-size: 16px; border: 0; }
/* Телефон: только значок ⇅ (лента категорий важнее); точка = выбран порядок не «по умолчанию». */
@media (max-width: 559px) {
  .sortbox { width: 42px; padding: 0; justify-content: center; }
  .sortbox__txt, .sortbox__cev { display: none; }
  .sortbox.has-dot::after { content: ''; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 0 2px var(--panel); pointer-events: none; } /* точка не перехватывает касание у списка */
}
/* Телефон боком (низкий экран): шапка + прилипший блок съели бы пол-экрана — блок едет вместе со страницей. */
@media (orientation: landscape) and (max-height: 480px) { .fbar { position: relative; top: 0; } } /* relative, а не static: опора для фона ::before */

/* ── Сетка товаров ── */
/* Число колонок фиксируем по ширине экрана (как Uzum/Ali), а не «плавающим» auto-fill: так карточка
   всегда читаемого размера. 5 на десктопе → 4 на ноуте → 3 на планшете → 2 на телефоне. */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(10px, 1.2vw, 16px); margin-bottom: 40px; position: relative; z-index: 0; } /* свой слой — значки карточек не выше прибитых шапок */
@media (min-width: 560px)  { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 880px)  { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1160px) { .grid { grid-template-columns: repeat(5, 1fr); } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; box-shadow: 0 1px 3px rgba(20,33,26,.06), 0 5px 14px rgba(20,33,26,.06); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 6px 16px rgba(20,33,26,.12), 0 18px 40px rgba(20,33,26,.13); }
/* Фото чуть выше квадрата (4:5) — кашпо вытянутые, так они помещаются лучше и не гигантские */
.card__imgwrap { position: relative; aspect-ratio: 4 / 5; background: #f6f8f6; overflow: hidden; cursor: pointer; }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card__img { transform: scale(1.04); }
.card__ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 40px; color: var(--muted); }
.card__badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 5px; flex-wrap: wrap; }
/* Тихая иконка-корзина в углу фото: графитовая по умолчанию, цвет действия (--action) только на наведении — не кричит из сетки */
.card__cart { position: absolute; bottom: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,.94); color: var(--frame); display: grid; place-items: center;
  cursor: pointer; transition: background .15s, color .15s, transform .1s; box-shadow: 0 1px 5px rgba(20,33,26,.14); }
.card__cart:hover { background: var(--action); color: #fff; border-color: var(--action); }
.card__cart:active { transform: scale(.9); }
.card__swatches { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-height: 15px; }
.card__swatch-more { font-size: 11px; color: var(--muted); font-weight: 600; margin-left: 1px; }
.card__vol { color: var(--muted); font-size: 12.5px; margin-top: -2px; } /* объём товара под названием (общий макет card.js) */
/* Выбор расцветки «в корзину» — центрированная модалка (клик по значку корзины у многоцветного товара) */
.cpick-back { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cpick { width: 100%; max-width: 360px; max-height: 82vh; overflow: auto; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 14px; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.cpick__h { font-size: 16px; font-weight: 800; }
.cpick__sub { font-size: 13px; color: var(--muted); margin: 2px 0 12px; }
.cpick__list { display: flex; flex-direction: column; gap: 6px; }
.cpick-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 13px; border: 1px solid var(--line); border-color: color-mix(in srgb, var(--ink) 22%, transparent); border-radius: 12px; background: var(--bg); color: inherit; cursor: pointer; font-size: 15px; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.14); transition: transform .08s ease, box-shadow .15s ease, border-color .15s ease; }
.cpick-row:hover { border-color: var(--accent); background: var(--panel); box-shadow: 0 3px 10px rgba(0,0,0,.20); }
.cpick-row:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(0,0,0,.14); }
.cpick-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cpick-row .swatch { flex: none; }
.cpick__cancel { margin-top: 12px; width: 100%; padding: 11px; border: 0; border-radius: 12px; background: var(--soft, var(--line)); color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; }
.card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 1px; }
.badge { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #fff; }
.badge--new { background: var(--accent); } .badge--sale { background: var(--action); } .badge--disc { background: var(--red); }
.card__body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card__name { font-size: var(--title-size, 13.5px); font-weight: 600; line-height: 1.3; cursor: pointer; color: var(--title-color, inherit);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card__rating { font-size: 12px; color: var(--muted); }
.card__price { display: flex; align-items: baseline; gap: 7px; margin-top: auto; }
.card__price b { font-size: 16px; font-weight: 800; }
.card__old { color: var(--muted); text-decoration: line-through; font-size: 12.5px; font-weight: 400; }
.card__stock { font-size: 11.5px; font-weight: 700; }
.card__stock.in { color: var(--accent); } .card__stock.order { color: var(--muted); } .card__stock.no { color: var(--red); }

/* ── Подвал ── */
.footer { background: var(--head-bg); color: var(--head-ink); margin-top: 20px; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; padding: 40px 0 26px; }
.footer h4 { margin: 0 0 12px; font-size: 15px; color: #fff; }
/* Каждая колонка подвала — столбик: ссылки (строчные <a>) иначе слипались в одну строку «Доставка и оплатаО магазине…» */
.footer__cols > div { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.footer a, .footer p { color: #c4cbc6; font-size: 14px; margin: 4px 0; line-height: 1.45; overflow-wrap: anywhere; }
.footer a { padding: 3px 0; } /* по ссылке удобно попасть пальцем на телефоне */
.footer a:hover { color: #fff; }
.footer .brand { color: #7fd0a0; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: 12.5px; color: #9aa39d; }

/* ── Модалка/дровер ── */
.ov { position: fixed; inset: 0; z-index: 60; background: rgba(20,33,26,.5); opacity: 0; pointer-events: none; transition: opacity .2s; }
.ov.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(420px, 92vw); background: var(--bg); box-shadow: -8px 0 30px rgba(0,0,0,.2);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.85,.25,1); display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.modal { position: fixed; z-index: 61; inset: 0; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.modal__card { background: var(--bg); border-radius: 18px; width: min(880px, 100%); /* 100% от поля .modal (уже за вычетом отступа 16px): 96vw с отступом вылезал за край телефона */ max-height: 92vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3);
  transform: translateY(14px) scale(.98); opacity: 0; transition: .22s; pointer-events: auto; }
.modal.open .modal__card { transform: none; opacity: 1; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.sheet-head h3 { margin: 0; font-size: 17px; }
.x { border: 0; background: var(--soft); width: 34px; height: 34px; border-radius: 999px; font-size: 16px; }
.sheet-body { padding: 16px 18px; overflow: auto; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.inp { width: 100%; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 11px 13px; font: inherit; }
/* Телефон (общий phoneField из /shop/js/fields.js): [флаг][страна (+код) ▾][номер]. Код страны выбран — «+» и код набирать
   не нужно, только сам номер; рамка поля зелёная, когда цифр ровно сколько нужно, красная — когда не хватает. */
.pf-row { display: flex; align-items: center; gap: 6px; }
.pf-flag { width: 24px; height: 18px; border-radius: 3px; object-fit: cover; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.pf-code { flex: 0 0 auto; max-width: 46%; padding: 11px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); font: inherit; }
.pf-num { flex: 1; min-width: 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); font: inherit; transition: border-color .15s; }
.pf-num.ok { border-color: var(--accent); } .pf-num.bad { border-color: var(--red); }
.pf-hint { color: var(--red); font-size: 12px; margin: 4px 2px 0; min-height: 14px; }
@media (max-width: 380px) { .pf-code { max-width: 38%; padding-left: 4px; padding-right: 4px; } .pf-num { padding-left: 9px; padding-right: 9px; } } /* узкий телефон: место — цифрам номера */

/* Страница товара #/product/<id> (2 колонки на широком: галерея + блок покупки) */
.pv { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 18px; } /* minmax(0,…): лента миниатюр не распирает колонку (на телефоне страница была шире экрана) */
.pv__main { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: #f6f8f6; }
/* Ряд миниатюр: в одну строку с горизонтальной прокруткой (стрелки появляются при переполнении). */
.thumbs-wrap { position: relative; margin-top: 10px; }
.pv__thumbs { display: flex; gap: 8px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 2px; }
.pv__thumbs::-webkit-scrollbar { display: none; }
/* Миниатюры НЕ приглушаем (opacity:1) — активную и без того отмечает рамка; приглушение читалось как «затуманенность». */
.pv__thumbs img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; cursor: pointer; opacity: 1; border: 2px solid transparent; flex: 0 0 auto; transition: border-color .12s; }
.pv__thumbs img.of-color { border-color: var(--line); }   /* фото выбранного цвета (но не открытое крупно) */
.pv__thumbs img.on { border-color: var(--accent); }       /* именно это фото сейчас в большом окне — акцентная рамка */
.thumb-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink); box-shadow: var(--shadow); font-size: 16px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.thumb-arrow.left { left: -4px; } .thumb-arrow.right { right: -4px; }
.thumb-arrow[hidden] { display: none; }
.pv__price { font-size: 26px; font-weight: 800; margin: 6px 0; }
.pv__vars { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.vbtn { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 8px 14px; font-size: 14px; color: var(--ink); cursor: pointer; }
.vbtn.on { border-color: var(--frame); background: var(--frame); color: #fff; }
.vbtn.off { opacity: .5; }
.vbtn.on .swatch { border-color: #fff; }
/* Кружок-свотч цвета — общий для кнопки выбора цвета и рядка мини-кружков в карточке сетки (та же .swatch, что в Telegram-витрине). */
.swatch { display: inline-block; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 8px 0; }
.stepper button { border: 0; background: var(--panel); width: 40px; height: 42px; font-size: 18px; }

/* Строки корзины */
.citem { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.citem img { width: 62px; height: 62px; border-radius: 10px; object-fit: cover; }
.citem__x { border: 0; background: transparent; color: var(--muted); font-size: 18px; margin-left: auto; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin: 12px 0; }
.consent a { color: var(--accent); text-decoration: underline; }

@media (min-width: 720px) {
  .pv { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); padding: 22px; align-items: start; }
  .pv__buy { position: sticky; top: calc(var(--hdr-h, 66px) + 16px); } /* блок покупки следует за прокруткой, как у Uzum */
}
@media (max-width: 700px) {
  .brand { font-size: 18px; }
  .hdr__row { flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
}

/* ── Финал: топ-навигация, хлебные крошки, страницы, контакты ── */
.topnav { display: flex; gap: 16px; align-items: center; white-space: nowrap; }
.topnav a { color: var(--ink); font-weight: 600; font-size: 14px; opacity: .8; }
.topnav a:hover { opacity: 1; color: var(--accent); }
.crumbs { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; font-size: 13px; color: var(--muted); margin: 2px 0 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs__cur { color: var(--ink); font-weight: 600; }
.crumbs__sep { opacity: .45; }
.footer__navlink { cursor: pointer; }
.page { padding: 22px 0 44px; }
.page__h1 { font-size: 30px; margin: 2px 0 14px; }
.page__lead { font-size: 16px; line-height: 1.7; color: var(--ink); max-width: 760px; }
.contacts { display: grid; grid-template-columns: 1fr 1.25fr; gap: 26px; align-items: start; margin-top: 10px; }
.contacts__info p { margin: 9px 0; font-size: 15px; }
.contacts__info a { color: var(--ink); }
.contacts__social { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.contacts__map { min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.contacts__mapicon { font-size: 48px; line-height: 1; }
@media (max-width: 760px) { .topnav { display: none; } .contacts { grid-template-columns: 1fr; } }

/* ── Промо-карусель (общий модуль carousel.js, у сайта свой набор баннеров; стили-родня блока «Промо-карусель»
   в web/storefront/css/style.css — меняете разметку карусели, правьте оба файла) ── */
/* Гигиена слоёв (как в Telegram-витрине): .promo — свой слой, гарантированно под прибитыми .hdr/.fbar; устаревший
   -webkit-overflow-scrolling:touch убран — с iOS 13 инерция прокрутки и так по умолчанию. */
.promo { max-width: var(--maxw); margin: 14px auto 4px; padding: 0 18px; position: relative; z-index: 0; }
.promo-vp { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 16px; }
.promo-vp::-webkit-scrollbar { display: none; }
.promo-vp.single { overflow: hidden; }
.promo-slide { flex: 0 0 100%; scroll-snap-align: center; position: relative; container-type: inline-size; }
.promo-slide--tap { cursor: pointer; } /* рука — только у баннеров с действием (окно/ссылка), не у «просто показ» */
.promo-imgwrap { position: relative; aspect-ratio: 16 / 5; overflow: hidden; border-radius: 16px; }
.promo-img { width: 100%; height: 100%; display: block; position: relative; z-index: 1; }
.promo-imgblur { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(20px) saturate(1.1); transform: scale(1.16); }
.promo-img.feather { -webkit-mask-image: radial-gradient(ellipse 90% 86% at center, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 90% 86% at center, #000 60%, transparent 100%); }
.promo-cap { position: absolute; left: 0; right: 0; z-index: 2; padding: 0 5cqw; text-align: center; line-height: 1.15; text-shadow: 0 1px 6px rgba(0,0,0,.6); word-break: break-word; pointer-events: none; }
.promo-cap.pos-header { top: 7%; }
.promo-cap.pos-center { top: 50%; transform: translateY(-50%); }
.promo-cap.pos-footer { bottom: 7%; }
.promo-cap-in { display: inline-block; }
.promo-cap-in.fx { opacity: 0; }
.promo-cap-in.fx.fx-type { opacity: 1; }
.promo-cap-in.fx.play.fx-fade { animation: promoFade .7s ease forwards; }
.promo-cap-in.fx.play.fx-slideR { animation: promoSlideR .6s cubic-bezier(.2,.7,.2,1) forwards; }
.promo-cap-in.fx.play.fx-slideL { animation: promoSlideL .6s cubic-bezier(.2,.7,.2,1) forwards; }
.promo-cap-in.fx.play.fx-rise { animation: promoRise .6s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes promoFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes promoSlideR { from { opacity: 0; transform: translateX(-42px); } to { opacity: 1; transform: none; } }
@keyframes promoSlideL { from { opacity: 0; transform: translateX(42px); } to { opacity: 1; transform: none; } }
@keyframes promoRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .promo-cap-in.fx { opacity: 1 !important; animation: none !important; } }
.promo-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 2px; }
.promo-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--line); transition: width .2s, background .2s; }
.promo-dot.on { width: 20px; background: var(--accent); }
.promo-ov { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.5); display: grid; place-items: center; padding: 22px; opacity: 0; transition: opacity .24s ease; }
.promo-ov.open { opacity: 1; }
.promo-modal { position: relative; width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto; background: var(--panel); color: var(--ink); border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.3); transform: translateY(12px) scale(.98); transition: transform .24s ease; container-type: inline-size; }
.promo-modal-out { color: var(--ink); padding: 12px 16px; text-align: center; line-height: 1.3; word-break: break-word; }
.promo-ov.open .promo-modal { transform: none; }
.promo-modal-media { position: relative; container-type: inline-size; }
.promo-modal-img { width: 100%; display: block; border-radius: 18px; }
.promo-x { position: absolute; top: 8px; right: 8px; z-index: 2; width: 32px; height: 32px; border-radius: 999px; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 15px; cursor: pointer; display: grid; place-items: center; }

/* ─── Карточка товара: оптовые цены, метки, описание, ручной ввод количества ─── */
/* Поле количества между кнопками −/+ : раньше там был текст, и набрать 45 штук можно
   было только сорока четырьмя нажатиями. */
.stepper .qty-inp {
  width: 56px; text-align: center;
  border: none; background: none; color: var(--ink);
  font-size: 16px; font-weight: 600; padding: 0;
  -moz-appearance: textfield;
}
.stepper .qty-inp::-webkit-outer-spin-button,
.stepper .qty-inp::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper .qty-inp:focus { outline: none; }

/* Таблица оптовых порогов — покупатель должен видеть, что от 10 штук дешевле */
.pv__tiers { margin: 10px 0 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pv__tier { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; font-size: 14px; }
.pv__tier + .pv__tier { border-top: 1px solid var(--line); }
.pv__tier-on { margin-left: 10px; font-size: 13px; font-weight: 600; color: var(--action, var(--accent)); }

.pv__badges { display: flex; gap: 6px; margin-bottom: 8px; }

/* Характеристики товара — иконки-строки (как в Uzum): читается с одного взгляда */
.pv__features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.pv__feat { display: flex; align-items: center; gap: 9px; padding: 9px 11px; background: var(--soft); border-radius: 10px; font-size: 13px; line-height: 1.25; }
.pv__feat-ic { font-size: 17px; flex: 0 0 auto; }

/* ── Страница товара в стиле Uzum: блок покупки + широкие секции под галереей ── */
.pv__title { font-size: 22px; font-weight: 800; line-height: 1.25; }
.pv__subrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 2px 0 8px; font-size: 13px; }
.pv__avail { font-weight: 700; }
.pv__avail--in { color: var(--accent); } .pv__avail--order { color: var(--amber); } .pv__avail--no { color: var(--red); }
.pv__brand { color: var(--muted); }
.pv__features { margin: 0 0 14px; }
.pv-sec { padding: 20px 18px 6px; margin: 8px 0 0; max-width: 1000px; border-top: 1px solid var(--line); }
.pv-sec__h { font-size: 18px; font-weight: 800; margin: 20px 0 12px; }
.pv-sec__text { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink); white-space: pre-wrap; max-width: 760px; }
.pv-specs { max-width: 620px; }
.pv-spec { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.pv-spec:last-child { border-bottom: 0; }
.pv-spec__k { color: var(--muted); flex: 0 0 auto; }
.pv-spec__dot { flex: 1; }
.pv-spec__v { flex: 0 0 auto; font-weight: 600; text-align: right; }

/* Фото-буклеты (A+/rich-контент): товар «в деле» — крупные фото + подписи, в столбик */
.pv-rich { margin: 8px 0; padding: 4px 18px 6px; border-top: 1px solid var(--line); max-width: 1000px; }
.pv-rich__item { margin: 0 0 22px; }
.pv-rich__img { width: 100%; border-radius: var(--radius); display: block; box-shadow: 0 1px 3px rgba(20,33,26,.06), 0 6px 18px rgba(20,33,26,.07); }
.pv-rich__cap { margin: 11px 2px 0; font-size: 15px; line-height: 1.6; color: var(--ink); max-width: 760px; }

/* Строка позиции в корзине: цена × количество = сумма, и подсказка про опт */
.citem__price { font-size: 13px; margin: 4px 0 2px; color: var(--ink); }
.citem__tier { font-size: 12.5px; margin-bottom: 4px; color: var(--action, var(--accent)); font-weight: 600; }
/* Промо-подсказки порогов в корзине: тексты бонусов + прогресс «добавьте ещё N» с мини-баром. */
.cart-promo { display: flex; flex-direction: column; gap: 8px; padding: 6px 0 2px; }
.promo-hint { font-size: 13px; font-weight: 600; color: var(--accent); line-height: 1.35; }
.promo-nudge { background: rgba(29,158,117,.09); border: 1px solid rgba(29,158,117,.30); border-radius: 12px; padding: 9px 11px; }
.promo-nudge-txt { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.35; margin-bottom: 6px; }
.promo-nudge.done .promo-nudge-txt { color: var(--accent); }
.promo-bar { height: 6px; border-radius: 999px; background: rgba(128,128,128,.2); overflow: hidden; }
.promo-bar-fill { height: 100%; border-radius: 999px; background: var(--accent); transition: width .45s ease; }
/* Бейдж «Ваша VIP-цена» на карточке товара (золотой чип). */
.vip-badge { display: inline-block; font-size: 11.5px; font-weight: 800; color: #4a2e00; background: linear-gradient(90deg, #f6c453, #f5a623); border-radius: 999px; padding: 2px 10px; margin: 3px 0 5px; letter-spacing: .2px; }
/* Плашка статуса VIP-партнёра в кабинете (золото+корона, тёмный текст — контраст в любой теме) */
.vip-banner { display: flex; align-items: center; gap: 11px; background: linear-gradient(100deg, #ffe7a0, #f5bf47); color: #4a2e00; border-radius: 14px; padding: 12px 14px; margin: 12px 0; box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.vip-banner__crown { font-size: 24px; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0,0,0,.15)); }
.vip-banner__title { font-weight: 800; font-size: 15px; letter-spacing: .2px; }
.vip-banner__sub { font-size: 12.5px; opacity: .82; margin-top: 1px; }

/* ── Учётка покупателя: вход (Telegram или телефон+пароль), кабинет, проверка заказа ── */
.acctbtn { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 12px;
  padding: 9px 13px; font-size: 15px; display: flex; align-items: center; gap: 7px; font-weight: 700; }
.acctbtn:hover { border-color: var(--accent); }
.acctbtn__t { font-size: 13.5px; max-width: 10ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* На узком экране в шапке тесно: оставляем значок, подпись прячем (смысл ясен из иконки). */
@media (max-width: 720px) { .acctbtn__t { display: none; } }
/* Совсем узкий телефон (320–420): ряд «язык · валюта · тема · кабинет · корзина» шире экрана — страница ездила
   вбок. Ужимаем отступы и прячем стрелку у языка (флаг + «Рус» и так читаются как кнопка выбора). */
@media (max-width: 420px) {
  .hdr__tools { gap: 4px; flex: 1 1 auto; justify-content: flex-end; min-width: 0; }
  .hdr__tools .pill { padding: 8px 6px; }
  .langdd__btn { gap: 4px; }
  .langdd__cev { display: none; }
  .themebtn { width: 34px; height: 34px; }
  .acctbtn { padding: 9px 10px; }
  .cartbtn { padding: 9px; }
}

.login__lead { font-size: 15px; line-height: 1.55; margin-bottom: 14px; color: var(--ink); }
.login__action { margin-bottom: 10px; }
.login__hint { font-size: 13.5px; line-height: 1.5; margin-top: 6px; color: var(--ink); }
.login__url { margin-top: 5px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--soft); font-size: 12.5px; word-break: break-all; user-select: all; color: var(--ink); }
.login__status { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--accent); }
.login__sep { height: 1px; background: var(--line); margin: 18px 0 14px; }
.thanks__login { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

.acct__head { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.acct__name { font-size: 18px; font-weight: 700; }
.acct__sub { font-size: 14px; margin-top: 3px; color: var(--ink); }
.acct__h { margin: 14px 0 8px; font-size: 15px; }
.acct__orders { display: flex; flex-direction: column; gap: 10px; }
.acct__empty { padding: 18px 0; text-align: center; font-size: 14px; color: var(--ink); }

.ocard { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--panel); }
.ocard__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ocard__st { font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: var(--soft); color: var(--ink); white-space: nowrap; }
.ocard__st--delivering, .ocard__st--accepted { background: var(--accent); color: #fff; }
.ocard__st--delivered, .ocard__st--closed { background: var(--frame); color: var(--frame-ink); }
.ocard__st--rejected, .ocard__st--cancelled { background: var(--red); color: #fff; }
.ocard__date { font-size: 12.5px; margin-top: 2px; color: var(--ink); }
.ocard__items { margin: 8px 0; font-size: 13.5px; line-height: 1.6; }
.ocard__sum { display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; border-top: 1px solid var(--line); font-size: 14.5px; }

.track__out { margin-top: 14px; }
.track__err { padding: 12px 14px; border-radius: 10px; background: var(--soft);
  font-size: 14px; font-weight: 600; color: var(--red); }

/* Подсказка снизу «браузер блокирует данные сайта» — тонкая, не перекрывает контент надолго (авто-гаснет 13с).
   Показывается крайне редко: только когда хранилище реально заблокировано. Тёмный чип читаем и в светлой, и в тёмной теме. */
.ls-hint { position: fixed; left: 12px; right: 12px; bottom: 12px; max-width: 560px; margin: 0 auto; z-index: 60;
  display: flex; align-items: center; gap: 10px; background: #1f2430; color: #fff;
  border-radius: 12px; padding: 10px 12px 10px 14px; box-shadow: 0 8px 28px rgba(0,0,0,.30);
  font-size: 13px; line-height: 1.4; opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .3s; }
.ls-hint--in { opacity: 1; transform: none; }
.ls-hint__t { flex: 1 1 auto; }
.ls-hint__x { flex: 0 0 auto; border: 0; background: rgba(255,255,255,.16); color: #fff;
  width: 26px; height: 26px; border-radius: 8px; cursor: pointer; font-size: 13px; line-height: 1; }
.ls-hint__x:hover { background: rgba(255,255,255,.28); }

/* Переписка с магазином (общий chat.js): красная точка «новый ответ» на кнопке кабинета, кнопка в кабинете */
.acctbtn { position: relative; }
.acctbtn__dot { position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%; background: #e53935; box-shadow: 0 0 0 2px var(--panel); }
.acct__chat { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.acct__new { background: #e53935; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }

/* ── ОПТ (B2B): режим «Поштучно / Оптом» (общий модуль wholesale.js) ──
   Переключатель — первым элементом прибитого фильтр-блока (на телефоне — отдельной строкой во всю ширину), на странице
   товара и в корзине. Плашка опта — строкой под фильтром. Цена за штуку + упаковка, прогресс до минимальной суммы. */
.fbar { flex-wrap: wrap; }
.ws-seg { display: flex; gap: 4px; padding: 3px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; flex: 0 0 auto; }
.ws-seg-btn { border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; padding: 7px 14px; cursor: pointer; white-space: nowrap; }
.ws-seg-btn.on { background: var(--frame); color: var(--frame-ink); box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.ws-seg--pv, .ws-seg--cart { margin: 2px 0 12px; }
.ws-seg--pv .ws-seg-btn, .ws-seg--cart .ws-seg-btn { flex: 1; }
@media (max-width: 700px) { .ws-seg--site { flex: 1 1 100%; } .ws-seg--site .ws-seg-btn { flex: 1; } }
/* Где стоит переключатель режима: компьютер — в прибитом фильтр-блоке; телефон — над ним (не прилипает, экран не съедает). */
.ws-seg--top { display: none; }
@media (max-width: 700px) { .ws-seg--inbar { display: none; } .ws-seg--top { display: flex; margin: 4px 0 10px; } }
.ws-bar { margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 9px 12px; border-radius: 12px;
  background: rgba(29,158,117,.10); border: 1px solid rgba(29,158,117,.30); font-size: 13.5px; line-height: 1.4; }
.ws-bar-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--accent); text-decoration: underline; cursor: pointer; }
.card__pack { flex-basis: 100%; font-size: 12.5px; color: var(--muted); }
.card__price { flex-wrap: wrap; }
.pv__ws { margin-top: 6px; font-size: 14px; font-weight: 400; }
.pv__ws-pack { font-weight: 600; }
.pv__ws-sum { color: var(--muted); margin-top: 2px; }
.pv__qty-lbl { font-size: 13px; color: var(--muted); margin: 8px 0 4px; }
.ws-min { background: rgba(29,158,117,.09); border: 1px solid rgba(29,158,117,.30); border-radius: 12px; padding: 9px 11px; }
.ws-min-txt { font-size: 13px; font-weight: 700; line-height: 1.35; margin-bottom: 6px; }
.ws-min-bar { height: 6px; border-radius: 999px; background: rgba(120,130,120,.22); overflow: hidden; }
.ws-min-fill { height: 100%; border-radius: 999px; background: var(--action); transition: width .25s ease; }
.ws-min-sub { margin-top: 5px; font-size: 12px; color: var(--muted); }
.ws-min.done .ws-min-txt { margin-bottom: 0; color: var(--accent); }
.ws-min.done .ws-min-bar { display: none; }
.ws-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--frame); color: var(--frame-ink); vertical-align: middle; }
.btn[disabled] { opacity: .5; cursor: not-allowed; filter: none; }
.thanks__wa { margin: 12px 0; }
.btn--wa { display: inline-block; text-decoration: none; background: #25d366; color: #0b2a17; }

/* ── Мобильная версия по просьбе заказчика (2026-11-25) ──
   Фото в карточке — ЕДИНАЯ рамка 4:5 у всех товаров. По умолчанию фото ЦЕЛИКОМ (инфографика с надписями по краям
   не обрезается; поля — белые, как у фото товара); «Оформление → Фото в карточке → Заполнить» = обрезка (cover). */
.card__imgwrap.fit-contain { background: #fff; }
.card__imgwrap.fit-contain .card__img { object-fit: contain; }
.card__imgwrap.fit-contain:hover .card__img, .card:hover .card__imgwrap.fit-contain .card__img { transform: none; } /* целое фото не «наезжает» на края */
/* Объём на фото: у размеров одной модели фото бывают одинаковыми («Классик» 0.7–16 л) — так их видно сразу. */
.card__volchip { position: absolute; left: 8px; bottom: 8px; z-index: 2; padding: 3px 9px; border-radius: 999px;
  background: rgba(22,33,26,.80); color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .2px; line-height: 1.35; pointer-events: none; }
/* «В корзину» — кнопкой под ценой (раньше значок поверх фото). */
.card__add { margin-top: 6px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 10px;
  border-radius: 10px; border: 1.5px solid var(--action); background: transparent; color: var(--action); font: inherit; font-size: 14px;
  font-weight: 700; cursor: pointer; transition: background .15s, color .15s; }
.card__add:hover { background: var(--action); color: #fff; }
.card__add:active { transform: scale(.98); }
.card__add svg { flex: 0 0 auto; }
/* Страница товара: главное фото — тоже целиком в своей рамке (квадрат), без обрезки краёв. */
.pv__main { object-fit: contain; background: #fff; }
/* Телефон: крупнее название и цена (читаются с ходу), шапка ниже — больше места товарам. */
@media (max-width: 560px) {
  .card__name { font-size: var(--title-size, 15px); }
  .card__price b { font-size: 18px; }
}
@media (max-width: 700px) {
  .hdr__row { padding: 7px 0; gap: 7px 10px; }
  .brand { font-size: 19px; }
  .search { padding: 6px 12px; border-radius: 11px; }
  .search input { font-size: 16px; } /* не меньше 16px — иначе iPhone приближает страницу при вводе */
  .hdr__tools .pill, .acctbtn, .cartbtn { padding-top: 6px; padding-bottom: 6px; }
  .themebtn { width: 34px; height: 34px; }
}
/* Плавающая кнопка WhatsApp (сайт): номер — Настройки → Контакты; нет номера — кнопки нет. */
.wa-fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 54px; height: 54px;
  border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: transform .15s; } /* z-index ниже затемнения окон (.ov 60) — открытая корзина её накрывает */
.wa-fab:hover { transform: scale(1.06); }
.wa-fab svg { width: 30px; height: 30px; display: block; }
/* «Спросить в WhatsApp» на странице товара — под «В корзину». */
.btn--wa-ask { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; text-decoration: none;
  background: transparent; color: #1a9e4b; border: 1.5px solid #25d366; } /* ссылка — блоком на всю ширину (иначе строчная и наезжает на «В корзину») */
.btn--wa-ask:hover { background: #25d366; color: #fff; }
/* ── Первый экран главной: кто мы + три действия (просьба заказчика) ── */
.hero2 { padding-top: 22px; padding-bottom: 6px; } /* бока — от .container (не перебивать) */
.hero2__title { margin: 0 0 8px; font-size: clamp(22px, 3.2vw, 34px); line-height: 1.2; font-weight: 900; letter-spacing: -.2px; color: var(--ink); }
.hero2__sub { margin: 0 0 16px; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.45; color: var(--muted); }
.hero2__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.hero2__btns .btn { text-decoration: none; }
.hero2__btn { background: var(--panel); border: 1.5px solid var(--line); color: var(--ink); }
.hero2__btn:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 560px) {
  .hero2 { padding-top: 14px; padding-bottom: 2px; }
  .hero2__btns .btn--action { flex: 1 1 100%; }
  .hero2__btns .hero2__btn { flex: 1 1 calc(50% - 5px); padding-left: 8px; padding-right: 8px; font-size: 14px; }
}
/* ── «Производство»: фото цеха + текст + условия сотрудничества ── */
.factory { margin: 14px auto 18px; }
.factory__h { margin: 0 0 8px; font-size: 20px; }
.factory__text { margin: 0 0 12px; line-height: 1.55; color: var(--ink); white-space: pre-wrap; }
.factory:not(.factory--full) .factory__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.factory__photos { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.factory__photos::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) { .factory__photos { scrollbar-width: thin; } .factory__photos::-webkit-scrollbar { display: block; height: 6px; } .factory__photos::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; } }
.factory__photos img { flex: 0 0 auto; width: 220px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--soft); cursor: zoom-in; }
.factory--full .factory__photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); overflow: visible; }
.factory--full .factory__photos img { width: 100%; }
.factory__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.factory__btns .btn { text-decoration: none; }
@media (max-width: 560px) { .factory__photos img { width: 64vw; } }
/* плавающая кнопка WhatsApp не закрывает низ подвала */
body:has(.wa-fab) .footer__bottom { padding-bottom: 84px; }
/* Выбор страны/валюты (экспорт) — та же выпадашка, что у языка; список шире (названия стран). */
.curdd .langdd__menu { min-width: 200px; }
@media (max-width: 479px) { .curdd .langdd__menu { right: auto; left: 50%; transform: translateX(-50%); } } /* кнопка в середине ряда — меню по центру под ней (не уходит за край) */
