/* СПЕЦХИТ.РФ — структурные стили витрины, общие для всех тем. Цвета, шрифты и радиусы приходят
   переменными из store/themes/<id>.css (заданы на body[data-theme]). Подключается после store.css. */
body {
  --accent: #E30613; --accent-dark: #C20510; --accent-ink: #fff;
  --ink: #111111; --bg: #FFFFFF; --text: var(--ink);
  --grey: #F4F4F6; --grey-2: #E9EAEE; --line: #E6E7EB; --muted: #6B6F7A; --card: #FFFFFF;
  --dark: #1B1B1F; --dark-ink: #fff; --yellow: #F5B800; --blue: #1E56C8;
  --font-head: 'Inter', system-ui, sans-serif; --font-body: 'Inter', system-ui, sans-serif;
  --head-style: normal; --head-tt: none; --head-weight: 700; --head-ls: -.01em;
  --r: 8px; --r-lg: 12px; --r-btn: 6px; --shadow: 0 8px 30px rgba(0,0,0,.06);
  color: var(--ink); background: var(--bg); font-size: 15.5px; font-family: var(--font-body);
}
h1, h2, h3, .sec-title, .cat-title, .hero-title, .product-info h1, .logo-text {
  font-family: var(--font-head); font-weight: var(--head-weight); font-style: var(--head-style); text-transform: var(--head-tt); letter-spacing: var(--head-ls); line-height: 1.05;
}
.tab-pane h3, .review h3, .post-body h3, .article-body h3, .modal h3, .cs-title, .cart-box-head b { font-style: normal; text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 700; }
.eyebrow { display: block; color: var(--accent); font-weight: 700; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.container { max-width: 1240px; padding-inline: 24px; }
.btn { border-radius: var(--r-btn); font-weight: 600; padding: 12px 22px; font-size: 15px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-ghost { border-color: var(--grey-2); color: var(--ink); background: var(--card); }
.btn-ghost:hover { background: var(--grey); border-color: var(--grey-2); }
.btn-white { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
.btn-white:hover { border-color: var(--muted); }
.btn-white .ic { color: #8A3FFC; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-big { padding: 15px 30px; font-size: 16px; }
input, select, textarea { border-radius: var(--r); border-color: var(--grey-2); background: var(--card); color: var(--ink); }
.linklike { color: var(--accent); }
.muted { color: var(--muted); }

/* ── Топбар (чёрный) ── */
.topbar { background: var(--dark); color: #fff; font-size: 13px; }
.topbar-in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding-block: 9px; gap: 24px; }
.tb-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.tb-center { display: flex; justify-content: center; gap: 56px; }
.tb-phone { display: flex; gap: 8px; align-items: flex-start; }
.tb-phone > span { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; gap: 1px; }
.tb-phone b { font-size: 15px; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.tb-phone .linklike { color: #fff; opacity: .75; font-size: 11.5px; text-decoration: none; padding: 0; }
.tb-phone .linklike:hover { opacity: 1; }

/* ── Шапка ── */
.header { background: var(--card); border-bottom: 1px solid var(--line); }
.header-in { grid-template-columns: auto auto 1fr auto; gap: 28px; align-items: center; padding-block: 18px 16px; }
.logo { display: flex; flex-direction: row; align-items: center; gap: 12px; } /* картинка логотипа слева от названия (store.css ставит column) */
.logo img { height: 52px; max-height: 52px; width: auto; }
.logo-txt { display: flex; flex-direction: column; line-height: 1; }
.logo-text { font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.logo-text em { font-style: normal; color: var(--accent); }
.logo-tag { font-size: 13px; color: var(--muted); margin-top: 6px; text-transform: none; letter-spacing: 0; }
.catbtn-wrap { position: relative; }
.catbtn { height: 46px; padding: 0 22px; font-size: 15px; gap: 12px; border-radius: var(--r-btn); font-weight: 500; }
.catbtn-drop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; min-width: 260px; list-style: none; display: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 18px 44px rgba(0,0,0,.14); padding: 8px; }
.catbtn-drop a { display: block; padding: 10px 14px; border-radius: var(--r); font-weight: 500; font-size: 15px; }
.catbtn-drop a:hover { background: var(--grey); color: var(--accent); }
.catbtn-wrap:hover .catbtn-drop, .catbtn-wrap:focus-within .catbtn-drop { display: block; }
.catbtn-wrap::after { content: ''; position: absolute; left: 0; right: 0; height: 10px; top: 100%; }
.lsearch { position: relative; max-width: none; width: 100%; justify-self: stretch; margin: 0; grid-column: auto; }
.lsearch form { display: flex; position: relative; }
.lsearch input { height: 46px; background: var(--grey); border: 1px solid var(--grey); border-right: 0; border-radius: var(--r-btn) 0 0 var(--r-btn); padding: 0 16px; font-size: 14px; }
.lsearch-btn { flex: none; width: 52px; height: 46px; border: 1px solid var(--line); border-radius: 0 var(--r-btn) var(--r-btn) 0; background: var(--card); display: grid; place-items: center; color: var(--ink); }
.lsearch-btn:hover { color: var(--accent); }
.lsearch .lsearch-btn .ic { position: static; translate: none; color: inherit; pointer-events: none; }
.lsearch-drop { background: var(--card); }
.header-right { display: flex; gap: 26px; align-items: center; }
.hact { display: flex; gap: 10px; align-items: center; color: var(--ink); font-size: 12.5px; line-height: 1.2; text-align: left; }
.hact > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.hact small { font-size: 12.5px; color: var(--muted); }
.hact b { font-size: 13px; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.hact:hover { color: var(--accent); }
.hact-ic { position: relative; display: inline-flex; }
.hbadge, .cart-count.hbadge { position: absolute; top: auto; right: -9px; bottom: -6px; min-width: 18px; height: 18px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; font-style: normal; line-height: 1; }
.cart-count.hbadge[hidden] { display: grid !important; }
.hicon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--r); color: var(--ink); position: relative; }
.burger { display: none; }
.header .nav { background: transparent; border-top: 1px solid var(--line); }
.header .nav-list { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.header .nav-list > li > a { padding: 14px 0; color: var(--ink); font-size: 15.5px; font-weight: 500; border-radius: 0; }
.header .nav-list > li > a:hover { background: transparent; color: var(--accent); }
.header .nav-drop { border-radius: var(--r-lg); background: var(--card); }
.sticky-on .header { position: sticky; top: 0; z-index: 50; }
.crumbs { padding-block: 16px 6px; }

/* ── Баннеры-слайды ── */
.hero { position: relative; min-height: 0; background: #0A0A0A; color: #fff; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; display: block; background: none; }
.hero-slide.on { position: relative; opacity: 1; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: right center; background-repeat: no-repeat; }
.hero-bg::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0A0A0A 0%, #0A0A0A 24%, rgba(10,10,10,.65) 42%, rgba(10,10,10,0) 62%); }
.hero-in { position: relative; z-index: 2; min-height: 400px; display: flex; align-items: center; padding-block: 40px 60px; }
.hero-txt { max-width: 460px; }
.hero-title { font-size: 38px; line-height: 1.1; text-transform: uppercase; font-weight: 800; letter-spacing: -.01em; color: #fff; margin-bottom: 22px; }
.hero-title em { display: block; color: var(--accent); font-style: normal; }
.hero-sub { font-size: 15.5px; color: rgba(255,255,255,.82); line-height: 1.5; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-outline { border: 1.5px solid rgba(255,255,255,.85); color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--ink); }
@media (min-width: 801px) { body[data-theme] .hero .hero-in { padding-inline: 84px; } }
.hero-arr { position: absolute; top: 50%; translate: 0 -50%; z-index: 5; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s, border-color .2s; cursor: pointer; }
.hero-arr:hover { background: var(--accent); border-color: var(--accent); }
.hero-arr-prev { left: 18px; } .hero-arr-prev svg { rotate: 180deg; }
.hero-arr-next { right: 18px; }
.hero .slider-dots { bottom: 18px; }
.hero .slider-dots button { width: 9px; height: 9px; background: rgba(255,255,255,.45); }
.hero .slider-dots button.on { background: var(--accent); width: 9px; }

/* ── Категории (4 карточки) ── */
.catsec { margin-top: 26px; }
.catwall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.catcard { position: relative; display: block; min-height: 222px; padding: 20px; border-radius: var(--r-lg); background: var(--grey); color: var(--ink); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.catcard:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0,0,0,.1); }
.catcard b { display: block; font-size: 19px; font-weight: 700; line-height: 1.15; max-width: 150px; margin-bottom: 8px; hyphens: manual; position: relative; z-index: 2; }
.catcard p { font-size: 13px; line-height: 1.4; color: var(--ink); opacity: .8; max-width: 56%; position: relative; z-index: 2; }
.catcard img { position: absolute; right: 14px; bottom: 14px; width: 54%; height: 74%; object-fit: contain; object-position: right bottom; transition: transform .3s; mix-blend-mode: multiply; }
.catcard:hover img { transform: scale(1.03); }
.catcard-arr { position: absolute; left: 20px; bottom: 20px; width: 30px; height: 30px; border-radius: 5px; background: var(--accent); color: #fff; display: grid; place-items: center; z-index: 2; }

/* ── Преимущества (5) ── */
.advs-wrap { margin-top: 20px; }
.advs { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.adv { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-left: 1px solid var(--line); font-size: 12.5px; line-height: 1.35; }
.adv:first-child { border-left: 0; }
.adv .ic { flex: none; color: var(--ink); }
.adv b { display: block; font-weight: 500; }
.adv span { display: block; color: var(--ink); }

/* ── Популярные товары ── */
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 34px 0 16px; }
.sec-title { font-size: 21px; font-weight: 700; margin: 0; }
.sec-more { color: var(--accent); font-weight: 500; font-size: 13.5px; display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.pop-wrap { position: relative; }
.pop-next { position: absolute; right: -16px; top: 42%; width: 34px; height: 34px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0,0,0,.1); display: grid; place-items: center; color: var(--ink); z-index: 3; }
.grid-products { gap: 16px; }
.pcard { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.pcard:hover { box-shadow: 0 12px 30px rgba(0,0,0,.08); translate: 0 -2px; }
/* Фото заполняет всю область карточки (живые фото с телефона — без белых полей по бокам) */
.pcard-photo { aspect-ratio: 1; padding: 0; background: var(--grey); border-bottom: 1px solid var(--line); }
.pcard-photo img { object-fit: cover; object-position: center; transition: transform .35s; }
.pcard:hover .pcard-photo img { transform: scale(1.04); }
/* Вырезка без фона в карточке (p.cut): предмет целиком, с воздухом, на подложке карточки; темы переопределяют подложку */
.pcard.has-cut .pcard-photo img { object-fit: contain; object-position: center; padding: 9%; }
.pcard-stk { top: 12px; left: 12px; }
.stk { border-radius: 4px; font-size: 11px; padding: 3px 8px; font-weight: 600; letter-spacing: 0; }
.stk-hit, .stk-sale { background: var(--accent); color: #fff; }
.stk-new { background: #1F9D55; color: #fff; }
.pcard-fav { position: absolute; top: 10px; right: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: #9A9DA6; }
.pcard-fav:hover { color: var(--accent); }
.pcard-body { padding: 2px 14px 14px; gap: 6px; }
.pcard-name { font-size: 13px; font-weight: 500; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: none; min-height: 2.7em; }
.pcard-meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; align-items: center; min-height: 16px; }
.pcard-rate { color: #F5A623; font-weight: 600; }
.pcard-revs { display: inline-flex; gap: 4px; align-items: center; }
.pcard-price { gap: 8px; margin-top: 2px; }
.pcard-price b { font-size: 16px; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.pcard-price s { color: var(--muted); font-size: 12.5px; }
.pcard-actions { margin-top: auto; padding-top: 4px; }
.pcard-actions .btn { height: 36px; padding: 0 10px; font-size: 13px; gap: 8px; border-radius: var(--r-btn); font-weight: 500; }
.tabs-head { border-bottom: 1px solid var(--line); gap: 10px; margin-block: 10px 20px; }
.tab-btn { font-size: 17px; font-weight: 600; color: var(--muted); padding: 10px 0; margin-right: 22px; border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.tab-btn.on { color: var(--ink); border-bottom-color: var(--accent); }

/* ── Промо-баннеры ── */
.promo2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.promo { position: relative; display: block; min-height: 210px; border-radius: var(--r-lg); overflow: hidden; padding: 26px 28px; background: var(--grey); color: var(--ink); }
.promo-txt { position: relative; z-index: 2; max-width: 52%; }
.promo b { display: block; font-size: 20px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.promo p { font-size: 13px; line-height: 1.45; margin-bottom: 14px; opacity: .8; }
.promo img { position: absolute; right: 0; top: 0; height: 100%; width: 60%; object-fit: cover; object-position: center; mask-image: linear-gradient(90deg, transparent, #000 22%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%); }
.promo-pct { position: absolute; right: 26px; top: 22px; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 22px; display: grid; place-items: center; z-index: 3; box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 40%, transparent); }
.promo-dark { background: #0F0F10; color: #fff; }
.promo-dark img { width: 68%; }
.promo-dots { position: absolute; left: 28px; bottom: 18px; display: flex; gap: 6px; z-index: 2; }
.promo-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); }
.promo-dots i:first-child { background: #fff; }

/* ── Бренды ── */
.brands-row { display: flex; align-items: center; gap: 36px; margin-top: 22px; padding-block: 16px; }
.brands-label { font-size: 16px; font-weight: 600; white-space: nowrap; }
.brands-list { display: flex; justify-content: space-around; flex: 1; gap: 24px; flex-wrap: wrap; }
.brand { font-family: var(--font-body); font-size: 20px; font-weight: 800; letter-spacing: .01em; opacity: .75; text-transform: none; font-style: normal; }
.brands-next { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.seo-text { margin-block: 40px 56px; }
.seo-text h2 { color: var(--ink); }

/* ── Карта и самовывоз ── */
.mapsec { margin-top: 48px; }
.mapsec-card { display: grid; grid-template-columns: minmax(300px, .9fr) 1.4fr; background: var(--dark); color: var(--dark-ink); border-radius: var(--r-lg); overflow: hidden; min-height: 400px; }
.mapsec-info { padding: 40px 38px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.mapsec-info h2 { font-size: clamp(26px, 2.6vw, 34px); }
.mapsec-info p { opacity: .8; line-height: 1.5; }
.mapsec-rows { display: grid; gap: 10px; margin-block: 8px 16px; font-size: 14.5px; }
.mapsec-rows > div { display: flex; gap: 12px; align-items: center; }
.mapsec-rows .ic { color: var(--accent); flex: none; }
.mapsec-rows a { font-weight: 700; }
.mapsec-info .btn-ghost { background: transparent; color: var(--dark-ink); border-color: color-mix(in srgb, var(--dark-ink) 30%, transparent); }
.mapsec-info .btn-ghost:hover { background: color-mix(in srgb, var(--dark-ink) 10%, transparent); }
.mapsec-map { min-height: 400px; background: #ddd; display: block; }
.mapsec-map iframe { width: 100%; height: 100%; min-height: 400px; display: block; border: 0; filter: saturate(.85); }

/* ── Каталог ── */
.side-block { background: var(--card); border-color: var(--line); border-radius: var(--r-lg); }
.side-cats a:hover { background: var(--grey); }
.view-toggle { border-radius: var(--r-btn); }
.view-toggle button { padding: 0 10px; height: 40px; display: grid; place-items: center; color: var(--muted); }
.view-toggle button.on { background: var(--ink); color: var(--bg); }
.view-toggle button.on i b { background: currentColor; }
.vt-cols { display: grid; gap: 2px; width: 18px; height: 14px; }
.vt-cols b { display: block; background: currentColor; border-radius: 1px; opacity: .85; }
.vt-cols-3 { grid-template-columns: repeat(3, 1fr); } .vt-cols-4 { grid-template-columns: repeat(4, 1fr); }
.vt-cols-5 { grid-template-columns: repeat(5, 1fr); } .vt-cols-6 { grid-template-columns: repeat(6, 1fr); }
.vt-list { display: grid; gap: 3px; width: 18px; height: 14px; }
.vt-list b { display: block; height: 2px; background: currentColor; border-radius: 1px; align-self: center; }
/* Число карточек в ряд задаёт покупатель (кнопки в тулбаре) — эти правила сильнее тем */
.grid-products[data-catalog][data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.grid-products[data-catalog][data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
.grid-products[data-catalog][data-cols="5"] { grid-template-columns: repeat(5, 1fr); gap: 12px; }
.grid-products[data-catalog][data-cols="6"] { grid-template-columns: repeat(6, 1fr); gap: 10px; }
.grid-products[data-catalog][data-cols="5"] .pcard-name, .grid-products[data-catalog][data-cols="6"] .pcard-name { font-size: 13px; }
.grid-products[data-catalog][data-cols="6"] .pcard-price { font-size: 15px; }
.grid-products[data-catalog].as-list, .grid-products[data-catalog][data-cols="list"] { grid-template-columns: 1fr; gap: 12px; }
.grid-products[data-catalog].as-list .pcard { flex-direction: row; align-items: stretch; }
.grid-products[data-catalog].as-list .pcard-photo { width: 200px; aspect-ratio: 1; flex: none; }
.grid-products[data-catalog].as-list .pcard-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.grid-products[data-catalog].as-list .pcard-actions { grid-template-columns: repeat(2, minmax(0, 220px)); margin-top: 0; }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 28px 0 10px; flex-wrap: wrap; }
.pager button { min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: 14px; font-variant-numeric: lining-nums tabular-nums; }
.pager button:hover:not(:disabled) { border-color: var(--ink); }
.pager button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pager button:disabled { opacity: .35; cursor: default; }
.pager .pg-dots { padding: 0 4px; color: var(--muted); }
.cat-soon { border: 1px dashed var(--grey-2); border-radius: var(--r-lg); padding: 30px; max-width: 520px; }
.cat-soon b { display: block; font-size: 18px; margin-bottom: 6px; }
.cat-soon p { color: var(--muted); margin-bottom: 16px; }

/* ── Карточка товара ── */
.product-wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 44px; padding-block: 12px 40px; align-items: start; }
.product-gallery { position: sticky; top: 96px; }
.gallery-main { border-radius: var(--r-lg); background: var(--card); aspect-ratio: 1; border-color: var(--line); }
.gallery-main img { object-fit: contain; background: var(--card); padding: 4%; }
.gallery-thumbs { flex-wrap: wrap; }
.thumb { border-radius: var(--r); border-color: var(--line); background: var(--card); }
.thumb.on { border-color: var(--accent); }
.thumb img { object-fit: cover; }
.product-top { display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: center; font-size: 13.5px; margin-bottom: 12px; }
.pi-brand { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 12.5px; color: var(--ink); }
.pi-sku { color: var(--muted); }
.in-stock, .no-stock { font-weight: 600; font-size: 13.5px; }
.in-stock { color: #168A3F; } .no-stock { color: var(--muted); }
.product-info h1 { font-size: clamp(24px, 2.6vw, 34px); font-style: normal; margin-bottom: 12px; }
.pi-short { color: var(--muted); line-height: 1.55; margin-bottom: 18px; font-size: 15px; }
.pi-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-bottom: 22px; }
.pi-specs > div { border-top: 1px solid var(--line); padding-top: 8px; }
.pi-specs dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.pi-specs dd { font-weight: 600; font-size: 14.5px; }
.buybox { background: var(--grey); border-radius: var(--r-lg); padding: 22px; margin-bottom: 20px; }
.product-price { margin-bottom: 16px; align-items: center; gap: 12px; }
.product-price b { font-size: 34px; font-weight: 800; font-family: var(--font-body); font-variant-numeric: lining-nums tabular-nums; }
.product-price s { font-size: 17px; }
.product-price .stk { padding: 4px 8px; }
.product-buy { margin-bottom: 14px; }
.qty { border-radius: var(--r-btn); background: var(--card); border-color: var(--line); }
.qty input { background: var(--card); }
.product-buy .btn-fav { width: 52px; padding: 0; }
.product-buy .btn-primary { flex: 1 1 200px; }
.buybox-msgs { display: flex; gap: 8px 16px; flex-wrap: wrap; align-items: center; font-size: 13.5px; color: var(--muted); }
.buybox-msgs a { display: inline-flex; gap: 6px; align-items: center; color: var(--ink); font-weight: 600; }
.buybox-msgs a:hover { color: var(--accent); }
.product-trust { gap: 12px; font-size: 14px; color: var(--ink); }
.product-trust > div { gap: 12px; }
.product-trust .ic { color: var(--accent); flex: none; }
.product-trust span { opacity: .85; }
.product-wrap ~ .container .tabs-head { margin-top: 10px; border-bottom: 1px solid var(--line); }
.product-wrap ~ .container .tab-btn { font-size: 18px; font-family: var(--font-body); font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 700; padding: 10px 0; margin-right: 22px; margin-bottom: -1px; border-bottom: 2.5px solid transparent; }
.product-wrap ~ .container .tab-btn.on { border-bottom-color: var(--accent); }
.tab-pane ul { padding-left: 20px; margin: 6px 0 14px; }
.tab-pane li { margin-bottom: 4px; }
.tab-pane h3 { margin: 18px 0 6px; font-size: 17px; }
.specs { max-width: 760px; }
.specs td:first-child { color: var(--muted); }
.specs td { border-color: var(--line); }

/* ── Корзина ── */
.cart-page { max-width: 1240px; padding-bottom: 60px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start; margin-top: 10px; }
.cart-main { display: grid; gap: 18px; }
.cart-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.cart-box-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.cart-box-head b { font-size: 18px; }
.cart-items { gap: 0; }
.cart-item { grid-template-columns: 84px 1fr auto auto auto; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 14px 0; }
.cart-item:first-child { border-top: 0; padding-top: 0; }
.cart-item img { width: 84px; height: 84px; border-radius: var(--r); object-fit: contain; background: var(--grey); }
.cart-item .ci-name { font-size: 15px; }
.cart-item .qty { scale: 1; }
.cart-item .ci-price { font-size: 16px; font-variant-numeric: tabular-nums; }
.checkout-form { gap: 16px; }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.co-field { display: grid; gap: 6px; }
.co-field > span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.co-wide { grid-column: 1 / -1; }
.co-field textarea { min-height: 80px; }
.co-choose { border: 0; padding: 0; display: grid; gap: 8px; }
.co-choose legend { font-size: 13px; text-transform: none; letter-spacing: 0; opacity: 1; font-weight: 700; color: var(--ink); padding: 0; margin-bottom: 8px; }
.co-opt { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 12px; align-items: center; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: var(--card); cursor: pointer; }
.co-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.co-opt input { width: auto; margin: 0; }
.co-opt .co-price { font-weight: 700; white-space: nowrap; }
.co-opt .co-hint { grid-column: 2 / -1; font-size: 12.5px; color: var(--muted); font-style: normal; }
.co-promo { display: flex; gap: 8px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.consent input { width: auto; margin-top: 3px; accent-color: var(--accent); }
.cart-side { position: sticky; top: 96px; }
.cart-summary { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin: 0; font-size: 15px; box-shadow: var(--shadow); }
.cs-title { font-size: 18px; margin-bottom: 14px; }
.cs-row { display: flex; justify-content: space-between; gap: 12px; padding-block: 8px; border-top: 1px solid var(--line); }
.cs-row b { font-variant-numeric: tabular-nums; }
.cs-total { font-size: 18px; }
.cart-auto.cs-row { color: var(--accent); }
.cs-note { margin-top: 12px; line-height: 1.45; }
.cs-trust { display: grid; gap: 9px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.cs-trust > div { display: flex; gap: 10px; align-items: center; }
.cs-trust .ic { color: var(--accent); flex: none; }
.order-done { max-width: 560px; margin-inline: auto; }
.order-done-ic { width: 72px; height: 72px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); display: grid; place-items: center; }
.cartpop { border-radius: var(--r-lg) 0 0 var(--r-lg); background: var(--card); color: var(--ink); }
.cartpop .cart-item { grid-template-columns: 60px 1fr auto auto; padding: 10px 0; }
.cartpop .cart-item img { width: 60px; height: 60px; }

/* ── Контакты ── */
.contacts { padding-bottom: 50px; }
.contacts-grid { grid-template-columns: minmax(300px, .8fr) 1.4fr; gap: 22px; margin-block: 22px 0; align-items: stretch; }
.contacts-cards { display: grid; gap: 12px; align-content: start; }
.ccard { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.ccard-ic { flex: none; width: 44px; height: 44px; border-radius: var(--r); background: var(--grey); color: var(--accent); display: grid; place-items: center; }
.ccard b { display: block; font-size: 15px; margin-bottom: 4px; }
.ccard p { margin-bottom: 4px; line-height: 1.45; }
.ccard p a { font-weight: 700; }
.ccard .btn { margin-top: 10px; }
.ccard-links { display: grid; gap: 6px; }
.ccard-links a { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }
.ccard-links .ic { color: var(--accent); }
.contacts-map { border-radius: var(--r-lg); min-height: 460px; background: var(--grey); display: block; overflow: hidden; }
.contacts-map-live iframe { min-height: 460px; height: 100%; width: 100%; display: block; border: 0; }

/* ── Страница тем ── */
.themes-page { padding-block: 26px 70px; }
.themes-page h1 { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 10px; }
.thgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
.thcard { display: grid; grid-template-columns: 120px 1fr; gap: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; background: var(--card); align-items: start; transition: transform .2s, box-shadow .2s; }
.thcard:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.thcard.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.thcard-sw { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.thcard-sw span { display: block; aspect-ratio: 1; border-radius: var(--r); border: 1px solid rgba(0,0,0,.08); }
.thcard-body b { font-family: var(--font-head); font-style: var(--head-style); text-transform: var(--head-tt); font-size: 24px; display: block; }
.thcard-sub { color: var(--accent); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; display: block; margin: 4px 0 10px; }
.thcard-body p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.thcard-go { grid-column: 1 / -1; display: inline-flex; gap: 8px; align-items: center; font-weight: 700; color: var(--accent); }

/* ── Подвал ── */
.footer { background: var(--dark); color: var(--dark-ink); margin-top: 64px; }
.footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; padding-block: 46px 30px; }
.f-logo { margin-bottom: 8px; }
.f-logo img { height: 52px; }
.footer .logo-text { color: var(--dark-ink); font-size: 24px; }
.footer .logo-tag { color: color-mix(in srgb, var(--dark-ink) 60%, transparent); }
.f-about p { opacity: .7; }
.f-phone { font-size: 20px; font-weight: 800; color: var(--dark-ink); font-variant-numeric: lining-nums tabular-nums; }
.f-col a:hover { color: var(--accent); opacity: 1; }
.f-msg { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; opacity: .85; text-decoration: none; }
.f-msg.linklike { color: inherit; padding: 0; text-align: left; }
.f-msg .ic { color: var(--accent); }
.footer-bottom { border-top-color: color-mix(in srgb, var(--dark-ink) 14%, transparent); }
.footer-dev { color: inherit; text-decoration: none; }
.footer-dev:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* ── Модалки ── */
.modal-box { border-radius: var(--r-lg); background: var(--card); color: var(--ink); }
.modal h3 { font-size: 24px; }
.mbar { display: none; }
.article h1 { font-size: clamp(28px, 3vw, 40px); }
.article-body h2 { font-size: 22px; margin: 26px 0 8px; }

/* ── Адаптив ── */
@media (max-width: 1100px) {
  .header-in { gap: 16px; }
  .header-right { gap: 16px; }
  .logo-text { font-size: 30px; }
  .cart-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .tb-center { gap: 28px; }
  .hero-in { min-height: 360px; padding-block: 34px 52px; }
  .hero-title { font-size: 34px; }
}
@media (min-width: 901px) and (max-width: 1024px) {
  .grid-products { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .catwall { gap: 14px; }
  .catcard { min-height: 205px; padding: 16px; }
  .catcard b { font-size: 17px; }
  .catcard p { font-size: 12.5px; max-width: 52%; }
  .catcard img { width: 52%; height: 70%; right: 10px; bottom: 10px; }
  .adv { padding: 14px 12px; font-size: 12px; gap: 10px; }
}
@media (max-width: 900px) {
  .catwall { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .catcard { min-height: 200px; }
  .advs { grid-template-columns: repeat(3, 1fr); }
  .adv:nth-child(4) { border-left: 0; }
  .adv:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 1024px) {
  .header .nav-list > li > a { font-size: 14px; padding: 12px 0; }
  .mapsec-card { grid-template-columns: 1fr; }
  .mapsec-map, .mapsec-map iframe { min-height: 320px; }
  .product-gallery { position: static; }
  .thgrid { grid-template-columns: 1fr; }
  .pop-next { display: none; }
}
@media (max-width: 800px) {
  body { padding-bottom: 72px; }
  .topbar-in { grid-template-columns: auto auto; justify-content: space-between; padding-block: 7px; }
  .tb-center { display: none; }
  .tb-phone .linklike { display: none; }
  .header-in { grid-template-columns: 1fr auto; gap: 10px 12px; padding-block: 10px; }
  .logo img { height: 40px; max-height: 40px; }
  .logo-text { font-size: 24px; }
  .logo-tag { font-size: 11px; margin-top: 3px; }
  .catbtn-wrap { display: none; }
  .lsearch { grid-column: 1 / -1; grid-row: 2; }
  .lsearch input, .lsearch-btn { height: 42px; }
  .header-right { gap: 4px; }
  .hact > span:last-child { display: none; }
  .hact { padding: 6px; }
  .hact .ic { width: 24px; height: 24px; }
  .hbadge, .cart-count.hbadge { right: -6px; bottom: -4px; min-width: 16px; height: 16px; font-size: 10px; }
  .burger { display: inline-flex; width: 38px; height: 38px; }
  .header .nav { display: none; border: 0; }
  .header .nav.mobile-open { display: block; background: var(--bg); }
  .header .nav.mobile-open .nav-list { flex-direction: column; }
  .hero-in { min-height: 380px; padding-block: 30px 56px; align-items: flex-end; }
  .hero-bg { background-position: 70% center; }
  .hero-bg::before { background: linear-gradient(0deg, #0A0A0A 0%, rgba(10,10,10,.85) 40%, rgba(10,10,10,.25) 75%, rgba(10,10,10,.1) 100%); }
  .hero-txt { max-width: none; }
  .hero-title { font-size: 28px; margin-bottom: 12px; }
  .hero-sub { font-size: 14.5px; margin-bottom: 18px; }
  .hero-btns .btn { padding: 12px 18px; font-size: 14px; }
  .hero-arr { width: 36px; height: 36px; top: auto; bottom: 10px; translate: none; }
  .hero-arr-prev { left: 12px; } .hero-arr-next { right: 12px; }
  .catsec { margin-top: 16px; }
  .catwall { grid-template-columns: 1fr 1fr; gap: 10px; }
  .catcard { min-height: 168px; padding: 14px; }
  .catcard b { font-size: 15px; max-width: none; }
  .catcard p { display: none; }
  .catcard img { width: 62%; height: 62%; right: 8px; bottom: 8px; }
  .catcard-arr { left: 14px; bottom: 14px; width: 28px; height: 28px; }
  .advs-wrap { margin-top: 14px; }
  .advs { grid-template-columns: 1fr; }
  .adv { border-left: 0; padding: 12px 16px; }
  .adv:nth-child(n+2) { border-top: 1px solid var(--line); }
  .sec-head { margin: 26px 0 12px; }
  .sec-title { font-size: 19px; }
  .promo2 { grid-template-columns: 1fr; gap: 12px; }
  .promo { min-height: 180px; padding: 20px; }
  .promo-txt { max-width: 62%; }
  .promo b { font-size: 17px; }
  .brands-row { flex-wrap: wrap; gap: 14px; }
  .brands-list { justify-content: flex-start; gap: 18px; }
  .brand { font-size: 16px; }
  .brands-next { display: none; }
  .mapsec { margin-top: 26px; }
  .mapsec-info { padding: 24px 20px; }
  .product-wrap { grid-template-columns: 1fr; gap: 22px; }
  .gallery-thumbs .thumb { width: 60px; height: 60px; }
  .pi-specs { grid-template-columns: 1fr 1fr; }
  .buybox { padding: 16px; }
  .product-price b { font-size: 28px; }
  .product-buy .btn-ghost:not(.btn-fav) { flex: 1 1 100%; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-side { position: static; }
  .cart-box { padding: 16px; }
  .cart-item { grid-template-columns: 64px 1fr auto; }
  .cart-item img { width: 64px; height: 64px; }
  .cart-item .qty { grid-column: 2; justify-self: start; }
  .cart-item .ci-price { grid-column: 2; }
  .cart-item .ci-del { grid-row: 1; grid-column: 3; }
  .co-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .contacts-map, .contacts-map-live iframe { min-height: 320px; }
  .thcard { grid-template-columns: 90px 1fr; }
  .footer { margin-top: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; padding-block: 34px 24px; }
  .f-about { grid-column: 1 / -1; }
  .mbar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.08); padding-bottom: env(safe-area-inset-bottom); }
  .mbar > * { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px 9px; font-size: 12px; font-weight: 500; color: var(--ink); border-left: 1px solid var(--line); }
  .mbar > *:first-child { border-left: 0; }
  .mbar .ic { color: var(--ink); }
  .mbar .mbar-max .ic { color: #8A3FFC; }
  .mbar .mbar-lead .ic { color: var(--accent); }
  .msgr, .chatw-fab { bottom: 84px; }
}
@media (max-width: 480px) {
  .grid-products { gap: 10px; }
  [data-cols-toggle] { display: none; }
  .grid-products[data-catalog]:not(.as-list) { grid-template-columns: repeat(2, 1fr); }
  .grid-products[data-catalog].as-list .pcard-photo { width: 120px; }
  .footer-grid { grid-template-columns: 1fr; }
  .pi-specs { grid-template-columns: 1fr; }
}

/* ── SPECHIT LITE — поля из карточек сайта сапов: бейдж, метки, комплектация, подкатегории, текст категории ── */
.stk-badge { background: var(--dark); color: var(--dark-ink); }
.adv i { display: block; font-style: normal; }
.pi-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 14px; }
.pi-pills span { background: var(--grey); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }
.pack-list { margin: 0; padding: 0 0 0 20px; columns: 2; column-gap: 32px; line-height: 1.7; }
.cat-subs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.cat-sub { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; background: var(--card); color: var(--ink); }
.cat-sub:hover { border-color: var(--accent); color: var(--accent); }
.cat-lead { color: var(--muted); max-width: 760px; margin: 0 0 18px; line-height: 1.55; }
@media (max-width: 760px) { .pack-list { columns: 1; } }

/* Похожие товары на странице товара: карточки меньше — 6 в ряд на ПК (19.09, Максим), у «Сигналов» кнопка сжимается в «+» по data-cols="6" */
.grid-related { grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 1100px) { .grid-related { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 800px) { .grid-related { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (max-width: 480px) { .grid-related { grid-template-columns: repeat(2, 1fr); } }

/* Мобильные правки 23.09: тост показывался поверх кнопки «Оформить» в корзине и нижней панели — на телефоне выводим его сверху */
@media (max-width: 640px) {
  .toast { top: 76px; bottom: auto; width: max-content; max-width: calc(100% - 32px); }
}
/* Фильтры каталога на телефоне: боковая панель была под всеми товарами. Теперь свёрнута и раскрывается кнопкой «Фильтры» в тулбаре (store.js) */
@media (max-width: 900px) {
  .catalog-wrap { grid-template-columns: minmax(0, 1fr); }   /* 1fr = minmax(auto,1fr): min-content раскрытых фильтров растягивал колонку до 454 px */
  .cat-main { min-width: 0; }
  .cat-side { display: none; order: -1; margin-bottom: 16px; }
  .cat-side.open { display: grid; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; grid-template-columns: minmax(0, 1fr); }
  .cat-side.open .side-block { min-width: 0; max-width: 100%; box-sizing: border-box; overflow: hidden; }
  .cat-side.open input, .cat-side.open select { min-width: 0; max-width: 100%; }
  .cat-tools { flex-wrap: wrap; max-width: 100%; }   /* с кнопкой «Фильтры» ряд сортировка + вид не влезал в 390 px */
  .cat-tools select { flex: 1 1 150px; min-width: 0; }
  .filters-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; }
  .filters-btn.on { background: var(--accent); color: #fff; border-color: var(--accent); }
}
@media (min-width: 901px) { .filters-btn { display: none; } }
