/* =====================================================================
   THtech storefront — red / black / white industrial design system
   Desktop (≥ 960px) and mobile (< 960px) layouts are designed separately.
   ===================================================================== */
:root {
  --red: #e10600; --red-2: #ff2a1a; --red-d: #a80000; --red-soft: #fff0ef;
  --black: #0b0b0d; --ink: #16171a; --ink-2: #24262b; --steel: #3a3d44;
  --white: #fff; --paper: #f5f5f6; --line: #e4e4e7; --line-d: #2c2e33;
  --muted: #6b6e76; --muted-d: #9a9ca3;
  --ok: #17a34a; --warn: #f59e0b;
  --f-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --r: 14px; --r-sm: 9px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --sh-1: 0 1px 2px rgba(0,0,0,.05), 0 4px 14px rgba(0,0,0,.05);
  --sh-2: 0 10px 40px -10px rgba(0,0,0,.25);
  --hdr: 118px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; font-family: var(--f-body); color: var(--ink); background: var(--white); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; flex: none; }
.mono { font-family: var(--f-mono); letter-spacing: .02em; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 32px; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
#view:focus { outline: none; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-display); font-weight: 900; letter-spacing: -.02em; }
.logo-mark { background: var(--red); color: #fff; padding: 5px 10px 5px 9px; font-size: 18px; line-height: 1; clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); padding-right: 14px; }
.logo-word { font-size: 20px; font-weight: 800; color: var(--black); text-transform: lowercase; }
.logo-inv .logo-word { color: #fff; }

/* ---------- preloader ---------- */
#preloader { position: fixed; inset: 0; z-index: 1000; background: var(--black); display: grid; place-items: center; transition: opacity .5s var(--ease), visibility .5s; }
#preloader.done { opacity: 0; visibility: hidden; }
.pl-inner { display: grid; justify-items: center; gap: 18px; }
.pl-gear { width: 64px; height: 64px; color: var(--red); animation: spin 1.6s linear infinite; }
.pl-logo .logo-word { color: #fff; }
.pl-logo { transform: scale(1.4); }
.pl-bar { width: 180px; height: 3px; background: #222; overflow: hidden; margin-top: 8px; }
.pl-bar i { display: block; height: 100%; width: 40%; background: var(--red); animation: plbar 1s var(--ease) infinite; }
@keyframes plbar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- top progress bar ---------- */
#topbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 900; pointer-events: none; }
#topbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red-d), var(--red), var(--red-2)); box-shadow: 0 0 12px var(--red); transition: width .3s var(--ease), opacity .4s; opacity: 0; }
#topbar.on i { opacity: 1; }

/* ---------- network banner ---------- */
#net-banner { position: fixed; left: 50%; top: 12px; transform: translate(-50%, -150%); z-index: 950; background: var(--black); color: #fff; padding: 10px 18px; border-radius: 99px; font-weight: 700; font-size: 13px; display: flex; gap: 8px; align-items: center; transition: transform .4s var(--ease-out); border: 1px solid var(--line-d); }
#net-banner.show { transform: translate(-50%, 0); }
#net-banner.off::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1s infinite; }
#net-banner.on::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

/* ---------- buttons ---------- */
.btn { --bg: var(--red); --fg: #fff; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 26px; background: var(--bg); color: var(--fg); font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; border-radius: var(--r-sm); overflow: hidden; isolation: isolate; transition: transform .2s var(--ease), box-shadow .3s, background .2s; white-space: nowrap; }
.btn::before { content: ''; position: absolute; inset: 0; background: var(--black); transform: translateX(-101%) skewX(-12deg); transform-origin: left; transition: transform .45s var(--ease-out); z-index: -1; width: 120%; left: -10%; }
.btn:hover::before { transform: translateX(0) skewX(-12deg); }
.btn:hover { box-shadow: 0 10px 26px -10px rgba(225, 6, 0, .7); }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg.go { transform: translateX(4px); }
.btn-dark { --bg: var(--black); }
.btn-dark::before { background: var(--red); }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { --fg: #fff; }
.btn-ghost-w { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.btn-ghost-w::before { background: #fff; }
.btn-ghost-w:hover { --fg: var(--black); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn .spin { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading .lbl { opacity: .8; }
.btn.is-done { --bg: var(--ok); }
.btn.is-done::before { display: none; }
.btn .prog { position: absolute; left: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.85); width: 0; transition: width .3s; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; transition: background .2s; }
.icon-btn:hover { background: var(--paper); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- language switch ---------- */
.lang { display: inline-flex; background: rgba(255,255,255,.06); border-radius: 8px; padding: 3px; gap: 2px; }
.lang button { padding: 4px 9px; border-radius: 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--muted-d); transition: .2s; }
.lang button.on { background: var(--red); color: #fff; }
.lang-m { background: var(--paper); }
.lang-m button { color: var(--muted); }

/* =====================================================================
   DESKTOP HEADER
   ===================================================================== */
.hdr-d { position: sticky; top: 0; z-index: 100; }
.hdr-strip { background: var(--black); color: var(--muted-d); font-size: 12.5px; }
.hdr-strip .wrap { display: flex; align-items: center; gap: 26px; height: 40px; }
.strip-item { display: inline-flex; align-items: center; gap: 7px; }
.strip-item svg { width: 15px; height: 15px; color: var(--red); }
.strip-item b { font-weight: 600; color: #d4d5d8; }
a.strip-item:hover { color: #fff; }
.strip-sp { flex: 1; }
.hdr-main { background: rgba(255,255,255,.92); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.hdr-d.scrolled .hdr-main { box-shadow: 0 8px 30px -14px rgba(0,0,0,.25); }
.hdr-main .wrap { display: flex; align-items: center; gap: 28px; height: 78px; }
.nav-d { display: flex; gap: 4px; }
.nav-d a { position: relative; padding: 10px 14px; font-weight: 700; font-size: 14px; color: var(--steel); transition: color .2s; }
.nav-d a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
.nav-d a:hover, .nav-d a.on { color: var(--black); }
.nav-d a:hover::after, .nav-d a.on::after { transform: scaleX(1); transform-origin: left; }
.search-d { flex: 1; max-width: 420px; margin-left: auto; position: relative; display: flex; align-items: center; }
.search-d svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-d input { width: 100%; height: 46px; border: 1.5px solid var(--line); background: var(--paper); border-radius: 10px; padding: 0 44px; outline: none; transition: border-color .2s, background .2s, box-shadow .2s; }
.search-d input:focus { border-color: var(--black); background: #fff; box-shadow: 0 0 0 4px rgba(0,0,0,.06); }
.search-d kbd { position: absolute; right: 12px; font-family: var(--f-mono); font-size: 11px; border: 1px solid var(--line); border-radius: 5px; padding: 1px 7px; color: var(--muted); background: #fff; }
.hdr-phone { display: grid; line-height: 1.2; text-align: right; }
.hdr-phone small { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.hdr-phone b { font-family: var(--f-mono); font-size: 14px; }
.cart-btn { position: relative; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px 0 16px; background: var(--black); color: #fff; border-radius: 12px; font-weight: 800; transition: background .25s, transform .2s; }
.cart-btn:hover { background: var(--red); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-btn-sum { font-family: var(--f-mono); font-size: 13px; }
.cart-btn-sum:empty { display: none; }
.cart-badge { position: absolute; top: -7px; left: 30px; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; transition: transform .3s var(--ease); }
.cart-btn:hover .cart-badge { background: var(--black); }
.cart-badge[data-zero] { transform: scale(0); }
.bump { animation: bump .5s var(--ease); }
@keyframes bump { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.35); } 65% { transform: scale(.9); } }

/* =====================================================================
   MOBILE HEADER + TABBAR (hidden on desktop)
   ===================================================================== */
.hdr-m, .tabbar, .search-m { display: none; }

/* =====================================================================
   SECTIONS / HERO
   ===================================================================== */
.sec { padding: 110px 0; position: relative; }
.sec-hd { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 44px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.kicker::before { content: ''; width: 26px; height: 2px; background: currentColor; }
.h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.05; letter-spacing: -.035em; margin: 14px 0 0; text-transform: uppercase; }
.sec-sub { color: var(--muted); max-width: 460px; margin: 0; }

.hero { position: relative; background: var(--black); color: #fff; overflow: hidden; isolation: isolate; }
.hero-grid-bg { position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); }
.hero-slash { position: absolute; z-index: -1; right: -6%; top: -20%; width: 46%; height: 150%; background: linear-gradient(180deg, var(--red-2), var(--red-d)); transform: skewX(-16deg); transform-origin: top; animation: slashIn 1.2s var(--ease-out) both .3s; }
.hero-slash::after { content: ''; position: absolute; left: -46px; top: 0; bottom: 0; width: 14px; background: var(--red); opacity: .55; }
@keyframes slashIn { from { transform: skewX(-16deg) translateX(60%); } }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 30px; min-height: calc(100vh - var(--hdr)); min-height: min(820px, calc(100svh - var(--hdr))); padding-top: 50px; padding-bottom: 70px; }
.hero-kicker { color: var(--red-2); }
.hero h1 { font-family: var(--f-display); font-weight: 900; font-size: clamp(44px, 5.6vw, 92px); line-height: .95; letter-spacing: -.045em; margin: 22px 0 26px; text-transform: uppercase; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 .ln > span { display: inline-block; animation: rise .9s var(--ease-out) both; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .08s; }
.hero h1 .ln:nth-child(3) > span { animation-delay: .16s; color: var(--red); }
.hero h1 .ln:nth-child(4) > span { animation-delay: .24s; background: linear-gradient(90deg, #6b6e76, #2c2e33 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes rise { from { transform: translateY(105%); } }
.hero-sub { color: #b9bbc1; font-size: 17px; max-width: 520px; margin: 0 0 34px; animation: fadeUp .8s var(--ease-out) both .45s; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeUp .8s var(--ease-out) both .55s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }
.hero-art { position: relative; aspect-ratio: 1; max-width: 520px; justify-self: center; width: 100%; animation: fadeIn 1s both .5s; }
@keyframes fadeIn { from { opacity: 0; } }
.hero-art svg { height: auto; }
.hero-art .g1 { width: 88%; position: absolute; inset: 6%; color: #fff; opacity: .95; animation: spin 26s linear infinite; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
.hero-art .g2 { position: absolute; width: 38% !important; right: -4%; bottom: 2%; color: var(--black); animation: spin 13s linear infinite reverse; }
.hero-art .g3 { position: absolute; width: 22% !important; left: 2%; top: 4%; color: #2a2c31; animation: spin 9s linear infinite reverse; }
.hero-art .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255,255,255,.3); animation: spin 60s linear infinite; }
.hero-art .tag { position: absolute; background: #fff; color: var(--black); padding: 10px 14px; border-radius: 10px; font-family: var(--f-mono); font-size: 12px; font-weight: 600; box-shadow: var(--sh-2); display: flex; gap: 8px; align-items: center; animation: float 5s ease-in-out infinite; }
.hero-art .tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.hero-art .t1 { left: -6%; top: 46%; }
.hero-art .t2 { right: 4%; top: 8%; animation-delay: -2.5s; background: var(--black); color: #fff; border: 1px solid #333; }
@keyframes float { 50% { transform: translateY(-12px); } }
.hero-stats { border-top: 1px solid var(--line-d); background: rgba(11,11,13,.7); backdrop-filter: blur(6px); }
.hero-stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); min-height: 0; padding: 0 32px; gap: 0; }
.stat { padding: 26px 24px; border-left: 1px solid var(--line-d); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { font-family: var(--f-display); font-weight: 800; font-size: 34px; color: #fff; display: block; letter-spacing: -.03em; }
.stat b em { color: var(--red); font-style: normal; }
.stat span { color: var(--muted-d); font-size: 13px; }

/* marquee */
.marquee { background: var(--red); color: #fff; overflow: hidden; border-block: 1px solid var(--red-d); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-family: var(--f-display); font-weight: 800; font-size: 20px; text-transform: uppercase; padding: 16px 28px; display: inline-flex; align-items: center; gap: 28px; letter-spacing: -.01em; white-space: nowrap; }
.marquee span::after { content: ''; width: 18px; height: 18px; background: currentColor; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M43 4h14l3 12 7 3 11-6 10 10-6 11 3 7 12 3v14l-12 3-3 7 6 11-10 10-11-6-7 3-3 12H43l-3-12-7-3-11 6-10-10 6-11-3-7-12-3V43l12-3 3-7-6-11 10-10 11 6 7-3zM50 33a17 17 0 1 0 0 34 17 17 0 0 0 0-34z"/></svg>') center/contain no-repeat; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* directions */
.dirs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dir { position: relative; padding: 34px 30px 30px; border-radius: var(--r); background: var(--paper); overflow: hidden; isolation: isolate; min-height: 290px; display: flex; flex-direction: column; transition: color .4s, transform .4s var(--ease); }
.dir::before { content: ''; position: absolute; inset: 0; background: var(--black); z-index: -1; clip-path: circle(0% at 100% 0); transition: clip-path .7s var(--ease-out); }
.dir:hover { color: #fff; transform: translateY(-4px); }
.dir:hover::before { clip-path: circle(150% at 100% 0); }
.dir-n { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.dir-ic { width: 58px; height: 58px; border-radius: 14px; background: var(--red); color: #fff; display: grid; place-items: center; margin: 18px 0 22px; transition: transform .5s var(--ease); }
.dir-ic svg { width: 28px; height: 28px; }
.dir:hover .dir-ic { transform: rotate(-8deg) scale(1.06); }
.dir h3 { font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -.03em; margin: 0 0 10px; text-transform: uppercase; }
.dir p { margin: 0; color: var(--muted); transition: color .4s; }
.dir:hover p { color: #b9bbc1; }
.dir-ft { margin-top: auto; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.dir-ft b { font-family: var(--f-mono); font-weight: 600; }
.dir-ft svg { width: 22px; height: 22px; transition: transform .3s; }
.dir:hover .dir-ft svg { transform: translateX(6px); color: var(--red); }

/* =====================================================================
   CATALOG
   ===================================================================== */
.catalog { background: var(--paper); }
.cat-layout { display: grid; grid-template-columns: 270px 1fr; gap: 34px; align-items: start; }
.side { position: sticky; top: 140px; background: #fff; border-radius: var(--r); padding: 22px; box-shadow: var(--sh-1); }
.side h5 { margin: 0 0 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-family: var(--f-mono); }
.side-group + .side-group { margin-top: 24px; padding-top: 22px; border-top: 1px dashed var(--line); }
.side-kinds { display: grid; gap: 6px; }
.kind-btn { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; font-weight: 700; font-size: 14px; text-align: left; transition: background .2s, color .2s; }
.kind-btn svg { width: 20px; height: 20px; color: var(--muted); transition: color .2s; }
.kind-btn small { margin-left: auto; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.kind-btn:hover { background: var(--paper); }
.kind-btn.on { background: var(--black); color: #fff; }
.kind-btn.on svg { color: var(--red); }
.kind-btn.on small { color: var(--muted-d); }
.cat-list { display: grid; gap: 2px; max-height: 380px; overflow: auto; margin: 0 -6px; padding: 0 6px; }
.cat-item { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--steel); text-align: left; transition: .2s; }
.cat-item::before { content: ''; width: 16px; height: 16px; border-radius: 5px; border: 2px solid #cfd0d4; flex: none; transition: .2s; }
.cat-item small { margin-left: auto; font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.cat-item:hover { background: var(--paper); color: var(--black); }
.cat-item.on { color: var(--black); }
.cat-item.on::before { background: var(--red); border-color: var(--red); box-shadow: inset 0 0 0 3px #fff; }
.cat-kind-label { font-size: 10.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin: 10px 8px 4px; }

.toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.toolbar .count { font-weight: 700; }
.toolbar .count b { font-family: var(--f-mono); color: var(--red); }
.chips-active { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-x { display: inline-flex; align-items: center; gap: 6px; background: var(--black); color: #fff; border-radius: 99px; padding: 5px 8px 5px 13px; font-size: 12.5px; font-weight: 700; animation: pop .3s var(--ease); }
.chip-x svg { width: 15px; height: 15px; opacity: .7; }
.chip-x:hover svg { opacity: 1; color: var(--red-2); }
@keyframes pop { from { transform: scale(.8); opacity: 0; } }
.select { position: relative; margin-left: auto; }
.select select { appearance: none; height: 42px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; padding: 0 40px 0 14px; font-weight: 700; font-size: 13.5px; cursor: pointer; outline: none; }
.select select:focus { border-color: var(--black); }
.select::after { content: ''; position: absolute; right: 15px; top: 50%; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 20px; }

/* ---------- product card (square) ---------- */
.card { position: relative; background: #fff; border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sh-1); transition: transform .45s var(--ease-out), box-shadow .45s; animation: cardIn .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px -18px rgba(0,0,0,.28); }
.card-img { position: relative; aspect-ratio: 1; overflow: hidden; background: #efeff1; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.card:hover .card-img img { transform: scale(1.07); }
.card-img::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.card:hover .card-img::after { transform: scaleX(1); }
.corner { position: absolute; width: 14px; height: 14px; border-color: rgba(0,0,0,.25); border-style: solid; border-width: 0; transition: .4s var(--ease-out); }
.corner.tl { top: 10px; left: 10px; border-top-width: 2px; border-left-width: 2px; }
.corner.br { bottom: 12px; right: 10px; border-bottom-width: 2px; border-right-width: 2px; }
.card:hover .corner { border-color: var(--red); width: 22px; height: 22px; }
.badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.badge { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--black); color: #fff; }
.badge.k-engine { background: var(--black); }
.badge.k-machine { background: var(--red); }
.badge.k-spare { background: #fff; color: var(--black); box-shadow: inset 0 0 0 1.5px var(--black); }
.badge.sale { background: var(--red-2); }
.card-quick { position: absolute; right: 12px; bottom: 14px; width: 46px; height: 46px; border-radius: 12px; background: var(--black); color: #fff; display: grid; place-items: center; transform: translateY(14px) scale(.85); opacity: 0; transition: .35s var(--ease-out); box-shadow: var(--sh-2); }
.card-quick svg { width: 22px; height: 22px; transition: transform .3s; }
.card:hover .card-quick { transform: none; opacity: 1; }
.card-quick:hover { background: var(--red); }
.card-quick:hover svg { transform: rotate(90deg); }
.card-quick.ok { background: var(--ok); }
.card-quick.ok svg { transform: none; }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-sku { font-family: var(--f-mono); font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.card-sku .st { display: inline-flex; align-items: center; gap: 5px; }
.card-sku .st::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.card-sku .st.low::before { background: var(--warn); }
.card-sku .st.out::before { background: var(--muted); }
.card h3 { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card:hover h3 { color: var(--red); }
.card-price { margin-top: auto; padding-top: 6px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.card-price small { font-size: 12px; color: var(--muted); font-weight: 600; }
.card-price b { font-family: var(--f-display); font-weight: 800; font-size: 18px; letter-spacing: -.03em; }
.card-price s { font-size: 12px; color: var(--muted); }
.card-opts { font-size: 12px; color: var(--muted); font-weight: 600; }

/* skeleton */
.skel { background: #fff; border-radius: var(--r); overflow: hidden; }
.skel .s-img { aspect-ratio: 1; }
.skel .s-ln { height: 12px; margin: 14px 16px 0; border-radius: 6px; }
.skel .s-ln.w2 { width: 60%; }
.skel .s-ln.w3 { width: 40%; height: 18px; margin-bottom: 18px; }
.shimmer { background: linear-gradient(90deg, #ececee 0%, #f7f7f8 40%, #ececee 80%); background-size: 300% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -200% 0; } }

/* empty / error state */
.empty { text-align: center; padding: 70px 20px; display: grid; justify-items: center; gap: 10px; }
.empty-ic { width: 92px; height: 92px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--red); box-shadow: var(--sh-1); margin-bottom: 8px; position: relative; }
.empty-ic svg { width: 40px; height: 40px; }
.empty-ic::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px dashed var(--line); animation: spin 18s linear infinite; }
.empty h3 { font-family: var(--f-display); font-size: 20px; margin: 0; text-transform: uppercase; letter-spacing: -.02em; }
.empty p { color: var(--muted); margin: 0 0 12px; max-width: 360px; }

/* =====================================================================
   ABOUT / HOW / CONTACTS
   ===================================================================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-text { font-size: 17px; color: var(--steel); margin: 24px 0 0; }
.advs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.adv { padding: 24px; border: 1.5px solid var(--line); border-radius: var(--r); transition: border-color .3s, transform .3s var(--ease); }
.adv:hover { border-color: var(--black); transform: translateY(-3px); }
.adv svg { width: 30px; height: 30px; color: var(--red); }
.adv h4 { margin: 14px 0 6px; font-size: 16px; font-weight: 800; }
.adv p { margin: 0; color: var(--muted); font-size: 14px; }
.how { background: var(--black); color: #fff; overflow: hidden; }
.how .h2 { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; position: relative; }
.steps::before { content: ''; position: absolute; left: 0; right: 0; top: 33px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-d) 0 10px, transparent 10px 18px); }
.step { position: relative; padding-right: 30px; }
.step-n { width: 68px; height: 68px; border-radius: 50%; background: var(--ink-2); border: 2px solid var(--line-d); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 22px; position: relative; transition: .4s var(--ease); }
.step:hover .step-n { background: var(--red); border-color: var(--red); transform: scale(1.08); }
.step h4 { font-family: var(--f-display); text-transform: uppercase; font-size: 17px; margin: 22px 0 8px; letter-spacing: -.02em; }
.step p { color: var(--muted-d); margin: 0; font-size: 14px; }
.contacts-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.c-card { background: var(--black); color: #fff; border-radius: var(--r); padding: 40px; position: relative; overflow: hidden; }
.c-card::after { content: ''; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; background: var(--red); transform: rotate(45deg); opacity: .9; }
.c-rows { display: grid; gap: 22px; position: relative; z-index: 1; }
.c-row { display: flex; gap: 16px; align-items: flex-start; }
.c-row .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--ink-2); display: grid; place-items: center; color: var(--red-2); flex: none; }
.c-row .ic svg { width: 22px; height: 22px; }
.c-row small { display: block; color: var(--muted-d); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.c-row b { font-size: 17px; }
.c-actions { display: flex; gap: 12px; margin-top: 30px; position: relative; z-index: 1; flex-wrap: wrap; }
.c-map { border-radius: var(--r); background: var(--paper); position: relative; overflow: hidden; min-height: 360px; background-image: linear-gradient(#e6e6e9 1px, transparent 1px), linear-gradient(90deg, #e6e6e9 1px, transparent 1px); background-size: 40px 40px; }
.c-map .road { position: absolute; background: #fff; box-shadow: 0 0 0 1px #dcdce0; }
.c-map .r1 { left: -10%; right: -10%; top: 55%; height: 26px; transform: rotate(-8deg); }
.c-map .r2 { top: -10%; bottom: -10%; left: 38%; width: 20px; transform: rotate(14deg); }
.c-map .pin { position: absolute; left: 44%; top: 42%; transform: translate(-50%, -100%); color: var(--red); display: grid; justify-items: center; }
.c-map .pin svg { width: 54px; height: 54px; filter: drop-shadow(0 8px 10px rgba(225,6,0,.35)); animation: float 3s ease-in-out infinite; }
.c-map .pin::after { content: ''; width: 18px; height: 6px; border-radius: 50%; background: rgba(0,0,0,.2); margin-top: 2px; }
.c-map .pulse { position: absolute; left: 44%; top: 42%; width: 16px; height: 16px; margin: -8px; border-radius: 50%; background: var(--red); animation: ripple 2s infinite; }
@keyframes ripple { from { box-shadow: 0 0 0 0 rgba(225,6,0,.45); } to { box-shadow: 0 0 0 40px rgba(225,6,0,0); } }
@keyframes pulse { 50% { opacity: .3; } }
.c-map .lbl { position: absolute; left: 20px; bottom: 20px; right: 20px; background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: var(--sh-1); font-weight: 700; display: flex; gap: 10px; align-items: center; }
.c-map .lbl svg { color: var(--red); width: 20px; height: 20px; }

/* footer */
.ftr { background: var(--black); color: var(--muted-d); padding: 70px 0 0; }
.ftr-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.ftr h4 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; margin: 6px 0 18px; font-family: var(--f-mono); }
.ftr-grid a, .ftr-grid span { display: block; margin-bottom: 10px; font-size: 14px; transition: color .2s; }
.ftr-grid a:hover { color: #fff; }
.ftr-grid a.logo { display: inline-flex; margin: 0; }
.ftr-grid .logo span { display: inline-block; margin: 0; font-size: 20px; }
.ftr-grid .logo .logo-mark { font-size: 18px; }
.ftr-about { max-width: 380px; margin-top: 18px; font-size: 14px; }
.ftr-bottom { display: flex; justify-content: space-between; padding: 22px 32px; margin-top: 50px; border-top: 1px solid var(--line-d); font-size: 12.5px; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* =====================================================================
   PRODUCT PAGE
   ===================================================================== */
.pp { padding: 34px 0 90px; animation: pageIn .5s var(--ease-out); }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 26px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--red); }
.crumbs i { width: 4px; height: 4px; background: var(--line); border-radius: 50%; display: inline-block; }
.crumbs b { color: var(--ink); }
.pp-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.gallery { position: sticky; top: 140px; display: grid; grid-template-columns: 84px 1fr; gap: 14px; }
.thumbs { display: grid; gap: 10px; align-content: start; }
.thumb { aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--paper); transition: border-color .2s, opacity .2s; opacity: .65; }
.thumb.on, .thumb:hover { border-color: var(--black); opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.main-img { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--paper); cursor: zoom-in; }
.main-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease-out, opacity .3s; }
.main-img.zoom img { transform: scale(1.9); }
.main-img .corner { width: 26px; height: 26px; border-color: var(--red); }
.main-img .corner.tl { top: 18px; left: 18px; }
.main-img .corner.br { bottom: 18px; right: 18px; }
.mi-dots { display: none; }
.pp-kind { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pp h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.035em; line-height: 1.1; margin: 14px 0 12px; text-transform: uppercase; }
.pp-meta { display: flex; gap: 18px; align-items: center; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.pp-meta .mono b { color: var(--ink); }
.pp-price { margin: 26px 0 8px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pp-price b { font-family: var(--f-display); font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1; transition: color .3s; }
.pp-price b.flash { animation: flash .6s var(--ease); }
@keyframes flash { 30% { color: var(--red); transform: translateY(-2px); } }
.pp-price span { font-weight: 700; color: var(--muted); }
.pp-price s { color: var(--muted); }
.pp-price .save { background: var(--red-soft); color: var(--red); font-weight: 800; font-size: 12px; padding: 4px 9px; border-radius: 6px; }

/* stock meter (progress bar) */
.stock { margin: 16px 0 26px; max-width: 360px; }
.stock-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.stock-top span { display: inline-flex; gap: 7px; align-items: center; }
.stock-top span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(23,163,74,.15); }
.stock.low .stock-top span::before { background: var(--warn); box-shadow: 0 0 0 4px rgba(245,158,11,.18); }
.stock.out .stock-top span::before { background: var(--muted); box-shadow: none; }
.stock-bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.stock-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ok), #34d36e); border-radius: inherit; transition: width .8s var(--ease-out); }
.stock.low .stock-bar i { background: linear-gradient(90deg, var(--warn), #fbbf24); }
.stock.out .stock-bar i { background: var(--muted); }

.opt { margin-bottom: 22px; }
.opt-hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.opt-hd h4 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-family: var(--f-mono); color: var(--muted); }
.opt-hd b { font-size: 14px; }
.opt-list { display: flex; flex-wrap: wrap; gap: 8px; }
.opt.shake .opt-list { animation: shake .45s; }
.opt.need .opt-hd h4 { color: var(--red); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.pill { position: relative; min-width: 58px; height: 46px; padding: 0 16px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-weight: 800; font-size: 14px; transition: border-color .2s, background .2s, color .2s, transform .15s; }
.pill:hover { border-color: var(--black); }
.pill:active { transform: scale(.96); }
.pill.on { background: var(--black); border-color: var(--black); color: #fff; box-shadow: 0 6px 16px -8px rgba(0,0,0,.6); }
.pill.on::after { content: ''; position: absolute; top: -5px; right: -5px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); border: 2px solid #fff; animation: pop .3s var(--ease); }
.pill.dis { color: #b9bbc1; border-style: dashed; background: repeating-linear-gradient(-45deg, #fff 0 6px, #f6f6f7 6px 12px); }
.pill.dis:hover { border-color: var(--line); }

.buy-row { display: flex; gap: 12px; align-items: stretch; margin: 6px 0 14px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; height: 54px; }
.qty button { width: 46px; height: 100%; display: grid; place-items: center; color: var(--steel); transition: color .2s, background .2s; }
.qty button:hover { color: var(--red); }
.qty button:disabled { opacity: .3; pointer-events: none; }
.line-max { font-size: 11px; font-weight: 700; color: var(--red); white-space: nowrap; }
.btn.dis { opacity: .45; pointer-events: none; }
.qty button svg { width: 18px; height: 18px; }
.qty input { width: 44px; text-align: center; border: 0; outline: none; font-weight: 800; font-family: var(--f-mono); font-size: 16px; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.sm { height: 38px; }
.qty.sm button { width: 34px; }
.qty.sm input { width: 34px; font-size: 14px; }
.buy-row .btn { flex: 1; height: 54px; }
.hint { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; min-height: 20px; }
.hint svg { width: 16px; height: 16px; color: var(--red); }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0; }
.perk { background: var(--paper); border-radius: 12px; padding: 14px; font-size: 12.5px; font-weight: 700; display: grid; gap: 8px; }
.perk svg { width: 22px; height: 22px; color: var(--red); }

.tabs { border-top: 1px solid var(--line); margin-top: 8px; }
.tabs-hd { display: flex; gap: 26px; border-bottom: 1px solid var(--line); position: relative; }
.tabs-hd button { padding: 16px 0; font-weight: 800; font-size: 14px; color: var(--muted); transition: color .2s; }
.tabs-hd button.on { color: var(--black); }
.tabs-ink { position: absolute; bottom: -1px; height: 3px; background: var(--red); transition: left .35s var(--ease-out), width .35s var(--ease-out); }
.tab-pane { padding: 22px 0; color: var(--steel); animation: fadeUp .4s var(--ease-out); white-space: pre-line; }
.specs { width: 100%; border-collapse: collapse; }
.specs td { padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.specs td:first-child { color: var(--muted); width: 45%; }
.specs td:last-child { font-family: var(--f-mono); font-weight: 600; color: var(--ink); text-align: right; }

/* spare parts block on machine page */
.spares { margin-top: 80px; }
.spares .sec-hd { margin-bottom: 28px; }
.spare-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.sp-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: border-color .3s, transform .4s var(--ease-out), box-shadow .4s; animation: cardIn .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
.sp-card:hover { border-color: var(--black); transform: translateY(-4px); box-shadow: var(--sh-2); }
.sp-card .card-img { aspect-ratio: 1; }
.sp-body { padding: 14px 16px 16px; display: grid; gap: 10px; }
.sp-body h4 { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.3; }
.sp-body h4 a:hover { color: var(--red); }
.sp-sel { position: relative; }
.sp-sel select { width: 100%; appearance: none; height: 40px; border-radius: 9px; border: 1.5px solid var(--line); padding: 0 34px 0 12px; font-weight: 700; font-size: 13px; background: var(--paper); outline: none; cursor: pointer; }
.sp-sel select:focus { border-color: var(--black); background: #fff; }
.sp-sel::after { content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 2px solid; border-bottom: 2px solid; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.sp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sp-row b { font-family: var(--f-display); font-size: 16px; letter-spacing: -.03em; }
.related { margin-top: 80px; }
.compat { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.compat a { display: inline-flex; gap: 10px; align-items: center; padding: 6px 14px 6px 6px; border: 1.5px solid var(--line); border-radius: 99px; font-weight: 700; font-size: 13px; transition: border-color .2s; }
.compat a:hover { border-color: var(--red); color: var(--red); }
.compat img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

/* sticky mobile buy bar — hidden on desktop */
.mbar { display: none; }

/* =====================================================================
   CART DRAWER
   ===================================================================== */
.drawer-bg, .sheet-bg { position: fixed; inset: 0; background: rgba(8,8,10,.55); backdrop-filter: blur(3px); z-index: 300; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.drawer-bg.on, .sheet-bg.on { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 460px; max-width: 100%; background: #fff; z-index: 310; display: flex; flex-direction: column; transform: translateX(105%); transition: transform .5s var(--ease-out); box-shadow: -20px 0 60px -20px rgba(0,0,0,.4); }
.drawer { visibility: hidden; transition: transform .5s var(--ease-out), visibility .5s; }
.drawer.on { transform: none; visibility: visible; }
.drawer-hd { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-hd h3 { margin: 0; font-family: var(--f-display); text-transform: uppercase; letter-spacing: -.02em; font-size: 20px; }
.drawer-hd small { font-family: var(--f-mono); font-size: 12px; color: var(--red); vertical-align: middle; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 24px; }
.drawer-ft { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--paper); display: grid; gap: 12px; }
.drawer-ft:empty { display: none; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.sum-row.big b { font-family: var(--f-display); font-size: 24px; letter-spacing: -.03em; }
.sum-row span { color: var(--muted); }

.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px dashed var(--line); align-items: center; animation: fadeUp .4s var(--ease-out) both; transition: opacity .3s, transform .3s; }
.line.out { opacity: 0; transform: translateX(40px); }
.line-img { width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: var(--paper); }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line h4 { margin: 0 0 4px; font-size: 14px; font-weight: 800; line-height: 1.3; }
.line h4 a:hover { color: var(--red); }
.line-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.line-meta span { font-size: 11px; font-weight: 700; background: var(--paper); border-radius: 5px; padding: 2px 7px; color: var(--steel); }
.line-meta span em { font-style: normal; color: var(--muted); font-weight: 600; }
.line-price { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.line-r { display: grid; justify-items: end; gap: 10px; }
.line-r b { font-family: var(--f-display); font-size: 15px; letter-spacing: -.02em; white-space: nowrap; }
.line-rm { color: var(--muted); width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; transition: .2s; }
.line-rm:hover { color: var(--red); background: var(--red-soft); }
.line-rm svg { width: 18px; height: 18px; }

/* =====================================================================
   CART PAGE / CHECKOUT
   ===================================================================== */
.co { padding: 40px 0 100px; animation: pageIn .5s var(--ease-out); background: var(--paper); min-height: 70vh; }
.co-title { font-family: var(--f-display); text-transform: uppercase; font-weight: 800; font-size: clamp(26px, 3vw, 42px); letter-spacing: -.035em; margin: 0 0 6px; }
.co-sub { color: var(--muted); margin: 0 0 30px; }
.steps-bar { display: flex; align-items: center; margin: 0 0 36px; max-width: 620px; }
.sb-step { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 13px; color: var(--muted); white-space: nowrap; }
.sb-step i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: #fff; border: 2px solid var(--line); font-family: var(--f-mono); font-size: 13px; transition: .4s var(--ease); }
.sb-step i svg { width: 16px; height: 16px; }
.sb-step.on { color: var(--black); }
.sb-step.on i { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 0 0 6px rgba(225,6,0,.12); }
.sb-step.done { color: var(--black); }
.sb-step.done i { background: var(--black); border-color: var(--black); color: #fff; }
.sb-line { flex: 1; height: 3px; background: var(--line); margin: 0 14px; border-radius: 3px; overflow: hidden; min-width: 30px; }
.sb-line i { display: block; height: 100%; width: 0; background: var(--black); transition: width .8s var(--ease-out) .1s; }
.sb-line.done i { width: 100%; }
.co-grid { display: grid; grid-template-columns: 1fr 400px; gap: 28px; align-items: start; }
.panel { background: #fff; border-radius: var(--r); padding: 28px; box-shadow: var(--sh-1); }
.panel-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.panel-hd h3 { margin: 0; font-family: var(--f-display); text-transform: uppercase; font-size: 17px; letter-spacing: -.02em; }
.summary { position: sticky; top: 140px; }
.summary .sum-row { padding: 6px 0; }
.summary .sum-row.big { border-top: 2px solid var(--black); margin-top: 10px; padding-top: 16px; }
.mini-lines { max-height: 300px; overflow: auto; margin: 10px -6px 14px; padding: 0 6px; }
.mini { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.mini img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--paper); }
.mini b { font-weight: 800; display: block; line-height: 1.25; }
.mini small { color: var(--muted); }
.mini .mono { font-weight: 600; white-space: nowrap; }
.mini-q { position: relative; }
.mini-q em { position: absolute; top: -6px; right: -6px; background: var(--black); color: #fff; font-style: normal; font-size: 10px; font-weight: 800; border-radius: 99px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; }

/* form */
.form-prog { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; color: var(--muted); margin: 6px 0 24px; }
.form-prog .bar { flex: 1; height: 6px; background: var(--paper); border-radius: 99px; overflow: hidden; }
.form-prog .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red-d), var(--red)); border-radius: inherit; transition: width .5s var(--ease-out); }
.form-prog .bar.full i { background: linear-gradient(90deg, #12893d, var(--ok)); }
.form-prog b { font-family: var(--f-mono); color: var(--ink); min-width: 38px; text-align: right; }
.fld { margin-bottom: 20px; position: relative; }
.fld label { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; color: var(--steel); }
.fld label em { color: var(--red); font-style: normal; }
.inp { width: 100%; height: 54px; border: 1.5px solid var(--line); border-radius: 11px; padding: 0 16px; background: #fff; outline: none; font-weight: 600; font-size: 15px; transition: border-color .2s, box-shadow .2s, background .2s; }
textarea.inp { height: 96px; padding: 14px 16px; resize: vertical; }
.inp:focus { border-color: var(--black); box-shadow: 0 0 0 4px rgba(0,0,0,.06); }
.inp::placeholder { color: #a6a8ae; font-weight: 500; }
.fld.err .inp, .fld.err .dd-btn { border-color: var(--red); background: var(--red-soft); }
.fld.err .inp:focus { box-shadow: 0 0 0 4px rgba(225,6,0,.12); }
.fld.ok .inp, .fld.ok .dd-btn { border-color: var(--ok); }
.fld-msg { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--red); font-weight: 700; margin-top: 7px; max-height: 0; overflow: hidden; opacity: 0; transition: .3s var(--ease); }
.fld-msg svg { width: 15px; height: 15px; }
.fld.err .fld-msg { max-height: 30px; opacity: 1; }
.fld.err.shake { animation: shake .45s; }
.fld-ok { position: absolute; right: 14px; top: 40px; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; transform: scale(0); transition: transform .3s var(--ease); pointer-events: none; }
.fld-ok svg { width: 14px; height: 14px; }
.fld.ok .fld-ok { transform: scale(1); }
.phone-wrap { display: flex; }
.phone-wrap .pre { height: 54px; display: grid; place-items: center; padding: 0 14px; background: var(--black); color: #fff; font-family: var(--f-mono); font-weight: 600; border-radius: 11px 0 0 11px; }
.phone-wrap .inp { border-radius: 0 11px 11px 0; font-family: var(--f-mono); letter-spacing: .04em; }
/* custom dropdown */
.dd { position: relative; }
.dd-btn { width: 100%; height: 54px; border: 1.5px solid var(--line); border-radius: 11px; padding: 0 44px 0 16px; background: #fff; text-align: left; font-weight: 600; font-size: 15px; transition: border-color .2s; position: relative; }
.dd-btn.ph { color: #a6a8ae; font-weight: 500; }
.dd-btn::after { content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.dd.open .dd-btn { border-color: var(--black); }
.dd.open .dd-btn::after { transform: translateY(-30%) rotate(-135deg); }
.dd-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border-radius: 12px; box-shadow: 0 20px 50px -12px rgba(0,0,0,.3); border: 1px solid var(--line); max-height: 300px; overflow: auto; z-index: 20; padding: 6px; opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top; visibility: hidden; transition: .25s var(--ease-out); }
.dd.open .dd-list { opacity: 1; transform: none; visibility: visible; }
.dd-opt { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 11px 12px; border-radius: 8px; text-align: left; font-weight: 600; font-size: 14px; }
.dd-opt:hover, .dd-opt.kb { background: var(--paper); }
.dd-opt.on { color: var(--red); }
.dd-opt.on::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.privacy { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.privacy svg { width: 16px; height: 16px; color: var(--ok); }
.send-wrap { position: relative; }
.send-prog { height: 4px; background: var(--paper); border-radius: 99px; overflow: hidden; margin-top: 12px; opacity: 0; transition: opacity .3s; }
.send-prog.on { opacity: 1; }
.send-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red-d), var(--red), var(--red-2)); transition: width .4s var(--ease-out); }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--red-soft); color: var(--red-d); font-weight: 700; font-size: 14px; margin-bottom: 18px; animation: fadeUp .35s var(--ease-out); }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.alert button { margin-left: auto; text-decoration: underline; font-weight: 800; }

/* success */
.done-box { text-align: center; max-width: 560px; margin: 0 auto; padding: 30px 0 20px; }
.done-ic { width: 120px; height: 120px; margin: 0 auto 30px; position: relative; }
.done-ic svg.c { width: 120px; height: 120px; }
.done-ic .c-ring { fill: none; stroke: var(--ok); stroke-width: 5; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw .9s var(--ease-out) forwards; transform: rotate(-90deg); transform-origin: center; }
.done-ic .c-chk { fill: none; stroke: var(--ok); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw .5s var(--ease-out) forwards .75s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done-ic::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; animation: ripple2 1.6s ease-out .9s; }
@keyframes ripple2 { from { box-shadow: 0 0 0 0 rgba(23,163,74,.4); } to { box-shadow: 0 0 0 40px rgba(23,163,74,0); } }
.done-box h1 { font-family: var(--f-display); text-transform: uppercase; letter-spacing: -.035em; font-size: clamp(28px, 4vw, 44px); margin: 0 0 12px; animation: fadeUp .6s var(--ease-out) both 1s; }
.done-box p { color: var(--muted); font-size: 16px; margin: 0 0 30px; animation: fadeUp .6s var(--ease-out) both 1.1s; }
.done-code { display: inline-grid; gap: 4px; background: var(--black); color: #fff; border-radius: 14px; padding: 18px 34px; margin-bottom: 34px; animation: fadeUp .6s var(--ease-out) both 1.2s; position: relative; overflow: hidden; }
.done-code::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--red); }
.done-code small { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-d); font-weight: 700; }
.done-code b { font-family: var(--f-mono); font-size: 28px; letter-spacing: .06em; }
.done-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; animation: fadeUp .6s var(--ease-out) both 1.3s; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 400; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* =====================================================================
   TOASTS
   ===================================================================== */
#toasts { position: fixed; z-index: 980; right: 24px; bottom: 24px; display: grid; gap: 10px; width: 380px; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { pointer-events: auto; position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: var(--black); color: #fff; border-radius: 14px; padding: 14px 14px 16px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.45); overflow: hidden; animation: toastIn .5s var(--ease-out); border: 1px solid #222; }
.toast.out { animation: toastOut .35s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }
.toast-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--ink-2); overflow: hidden; }
.toast-ic svg { width: 20px; height: 20px; }
.toast-ic img { width: 100%; height: 100%; object-fit: cover; }
.toast.success .toast-ic { background: var(--ok); }
.toast.error .toast-ic { background: var(--red); }
.toast.warn .toast-ic { background: var(--warn); color: var(--black); }
.toast b { display: block; font-size: 14px; }
.toast small { color: var(--muted-d); font-size: 12.5px; display: block; line-height: 1.35; }
.toast-act { font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--red-2); padding: 8px 10px; border-radius: 8px; }
.toast-act:hover { background: rgba(255,255,255,.08); }
.toast-x { color: var(--muted-d); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; }
.toast-x svg { width: 16px; height: 16px; }
.toast-x:hover { color: #fff; background: rgba(255,255,255,.08); }
.toast-tm { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--red); animation: tm linear forwards; }
.toast.success .toast-tm { background: var(--ok); }
.toast:hover .toast-tm { animation-play-state: paused; }
body.drawer-open #toasts { right: 484px; }
@keyframes tm { from { width: 100%; } to { width: 0; } }

/* fly-to-cart */
.fly { position: fixed; z-index: 990; width: 70px; height: 70px; border-radius: 14px; overflow: hidden; pointer-events: none; box-shadow: var(--sh-2); border: 3px solid #fff; transition: transform .8s cubic-bezier(.5, -0.3, .7, .3), opacity .8s; }
.fly img { width: 100%; height: 100%; object-fit: cover; }

/* =====================================================================
   SHEET (mobile)
   ===================================================================== */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 310; background: #fff; border-radius: 22px 22px 0 0; max-height: 86vh; display: flex; flex-direction: column; transform: translateY(105%); transition: transform .45s var(--ease-out); padding-bottom: env(safe-area-inset-bottom); }
.sheet { visibility: hidden; }
.sheet.on { transform: none; visibility: visible; }
.sheet-grip { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 10px auto 4px; flex: none; }
#sheet-body { overflow: auto; padding: 8px 20px 20px; }
.sheet h3 { font-family: var(--f-display); text-transform: uppercase; letter-spacing: -.02em; margin: 8px 0 18px; font-size: 18px; }

/* =====================================================================
   ====================  MOBILE LAYOUT (< 960px)  ======================
   ===================================================================== */
@media (max-width: 959px) {
  :root { --hdr: 60px; }
  html { scroll-padding-top: 76px; }
  body { font-size: 14.5px; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 16px; }
  .hdr-d { display: none; }
  .hdr-m { display: flex; align-items: center; gap: 6px; position: sticky; top: 0; z-index: 100; height: 60px; padding: 0 10px 0 16px; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
  .hdr-m.scrolled { box-shadow: 0 6px 20px -12px rgba(0,0,0,.3); }
  .hdr-m-sp { flex: 1; }
  .hdr-m .logo-mark { font-size: 16px; }
  .hdr-m .logo-word { font-size: 18px; }
  .search-m { display: block; position: fixed; top: 0; left: 0; right: 0; z-index: 150; background: #fff; padding: 10px 12px; transform: translateY(-110%); transition: transform .35s var(--ease-out); box-shadow: 0 10px 30px -10px rgba(0,0,0,.3); }
  .search-m.on { transform: none; }
  .search-m form { display: flex; align-items: center; gap: 8px; background: var(--paper); border-radius: 12px; padding-left: 14px; }
  .search-m form > svg { width: 18px; height: 18px; color: var(--muted); }
  .search-m input { flex: 1; border: 0; background: transparent; height: 46px; outline: none; font-size: 16px; }

  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; background: var(--black); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid #222; }
  .tabbar a { display: grid; justify-items: center; gap: 3px; padding: 6px 0; color: var(--muted-d); font-size: 10.5px; font-weight: 700; position: relative; transition: color .2s; }
  .tabbar a svg { width: 22px; height: 22px; transition: transform .3s var(--ease); }
  .tabbar a.on { color: #fff; }
  .tabbar a.on svg { color: var(--red-2); transform: translateY(-2px); }
  .tabbar a.on::before { content: ''; position: absolute; top: -6px; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--red); animation: pop .3s var(--ease); }
  .tab-cart-ic { position: relative; }
  .tabbar .cart-badge { top: -6px; left: 14px; border-color: var(--black); min-width: 18px; height: 18px; font-size: 10px; }

  .btn { height: 50px; padding: 0 20px; font-size: 13px; }
  .sec { padding: 64px 0; }
  .sec-hd { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 26px; }
  .h2 { font-size: 28px; }

  /* hero — stacked */
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 34px; padding-bottom: 40px; gap: 10px; }
  .hero h1 { font-size: clamp(38px, 11.5vw, 56px); margin: 16px 0 18px; }
  .hero-sub { font-size: 15px; margin-bottom: 24px; }
  .hero-cta .btn { flex: 1; }
  .hero-slash { width: 70%; right: -30%; top: -6%; height: 44%; }
  .hero-art { order: -1; max-width: 300px; margin: 0 auto -10px; }
  .hero-art .tag { font-size: 10.5px; padding: 7px 10px; }
  .hero-art .t1 { left: -4%; }
  .hero-stats .wrap { grid-template-columns: 1fr 1fr; padding: 0 16px; }
  .stat { padding: 18px 14px; border-left: 0; border-top: 1px solid var(--line-d); }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line-d); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat b { font-size: 26px; }
  .marquee span { font-size: 15px; padding: 12px 18px; gap: 18px; }

  /* directions — horizontal snap scroller */
  .dirs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .dirs::-webkit-scrollbar { display: none; }
  .dir { flex: 0 0 82%; scroll-snap-align: start; min-height: 250px; padding: 24px 22px; }
  .dir h3 { font-size: 18px; }

  /* catalog — chips + bottom-sheet filters */
  .cat-layout { display: block; }
  .side { display: none; }
  .m-kinds { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 12px; padding: 2px 16px 6px; scrollbar-width: none; }
  .m-kinds::-webkit-scrollbar { display: none; }
  .m-kind { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 99px; background: #fff; font-weight: 800; font-size: 13px; box-shadow: inset 0 0 0 1.5px var(--line); transition: .25s; }
  .m-kind svg { width: 18px; height: 18px; color: var(--muted); }
  .m-kind small { font-family: var(--f-mono); color: var(--muted); font-size: 11px; }
  .m-kind.on { background: var(--black); color: #fff; box-shadow: none; }
  .m-kind.on svg { color: var(--red-2); }
  .toolbar { gap: 10px; margin-bottom: 14px; }
  .toolbar .select { display: none; }
  .m-filter-btn { display: inline-flex !important; margin-left: auto; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; background: var(--black); color: #fff; font-weight: 800; font-size: 13px; position: relative; }
  .m-filter-btn svg { width: 18px; height: 18px; }
  .m-filter-btn i { position: absolute; top: -5px; right: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); border: 2px solid var(--paper); }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { border-radius: 12px; }
  .card:hover { transform: none; }
  .card-body { padding: 10px 11px 12px; gap: 4px; }
  .card h3 { font-size: 13px; }
  .card-price b { font-size: 15px; }
  .card-price small, .card-opts { font-size: 11px; }
  .card-sku { font-size: 10px; }
  .card-sku .st { display: none; }
  .card-quick { opacity: 1; transform: none; width: 36px; height: 36px; right: 8px; top: 8px; bottom: auto; border-radius: 10px; }
  .card-quick svg { width: 18px; height: 18px; }
  .badges { top: 8px; left: 8px; }
  .badge { font-size: 9px; padding: 3px 6px; }
  .corner { display: none; }
  .empty { padding: 50px 10px; }

  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-text { font-size: 15px; }
  .advs { gap: 10px; }
  .adv { padding: 16px; }
  .adv h4 { font-size: 14px; margin-top: 10px; }
  .adv p { font-size: 12.5px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 33px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-d) 0 10px, transparent 10px 18px); }
  .step { display: grid; grid-template-columns: 68px 1fr; gap: 0 18px; padding: 0 0 26px; }
  .step-n { grid-row: span 2; }
  .step h4 { margin: 10px 0 4px; }
  .contacts-grid { grid-template-columns: 1fr; }
  .c-card { padding: 26px 22px; }
  .c-card::after { width: 140px; height: 140px; right: -70px; bottom: -70px; }
  .c-actions { flex-direction: column; }
  .c-actions .btn { flex: none; width: 100%; }
  .c-row b { font-size: 15px; }
  .c-map { min-height: 240px; }
  .ftr { padding-top: 44px; }
  .ftr-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .ftr-grid > div:first-child { grid-column: 1 / -1; }
  .ftr-bottom { flex-direction: column; gap: 6px; padding: 18px 16px; margin-top: 30px; }

  /* product page — swipe gallery + sticky bar */
  .pp { padding: 0 0 40px; }
  .pp .crumbs { display: none; }
  .pp-back { display: flex !important; }
  .pp-grid { grid-template-columns: 1fr; gap: 0; }
  .gallery { position: relative; top: 0; display: block; margin: 0 -16px; }
  .thumbs { display: none; }
  .main-img { border-radius: 0; cursor: default; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 1; }
  .main-img::-webkit-scrollbar { display: none; }
  .main-img img { flex: 0 0 100%; scroll-snap-align: center; }
  .main-img.zoom img { transform: none; }
  .main-img .corner { display: none; }
  .mi-dots { display: flex; gap: 6px; justify-content: center; position: absolute; bottom: 14px; left: 0; right: 0; }
  .mi-dots i { width: 7px; height: 7px; border-radius: 9px; background: rgba(0,0,0,.2); transition: .3s var(--ease); }
  .mi-dots i.on { width: 22px; background: var(--red); }
  .pp-info { padding-top: 20px; }
  .pp h1 { font-size: 23px; margin: 10px 0 8px; }
  .pp-price { margin: 18px 0 6px; }
  .pp-price b { font-size: 30px; }
  .stock { margin: 12px 0 20px; max-width: none; }
  .pill { height: 44px; min-width: 54px; padding: 0 14px; font-size: 13px; }
  .pp .buy-row { display: none; }
  .perks { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .perk { padding: 10px; font-size: 11px; }
  .tabs-hd { gap: 18px; overflow-x: auto; }
  .spares, .related { margin-top: 50px; }
  .spare-grid { grid-template-columns: 1fr; gap: 12px; }
  .sp-card { flex-direction: row; }
  .sp-card .card-img { width: 112px; flex: none; aspect-ratio: auto; }
  .sp-body { padding: 12px; flex: 1; gap: 8px; }
  .sp-body h4 { font-size: 13.5px; }
  .sp-sel select { height: 38px; font-size: 12px; }
  .sp-row b { font-size: 14px; white-space: nowrap; }
  .sp-row .btn { padding: 0 12px; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 110; gap: 10px; align-items: center; padding: 10px 12px; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -16px rgba(0,0,0,.3); animation: mbarIn .5s var(--ease-out); }
  @keyframes mbarIn { from { transform: translateY(100%); } }
  .mbar .mb-price { display: grid; line-height: 1.15; min-width: 0; }
  .mbar .mb-price small { font-size: 11px; color: var(--muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mbar .mb-price b { font-family: var(--f-display); font-size: 17px; letter-spacing: -.03em; white-space: nowrap; }
  .mbar .qty { height: 48px; flex: none; }
  .mbar .qty button { width: 34px; }
  .mbar .qty input { width: 28px; }
  .mbar .btn { flex: 1; height: 48px; padding: 0 12px; min-width: 0; }
  body.has-mbar { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }

  /* cart + checkout pages */
  .co { padding: 22px 0 40px; }
  .co-title { font-size: 26px; }
  .co-sub { margin-bottom: 20px; font-size: 13.5px; }
  .steps-bar { margin-bottom: 22px; }
  .sb-step span { display: none; }
  .sb-step.on span { display: inline; }
  .sb-line { margin: 0 8px; }
  .co-grid { grid-template-columns: 1fr; gap: 14px; }
  .panel { padding: 18px 16px; border-radius: 14px; }
  .summary { position: static; }
  .line { grid-template-columns: 64px 1fr; gap: 12px; }
  .line-img { width: 64px; height: 64px; }
  .line-r { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .line-r .line-rm { order: -1; }
  .m-checkout-bar { position: sticky; bottom: calc(66px + env(safe-area-inset-bottom)); margin: 14px -16px -40px; padding: 12px 16px; background: #fff; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; z-index: 5; box-shadow: 0 -10px 30px -16px rgba(0,0,0,.25); }
  .m-checkout-bar div { display: grid; line-height: 1.2; }
  .m-checkout-bar small { color: var(--muted); font-size: 11px; font-weight: 700; }
  .m-checkout-bar b { font-family: var(--f-display); font-size: 18px; letter-spacing: -.03em; white-space: nowrap; }
  .m-checkout-bar .btn { flex: 1; }
  .d-only { display: none !important; }
  .inp, .dd-btn { font-size: 16px; }
  .dd-list { position: fixed; left: 0; right: 0; bottom: 0; top: auto; max-height: 70vh; border-radius: 22px 22px 0 0; padding: 14px 10px calc(14px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .4s var(--ease-out), visibility .4s, opacity .2s; z-index: 320; }
  .dd.open .dd-list { transform: none; }
  .dd-opt { padding: 14px 14px; font-size: 15px; }
  .dd-bg { position: fixed; inset: 0; background: rgba(8,8,10,.55); z-index: 315; animation: fadeIn .3s; }

  #toasts { left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); width: auto; max-width: none; }
  body.has-mbar #toasts { bottom: calc(146px + env(safe-area-inset-bottom)); }
  .toast { padding: 12px 12px 14px; }
  .drawer { display: none; }
  .done-code b { font-size: 22px; }
  .done-actions .btn { flex: 1; padding: 0 12px; font-size: 12px; }
}
@media (min-width: 960px) {
  .m-only, .m-kinds, .m-filter-btn, .pp-back, .m-checkout-bar { display: none !important; }
}
.m-filter-btn, .pp-back { display: none; }
.pp-back { align-items: center; gap: 8px; font-weight: 800; font-size: 13px; padding: 14px 0; }
.pp-back svg { width: 20px; height: 20px; }
@media (min-width: 960px) and (max-width: 1180px) {
  .hdr-phone { display: none; }
  .cat-layout { grid-template-columns: 230px 1fr; gap: 24px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .co-grid { grid-template-columns: 1fr 340px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
}
