:root {
  --brand: #F26A1B;          /* Foxidrinks orange */
  --brand-hover: #E05A0C;
  --brand-soft: #FFF1E7;
  --brand-ink: #FFFFFF;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --soft: #F7F4F0;           /* cream */
  --soft-2: #EFEAE3;
  --ink: #1B1B1B;
  --muted: #76716B;
  --line: #ECE7E1;
  --sale: #E8341C;
  --ok: #2E9E5B;
  --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141312; --surface: #1C1B19; --soft: #232120; --soft-2: #2D2A27; --ink: #F2EFEA;
    --muted: #A39D96; --line: #302D2A; --brand-soft: #3A2516;
  }
}
:root[data-theme="dark"] .pc-img .em { color: var(--muted); }
:root[data-theme="dark"] {
  --bg: #141312; --surface: #1C1B19; --soft: #232120; --soft-2: #2D2A27; --ink: #F2EFEA;
  --muted: #A39D96; --line: #302D2A; --brand-soft: #3A2516;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Rubik", system-ui, sans-serif; font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; display: block; }
i[data-ico] { display: contents; }
.muted { color: var(--muted); }

/* Buttons */
.btn { border: 0; border-radius: 12px; height: 44px; padding: 0 20px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s; white-space: nowrap; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-soft { background: var(--soft); }
.btn-soft:hover { background: var(--soft-2); }
.btn-white { background: #fff; color: #1B1B1B; }
.btn-block { width: 100%; }
.btn-lg { height: 52px; font-size: 16px; }

/* Utility bar */
.util { background: var(--soft); font-size: 13px; color: var(--muted); }
.util-in { display: flex; justify-content: space-between; align-items: center; height: 36px; gap: 16px; }
.util-l, .util-r { display: flex; align-items: center; gap: 20px; }
.util a:hover { color: var(--ink); }
.util-city { display: flex; align-items: center; gap: 5px; color: var(--ink); }
.util-city .ico { width: 15px; height: 15px; }
.util-phone { color: var(--ink); font-weight: 600; }
.lang { display: flex; gap: 2px; }
.lang button { border: 0; background: transparent; padding: 3px 7px; border-radius: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.lang button.on { background: var(--surface); color: var(--ink); }
.util-theme { border: 0; background: transparent; padding: 4px; color: var(--muted); }
.util-theme .ico { width: 16px; height: 16px; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 16px; height: 76px; }
.logo { display: flex; align-items: center; gap: 9px; flex: none; }
.logo-mark { width: 46px; height: 46px; display: block; transition: transform .2s; }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.logo-txt { font-size: 23px; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.logo-txt b { color: var(--brand); font-weight: 800; }
.catalog-btn { height: 46px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 600; display: flex; align-items: center; gap: 8px; flex: none; }
.catalog-btn:hover { background: var(--brand-hover); }
.catalog-btn .ic-close, .catalog-btn.open .ic-open { display: none; }
.catalog-btn.open .ic-close { display: block; }
.search { flex: 1; position: relative; display: flex; }
.search input { width: 100%; height: 46px; border: 2px solid var(--brand); background: var(--surface); border-radius: 12px; padding: 0 56px 0 16px; outline: none; font-size: 15px; }
.search-btn { position: absolute; right: 4px; top: 4px; width: 46px; height: 38px; border: 0; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.suggest { position: absolute; top: 52px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 16px 40px rgba(0,0,0,.12); display: none; overflow: hidden; z-index: 5; }
.suggest.show { display: block; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 9px 14px; }
.suggest a:hover { background: var(--soft); }
.s-art { width: 38px; height: 38px; border-radius: 9px; background: var(--soft); display: grid; place-items: center; font-size: 20px; flex: none; }
.s-name { flex: 1; font-size: 14px; }
.s-price { font-weight: 700; white-space: nowrap; }
.h-actions { display: flex; gap: 4px; flex: none; }
.h-act { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); padding: 4px 10px; min-width: 64px; }
.h-act:hover { color: var(--ink); }
.h-ic { position: relative; color: var(--ink); }
.h-ic .ico { width: 24px; height: 24px; }
.badge { position: absolute; top: -6px; right: -10px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px; display: none; place-items: center; line-height: 18px; }
.badge.show { display: grid; }

/* Mega menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(0,0,0,.08); display: none; }
.mega.open { display: block; }
.mega-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 16px; padding-top: 16px; padding-bottom: 20px; }
.mega-in a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; }
.mega-in a:hover { background: var(--soft); }
.mega-in .s-art { width: 40px; height: 40px; }
.mega-in b { font-weight: 500; display: block; }
.mega-in small { color: var(--muted); font-size: 12.5px; }

/* Sections */
main { min-height: 60vh; padding-bottom: 24px; }
.section { margin-top: 44px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-head h2 { font-size: 24px; }
.sec-head .more { color: var(--brand); font-weight: 500; display: flex; align-items: center; gap: 2px; font-size: 14.5px; white-space: nowrap; }
.sec-head .more .ico { width: 16px; height: 16px; }

/* Banner */
.banner { margin-top: 20px; position: relative; border-radius: 20px; overflow: hidden; height: 340px; background: #2A221C; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 64px; opacity: 0; transition: opacity .6s; pointer-events: none; background-size: cover; color: #fff; }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,17,13,.86) 0%, rgba(22,17,13,.62) 42%, rgba(22,17,13,.05) 78%); }
.slide.on { opacity: 1; pointer-events: auto; }
.slide-txt { position: relative; max-width: 520px; }
.slide h1 { font-size: 38px; font-weight: 700; }
.slide p { font-size: 16.5px; margin: 12px 0 24px; opacity: .85; }
.banner-nav { position: absolute; bottom: 20px; left: 64px; display: flex; gap: 6px; z-index: 2; }
.banner-nav button { width: 8px; height: 8px; border-radius: 4px; border: 0; padding: 0; background: rgba(255,255,255,.4); transition: width .2s; }
.banner-nav button.on { width: 24px; background: #fff; }
.b-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #1B1B1B; display: grid; place-items: center; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.banner .b-arrow { background: rgba(255,255,255,.16); color: #fff; box-shadow: none; backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.banner:hover .b-arrow { opacity: 1; }
.b-arrow[hidden] { display: none; }
.b-arrow.l { left: 14px; } .b-arrow.r { right: 14px; }

/* Category icons */
.cat-icons { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; }
.ci { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; line-height: 1.25; }
.ci-img { width: 84px; height: 84px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 38px; transition: background .15s, transform .15s; }
.ci:hover .ci-img { background: var(--brand-soft); transform: translateY(-2px); }

/* Shelf */
.shelf { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 80px) / 6); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.shelf .b-arrow { top: 34%; }
.shelf .b-arrow.l { left: -18px; } .shelf .b-arrow.r { right: -18px; }

/* Product card */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 16px; }
.pc { display: flex; flex-direction: column; position: relative; min-width: 0; }
.pc-img { aspect-ratio: 1; border-radius: var(--r); background: var(--soft); display: grid; place-items: center; position: relative; overflow: hidden; }
.pc-img .em { font-size: 72px; transition: transform .25s; }
.pc:hover .pc-img .em { transform: scale(1.06); }
.tag { position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 7px; color: #fff; background: var(--sale); }
.tag.new { background: var(--ok); }
.fav { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #8A847E; display: grid; place-items: center; z-index: 1; }
.fav:hover { color: var(--brand); }
.fav.on { color: var(--brand); }
.fav.on .ico { fill: currentColor; }
.pc-price { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.price { font-size: 19px; font-weight: 700; }
.price.sale { color: var(--sale); }
.old { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.pname { font-size: 14px; line-height: 1.35; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.pname:hover { color: var(--brand); }
.unit { font-size: 13px; color: var(--muted); margin-top: 3px; }
.pc .act { margin-top: 10px; }
.add { height: 40px; width: 100%; border: 0; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 600; transition: background .15s, color .15s; }
.add:hover { background: var(--brand); color: #fff; }
.qty { display: flex; align-items: center; height: 40px; border-radius: 10px; background: var(--brand); color: #fff; }
.qty button { width: 40px; height: 100%; border: 0; background: transparent; color: inherit; font-size: 20px; }
.qty span { flex: 1; text-align: center; font-weight: 600; }

/* Kits */
.kits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kitc { display: flex; gap: 16px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s; }
.kitc:hover { border-color: var(--brand); }
.kitc .ci-img { width: 64px; height: 64px; font-size: 30px; flex: none; }
.kitc b { font-size: 16px; font-weight: 600; display: block; }
.kitc small { color: var(--muted); font-size: 13px; display: block; margin-top: 2px; }
.kitc .kit-body { flex: 1; min-width: 0; }
.kitc .btn { height: 38px; padding: 0 14px; font-size: 14px; }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; background: var(--soft); border-radius: 20px; padding: 24px; }
.ben { display: flex; gap: 12px; align-items: flex-start; }
.ben-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--surface); color: var(--brand); display: grid; place-items: center; flex: none; }
.ben b { font-weight: 600; display: block; }
.ben span { color: var(--muted); font-size: 13.5px; }

/* Catalog */
.crumbs { color: var(--muted); font-size: 13px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a:hover { color: var(--brand); }
.page-head { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 30px; }
.page-head span { color: var(--muted); }
.layout { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: start; }
.filters { display: grid; gap: 24px; }
.f-block h4 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.f-cats a { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14.5px; color: var(--ink); }
.f-cats a small { color: var(--muted); }
.f-cats a:hover, .f-cats a.on { color: var(--brand); }
.f-cats a.on { font-weight: 600; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14.5px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.check small { color: var(--muted); margin-left: auto; }
.price-in { display: flex; gap: 8px; }
.price-in input { width: 100%; min-width: 0; height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 0 10px; outline: none; }
.price-in input:focus { border-color: var(--brand); }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--soft); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; }
.chip .ico { width: 14px; height: 14px; }
.chip:hover { background: var(--soft-2); }
.toolbar select { margin-left: auto; height: 38px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 0 10px; }
.mob-filter { display: none; }
.kit-banner { display: flex; align-items: center; gap: 16px; background: var(--brand-soft); border-radius: var(--r); padding: 16px 20px; margin-bottom: 20px; flex-wrap: wrap; }
.kit-banner .kb-txt { flex: 1; min-width: 200px; }
.kit-banner b { font-size: 17px; }
.empty { text-align: center; padding: 56px 20px; background: var(--soft); border-radius: 20px; }
.empty .ei { font-size: 52px; }
.empty h3 { margin: 10px 0 6px; font-size: 21px; }
.empty p { color: var(--muted); margin: 0 0 18px; }

/* Product page */
.pp { display: grid; grid-template-columns: 1fr 1fr 340px; gap: 32px; margin-top: 8px; align-items: start; }
.pp-img { aspect-ratio: 1; border-radius: 20px; background: var(--soft); display: grid; place-items: center; font-size: 170px; position: relative; }
.pp h1 { font-size: 26px; font-weight: 600; }
.pp-meta { display: flex; gap: 14px; color: var(--muted); font-size: 13.5px; margin: 10px 0 20px; flex-wrap: wrap; }
.specs { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.specs td { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.specs td:first-child { color: var(--muted); }
.specs td:last-child { text-align: right; }
.buy { border: 1px solid var(--line); border-radius: 18px; padding: 20px; position: sticky; top: 100px; }
.buy .price { font-size: 30px; }
.buy .pc-price { margin: 0; }
.buy .per { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.buy .bonus { display: inline-block; margin-top: 10px; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 8px; }
.buy-row { display: grid; grid-template-columns: 130px 1fr; gap: 8px; margin-top: 18px; }
.buy-row .qty { height: 52px; border-radius: 12px; background: var(--soft); color: var(--ink); }
.buy .stock { color: var(--ok); font-size: 14px; font-weight: 500; margin-top: 14px; }
.buy ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.buy li { display: flex; gap: 10px; align-items: center; }
.buy li .ico { color: var(--ink); width: 18px; height: 18px; }

/* Cart */
.cart { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.ci-row { display: grid; grid-template-columns: 88px 1fr 128px 110px 36px; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ci-row .pc-img { width: 88px; border-radius: 12px; }
.ci-row .pc-img .em { font-size: 40px; }
.ci-row .pname { min-height: 0; }
.ci-row .qty { background: var(--soft); color: var(--ink); height: 38px; }
.ci-row .sum { font-weight: 700; text-align: right; font-size: 16px; }
.rm { border: 0; background: transparent; color: var(--muted); padding: 6px; }
.rm:hover { color: var(--sale); }
.summary { background: var(--soft); border-radius: 18px; padding: 22px; position: sticky; top: 100px; }
.summary h3 { font-size: 20px; margin-bottom: 12px; }
.sline { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); font-size: 14.5px; }
.sline b { color: var(--ink); font-weight: 500; }
.stotal { display: flex; justify-content: space-between; font-size: 22px; font-weight: 700; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.progress { height: 5px; background: var(--soft-2); border-radius: 3px; overflow: hidden; margin: 10px 0 4px; }
.progress i { display: block; height: 100%; background: var(--brand); }
.form { display: grid; gap: 10px; margin-top: 16px; }
.form label { font-size: 13px; color: var(--muted); display: grid; gap: 5px; }
.form input, .form textarea { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 12px; outline: none; }
.form input:focus, .form textarea:focus { border-color: var(--brand); }
.radios { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.radios label { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 4px; text-align: center; cursor: pointer; color: var(--ink); font-size: 13px; display: block; }
.radios input { display: none; }
.radios label:has(input:checked) { border-color: var(--brand); color: var(--brand); font-weight: 500; }

/* Quick order page */
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.quick textarea { width: 100%; min-height: 220px; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; outline: none; font-family: ui-monospace, Menlo, monospace; font-size: 14px; line-height: 1.7; background: var(--surface); resize: vertical; }
.quick textarea:focus { border-color: var(--brand); }
.quick code { background: var(--soft); padding: 2px 6px; border-radius: 6px; font-size: 13px; }
.quick-res { display: grid; gap: 6px; margin-top: 14px; font-size: 14px; }
.quick-res .ok { color: var(--ok); } .quick-res .no { color: var(--sale); }

.prose { max-width: 760px; font-size: 15.5px; }
.prose h3 { margin: 24px 0 8px; font-size: 19px; }
.prose p, .prose li { color: var(--muted); }

/* Footer */
.footer { background: var(--soft); margin-top: 64px; padding: 44px 0 24px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.foot-grid h4 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.foot-grid a { display: block; padding: 4px 0; color: var(--muted); }
.foot-grid a:hover { color: var(--brand); }
.foot-grid p { margin: 4px 0; color: var(--muted); }
.foot-phone { font-size: 20px; font-weight: 700; color: var(--ink) !important; }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); flex-wrap: wrap; align-items: center; }
.pay { display: flex; gap: 6px; flex-wrap: wrap; }
.pay span { background: var(--surface); border-radius: 8px; padding: 4px 10px; font-weight: 500; color: var(--ink); font-size: 13px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #1B1B1B; color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 500; opacity: 0; transition: .2s; pointer-events: none; z-index: 100; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }


/* Icons inside image tiles */
.s-art { color: var(--brand); }
.s-art .ico { width: 21px; height: 21px; stroke-width: 1.7; }
.ci-img { color: var(--brand); }
.ci-img .ico { width: 38px; height: 38px; stroke-width: 1.5; }
.kitc .ci-img .ico { width: 30px; height: 30px; }
.kit-banner .ci-img .ico { width: 28px; height: 28px; }
.pc-img .em { display: grid; place-items: center; color: var(--brand); }
.pc-img .em .ico { width: 72px; height: 72px; stroke-width: 1.2; }
.ci-row .pc-img .em .ico { width: 38px; height: 38px; stroke-width: 1.5; }
.pp-img { color: var(--brand); }
.pp-img > .ico { width: 44%; height: 44%; stroke-width: .9; }
.empty .ei { display: block; width: 96px; height: 96px; margin: 0 auto; }
.empty .ei .ico { width: 38px; height: 38px; stroke-width: 1.5; }
.buy .stock { display: flex; align-items: center; gap: 6px; }
.buy .stock .ico { width: 17px; height: 17px; }
.quick-res div { display: flex; align-items: center; gap: 8px; }
.quick-res .ico { width: 16px; height: 16px; }


/* ---- Calm overrides: fewer buttons, less orange ---- */
.search input { border: 1.5px solid var(--line); background: var(--soft); }
.search input:focus { border-color: var(--brand); background: var(--surface); }
.search-btn { background: transparent; color: var(--muted); }
.search-btn:hover { color: var(--brand); }
.ci-img { color: var(--ink); }
.ci:hover .ci-img { color: var(--brand); }
.kitc .ci-img { color: var(--ink); }
.pc-media { position: relative; }
.pc-img .em { color: #B9AC9D; }
.price.sale { color: var(--ink); }
.tag { background: #FDE8E4; color: var(--sale); }
.tag.new { background: #E3F4E9; color: var(--ok); }
.fav { color: var(--muted); opacity: 0; transition: opacity .15s; }
.pc:hover .fav, .fav.on { opacity: 1; }
@media (hover: none) { .fav { opacity: 1; } }
.pc .act { position: absolute; right: 10px; bottom: 10px; margin: 0; }
.add { width: 40px; height: 40px; padding: 0; border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.08); display: grid; place-items: center; }
.add:hover { background: var(--brand); color: #fff; }
.pc .qty { height: 40px; border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.08); width: 112px; }
.pc .qty button { width: 36px; font-size: 18px; }
.pc .qty button:hover { color: var(--brand); }
.pname { min-height: 0; }
.kitc .add { flex: none; }
.kitc .add:hover { background: var(--brand); }

/* Product photos (over icon fallback) */
.pc-img, .s-art, .pp-img { position: relative; overflow: hidden; }
.ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pc:hover .pc-img .ph { transform: scale(1.04); }
.pp-img .ph { border-radius: inherit; }
.pc-img .tag, .pp-img .tag { z-index: 1; }


/* ---- Info pages: delivery / quick / bonus ---- */
.phero { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--soft); border-radius: 20px; padding: 32px 36px; margin-top: 12px; }
.phero h1 { font-size: 32px; }
.phero p { color: var(--muted); margin: 8px 0 0; max-width: 620px; font-size: 16px; }
.phero-badge { flex: none; background: var(--surface); border-radius: 16px; padding: 16px 20px; display: grid; justify-items: start; gap: 2px; color: var(--brand); }
.phero-badge .ico { width: 26px; height: 26px; margin-bottom: 6px; }
.phero-badge b { font-size: 24px; color: var(--ink); }
.phero-badge span { font-size: 13px; color: var(--muted); }

.icards { display: grid; gap: 16px; }
.icards.c4 { grid-template-columns: repeat(4, 1fr); }
.icards.c3 { grid-template-columns: repeat(3, 1fr); }
.icard { border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.icard.row { flex-direction: row; align-items: flex-start; gap: 14px; }
.icard.hl { background: var(--brand-soft); border-color: transparent; }
.icard.hl:hover { border-color: var(--brand); }
.icard b { font-weight: 600; font-size: 16px; display: block; }
.icard small { color: var(--muted); font-size: 13.5px; line-height: 1.45; display: block; }
.icard-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; margin-bottom: 6px; }
.icard.row .icard-ic { margin: 0; }
.icard.hl .icard-ic { background: var(--surface); }
.icard-row { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); }
.icard-row .ico { width: 16px; height: 16px; color: var(--muted); }
.icard-price { font-size: 18px; font-weight: 700; margin-top: 6px; }

.tsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.tsteps.c3 { grid-template-columns: repeat(3, 1fr); }
.tsteps li { position: relative; padding-top: 4px; }
.tsteps li::after { content: ""; position: absolute; top: 22px; left: 52px; right: 8px; border-top: 2px dashed var(--line); }
.tsteps li:last-child::after { display: none; }
.tsteps span { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 12px; }
.tsteps b { display: block; font-weight: 600; font-size: 16px; }
.tsteps small { color: var(--muted); font-size: 13.5px; display: block; margin-top: 4px; }

.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 2px; font-weight: 500; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.faq details[open] summary .ico { transform: rotate(90deg); color: var(--brand); }
.faq p { margin: 0 0 16px; color: var(--muted); max-width: 720px; }

.help-strip { display: flex; align-items: center; gap: 16px; background: var(--soft); border-radius: 20px; padding: 18px 24px; flex-wrap: wrap; }
.help-strip > div { flex: 1; min-width: 200px; }
.help-strip b { display: block; font-size: 17px; }
.help-strip span { color: var(--muted); font-size: 14px; }
.help-strip .btn .ico { width: 18px; height: 18px; }

/* quick order */
.quick { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; margin-top: 24px; align-items: start; }
.qcard { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); }
.qcard-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); gap: 12px; flex-wrap: wrap; }
.qcard-head b { font-size: 16px; font-weight: 600; }
.link-btn { border: 0; background: transparent; color: var(--brand); font-weight: 500; padding: 4px 8px; font-size: 14px; }
.link-btn:hover { text-decoration: underline; }
.quick textarea { display: block; width: 100%; min-height: 150px; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); padding: 16px 20px; background: var(--soft); outline: none; resize: vertical; font-family: ui-monospace, Menlo, monospace; font-size: 14px; line-height: 1.8; }
.quick textarea:focus { background: var(--surface); }
.qtable { max-height: 360px; overflow: auto; }
.qrow { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.qrow .s-art { width: 40px; height: 40px; }
.qrow.bad .s-art { background: #FDE8E4; color: var(--sale); }
.qrow.bad .qn b { color: var(--sale); font-family: ui-monospace, Menlo, monospace; font-weight: 500; }
.qn { min-width: 0; }
.qn b { display: block; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qn small { color: var(--muted); font-size: 12.5px; }
.qq { color: var(--muted); font-size: 14px; }
.qs { font-weight: 600; min-width: 84px; text-align: right; }
.qempty { display: flex; align-items: center; gap: 10px; padding: 22px 20px; color: var(--muted); font-size: 14px; }
.qfoot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; flex-wrap: wrap; }
#quickSum { display: flex; align-items: baseline; gap: 16px; color: var(--muted); font-size: 14px; }
#quickSum b { color: var(--ink); }
.qtotal { font-size: 22px; }
#quickAdd:disabled { opacity: .45; cursor: not-allowed; }
#quickAdd .ico { width: 18px; height: 18px; }
.qside { display: grid; gap: 12px; }
.qex { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.qex code { background: var(--soft); padding: 3px 8px; border-radius: 6px; font-size: 13px; }

/* bonus */
.bhero { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 24px; background: linear-gradient(120deg, #F26A1B, #FF9354); color: #fff; border-radius: 24px; padding: 44px 48px; margin-top: 12px; overflow: hidden; }
.bhero-tag { display: inline-block; background: rgba(255,255,255,.2); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.bhero h1 { font-size: 40px; margin: 14px 0 10px; }
.bhero p { opacity: .9; font-size: 16.5px; margin: 0 0 24px; max-width: 520px; }
.bhero-art { display: grid; place-items: center; }
.bcard { position: relative; width: 300px; height: 186px; border-radius: 20px; background: #1F1B18; color: #fff; padding: 22px 24px; transform: rotate(-6deg); box-shadow: 0 24px 50px rgba(0,0,0,.25); display: flex; flex-direction: column; justify-content: space-between; }
.bcard span { font-size: 13px; letter-spacing: .14em; opacity: .7; font-weight: 600; }
.bcard b { font-size: 56px; color: #FF9354; line-height: 1; }
.bcard img { position: absolute; right: 18px; bottom: 18px; width: 72px; height: 72px; }
.calc { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; border: 1px solid var(--line); border-radius: 20px; padding: 28px 32px; }
.calc h2 { font-size: 24px; }
.calc p { margin: 6px 0 18px; }
.calc-in { display: flex; align-items: center; gap: 16px; }
.calc-in output { font-weight: 700; font-size: 18px; min-width: 120px; text-align: right; white-space: nowrap; }
#bonusRange { flex: 1; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--brand) var(--p, 50%), var(--soft-2) var(--p, 50%)); outline: none; }
#bonusRange::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
#bonusRange::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); cursor: pointer; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-out div { background: var(--brand-soft); border-radius: 16px; padding: 18px; }
.calc-out span { display: block; color: var(--muted); font-size: 13.5px; }
.calc-out b { display: block; font-size: 26px; margin-top: 4px; color: var(--brand); }


/* ---- Review fixes: skeleton, product page, catalog list, cart, quick, misc ---- */
@keyframes sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.pc-img:has(> .ph:not(.ok)), .pp-img:has(> .ph:not(.ok)), .s-art:has(> .ph:not(.ok)) {
  background: linear-gradient(90deg, var(--soft) 0%, var(--soft-2) 50%, var(--soft) 100%); background-size: 200% 100%; animation: sk 1.3s linear infinite; }
.pc-img:has(> .ph) > .em, .pp-img:has(> .ph) > .ico, .s-art:has(> .ph) > .ico { visibility: hidden; }
.ph { opacity: 0; transition: opacity .25s, transform .3s; }
.ph.ok { opacity: 1; }

/* product page: price block right under the title */
.pp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-top: 16px; }
.pp-info h1 { font-size: 26px; font-weight: 600; }
.pp-meta { align-items: center; }
.pp-meta .stock { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-weight: 500; }
.pp-meta .stock .ico { width: 15px; height: 15px; }
.pp .buy { position: static; grid-column: auto; background: var(--soft); border: 0; margin-top: 4px; }
.buy-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.buy-top .bonus { margin: 6px 0 0; flex: none; }
.pp .buy-row { grid-template-columns: 132px 1fr 52px; }
.pp .buy-row .qty { background: var(--surface); }
.fav-big { width: 52px; padding: 0; background: var(--surface); }
.fav-big.on { color: var(--brand); }
.fav-big.on .ico { fill: currentColor; }
.pp .buy ul { margin-top: 16px; }
.pp .specs { margin-top: 22px; }

/* card "+" only on hover (desktop), lighter style */
.add { box-shadow: none; border: 1px solid var(--line); }
@media (hover: hover) {
  .pc .act .add { opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s, background .15s, color .15s; }
  .pc:hover .act .add, .pc .act .add:focus-visible { opacity: 1; transform: none; }
}

/* home */
.cat-icons { grid-template-columns: repeat(9, 1fr); }
.ci-all .ci-img { color: var(--muted); }
.kitc .kit-view { flex: none; height: 36px; font-size: 13.5px; }

/* catalog toolbar, view switch, list rows, show more */
.tb-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.toolbar .tb-right select { margin-left: 0; }
.chip-reset { color: var(--brand); background: transparent; }
.chip-reset:hover { background: var(--brand-soft); }
.viewsw { display: inline-flex; background: var(--soft); border-radius: 10px; padding: 3px; }
.viewsw button { border: 0; background: transparent; width: 34px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.viewsw button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.viewsw .ico { width: 18px; height: 18px; }
.plist { border-top: 1px solid var(--line); }
.pl { display: grid; grid-template-columns: 64px minmax(0, 1fr) 150px 120px; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pl .pc-img { width: 64px; border-radius: 10px; }
.pl .pc-img .em .ico { width: 30px; height: 30px; stroke-width: 1.5; }
.pl-name .pname { min-height: 0; -webkit-line-clamp: 1; font-weight: 500; }
.pl-name small { color: var(--muted); font-size: 12.5px; }
.pl-price { text-align: right; }
.pl-price .old { display: block; }
.pl .act { display: flex; justify-content: flex-end; }
.pl .qty { width: 112px; height: 38px; border-radius: 19px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.pl .qty button { width: 36px; }
.more-wrap { display: flex; justify-content: center; margin-top: 28px; }

/* cart */
.forget { margin-top: 32px; }
.forget h3 { font-size: 18px; margin-bottom: 6px; }
.form select { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 12px; outline: none; width: 100%; }
.form select:focus { border-color: var(--brand); }
.form-grp { display: grid; gap: 10px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form:has(input[name="ship"][value="pickup"]:checked) .ship-only { display: none; }
.form:not(:has(input[name="pay"][value="invoice"]:checked)) .inv-only { display: none; }

/* quick order suggestion */
.qrow.bad .sug { color: var(--ink); font-weight: 500; }
.qrow.bad .btn { flex: none; }
label.link-btn { cursor: pointer; }

/* about */
.about-hero { display: grid; grid-template-columns: 1fr 180px; gap: 32px; align-items: center; background: var(--soft); border-radius: 24px; padding: 40px 44px; margin-top: 12px; }
.about-hero h1 { font-size: 34px; }
.about-hero p { color: var(--muted); font-size: 16.5px; margin: 12px 0 24px; max-width: 640px; }
.about-hero img { width: 180px; height: 180px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facts > div { border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.facts b { display: block; font-size: 30px; font-weight: 700; color: var(--brand); letter-spacing: -.02em; }
.facts span { color: var(--muted); font-size: 14px; }
.venue-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.venue-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--soft); font-weight: 500; }
.venue-chips a:hover { background: var(--brand-soft); color: var(--brand); }
.venue-chips .ico { color: var(--brand); }

/* floating WhatsApp + boot loader */
.wa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 70; height: 52px; border-radius: 26px; padding: 0 18px 0 15px; background: #25D366; color: #fff; display: flex; align-items: center; gap: 8px; font-weight: 600; box-shadow: 0 8px 24px rgba(37,211,102,.35); transition: transform .15s; }
.wa-fab:hover { transform: translateY(-2px); }
.wa-fab .ico { width: 22px; height: 22px; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.boot { min-height: 60vh; display: grid; place-items: center; }
.boot img { animation: hop .9s ease-in-out infinite; }


/* category row: show that it scrolls (narrow screens) */
.cat-wrap { position: relative; }
.cat-hint { display: none; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@media (max-width: 1180px) {
  .cat-wrap::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 56px; background: linear-gradient(90deg, transparent, var(--bg) 85%); pointer-events: none; transition: opacity .2s; }
  .cat-hint { display: grid; place-items: center; position: absolute; right: 2px; top: 22px; z-index: 1; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.1); animation: nudge 1.6s ease-in-out infinite; transition: opacity .2s; }
  .cat-hint .ico { width: 18px; height: 18px; }
  .cat-wrap.end::after, .cat-wrap.end .cat-hint { opacity: 0; pointer-events: none; }
  .cat-icons { padding-right: 40px; }
}


/* mobile cart: sticky checkout bar */
.cart-bar { display: none; }
@media (max-width: 900px) {
  .cart-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.08);
    transition: transform .25s ease; }
  .cart-bar.hide { transform: translateY(110%); }
  .cart-bar b { display: block; font-size: 20px; font-weight: 700; line-height: 1.1; }
  .cart-bar span { color: var(--muted); font-size: 13px; }
  .cart-bar i { font-style: normal; color: var(--sale); }
  .cart-bar .btn { flex: 1; max-width: 240px; }
  .cart-bar .btn .ico { width: 18px; height: 18px; }
  body:has(.cart-bar) .wa-fab { display: none; }
  #checkoutForm { scroll-margin-top: 150px; }
  .cart-bar > div { min-width: 0; }
  .cart-bar span { white-space: nowrap; }
  body:has(.cart-bar) .footer { padding-bottom: 100px; }
}


/* brand logo (geometric fox); dark-theme variant swaps the wordmark color */
.logo-img { display: block; height: 40px; width: auto; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
.logo:hover .logo-img { opacity: .85; }


/* real product photos: packaging on white, never cropped */
.ph { object-fit: contain; background: #fff; }
.pc-img:has(> .ph.ok), .pp-img:has(> .ph.ok), .s-art:has(> .ph.ok) { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.pp-desc { color: var(--muted); margin: -8px 0 16px; font-size: 15px; }
.cat-icons { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }


.pp-more { max-width: 860px; }
.pp-more h2 { font-size: 22px; margin-bottom: 10px; }
.pp-more p { color: var(--muted); margin: 0 0 12px; font-size: 15.5px; line-height: 1.6; }

/* Responsive */
@media (max-width: 1180px) {
  .cat-icons { display: flex; overflow-x: auto; gap: 12px; scrollbar-width: none; padding-bottom: 4px; }
  .cat-icons .ci { flex: 0 0 104px; }
  .rail { grid-auto-columns: calc((100% - 48px) / 4); }
  .pp { grid-template-columns: 1fr 1fr; }
  .buy { grid-column: 2; position: static; }
  .kits { grid-template-columns: 1fr 1fr; }
  .mega-in { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .about-hero { grid-template-columns: 1fr; }
  .about-hero img { display: none; }
  .wa-fab span { display: none; }
  .wa-fab { width: 52px; padding: 0; justify-content: center; }
  .icards.c4 { grid-template-columns: 1fr 1fr; }
  .icards.c3, .quick, .calc, .bhero { grid-template-columns: 1fr; }
  .tsteps, .tsteps.c3 { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .tsteps li::after { display: none; }
  .bhero-art { display: none; }
  .util-l a { display: none; }
  .layout, .cart, .quick { grid-template-columns: 1fr; }
  .filters { display: none; }
  .filters.open { display: grid; background: var(--soft); padding: 18px; border-radius: var(--r); }
  .mob-filter { display: inline-flex; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .summary { position: static; }
  .benefits { grid-template-columns: 1fr 1fr; }
    .h-act span:not(.h-ic) { display: none; }
  .h-act { min-width: 0; padding: 4px 8px; }
  .mega-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pp { gap: 20px; }
  .pp-img { aspect-ratio: 4 / 3; }
  .pp .buy-row { grid-template-columns: 112px 1fr 48px; }
  .tb-right { margin-left: 0; width: 100%; justify-content: space-between; }
  .pl { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "img name act" "img price act"; gap: 2px 12px; }
  .pl .pc-img { grid-area: img; width: 56px; }
  .pl-name { grid-area: name; }
  .pl-price { grid-area: price; text-align: left; display: flex; gap: 6px; align-items: baseline; }
  .pl-price .old { display: inline; }
  .pl .act { grid-area: act; }
  .pl .qty { width: 100px; }
  .about-hero { padding: 24px 20px; }
  .about-hero h1 { font-size: 26px; }
  .form-2 { grid-template-columns: 1fr; }
  .wa-fab { right: 14px; bottom: 14px; }
  .phero { flex-direction: column; align-items: flex-start; padding: 22px 20px; }
  .phero h1 { font-size: 24px; }
  .icards.c4, .tsteps, .tsteps.c3 { grid-template-columns: 1fr; }
  .bhero { padding: 28px 22px; }
  .bhero h1 { font-size: 28px; }
  .calc { padding: 20px; }
  .calc-out b { font-size: 21px; }
  .qrow { grid-template-columns: 36px 1fr auto; padding: 10px 14px; }
  .qrow .qq { display: none; }
  .qfoot .btn { width: 100%; }
  .wrap { padding: 0 16px; }
  .util-phone { display: none; }
  .header-in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 12px; gap: 10px; }
  .logo-txt { font-size: 21px; }
  .logo-mark { width: 40px; height: 40px; }
  .logo-img { height: 32px; }
  .h-actions { margin-left: auto; }
  .catalog-btn { order: 3; width: 46px; padding: 0; justify-content: center; }
  .catalog-btn span { display: none; }
  .search { order: 4; flex: 1 1 calc(100% - 56px); min-width: 0; }
  .banner { height: 320px; border-radius: 16px; margin-top: 14px; }
  .slide { padding: 0 22px; align-items: flex-end; padding-bottom: 46px; }
  .slide::before { background: linear-gradient(0deg, rgba(22,17,13,.88) 0%, rgba(22,17,13,.55) 55%, rgba(22,17,13,.15) 100%); }
  .slide h1 { font-size: 27px; }
  .slide p { font-size: 15px; }
  .banner-nav { left: 22px; }
  .b-arrow { display: none; }
  .cat-icons { display: flex; overflow-x: auto; gap: 12px; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .ci, .cat-icons .ci { flex: 0 0 84px; font-size: 12px; }
  .cat-hint { top: 17px; right: -6px; }
  .cat-wrap::after { right: -16px; }
  .cat-icons { padding-right: 48px; }
  .ci-img { width: 68px; height: 68px; font-size: 30px; }
  .rail { grid-auto-columns: 44%; gap: 12px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .pc-img .em .ico { width: 54px; height: 54px; }
  .ci-img .ico { width: 30px; height: 30px; }
  .price { font-size: 17px; }
  .kits { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; padding: 18px; }
  .sec-head h2 { font-size: 20px; }
  .section { margin-top: 32px; }
  .page-head h1 { font-size: 24px; }
  .pp { grid-template-columns: 1fr; }
  .buy { grid-column: auto; }
  .ci-row { grid-template-columns: 64px 1fr 36px; gap: 10px 12px; }
  .ci-row .pc-img { width: 64px; }
  .ci-row .qty { grid-column: 2; }
  .ci-row .sum { grid-column: 2 / 4; text-align: left; }
  .ci-row .rm { grid-row: 1; grid-column: 3; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .mega-in { grid-template-columns: 1fr; }
}


/* FoxiMarket server: stock badges, out-of-stock buttons, delivery line, order done page */
:root { --warn: #B45309; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --warn: #F0A43A; } }
:root[data-theme="dark"] { --warn: #F0A43A; }
.pc .stock, .pl .stock, .ci-row .stock { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12.5px; font-weight: 500; color: var(--ok); }
.pc .stock .ico, .pl .stock .ico, .ci-row .stock .ico { width: 14px; height: 14px; }
.pl-name .stock { display: flex; }
.stock.st-low { color: var(--warn); }
.stock.st-out { color: var(--sale); }
.stock.st-order { color: var(--muted); }
.pc.is-out .pc-img, .pl.is-out .pc-img, .ci-row.is-out .pc-img { opacity: .55; }
.add:disabled, .add:disabled:hover { background: var(--soft); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.qty button:disabled, .pc .qty button:disabled:hover { opacity: .35; color: inherit; cursor: not-allowed; }
.btn { transition: background .15s, transform 160ms ease-out; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary:disabled:hover { background: var(--brand); }
.fee-hint { font-size: 12.5px; margin-top: 2px; }
.qrow.out { opacity: .6; }
.qrow.out .qn small { color: var(--sale); }
.boot-error { padding: 72px 0; text-align: center; display: grid; justify-items: center; gap: 6px; }
.boot-error h2 { margin-top: 10px; }
.boot-error p { margin: 0; }
.boot-error .btn { margin-top: 18px; }
.done { max-width: 560px; margin: 0 auto; text-align: center; background: var(--soft); border-radius: 20px; padding: 36px 28px; }
.done-fox { display: block; margin: 0 auto 12px; }
.done h1 { font-size: 28px; margin-bottom: 16px; }
.done-num { display: inline-grid; gap: 2px; background: var(--surface); border-radius: 14px; padding: 12px 24px; margin-bottom: 18px; }
.done-num span { color: var(--muted); font-size: 13px; }
.done-num b { font-size: 26px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.done-sum { text-align: left; background: var(--surface); border-radius: 14px; padding: 14px 18px; margin-bottom: 16px; }
.done-sum .stotal { font-size: 20px; }
.done > .muted { margin: 0 0 12px; }
.done-pay { display: flex; gap: 10px; align-items: flex-start; text-align: left; background: var(--brand-soft); border-radius: 12px; padding: 12px 14px; margin: 0; font-size: 14px; }
.done-pay .ico { color: var(--brand); margin-top: 1px; }
.done-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.done-actions .btn .ico { width: 18px; height: 18px; }
.done .btn.wa { background: #25D366; color: #fff; }
@media (hover: hover) and (pointer: fine) { .done .btn.wa:hover { background: #1FBE5A; } }
@media (max-width: 640px) {
  .done { padding: 28px 18px; }
  .done h1 { font-size: 24px; }
  .done-actions .btn { flex: 1 1 100%; }
}
