:root {
  color-scheme: dark;
  --bg: #07080d;
  --bg-soft: #0c1018;
  --surface: #111722;
  --surface-strong: #151b27;
  --surface-muted: #1a202d;
  --text: #f5f7fb;
  --muted: #9da6b6;
  --subtle: #6f7786;
  --brand: #e42630;
  --brand-strong: #ff3b45;
  --brand-soft: rgba(228, 38, 48, .14);
  --good: #17c46b;
  --warn: #f6b13d;
  --blue: #4a9fff;
  --border: rgba(255, 255, 255, .12);
  --border-strong: rgba(255, 255, 255, .2);
  --shadow: 0 24px 70px rgba(0, 0, 0, .36);
  --radius: 8px;
  --header: rgba(7, 8, 13, .82);
  --hero-overlay: linear-gradient(90deg, rgba(7, 8, 13, .98), rgba(7, 8, 13, .72) 48%, rgba(7, 8, 13, .2));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8fa;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-strong: #fbfcfd;
  --surface-muted: #f1f3f6;
  --text: #20242c;
  --muted: #687282;
  --subtle: #818896;
  --brand: #d71924;
  --brand-strong: #ed2630;
  --brand-soft: rgba(215, 25, 36, .11);
  --good: #0f9c55;
  --warn: #b46a08;
  --blue: #176fd6;
  --border: rgba(28, 36, 48, .11);
  --border-strong: rgba(28, 36, 48, .2);
  --shadow: 0 14px 36px rgba(32, 38, 52, .09);
  --header: rgba(255, 255, 255, .93);
  --hero-overlay: linear-gradient(90deg, rgba(244, 245, 248, .98), rgba(244, 245, 248, .74) 52%, rgba(244, 245, 248, .1));
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 8%, rgba(228, 38, 48, .18), transparent 32rem),
    linear-gradient(180deg, var(--bg), var(--bg-soft) 48%, var(--bg));
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  letter-spacing: 0;
}
html[data-theme="light"] body {
  background: linear-gradient(180deg, #fff 0, var(--bg) 56%, #fff 100%);
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 13px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  transform: translateY(-140%);
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(228, 38, 48, .4); outline-offset: 2px; }
body.no-scroll {
  overflow: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}
button {
  cursor: pointer;
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
.page {
  overflow-x: hidden;
}
body.admin-mode .hero,
body.admin-mode .quick-strip,
body.admin-mode .catalog,
body.admin-mode .product-detail-page,
body.admin-mode .site-footer {
  display: none;
}
body.admin-mode .nav-link {
  display: none;
}
body.admin-mode .topbar .search-line,
body.admin-mode .top-actions > :not(#themeToggle),
body.admin-mode .mobile-nav {
  display: none;
}
body.admin-mode .topbar-inner {
  grid-template-columns: minmax(0, 1fr) auto;
}
body.admin-mode {
  padding-bottom: 0;
}
.container {
  width: calc(100% - clamp(24px, 4vw, 72px));
  margin: 0 auto;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: var(--header);
  backdrop-filter: blur(18px);
}
.topbar-inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-width: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 208px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .22), transparent 32%),
    linear-gradient(135deg, #fb3b43, #970a12 58%, #15151a);
  box-shadow: 0 12px 28px rgba(228, 38, 48, .28);
}
.brand-title {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.brand-title strong {
  font-size: 16px;
  line-height: 1;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-title span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}
.search-line {
  position: relative;
  min-width: 0;
}
.search-line > [data-lucide="search"] {
  width: 18px;
  height: 18px;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--subtle);
}
.search-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 0 14px 0 45px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.search-input:focus {
  border-color: rgba(228, 38, 48, .72);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.header-phones {
  display: grid;
  gap: 2px;
  min-width: 132px;
  line-height: 1.15;
}
.header-phones a {
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}
.header-phones a:hover,
.header-phones a:focus-visible { color: var(--brand-strong); outline: none; }
.nav-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  padding: 10px 8px;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--text);
}
.icon-btn,
.text-btn,
.primary-btn,
.ghost-btn {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--text);
  background: var(--surface);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.icon-btn {
  width: 42px;
  padding: 0;
  position: relative;
}
.icon-btn [data-lucide],
.text-btn [data-lucide],
.primary-btn [data-lucide],
.ghost-btn [data-lucide] {
  width: 18px;
  height: 18px;
}
.catalog-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-inline: 13px;
  border-radius: 8px;
  background: var(--brand-strong);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 7px 16px rgba(228, 38, 48, .2);
}
.catalog-menu-toggle:hover,
.catalog-menu-toggle:focus-visible,
.catalog-menu-toggle[aria-expanded="true"] { background: #b80f19; color: #fff; outline: none; }
.catalog-menu-toggle [data-lucide] { width: 14px; height: 14px; transition: transform .18s ease; }
.catalog-menu-toggle[aria-expanded="true"] [data-lucide] { transform: rotate(180deg); }
.catalog-menu {
  position: absolute;
  z-index: 49;
  top: 100%;
  right: 0;
  left: 0;
  padding: 18px 0 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 18px 36px rgba(18, 25, 38, .14);
  backdrop-filter: blur(18px);
}
.catalog-menu[hidden] { display: none; }
.catalog-menu-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.catalog-menu-head h2 { margin-top: 5px; font-size: clamp(22px, 3vw, 32px); }
.catalog-brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 10px; max-height: min(430px, calc(100vh - 160px)); overflow: auto; padding: 2px; }
.catalog-brand-grid-home { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); max-height: none; overflow: visible; }
.catalog-brand-card {
  position: relative;
  min-width: 0;
  min-height: 126px;
  padding: 13px 10px 11px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-align: center;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  overflow: hidden;
}
.catalog-brand-card:hover, .catalog-brand-card:focus-visible { border-color: rgba(228, 38, 48, .58); box-shadow: 0 9px 22px rgba(32, 38, 52, .12); transform: translateY(-2px); outline: 0; }
.catalog-brand-logo { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--brand-strong), #8d0c15); font-size: 16px; font-weight: 900; letter-spacing: .03em; }
.catalog-brand-logo.has-image { overflow: hidden; border: 1px solid var(--border); background: #fff; }
.catalog-brand-logo img { width: 100%; height: 100%; padding: 7px; object-fit: contain; }
.catalog-brand-card small { color: var(--muted); font-size: 11px; font-weight: 500; }
.catalog-brand-card.has-brand-image { padding: 0; align-content: end; isolation: isolate; }
.catalog-brand-card.has-brand-image::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 34% 0 0;
  background: linear-gradient(180deg, transparent, rgba(10, 15, 25, .9));
  pointer-events: none;
}
.catalog-brand-card.has-brand-image .catalog-brand-logo {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}
.catalog-brand-card.has-brand-image .catalog-brand-logo img { width: 100%; height: 100%; padding: 0; object-fit: cover; }
.catalog-brand-card.has-brand-image > span:not(.catalog-brand-logo),
.catalog-brand-card.has-brand-image > small { position: relative; z-index: 2; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .9); }
.catalog-brand-card.has-brand-image > small { margin-bottom: 10px; }
[data-lucide] {
  display: inline-block;
  flex: 0 0 auto;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}
i[data-lucide="search"]::before { content: "⌕"; }
i[data-lucide="moon"]::before { content: "☾"; }
i[data-lucide="sun"]::before { content: "☼"; }
i[data-lucide="shopping-cart"]::before { content: "▣"; }
i[data-lucide="shopping-bag"]::before { content: "▤"; }
i[data-lucide="user"]::before { content: "i"; }
i[data-lucide="credit-card"]::before { content: "▣"; }
i[data-lucide="package-check"]::before { content: "✓"; }
i[data-lucide="upload-cloud"]::before,
i[data-lucide="upload"]::before { content: "↑"; }
i[data-lucide="file-spreadsheet"]::before,
i[data-lucide="file-down"]::before,
i[data-lucide="download"]::before { content: "↓"; }
i[data-lucide="sliders-horizontal"]::before { content: "≡"; }
i[data-lucide="truck"]::before,
i[data-lucide="send"]::before { content: "→"; }
i[data-lucide="badge-check"]::before { content: "✓"; }
i[data-lucide="refresh-cw"]::before { content: "↻"; }
i[data-lucide="rotate-ccw"]::before { content: "↺"; }
i[data-lucide="scale"]::before { content: "⇄"; }
i[data-lucide="heart"]::before { content: "♡"; }
i[data-lucide="star"]::before { content: "★"; }
i[data-lucide="trash-2"]::before,
i[data-lucide="x"]::before { content: "×"; }
i[data-lucide="lock-keyhole"]::before { content: "⌘"; }
i[data-lucide="plus"]::before { content: "+"; }
i[data-lucide="save"]::before { content: "✓"; }
.text-btn,
.ghost-btn,
.primary-btn {
  padding: 0 16px;
  font-weight: 800;
  font-size: 14px;
}
.primary-btn {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-strong), #a90e17);
  box-shadow: 0 15px 35px rgba(228, 38, 48, .25);
}
.ghost-btn {
  background: transparent;
}
.icon-btn:hover,
.text-btn:hover,
.ghost-btn:hover,
.primary-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(228, 38, 48, .5);
}
.icon-btn.active {
  color: #fff;
  border-color: rgba(228, 38, 48, .7);
  background: var(--brand);
  box-shadow: 0 12px 26px rgba(228, 38, 48, .24);
}
.cart-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  position: absolute;
  right: -4px;
  top: -5px;
  color: #fff;
  background: var(--brand);
  font-size: 11px;
  font-weight: 900;
  border: 2px solid var(--bg);
}
.hero {
  padding: 34px 0 28px;
  position: relative;
}
.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(360px, .84fr);
  align-items: stretch;
  min-height: 390px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.hero-copy {
  padding: clamp(28px, 4vw, 54px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  position: relative;
  z-index: 1;
  min-width: 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 7px var(--brand-soft);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  max-width: 620px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: .98;
  overflow-wrap: anywhere;
}
.hero-copy p {
  max-width: 600px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
  overflow-wrap: anywhere;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
}
.stat {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, .03);
}
html[data-theme="light"] .stat {
  background: rgba(255, 255, 255, .72);
}
.stat strong {
  display: block;
  font-size: 21px;
  line-height: 1.1;
}
.stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.hero-media {
  position: relative;
  min-height: 360px;
  isolation: isolate;
  background: #090a0e;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-overlay);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(270px, calc(100% - 36px));
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  padding: 12px;
  color: #fff;
  background: rgba(8, 10, 16, .78);
  backdrop-filter: blur(14px);
}
.hero-badge [data-lucide] {
  color: var(--brand-strong);
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}
.hero-badge strong {
  display: block;
  font-size: 13px;
}
.hero-badge span {
  display: block;
  margin-top: 2px;
  color: #c8ceda;
  font-size: 12px;
}
.quick-strip {
  padding: 0 0 24px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.quick-tile {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 86px;
}
.quick-tile [data-lucide] {
  width: 23px;
  height: 23px;
  color: var(--brand-strong);
  flex: 0 0 auto;
}
.quick-tile strong {
  display: block;
  font-size: 14px;
}
.quick-tile span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 18px;
}
.section-head h2 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
}
.section-head p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}
.catalog-layout {
  display: grid;
  grid-template-columns: clamp(250px, 18vw, 310px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-bottom: 30px;
}
.filters,
.import-panel,
.cart-drawer {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.filters {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  scrollbar-gutter: stable;
}
.filters-head,
.import-head {
  padding: 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.filters-head strong,
.import-head strong {
  font-size: 16px;
}
.filters-title {
  display: grid;
  gap: 3px;
}
.filter-toggle {
  display: none;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--text);
  align-items: center;
  gap: 7px;
  font-weight: 800;
  font-size: 13px;
}
.filter-toggle [data-lucide] { width: 17px; height: 17px; }
.filter-toggle .filter-toggle-chevron { margin-left: 1px; transition: transform .18s ease; }
.filters.filters-open .filter-toggle-chevron { transform: rotate(180deg); }
.filters-kicker {
  color: var(--subtle);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.filter-body {
  padding: 16px;
  display: grid;
  gap: 14px;
}
.finder-body {
  background:
    linear-gradient(180deg, rgba(228, 38, 48, .05), transparent 150px),
    var(--surface);
}
.vehicle-picker {
  display: grid;
  gap: 10px;
}
.catalog-text-filter { margin-top: 2px; }
.filter-search-line { position: relative; display: block; }
.filter-search-line .field { padding-right: 42px; }
.filter-search-line [data-lucide] {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 19px;
  height: 19px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}
.finder-section {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.finder-section + .finder-section {
  padding-top: 3px;
}
.finder-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.section-option {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  text-align: center;
  color: var(--text);
  background: var(--surface-strong);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.section-option span {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
}
.section-option small {
  min-width: 24px;
  border-radius: 999px;
  padding: 3px 6px;
  color: var(--muted);
  background: var(--surface);
  font-size: 11px;
  font-weight: 900;
}
.section-option:hover,
.section-option:focus-visible {
  border-color: rgba(228, 38, 48, .58);
  outline: 0;
}
.section-option.active {
  border-color: rgba(228, 38, 48, .76);
  background: var(--brand);
  box-shadow: 0 12px 26px rgba(228, 38, 48, .22);
}
.section-option.active small {
  color: var(--brand);
  background: #fff;
}
.filter-group {
  display: grid;
  gap: 10px;
}
.filter-group legend,
.filter-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  margin: 0;
  padding: 0;
}
.filter-group fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.check-list {
  display: grid;
  gap: 8px;
  max-height: 154px;
  overflow: auto;
  padding-right: 2px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
  color: var(--muted);
  font-size: 14px;
}
.check-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--brand);
}
.field,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--text);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field,
.select {
  min-height: 42px;
  padding: 0 12px;
}
.textarea {
  min-height: 128px;
  padding: 12px;
  resize: vertical;
  line-height: 1.45;
}
.field:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(228, 38, 48, .72);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.range-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.filter-actions {
  display: grid;
  gap: 8px;
}
.catalog-main {
  min-width: 0;
}
.catalog-main > [hidden] { display: none !important; }
.catalog-landing { padding: 22px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); }
.catalog-landing-head { margin-bottom: 18px; }
.catalog-landing-head h2 { margin: 5px 0 6px; font-size: clamp(22px, 3vw, 30px); }
.catalog-landing-head p { margin: 0; color: var(--muted); font-size: 14px; }
.catalog-toolbar {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.result-count {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 20px 0 4px;
}
.catalog-pagination[hidden] { display: none; }
.catalog-pagination button {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.catalog-pagination button:hover:not(:disabled),
.catalog-pagination button:focus-visible { border-color: var(--brand); color: var(--brand-strong); outline: none; }
.catalog-pagination button.active { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 7px 18px rgba(215, 25, 36, .2); }
.catalog-pagination button:disabled { opacity: .4; cursor: default; }
.catalog-pagination [data-lucide] { width: 16px; height: 16px; }
.pagination-ellipsis { min-width: 24px; color: var(--muted); text-align: center; }
html[data-theme="light"] .product-card:hover { box-shadow: 0 12px 26px rgba(32, 38, 52, .1); }
html[data-theme="light"] .card-tools .icon-btn { background: rgba(255, 255, 255, .9); color: var(--text); border-color: rgba(28, 36, 48, .14); }
html[data-theme="light"] .product-card {
  border-color: rgba(28, 36, 48, .24);
  background: #fff;
  box-shadow: 0 4px 14px rgba(32, 38, 52, .08);
}
html[data-theme="light"] .product-card:hover {
  border-color: rgba(215, 25, 36, .62);
  box-shadow: 0 14px 30px rgba(32, 38, 52, .16);
}
html[data-theme="light"] .product-body { background: #fff; }
html[data-theme="light"] .chip {
  border-color: rgba(28, 36, 48, .18);
  background: #f4f6f8;
  color: #4f5968;
}
.product-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  display: grid;
  grid-template-columns: minmax(190px, 34%) minmax(0, 1fr);
  min-height: 220px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  content-visibility: auto;
  contain-intrinsic-size: 240px;
  cursor: pointer;
}
.product-card:hover,
.product-card:focus-within,
.product-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(228, 38, 48, .42);
  box-shadow: var(--shadow);
  outline: none;
}
.product-card-loading { pointer-events: none; cursor: default; }
.product-card-loading:hover { transform: none; border-color: var(--border); box-shadow: none; }
.product-card-loading .product-media,
.product-card-loading .product-body span,
.product-card-loading .product-body strong,
.product-card-loading .product-body i {
  background: linear-gradient(100deg, var(--bg-soft) 25%, var(--surface-strong) 42%, var(--bg-soft) 60%);
  background-size: 240% 100%;
  animation: catalog-loading 1.15s ease-in-out infinite;
}
.product-card-loading .product-body span,
.product-card-loading .product-body strong,
.product-card-loading .product-body i { display: block; height: 12px; border-radius: 6px; }
.product-card-loading .product-body strong { width: 84%; height: 18px; }
.product-card-loading .product-body i { width: 48%; margin-top: auto; }
@keyframes catalog-loading { to { background-position: -140% 0; } }
.product-media {
  position: relative;
  min-height: 100%;
  background:
    linear-gradient(145deg, rgba(228, 38, 48, .16), transparent 46%),
    linear-gradient(180deg, var(--surface-muted), var(--surface-strong));
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  filter: saturate(1.05) contrast(1.04);
}
.product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .48)),
    radial-gradient(circle at 22% 16%, rgba(255, 255, 255, .18), transparent 18rem);
  pointer-events: none;
}
html[data-theme="light"] .product-media::after {
  background:
    linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, .18)),
    radial-gradient(circle at 22% 16%, rgba(255, 255, 255, .28), transparent 18rem);
}
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  border-radius: 8px;
  padding: 6px 9px;
  color: #fff;
  background: var(--brand);
  font-size: 12px;
  font-weight: 900;
}
.card-tools {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 9px;
  display: flex;
  gap: 7px;
}
.card-tools .icon-btn {
  width: 35px;
  min-height: 35px;
  background: rgba(10, 12, 18, .72);
  color: #fff;
  border-color: rgba(255, 255, 255, .2);
}
.product-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.product-code {
  color: var(--subtle);
  font-size: 12px;
  text-transform: uppercase;
}
.product-title {
  font-size: 16px;
  line-height: 1.32;
}
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.product-meta .chip {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.35;
}
.chip {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 8px;
  color: var(--muted);
  background: var(--surface-strong);
  font-size: 12px;
  line-height: 1.1;
}
.stock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}
.stock::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--subtle);
}
.stock.in {
  color: var(--good);
  font-weight: 800;
}
.stock.in::before {
  background: var(--good);
  box-shadow: 0 0 0 5px rgba(23, 196, 107, .12);
}
.product-detail-page { padding: 28px 0 48px; }
.product-detail-breadcrumbs {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}
.product-detail-breadcrumbs a { color: var(--brand-strong); font-weight: 800; text-decoration: none; }
.product-detail-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
}
.product-detail-media {
  position: relative;
  min-height: 480px;
  background: var(--surface-muted);
}
.product-detail-media img { width: 100%; height: 100%; object-fit: contain; }
.product-detail-info { padding: clamp(22px, 4vw, 42px); display: grid; align-content: center; gap: 18px; }
.product-detail-info h1 { max-width: 780px; font-size: clamp(27px, 4vw, 44px); line-height: 1.08; }
.product-detail-meta,
.product-detail-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.product-detail-rating { display: flex; align-items: center; gap: 9px; width: fit-content; }
.product-detail-rating span { color: #e29400; font-weight: 900; }
.product-detail-rating small { color: var(--muted); }
.product-detail-description { color: var(--muted); line-height: 1.65; }
.product-detail-description p + p { margin-top: 8px; }
.product-detail-buy {
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}
.product-detail-price { display: grid; gap: 3px; }
.product-detail-price s { color: var(--subtle); }
.product-detail-price strong { font-size: clamp(28px, 4vw, 40px); }
.product-detail-buy .primary-btn { min-width: 180px; }
.product-detail-content-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: 18px;
  align-items: start;
}
.product-detail-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(20px, 2.5vw, 32px);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(32, 38, 52, .06);
}
.product-detail-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.product-detail-panel-title [data-lucide] { color: var(--brand-strong); }
.product-detail-panel-title h2 { font-size: clamp(20px, 2vw, 26px); }
.product-spec-list { margin: 0; }
.product-spec-row {
  display: grid;
  grid-template-columns: minmax(120px, .7fr) minmax(0, 1fr);
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.product-spec-row:first-child { padding-top: 0; }
.product-spec-row:last-child { padding-bottom: 0; border-bottom: 0; }
.product-spec-row dt { color: var(--muted); }
.product-spec-row dd { margin: 0; color: var(--text); font-weight: 800; overflow-wrap: anywhere; }
.product-detail-benefits {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.product-detail-benefits article {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
}
.product-detail-benefits [data-lucide] { flex: 0 0 auto; color: var(--brand-strong); }
.product-detail-benefits strong { display: block; margin-bottom: 5px; }
.product-detail-benefits span { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }
.product-detail-loading {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--muted);
}
.product-detail-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: product-detail-spin .8s linear infinite;
}
@keyframes product-detail-spin { to { transform: rotate(360deg); } }
.price-line {
  margin-top: auto;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}
.price {
  display: grid;
  gap: 1px;
}
.price strong {
  font-size: 22px;
  line-height: 1;
}
.price s {
  color: var(--subtle);
  font-size: 13px;
}
.empty-state {
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 26px;
  color: var(--muted);
  background: var(--surface);
}
.empty-state strong {
  display: block;
  color: var(--text);
  font-size: 19px;
  margin-bottom: 8px;
}
.import-section {
  padding: 22px 0 44px;
}
.import-panel {
  overflow: hidden;
}
.import-grid {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}
.import-controls {
  display: grid;
  gap: 12px;
}
.import-mode-card {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  cursor: pointer;
}
.import-mode-card > input { margin-top: 3px; accent-color: var(--brand); }
.import-mode-card span { display: grid; gap: 4px; }
.import-mode-card strong { color: var(--text); font-size: 13px; }
.import-mode-card small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.import-preview-section {
  border-top: 1px solid var(--border);
  padding: 18px;
  background: var(--bg-soft);
}
.import-preview-head {
  margin-bottom: 12px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.import-preview-head > div { display: grid; gap: 3px; }
.import-preview-head span { color: var(--muted); font-size: 12px; }
.import-card-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  flex-wrap: wrap;
}
.import-preview-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
}
.import-preview-card img {
  width: 86px;
  height: 100%;
  min-height: 88px;
  object-fit: cover;
  background: var(--surface-strong);
}
.import-preview-card > div { min-width: 0; padding: 10px; display: grid; align-content: center; gap: 4px; }
.import-preview-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.import-preview-card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11px; }
.import-preview-card b { color: var(--brand-strong); font-size: 13px; }
.import-side {
  display: grid;
  gap: 10px;
}
.format-list {
  display: grid;
  gap: 8px;
}
.format-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-strong);
}
.format-item strong {
  display: block;
  font-size: 13px;
}
.format-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.import-status {
  min-height: 22px;
  color: var(--muted);
  font-size: 13px;
}
.admin-panel {
  padding: 26px 0 44px;
  border-top: 1px solid var(--border);
  background:
    linear-gradient(180deg, var(--bg-soft), var(--bg)),
    radial-gradient(circle at 82% 12%, rgba(228, 38, 48, .13), transparent 30rem);
}
.admin-panel.is-authenticated { padding-top: 10px; }
.admin-panel.is-authenticated > .container > .section-head { display: none; }
.admin-panel.is-authenticated .admin-workspace { margin-top: 0; }
.admin-login {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
}
.admin-login[hidden],
.admin-workspace[hidden] { display: none !important; }
.admin-login strong {
  display: block;
  font-size: 18px;
}
.admin-login p,
.danger-body p {
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}
.admin-login-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 1fr) 110px auto;
  gap: 10px;
}
.admin-workspace {
  margin-top: 18px;
}
.admin-nav {
  position: sticky;
  top: 10px;
  z-index: 30;
  margin-bottom: 18px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 8px 24px rgba(18, 25, 38, .09);
  backdrop-filter: blur(14px);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.admin-nav button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 7px;
  padding: 9px 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: grab;
  user-select: none;
}
.admin-nav button:active { cursor: grabbing; }
.admin-nav button::before { content: "⠿"; margin-right: 5px; color: var(--muted); font-size: 12px; opacity: .62; }
.admin-nav button:hover::before, .admin-nav button.active::before { color: currentColor; opacity: 1; }
.admin-nav button.dragging { opacity: .4; }
.admin-nav.admin-nav-sorting { border-color: rgba(228, 38, 48, .42); }
.admin-nav button:hover,
.admin-nav button:focus-visible,
.admin-nav button.active {
  background: var(--brand-soft);
  color: var(--brand-strong);
  outline: none;
}
.admin-nav button.active { box-shadow: inset 0 0 0 1px rgba(228, 38, 48, .2); }
.admin-session-bar {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.admin-grid { display: block; }
.admin-grid > section { scroll-margin-top: 84px; }
.admin-grid > section[hidden] { display: none; }
.admin-title-with-help {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.help-tooltip {
  position: relative;
  z-index: 2;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  font: 800 12px/1 system-ui, sans-serif;
  cursor: help;
}
.help-tooltip:hover,
.help-tooltip:focus-visible {
  border-color: var(--brand);
  color: var(--brand-strong);
  outline: none;
}
.help-tooltip::after {
  position: absolute;
  z-index: 80;
  left: 50%;
  bottom: calc(100% + 9px);
  width: max-content;
  max-width: min(290px, 75vw);
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--text);
  color: var(--surface-strong);
  box-shadow: var(--shadow);
  content: attr(data-tooltip);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity .16s ease, transform .16s ease;
}
.help-tooltip:hover::after,
.help-tooltip:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}
.admin-panel .import-panel { overflow: visible; }
.admin-product-search { width: min(230px, 35vw); }
.admin-product-layout {
  padding: 18px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
}
.admin-filter-grid {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.admin-filter-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 12px;
  display: grid;
  gap: 12px;
  min-width: 0;
}
.admin-filter-box > strong {
  font-size: 14px;
}
.admin-filter-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 8px;
}
.admin-filter-add .primary-btn {
  min-width: 46px;
  padding: 0;
}
.admin-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 42px;
}
.admin-filter-chip {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 7px 6px 10px;
  background: var(--surface);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  font-size: 12px;
}
.admin-filter-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-filter-chip button {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  display: grid;
  place-items: center;
}
.admin-filter-status {
  padding: 0 18px 16px;
}
.admin-product-list {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  max-height: 620px;
  overflow: auto;
  padding: 8px;
  display: grid;
  align-content: start;
  gap: 8px;
}
.admin-product-item {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  display: grid;
  gap: 4px;
}
.admin-product-item:hover,
.admin-product-item.active {
  border-color: rgba(228, 38, 48, .55);
  background: var(--brand-soft);
}
.admin-product-item strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.25;
}
.admin-product-item strong em {
  display: inline-block;
  margin-left: 7px;
  border-radius: 999px;
  padding: 3px 6px;
  color: var(--muted);
  background: var(--surface-muted);
  font-size: 10px;
  font-style: normal;
  vertical-align: 1px;
}
.admin-product-item.hidden-product { opacity: .66; border-style: dashed; }
.admin-product-item span {
  color: var(--muted);
  font-size: 12px;
}
.admin-form {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.admin-form .product-visibility-control {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface-strong);
  cursor: pointer;
}
.product-visibility-control input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); }
.product-visibility-control span { display: grid; gap: 3px; }
.product-visibility-control strong { color: var(--text); font-size: 13px; }
.product-visibility-control small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.admin-form .check-row {
  display: flex;
}
.admin-form-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.attribute-admin-layout {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
  gap: 18px;
}
.attribute-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}
.attribute-definition-list {
  display: grid;
  align-content: start;
  gap: 9px;
}
.attribute-definition-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
}
.attribute-definition-item span,
.field-hint { color: var(--muted); font-size: 12px; }
.attribute-definition-actions { display: flex; gap: 6px; }
.attribute-definition-actions button { min-width: 38px; padding: 8px; }
.product-attributes-fieldset {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}
.product-attributes-fieldset legend { color: var(--text); font-size: 13px; font-weight: 800; padding: 0 6px; }
.product-attribute-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dynamic-attribute-filters { display: grid; gap: 10px; }
.dynamic-attribute-filters label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 800; }
.team-layout {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 18px;
}
.staff-list,
.audit-list {
  display: grid;
  gap: 9px;
  align-content: start;
}
.audit-list { padding: 18px; }
.audit-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.audit-columns > div { display: grid; align-content: start; gap: 9px; }
.staff-item,
.audit-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 12px;
  display: grid;
  gap: 7px;
}
.staff-item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.staff-item span,
.audit-item span { color: var(--muted); font-size: 12px; }
.staff-item-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.staff-item-actions .select { min-height: 38px; }
.price-source-section { border-top: 1px solid var(--border); padding: 18px; display: grid; gap: 12px; }
.price-source-form { display: grid; grid-template-columns: 1fr 2fr 100px 140px 1fr auto; gap: 8px; }
.price-source-list { display: grid; gap: 8px; }
.price-source-item { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--surface-strong); }
.price-source-item span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }

.import-currency-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.import-currency-picker label { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-strong); cursor: pointer; font-weight: 700; }
.import-currency-picker label:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 16%, transparent); }
.import-exchange-rate { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--brand); border-radius: 9px; background: color-mix(in srgb, var(--brand) 7%, var(--surface)); font-weight: 700; }
.import-exchange-rate small { color: var(--muted); font-weight: 400; }


.category-editor-box { min-width: min(100%, 420px); }
.category-editor-form { display: grid; gap: 9px; margin-top: 10px; }
.category-tree-list { display: grid; gap: 6px; margin-top: 12px; max-height: 430px; overflow: auto; }
.category-tree-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-strong); }
.category-tree-item { cursor: pointer; }
.category-tree-item.is-child { margin-left: 20px; border-left: 3px solid var(--brand); }
.category-tree-item.is-inactive { opacity: .6; }
.category-tree-item span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.attribute-category-select { min-height: 130px; }

.directory-search { width: min(340px, 100%); }
.directory-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 520px; }
.directory-tabs { display: grid; align-content: start; gap: 6px; padding: 16px; border-right: 1px solid var(--border); background: color-mix(in srgb, var(--surface-strong) 70%, transparent); }
.directory-tabs button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; border: 1px solid transparent; border-radius: 9px; text-align: left; background: transparent; color: var(--text); cursor: pointer; }
.directory-tabs button:hover, .directory-tabs button.active { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--surface)); }
.directory-tabs button svg { width: 19px; flex: 0 0 auto; }
.directory-tabs button span { display: grid; gap: 2px; font-weight: 800; }
.directory-tabs button small { color: var(--muted); font-size: 11px; font-weight: 500; }
.directory-content { min-width: 0; padding: 18px; }
.directory-pane { display: grid; gap: 14px; }
.directory-pane[hidden] { display: none; }
.directory-pane-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.directory-pane-head > div { display: grid; gap: 3px; }
.directory-pane-head span { color: var(--muted); font-size: 12px; }
.directory-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-strong); }
.directory-form-brand { grid-template-columns: minmax(0, 1fr) auto; }
.directory-table { display: grid; gap: 7px; max-height: 430px; overflow: auto; }
.directory-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-strong); }
.directory-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.vehicle-make-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.vehicle-make-card { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-strong); }
.vehicle-make-card > div { min-width: 0; }
.vehicle-make-card strong { display: block; overflow: hidden; text-overflow: ellipsis; }
.vehicle-make-card span:not(.vehicle-make-admin-icon) { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.vehicle-make-card .ghost-btn { grid-column: 1 / -1; width: 100%; }
.vehicle-make-admin-icon, .vehicle-make-editor-preview { width: 58px; height: 58px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--brand-strong), #8d0c15); font-size: 15px; font-weight: 900; }
.vehicle-make-admin-icon.has-image, .vehicle-make-editor-preview.has-image { border: 1px solid var(--border); background: #fff; }
.vehicle-make-admin-icon img, .vehicle-make-editor-preview img { width: 100%; height: 100%; padding: 6px; object-fit: contain; }
.vehicle-make-editor { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 14px; border: 1px solid var(--brand); border-radius: 10px; background: color-mix(in srgb, var(--brand) 5%, var(--surface-strong)); }
.vehicle-make-editor[hidden] { display: none; }
.vehicle-make-editor-preview { width: 72px; height: 72px; font-size: 18px; }
.vehicle-make-editor-fields { display: grid; gap: 7px; }
.vehicle-make-editor-fields label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.vehicle-make-editor-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.vehicle-icon-upload { cursor: pointer; }

.product-gallery-fieldset { min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 10px; }
.gallery-add-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
.gallery-upload-btn { cursor: pointer; }
.product-gallery-editor { display: grid; gap: 8px; margin-top: 12px; }
.gallery-editor-item { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 8px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-strong); }
.gallery-editor-preview { position: relative; width: 84px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 7px; background: #fff; }
.gallery-editor-preview img { width: 100%; height: 100%; object-fit: contain; }
.gallery-editor-preview span { position: absolute; left: 4px; bottom: 4px; padding: 2px 5px; border-radius: 4px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 800; }
.gallery-editor-actions { display: flex; gap: 4px; }
.product-detail-thumbnails { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; gap: 7px; overflow-x: auto; padding: 5px; border-radius: 10px; background: color-mix(in srgb, var(--surface) 84%, transparent); backdrop-filter: blur(8px); }
.product-detail-thumbnails button { width: 64px; aspect-ratio: 4 / 3; flex: 0 0 auto; padding: 2px; overflow: hidden; border: 2px solid transparent; border-radius: 7px; background: #fff; cursor: pointer; }
.product-detail-thumbnails button.active { border-color: var(--brand); }
.product-detail-thumbnails img { width: 100%; height: 100%; object-fit: contain; }

.staff-permissions-fieldset { padding: 12px; border: 1px solid var(--border); border-radius: 10px; }
.staff-permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.permission-group-title { grid-column: 1 / -1; margin-top: 4px; padding: 4px 1px; color: var(--text); font-size: 12px; font-weight: 900; }
.permission-group-title:first-child { margin-top: 0; }
.permission-option { display: flex; align-items: flex-start; gap: 8px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.permission-option.section-permission { background: color-mix(in srgb, var(--brand) 3%, var(--surface)); }
.permission-option:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); }
.permission-option span { display: grid; gap: 2px; }
.permission-option small { color: var(--muted); font-size: 10px; }
.staff-item { display: block; }
.staff-item > summary { cursor: pointer; list-style: none; }
.staff-item > summary::-webkit-details-marker { display: none; }
.staff-edit-grid { display: grid; gap: 10px; padding-top: 14px; margin-top: 12px; border-top: 1px solid var(--border); }
.staff-status { padding: 4px 8px; border-radius: 999px; background: var(--border); }
.staff-status.active { background: #dcfce7; color: #166534; }

.audit-toolbar { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(130px, 1fr)); gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.audit-toolbar .check-row { grid-column: 1 / -1; }
.audit-summary { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px 0; }
.audit-summary span { padding: 6px 9px; border-radius: 999px; background: var(--surface-strong); color: var(--muted); font-size: 12px; }
.audit-stream { display: grid; gap: 8px; }
.audit-item-main { display: flex; gap: 10px; align-items: flex-start; }
.audit-action-icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: var(--surface); color: var(--muted); }
.audit-item.is-import { border-left: 4px solid var(--brand); }
.audit-item details { margin-top: 8px; }
.audit-item summary { cursor: pointer; color: var(--brand-strong); font-size: 12px; font-weight: 700; }
.audit-item pre { max-height: 220px; overflow: auto; margin-top: 7px; padding: 9px; border-radius: 7px; background: var(--surface); white-space: pre-wrap; font-size: 11px; }
.audit-errors { margin-top: 12px; padding: 10px; border: 1px solid #fecaca; border-radius: 9px; }
.audit-errors > summary { cursor: pointer; color: #b91c1c; font-weight: 800; }
.audit-footer { display: flex; justify-content: center; padding: 0 18px 18px; }

@media (max-width: 800px) {
  .directory-layout { grid-template-columns: 1fr; }
  .directory-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid var(--border); }
  .directory-tabs button { justify-content: center; }
  .directory-tabs button small { display: none; }
  .directory-form, .gallery-add-row, .audit-toolbar { grid-template-columns: 1fr; }
  .vehicle-make-editor { grid-template-columns: 1fr; }
  .vehicle-make-editor-actions { grid-column: 1; }
  .staff-permission-grid { grid-template-columns: 1fr; }
  .gallery-editor-item { grid-template-columns: 68px minmax(0, 1fr); }
  .gallery-editor-actions { grid-column: 1 / -1; justify-content: flex-end; }
}
.admin-order-controls { display: grid; gap: 7px; }
.danger-panel {
  border-color: rgba(228, 38, 48, .42);
}
.danger-body {
  padding: 18px;
}
.danger-btn {
  color: #fff;
  border-color: rgba(228, 38, 48, .5);
  background: linear-gradient(135deg, rgba(228, 38, 48, .22), rgba(228, 38, 48, .08));
}
.site-footer {
  scroll-margin-top: 86px;
  border-top: 1px solid var(--border);
  padding: 42px 0 48px;
  color: var(--text);
  background: var(--surface-strong);
}
.footer-grid {
  display: grid;
  gap: 24px;
}
.contact-heading { display: grid; gap: 12px; }
.contact-heading h2 { margin: 0; font-size: 24px; }
.contact-heading span { width: min(240px, 48vw); height: 2px; background: var(--brand-strong); }
.contact-details { display: grid; gap: 17px; max-width: 820px; }
.contact-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  font-size: 14px;
  line-height: 1.45;
}
.contact-row strong { font-weight: 700; }
.contact-row a { width: fit-content; color: var(--text); text-decoration: none; }
.contact-row a:hover, .contact-row a:focus-visible { color: var(--brand-strong); text-decoration: underline; outline: none; }
.contact-phone-list { display: grid; gap: 3px; }
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, .48);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.cart-drawer {
  position: fixed;
  top: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 100;
  width: min(430px, calc(100% - 28px));
  display: flex;
  flex-direction: column;
  transform: translateX(calc(100% + 24px));
  transition: transform .22s ease;
  overflow: hidden;
}
.cart-drawer.open {
  transform: translateX(0);
}
.cart-head,
.cart-footer {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cart-footer {
  border-top: 1px solid var(--border);
  border-bottom: 0;
  display: grid;
  gap: 12px;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 900;
}
.cart-list {
  flex: 1;
  overflow: auto;
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 10px;
}
.cart-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto 36px;
  gap: 10px;
  align-items: center;
  background: var(--surface-strong);
}
.cart-thumb {
  width: 62px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-muted);
}
.cart-item strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.25;
}
.cart-item span {
  color: var(--muted);
  font-size: 12px;
}
.drawer-price {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 14px;
}
.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.drawer-actions .ghost-btn,
.drawer-actions .primary-btn {
  min-height: 36px;
  padding: 0 11px;
  font-size: 12px;
}
.utility-drawer {
  width: min(560px, calc(100% - 28px));
}
.account-btn {
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
}
.account-btn:hover { border-color: rgba(228, 38, 48, .55); color: var(--brand-strong); }
.request-btn {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-strong), #a90e17);
  box-shadow: 0 8px 18px rgba(228, 38, 48, .2);
  font-size: 13px;
  font-weight: 900;
}
.request-btn [data-lucide] { width: 17px; height: 17px; }
.account-drawer { width: min(710px, calc(100% - 28px)); }
.request-drawer { width: min(500px, calc(100% - 28px)); }
.request-form { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; }
.request-form .order-section { border: 0; border-radius: 0; flex: 1; background: transparent; padding: 16px; }
.request-form label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 800; }
.request-status { min-height: 22px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.request-status.error { color: var(--brand-strong); }.request-status.success { color: var(--good); }
.account-subtitle { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 400; }
.hidden { display: none !important; }
.auth-form { grid-template-columns: 1fr; }
.auth-form label, .auth-actions, .auth-note { grid-column: 1 / -1; }
.auth-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.auth-note { margin: 0; color: var(--muted); font-size: 13px; }
.auth-note.error { color: var(--brand-strong); }
.mobile-nav { display: none; }
.account-tabs { display: flex; gap: 5px; padding: 10px 14px; overflow: auto; border-bottom: 1px solid var(--border); }
.account-tabs button { border: 0; border-radius: 8px; padding: 9px 11px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 800; white-space: nowrap; }
.account-tabs button.active { background: var(--brand-soft); color: var(--brand-strong); }
.account-content { flex: 1; overflow: auto; padding: 16px; display: grid; align-content: start; gap: 14px; }
.account-hero { padding: 18px; border-radius: 8px; background: linear-gradient(130deg, var(--brand-soft), var(--surface-strong)); border: 1px solid var(--border); }
.account-hero h2 { margin: 4px 0 7px; font-size: 23px; }
.account-hero p, .account-card p { color: var(--muted); line-height: 1.5; margin: 0; }
.account-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.account-stats > div, .account-card { padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-strong); }
.account-stats span, .account-order span, .admin-order span { display: block; color: var(--muted); font-size: 12px; }
.account-stats strong { display: block; margin-top: 4px; font-size: 22px; }
.account-card { display: grid; gap: 10px; }
.account-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.text-btn { border: 0; background: transparent; color: var(--brand-strong); font-weight: 800; }
.account-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.account-links button { border: 1px solid var(--border); border-radius: 8px; padding: 13px; text-align: left; background: var(--surface); color: var(--text); font-weight: 800; }
.account-links [data-lucide] { color: var(--brand-strong); margin-right: 7px; vertical-align: middle; }
.empty-account { text-align: center; place-items: center; padding: 30px; }
.empty-account [data-lucide] { color: var(--brand-strong); width: 34px; height: 34px; }
.account-section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.account-section-title h3 { margin: 0; font-size: 18px; }.account-section-title span { color: var(--muted); font-size: 12px; }
.account-orders { display: grid; gap: 10px; }
.account-order { border: 1px solid var(--border); border-radius: 8px; padding: 13px; background: var(--surface-strong); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 14px; align-items: center; }
.account-order strong { display: block; }.account-order b { text-align: right; }.account-order-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.order-state { width: fit-content; border-radius: 99px; padding: 5px 8px; background: rgba(74,159,255,.13); color: var(--blue); font-size: 11px; font-weight: 900; }
.order-state.completed { background: rgba(23,196,107,.12); color: var(--good); }.order-state.cancelled { background: var(--brand-soft); color: var(--brand-strong); }.order-state.ready { background: rgba(246,177,61,.13); color: var(--warn); }
.account-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.account-form label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 800; }.account-form label:nth-of-type(5), .account-form button { grid-column: 1 / -1; }
.admin-orders { padding: 14px 18px 18px; display: grid; gap: 9px; }
.admin-order { border: 1px solid var(--border); border-radius: 8px; background: var(--surface-strong); overflow: hidden; }
.admin-order strong { display: block; margin-bottom: 3px; }
.admin-order-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 16px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}
.admin-order-summary::-webkit-details-marker { display: none; }
.admin-order-summary:hover { background: var(--bg-soft); }
.admin-order-summary:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: -2px; }
.admin-order-overview { min-width: 0; }
.admin-order-overview span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-order .order-state { color: var(--blue); }
.admin-order .order-state.completed { color: var(--good); }
.admin-order .order-state.cancelled { color: var(--brand-strong); }
.admin-order .order-state.ready { color: var(--warn); }
.admin-order-expand {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}
.admin-order[open] .admin-order-expand { transform: rotate(225deg) translate(-2px, -2px); }
.admin-order-details { padding: 16px; border-top: 1px solid var(--border); background: var(--surface); }
.admin-order-controls { grid-template-columns: repeat(2, minmax(0, 260px)); margin-bottom: 15px; }
.admin-order-controls label { display: grid; gap: 6px; }
.admin-order-controls label > span { font-weight: 800; }
.admin-order-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.admin-order-facts > div { min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-strong); }
.admin-order-facts dt { margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.admin-order-facts dd { margin: 0; line-height: 1.45; overflow-wrap: anywhere; }
.admin-order-facts dd a { display: block; color: var(--brand-strong); text-decoration: none; }
.admin-order-products { margin-top: 16px; }
.admin-order-products h3 { margin: 0 0 10px; font-size: 15px; }
.admin-order-product-grid { display: grid; gap: 9px; }
.admin-order-product {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 0;
  align-items: stretch;
  min-width: 0;
  min-height: 108px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
}
.admin-order-product:hover { border-color: rgba(228, 38, 48, .5); }
.admin-order-product img { width: 140px; height: 100%; min-height: 108px; border-radius: 0; object-fit: cover; background: var(--bg-soft); }
.admin-order-product > div { align-self: center; padding: 13px 14px; }
.admin-order-product > b { align-self: center; padding: 13px 16px 13px 8px; white-space: nowrap; }
.checkout-drawer {
  width: min(820px, calc(100% - 28px));
}
.favorite-item {
  grid-template-columns: 62px minmax(0, 1fr) auto 36px;
}
.order-form {
  flex: 1;
  overflow: auto;
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 12px;
}
.order-section {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 14px;
  display: grid;
  gap: 12px;
}
.order-section label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.order-section-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
}
.order-section-head [data-lucide] {
  color: var(--brand-strong);
}
.option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.delivery-step { display: grid; gap: 9px; }
.delivery-step-title { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.delivery-step-title > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); font-size: 12px; }
.option-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 48px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  transition: border-color .18s ease, background .18s ease;
}
.option-card[hidden] { display: none; }
.option-card input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  flex: 0 0 auto;
}
.option-card:has(input:checked) {
  border-color: rgba(228, 38, 48, .66);
  background: var(--brand-soft);
}
.delivery-autocomplete { position: relative; min-width: 0; }
.delivery-autocomplete > .field { width: 100%; }
.delivery-suggestions {
  position: absolute;
  z-index: 90;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  max-height: 260px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: 0 14px 34px rgba(10, 15, 25, .22);
}
.delivery-suggestions[hidden] { display: none !important; }
.delivery-suggestion {
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.delivery-suggestion:hover,
.delivery-suggestion:focus-visible { background: var(--brand-soft); outline: none; }
.delivery-suggestion strong { display: block; font-size: 13px; }
.delivery-suggestion span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 500; }
.order-summary {
  display: grid;
  gap: 10px;
}
.order-items {
  display: grid;
  gap: 8px;
}
.order-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 8px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.order-item img {
  width: 56px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}
.order-item strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.25;
}
.order-item span {
  color: var(--muted);
  font-size: 12px;
}
.order-total {
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.order-receipt {
  border: 1px solid rgba(23, 196, 107, .32);
  border-radius: 8px;
  background: rgba(23, 196, 107, .08);
  padding: 12px;
  display: grid;
  gap: 5px;
}
.order-receipt strong {
  color: var(--text);
}
.order-receipt span {
  color: var(--muted);
  font-size: 13px;
}
.order-empty {
  min-height: 150px;
}
.order-status {
  min-height: 22px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.order-status a {
  width: fit-content;
  color: #fff;
  border-radius: 8px;
  background: var(--brand);
  padding: 9px 12px;
  font-weight: 900;
}
.checkout-footer {
  position: sticky;
  bottom: -14px;
  margin: 0 -14px -14px;
  background: var(--surface);
}
.primary-btn:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
  box-shadow: none;
}
.qty {
  display: inline-grid;
  grid-template-columns: 32px 32px 32px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.qty button {
  width: 32px;
  height: 32px;
  border: 0;
  color: var(--text);
  background: transparent;
}
.qty b {
  text-align: center;
  font-size: 13px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1101px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
  }
  .product-card {
    grid-template-columns: 1fr;
    min-height: 0;
    contain-intrinsic-size: 390px;
  }
  .product-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .product-body {
    padding: 12px;
    gap: 7px;
  }
  .product-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .product-meta {
    gap: 5px;
  }
  .product-card .chip {
    padding: 4px 6px;
    font-size: 11px;
  }
  .product-card .stock {
    font-size: 12px;
  }
  .product-card .price strong {
    font-size: 20px;
  }
  .product-card .primary-btn {
    min-height: 40px;
    padding-inline: 12px;
  }
}
@media (max-width: 1100px) {
  .topbar-inner {
    grid-template-columns: 1fr auto;
  }
  .topbar .search-line {
    grid-column: 1 / -1;
    order: 3;
  }
  .topbar-inner {
    padding: 12px 0;
  }
  .top-actions .nav-link:not(.catalog-menu-toggle) {
    display: none;
  }
  .hero-shell {
    grid-template-columns: 1fr;
  }
  .hero-media {
    min-height: 280px;
  }
  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .filters {
    position: static;
    max-height: none;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .filters-head {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 3px 10px rgba(32, 38, 52, .05);
  }
  .filters-head .filters-title { margin-right: auto; }
  .filter-toggle { display: inline-flex; }
  .filters:not(.filters-open) .filter-body { display: none; }
  .filter-body {
    margin-top: 9px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 5px 16px rgba(32, 38, 52, .06);
  }
  .vehicle-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .section-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .admin-login-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-source-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-product-layout { grid-template-columns: 260px minmax(0, 1fr); }
  .product-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .mobile-nav {
    position: fixed;
    z-index: 55;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: calc(62px + env(safe-area-inset-bottom));
    padding: 7px 6px max(7px, env(safe-area-inset-bottom));
    background: var(--surface-strong);
    border-top: 1px solid var(--border);
    box-shadow: 0 -5px 18px rgba(18, 25, 38, .08);
  }
  .mobile-nav-item {
    position: relative;
    display: grid;
    place-items: center;
    gap: 3px;
    min-width: 0;
    padding: 3px 2px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 10px;
    font-weight: 800;
  }
  .mobile-nav-item [data-lucide] { width: 20px; height: 20px; color: var(--brand-strong); }
  .mobile-request-item span { max-width: 70px; color: var(--brand-strong); line-height: 1.15; }
  .mobile-nav-count { position: absolute; top: 0; right: calc(50% - 20px); min-width: 16px; padding: 1px 4px; border-radius: 20px; background: var(--brand-strong); color: #fff; font-size: 10px; }
  body { -webkit-tap-highlight-color: transparent; }
  .filters {
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .filters-head {
    padding: 10px 12px;
    flex-direction: row;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 3px 10px rgba(32, 38, 52, .05);
  }
  .filters-head .filters-title { margin-right: auto; }
  .filters-head .ghost-btn { display: inline-flex; }
  .filter-toggle { display: inline-flex; }
  .filters:not(.filters-open) .filter-body { display: none; }
  .filter-body {
    margin-top: 9px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 5px 16px rgba(32, 38, 52, .06);
  }
  .vehicle-picker { grid-template-columns: 1fr; }
  .section-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .container {
    width: min(calc(100% - 22px), 1180px);
  }
  .brand {
    min-width: 0;
  }
  .brand-title {
    max-width: 176px;
  }
  .brand-title strong {
    font-size: 14px;
  }
  .brand-title span {
    display: none;
  }
  .topbar-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    min-height: auto;
    padding: 10px 0 12px;
  }
  .top-actions {
    gap: 6px;
    flex-wrap: nowrap;
  }
  .top-actions > :not(#themeToggle) { display: none; }
  .account-btn { width: 40px; min-height: 40px; padding: 0; justify-content: center; }
  .account-btn span { display: none; }
  .request-btn { width: 40px; min-height: 40px; padding: 0; }
  .request-btn span { display: none; }
  .search-input { min-height: 46px; font-size: 16px; }
  .text-btn.hide-mobile {
    display: none;
  }
  .hero {
    padding-top: 18px;
  }
  .hero-copy {
    padding: 24px;
  }
  h1 {
    font-size: clamp(29px, 10vw, 40px);
  }
  .hero-copy .hero-actions a {
    flex: 1 1 138px;
  }
  .hero-badge {
    left: 18px;
    right: 18px;
    min-width: 0;
  }
  .hero-stats,
  .quick-grid,
  .product-grid,
  .import-grid,
    .admin-filter-grid,
    .admin-login,
    .admin-login-row,
    .admin-product-layout,
    .attribute-admin-layout,
    .product-attribute-fields,
    .admin-form-pair,
    .option-grid,
    .payment-grid,
    .footer-grid {
    grid-template-columns: 1fr;
  }
  .catalog-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
  }
  .audit-columns,
  .price-source-form { grid-template-columns: 1fr; }
  .import-card-preview { grid-template-columns: 1fr; }
  .admin-nav { top: 6px; margin-inline: -2px; }
  .admin-product-search { width: 100%; }
  .favorite-item {
    grid-template-columns: 56px minmax(0, 1fr) 36px;
  }
  .account-form,
  .account-stats,
  .account-links,
  .admin-order {
    grid-template-columns: 1fr;
  }
  .admin-order-summary { grid-template-columns: minmax(0, 1fr) auto 14px; }
  .admin-order-summary > .order-state { grid-row: 2; width: fit-content; }
  .admin-order-summary > b { grid-column: 2; grid-row: 1 / span 2; }
  .admin-order-summary > .admin-order-expand { grid-column: 3; grid-row: 1 / span 2; }
  .admin-order-facts { grid-template-columns: 1fr; }
  .admin-order-controls { grid-template-columns: 1fr; }
  .admin-order-product { grid-template-columns: 96px minmax(0, 1fr); min-height: 100px; }
  .admin-order-product img { width: 96px; min-height: 100px; grid-row: 1 / span 2; }
  .admin-order-product > div { padding: 11px 12px 4px; }
  .admin-order-product > b { grid-column: 2; padding: 4px 12px 11px; }
  .team-layout { grid-template-columns: 1fr; }
  .account-order { grid-template-columns: 1fr; }
  .account-order b { text-align: left; }
  .favorite-item .drawer-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }
  .favorite-item .drawer-actions .ghost-btn,
  .favorite-item .drawer-actions .primary-btn {
    flex: 1 1 140px;
  }
  .order-item {
    grid-template-columns: 52px minmax(0, 1fr);
  }
  .order-item b {
    grid-column: 2;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
  }
  .catalog-toolbar .select {
    width: 100%;
  }
  .product-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .product-detail-card { grid-template-columns: 1fr; }
  .product-detail-content-grid,
  .product-detail-benefits { grid-template-columns: 1fr; }
  .product-detail-media { min-height: 0; aspect-ratio: 4 / 3; }
  .product-detail-info { padding: 20px; }
  .product-detail-buy { align-items: stretch; flex-direction: column; }
  .product-detail-buy .primary-btn { width: 100%; }
  .product-spec-row { grid-template-columns: minmax(105px, .65fr) minmax(0, 1fr); gap: 12px; }
  .product-media {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
  .product-body { padding: 13px; }
  .filters-head { padding: 14px; }
  .filter-body { padding: 14px; }
  .section-option { min-height: 44px; }
  .import-head {
    align-items: start;
    flex-direction: column;
  }
  .import-head > .hero-actions { width: 100%; }
  .import-head > .hero-actions .admin-product-search { flex: 1 1 100%; }
}
@media (max-width: 1320px) {
  .header-phones { display: none; }
}
@media (max-width: 520px) {
  .container {
    width: calc(100% - 22px);
  }
  .brand-title {
    max-width: 118px;
  }
  .brand { gap: 8px; }
  .brand-mark { width: 38px; height: 38px; }
  .top-actions {
    gap: 5px;
  }
  .icon-btn {
    width: 38px;
    min-height: 38px;
  }
  .account-btn { width: 38px; min-height: 38px; }
  .request-btn { width: 38px; min-height: 38px; }
  #favoritesOpen { display: none; }
  .cart-count { top: -5px; right: -5px; }
  .catalog { padding-top: 18px; }
  .filters-head .ghost-btn { width: 42px; padding: 0; }
  .filters-head .ghost-btn span { display: none; }
  .section-head { margin: 15px 0; }
  .section-head h2 { font-size: 27px; }
  .section-head p { font-size: 13px; }
  .section-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-drawer,
  .utility-drawer,
  .checkout-drawer,
  .account-drawer,
  .request-drawer {
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    border-radius: 0;
    border-right: 0;
    border-left: 0;
  }
  .cart-head,
  .cart-footer { padding: 14px; }
  .cart-footer { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .account-content { padding: 14px; }
  .account-tabs { padding: 8px 10px; }
  .primary-btn,
  .ghost-btn,
  .text-btn { min-height: 44px; }
  .hero-copy {
    padding: 24px;
  }
  h1,
  .hero-copy p,
  .hero-stats,
  .hero-copy .hero-actions {
    max-width: 320px;
    width: 100%;
  }
  h1 {
    font-size: clamp(28px, 9vw, 36px);
  }
  .hero-copy .hero-actions a {
    flex-basis: 100%;
  }
  .contact-row { grid-template-columns: 1fr; gap: 4px; }
  .contact-details { gap: 19px; }
  .site-footer { padding: 32px 0 38px; }
}
@media (max-width: 360px) {
  .brand-title { max-width: 150px; }
  .topbar-inner { gap: 6px; }
  .top-actions { gap: 4px; }
  .container { width: min(calc(100% - 18px), 368px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
