/* БАЗИС — стройматериалы с базы. Тёпло-корпоративная Woo-тема. */
:root {
  --orange: #F07818;
  --orange-dark: #d4640a;
  --orange-soft: #fdeede;
  --graphite: #2B2B2B;
  --graphite-soft: #4a4a4a;
  --ink: #262220;
  --muted: #7d746c;
  --line: #e7e0d8;
  --bg: #f7f4ef;
  --card: #ffffff;
  --green: #2e8b46;
  --red: #d33f2c;
  --radius: 8px;
  --shadow: 0 2px 6px rgba(43, 35, 28, .07);
  --shadow-hover: 0 10px 28px rgba(43, 35, 28, .14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-padding-top: 140px; }

body {
  font-family: 'PT Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }

.num, .price, .p-price, .old, .counter, .qty-val {
  font-variant-numeric: lining-nums tabular-nums;
}

.container { max-width: 1280px; margin: 0 auto; padding-inline: 20px; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }

.section { padding-block: 48px 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-title { font-size: 27px; position: relative; padding-left: 16px; }
.section-title::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; background: var(--orange); border-radius: 3px; }
.section-link { color: var(--orange-dark); font-weight: 700; font-size: 15px; white-space: nowrap; }
.section-link:hover { text-decoration: underline; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- topbar ---------- */
.topbar { background: var(--graphite); color: #cfc9c2; font-size: 13.5px; }
.topbar-in { display: flex; align-items: center; gap: 22px; min-height: 36px; }
.topbar a:hover { color: #fff; }
.topbar-phone { color: #fff; font-weight: 700; font-size: 14px; }
.topbar-hours { margin-left: auto; }
.topbar-hours strong { color: #fff; font-weight: 700; }

/* ---------- header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; box-shadow: 0 1px 0 rgba(0,0,0,.03); }
.header-in { display: flex; align-items: center; gap: 26px; padding-block: 16px; }
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark { width: 44px; height: 44px; background: var(--orange); color: #fff; border-radius: 8px; display: grid; place-items: center; font-size: 26px; font-weight: 700; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.logo-text { line-height: 1.1; }
.logo-name, .logo-sub { display: block; }
.logo-name { font-size: 24px; font-weight: 700; letter-spacing: .04em; color: var(--graphite); }
.logo-sub { font-size: 12px; color: var(--muted); }

.search { flex: 1; display: flex; max-width: 560px; }
.search input { flex: 1; border: 2px solid var(--orange); border-right: 0; border-radius: 6px 0 0 6px; padding: 10px 14px; outline: none; min-width: 0; background: #fff; }
.search input:focus { border-color: var(--orange-dark); }
.search button { background: var(--orange); border: 2px solid var(--orange); color: #fff; padding: 0 20px; border-radius: 0 6px 6px 0; font-weight: 700; font-size: 15px; transition: background .18s; }
.search button:hover { background: var(--orange-dark); border-color: var(--orange-dark); }

.header-actions { display: flex; gap: 6px; margin-left: auto; flex-shrink: 0; }
.h-action { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 10px; border-radius: 6px; background: none; border: 0; color: var(--graphite-soft); font-size: 12px; transition: color .18s, background .18s; }
.h-action:hover { color: var(--orange-dark); background: var(--orange-soft); }
.h-action svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.counter { position: absolute; top: 0; right: 4px; min-width: 18px; height: 18px; padding-inline: 4px; background: var(--orange); color: #fff; border-radius: 9px; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; transition: transform .18s; }
.counter.is-zero { display: none; }
.counter.bump { transform: scale(1.3); }

.burger { display: none; background: none; border: 0; padding: 8px; color: var(--graphite); }
.burger svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 2; fill: none; }

/* ---------- category menu bar ---------- */
.catbar { background: var(--orange); }
.catbar-in { display: flex; }
.catbar a { color: #fff; font-weight: 700; font-size: 14.5px; padding: 11px 18px; transition: background .18s; white-space: nowrap; }
.catbar a:hover, .catbar a.is-active { background: rgba(0, 0, 0, .16); }
.catbar .catbar-all { background: rgba(0, 0, 0, .22); display: flex; align-items: center; gap: 8px; }

/* ---------- mobile menu ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.mobile-menu.open { visibility: visible; }
.mm-overlay { position: absolute; inset: 0; background: rgba(20, 15, 10, .5); opacity: 0; transition: opacity .25s; }
.mobile-menu.open .mm-overlay { opacity: 1; }
.mm-panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); background: #fff; transform: translateX(-102%); transition: transform .28s ease; overflow-y: auto; }
.mobile-menu.open .mm-panel { transform: none; }
.mm-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: var(--graphite); color: #fff; }
.mm-close { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; }
.mm-panel nav a { display: block; padding: 13px 18px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--graphite); }
.mm-panel nav a:active { background: var(--orange-soft); }
.mm-sub { padding: 14px 18px; font-size: 14px; color: var(--muted); }
.mm-sub a { display: block; padding-block: 6px; color: var(--graphite-soft); font-weight: 400; border: 0; }

/* ---------- hero ---------- */
.hero { padding-top: 24px; }
.hero-grid { display: grid; grid-template-columns: 1fr 320px; gap: 16px; }
.hero-main { position: relative; border-radius: 12px; overflow: hidden; min-height: 400px; display: flex; align-items: flex-end; color: #fff; }
.hero-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-main::after { content: ''; position: absolute; inset: 0; background: linear-gradient(75deg, rgba(24, 17, 10, .82) 0%, rgba(24, 17, 10, .45) 52%, rgba(24, 17, 10, .08) 100%); }
.hero-content { position: relative; z-index: 1; padding: 36px 40px; max-width: 560px; }
.hero-kicker { display: inline-block; background: var(--orange); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 4px; margin-bottom: 14px; }
.hero h1 { font-size: 40px; margin-bottom: 12px; text-wrap: balance; }
.hero-content p { font-size: 17px; opacity: .92; margin-bottom: 22px; max-width: 46ch; }
.hero-cta { display: inline-flex; align-items: center; gap: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 6px; font-weight: 700; font-size: 15.5px; padding: 12px 24px; border: 2px solid transparent; transition: background .18s, color .18s, border-color .18s, box-shadow .18s; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); }
.btn-outline { border-color: var(--orange); color: var(--orange-dark); background: #fff; }
.btn-outline:hover { background: var(--orange-soft); }
.btn-dark { background: var(--graphite); color: #fff; }
.btn-dark:hover { background: #000; }

.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.promo-tile { position: relative; border-radius: 12px; overflow: hidden; display: flex; align-items: flex-end; color: #fff; min-height: 150px; }
.promo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.promo-tile:hover img { transform: scale(1.05); }
.promo-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,14,8,0) 25%, rgba(20,14,8,.78) 100%); }
.promo-tile > div { position: relative; z-index: 1; padding: 16px 18px; }
.promo-tag { display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; background: var(--red); padding: 3px 8px; border-radius: 3px; margin-bottom: 7px; }
.promo-tag.green { background: var(--green); }
.promo-tile h3 { font-size: 17px; line-height: 1.25; }

/* ---------- advantages strip ---------- */
.adv-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.adv { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.35; }
.adv svg { width: 30px; height: 30px; stroke: var(--orange); fill: none; stroke-width: 1.7; flex-shrink: 0; }
.adv b { display: block; font-size: 14.5px; }
.adv span { color: var(--muted); font-size: 13px; }

/* ---------- categories grid ---------- */
.cats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-card { position: relative; border-radius: 10px; overflow: hidden; min-height: 170px; display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow); }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,16,9,.05) 30%, rgba(22,16,9,.8) 100%); }
.cat-card-body { position: relative; z-index: 1; padding: 16px 18px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cat-card h3 { font-size: 19px; }
.cat-card small { display: block; font-weight: 400; font-size: 13px; opacity: .85; }
.cat-card-arrow { width: 34px; height: 34px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; flex-shrink: 0; transition: transform .25s; }
.cat-card:hover .cat-card-arrow { transform: translateX(4px); }
.cat-card-arrow svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 2.4; fill: none; }

/* ---------- bonus program ---------- */
.bonus { background: var(--graphite); border-radius: 14px; color: #fff; padding: 36px 40px; display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 34px; align-items: center; position: relative; overflow: hidden; }
.bonus::before { content: '3%'; position: absolute; right: -30px; top: -70px; font-size: 300px; font-weight: 700; color: rgba(240, 120, 24, .09); line-height: 1; pointer-events: none; font-variant-numeric: lining-nums; }
.bonus h2 { font-size: 28px; margin-bottom: 10px; }
.bonus h2 span { color: var(--orange); }
.bonus p { color: #bdb6ae; font-size: 15.5px; max-width: 44ch; }
.bonus-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; position: relative; z-index: 1; }
.bcard { border-radius: 10px; padding: 18px 16px 16px; background: linear-gradient(160deg, #494440, #37332f); border: 1px solid rgba(255,255,255,.1); transition: transform .25s; }
.bcard:hover { transform: translateY(-4px); }
.bcard.silver { background: linear-gradient(160deg, #8d8d92, #5f5f66); }
.bcard.gold { background: linear-gradient(160deg, #d9922c, #a35e0d); }
.bcard-tier { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.bcard-pct { font-size: 30px; font-weight: 700; margin-block: 4px 2px; font-variant-numeric: lining-nums tabular-nums; }
.bcard-cond { font-size: 12.5px; opacity: .82; line-height: 1.4; }

/* ---------- product card ---------- */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.p-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; position: relative; transition: box-shadow .22s, border-color .22s, transform .22s; }
.p-card:hover { box-shadow: var(--shadow-hover); border-color: #dcc9b4; transform: translateY(-3px); }
.p-badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; color: #fff; padding: 4px 9px; border-radius: 4px; background: var(--orange); }
.p-badge.b-akciya { background: var(--red); }
.p-badge.b-novinka { background: var(--green); }
.p-fav-row { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.icon-toggle { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: #9a908a; transition: color .18s, border-color .18s, background .18s, transform .12s; }
.icon-toggle:hover { color: var(--orange-dark); border-color: var(--orange); }
.icon-toggle:active { transform: scale(.9); }
.icon-toggle svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.9; }
.icon-toggle.on { color: #fff; background: var(--orange); border-color: var(--orange); }
.icon-toggle.on svg { fill: currentColor; }
.icon-toggle.on.cmp svg { fill: none; }
.p-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #efeae3; }
.p-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.p-card:hover .p-photo img { transform: scale(1.05); }
.p-body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-cat { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.p-name { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--graphite); flex: 1; }
.p-name:hover { color: var(--orange-dark); }
.p-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.p-price { font-size: 20px; font-weight: 700; color: var(--graphite); }
.p-price .unit { font-size: 13px; font-weight: 400; color: var(--muted); }
.old { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.p-stock { font-size: 12.5px; color: var(--green); display: flex; align-items: center; gap: 5px; }
.p-stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.p-buy { margin-top: 2px; width: 100%; padding: 10px; font-size: 14.5px; }
.p-buy.in-cart { background: var(--green); }

/* ---------- 1C sync block ---------- */
.sync { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 38px 40px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; }
.sync-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--orange-soft); color: var(--orange-dark); font-weight: 700; font-size: 13px; padding: 6px 13px; border-radius: 20px; margin-bottom: 14px; }
.sync-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.sync h2 { font-size: 27px; margin-bottom: 12px; }
.sync p { color: var(--graphite-soft); max-width: 56ch; }
.sync-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sync-stat { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.sync-stat b { display: block; font-size: 26px; color: var(--orange-dark); font-variant-numeric: lining-nums tabular-nums; }
.sync-stat span { font-size: 13.5px; color: var(--muted); }

/* ---------- delivery ---------- */
.delivery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.d-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; transition: box-shadow .22s, transform .22s; }
.d-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.d-icon { width: 52px; height: 52px; border-radius: 10px; background: var(--orange-soft); display: grid; place-items: center; margin-bottom: 14px; }
.d-icon svg { width: 28px; height: 28px; stroke: var(--orange-dark); fill: none; stroke-width: 1.7; }
.d-card h3 { font-size: 18px; margin-bottom: 8px; }
.d-card p { font-size: 14.5px; color: var(--graphite-soft); }
.d-card .d-price { margin-top: 10px; font-weight: 700; color: var(--orange-dark); }

/* ---------- footer ---------- */
.site-footer { background: var(--graphite); color: #b6afa7; margin-top: 56px; font-size: 14.5px; }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 30px; padding-block: 42px 34px; }
.f-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.f-logo .logo-mark { width: 38px; height: 38px; font-size: 22px; }
.f-logo b { color: #fff; font-size: 20px; letter-spacing: .04em; }
.f-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .06em; }
.f-col a { display: block; padding-block: 4px; transition: color .18s; }
.f-col a:hover { color: var(--orange); }
.f-req { font-size: 13.5px; line-height: 1.7; }
.f-req b { color: #e8e2da; }
.f-phone { color: #fff; font-size: 19px; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 18px; font-size: 13px; line-height: 1.6; color: #948c84; }
.footer-bottom a { color: var(--orange); }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- breadcrumbs ---------- */
.crumbs { padding-block: 16px 4px; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.crumbs a { color: var(--orange-dark); }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { color: #c5bcb2; margin-inline: 4px; }

/* ---------- catalog layout ---------- */
.page-title { font-size: 30px; padding-block: 6px 4px; }
.page-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.catalog-layout { display: grid; grid-template-columns: 264px 1fr; gap: 26px; align-items: start; padding-bottom: 20px; }

.filters { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; position: sticky; top: 96px; }
.f-group { padding-block: 16px; border-top: 1px solid var(--line); }
.f-group:first-child { padding-top: 0; border-top: 0; }
.f-group h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; color: var(--graphite); }
.f-check { display: flex; align-items: center; gap: 9px; padding-block: 5px; font-size: 14.5px; cursor: pointer; color: var(--graphite-soft); }
.f-check:hover { color: var(--ink); }
.f-check input { accent-color: var(--orange); width: 16px; height: 16px; cursor: pointer; }
.f-check .cnt { margin-left: auto; color: #b3aaa1; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.f-price-row { display: flex; align-items: center; gap: 8px; }
.f-price-row input { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; outline: none; }
.f-price-row input:focus { border-color: var(--orange); }
.f-apply { width: 100%; margin-top: 14px; padding: 10px; font-size: 14.5px; }
.f-reset { width: 100%; margin-top: 8px; background: none; border: 0; color: var(--muted); font-size: 13.5px; text-decoration: underline; }
.f-reset:hover { color: var(--red); }

.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.found { color: var(--muted); font-size: 14.5px; }
.found b { color: var(--ink); }
.sort-wrap { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); }
.sort-wrap select { border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; background: #fff; outline: none; cursor: pointer; }
.sort-wrap select:focus { border-color: var(--orange); }
.filters-toggle { display: none; }

.empty-state { background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 48px 24px; text-align: center; color: var(--muted); grid-column: 1 / -1; }
.empty-state b { display: block; font-size: 19px; color: var(--ink); margin-bottom: 6px; }

/* ---------- product page ---------- */
.product-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; padding-block: 18px 12px; align-items: start; }
.gallery-main { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; aspect-ratio: 4 / 3; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs button { width: 84px; height: 64px; border-radius: 8px; overflow: hidden; border: 2px solid var(--line); padding: 0; background: none; transition: border-color .18s; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--orange); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.p-page-cat { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.p-page-title { font-size: 27px; margin-bottom: 8px; }
.p-meta-row { display: flex; gap: 16px; align-items: center; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.p-meta-row .stock { color: var(--green); font-weight: 700; }
.buy-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-bottom: 22px; }
.buy-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.buy-price { font-size: 34px; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.buy-price .unit { font-size: 16px; font-weight: 400; color: var(--muted); }
.buy-price-row .old { font-size: 18px; }
.disc-badge { background: var(--red); color: #fff; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.qty { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.qty button { width: 42px; border: 0; background: var(--bg); font-size: 19px; color: var(--graphite-soft); transition: background .15s; }
.qty button:hover { background: var(--orange-soft); color: var(--orange-dark); }
.qty-val { width: 52px; text-align: center; border: 0; outline: none; font-size: 16px; font-weight: 700; }
.buy-row .btn-primary { flex: 1; min-width: 170px; }
.buy-secondary { display: flex; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.text-toggle { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; font-size: 14px; color: var(--graphite-soft); padding: 0; transition: color .18s; }
.text-toggle:hover { color: var(--orange-dark); }
.text-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.text-toggle.on { color: var(--orange-dark); font-weight: 700; }
.text-toggle.on svg { fill: var(--orange); stroke: var(--orange); }
.text-toggle.on.cmp svg { fill: none; }
.buy-note { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.buy-note svg { width: 18px; height: 18px; stroke: var(--orange); fill: none; stroke-width: 1.8; flex-shrink: 0; margin-top: 1px; }

.p-desc h2, .p-specs h2 { font-size: 20px; margin-bottom: 12px; }
.p-desc { margin-bottom: 26px; color: var(--graphite-soft); }
.specs-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.specs-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.specs-table td:first-child { color: var(--muted); width: 46%; }
.specs-table tr:nth-child(odd) td { background: #fbf9f6; }

/* ---------- compare page ---------- */
.cmp-scroll { overflow-x: auto; padding-bottom: 10px; }
.cmp-table { border-collapse: collapse; min-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.cmp-table th, .cmp-table td { border: 1px solid var(--line); padding: 12px 14px; font-size: 14px; text-align: left; vertical-align: top; min-width: 200px; }
.cmp-table th:first-child, .cmp-table td:first-child { min-width: 150px; background: #fbf9f6; color: var(--muted); font-weight: 400; position: sticky; left: 0; }
.cmp-table thead th { background: #fff; }
.cmp-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
.cmp-name { font-weight: 700; font-size: 14.5px; display: block; margin-bottom: 6px; color: var(--graphite); }
.cmp-name:hover { color: var(--orange-dark); }
.cmp-price { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.cmp-remove { background: none; border: 0; color: var(--muted); font-size: 12.5px; text-decoration: underline; padding: 0; margin-top: 8px; }
.cmp-remove:hover { color: var(--red); }

/* ---------- checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 30px; align-items: start; padding-block: 10px 30px; }
.co-block { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.co-block h2 { font-size: 19px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.co-step { width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 14px; display: grid; place-items: center; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.wide { grid-column: 1 / -1; }
.form-field label { font-size: 13.5px; color: var(--muted); }
.form-field input, .form-field textarea { border: 1px solid var(--line); border-radius: 6px; padding: 11px 13px; outline: none; background: #fff; transition: border-color .18s; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--orange); }
.form-field input.err { border-color: var(--red); }
.radio-card { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; cursor: pointer; transition: border-color .18s, background .18s; margin-bottom: 10px; }
.radio-card:hover { border-color: #dcc9b4; }
.radio-card.checked { border-color: var(--orange); background: var(--orange-soft); }
.radio-card input { accent-color: var(--orange); width: 17px; height: 17px; margin-top: 2px; cursor: pointer; }
.radio-card b { display: block; font-size: 15px; }
.radio-card span { font-size: 13.5px; color: var(--muted); }
.radio-card .r-price { margin-left: auto; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

.co-summary { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; position: sticky; top: 96px; }
.co-summary h2 { font-size: 19px; margin-bottom: 14px; }
.co-items { display: flex; flex-direction: column; gap: 14px; max-height: 380px; overflow-y: auto; margin-bottom: 14px; }
.co-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; }
.co-item img { width: 64px; height: 52px; object-fit: cover; border-radius: 6px; }
.co-item-name { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.co-item-qty { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.co-item-sum { font-weight: 700; font-size: 14.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-totals { border-top: 1px solid var(--line); padding-top: 14px; font-size: 14.5px; display: flex; flex-direction: column; gap: 8px; }
.co-totals .row { display: flex; justify-content: space-between; }
.co-totals .grand { font-size: 19px; font-weight: 700; padding-top: 6px; }
.co-totals .bonus-earn { color: var(--orange-dark); font-size: 13.5px; }
.co-submit { width: 100%; margin-top: 16px; padding: 14px; font-size: 16px; }
.co-agree { font-size: 12.5px; color: var(--muted); margin-top: 10px; text-align: center; }

.thanks { text-align: center; padding: 70px 20px 40px; max-width: 560px; margin-inline: auto; }
.thanks-icon { width: 84px; height: 84px; border-radius: 50%; background: var(--orange-soft); display: grid; place-items: center; margin: 0 auto 20px; }
.thanks-icon svg { width: 42px; height: 42px; stroke: var(--orange); stroke-width: 2; fill: none; }
.thanks h1 { font-size: 30px; margin-bottom: 12px; }
.thanks p { color: var(--graphite-soft); margin-bottom: 24px; }

/* ---------- cart drawer ---------- */
.cart-drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.cart-drawer.open { visibility: visible; }
.cd-overlay { position: absolute; inset: 0; background: rgba(20, 15, 10, .5); opacity: 0; transition: opacity .25s; }
.cart-drawer.open .cd-overlay { opacity: 1; }
.cd-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 94vw); background: #fff; transform: translateX(102%); transition: transform .28s ease; display: flex; flex-direction: column; }
.cart-drawer.open .cd-panel { transform: none; }
.cd-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.cd-head h3 { font-size: 19px; }
.cd-close { background: none; border: 0; font-size: 28px; line-height: 1; color: var(--muted); }
.cd-close:hover { color: var(--ink); }
.cd-items { flex: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 16px; }
.cd-item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; }
.cd-item img { width: 72px; height: 58px; object-fit: cover; border-radius: 6px; }
.cd-item-name { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.cd-item-name:hover { color: var(--orange-dark); }
.cd-item-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; gap: 8px; }
.cd-qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; }
.cd-qty button { width: 28px; height: 28px; border: 0; background: none; font-size: 16px; color: var(--graphite-soft); }
.cd-qty button:hover { color: var(--orange-dark); }
.cd-qty span { min-width: 30px; text-align: center; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cd-item-sum { font-weight: 700; font-size: 14.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cd-remove { background: none; border: 0; color: #b3aaa1; padding: 2px; }
.cd-remove:hover { color: var(--red); }
.cd-remove svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.cd-empty { text-align: center; color: var(--muted); padding-block: 60px; }
.cd-empty svg { width: 54px; height: 54px; stroke: #d8cfc5; fill: none; stroke-width: 1.4; margin-bottom: 12px; }
.cd-foot { border-top: 1px solid var(--line); padding: 18px 22px; }
.cd-total-row { display: flex; justify-content: space-between; font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.cd-foot .btn { width: 100%; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 80px); background: var(--graphite); color: #fff; padding: 12px 22px; border-radius: 8px; font-size: 14.5px; z-index: 120; opacity: 0; transition: transform .3s ease, opacity .3s ease; pointer-events: none; box-shadow: 0 8px 26px rgba(0,0,0,.3); max-width: 90vw; text-align: center; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .bonus { grid-template-columns: 1fr; padding: 30px; }
  .adv-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .hero-main { min-height: 340px; }
  .hero h1 { font-size: 32px; }
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .sync { grid-template-columns: 1fr; padding: 28px; }
  .delivery-grid { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
  .product-layout { grid-template-columns: 1fr; gap: 24px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .co-summary { position: static; }
  .catbar { display: none; }
  .burger { display: block; }
  .search { max-width: none; }
  .topbar-hours, .topbar-link { display: none; }
}

@media (max-width: 640px) {
  html { overflow-x: hidden; }
  .container { padding-inline: 14px; }
  .header-in { gap: 10px; flex-wrap: wrap; padding-block: 12px; }
  .logo { order: 1; }
  .burger { order: 0; margin-left: -6px; }
  .header-actions { order: 2; margin-left: auto; }
  .search { order: 3; flex-basis: 100%; }
  .logo-sub { display: none; }
  .logo-name { font-size: 20px; }
  .logo-mark { width: 38px; height: 38px; font-size: 22px; }
  .h-action span.lbl { display: none; }
  .h-action { padding: 6px 8px; }
  .hero { padding-top: 14px; }
  .hero-content { padding: 22px 20px; }
  .hero h1 { font-size: 26px; }
  .hero-content p { font-size: 15px; }
  .hero-side { grid-template-columns: 1fr; }
  .section { padding-block: 34px 6px; }
  .section-title { font-size: 22px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .p-body { padding: 10px 11px 12px; }
  .p-name { font-size: 13.5px; }
  .p-price { font-size: 17px; }
  .p-buy { font-size: 13.5px; padding: 9px 6px; }
  .cats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-card { min-height: 130px; }
  .cat-card h3 { font-size: 15.5px; }
  .cat-card small { display: none; }
  .cat-card-arrow { width: 28px; height: 28px; }
  .bonus-cards { grid-template-columns: 1fr; }
  .bonus::before { font-size: 180px; }
  .adv-strip { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 24px; padding-block: 32px 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 24px; }
  .p-page-title { font-size: 22px; }
  .buy-price { font-size: 28px; }
  .gallery-thumbs button { width: 72px; height: 56px; }
  .sync-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sync-stat { padding: 12px 14px; }
  .sync-stat b { font-size: 21px; }
}
