@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cyrillic-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+20C1-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cyrillic-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+20C1-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/cyrillic-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+20C1-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --text: #212121;
  --muted: #777;
  --line: #e4e4e4;
  --blue: #039be5;
  --blue-dark: #0288d1;
  --red: #e10600;
  --bg: #fff;
  --bar: #f0f0f0;
  --soft: #f7f7f7;
  --max: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  color: var(--text);
  background: var(--bg);
  font-family: "Golos Text", Arial, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.45;
}
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--blue); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
h1, h2 { font-weight: 700; line-height: 1.25; }
h1 { font-size: 26px; margin: 0 0 16px; }
h2 { font-size: 20px; margin: 0 0 12px; }

.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
main { min-height: 50vh; padding-bottom: 48px; }

.site-header {
  background: #fff;
  border-top: 4px solid var(--red);
  border-bottom: 1px solid var(--line);
}
.header-top {
  min-height: 76px;
  display: grid;
  grid-template-columns: 210px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 12px 0;
}
.logo { display: block; line-height: 0; }
.logo img { display: block; width: 190px; height: auto; }
.header-pill {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-pill a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  border-radius: 4px; font-size: 14px; color: #444;
}
.header-pill a:hover { background: var(--soft); color: var(--text); }
.phone-box {
  justify-self: end;
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 16px;
  align-items: center;
  text-align: right;
}
.phone { font-size: 20px; font-weight: 700; color: #111; line-height: 1.2; }
.hours { grid-column: 1; font-size: 12px; color: var(--muted); }
.callback {
  grid-column: 2; grid-row: 1 / span 2;
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--red); border-radius: 4px; color: var(--red); font-size: 13px; font-weight: 700;
}
.callback:hover { background: var(--red); color: #fff; }

.nav-bar { background: var(--bar); border-bottom: 1px solid #e3e3e3; position: sticky; top: 0; z-index: 35; }
.nav-bar.is-stuck { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12); }
.nav-row { min-height: 58px; display: flex; align-items: center; gap: 14px; }
.catalog-wrap { position: relative; }
.catalog-btn, .nav-link, .search, .btn, .input, .mega, .account-drop, .form-card, .buy-box, .category-board, .card {
  border: 1px solid #ddd;
}
.catalog-btn, .nav-link {
  background: #fff;
  height: 40px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: #333;
  cursor: pointer;
  white-space: nowrap;
}
.burger, .burger::before, .burger::after {
  display: block;
  width: 14px;
  height: 2px;
  background: #333;
  position: relative;
}
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -5px; }
.burger::after { top: 5px; }
.search { flex: 1; display: flex; background: #fff; border-radius: 3px; height: 40px; position: relative; }
.search-field { position: relative; flex: 1; min-width: 0; display: flex; }
.search input { flex: 1; width: 100%; border: 0; padding: 0 12px; outline: none; background: transparent; }
.search button { width: 42px; border: 0; background: #fff; color: #555; cursor: pointer; }
.search-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: 360px;
  overflow: auto;
}
.search-suggest[hidden] { display: none; }
.search-suggest-label { margin: 0; padding: 8px 12px 2px; color: var(--muted); font-size: 12px; }
.search-suggest a, .search-suggest button {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.search-suggest a:hover, .search-suggest button:hover,
.search-suggest a:focus, .search-suggest button:focus { background: var(--soft); outline: none; }
.search-suggest small { display: block; color: var(--muted); }
.search-suggest a.suggest-product { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.suggest-thumb { width: 40px; height: 40px; object-fit: contain; }
.suggest-text { min-width: 0; }
.suggest-offer { text-align: right; white-space: nowrap; }
.suggest-offer strong { display: block; }
.badge {
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.badge[hidden] { display: none; }
.account-wrap { position: relative; }
.account-drop, .mega {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  background: #fff;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.account-drop { right: 0; width: 240px; padding: 14px; }
.account-wrap:hover .account-drop, .account-wrap:focus-within .account-drop { display: grid; gap: 8px; }
.mega {
  left: 0;
  width: min(760px, calc(100vw - 24px));
  padding: 12px;
  max-height: calc(100vh - var(--nav-height, 58px) - 12px);
  overflow: hidden;
}
.catalog-wrap.open .mega, .catalog-wrap:hover .mega { display: block; }
.account-drop::before, .mega::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 10px;
}
.menu-search {
  width: 100%;
  height: 38px;
  margin: 0 0 10px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}
.mega-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  min-height: 280px;
  max-height: calc(100vh - var(--nav-height, 58px) - 90px);
}
.mega-roots, .mega-subs, .menu-results { overflow: auto; max-height: inherit; }
.mega-subs { border-left: 1px solid var(--line); padding-left: 8px; }
.mega-root {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.mega-root:hover, .mega-root.is-active { background: var(--soft); }
.mega-root.is-active { box-shadow: inset 3px 0 var(--blue); }
.mega-chevron { margin-left: auto; color: #888; font-size: 18px; line-height: 1; }
.mega-hint, .menu-empty { margin: 8px 10px; color: var(--muted); }
.mega-sub a, .menu-results a {
  display: block;
  padding: 8px 10px;
  border-radius: 4px;
  color: #333;
  font-size: 14px;
}
.mega-sub a:hover, .menu-results a:hover { background: var(--soft); color: inherit; }
.mega-all { font-weight: 700; color: var(--blue); }
.menu-results a { display: grid; gap: 2px; }
.menu-results small { color: var(--muted); font-size: 12px; }
.mega.is-searching .mega-layout, .mobile-catalog.is-searching [data-menu-layout] { display: none; }

.messages { margin-top: 14px; display: grid; gap: 8px; }
.messages:not(:has(.msg)) { margin: 0; height: 0; }
.toast-stack {
  position: fixed; right: 16px; bottom: 16px; z-index: 70;
  display: grid; gap: 8px; width: min(360px, calc(100vw - 32px));
}
.toast {
  position: static; width: auto;
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 12px 12px 14px; background: #fff;
  border: 1px solid var(--line); border-left: 4px solid #2e7d32; border-radius: 6px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  animation: toast-in 0.25s ease;
}
.toast.is-error { border-left-color: #c62828; }
.toast p { margin: 0; }
.toast-close {
  border: 0; background: none; color: #666; font-size: 20px; line-height: 1;
  cursor: pointer; padding: 0;
}
.toast.is-out { animation: toast-out 0.2s ease forwards; }
@keyframes toast-in {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes toast-out {
  to { transform: translateY(12px); opacity: 0; }
}
.msg { padding: 10px 12px; border-radius: 4px; background: #e3f2fd; }
.msg-success { background: #e8f5e9; }
.msg-error { background: #ffebee; }
.msg-warning { background: #fff8e1; }

.notice {
  margin: 16px 0;
  color: #b71c1c;
  font-size: 13px;
}
.promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 24px;
  align-items: center;
  padding: 20px 0;
}
.promo h1 { font-size: 28px; margin: 0 0 8px; }
.promo-brand p { margin: 0 0 6px; color: #555; }
.promo-contacts { font-weight: 700; color: var(--text) !important; }
.promo-contacts a { white-space: nowrap; }
.shelf-head h2 { font-size: 22px; margin: 0; }
.promo-benefits {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.promo-benefits li { border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
.promo-benefits li:first-child { border-color: var(--red); background: #fff; }
.promo-benefits li:first-child strong { color: var(--red); }
.promo-benefits li > a, .promo-benefits li:first-child {
  display: grid; gap: 4px; padding: 14px 16px; min-height: 100%; color: inherit;
}
.promo-benefits li > a:hover { color: inherit; background: #fff; }
.promo-benefits li > a:hover strong { color: var(--blue); }
.promo-benefits strong { font-size: 15px; }
.promo-benefits span { font-size: 13px; color: var(--muted); }
.brand-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.brand-tile {
  flex: 0 0 auto; width: 118px; height: 56px; padding: 8px 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 6px; background: #fff;
  font-weight: 700; font-size: 13px; text-align: center; line-height: 1.2;
}
.brand-tile img { max-width: 100%; max-height: 36px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: filter 0.15s, opacity 0.15s; }
.brand-tile:hover { border-color: #c9c9c9; }
.brand-tile:hover img { filter: none; opacity: 1; }
.brand-all { color: var(--blue); }
.brand-pending { background: var(--soft); border-color: transparent; }
.brand-list a { font-weight: 700; letter-spacing: 0.3px; }
.brand-list a { display: inline-flex; align-items: center; gap: 8px; }
.brand-list a { flex-direction: column; justify-content: center; min-height: 110px; padding: 12px; text-align: center; }
.brand-list img, .brand-logo { max-height: 64px; max-width: 100%; width: auto; object-fit: contain; }
.brand-link img { max-height: 28px; width: auto; object-fit: contain; }
.brand-link { display: inline-flex; align-items: center; gap: 8px; }
.list-title { display: flex; align-items: center; gap: 12px; }
.category-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px 10px;
  padding: 18px 12px;
  border-radius: 6px;
  margin-bottom: 28px;
}
.category-tile {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  font-size: 13px;
  min-height: 108px;
  padding: 6px;
}
.category-icon { font-size: 34px; line-height: 1; }
.category-image { width: 48px; height: 48px; object-fit: contain; }
.category-icon, .category-image { filter: grayscale(1) contrast(1.25); }
.mega-root .category-image, .mobile-cat .category-image { width: 22px; height: 22px; }
.mega-root .category-icon, .mobile-cat .category-icon { font-size: 18px; }
.shelf { margin: 10px 0 28px; }
.shelf-head { display: flex; align-items: baseline; gap: 16px; }
.tab-current { border-bottom: 2px solid #222; padding-bottom: 4px; font-size: 13px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px 12px;
}
.card { border: 0; padding: 8px; background: #fff; }
.card-image {
  display: grid;
  place-items: center;
  height: 180px;
  margin-bottom: 8px;
}
.card-image img { max-height: 170px; width: auto; object-fit: contain; }
.card-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
  font-size: 13px;
  color: #444;
}
.card-meta { display: none; margin: 4px 0 0; font-size: 12px; color: #777; }
.card-price { margin-top: 8px; display: grid; gap: 2px; }
.view-switch { display: inline-flex; gap: 4px; flex: 0 0 auto; }
.view-btn {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--line); border-radius: 4px; background: #fff; color: #999; cursor: pointer;
}
.view-btn svg { fill: currentColor; }
.view-btn:hover { color: #444; }
.view-btn.is-active { color: #222; border-color: #222; }
.product-grid.is-list { grid-template-columns: 1fr; gap: 0; }
.is-list .card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 200px 170px;
  gap: 16px;
  align-items: center;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}
.is-list .card-image { height: 80px; margin: 0; }
.is-list .card-image img { max-height: 76px; }
.is-list .card-name { min-height: 0; font-size: 14px; color: #222; }
.is-list .card-meta { display: block; }
.is-list .card-price { margin: 0; }
.is-list .card-buy { margin: 0; }
.is-list .card > .card-price:last-child { grid-column: 3 / 5; }
.card .stock { font-size: 12px; }
button.stock {
  border: 0; background: none; padding: 0; cursor: pointer; text-align: left;
  text-decoration: underline; text-underline-offset: 2px;
}
button.stock:hover { color: var(--blue); }
.stock-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.stock-modal[hidden] { display: none; }
.stock-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.stock-modal-dialog {
  position: relative; z-index: 1; width: min(760px, 100%); max-height: min(84vh, 760px);
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: 12px; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}
.stock-modal-close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--soft); font-size: 22px; line-height: 1; cursor: pointer; color: #444;
}
.stock-modal-close:hover { background: var(--line); }
.stock-modal-dialog h2 { margin: 0; padding: 18px 56px 0 20px; font-size: 18px; line-height: 1.3; }
.stock-modal-body { overflow: auto; padding: 8px 20px 18px; }
.stock-modal-article { margin: 2px 0 12px; color: var(--muted); font-size: 13px; }
.stock-places { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stock-places li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 16px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
}
.stock-place-main { display: grid; gap: 2px; min-width: 0; }
.stock-place-main span { color: var(--muted); font-size: 13px; }
.stock-place-qty, .stock-place-when { white-space: nowrap; }
.stock-place-qty { font-weight: 700; }
.stock-places .is-here .stock-place-qty,
.stock-places .is-here .stock-place-when { color: #2e7d32; }
.stock-places .is-order .stock-place-qty { color: var(--red); }
.stock-places .is-out { color: #9a9a9a; }
.stock-place-when { font-size: 13px; text-align: right; }
body.stock-modal-open { overflow: hidden; }
.card-buy { display: grid; grid-template-columns: 48px 1fr; gap: 6px; align-items: center; margin-top: 8px; }
.card-buy .qty { position: relative; }
.card-buy .qty span {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.card-buy .qty-input { width: 48px; height: 32px; padding: 0 4px; text-align: center; }
.card-buy .btn { width: 100%; white-space: nowrap; font-size: 12px; padding: 0 4px; }
.stock-table { max-width: 640px; margin: 8px 0 16px; }
.stock-section { margin-top: 24px; }
.stock-section .stock-table { width: 100%; max-width: none; }
.stock-table .on-order { color: var(--red); font-weight: 600; }
.related-table th, .related-table td { vertical-align: middle; white-space: nowrap; }
.related-table td:first-child { white-space: normal; min-width: 220px; }
.related-table .related-order { display: flex; gap: 6px; align-items: center; }
.related-table .qty { position: relative; }
.related-table .qty span {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.related-table .qty-input { width: 56px; height: 32px; padding: 0 4px; text-align: center; }
.related-price { display: inline-flex; align-items: baseline; gap: 8px; }
.offer-table td:first-child { min-width: 0; }
.offer-table tr[hidden] { display: none !important; }
.offer-table td:nth-child(3) { white-space: normal; min-width: 220px; }
.pickup-date { font-weight: 700; color: #222; }
.pickup-date.is-today { color: #1d7a35; }
.pickup-place { display: block; color: #777; font-size: 12px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.card-pickup { font-size: 12px; color: #555; }
.buy-pickup { margin: 4px 0 10px; }
.analogs-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.analog-brands { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 0 0 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border: 1px solid var(--line); border-radius: 16px; background: #fff; font-size: 13px; cursor: pointer;
}
.chip:has(input:checked) { border-color: var(--blue); background: #eef4ff; }
.article-choice { margin: 6px 0 24px; }
.article-choice h2 { margin-bottom: 4px; }
.article-choice-more { margin-top: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cart-head h1 { margin: 0; }
.cart-head-links { display: flex; gap: 16px; }
.cart-lines { display: grid; gap: 12px; }
.cart-line-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.cart-line-name { font-weight: 700; }
.cart-line-main .muted, .cart-line-main .stock { margin: 2px 0 0; }
.cart-line-money { display: grid; justify-items: end; gap: 1px; white-space: nowrap; }
.cart-line-money strong { font-size: 16px; }
.cart-line-foot {
  display: flex; align-items: center; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
}
.cart-line .qty { position: relative; }
.cart-line .qty span {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.cart-line .qty-input { width: 64px; height: 36px; padding: 0 6px; text-align: center; }
.cart-line-sum { margin-left: auto; font-size: 18px; white-space: nowrap; }
.cart-line .cart-actions { display: flex; gap: 14px; }
.cart-line .cart-actions form { margin: 0; }
.cart-line.is-blocked { border-color: #f0c2c2; }
.cart-summary {
  margin-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.cart-summary .total-row { margin: 0; font-size: 20px; }
.cart-summary-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cart-summary .btn { min-width: 180px; text-align: center; }
.account-card { margin-bottom: 14px; }
.account-card h2 { margin: 0; font-size: 20px; }
.account-card h3 { margin: 16px 0 0; font-size: 15px; }
.account-card .linkish { margin-top: 14px; }
.account-type {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  background: #eef8fd; color: var(--blue); font-size: 13px; font-weight: 700; white-space: nowrap;
}
.account-links {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 0 0 22px;
}
.account-links a {
  display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: inherit; text-decoration: none;
}
.account-links a:hover { border-color: var(--blue); }
.account-links span { color: var(--muted); font-size: 13px; }
.account-discounts { list-style: none; margin: 8px 0 0; padding: 0; max-width: 520px; }
.account-discounts li {
  display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line);
}
.account-orders { display: grid; gap: 12px; }
.bulk-lines { min-height: 180px; padding: 8px 10px; font-family: Consolas, monospace; resize: vertical; }
.bulk-table { margin: 10px 0 16px; }
.bulk-table tr.is-error td { background: #fff6f5; }
.bulk-error { color: var(--red); font-weight: 600; }
.oil-form { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; padding: 16px; margin-bottom: 18px; }
.oil-advice { margin: 0 0 12px; padding: 12px 16px; background: #f3fbff; border: 1px solid #cde8f6; border-radius: 4px; }
.oil-advice p { margin: 4px 0; }
.oil-banner {
  display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 0 0 16px; padding: 12px 16px;
  background: #f3fbff; border: 1px solid #cde8f6; border-radius: 4px; color: #333;
}
.oil-banner strong { color: var(--blue); }
.card { position: relative; }
.fav-form { margin: 0; }
.card > .fav-form { position: absolute; top: 6px; right: 6px; z-index: 2; }
.fav-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px; border: 0; background: rgba(255, 255, 255, 0.85);
  border-radius: 50%; color: #999; cursor: pointer; line-height: 1;
}
.fav-btn svg { fill: none; }
.fav-btn:hover { color: var(--red); }
.fav-btn.is-active { color: var(--red); }
.fav-btn.is-active svg { fill: currentColor; }
.fav-btn span { font-size: 14px; }
.product-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-meta-row .fav-btn { border-radius: 4px; padding: 4px 8px; border: 1px solid var(--line); }
.offer-actions { display: flex; align-items: center; gap: 6px; }
.cart-actions { white-space: nowrap; }
.cart-actions form { display: inline; margin-left: 10px; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.part-request-cta { margin: 16px 0; padding: 12px 16px; background: #fff8e6; border: 1px solid #f3dca2; border-radius: 4px; }
.part-request-cta.is-empty { grid-column: 1 / -1; padding: 20px; }
.part-request-cta h2 { margin: 0 0 6px; font-size: 18px; }
.search-hint { color: #555; }
.out-of-stock-help { font-size: 14px; margin: 4px 0 0; }
.small { font-size: 12px; }
.garage-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 12px; }
.garage-list { display: grid; gap: 10px; margin: 12px 0 20px; }
.garage-car {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff;
}
.garage-car h2 { margin: 0; font-size: 17px; }
.garage-car p { margin: 2px 0 0; }
.garage-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.garage-form { margin-top: 12px; }
.warehouse-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.open-badge { font-size: 12px; padding: 2px 8px; border-radius: 10px; background: #f1f1f1; color: #666; }
.open-badge.is-open { background: #e7f6ea; color: #1d7a35; }
.related-loading { display: flex; align-items: center; gap: 10px; }
.related-loading img { width: 28px; height: 28px; animation: vin-spin 0.8s linear infinite; }
.price, .price-lg { font-weight: 700; }
.price-lg { font-size: 28px; }
.price-old { color: #999; text-decoration: line-through; font-size: 13px; font-weight: 400; }

.catalog-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding-top: 18px; }
.sidebar { display: grid; align-content: start; gap: 4px; align-self: start; }
.brand-categories { display: flex; flex-direction: column; align-items: stretch; margin-bottom: 14px; }
.brand-categories h2 { margin: 12px 0 2px; }
.brand-categories h2:first-child { margin-top: 0; }
.brand-categories h2 a,
.brand-categories .side-child { display: block; }
.brand-categories .side-child { padding: 3px 0 3px 12px; line-height: 1.35; }
.brand-categories h2 a.active { color: var(--blue); }
.sidebar h2 { font-size: 16px; margin: 0 0 8px; }
.side-link, .side-child { padding: 6px 0; }
.side-child { color: #555; font-size: 14px; }
.side-link.active, .side-child.active { color: var(--blue); font-weight: 700; }
.crumbs { color: #888; font-size: 13px; }
.crumbs a { color: #666; }
.list-head { margin-bottom: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; }
.filters.side-filters { display: grid; gap: 8px; margin: 16px 0 0; }
.filters.side-filters select { width: 100%; }
.multi-filter { display: grid; gap: 4px; }
.filter-name { margin: 4px 0 0; color: #555; font-size: 13px; }
.filter-options { display: grid; gap: 2px; }
.choice { display: flex; gap: 8px; align-items: center; min-height: 30px; font-size: 14px; cursor: pointer; }
.filter-options.is-collapsed:not(.is-searching) .choice:nth-child(n+7):not(:has(input:checked)) { display: none; }
.filter-options .choice.is-filtered-out { display: none; }
.filter-more { justify-self: start; min-height: 30px; font-size: 13px; }
.filter-search { height: 34px; padding: 0 10px; margin: 2px 0 4px; }
.price-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; align-items: center; }
.price-range .input { height: 36px; padding: 0 8px; min-width: 0; }
.filters select, .input, .form-card input, .form-card textarea, .form-card select {
  border: 1px solid #d0d0d0;
  border-radius: 3px;
  padding: 8px 10px;
  background: #fff;
}
.check { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.filter-panel { display: grid; gap: 8px; }
.filter-actions { display: flex; gap: 12px; align-items: center; }
.js-filters .filter-actions .btn { display: none; }
.filter-reset { font-size: 14px; }
.filter-toggle {
  display: none; align-items: center; gap: 6px; height: 38px; padding: 0 12px;
  border: 1px solid #d0d0d0; border-radius: 3px; background: #fff; color: inherit; font: inherit; cursor: pointer;
}
.filter-toggle[aria-expanded="true"] { border-color: var(--blue); color: var(--blue); }
.filter-count { position: static; }
.to-top {
  position: fixed; right: 16px; bottom: 24px; z-index: 45;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: #333; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.to-top[hidden] { display: none; }
.to-top:hover { color: var(--blue); }

.product-layout { display: grid; grid-template-columns: 420px 1fr; gap: 28px; align-items: start; }
.product-gallery {
  min-height: 360px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
}
.product-gallery img { max-height: 420px; object-fit: contain; }
.code { color: #999; margin-top: -8px; }
.buy-box { border-radius: 6px; padding: 16px; display: grid; gap: 8px; max-width: 460px; }
.buy-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.qty { display: grid; gap: 4px; font-size: 13px; }
.qty-input { width: 76px; }
.stock { color: #2e7d32; margin: 0; }
.stock.out { color: #c62828; }
.discount-note, .client-type { margin: 0; font-size: 13px; }
.client-type { color: var(--blue); font-weight: 700; }
.fold { border-top: 1px solid var(--line); padding: 10px 0; }
.fold summary { cursor: pointer; font-weight: 700; }
.specs { margin: 8px 0 0; max-width: 520px; }
.specs div { display: grid; grid-template-columns: 140px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
.stock-section .muted { margin: 0 0 12px; }
.description { max-width: 760px; }

.narrow-page { padding-top: 18px; max-width: 980px; }
.warehouse-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.warehouse-list li {
  display: grid; gap: 4px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
}
.order-list { display: grid; gap: 14px; }
.order-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 14px;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.order-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.order-card-head a, .order-card-head h1 { font-size: 18px; font-weight: 700; margin: 0; }
.order-card-head .muted { margin: 2px 0 0; }
.order-sum { font-size: 18px; white-space: nowrap; }
.order-cancelled { margin: 14px 0 0; color: var(--red); font-weight: 700; }
.order-track {
  list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 16px 0 6px; padding: 0;
}
.order-track li {
  position: relative; padding-top: 24px; text-align: center;
  font-size: 13px; color: #8a8a8a;
}
.order-track li::before, .order-track li::after {
  content: ""; position: absolute; top: 6px; height: 2px; background: #e6e6e6;
}
.order-track li::before { left: 0; right: 50%; }
.order-track li::after { left: 50%; right: 0; }
.order-track li:first-child::before, .order-track li:last-child::after { content: none; }
.order-track-dot {
  position: absolute; top: 0; left: 50%; width: 14px; height: 14px;
  transform: translateX(-50%); border-radius: 50%; background: #fff;
  border: 3px solid #d0d0d0; z-index: 1;
}
.order-track .is-done, .order-track .is-current { color: #222; }
.order-track .is-current { font-weight: 700; }
.order-track .is-done .order-track-dot,
.order-track .is-current .order-track-dot { border-color: var(--blue); background: var(--blue); }
.order-track .is-current .order-track-dot { box-shadow: 0 0 0 4px rgba(3, 155, 229, 0.16); }
.order-track .is-done::before, .order-track .is-done::after,
.order-track .is-current::before { background: var(--blue); }
.order-track.is-cancelled li { color: #9a9a9a; }
.order-products { list-style: none; margin: 8px 0 0; padding: 0; }
.order-products li {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.order-products a:hover { color: var(--blue); }
.order-products .muted { white-space: nowrap; }
.order-card-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px;
}
.order-card-foot .muted { margin: 0; }
.order-empty { margin: 8px 0 0; }
.grid-table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; }
.grid-table th, .grid-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid-table th { font-size: 13px; color: #666; font-weight: 700; }
.qty-form { display: flex; gap: 6px; align-items: center; }
.total-row { display: flex; justify-content: flex-end; gap: 16px; align-items: baseline; font-size: 18px; margin: 8px 0 16px; }
.checkout-layout, .account-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 24px; padding-top: 18px; }
.summary, .form-card { border: 1px solid var(--line); border-radius: 6px; padding: 16px; background: #fff; }
.auth-wrap { max-width: 460px; padding-top: 24px; }
.auth-card { position: relative; }
.auth-pick {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.auth-card .auth-switch label {
  display: block;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 14px;
}
#auth-password:checked ~ .auth-switch label[for="auth-password"],
#auth-call:checked ~ .auth-switch label[for="auth-call"] {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
#auth-password:focus-visible ~ .auth-switch label[for="auth-password"],
#auth-call:focus-visible ~ .auth-switch label[for="auth-call"] {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.auth-pane,
.auth-pane form { display: grid; gap: 10px; }
#auth-password:checked ~ .auth-pane-call,
#auth-call:checked ~ .auth-pane-password { display: none; }
.call-number { font-size: 22px; font-weight: 700; }
.captcha-row { display: flex; align-items: center; }
.captcha-row img { border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.bot-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-card { display: grid; gap: 10px; }
.form-card label, .account-drop label { display: grid; gap: 4px; font-size: 13px; }
.form-card fieldset.pickup-field { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.form-card fieldset.pickup-field legend { font-size: 13px; padding: 0; }
.form-card div.pickup-choices { display: grid; gap: 8px; }
.form-card .pickup-choices label {
  display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff;
}
.form-card .pickup-choices label:hover { border-color: #b9c3cc; }
.pickup-text { display: grid; gap: 2px; }
.pickup-ready { color: #2e7d32; font-size: 13px; }
.pickup-last { color: var(--muted); font-size: 12px; font-style: normal; }
.form-card .pickup-choices label:has(input:checked) { border-color: var(--blue); background: #f2f9fd; }
.form-card .pickup-choices input[type="radio"] {
  display: inline-block; flex: 0 0 auto; width: 16px; height: 16px; margin: 1px 0 0; padding: 0; border: 0;
  accent-color: var(--blue);
}
.form-card .errorlist, .account-drop .errorlist { color: #c62828; list-style: none; padding: 0; margin: 4px 0 0; }
.form-card ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); }
.btn {
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 4px;
  height: 40px;
  padding: 0 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.btn-ghost:hover { background: #f3fbff; }
.btn-small { height: 32px; }
.linkish { background: none; border: 0; color: var(--blue); cursor: pointer; padding: 0; }
.muted { color: var(--muted); }
.plain-list { padding-left: 18px; }
.catalog-more {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 72px; margin-top: 8px; color: var(--muted);
}
.catalog-more[hidden] { display: none; }
.catalog-more img { width: 36px; height: 36px; animation: vin-spin 0.8s linear infinite; }
.catalog-more.is-error img { display: none; }
.catalog-more p { margin: 0; font-weight: 700; }
.brand-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.vin-bar { background: #fff; border-bottom: 1px solid var(--line); }
.vin-form { display: flex; align-items: center; gap: 10px; min-height: 52px; }
.vin-form label { font-weight: 700; white-space: nowrap; }
.vin-form input { flex: 1; height: 36px; border: 1px solid var(--line); border-radius: 3px; padding: 0 12px; }
.vin-field { position: relative; flex: 1; min-width: 0; }
.vin-field input { width: 100%; }
.vin-recent {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px);
  max-height: 240px; overflow: auto; padding: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.vin-recent[hidden] { display: none; }
.vin-recent-item {
  display: block; width: 100%; margin: 0; padding: 8px 10px; border: 0; border-radius: 3px;
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.vin-recent-item:hover, .vin-recent-item:focus { background: var(--soft); outline: none; }
.vin-page { max-width: 760px; }
.vin-choices { display: grid; gap: 10px; }
.vin-choice, .vin-side, .vin-unit, .vin-part {
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
}
.vin-choice { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.vin-choice:hover { border-color: var(--blue); }
.vin-layout { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.vin-side { padding: 16px; position: sticky; top: calc(var(--nav-height, 58px) + 12px); max-height: calc(100vh - var(--nav-height, 58px) - 24px); overflow: auto; }
.vin-groups a.is-current { color: var(--blue); font-weight: 700; }
.vin-wait {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; min-height: 280px; padding: 24px; text-align: center;
  border: 1px dashed var(--line); border-radius: 4px; background: var(--soft);
}
.vin-wait img { width: 72px; height: 72px; animation: vin-spin 0.8s linear infinite; }
.vin-wait p { margin: 0; color: var(--text); font-size: 16px; font-weight: 700; }
.vin-scheme { min-height: 420px; }
@keyframes vin-spin { to { transform: rotate(360deg); } }
.vin-scheme-empty {
  min-height: 240px; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 24px; border: 1px dashed var(--line); border-radius: 4px; color: var(--muted); background: var(--soft);
}
.diagram-parts { margin-top: 16px; }
.vin-attrs { display: grid; grid-template-columns: 140px 1fr; gap: 4px 10px; margin: 12px 0 0; }
.vin-attrs dt { color: var(--muted); }
.vin-attrs dd { margin: 0; }
.vin-groups { list-style: none; margin: 0; padding-left: 14px; }
.vin-groups > li { margin: 4px 0; }
.vin-groups .has-children > .vin-groups { display: none; }
.vin-groups .has-children.is-open > .vin-groups { display: block; }
.vin-fold {
  display: flex; align-items: center; gap: 6px; width: 100%;
  padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer;
}
.vin-fold::before { content: ""; width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid #555; }
.vin-groups .is-open > .vin-fold::before { border-left-color: transparent; border-top: 6px solid #555; border-right: 4px solid transparent; border-bottom: 0; }
.vin-unit { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px; margin: 0 0 16px; }
.vin-unit img { width: 100%; background: var(--soft); }
.unit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.unit-card {
  display: flex; flex-direction: column; gap: 8px; padding: 10px;
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
}
.unit-card:hover { border-color: var(--blue); color: var(--text); }
.unit-card img { width: 100%; background: var(--soft); }
.diagram { display: block; }
.unit-map { position: relative; display: inline-block; max-width: 100%; background: var(--soft); border: 1px solid var(--line); }
.unit-map img { display: block; width: 100%; height: auto; }
.unit-hotspot {
  position: absolute; padding: 0; border: 1px solid transparent; background: transparent; cursor: pointer;
}
.unit-hotspot:hover, .unit-hotspot.is-active { background: rgba(3, 155, 229, 0.35); border-color: var(--blue); }
.vin-part.is-active { border-color: var(--blue); background: #f3fbff; }
.oem-original { margin: 0 0 22px; padding: 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--soft); }
.oem-original h1 { margin-bottom: 6px; }
.oem-link { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.oem-link:hover strong { color: var(--blue); }
.vin-part { padding: 12px; margin: 0 0 10px; }
.vin-part header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.vin-offer {
  display: grid; grid-template-columns: 1.4fr auto auto auto auto auto; gap: 10px; align-items: center;
  padding: 8px 0; border-top: 1px solid var(--line);
}
.vin-role { color: var(--blue); font-size: 12px; }
.analog-places { border-top: 0; padding: 0; }
.analog-places summary { min-height: 44px; display: flex; align-items: center; color: var(--blue); }
.analog-stock { width: 100%; max-width: none; margin: 0 0 4px; }
.analog-stock th, .analog-stock td { white-space: nowrap; }
.analog-stock td:nth-child(2) { white-space: normal; }
.site-footer { background: #fafafa; border-top: 1px solid var(--line); margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 28px 0; }
.footer-grid a, .footer-grid p { display: block; margin: 0 0 6px; color: #444; }
.footer-bottom { background: #2b2b2b; color: #ddd; text-align: center; padding: 12px 16px; font-size: 13px; }

.mobile-menu, .mobile-catalog { display: none; }
.mobile-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  padding: 4px 2px;
  border: 0;
  background: none;
  color: #333;
  font-size: 11px;
  cursor: pointer;
}
.mobile-item.is-current { color: var(--blue); }
.mobile-item .badge { position: absolute; top: 2px; right: calc(50% - 22px); }
.mobile-catalog {
  position: fixed;
  z-index: 40;
  left: 0;
  right: 0;
  top: 0;
  bottom: 72px;
  overflow: auto;
  background: #fff;
  padding: 16px 16px 24px;
}
.mobile-catalog a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-catalog .mega-root { border-radius: 0; border-bottom: 1px solid var(--line); }
.mobile-catalog .menu-search { margin-top: 4px; }
.mobile-cat { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.mobile-cat-child { padding-left: 14px; color: #555; font-weight: 400; }
.mobile-catalog .menu-results a { display: grid; }
.mobile-catalog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mobile-catalog-head button { border: 0; background: none; color: var(--blue); cursor: pointer; font-size: 14px; }

@media (min-width: 1001px) {
  .sidebar { position: sticky; top: var(--nav-height, 58px); max-height: calc(100vh - var(--nav-height, 58px)); overflow: auto; }
}
@media (max-width: 1000px) {
  .product-grid, .category-board { grid-template-columns: repeat(3, 1fr); }
  .header-top, .promo, .catalog-layout, .product-layout, .checkout-layout, .account-grid, .footer-grid, .brand-list, .vin-layout, .vin-unit, .diagram, .unit-grid {
    grid-template-columns: 1fr;
  }
  .vin-side { position: static; max-height: none; }
  .vin-form, .vin-offer, .vin-part header { flex-direction: column; align-items: stretch; }
  .stock-places li { grid-template-columns: minmax(0, 1fr) auto; }
  .stock-place-when { grid-column: 1 / -1; text-align: left; }
  .vin-offer { display: flex; flex-wrap: wrap; }
  .phone-box, .header-pill { justify-self: start; }
  .header-top { padding-bottom: 16px; }
}
@media (max-width: 900px) {
  .related-table, .related-table tbody, .related-table tr, .related-table td { display: block; width: 100%; }
  .related-table { overflow: visible; }
  .related-table thead { display: none; }
  .related-table tr {
    border: 1px solid var(--line);
    border-radius: 4px;
    margin: 0 0 12px;
    padding: 12px;
    background: #fff;
  }
  .related-table th, .related-table td {
    white-space: normal;
    min-width: 0;
    border: 0;
    padding: 6px 0;
  }
  .related-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .related-table td:first-child {
    display: block;
    padding-top: 0;
    font-weight: 700;
  }
  .related-table td:first-child::before { content: none; }
  .related-table td::before {
    content: attr(data-label);
    color: #666;
    font-size: 13px;
    font-weight: 400;
    flex: 0 0 auto;
  }
  .related-table td:last-child { display: block; padding-top: 8px; }
  .related-table td:last-child::before { display: block; margin-bottom: 6px; }
  .related-table .related-order { display: grid; grid-template-columns: 64px 1fr; }
  .related-table .related-order .btn { width: 100%; }
}
@media (max-width: 700px) {
  .stock-places li { grid-template-columns: 1fr; }
  .stock-place-qty, .stock-place-when { white-space: normal; text-align: left; }
  .order-card-foot, .order-products li, .cart-line-main, .cart-line-foot, .cart-summary { flex-direction: column; align-items: flex-start; }
  .cart-line-money { justify-items: start; }
  .cart-line-sum { margin-left: 0; }
  .cart-summary-actions, .cart-summary-actions form { width: 100%; }
  .cart-summary .btn { width: 100%; }
  .order-products .muted { white-space: normal; }
  .order-track { font-size: 12px; }
  .product-grid, .category-board { grid-template-columns: repeat(2, 1fr); }
  .product-grid.is-list { grid-template-columns: 1fr; }
  .nav-fav-text { display: none; }
  .promo { gap: 10px; padding: 10px 0 12px; }
  .promo h1 { font-size: 20px; margin: 0 0 4px; }
  .promo-brand p { font-size: 13px; margin: 0; }
  .promo-benefits { gap: 6px; }
  .promo-benefits li > a, .promo-benefits li:first-child { padding: 10px; }
  .promo-benefits strong { font-size: 13px; }
  .promo-benefits span { display: none; }
  .brand-row {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: 4px -16px 14px; padding: 0 16px;
  }
  .brand-row::-webkit-scrollbar { display: none; }
  .brand-tile { width: 104px; height: 48px; }
  .btn, .card-buy .qty-input, .card-buy .btn { min-height: 44px; }
  .choice, .filter-more { min-height: 44px; }
  .mobile-catalog a { min-height: 44px; display: flex; align-items: center; }
  .mobile-catalog .menu-results a { display: grid; align-items: start; justify-content: center; }
  .mobile-catalog-head button { min-height: 44px; padding: 0 8px; }
  .footer-grid a { display: flex; align-items: center; min-height: 40px; margin: 0; }
  .is-list .card { grid-template-columns: 72px minmax(0, 1fr); gap: 6px 12px; align-items: start; }
  .is-list .card-image { grid-row: span 3; height: 72px; }
  .is-list .card-image img { max-height: 68px; }
  .is-list .card-price, .is-list .card-buy, .is-list .card > .card-price:last-child { grid-column: 2; }
  .nav-row { flex-wrap: wrap; min-height: 0; padding: 8px 0; }
  .nav-row .catalog-wrap, .nav-row > .nav-link, .nav-row .account-wrap { display: none; }
  .search { order: 0; flex: 1 1 100%; }
  .header-pill, .hours, .callback { display: none; }
  .header-top { grid-template-columns: 1fr auto; min-height: 0; gap: 8px; padding: 10px 0; }
  .logo img { width: 150px; }
  .phone-box { padding: 6px 8px; }
  .phone { font-size: 15px; }
  .buy-form, .filters { flex-direction: column; align-items: stretch; }
  .filters select, .vin-form .btn { width: 100%; }
  .nav-bar { position: sticky; top: 0; z-index: 35; }
  .side-filters.js-filters {
    position: sticky; top: var(--nav-height, 57px); z-index: 25;
    grid-template-columns: auto 1fr; align-items: center;
    margin-top: 8px; padding: 8px 0; background: #fff; border-bottom: 1px solid var(--line);
  }
  .js-filters .filter-toggle { display: inline-flex; }
  .js-filters .filter-panel {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100vh - var(--nav-height, 57px) - 140px); overflow: auto;
    padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 0 0 4px 4px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  }
  .js-filters.is-open .filter-panel { display: grid; }
  .js-filters .filter-actions {
    position: sticky; bottom: -12px; margin: 4px -12px -12px; padding: 10px 12px; background: #fff;
    border-top: 1px solid var(--line);
  }
  .js-filters .filter-actions .btn { display: inline-block; flex: 1; }
  .js-filters .filter-options { max-height: none; }
  .to-top { bottom: 78px; }
  h1 { font-size: 22px; }
  .grid-table:not(.related-table) { display: block; overflow-x: auto; }
  .mega { position: static; width: auto; margin-top: 8px; }
  body { padding-bottom: 62px; }
  .toast-stack { bottom: 78px; }
  .mobile-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    z-index: 50;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-catalog.is-open { display: block; }
  body.mobile-catalog-open { overflow: hidden; }
}
