﻿/* ═══════════════════════════════════════════════════════════════════
   Военторг — Military Surplus Store Design System
   Single dark theme, industrial military aesthetic.
   rounded corners, stencil typography, tactical palette.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --bg: #0e0f0e;
  --surface: #161817;
  --panel: #1c1e1c;
  --stripe: #222522;
  --border: #2a2d2a;
  --border-hi: #3a3e3a;
  --fg: #e0ddd4;
  --fg2: #9b9889;
  --fg3: #5e5c54;
  --tan: #c8a96e;
  --tan-dim: rgba(200,169,110,0.12);
  --od: #5a7a32;
  --od-bright: #7da644;
  --od-dim: rgba(90,122,50,0.15);
  --red: #d44030;
  --red-dim: rgba(212,64,48,0.15);
  --good: #5a9e3a;
  --bad: #c43030;
  --line: var(--border);
  --r: 12px;
  --cut: 8px;
  --accent: var(--tan);
  --accent-soft: var(--tan-dim);
  --accent-ink: var(--bg);
  --ink: var(--fg);
  color-scheme: dark;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4, h5 { line-height: 1.2; }

/* ── Utilities ── */
.wrap { max-width: 1160px; margin: 0 auto; }
.stencil {
  font-family: 'Black Ops One', 'Impact', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 400;
}
.muted { color: var(--fg2); }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* rounded corners utility */
.clip { border-radius: var(--r); }

/* ══════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════ */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: var(--bg);
  transition: box-shadow .2s;
}
.top::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #fff 0%, #fff 33.3%, #4169e1 33.3%, #4169e1 66.6%, #d44030 66.6%, #d44030 100%);
  opacity: 0.6;
}
.top.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,.5); }

.bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  flex-wrap: nowrap;
}

/* burger */
.burger {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  padding: 4px;
  flex-shrink: 0;
}

/* logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--fg);
}
.logo span { color: var(--tan); }
.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--tan);
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 20px; height: 20px; color: var(--bg); }

/* Russian flag badge near logo */
.flag-ru {
  display: flex;
  flex-direction: column;
  width: 14px;
  height: 10px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  margin-left: -2px;
  align-self: center;
  opacity: 0.7;
}
.flag-ru i { flex: 1; display: block; }
.flag-ru i:nth-child(1) { background: #fff; }
.flag-ru i:nth-child(2) { background: #4169e1; }
.flag-ru i:nth-child(3) { background: #d44030; }

/* search */
.search {
  flex: 1;
  min-width: 160px;
  max-width: 440px;
  position: relative;
}
.search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg3);
  pointer-events: none;
}
.search input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.search input:focus { border-color: var(--tan); }
.search input::placeholder { color: var(--fg3); }

/* search suggest dropdown */
.sugg {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  z-index: 200;
  max-height: 70vh;
  overflow-y: auto;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.sugg[hidden] { display: none; }
.sg-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}
.sg-sub i { font-style: normal; color: var(--fg3); font-size: 12px; }
.sg-sub:hover, .sg-sub.on { background: var(--tan-dim); }
.sg-it {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}
.sg-it:hover, .sg-it.on { background: var(--tan-dim); }
.sg-it img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; background: var(--surface); }
.sg-it span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-it b { white-space: nowrap; color: var(--tan); }
.sg-all {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--od-bright);
  text-align: center;
  transition: background .1s;
}
.sg-all:hover { background: var(--od-dim); }
.sg-none { padding: 16px; font-size: 13px; color: var(--fg3); text-align: center; }

/* icon buttons */
.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--fg2);
  transition: color .15s;
}
.icon-btn:hover { color: var(--fg); }
.icon-btn .dot {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.icon-btn .ic-label {
  display: none;
}

/* cart button */
.cart-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg2);
  font-size: 13px;
  font-weight: 600;
  transition: all .15s;
  border-radius: 10px;
}
.cart-btn:hover { border-color: var(--tan); color: var(--fg); background: var(--tan-dim); }
.cart-btn svg { flex-shrink: 0; }
.cart-btn .t { white-space: nowrap; }
.cart-btn .num {
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--od);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* category nav */
.navcats {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  border-bottom: 1px solid var(--border);
}
.navcats::-webkit-scrollbar { height: 3px; }
.navcats::-webkit-scrollbar-track { background: transparent; }
.navcats::-webkit-scrollbar-thumb { background: var(--border); }
.navcats a {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--fg2);
  white-space: nowrap;
  transition: all .15s;
  border-bottom: 2px solid transparent;
}
.navcats a:hover { color: var(--fg); }
.navcats a[aria-current="page"] { color: var(--tan); border-bottom-color: var(--tan); }

/* mobile menu */
.mob-menu {
  position: fixed;
  inset: 0;
  top: 58px;
  background: var(--bg);
  z-index: 99;
  overflow-y: auto;
  padding: 16px 0;
}
.mob-menu nav { display: flex; flex-direction: column; gap: 0; }
.mob-menu nav a {
  padding: 12px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}
.mob-menu nav a[aria-current="page"] { color: var(--tan); }
.mob-links { margin-top: 16px; display: flex; flex-direction: column; gap: 0; }
.mob-links a { padding: 10px 0; font-size: 14px; color: var(--fg2); border-bottom: 1px solid var(--border); }
body.menu-open { overflow: hidden; }

/* ══════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════ */
.hero {
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: center 20%;
  min-height: 340px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(14,15,14,0.92) 0%, rgba(14,15,14,0.75) 55%, rgba(14,15,14,0.35) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero-main { padding: 44px 36px; position: relative; z-index: 1; }
.hero-label {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 16px;
  background: var(--tan);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 6px;
}
.hero h1 {
  font-size: clamp(26px, 4.5vw, 44px);
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 14px;
}
.hero h1 .accent { color: var(--tan); }
.hero-desc { color: var(--fg2); font-size: 16px; max-width: 460px; margin-bottom: 24px; }
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--od);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  transition: background .2s;
  border-radius: 12px;
}
.hero-cta:hover { background: var(--od-bright); }
.hero-cta svg { width: 18px; height: 18px; }
.hero-side {
  width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: rgba(14,15,14,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-left: 1px solid rgba(200,169,110,0.15);
  padding: 32px 24px;
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero-pct { font-size: 64px; line-height: 1; color: var(--red); font-weight: 900; }
.hero-pct-label { font-size: 13px; color: var(--fg2); }
.hero-stat {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  width: 100%;
  text-align: center;
}
.hero-stat-num { font-size: 28px; font-weight: 900; color: var(--tan); }
.hero-stat-label { font-size: 12px; color: var(--fg3); }

/* hero entrance animation */
.hero { opacity: 0; transform: translateY(20px); transition: opacity .6s ease-out, transform .6s ease-out; }
.hero.in { opacity: 1; transform: none; }

/* ══════════════════════════════════════════════════════════════
   CATEGORY TILES (horizontal scroll)
   ══════════════════════════════════════════════════════════════ */
.catbar { margin: 28px 0; }
.catbar-title {
  font-size: 13px;
  color: var(--fg3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-left: 2px;
}
.catbar-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.catbar-scroll::-webkit-scrollbar { height: 4px; }
.catbar-scroll::-webkit-scrollbar-track { background: transparent; }
.catbar-scroll::-webkit-scrollbar-thumb { background: var(--border); }
.cattile {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .15s;
  border-radius: 12px;
}
.cattile:hover { border-color: var(--tan); background: var(--tan-dim); box-shadow: 0 0 10px rgba(200,169,110,0.12); }
.cattile-icon { width: 28px; height: 28px; flex-shrink: 0; color: var(--tan); }
.cattile-body { min-width: 0; }
.cattile-name { font-size: 14px; font-weight: 700; white-space: nowrap; }
.cattile-count { font-size: 11px; color: var(--fg3); }

/* ══════════════════════════════════════════════════════════════
   SECTION DIVIDERS
   ══════════════════════════════════════════════════════════════ */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 36px 0 18px;
  color: var(--fg3);
}
.divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider-tag {
  padding: 3px 10px;
  background: var(--stripe);
  border: 1px solid var(--border);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg2);
  border-radius: 6px;
}
.divider h2 { font-size: 18px; letter-spacing: 0.08em; color: var(--fg); }

.section-hdr {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.section-hdr h2 { font-size: 20px; letter-spacing: 0.06em; color: var(--fg); }
.section-hdr a { color: var(--od-bright); font-size: 14px; }
.section-hdr a:hover { text-decoration: underline; }

/* scroll entrance for sections */
section.block, .promo-block {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .5s ease-out, transform .5s ease-out;
}
section.block.in, .promo-block.in { opacity: 1; transform: none; }

/* ══════════════════════════════════════════════════════════════
   PRODUCT CARDS (grid + card component)
   ══════════════════════════════════════════════════════════════ */
.pgrid, .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 10px;
  margin-bottom: 36px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: all .2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.card:hover { border-color: var(--tan); z-index: 2; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }

/* HUD corner brackets on hover */
.card::before, .card::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--tan);
  border-style: solid;
  opacity: 0;
  transition: opacity .2s, width .2s, height .2s;
  z-index: 3;
  pointer-events: none;
}
.card::before { top: 4px; left: 4px; border-width: 2px 0 0 2px; }
.card::after { bottom: 4px; right: 4px; border-width: 0 2px 2px 0; }
.card:hover::before, .card:hover::after { opacity: 1; width: 24px; height: 24px; }

/* card: image area */
.pic {
  display: block;
  aspect-ratio: 4/3;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.pic img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

/* card: rank badge */
.rank {
  position: absolute;
  top: 0;
  left: 0;
  padding: 3px 8px;
  background: var(--tan);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
  border-radius: 6px;
}

/* card: tool buttons (fav, compare) */
.tools {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
  z-index: 2;
}
.tool {
  width: 30px;
  height: 30px;
  background: rgba(14,15,14,0.7);
  border: 1px solid var(--border);
  color: var(--fg3);
  display: grid;
  place-items: center;
  transition: all .15s;
  padding: 0;
}
.tool:hover { color: var(--fg); border-color: var(--fg3); }
.tool[aria-pressed="true"] { color: var(--tan); border-color: var(--tan); background: var(--tan-dim); }
.tool svg { fill: none; }
.tool[aria-pressed="true"] svg { fill: currentColor; }

/* card: info area */
.cinfo { padding: 8px 10px 6px; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.cinfo h3 { font-size: 13px; font-weight: 600; line-height: 1.3; }
.cinfo h3 a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh2 { font-size: 12px; color: var(--fg3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* rating and stars */
.meta { display: flex; align-items: center; gap: 5px; font-size: 13px; flex-wrap: wrap; }
.stars {
  position: relative;
  display: inline-block;
  color: var(--border-hi);
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 1;
}
.stars i {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: var(--tan);
  white-space: nowrap;
  font-style: normal;
}
.score { font-weight: 700; color: var(--tan); }
.noscore { font-size: 12px; color: var(--fg3); }

/* stock status */
.stk { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.stk.ok { color: var(--good); }
.stk.wait { color: var(--fg3); }

/* card: color variants */
.color-vars { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.color-vars.sm .cvar { width: 16px; height: 16px; }
.cvar {
  width: 20px;
  height: 20px;
  border: 1px solid var(--border);
  display: block;
  transition: border-color .15s;
}
.cvar:hover, .cvar.cur { border-color: var(--tan); }
.cvar-more { font-size: 11px; color: var(--fg3); align-self: center; }

/* card: footer with price and button */
.foot {
  padding: 6px 10px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.foot b { font-size: 15px; font-weight: 900; color: var(--tan); }
.add, .b-main {
  padding: 5px 10px;
  background: transparent;
  border: 1px solid var(--od);
  color: var(--od-bright);
  font-size: 12px;
  font-weight: 700;
  transition: all .15s;
  border-radius: 8px;
  white-space: nowrap;
}
.add:hover { background: var(--od-dim); }
.add.in, .b-main.in { background: var(--od); color: #fff; border-color: var(--od); }

/* ══════════════════════════════════════════════════════════════
   CATEGORY GRID (on home page — icon tiles)
   ══════════════════════════════════════════════════════════════ */
.cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 36px;
}
.cat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  transition: all .2s;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease-out, transform .3s ease-out, border-color .15s, background .15s;
}
.cat.in { opacity: 1; transform: none; }
.cat:hover { border-color: var(--tan); background: var(--tan-dim); box-shadow: 0 0 12px rgba(200,169,110,0.15); }
.cat svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--tan); stroke-width: 1.5; fill: none; }
.cat-text { min-width: 0; }
.cat b { font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat small { font-size: 11px; color: var(--fg3); display: block; }

/* ══════════════════════════════════════════════════════════════
   HOME: BOARD (hits / leaderboard)
   ══════════════════════════════════════════════════════════════ */
.board {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
}
.board-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--border);
}
.board-top b { font-size: 15px; }
.board-top small { font-size: 12px; color: var(--fg3); }
.tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
}
.tab {
  flex-shrink: 0;
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  color: var(--fg2);
  transition: all .15s;
  white-space: nowrap;
}
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { color: var(--tan); border-bottom-color: var(--tan); }
.rows { padding: 8px 0; }
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  transition: background .1s;
  /* stagger entrance */
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .3s ease-out, transform .3s ease-out, background .1s;
}
.row.in { opacity: 1; transform: none; }
.row:hover { background: var(--stripe); }
.place { width: 28px; font-weight: 900; font-size: 16px; color: var(--fg3); text-align: center; flex-shrink: 0; }
.row:nth-child(1) .place { color: var(--tan); }
.row:nth-child(2) .place { color: var(--fg2); }
.item { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.item img { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; background: var(--surface); }
.item h3 { font-size: 13px; font-weight: 600; }
.item h3 a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; }
.price b { font-size: 15px; color: var(--tan); }
.btn-dark {
  display: inline-block;
  padding: 5px 12px;
  background: var(--fg);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  transition: background .15s;
  text-align: center;
}
.btn-dark:hover { background: var(--tan); }

/* ══════════════════════════════════════════════════════════════
   HOME: REVIEWS
   ══════════════════════════════════════════════════════════════ */
.revs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 36px; }
.rev-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rh { display: flex; gap: 10px; align-items: flex-start; }
.rh img { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; background: var(--surface); }
.rn { font-size: 13px; font-weight: 600; }
.rn a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rt { font-size: 14px; color: var(--fg2); font-style: italic; }
.rf { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }

/* ══════════════════════════════════════════════════════════════
   HOME: SELLER & TRUST
   ══════════════════════════════════════════════════════════════ */
.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  margin-bottom: 36px;
}
.trust div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  /* stagger */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease-out, transform .3s ease-out;
}
.trust div.in { opacity: 1; transform: none; }
.trust div:first-child { border-top: 1px solid var(--border); }

/* features strip (from mockup) */
.feats { margin-bottom: 36px; display: flex; flex-direction: column; }
.feat-grid {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.feat-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.feat-row:last-child { border-bottom: none; }
.feat-num { font-size: 11px; font-weight: 700; color: var(--fg3); width: 24px; text-align: center; flex-shrink: 0; letter-spacing: 0.05em; }
.feat-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--tan); }
.feat-text { font-size: 14px; font-weight: 600; }
.feat-desc { font-size: 13px; color: var(--fg2); margin-left: auto; text-align: right; }

/* ══════════════════════════════════════════════════════════════
   TELEGRAM BANNER
   ══════════════════════════════════════════════════════════════ */
.tg-banner {
  margin: 8px 0 36px;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.tg-banner-accent {
  width: 6px;
  flex-shrink: 0;
  background: repeating-linear-gradient(180deg, var(--tan) 0, var(--tan) 8px, var(--bg) 8px, var(--bg) 16px);
}
.tg-banner-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 24px;
  background: var(--panel);
}
.tg-banner-text b { display: block; font-size: 16px; margin-bottom: 2px; color: var(--tan); }
.tg-banner-text span { font-size: 14px; color: var(--fg2); }
.tg-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--tan);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  border: none;
  transition: background .15s;
  border-radius: 10px;
}
.tg-cta:hover { background: #d4b97e; }

/* ══════════════════════════════════════════════════════════════
   PROMO / BANNER
   ══════════════════════════════════════════════════════════════ */
.promo-block {
  margin: 20px 0 36px;
  padding: 24px 28px;
  background: linear-gradient(90deg, rgba(200,169,110,0.06) 0%, rgba(90,122,50,0.06) 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════
   CATALOG / FILTER
   ══════════════════════════════════════════════════════════════ */
.page-h { padding: 20px 0 10px; }
.page-h h1 { font-size: clamp(20px, 3vw, 28px); }
.page-h .cnt { font-size: 14px; color: var(--fg3); margin-left: 8px; }

.sort-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.sort-bar select {
  padding: 6px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 13px;
  color: var(--fg);
}
.sort-bar .active-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--tan-dim);
  border: 1px solid rgba(200,169,110,0.25);
  font-size: 12px;
  color: var(--tan);
  cursor: pointer;
  border-radius: 6px;
}
.filter-chip:hover { background: rgba(200,169,110,0.2); }

.filters {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.filters h3 { font-size: 14px; margin-bottom: 10px; }
.filters label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 13px;
  color: var(--fg2);
  cursor: pointer;
}
.filters label:hover { color: var(--fg); }
.filters input[type="checkbox"] { accent-color: var(--od); }

/* pagination */
.pager { display: flex; justify-content: center; gap: 4px; margin: 24px 0; }
.pager a, .pager span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg2);
  transition: all .15s;
}
.pager a:hover { border-color: var(--tan); color: var(--fg); }
.pager .cur { background: var(--tan); color: var(--bg); border-color: var(--tan); }

/* ══════════════════════════════════════════════════════════════
   PRODUCT PAGE
   ══════════════════════════════════════════════════════════════ */
.prod-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
}
.prod-gallery {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prod-gallery .main-img {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.prod-gallery .main-img img { max-height: 100%; object-fit: contain; }
.prod-gallery .thumbs { display: flex; gap: 6px; overflow-x: auto; }
.prod-gallery .thumbs img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 2px;
  background: var(--panel);
  transition: border-color .15s;
}
.prod-gallery .thumbs img:hover, .prod-gallery .thumbs img.active { border-color: var(--tan); }

.prod-info { display: flex; flex-direction: column; gap: 14px; }
.prod-info h1 { font-size: 22px; line-height: 1.3; }
.prod-info .prod-cat-label {
  font-size: 12px;
  color: var(--od-bright);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.prod-info .prod-prices { display: flex; align-items: baseline; gap: 12px; }
.prod-info .prod-price { font-size: 32px; font-weight: 900; color: var(--tan); }
.prod-info .prod-old { font-size: 18px; color: var(--fg3); text-decoration: line-through; }
.prod-info .prod-discount {
  padding: 3px 8px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
}
.prod-actions { display: flex; gap: 10px; margin-top: 8px; }
.prod-actions .b-main {
  flex: 1;
  padding: 14px 24px;
  font-size: 16px;
  text-align: center;
}
.prod-actions .tool { width: 44px; height: 44px; flex-shrink: 0; }

.prod-short-specs { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.prod-short-specs .row-spec {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px dotted var(--border);
}
.prod-short-specs .row-spec span:first-child { color: var(--fg3); }

/* specs table */
.prod-specs {
  margin-bottom: 36px;
}
.prod-specs h2 { margin-bottom: 12px; }
.prod-specs table { width: 100%; border-collapse: collapse; }
.prod-specs td {
  padding: 8px 12px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.prod-specs td:first-child { color: var(--fg2); width: 40%; white-space: nowrap; }
.prod-specs tr:nth-child(even) td { background: var(--stripe); }

/* description */
.prod-desc {
  margin-bottom: 36px;
  line-height: 1.7;
  color: var(--fg2);
  font-size: 15px;
}
.prod-desc h2 { color: var(--fg); margin-bottom: 12px; }

/* related items */
.prod-related { margin-bottom: 36px; }

/* ══════════════════════════════════════════════════════════════
   CART PAGE
   ══════════════════════════════════════════════════════════════ */
.cart-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
  margin-bottom: 36px;
}

/* cart items list */
.cart-line {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-line img { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; background: var(--surface); }
.cart-line .cl-info { flex: 1; min-width: 0; }
.cart-line .cl-name { font-size: 14px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-line .cl-art { font-size: 11px; color: var(--fg3); }
.cart-line .cl-qty {
  display: flex;
  align-items: center;
  gap: 0;
}
.cart-line .cl-qty button {
  width: 30px;
  height: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg2);
  font-size: 16px;
  display: grid;
  place-items: center;
}
.cart-line .cl-qty button:hover { color: var(--fg); border-color: var(--fg3); }
.cart-line .cl-qty span {
  width: 36px;
  height: 30px;
  display: grid;
  place-items: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 14px;
}
.cart-line .cl-price { font-size: 16px; font-weight: 900; color: var(--tan); white-space: nowrap; min-width: 90px; text-align: right; }
.cart-line .cl-del {
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  color: var(--fg3);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: color .15s;
}
.cart-line .cl-del:hover { color: var(--red); }
.cart-empty { padding: 40px 0; text-align: center; color: var(--fg3); }
.cart-empty h2 { margin-bottom: 10px; }

/* order form */
.order {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 80px;
}
.order-summary { font-size: 14px; color: var(--fg2); }
.tot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.tot b { font-size: 22px; color: var(--tan); }
.order label {
  display: block;
  font-size: 14px;
  color: var(--fg2);
  margin-bottom: 2px;
}
.order input[type="text"],
.order input[type="tel"],
.order textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--fg);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.order input:focus, .order textarea:focus { border-color: var(--tan); }
.order textarea { resize: vertical; min-height: 60px; }
.pay-note {
  padding: 10px 14px;
  background: var(--stripe);
  border-left: 3px solid var(--tan);
  font-size: 13px;
  color: var(--fg2);
}
.check {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}
.check input { margin-top: 3px; accent-color: var(--od); }
.check a { color: var(--tan); text-decoration: underline; }

.send {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--od);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  transition: background .2s;
  border-radius: 12px;
}
.send:hover { background: var(--od-bright); }
.send:disabled { opacity: .5; cursor: not-allowed; }

.note2 { font-size: 12px; color: var(--fg3); }
.done {
  padding: 16px;
  border: 1px solid var(--good);
  border-radius: 10px;
  text-align: center;
}

.or-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
}
.or-sep::before, .or-sep::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.or-sep span { font-size: 12px; color: var(--fg3); }

.btn-tg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: #2AABEE;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: none;
  transition: background .15s;
  border-radius: 10px;
}
.btn-tg:hover { background: #229ED9; }
.tg-q { display: block; text-align: center; font-size: 13px; color: var(--fg3); margin-top: 4px; }
.tg-q:hover { color: var(--tan); }

.mgr-help { display: flex; flex-direction: column; gap: 8px; }

/* ══════════════════════════════════════════════════════════════
   ORDER TRACKING PAGE
   ══════════════════════════════════════════════════════════════ */
.ord { max-width: 720px; margin: 0 auto; padding: 24px 16px; }
.ord h1 { margin-bottom: 8px; }
.ord-sum { color: var(--fg2); }

.ord-steps {
  display: flex;
  gap: 4px;
  padding: 0;
  margin: 18px 0;
  flex-wrap: wrap;
}
.ord-steps li {
  flex: 1;
  min-width: 70px;
  padding: 9px 8px;
  background: var(--stripe);
  color: var(--fg3);
  font-size: 12px;
  text-align: center;
  transition: all .3s;
  border-radius: 4px;
}
.ord-steps li.done { background: var(--od); color: #fff; }

.ord-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin: 14px 0;
}
.ord-card.ok { border-color: var(--good); }
.ord-card h3 { margin: 0 0 10px; }

.ord-req {
  white-space: pre-wrap;
  font: inherit;
  background: var(--bg);
  padding: 12px;
  margin: 0 0 10px;
  border: 1px solid var(--border);
  font-size: 14px;
}
.ord-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.ord-hint { font-size: 13px; color: var(--fg3); }
.ord-msg { color: var(--good); font-size: 14px; margin-top: 8px; }

.ord .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  font-size: 15px;
  transition: all .15s;
  border-radius: 8px;
}
.ord .btn:hover { border-color: var(--tan); }
.ord .btn.dark { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.ord .btn.dark:hover { background: var(--tan); border-color: var(--tan); }
.ord .primary-wide {
  display: block;
  text-align: center;
  padding: 12px 20px;
  background: var(--od);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: 10px;
  transition: background .15s;
}
.ord .primary-wide:hover { background: var(--od-bright); }
.ord label { display: block; font-size: 14px; color: var(--fg2); margin-bottom: 4px; }
.ord input[type="text"], .ord input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--surface);
  color: var(--fg);
  font-size: 14px;
  outline: none;
}
.ord input:focus { border-color: var(--tan); }

/* receipt upload zone */
.receipt-zone {
  margin-top: 16px;
  border: 2px dashed var(--border);
  padding: 20px;
  text-align: center;
  transition: border-color .2s, background .2s;
}
.receipt-zone.over { border-color: var(--tan); background: var(--tan-dim); }
.receipt-zone h4 { margin: 0 0 6px; font-size: 15px; }
.receipt-zone p { margin: 0 0 12px; font-size: 13px; color: var(--fg2); }
.receipt-zone input[type="file"] { display: none; }
.receipt-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 14px;
  transition: background .15s;
  cursor: pointer;
}
.receipt-pick:hover { background: var(--tan-dim); }
.receipt-name { margin-top: 10px; font-size: 13px; word-break: break-all; }
.receipt-send { margin-top: 12px; }

/* payment timer */
.pay-timer {
  background: var(--stripe);
  padding: 10px 14px;
  margin: 0 0 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}
.pay-timer .time { font-size: 22px; color: var(--tan); }
.pay-timer.urgent { background: var(--red-dim); color: var(--red); }
.pay-timer.urgent .time { color: var(--red); }

/* notification row */
.notify-row { display: flex; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.tg-notify-btn, .push-notify-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex: 1;
  min-width: 160px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 15px;
  transition: background .15s;
  cursor: pointer;
  border: none;
  border-radius: 8px;
}
.tg-notify-btn { background: #2AABEE; color: #fff; }
.tg-notify-btn:hover { background: #229ED9; }
.push-notify-btn { background: var(--surface); color: var(--fg); border: 1px solid var(--border); }
.push-notify-btn:hover { background: var(--tan-dim); }
.push-notify-btn.done { background: var(--good); color: #fff; border-color: var(--good); cursor: default; }
.tg-notify-btn svg, .push-notify-btn svg { flex-shrink: 0; }

@keyframes spin { 0% { transform: rotate(0) } 100% { transform: rotate(360deg) } }
.wait-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--stripe);
  border-top-color: var(--tan);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 16px;
}
.wait-texts { text-align: center; min-height: 24px; }
@keyframes fadeText { 0% { opacity: 0; transform: translateY(6px) } 20% { opacity: 1; transform: none } }
.wait-text { animation: fadeText 1s ease-in-out; font-size: 15px; color: var(--fg2); }

/* ══════════════════════════════════════════════════════════════
   COMPARE PAGE
   ══════════════════════════════════════════════════════════════ */
.cmp-wrap { overflow-x: auto; margin-bottom: 36px; }
.cmp-table { border-collapse: collapse; min-width: 600px; width: 100%; }
.cmp-table th, .cmp-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  font-size: 14px;
  vertical-align: top;
  min-width: 150px;
}
.cmp-table th { background: var(--stripe); color: var(--fg2); font-weight: 600; text-align: left; white-space: nowrap; }
.cmp-table td img { width: 80px; height: 80px; object-fit: contain; margin: 0 auto; display: block; }
.cmp-table .cmp-name { font-weight: 700; font-size: 13px; }
.cmp-table .cmp-price { font-weight: 900; color: var(--tan); font-size: 16px; }
.cmp-table tr:nth-child(even) td { background: var(--stripe); }
.cmp-rm {
  display: inline-block;
  font-size: 12px;
  color: var(--fg3);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}
.cmp-rm:hover { color: var(--red); }

/* ══════════════════════════════════════════════════════════════
   INFO / DOC PAGE
   ══════════════════════════════════════════════════════════════ */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 0;
  line-height: 1.7;
  font-size: 15px;
  color: var(--fg2);
}
.doc h1, .doc h2, .doc h3 { color: var(--fg); margin: 24px 0 10px; }
.doc h1 { font-size: 24px; }
.doc h2 { font-size: 20px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.doc h3 { font-size: 16px; }
.doc p { margin-bottom: 12px; }
.doc ul, .doc ol { padding-left: 20px; margin-bottom: 12px; }
.doc li { margin-bottom: 4px; }
.doc a { color: var(--tan); text-decoration: underline; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.doc td, .doc th { padding: 8px 10px; border: 1px solid var(--border); font-size: 14px; text-align: left; }
.doc th { background: var(--stripe); font-weight: 600; }
.doc-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.doc-tabs a {
  padding: 8px 16px;
  font-size: 14px;
  color: var(--fg2);
  border-bottom: 2px solid transparent;
  transition: all .15s;
}
.doc-tabs a:hover { color: var(--fg); }
.doc-tabs a.active { color: var(--tan); border-bottom-color: var(--tan); }

/* ══════════════════════════════════════════════════════════════
   CHIPS (generic)
   ══════════════════════════════════════════════════════════════ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg2);
  white-space: nowrap;
  transition: all .15s;
  border-radius: 6px;
}
.chip:hover { border-color: var(--tan); color: var(--fg); }
.chip.active { background: var(--tan); color: var(--bg); border-color: var(--tan); }
.chip i { font-style: normal; font-size: 11px; color: var(--fg3); }
.chip.active i { color: inherit; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.sort-opts { display: flex; gap: 4px; margin-left: auto; }

/* ══════════════════════════════════════════════════════════════
   CARD EXTRA (subcategory label, price parts)
   ══════════════════════════════════════════════════════════════ */
.pcard-cat { font-size: 11px; color: var(--od-bright); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.prices { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-main { font-size: 18px; font-weight: 900; color: var(--tan); }
.price-old { font-size: 13px; color: var(--fg3); text-decoration: line-through; }
.price-pct { font-size: 11px; font-weight: 700; color: var(--red); padding: 1px 4px; background: var(--red-dim); }

/* ══════════════════════════════════════════════════════════════
   PRODUCT PAGE EXTRA
   ══════════════════════════════════════════════════════════════ */
.prod-crumbs { font-size: 13px; color: var(--fg3); }
.prod-crumbs a { color: var(--fg3); transition: color .15s; }
.prod-crumbs a:hover { color: var(--tan); }
.prod-id { font-size: 12px; }
.prod-note { font-size: 13px; }
.prod-main-img { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.prod-main-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.prod-thumbs { display: flex; gap: 6px; overflow-x: auto; }
.thumb { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--border); cursor: pointer; padding: 2px; background: var(--panel); transition: border-color .15s; }
.thumb:hover, .thumb.active { border-color: var(--tan); }
.tool.lg { width: auto; height: auto; padding: 10px 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }

/* ══════════════════════════════════════════════════════════════
   CART PAGE EXTRA
   ══════════════════════════════════════════════════════════════ */
.cart-img { width: 64px; height: 64px; flex-shrink: 0; }
.cart-img img { width: 100%; height: 100%; object-fit: contain; background: var(--surface); }
.cart-info { flex: 1; min-width: 0; font-size: 14px; }
.cart-info a { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-qty { display: flex; align-items: center; gap: 0; }
.qty-btn { width: 30px; height: 30px; background: var(--surface); border: 1px solid var(--border); color: var(--fg2); font-size: 16px; display: grid; place-items: center; }
.qty-btn:hover { color: var(--fg); border-color: var(--fg3); }
.cart-qty .num { width: 36px; height: 30px; display: grid; place-items: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-weight: 700; font-size: 14px; }
.cart-price { font-size: 16px; font-weight: 900; color: var(--tan); white-space: nowrap; min-width: 90px; text-align: right; }
.cart-rm { width: 28px; height: 28px; background: transparent; border: none; color: var(--fg3); display: grid; place-items: center; flex-shrink: 0; transition: color .15s; }
.cart-rm:hover { color: var(--red); }
.empty-cart { padding: 40px 0; text-align: center; color: var(--fg3); }
.empty-cart p { font-size: 18px; margin-bottom: 16px; }
.sum-line { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; color: var(--fg2); }
.sum-line + .sum-line { border-top: 1px solid var(--border); }

/* ══════════════════════════════════════════════════════════════
   COMPARE PAGE EXTRA
   ══════════════════════════════════════════════════════════════ */
.cmp-scroll { overflow-x: auto; margin-bottom: 36px; }

/* ══════════════════════════════════════════════════════════════
   FAVORITES PAGE
   ══════════════════════════════════════════════════════════════ */
.fav-empty { text-align: center; padding: 48px 0; color: var(--fg3); }
.fav-empty h2 { margin-bottom: 8px; }
.fav-empty a { color: var(--tan); }

/* ══════════════════════════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transition: transform .3s ease-out, opacity .3s;
  border-radius: 8px;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast a { color: var(--tan); margin-left: 8px; }

/* ══════════════════════════════════════════════════════════════
   SCROLL TO TOP
   ══════════════════════════════════════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: max(24px, env(safe-area-inset-right, 0px));
  width: 44px;
  height: 44px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--fg2);
  display: grid;
  place-items: center;
  z-index: 100;
  opacity: 0;
  transform: translateY(20px);
  transition: all .3s;
  pointer-events: none;
  border-radius: 10px;
}
.scroll-top.show { opacity: 1; transform: none; pointer-events: auto; }
.scroll-top:hover { border-color: var(--tan); color: var(--fg); }

/* ══════════════════════════════════════════════════════════════
   NOTE / PREVIEW BANNER
   ══════════════════════════════════════════════════════════════ */
.note {
  background: var(--tan);
  color: var(--bg);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* ══════════════════════════════════════════════════════════════
   ACTIVE ORDER BANNER
   ══════════════════════════════════════════════════════════════ */
.order-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--od-dim);
  border-bottom: 1px solid rgba(90,122,50,0.3);
  font-size: 13px;
  font-weight: 600;
  color: var(--od-bright);
  transition: background .15s;
}
.order-banner:hover { background: rgba(90,122,50,0.2); }
.order-banner svg { flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════
   404 PAGE
   ══════════════════════════════════════════════════════════════ */
.e404 {
  text-align: center;
  padding: 80px 20px;
}
.e404 h1 { font-size: 72px; color: var(--fg3); line-height: 1; margin-bottom: 12px; }
.e404 p { font-size: 16px; color: var(--fg2); margin-bottom: 24px; }
.e404 a {
  display: inline-block;
  padding: 10px 24px;
  background: var(--od);
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 700px) {
  .burger { display: flex; }
  .navcats { display: none; }
  .bar .search { order: 10; max-width: 100%; flex-basis: 100%; }
  .icon-btn .ic-label { display: none; }
  .cart-btn .t { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-side {
    width: 100%;
    flex-direction: row;
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 20px;
  }
  .hero-stat {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    border-left: 1px solid var(--border);
    padding-left: 20px;
    margin-left: 20px;
  }
  .hero-main { padding: 28px 20px; }
  .hero-pct { font-size: 48px; }
  .pgrid, .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .prod-top { grid-template-columns: 1fr; }
  .cart-grid { grid-template-columns: 1fr; }
  .order { position: static; }
  .feat-desc { display: none; }
  .tg-banner-body { padding: 16px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .revs { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .pgrid, .grid { grid-template-columns: 1fr 1fr; gap: 4px; }
  .card .cinfo { padding: 8px 10px 6px; }
  .card .foot { padding: 6px 10px 10px; }
  .foot b { font-size: 15px; }
  .add { padding: 5px 10px; font-size: 12px; }
  .cart-line { gap: 8px; }
  .cart-line img { width: 48px; height: 48px; }
  .cart-line .cl-price { min-width: 70px; font-size: 14px; }
  .hero-main { padding: 20px 16px; }
  .hero h1 { font-size: 24px; }
  .ord { padding: 16px 10px; }
  .ord h1 { font-size: 22px; }
  .ord .btn { padding: 8px 14px; font-size: 14px; }
  .ord .primary-wide { padding: 10px 16px; font-size: 14px; }
}

@media (max-width: 380px) {
  .ord-steps { gap: 2px; }
  .ord-steps li { min-width: 0; font-size: 10px; padding: 6px 2px; }
  .bar { gap: 6px; }
  .cart-btn { padding: 6px 8px; font-size: 12px; }
}

@media (max-width: 374px) {
  .ord h1 { font-size: 18px; }
  .ord-card { padding: 10px; }
  .hero-side { flex-direction: column; padding: 14px; }
  .hero-stat { border-left: 0; padding-left: 0; margin-left: 0; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
}

/* ══════════════════════════════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .hero, section.block, .promo-block, .cat, .row, .trust div { opacity: 1; transform: none; }
}
