/* FAW MARKET — design system (brand: store signage — FAW blue, white, MARKET red) */
:root {
  --bg: #F2F4F8;
  --surface: #FFFFFF;
  --surface-2: #F1F4F9;
  --surface-3: #E4E9F2;
  --border: #DCE2EC;
  --text: #0E1633;
  --text-2: #4A5574;
  --text-3: #808AA3;
  --brand: #1632A6;          /* FAW blue */
  --brand-dark: #0C1D6E;
  --brand-bright: #2A5BE8;
  --brand-dim: rgba(22, 50, 166, .08);
  --accent: #E3231C;         /* MARKET red — buy buttons, low stock */
  --accent-hover: #C51A14;
  --accent-dim: rgba(227, 35, 28, .08);
  --ok: #13A05B;
  --info: #1F6FE0;
  --none: #9AA3B8;
  --font: "Inter", Roboto, system-ui, sans-serif;
  --display: "Montserrat", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r: 6px;
  --r-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(14, 22, 51, .06), 0 1px 3px rgba(14, 22, 51, .05);
  --shadow: 0 16px 40px rgba(14, 22, 51, .16);
  --container: 1440px;
  --stripes: repeating-linear-gradient(115deg, transparent 0 18px, rgba(255,255,255,.07) 18px 30px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/20px var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 2px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3 { font-family: var(--display); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--r);
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background .15s ease-out, border-color .15s ease-out, color .15s ease-out, box-shadow .15s;
}
.btn:hover { background: var(--surface-2); border-color: #c8d0de; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(227,35,28,.25); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-outline { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand-dim); border-color: var(--brand); }
.btn-blue { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-blue:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn.is-done { background: var(--ok); border-color: var(--ok); color: #fff; box-shadow: none; }

/* ---------- Topbar ---------- */
.topbar { background: var(--brand-dark); color: rgba(255,255,255,.75); font-size: 12px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 34px; gap: 16px; }
.topbar .seg { display: flex; gap: 2px; }
.topbar .seg button { background: none; border: 0; padding: 3px 7px; color: rgba(255,255,255,.55); font-weight: 600; font-size: 12px; border-radius: 4px; }
.topbar .seg button.on { color: #fff; background: rgba(255,255,255,.14); }
.topbar-right { display: flex; gap: 16px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--surface); box-shadow: 0 1px 0 var(--border); }
.header .container { display: flex; align-items: center; gap: 14px; height: 76px; }
.logo { display: flex; align-items: center; gap: 0; margin-right: 8px; line-height: 1; }
.logo-faw { font: 900 30px/1 var(--display); color: var(--brand); letter-spacing: .02em; }
.logo-market {
  margin-left: 8px; padding: 5px 10px 5px 8px; font: 900 italic 17px/1 var(--display); color: var(--accent); letter-spacing: .04em;
  background: #fff; border: 2px solid var(--brand); transform: skewX(-12deg); border-radius: 3px;
}
.logo-market > span { display: inline-block; transform: skewX(12deg); }
.logo-uz { margin-left: 6px; font: 700 12px var(--mono); color: var(--text-3); align-self: flex-end; }
.header-spacer { flex: 1; }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px; z-index: 60;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: var(--r-lg);
  padding: 6px; display: none;
}
.dropdown.open .dropdown-menu { display: block; }
/* opening hours pill in the header (single store, no warehouse switcher) */
.hdr-hours { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: var(--r); background: var(--surface-2); font: 700 13px var(--display); color: var(--brand-dark); white-space: nowrap; }
.hdr-hours .icon { color: var(--brand); }

.phones { display: flex; align-items: center; gap: 12px; padding: 0 6px; }
.phones .ph-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; flex: none; }
.phones .ph-list { display: flex; flex-direction: column; line-height: 19px; }
.phones a { font: 800 15px var(--display); color: var(--text); letter-spacing: .01em; }
.phones a:hover { color: var(--brand); }
.phones button { background: none; border: 0; padding: 0; color: var(--accent); font-size: 12px; text-align: left; font-weight: 600; }
.icon-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px; border-radius: var(--r); border: 1px solid transparent; background: none; font-weight: 600; }
.icon-btn .icon { color: var(--brand); }
.icon-btn:hover { background: var(--surface-2); }
.badge {
  position: absolute; top: 2px; left: 22px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--accent); color: #fff; border-radius: 9px; font: 700 11px/18px var(--mono); text-align: center; border: 2px solid #fff; box-sizing: content-box;
}
.badge.bump { animation: bump .35s ease-out; }
@keyframes bump { 50% { transform: scale(1.35); } }
.cart-sum { font: 700 13px var(--mono); }
.b2b-login { height: 44px; }

/* blue category bar — like the bottom strip of the store sign */
.navbar { background: linear-gradient(90deg, var(--brand-dark), var(--brand) 55%, var(--brand-bright)); color: #fff; position: relative; overflow: hidden; }
.navbar::before { content: ""; position: absolute; inset: 0; background: var(--stripes); pointer-events: none; }
.navbar .container { position: relative; display: flex; align-items: stretch; height: 48px; gap: 0; overflow-x: auto; scrollbar-width: none; }
.navbar .container::-webkit-scrollbar { display: none; }
.navbar a, .navbar button { display: flex; align-items: center; gap: 8px; padding: 0 16px; font: 700 13px var(--display); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; background: none; border: 0; color: #fff; position: relative; }
.navbar a + a::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: rgba(255,255,255,.25); }
.navbar a:hover, .navbar button:hover { background: rgba(255,255,255,.12); }
.navbar .icon { width: 18px; height: 18px; opacity: .9; }
.navbar .nav-all { background: rgba(255,255,255,.14); margin-right: 6px; }
.navbar .nav-vin { margin-left: auto; color: #fff; background: var(--accent); }
.navbar .nav-vin:hover { background: var(--accent-hover); }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 5; background: #fff; overflow-x: clip; }
.hero-bg { display: none; }
.hero .container { position: relative; padding-top: 44px; padding-bottom: 36px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 24px; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--brand-dim); color: var(--brand); font: 700 12px var(--display); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.hero h1 { font: 900 46px/52px var(--display); margin: 0 0 10px; text-transform: uppercase; letter-spacing: -.01em; color: var(--brand-dark); }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-slogan { display: inline-block; font: 800 italic 18px var(--display); color: var(--accent); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 12px; }
.hero .sub { color: var(--text-2); font-size: 16px; line-height: 24px; margin: 0 0 22px; }
.hero .sub b { color: var(--text); font-family: var(--mono); }
.hero-phones { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-phones a { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: var(--r); background: var(--brand); color: #fff; font: 800 16px var(--display); box-shadow: 0 6px 16px rgba(22,50,166,.25); }
.hero-phones a:nth-child(2) { background: #fff; color: var(--brand); border: 2px solid var(--brand); box-shadow: none; }
.hero-truck { position: relative; isolation: isolate; }
.hero-truck::before { /* light panel with blue slashes, like the store sign */
  content: ""; position: absolute; z-index: -1; top: 4%; bottom: 2%; left: 4%; right: -40%;
  background: linear-gradient(160deg, #E6ECFB, #F5F7FD 70%); transform: skewX(-16deg); border-radius: 10px;
}
.hero-truck::after {
  content: ""; position: absolute; z-index: -1; top: 4%; bottom: 2%; left: -5%; width: 16px;
  background: var(--brand); transform: skewX(-16deg); box-shadow: 30px 0 0 -4px var(--brand-bright);
}
.hero-truck img { position: relative; width: 100%; height: auto; mix-blend-mode: multiply; }

.search { position: relative; margin-top: 18px; background: linear-gradient(100deg, var(--brand-dark), var(--brand)); border-radius: var(--r-lg); padding: 8px 8px 10px; box-shadow: 0 18px 40px rgba(12,29,110,.25); }
.search::before { content: ""; position: absolute; inset: 0; background: var(--stripes); border-radius: inherit; pointer-events: none; }
.search-tabs { position: relative; display: flex; gap: 4px; padding: 2px 2px 8px; }
.search-tab { background: none; border: 0; padding: 9px 16px; color: rgba(255,255,255,.75); font-weight: 600; border-radius: var(--r); display: flex; gap: 8px; align-items: center; }
.search-tab:hover { color: #fff; background: rgba(255,255,255,.1); }
.search-tab.on { color: var(--brand); background: #fff; }
.search-panel { display: none; position: relative; }
.search-panel.on { display: block; }
.search-row { display: flex; position: relative; background: #fff; border-radius: var(--r); border: 2px solid transparent; }
.search-row:focus-within { border-color: var(--accent); }
.search-input { flex: 1; min-width: 0; height: 58px; padding: 0 20px 0 52px; background: transparent; border: 0; outline: none; font: 600 18px var(--mono); letter-spacing: .02em; color: var(--text); }
.search-input::placeholder { color: var(--text-3); font-weight: 400; }
.search-row > .icon { position: absolute; left: 18px; top: 19px; color: var(--text-3); }
.search-go { height: 50px; margin: 4px; padding: 0 30px; font-size: 16px; border-radius: var(--r); }
.vin-count { align-self: center; padding: 0 16px; font: 600 13px var(--mono); color: var(--text-3); }
.vin-count.ok { color: var(--ok); }
.vin-decoded { display: none; gap: 8px; padding: 10px 4px 0; font-size: 13px; color: rgba(255,255,255,.85); flex-wrap: wrap; align-items: center; }
.vin-decoded.show { display: flex; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--text); }
.chip.accent { border-color: var(--brand); color: var(--brand); background: var(--brand-dim); }
.vin-decoded .chip { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); color: #fff; }
.vin-decoded .chip.accent { background: #fff; color: var(--brand); }
.brandcat { display: grid; grid-template-columns: repeat(3, 1fr) auto; background: #fff; border-radius: var(--r); }
.brandcat select { height: 58px; background: transparent; border: 0; border-right: 1px solid var(--border); padding: 0 16px; outline: none; font-weight: 500; }
.search-hints { position: relative; margin-top: 10px; padding: 0 4px; font-size: 13px; color: rgba(255,255,255,.7); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.search-hints button { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff; font: 500 12px var(--mono); padding: 3px 9px; border-radius: 999px; }
.search-hints button:hover { background: #fff; color: var(--brand); }

.ac { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; display: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); max-height: 460px; overflow: auto; }
.ac.show { display: block; }
.ac-group { padding: 10px 16px 4px; font: 700 11px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.ac-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 9px 16px; cursor: pointer; }
.ac-item:hover, .ac-item.on { background: var(--surface-2); }
.ac-item .code { font: 700 14px var(--mono); }
.ac-item .code mark { background: rgba(227,35,28,.12); color: var(--accent); border-radius: 2px; }
.ac-item .nm { color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-item .pr { font: 700 13px var(--mono); }
.ac-cat { display: flex; justify-content: space-between; padding: 8px 16px; cursor: pointer; color: var(--text-2); }
.ac-cat:hover, .ac-cat.on { background: var(--surface-2); color: var(--text); }
.ac-foot { display: block; padding: 11px 16px; border-top: 1px solid var(--border); color: var(--brand); font-weight: 700; }
.ac-empty { padding: 16px; color: var(--text-2); }
.brand-tag { display: inline-block; padding: 3px 7px; font: 700 10px/14px var(--font); letter-spacing: .06em; text-transform: uppercase; border-radius: 4px; background: var(--surface-3); color: var(--text-2); text-align: center; }
.brand-tag.oem { background: var(--brand); color: #fff; }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.trust div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface-2); border-radius: var(--r); font: 700 13px/17px var(--display); text-transform: uppercase; color: var(--brand-dark); }
.trust .icon { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--brand); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 40px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 16px; }
.section-head h2 { position: relative; font: 900 24px/30px var(--display); margin: 0; text-transform: uppercase; color: var(--brand-dark); padding-left: 16px; }
.section-head h2::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 6px; background: var(--accent); transform: skewX(-12deg); }
.section-head a { color: var(--brand); font-weight: 700; font-size: 13px; }

/* category tiles — styled after the store window graphics */
.cats { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.cat {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 14px;
  padding: 22px 12px 12px; min-height: 180px; border-radius: var(--r-lg);
  background: radial-gradient(120% 90% at 30% 10%, var(--brand-bright), var(--brand) 45%, var(--brand-dark)); color: #fff;
  transition: transform .15s ease-out, box-shadow .15s ease-out;
}
.cat::before { content: ""; position: absolute; left: -30%; top: -10%; width: 40%; height: 70%; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.22), rgba(255,255,255,0)); transform: skewX(-25deg); }
.cat:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(12,29,110,.3); }
.cat .icon { position: relative; width: 56px; height: 56px; stroke-width: 1.3; }
.cat b { position: relative; align-self: stretch; min-height: 48px; display: flex; align-items: center; justify-content: center; padding: 6px; border-radius: var(--r); background: #fff; color: var(--brand); font: 800 12px/15px var(--display); text-transform: uppercase; text-align: center; letter-spacing: .03em; }
.cat span { position: relative; font: 600 11px var(--mono); color: rgba(255,255,255,.8); display: flex; align-items: center; gap: 4px; }
.cat span .icon { width: 14px; height: 14px; }

/* vehicle type cards with store photos */
.vtypes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.vt { position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; background: #fff; border: 2px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.vt:hover { border-color: var(--brand); box-shadow: 0 10px 24px rgba(14,22,51,.1); transform: translateY(-2px); }
.vt .num { position: absolute; top: 10px; left: 12px; z-index: 1; font: 900 26px/1 var(--display); color: transparent; -webkit-text-stroke: 1.2px var(--brand); }
.vt .ph { position: relative; aspect-ratio: 16/11; background: #fff; }
.vt .ph img { position: absolute; left: 10px; right: 10px; top: 20px; bottom: 4px; width: calc(100% - 20px); height: calc(100% - 24px); object-fit: contain; mix-blend-mode: multiply; }
.vt .lbl { padding: 10px 12px 12px; border-top: 1px solid var(--border); background: var(--surface-2); }
.vt .lbl b { display: block; font: 800 13px/17px var(--display); text-transform: uppercase; color: var(--brand-dark); }
.vt .lbl small { display: flex; justify-content: space-between; gap: 6px; margin-top: 3px; font: 500 11px var(--mono); color: var(--text-3); }
.vt.on { border-color: var(--brand); }
.vt.on .lbl { background: var(--brand); border-color: var(--brand); }
.vt.on .lbl b, .vt.on .lbl small { color: #fff; }
.vt.on .num { color: var(--brand); }

/* ---------- Catalog toolbar ---------- */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); margin-bottom: 14px; }
.toolbar .count { font-weight: 600; margin-right: 8px; }
.toolbar .count b { font-family: var(--mono); color: var(--brand); }
.filter-chip { height: 34px; padding: 0 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.filter-chip:hover { color: var(--text); border-color: #c8d0de; }
.filter-chip.on { border-color: var(--brand); color: #fff; background: var(--brand); }
.toolbar select { height: 34px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 0 8px; font-size: 13px; font-weight: 500; }
.view-toggle { display: flex; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.view-toggle button { width: 36px; height: 32px; background: none; border: 0; color: var(--text-3); display: grid; place-items: center; }
.view-toggle button.on { background: var(--brand); color: #fff; }

/* ---------- Product card ---------- */
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }  /* 6 / 4 / 3 / 2 columns: the 12 home products always fill full rows */
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: #c3cde0; box-shadow: 0 12px 28px rgba(14,22,51,.1); }
.card-media { position: relative; aspect-ratio: 4/3; background: linear-gradient(180deg, #F7F9FC, #EDF1F8); display: grid; place-items: center; color: var(--brand); }
.card-media .part-svg { width: 56%; height: 68%; }
.card-tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.card-tools button { width: 30px; height: 30px; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); border-radius: 50%; color: var(--text-3); }
.card-tools button:hover, .card-tools button.on { color: var(--accent); border-color: var(--accent); }
.card-media .brand-tag { position: absolute; top: 10px; left: 10px; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.card-oem { font: 700 15px/20px var(--mono); letter-spacing: .01em; display: flex; justify-content: space-between; gap: 6px; color: var(--text); }
.card-oem:hover { color: var(--brand); }
.card-brand { font: 800 11px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.card-name { font-size: 13px; line-height: 18px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.card-name:hover { color: var(--text); }
.stock { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; }
.stock .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.stock.ok { color: #0D7A45; }
.stock.ok .dot { background: var(--ok); }
.stock.low { color: var(--accent); }
.stock.low .dot { background: var(--accent); animation: pulse 1.6s infinite; }
.stock.other .dot { background: var(--none); }
.stock.none { color: var(--text-3); }
.stock.none .dot { border: 1.5px solid var(--none); }
.stock .eta { color: var(--info); font-weight: 500; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(227,35,28,.5); } 100% { box-shadow: 0 0 0 7px rgba(227,35,28,0); } }
.stock-more { font-size: 11px; color: var(--text-3); padding-left: 15px; margin-top: -4px; }
.price { font: 800 19px/22px var(--display); margin-top: auto; padding-top: 4px; color: var(--text); }
.price small { font: 600 12px var(--font); color: var(--text-2); }
.price .old { display: block; font: 500 12px/14px var(--mono); color: var(--text-3); text-decoration: line-through; }
.card-actions { display: flex; gap: 6px; }
.card-actions .btn { flex: 1; height: 38px; padding: 0 8px; font-size: 13px; }
.qty { display: inline-flex; border: 1px solid var(--border); border-radius: var(--r); height: 38px; background: var(--surface-2); }
.qty button { width: 26px; background: none; border: 0; color: var(--text-2); font-size: 16px; }
.qty button:hover { color: var(--brand); }
.qty input { width: 32px; text-align: center; background: none; border: 0; font: 700 13px var(--mono); outline: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-lg { height: 48px; }
.qty-lg button { width: 40px; font-size: 20px; }
.qty-lg input { width: 48px; font-size: 16px; }

/* list view */
.grid.list { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.grid.list .card { flex-direction: row; align-items: center; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none; }
.grid.list .card:nth-child(even) { background: #FAFBFD; }
.grid.list .card-media { width: 72px; aspect-ratio: 1; flex: none; }
.grid.list .card-media .brand-tag, .grid.list .card-tools { display: none; }
.grid.list .card-body { display: grid; grid-template-columns: 170px 90px 1fr 220px 150px 240px; align-items: center; gap: 16px; padding: 8px 16px; }
.grid.list .card-name { min-height: 0; -webkit-line-clamp: 1; }
.grid.list .stock-more { padding: 0; margin: 0; }
.grid.list .price { margin: 0; padding: 0; text-align: right; }
.grid.list .stockcell { display: flex; flex-direction: column; gap: 2px; }

/* ---------- B2B band ---------- */
.b2b-band { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; padding: 34px; border-radius: var(--r-lg); color: #fff; background: linear-gradient(100deg, var(--brand-dark), var(--brand) 60%, var(--brand-bright)); }
.b2b-band::before { content: ""; position: absolute; inset: 0; background: var(--stripes); pointer-events: none; }
.b2b-band > * { position: relative; }
.b2b-band h2 { margin: 0 0 8px; font: 900 26px/32px var(--display); text-transform: uppercase; }
.b2b-band p { color: rgba(255,255,255,.8); margin: 0 0 20px; }
.b2b-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 0; padding: 0; list-style: none; }
.b2b-list li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.b2b-list .icon { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; }
.b2b-actions { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.b2b-action { display: flex; gap: 16px; align-items: center; padding: 16px; background: #fff; border: 0; border-radius: var(--r-lg); text-align: left; width: 100%; color: var(--text); transition: transform .15s; }
.b2b-action:hover { transform: translateX(4px); }
.b2b-action .ic { width: 46px; height: 46px; display: grid; place-items: center; background: var(--accent); color: #fff; border-radius: 50%; flex: none; }
.b2b-action b { display: block; font: 800 15px var(--display); color: var(--brand-dark); }
.b2b-action span { color: var(--text-2); font-size: 13px; }

/* ---------- Store block ---------- */
.store { display: grid; grid-template-columns: 1fr 1.25fr; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.store-photo { position: relative; min-height: 420px; background: #c9d2e6; }
.store-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 72%; }
.store-photo .tag { position: absolute; left: 16px; bottom: 16px; background: rgba(12,29,110,.9); color: #fff; padding: 8px 12px; border-radius: var(--r); font: 800 12px var(--display); text-transform: uppercase; letter-spacing: .05em; }
.store-info { padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.store-info h2 { margin: 0; font: 900 28px/34px var(--display); text-transform: uppercase; color: var(--brand-dark); }
.store-info h2 span { color: var(--accent); font-style: italic; }
.store-info > p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 23px; }
.store-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.store-facts div { padding: 14px; background: var(--surface-2); border-radius: var(--r); }
.store-facts small { display: block; font: 700 11px var(--display); text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin-bottom: 4px; }
.store-facts a, .store-facts b { display: block; font: 800 16px/24px var(--display); color: var(--text); }
.store-facts a:hover { color: var(--brand); }
.adv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.adv div { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 14px 8px; border: 1px solid var(--border); border-radius: var(--r); font: 800 11px/14px var(--display); text-transform: uppercase; color: var(--brand-dark); }
.adv .icon { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--brand-dim); color: var(--brand); }
.store-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { margin-top: 40px; background: var(--brand-dark); color: rgba(255,255,255,.7); padding: 44px 0 24px; font-size: 13px; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0; background: var(--stripes); opacity: .5; pointer-events: none; }
.footer .container { position: relative; }
.footer-cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer h4 { color: #fff; font: 800 12px var(--display); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: #fff; }
.footer .logo-faw { color: #fff; }
.footer .logo-market { border-color: #fff; }
.footer .f-phone { display: block; color: #fff; font: 800 17px/26px var(--display); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 16px; color: rgba(255,255,255,.5); font-size: 12px; flex-wrap: wrap; }
.pay { display: flex; gap: 6px; flex-wrap: wrap; }
.pay span { padding: 3px 8px; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; font-weight: 700; font-size: 11px; color: rgba(255,255,255,.8); }

/* ---------- Modal ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(12,20,50,.55); backdrop-filter: blur(2px); display: none; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow: auto; }
.modal-wrap.show { display: flex; }
.modal { width: 100%; max-width: 580px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; border-top: 5px solid var(--brand); }
.modal.wide { max-width: 860px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 24px 12px; gap: 16px; }
.modal-head h3 { margin: 0; font: 800 19px/25px var(--display); color: var(--brand-dark); }
.modal-head p { margin: 4px 0 0; color: var(--text-2); font-size: 13px; }
.modal-body { padding: 8px 24px 24px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--border); background: var(--surface-2); align-items: center; }
.modal-foot .note { margin-right: auto; color: var(--text-3); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }
.field label i { color: var(--accent); font-style: normal; }
.input { height: 44px; background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 0 12px; outline: none; width: 100%; }
textarea.input { height: 80px; padding: 10px 12px; resize: vertical; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-dim); }
.input.mono { font-family: var(--mono); font-weight: 600; letter-spacing: .03em; }
.input.err { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.seg-ctl { display: flex; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.seg-ctl label { flex: 1; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text-2); }
.seg-ctl label + label { border-left: 1px solid var(--border); }
.seg-ctl input { position: absolute; opacity: 0; }
.seg-ctl span { display: block; text-align: center; padding: 10px; cursor: pointer; }
.seg-ctl input:checked + span { background: var(--brand); color: #fff; }
.seg-ctl input:focus-visible + span { outline: 2px solid var(--brand-bright); outline-offset: -2px; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 28px; border: 2px dashed #c8d0de; border-radius: var(--r-lg); background: var(--surface-2); color: var(--text-2); cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-dim); }
.drop .icon { width: 34px; height: 34px; color: var(--brand); }
.drop b { color: var(--text); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--border); border-radius: var(--r); }
.success { text-align: center; padding: 32px 24px; }
.success .big { width: 60px; height: 60px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: rgba(19,160,91,.12); color: var(--ok); }
.success h3 { margin: 0 0 6px; color: var(--brand-dark); }
.success p { color: var(--text-2); margin: 0 0 20px; }
.steps { display: flex; margin-bottom: 16px; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.steps div { flex: 1; padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--text-3); display: flex; gap: 8px; align-items: center; }
.steps div + div { border-left: 1px solid var(--border); }
.steps div b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font: 700 12px var(--mono); }
.steps div.on { color: var(--brand); background: var(--brand-dim); }
.steps div.on b { background: var(--brand); color: #fff; }
.steps div.done b { background: var(--ok); color: #fff; }

/* ---------- Tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.tbl th { text-align: left; font: 700 11px var(--display); letter-spacing: .07em; text-transform: uppercase; color: #fff; background: var(--brand); padding: 11px 12px; white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tbody th { background: none; text-transform: none; letter-spacing: 0; font: 600 13px var(--font); color: var(--text); padding: 10px 12px; border-bottom: 1px solid var(--border); }
.tbl tbody tr:nth-child(even) > * { background: #F7F9FC; }
.tbl tbody tr:hover > * { background: var(--brand-dim); }
.tbl .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tbl .code { font: 700 13px var(--mono); }
.tbl tr.pin td { background: rgba(22,50,166,.07) !important; }
.tbl-wrap { position: relative; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); max-width: 100%; }
.pdp > *, .two-col > *, .grid > *, .b2b-band > *, .hero-grid > *, .store > * { min-width: 0; }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; }
.status.found { color: var(--ok); }
.status.alt { color: var(--brand); }
.status.miss { color: var(--text-3); }

/* ---------- Toast ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { min-width: 280px; max-width: 380px; display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--brand-dark); color: #fff; border-radius: var(--r); box-shadow: var(--shadow); animation: tin .18s ease-out; }
.toast > .icon { color: #5BE39A; }
.toast button { margin-left: auto; background: none; border: 0; color: #FF8A84; font-weight: 700; }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }

/* ---------- PDP ---------- */
.crumbs { display: flex; gap: 8px; padding: 16px 0; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.crumbs a:hover { color: var(--brand); }
.pdp { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: 24px; align-items: start; }
.gallery-main { aspect-ratio: 1; background: linear-gradient(180deg, #fff, #EEF2F8); border: 1px solid var(--border); border-radius: var(--r-lg); display: grid; place-items: center; color: var(--brand); position: relative; }
.gallery-main .part-svg { width: 62%; height: 62%; }
.gallery-main .brand-tag { position: absolute; top: 12px; left: 12px; }
.thumbs-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.thumbs-row button { aspect-ratio: 1; background: #fff; border: 1px solid var(--border); border-radius: var(--r); display: grid; place-items: center; color: var(--text-3); }
.thumbs-row button.on { border: 2px solid var(--brand); color: var(--brand); }
.thumbs-row svg { width: 60%; height: 60%; }
.pdp-info .brand-line { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.pdp-oem { display: flex; align-items: center; gap: 10px; font: 700 30px/36px var(--mono); margin: 0 0 6px; letter-spacing: .01em; color: var(--text); }
.copy { width: 34px; height: 34px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); color: var(--text-2); }
.copy:hover { color: var(--brand); border-color: var(--brand); }
.pdp-name { font: 600 19px/27px var(--display); color: var(--text-2); margin: 0 0 20px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.kv div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 10px 12px; }
.kv small { display: block; font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.kv b { font: 700 14px var(--mono); }
.fits-title { font: 700 12px var(--display); text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin-bottom: 8px; }
.fits { display: flex; flex-wrap: wrap; gap: 6px; }
.buybox { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm); overflow: hidden; }
.buybox .price-big { font: 900 34px/40px var(--display); color: var(--text); }
.buybox .price-big small { font: 600 16px var(--font); color: var(--text-2); }
.b2b-price { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--brand-dim); border: 1px solid rgba(22,50,166,.2); border-radius: var(--r); font-size: 13px; gap: 8px; }
.b2b-price b { font-family: var(--mono); color: var(--brand); }
.b2b-price a { color: var(--brand); font-weight: 700; text-decoration: underline; }
.buy-row { display: flex; gap: 8px; }
.buy-row .btn { flex: 1; min-width: 0; padding: 0 12px; }
.delivery { border-top: 1px solid var(--border); padding-top: 14px; display: grid; gap: 10px; font-size: 13px; }
.delivery div { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.delivery b { color: var(--text); }
.delivery .icon { color: var(--brand); margin-top: 1px; }

.tabs-bar { position: sticky; top: 76px; z-index: 20; background: var(--bg); border-bottom: 2px solid var(--border); margin-top: 40px; display: flex; overflow-x: auto; }
.tabs-bar a { padding: 14px 18px; color: var(--text-2); font: 700 13px var(--display); text-transform: uppercase; letter-spacing: .03em; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs-bar a:hover { color: var(--brand); }
.tabs-bar a.on { color: var(--brand); border-bottom-color: var(--accent); }
.tabs-bar a sup { font: 600 10px var(--mono); color: var(--text-3); margin-left: 3px; }
.pdp-sec { padding-top: 32px; scroll-margin-top: 140px; }
.pdp-sec h2 { font: 900 18px var(--display); text-transform: uppercase; color: var(--brand-dark); margin: 0 0 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pdp-sec h2 small { font: 500 12px var(--font); text-transform: none; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.spec td:first-child { color: var(--text-2); width: 45%; }
.spec td:last-child { font: 600 13px var(--mono); }
.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.m-yes { color: var(--ok); font-weight: 700; }
.matrix .icon { display: inline-block; vertical-align: middle; }
.m-no { color: var(--text-3); }
.m-chk { color: var(--accent); font-weight: 700; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--text-3); margin-top: 8px; flex-wrap: wrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulseg 1.6s infinite; }
@keyframes pulseg { 0% { box-shadow: 0 0 0 0 rgba(19,160,91,.5); } 100% { box-shadow: 0 0 0 7px rgba(19,160,91,0); } }
.wh-list { display: grid; gap: 8px; }
.wh-row { display: grid; grid-template-columns: 1.4fr 1.5fr 1fr 1fr auto; gap: 16px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.wh-row.sel { border-left: 4px solid var(--brand); }
.wh-row .nm b { display: block; }
.wh-row .nm small { color: var(--text-3); }
.bar { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ok); }
.bar.low i { background: var(--accent); }
.wh-row .q { font: 700 14px var(--mono); margin-bottom: 6px; }
.wh-row .eta { font-size: 13px; color: var(--text-2); }
.wh-row .eta b { color: var(--text); }

/* numbered strip (PDP catalog sections) */
.numstrip { display: grid; grid-template-columns: repeat(var(--n, 7), 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.numstrip > * { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 72px; padding: 10px 14px; background: none; border: 0; border-right: 1px solid var(--border); text-align: left; color: var(--text-2); font: 700 13px/17px var(--display); text-transform: uppercase; transition: background .15s, color .15s; }
.numstrip > *:last-child { border-right: 0; }
.numstrip .num { position: absolute; top: 6px; left: 12px; font: 900 22px/1 var(--display); color: transparent; -webkit-text-stroke: 1px #A9B5D6; }
.numstrip > *:hover { background: var(--surface-2); color: var(--brand); }
.numstrip > *:hover .num { -webkit-text-stroke-color: var(--brand); }
.numstrip > .on { background: var(--brand); color: #fff; }
.numstrip > .on .num { -webkit-text-stroke-color: rgba(255,255,255,.6); }
.pdp-sections { margin-top: 4px; }

/* tech reference */
.tech-lead { font-size: 15px; line-height: 24px; color: var(--text); max-width: 900px; margin: 0 0 18px; padding-left: 14px; border-left: 4px solid var(--brand); }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tech-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; }
.tech-card h3 { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; font: 800 12px var(--display); letter-spacing: .07em; text-transform: uppercase; color: var(--brand-dark); }
.tech-card h3 .icon { color: var(--accent); }
.tech-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tech-card li { position: relative; padding-left: 16px; font-size: 13px; line-height: 19px; }
.tech-card li::before { content: ""; position: absolute; left: 0; top: 6px; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.tech-card.inst li::before { background: var(--ok); }
.tech-card p { margin: 0 0 10px; font-size: 13px; line-height: 19px; }
.tech-card p b { display: block; font: 700 11px var(--display); letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
.tech-note { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; padding: 14px 18px; background: var(--brand-dim); border: 1px solid rgba(22,50,166,.2); border-radius: var(--r-lg); font-size: 13px; flex-wrap: wrap; color: var(--brand-dark); font-weight: 600; }

/* manager & share */
.manager { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px 20px; background: var(--surface-2); }
.manager-head { display: flex; gap: 12px; align-items: center; }
.avatar { position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; font: 800 15px var(--display); color: #fff; flex: none; }
.avatar::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); border: 2px solid var(--surface-2); }
.manager small { display: block; font: 700 11px var(--display); color: var(--text-3); text-transform: uppercase; letter-spacing: .07em; }
.manager b { font: 800 15px var(--display); }
.manager .online { font-size: 12px; color: var(--ok); font-weight: 600; }
.manager .tel { font: 800 16px var(--display); color: var(--text); }
.manager .tel span { color: var(--text-3); font: 500 12px var(--font); }
.msgr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.msgr .btn { height: 38px; font-size: 13px; }
.share { display: flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--text-3); font: 700 12px var(--display); text-transform: uppercase; letter-spacing: .06em; }
.share a, .share button { width: 36px; height: 36px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 50%; color: var(--brand); }
.share a:hover, .share button:hover { color: #fff; background: var(--brand); border-color: var(--brand); }
.quote-part { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 14px; }
.quote-part svg.part-svg { width: 44px; height: 44px; color: var(--brand); flex: none; }
.quote-part b { font: 700 15px var(--mono); display: block; }
.quote-part span { color: var(--text-2); font-size: 13px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-2); cursor: pointer; }
.check input { accent-color: var(--brand); width: 16px; height: 16px; }

/* price on request — no prices on the site, requests go by phone */
.price-req { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; font: 800 13px/17px var(--display); color: var(--brand); text-transform: uppercase; letter-spacing: .02em; }
.price-req .icon { color: var(--accent); }
.price-req.big { flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; padding: 14px; background: var(--brand-dim); border: 1px solid rgba(22,50,166,.2); border-radius: var(--r); }
.price-req.big b { display: flex; align-items: center; gap: 8px; font: 900 20px/24px var(--display); color: var(--brand-dark); }
.price-req.big span { font: 500 13px/19px var(--font); color: var(--text-2); text-transform: none; letter-spacing: 0; }
.info-call { display: grid; gap: 8px; }
.info-call .btn { font: 800 17px var(--display); }
.info-or { position: relative; margin: 18px 0 14px; text-align: center; font-size: 13px; color: var(--text-3); }
.info-or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--border); }
.info-or span { position: relative; padding: 0 10px; background: var(--surface); }
.quote-part > .icon { width: 36px; height: 36px; color: var(--brand); flex: none; }
.hdr-call { display: none !important; }
@media (max-width: 1199px) { .hdr-call { display: inline-flex !important; } }

/* floating contact dock */
.dock { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; background: var(--brand); border-radius: var(--r-lg) 0 0 var(--r-lg); box-shadow: var(--shadow); overflow: visible; }
.dock a, .dock button { position: relative; width: 50px; height: 50px; display: grid; place-items: center; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.15); color: #fff; }
.dock > :first-child { border-radius: var(--r-lg) 0 0 0; }
.dock > :last-child { border-bottom: 0; border-radius: 0 0 0 var(--r-lg); background: var(--accent); }
.dock a:hover, .dock button:hover { background: var(--brand-bright); }
.dock .tip { position: absolute; right: 58px; top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 6px 10px; background: var(--brand-dark); color: #fff; font-size: 12px; font-weight: 600; border-radius: var(--r); opacity: 0; pointer-events: none; transition: opacity .12s; }
.dock a:hover .tip, .dock button:hover .tip, .dock a:focus-visible .tip, .dock button:focus-visible .tip { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1535px) and (min-width: 900px) {
  main.container, main .container, .footer .container { padding-right: 76px; }
}
@media (max-width: 1599px) {
  .navbar .icon { display: none; }
  .navbar a, .navbar button { padding: 0 13px; }
}
@media (max-width: 1439px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .cart-sum { display: none; }
  .cats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1279px) {
  .phones .ph-ic { display: none; }
  .vtypes { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 38px; line-height: 44px; }
}
@media (max-width: 1199px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .phones { display: none; }
  .pdp { grid-template-columns: 1fr 1fr; }
  .buybox { grid-column: 1 / -1; position: static; }
  .grid.list .card-body { grid-template-columns: 150px 1fr 180px 130px 220px; }
  .grid.list .card-brand { display: none; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .store { grid-template-columns: 1fr; }
  .store-photo { min-height: 340px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .numstrip { grid-template-columns: repeat(4, 1fr); }
  .numstrip > * { border-bottom: 1px solid var(--border); }
}
@media (max-width: 899px) {
  .container { padding: 0 16px; }
  .header .container { height: 64px; gap: 8px; }
  .logo-faw { font-size: 24px; }
  .logo-market { font-size: 13px; }
  .logo-uz { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid.list .card-body { grid-template-columns: 1fr; gap: 4px; }
  .grid.list .price { text-align: left; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-truck { order: -1; max-width: 520px; margin: 0 auto -10px; }
  .hero-truck::after { display: none; }
  .hero h1 { font-size: 30px; line-height: 36px; }
  .wh-btn .lbl small, .lbl-txt, .hide-md { display: none; }
  .b2b-band { grid-template-columns: 1fr; padding: 22px; }
  .two-col, .pdp { grid-template-columns: 1fr; }
  .wh-row { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .topbar-left { display: none; }
  .tech-grid { grid-template-columns: 1fr; }
  .adv { grid-template-columns: repeat(2, 1fr); }
  .tabs-bar { top: 64px; }
  .buybox { top: 72px; }
  .dock { top: auto; bottom: 84px; transform: none; }
  .dock a, .dock button { width: 44px; height: 44px; }
  .dock .tip { display: none; }
}
@media (max-width: 599px) {
  .cats { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .cat { min-width: 140px; min-height: 160px; scroll-snap-align: start; }
  .vtypes { grid-template-columns: 1fr 1fr; }
  .search { padding: 6px; }
  .search-tabs { gap: 2px; }
  .search-tab { flex: 1; padding: 8px 4px; font-size: 12px; line-height: 15px; justify-content: center; text-align: center; }
  .search-tab .icon { display: none; }
  .search-input { font-size: 15px; height: 52px; padding-left: 42px; }
  .search-row > .icon { left: 14px; top: 16px; }
  .search-go { height: 44px; padding: 0 16px; }
  .search-go span { display: none; }
  .brandcat { grid-template-columns: 1fr; }
  .brandcat select { border-right: 0; border-bottom: 1px solid var(--border); height: 48px; }
  .vin-count { display: none; }
  .ac-item { grid-template-columns: 70px 1fr auto; }
  .ac-item .pr { display: none; }
  .card-body { padding: 10px; }
  .card-oem { font-size: 13px; }
  .price { font-size: 16px; }
  .card-actions { flex-direction: column; }
  .card-actions .qty { width: 100%; justify-content: space-between; }
  .b2b-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .header .logo-uz { display: none; }
  .header .logo-faw { font-size: 22px; }
  .header .logo-market { font-size: 11px; padding: 4px 6px; margin-left: 5px; }
  .wh-btn .lbl, .wh-btn > .icon-sm { display: none; }
  .b2b-login span { display: none; }
  .b2b-login { padding: 0 10px; }
  .icon-btn { padding: 0 6px; }
  .wh-btn { max-width: 100%; padding: 0 10px; }
  .wh-btn .lbl { min-width: 0; overflow: hidden; }
  #whLabel { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .trust { grid-template-columns: 1fr; }
  .hero-phones { flex-direction: column; }
  .hero-phones a { justify-content: center; white-space: nowrap; }
  .pdp-oem { font-size: 22px; }
  .kv { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .toasts { left: 16px; right: 16px; }
  .toast { min-width: 0; }
  .store-info { padding: 20px; }
  .store-facts { grid-template-columns: 1fr; }
  .store-info h2 { font-size: 22px; line-height: 28px; }
  .numstrip { grid-template-columns: 1fr 1fr; }
  .dock > :nth-child(n+4) { display: none; }
  .dock > :nth-child(3) { border-radius: 0 0 0 var(--r-lg); }
}

/* ===== Catalog by model (catalog.html), search results (search.html), inline request block ===== */
.catalog-page { padding-bottom: 24px; }
.cat-head { margin: 4px 0 20px; }
.cat-head h1 { margin: 0 0 8px; font: 900 30px/36px var(--display); text-transform: uppercase; color: var(--brand-dark); }
.cat-head h1 .mono { font-family: var(--mono); text-transform: none; color: var(--brand); }
.cat-head p { margin: 0; max-width: 760px; color: var(--text-2); font-size: 15px; line-height: 23px; }
.cat-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.model-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.model-card { display: flex; flex-direction: column; padding: 0; text-align: left; background: #fff; border: 2px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.model-card:hover { border-color: var(--brand); box-shadow: 0 10px 24px rgba(14,22,51,.1); transform: translateY(-2px); }
.model-card .ph { position: relative; aspect-ratio: 16/10; background: #fff; }
.model-card .ph img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; mix-blend-mode: multiply; }
.model-card .lbl { display: flex; flex-direction: column; gap: 2px; flex: 1; padding: 12px 14px 14px; border-top: 1px solid var(--border); background: var(--surface-2); }
.model-card .lbl b { font: 900 17px/22px var(--display); text-transform: uppercase; color: var(--brand-dark); margin-bottom: 4px; }
.model-card .lbl small { font: 500 12px var(--mono); color: var(--text-3); }
.model-card .go { display: flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 10px; font: 800 13px var(--display); color: var(--brand); text-transform: uppercase; }
.model-card.vin-card { align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; background: linear-gradient(160deg, var(--brand), var(--brand-dark)); border-color: var(--brand); color: #fff; }
.model-card.vin-card .icon { width: 44px; height: 44px; stroke-width: 1.4; }
.model-card.vin-card b { font: 900 17px/22px var(--display); text-transform: uppercase; }
.model-card.vin-card span { font-size: 13px; color: rgba(255,255,255,.8); }

.model-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.model-head .kv { grid-template-columns: repeat(4, 1fr); margin: 16px 0; }
.model-photo { background: linear-gradient(180deg, #fff, var(--surface-2)); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; }
.model-photo img { display: block; width: 100%; max-height: 300px; object-fit: contain; mix-blend-mode: multiply; }

.model-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 20px; }
.model-chips .chip { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.model-chips .chip:hover { border-color: var(--brand); color: var(--brand); }
.model-chips > b { font: 700 12px var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-right: 4px; }
.home-models { margin: 14px 0 0; }

.group-sec { margin-bottom: 22px; }
.group-sec h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 900 16px var(--display); text-transform: uppercase; color: var(--brand-dark); }
.group-sec h2 .icon { color: var(--accent); }
.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.group-tile { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px 12px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); transition: border-color .15s, box-shadow .15s; }
.group-tile:hover { border-color: var(--brand); box-shadow: 0 6px 16px rgba(14,22,51,.08); }
.group-tile .part-svg { grid-row: 1 / 3; width: 52px; height: 52px; color: var(--brand); }
.group-tile b { align-self: end; min-width: 0; font: 700 14px/18px var(--font); color: var(--text); hyphens: auto; overflow-wrap: anywhere; }
.group-tile small { align-self: start; margin-top: 2px; font: 600 12px var(--mono); color: var(--ok); }
.group-tile.empty small { color: var(--text-3); font-family: var(--font); font-weight: 500; }
.group-tile.empty .part-svg { color: #A9B5D6; }
.group-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.cat-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 20px; text-align: center; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--r-lg); color: var(--text-2); }
.cat-empty .icon { width: 32px; height: 32px; color: var(--brand); }
.cat-empty b { font: 800 16px var(--display); color: var(--text); }
.cat-empty span { max-width: 520px; }

.req-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 24px; background: var(--brand-dim); border: 1px solid rgba(22,50,166,.2); border-left: 6px solid var(--accent); border-radius: var(--r-lg); }
.req-text h3 { margin: 0 0 6px; font: 900 20px/26px var(--display); text-transform: uppercase; color: var(--brand-dark); }
.req-text p { margin: 0 0 14px; color: var(--text-2); line-height: 22px; }
.req-text .info-call { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.req-form { display: grid; gap: 12px; }
.req-form .field label { display: flex; flex-direction: column; gap: 6px; }
.req-form textarea { height: 76px; padding: 10px 12px; resize: vertical; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text); font-size: 14px; }
.req-form .input.mono { text-transform: none; letter-spacing: .03em; color: var(--text); font-size: 15px; }
.req-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.req-actions .btn-primary { flex: 1; }
.req-ok { grid-column: 2; padding: 12px; }

/* search modes: on the blue search panel (home hero and search.html) */
.mode-seg { position: relative; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; }
.mode-seg label { position: relative; }
.mode-seg input { position: absolute; opacity: 0; }
.mode-seg span { display: block; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); color: rgba(255,255,255,.85); font-size: 13px; font-weight: 600; cursor: pointer; }
.mode-seg span:hover { background: rgba(255,255,255,.12); }
.mode-seg input:checked + span { background: #fff; color: var(--brand); border-color: #fff; }
.mode-seg input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.sr-form { margin: 0 0 8px; padding: 10px; }
.sr-tbl td small { display: block; color: var(--text-3); font-size: 12px; }
.sr-tbl .code a, .sr-name { text-decoration: underline; text-decoration-color: rgba(22,50,166,.3); }
.sr-tbl .code a:hover, .sr-name:hover { color: var(--brand); }
.sr-empty { display: flex; gap: 14px; align-items: flex-start; margin-top: 20px; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); }
.sr-empty .icon { flex: none; color: var(--accent); }
.sr-empty p { margin: 4px 0 0; color: var(--text-2); }

/* product page: fit and numbers as text (also read by search engines) */
.seo-text { margin-top: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); font-size: 14px; line-height: 22px; color: var(--text-2); }
.seo-text p { margin: 0 0 4px; }
.seo-text p:last-child { margin: 0; }
.seo-text b { color: var(--text); }
.seo-text a, .lnk { color: var(--brand); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(22,50,166,.3); }

@media (max-width: 1199px) { .model-grid { grid-template-columns: repeat(3, 1fr); } .model-head .kv { grid-template-columns: 1fr 1fr; } }
@media (max-width: 899px) {
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .model-head { grid-template-columns: 1fr; }
  .model-photo { order: -1; }
  .model-head .kv { grid-template-columns: 1fr 1fr; }
  .req-block { grid-template-columns: 1fr; padding: 18px; }
  .req-ok { grid-column: 1; }
}
@media (max-width: 599px) {
  .cat-head h1 { font-size: 22px; line-height: 28px; }
  .cat-head p { font-size: 14px; line-height: 21px; }
  .model-grid { gap: 10px; }
  .model-card .lbl { padding: 10px; }
  .model-card .lbl b { font-size: 14px; line-height: 18px; }
  .group-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .group-tile { grid-template-columns: 40px 1fr; padding: 10px; column-gap: 8px; }
  .group-tile .part-svg { width: 40px; height: 40px; }
  .group-tile b { font-size: 13px; line-height: 17px; }
  .group-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .group-tabs::-webkit-scrollbar { display: none; }
  .group-tabs > * { flex: none; }
  .req-text .info-call { grid-template-columns: 1fr; }
  .req-text h3 { font-size: 18px; line-height: 23px; }
  .mode-seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .mode-seg::-webkit-scrollbar { display: none; }
  .mode-seg label { flex: none; }
  .mode-seg span { min-height: 36px; display: flex; align-items: center; }
  .model-chips .chip { min-height: 40px; }
}

/* phones: group tiles stack the icon above the name; search results become cards instead of a sideways-scrolling table */
@media (max-width: 599px) {
  .group-tile { grid-template-columns: 1fr; grid-template-rows: auto; padding: 10px 12px; }
  .group-tile .part-svg { grid-row: auto; width: 34px; height: 34px; margin-bottom: 6px; }
  .group-tile b { align-self: start; hyphens: manual; overflow-wrap: normal; }
  .sr-tbl thead { display: none; }
  .sr-tbl, .sr-tbl tbody, .sr-tbl td { display: block; }
  .sr-tbl tr { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 10px; padding: 12px; border-bottom: 1px solid var(--border); }
  .sr-tbl tbody tr:nth-child(even) { background: #F7F9FC; }
  .sr-tbl td { padding: 0; border: 0; background: none !important; }
  .sr-tbl td:nth-child(n+3) { grid-column: 1 / -1; }
  .sr-tbl td:last-child { text-align: left !important; }
  .sr-tbl td:last-child .btn { width: 100%; height: 44px !important; }
}

/* Real product photos (set in the admin panel) in place of the line-art placeholder */
.part-photo { object-fit: contain; background: #fff; }
.card-media .part-photo { width: 100%; height: 100%; padding: 8px; }
.gallery-main .part-photo { width: 100%; height: 100%; padding: 16px; }
.quote-part .part-photo { width: 56px; height: 56px; border-radius: var(--r); border: 1px solid var(--border); }
.pdp-desc { margin: 20px 0 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: var(--r); font-size: 14px; line-height: 22px; color: var(--text-2); }
.pdp-desc b { display: block; margin-bottom: 4px; font: 800 12px var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--brand-dark); }

/* MoySklad applicability text under the "fits" chips on the product page */
.fit-note { margin: 8px 0 0; font-size: 13px; line-height: 19px; color: var(--text-2); }
.fit-note b { color: var(--text); }

/* Category bar: always fits the width at any zoom, no sideways scrolling.
   Items share the full width; text shrinks a little on narrower screens and long labels wrap to two lines. */
.navbar .container { overflow: visible; height: auto; min-height: 48px; }
.navbar a, .navbar button { flex: 1 1 auto; justify-content: center; text-align: center; white-space: normal; overflow-wrap: normal; line-height: 1.2;
  padding: 6px clamp(6px, 1vw, 16px); font-size: clamp(10.5px, 0.55vw + 5px, 13px); letter-spacing: .02em; }
.navbar .nav-all { margin-right: 0; }

/* Part numbers are hidden while browsing: the product name is the heading, the store code identifies the part,
   and "Your number" appears only when the visitor came from a search with the full number. */
.pdp-h1 { margin: 0 0 12px; font: 800 26px/32px var(--display); color: var(--brand-dark); }
.pdp-num { display: flex; align-items: center; gap: 10px; margin: -4px 0 18px; font-size: 14px; color: var(--text-2); }
.pdp-num b { font-size: 18px; color: var(--text); }
.card-oem { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--text-3); min-height: 16px; }
.an-hidden { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; background: var(--brand-dim); border: 1px solid rgba(22,50,166,.2); border-radius: var(--r-lg); font-size: 14px; line-height: 21px; color: var(--text-2); }
.an-hidden > .icon { flex: none; color: var(--brand); }
.an-hidden span { flex: 1; min-width: 220px; }
@media (max-width: 599px) { .pdp-h1 { font-size: 21px; line-height: 27px; } .an-hidden .btn { width: 100%; } }
