:root {
  --navy: #12263f;
  --navy-soft: #1d3554;
  --orange: #e87722;
  --orange-hover: #d66a1a;
  --bg: #f5f7fa;
  --white: #ffffff;
  --line: #e4eaf2;
  --text: #1c2b3d;
  --muted: #6b7c90;
  --success: #1f8a4c;
  --danger: #c0392b;
  --shadow: 0 10px 30px rgba(18, 38, 63, 0.08);
  --radius: 8px;
  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Manrope", sans-serif;
  --api: "http://localhost:5283/api";
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

body.admin-body { background: #eef2f7; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  font-size: .82rem;
}

.top-bar-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  min-height: 36px;
}

.top-bar-contacts {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  white-space: nowrap;
}

.top-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.top-contact:hover { color: var(--orange); }
.top-contact-label { opacity: .8; font-weight: 500; }
.top-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.top-bar-ticker {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  min-width: 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
}

.top-bar-ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 28px;
  white-space: nowrap;
  color: rgba(255,255,255,.9);
  font-weight: 500;
}

.ticker-item::after {
  content: "•";
  margin-left: 28px;
  color: var(--orange);
  opacity: .9;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.top-links { display: flex; gap: 14px; flex-shrink: 0; align-items: center; }
.top-links a { color: #fff; font-weight: 600; }
.top-links a:hover { color: var(--orange); }
.top-link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.top-link-btn:hover { color: var(--orange); }

.header-main { background: var(--white); }
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 14px 0;
}

.brand-logo { height: 54px; width: auto; }

.header-search {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #f8fafc;
}

.header-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 18px;
}

.header-search button {
  border: 0;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  padding: 0 20px;
  cursor: pointer;
}

.header-search button:hover { background: var(--orange-hover); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.action-link { font-weight: 700; color: var(--navy); }

.cart-btn {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 700;
}

.badge {
  position: absolute;
  top: -7px; right: -7px;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: .72rem;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
}

.main-nav { border-top: 1px solid var(--line); background: #fff; }
.nav-inner { display: flex; gap: 22px; padding: 12px 0; }
.nav-inner a { font-weight: 700; color: var(--navy-soft); }
.nav-inner a:hover { color: var(--orange); }

.site-main { min-height: 60vh; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-hover); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-outline {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.hero {
  background:
    linear-gradient(105deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.88) 42%, rgba(255,255,255,.35) 100%),
    url("https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?auto=format&fit=crop&w=1800&q=80") center/cover;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-inner { padding: 56px 0; max-width: 620px; animation: fadeUp .7s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-logo { height: 64px; margin-bottom: 18px; }
.hero h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: .95;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--navy);
}
.hero h1 span { color: var(--orange); }
.hero p { margin: 0 0 24px; color: var(--muted); font-size: 1.05rem; max-width: 42ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.section { padding: 56px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.section-eyebrow {
  margin: 0 0 6px;
  color: var(--orange);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1;
}
.section-lead {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .95rem;
  max-width: 52ch;
}
.section-head p { margin: 6px 0 0; color: var(--muted); }
.section-link {
  flex-shrink: 0;
  color: var(--navy);
  font-weight: 800;
  font-size: .92rem;
  white-space: nowrap;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
}
.section-link:hover { color: var(--orange); }
.link-orange { color: var(--orange); font-weight: 700; }

.product-section {
  padding: 48px 0;
}
.product-section.is-alt {
  background: linear-gradient(180deg, #f8fafc 0%, #f3f6fa 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  transition: .2s ease;
}
.category-card:hover {
  border-color: #f0c29a;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.category-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--navy);
}
.category-card span { color: var(--muted); font-size: .85rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 190px auto;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.product-card:hover {
  border-color: #d9e3f0;
  box-shadow: 0 16px 40px rgba(18, 38, 63, 0.1);
  transform: translateY(-4px);
}

.product-media {
  background:
    radial-gradient(circle at 70% 20%, rgba(232,119,34,.08), transparent 45%),
    #f4f7fb;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  transition: transform .4s ease;
}
.product-card:hover .product-media img { transform: scale(1.06); }

.stock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  background: rgba(18, 38, 63, 0.9);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 999px;
}
.stock-badge.is-low,
.stock-badge.is-out { background: #9aa8b8; }

.product-body {
  padding: 14px 14px 16px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.product-meta .sku { color: var(--navy); }
.product-meta .cat {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 55%;
}
.product-body h3 {
  margin: 0;
  font-size: .9rem;
  line-height: 1.4;
  color: var(--navy);
  min-height: 3.9em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-body h3 a:hover { color: var(--orange); }
.product-oem {
  margin: 0;
  color: #6f8196;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
}
.price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--orange);
  letter-spacing: .02em;
  line-height: 1;
}
.old-price {
  color: #9aa8b8;
  text-decoration: line-through;
  font-size: .88rem;
  margin-left: 8px;
}
.btn-sm {
  padding: 9px 12px;
  font-size: .82rem;
  white-space: nowrap;
}

.trust-strip {
  margin-top: 28px;
  padding: 8px 0 36px;
}
.trust {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.trust-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(18, 38, 63, 0.04);
}
.trust-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--orange);
}
.trust-index {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .08em;
  color: #c9d4e3;
}
.trust-card h3,
.trust-item h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
  font-size: 1.25rem;
}
.trust-card p,
.trust-item p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}

.page-head {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.page-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
}
.page-head p { margin: 8px 0 0; color: var(--muted); }

.catalog {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  padding: 28px 0 56px;
}

.filters, .panel, .auth-card, .profile-card, .cart-box, .checkout-box, .success-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filters { padding: 18px; height: fit-content; position: sticky; top: 140px; }
.filters h3, .panel h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
  font-size: 1.25rem;
}

.field { margin-bottom: 14px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 11px 12px;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #f0b27a;
  box-shadow: 0 0 0 3px rgba(232,119,34,.12);
}

.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 32px 0 56px;
}
.detail-media {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 24px;
}
.detail-media img { max-height: 380px; object-fit: contain; }
.detail-info h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--navy);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag {
  background: #f2f5f9;
  color: var(--navy);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .78rem;
  font-weight: 700;
}
.detail-desc { color: var(--muted); line-height: 1.7; }
.qty-row { display: flex; align-items: center; gap: 10px; margin: 18px 0; }
.qty-row input {
  width: 80px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.table th {
  background: #f7f9fc;
  color: var(--navy);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cart-layout, .checkout-layout, .auth-layout, .profile-layout {
  width: min(980px, calc(100% - 32px));
  margin: 28px auto 56px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.summary-row.total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
}

.auth-layout { max-width: 460px; }
.auth-card, .profile-card, .cart-box, .checkout-box, .success-box { padding: 28px; }
.auth-card h1, .success-box h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
  font-size: 2rem;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }

.profile-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
}

.order-list { display: grid; gap: 10px; }
.order-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}
.order-item strong { color: var(--orange); }

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  padding: 40px 0;
}
.footer-logo { height: 48px; margin-bottom: 12px; }
.footer-grid h4 {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.footer-grid a, .footer-grid p {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
}
.footer-bottom {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 14px;
  color: var(--muted);
  font-size: .9rem;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius);
  border-left: 4px solid var(--orange);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: .25s ease;
  z-index: 100;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }

.loading, .error, .empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--muted);
}
.error { color: var(--danger); }
.muted { color: var(--muted); }
.link-danger {
  background: none;
  border: 0;
  color: var(--danger);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

/* Admin */
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--navy);
  color: #fff;
  padding: 24px 16px;
}
.admin-sidebar .brand-logo {
  height: 44px;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 6px;
  padding: 6px;
}
.admin-nav { display: grid; gap: 6px; }
.admin-nav a {
  color: rgba(255,255,255,.85);
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 600;
}
.admin-nav a.active, .admin-nav a:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.admin-content { padding: 24px; }
.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.admin-top h1 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
  font-size: 2rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.stat-card span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.stat-card strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy);
  letter-spacing: .02em;
}
.panel { padding: 16px; margin-bottom: 16px; overflow: auto; }
.status-select {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.sales-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18px, 1fr));
  gap: 4px;
  align-items: end;
  height: 160px;
  margin-top: 12px;
}
.sales-bar {
  background: linear-gradient(180deg, var(--orange), #f3b27a);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
}

.mega-wrap { position: relative; }
.mega-trigger { cursor: pointer; }
.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: min(920px, 90vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  z-index: 80;
}
.mega-menu.is-open,
.mega-wrap:hover .mega-menu { display: block; }
.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}
.mega-grid a {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid transparent;
}
.mega-grid a:hover { background: #f7f9fc; border-color: var(--line); }
.mega-grid strong { color: var(--navy); font-size: .9rem; }
.mega-grid span { color: var(--muted); font-size: .75rem; }
.mega-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.mega-foot a { color: var(--orange); font-weight: 700; }

.home-hero-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 16px;
  padding: 24px 0 12px;
  align-items: stretch;
}

.home-cats {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 460px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(18, 38, 63, 0.04);
}

.home-cats-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcfe 0%, #fff 100%);
}

.home-cats-head h2 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
  font-size: 1.35rem;
}

.home-cats-head span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.home-cats-list {
  flex: 1;
  overflow: auto;
  padding: 8px;
}

.home-cats-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  border-radius: 6px;
  color: var(--navy);
  font-weight: 600;
  font-size: .88rem;
  border-left: 3px solid transparent;
  transition: .15s ease;
}

.home-cats-list a:hover {
  background: #f7f9fc;
  border-left-color: var(--orange);
}

.home-cats-list .cat-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-cats-list .cat-count {
  flex-shrink: 0;
  min-width: 34px;
  text-align: center;
  background: #eef3f9;
  color: var(--muted);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 7px;
}

.home-cats .all-link {
  margin: 0;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  color: var(--orange);
  font-weight: 800;
  text-align: center;
  background: #fffaf6;
}

.home-cats .all-link:hover { background: #fff3e8; }

.home-slider {
  position: relative;
  min-height: 460px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0f1a2a;
  box-shadow: 0 12px 32px rgba(18, 38, 63, 0.1);
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  animation: fadeUp .45s ease;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.78) 38%, rgba(18,38,63,.18) 100%);
}

.slide-content {
  position: relative;
  padding: 40px 48px;
  max-width: 560px;
  z-index: 1;
}

.slide-logo { height: 56px; margin-bottom: 14px; }

.slide-eyebrow {
  margin: 0 0 8px !important;
  color: var(--orange) !important;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.slide-content h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: .94;
}

.slide-content p { margin: 0 0 20px; color: var(--muted); font-size: 1.02rem; max-width: 38ch; }

.slider-nav {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.slider-dots {
  position: static;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex: 1;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(18,38,63,.22);
  cursor: pointer;
  padding: 0;
  transition: .2s ease;
}

.slider-dots button.active {
  background: var(--orange);
  width: 28px;
}

.slider-arrow {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.92);
  color: var(--navy);
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(18,38,63,.12);
}

.slider-arrow:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.carousel-wrap {
  position: relative;
  display: block;
  padding: 0 0px;
}
.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 14px;
  scrollbar-width: thin;
}
.carousel-item {
  min-width: 260px;
  max-width: 260px;
  scroll-snap-align: start;
}
.carousel-btn {
  position: absolute;
  top: 95px; /* image area center (190px / 2) */
  transform: translateY(-50%);
  z-index: 3;
  border: 1px solid var(--line);
  background: #fff;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--navy);
  box-shadow: 0 6px 16px rgba(18, 38, 63, 0.06);
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
}
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }
.carousel-btn:hover {
  border-color: var(--orange);
  color: #fff;
  background: var(--orange);
}

.cta-section { padding: 20px 0 56px; }
.cta-band {
  background:
    linear-gradient(120deg, #ffffff 0%, #f7f9fc 55%, #fff7f0 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  box-shadow: 0 12px 30px rgba(18, 38, 63, 0.05);
}
.cta-band h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--navy);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.cta-band p { margin: 0; color: var(--muted); max-width: 48ch; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.seo-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 0 0 48px;
}
.seo-content h2, .seo-content h3 {
  color: var(--navy);
  font-family: var(--font-display);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.seo-content ul { padding-left: 18px; color: var(--muted); }
.seo-content .oem-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 18px;
}
.seo-content .oem-list span {
  background: #f2f5f9;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--navy);
}
.compat-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 18px;
}
.compat-table th, .compat-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  font-size: .9rem;
}
.compat-table th { background: #f7f9fc; }
.search-tags { color: var(--muted); line-height: 1.7; }
.about-content, .contact-grid { max-width: 980px; }
.about-content h2 { color: var(--navy); }
.about-content p, .about-content li { color: var(--muted); line-height: 1.7; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}
.breadcrumb-bar {
  padding: 12px 20px 0;
}
.breadcrumb {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: .85rem;
  color: var(--muted);
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .bc-sep { color: #c5ccd6; }

@media (max-width: 1024px) {
  .category-grid, .product-grid, .stats { grid-template-columns: repeat(2, 1fr); }
  .catalog, .detail, .profile-grid, .admin-shell, .footer-grid, .trust-grid,
  .home-hero-grid, .contact-grid, .mega-grid {
    grid-template-columns: 1fr;
  }
  .home-cats { min-height: 280px; max-height: 320px; }
  .home-slider { min-height: 380px; }
  .filters { position: static; }
  .admin-sidebar { padding: 16px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-actions { width: 100%; }
  .product-footer { flex-direction: column; align-items: stretch; }
  .btn-sm { width: 100%; }
}

@media (max-width: 768px) {
  .header-inner { grid-template-columns: auto auto; }
  .header-search { display: none; }
  .menu-toggle { display: inline-flex; }
  .main-nav .nav-inner {
    display: none;
    flex-direction: column;
    padding-bottom: 16px;
  }
  .main-nav.is-open .nav-inner { display: flex; }
  .mega-menu {
    position: static;
    width: 100%;
    box-shadow: none;
  }
  .top-bar-inner {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .top-bar-contacts {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    width: 100%;
  }
  .top-contact-label { display: none; }
  .top-bar-ticker { order: 3; width: 100%; }
  .top-links { width: 100%; justify-content: flex-end; }
  .product-grid, .category-grid, .stats, .form-grid { grid-template-columns: 1fr; }
  .hero { min-height: 420px; }
  .home-slider { min-height: 360px; }
}
