/* ==========================================================================
   DRIVMAN — Global Styles
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background: var(--dm-bg);
  color: var(--dm-text-secondary);
  font-family: var(--dm-font-body);
  font-size: var(--dm-fs-base);
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--dm-font-display);
  color: var(--dm-text-primary);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

.dm-container {
  max-width: var(--dm-container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.dm-eyebrow {
  font-family: var(--dm-font-body);
  font-size: var(--dm-fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dm-red-bright);
  font-weight: 600;
  margin-bottom: var(--dm-space-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.dm-eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--dm-grad-red);
  display: inline-block;
}

.dm-section {
  padding: var(--dm-space-7) 0;
  position: relative;
}
@media (min-width: 992px) {
  .dm-section {
    padding: var(--dm-space-8) 0;
  }
}
.dm-section--tight {
  padding: var(--dm-space-5) 0;
}

.dm-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--dm-space-3);
  margin-bottom: var(--dm-space-5);
}
.dm-section-head h2 {
  font-size: var(--dm-fs-xl);
  font-weight: 600;
}
.dm-section-head p {
  color: var(--dm-text-muted);
  max-width: 460px;
  margin-top: var(--dm-space-1);
}

/* ---------- Buttons ---------- */
.dm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--dm-font-body);
  font-weight: 600;
  font-size: var(--dm-fs-sm);
  letter-spacing: 0.02em;
  padding: 16px 32px;
  border-radius: var(--dm-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform var(--dm-speed-fast) var(--dm-ease),
    box-shadow var(--dm-speed-fast) var(--dm-ease),
    background var(--dm-speed-fast) var(--dm-ease),
    border-color var(--dm-speed-fast) var(--dm-ease);
  white-space: nowrap;
}
.dm-btn:active {
  transform: translateY(1px) scale(0.99);
}

.dm-btn--primary {
  background: var(--dm-grad-red);
  color: #fff;
}
.dm-btn--primary:hover {
  box-shadow: var(--dm-shadow-red-glow);
  transform: translateY(-2px);
}

.dm-btn--outline {
  background: transparent;
  border-color: var(--dm-border-strong);
  color: var(--dm-text-primary);
}
.dm-btn--outline:hover {
  border-color: var(--dm-red);
  background: rgba(196, 0, 24, 0.08);
  transform: translateY(-2px);
}

.dm-btn--ghost {
  background: transparent;
  color: var(--dm-text-secondary);
  padding: 10px 0;
  border-bottom: 1px solid var(--dm-border-strong);
  border-radius: 0;
}
.dm-btn--ghost:hover {
  color: var(--dm-text-primary);
  border-color: var(--dm-red);
}

.dm-btn--sm {
  padding: 10px 20px;
  font-size: var(--dm-fs-xs);
}

/* ---------- Form controls (global safety net) ----------
   Native <select> popups render with browser-controlled backgrounds in many
   cases, ignoring the parent's CSS. Declaring option color/background
   explicitly everywhere prevents invisible text on any select in the site,
   not just the ones with bespoke styling. */
select {
  color-scheme: dark;
}
select option {
  background-color: #17171a;
  color: var(--dm-text-primary);
}
input,
select,
textarea {
  font-family: var(--dm-font-body);
}

/* ---------- Navbar wrapper (fixed) ----------
   The wrapper is what's actually position:fixed now — it can contain 1
   row (mobile) or 3 stacked rows (desktop: utility / main / links). The
   exact --dm-navbar-height is measured and set by assets/js/include.js so
   hero/page-header padding always lines up, no matter how tall the
   3-row desktop layout ends up being. The values below are just the
   before-JS fallback. */
.dm-navbar-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background var(--dm-speed-base) var(--dm-ease),
    border-color var(--dm-speed-base) var(--dm-ease),
    backdrop-filter var(--dm-speed-base) var(--dm-ease);
}
.dm-navbar-wrap.is-scrolled {
  background: rgba(9, 9, 9, 0.92);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--dm-border);
}

/* ---------- Row 1: utility bar (desktop only) ---------- */
.dm-navbar__utility {
  border-bottom: 1px solid var(--dm-border);
  background: rgba(255, 255, 255, 0.02);
}
.dm-navbar__utility .dm-navbar__inner {
  height: 38px;
  justify-content: space-between;
}
.dm-navbar__utility-links {
  display: flex;
  gap: 20px;
}
.dm-navbar__utility-links a {
  font-size: var(--dm-fs-xs);
  color: var(--dm-text-muted);
  transition: color var(--dm-speed-fast) var(--dm-ease);
}
.dm-navbar__utility-links a:hover {
  color: var(--dm-text-primary);
}
.dm-navbar__utility-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dm-navbar__utility-right a {
  color: var(--dm-text-muted);
  font-size: 13px;
  transition: color var(--dm-speed-fast) var(--dm-ease);
}
.dm-navbar__utility-right a:hover {
  color: var(--dm-red-bright);
}
.dm-navbar__region {
  font-size: var(--dm-fs-xs);
  color: var(--dm-text-muted);
  white-space: nowrap;
}

/* ---------- Row 2: main row ---------- */
.dm-navbar {
  display: flex;
  align-items: center;
  height: 76px;
  border-bottom: 1px solid var(--dm-border);
}
.dm-navbar__inner {
  width: 100%;
  max-width: var(--dm-container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--dm-space-4);
}
.dm-navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--dm-font-display);
  font-weight: 700;
  font-size: var(--dm-fs-md);
  color: var(--dm-text-primary);
  letter-spacing: 0.02em;
}
.dm-navbar__logo .mark {
  color: var(--dm-red-bright);
}
.dm-navbar__logo-img {
  height: 62px;
  width: auto;
  object-fit: contain;
  display: block;
}

.dm-navbar__search {
  display: none;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 520px;
  margin: 0 var(--dm-space-4);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dm-border-strong);
  border-radius: 999px;
  padding: 10px 18px;
  transition: border-color var(--dm-speed-fast) var(--dm-ease);
}
.dm-navbar__search:focus-within {
  border-color: var(--dm-red);
}
.dm-navbar__search i {
  color: var(--dm-text-muted);
  font-size: 14px;
}
.dm-navbar__search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--dm-text-primary);
  font-size: var(--dm-fs-sm);
}
.dm-navbar__search input::placeholder {
  color: var(--dm-text-muted);
}

.dm-navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--dm-space-2);
}
.dm-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--dm-text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dm-border);
  transition:
    background var(--dm-speed-fast) var(--dm-ease),
    border-color var(--dm-speed-fast) var(--dm-ease);
}
.dm-icon-btn:hover {
  background: rgba(196, 0, 24, 0.12);
  border-color: var(--dm-red);
}
.dm-icon-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--dm-grad-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--dm-black);
}

.dm-navbar__toggle {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--dm-border);
  border-radius: 8px;
  color: var(--dm-text-primary);
}
@media (min-width: 992px) {
  .dm-navbar__toggle {
    display: none;
  }
}

/* ---------- Row 3: category / links row (desktop only) ---------- */
.dm-navbar__links-row {
  border-bottom: 1px solid var(--dm-border);
  background: rgba(0, 0, 0, 0.2);
}
.dm-navbar__links-row .dm-navbar__inner {
  height: 48px;
  justify-content: center;
}
.dm-navbar__links {
  display: flex;
  align-items: center;
  gap: var(--dm-space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.dm-navbar__links a {
  font-size: var(--dm-fs-sm);
  font-weight: 500;
  color: var(--dm-text-secondary);
  position: relative;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  transition: color var(--dm-speed-fast) var(--dm-ease);
}
.dm-navbar__links a:hover,
.dm-navbar__links a.active {
  color: var(--dm-text-primary);
}
.dm-navbar__links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--dm-grad-red);
  border-radius: 2px;
}
.dm-navbar__links--muted a {
  color: var(--dm-text-muted);
  font-size: var(--dm-fs-xs);
}
.dm-nav-badge {
  display: inline-block;
  margin-left: 6px;
  background: var(--dm-grad-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
}
.dm-dropdown-menu {
  background: var(--dm-black-soft);
  border: 1px solid var(--dm-border-strong);
  border-radius: var(--dm-radius-sm);
  padding: 8px;
  min-width: 220px;
  margin-top: 12px;
}
.dm-dropdown-menu .dropdown-item {
  color: var(--dm-text-secondary);
  font-size: var(--dm-fs-sm);
  padding: 8px 12px;
  border-radius: 6px;
  background: transparent;
}
.dm-dropdown-menu .dropdown-item:hover,
.dm-dropdown-menu .dropdown-item:focus {
  background: rgba(196, 0, 24, 0.12);
  color: var(--dm-text-primary);
}

@media (min-width: 992px) {
  .dm-navbar__search {
    display: flex;
  }
}

/* Fallback navbar height before JS measures the real one (see include.js
   syncNavbarHeight). Mobile is just the single main row; desktop adds the
   utility bar + links row. */
:root {
  --dm-navbar-height: 84px;
}
@media (min-width: 992px) {
  :root {
    --dm-navbar-height: 162px;
  }
}

/* Mobile drawer */
.dm-mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(82vw, 360px);
  height: 100%;
  background: var(--dm-black-soft);
  border-left: 1px solid var(--dm-border);
  z-index: 1100;
  padding: var(--dm-space-5) var(--dm-space-3);
  transition: right var(--dm-speed-base) var(--dm-ease);
  overflow-y: auto;
}
.dm-mobile-drawer.is-open {
  right: 0;
}
.dm-mobile-drawer ul {
  list-style: none;
  padding: 0;
  margin: var(--dm-space-4) 0;
}
.dm-mobile-drawer li {
  border-bottom: 1px solid var(--dm-border);
}
.dm-mobile-drawer a {
  display: block;
  padding: 16px 4px;
  font-size: var(--dm-fs-md);
  color: var(--dm-text-primary);
}
.dm-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dm-speed-base) var(--dm-ease);
}
.dm-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile bottom nav (app-like) */
.dm-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  justify-content: space-between;
  background: rgba(15, 15, 16, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--dm-border);
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
}
@media (min-width: 992px) {
  .dm-bottom-nav {
    display: none;
  }
}
@media (max-width: 991px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
}
.dm-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--dm-text-muted);
}
.dm-bottom-nav a.active {
  color: var(--dm-red-bright);
}
.dm-bottom-nav i {
  font-size: 18px;
}

/* ---------- Cards ---------- */
.dm-card {
  background: var(--dm-surface);
  border: 1px solid var(--dm-border);
  border-radius: var(--dm-radius-md);
  overflow: hidden;
  transition:
    transform var(--dm-speed-base) var(--dm-ease),
    box-shadow var(--dm-speed-base) var(--dm-ease),
    border-color var(--dm-speed-base) var(--dm-ease);
}
.dm-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--dm-shadow-card);
  border-color: var(--dm-border-strong);
}

/* Product card */
.dm-product-card {
  position: relative;
}
.dm-product-card__media {
  position: relative;
  aspect-ratio: 1/1;
  background: linear-gradient(160deg, #161617, #0c0c0d);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.dm-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dm-speed-slow) var(--dm-ease);
}
.dm-product-card:hover .dm-product-card__media img {
  transform: scale(1.06);
}
.dm-product-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--dm-grad-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--dm-radius-sm);
}
.dm-product-card__wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(9, 9, 9, 0.55);
  border: 1px solid var(--dm-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dm-text-primary);
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity var(--dm-speed-fast) var(--dm-ease),
    transform var(--dm-speed-fast) var(--dm-ease);
}
.dm-product-card:hover .dm-product-card__wishlist {
  opacity: 1;
  transform: translateY(0);
}
.dm-product-card__wishlist.is-active {
  color: var(--dm-red-bright);
  opacity: 1;
}
.dm-product-card__body {
  padding: var(--dm-space-3);
}
.dm-product-card__brand {
  font-size: var(--dm-fs-xs);
  color: var(--dm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dm-product-card__title {
  font-size: var(--dm-fs-base);
  font-weight: 600;
  margin: 6px 0;
  color: var(--dm-text-primary);
}
.dm-product-card__rating {
  font-size: var(--dm-fs-xs);
  color: var(--dm-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.dm-product-card__rating i {
  color: var(--dm-red-bright);
  font-size: 11px;
}
.dm-product-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.dm-price {
  font-family: var(--dm-font-display);
  font-size: var(--dm-fs-md);
  font-weight: 600;
  color: var(--dm-text-primary);
}
.dm-price--old {
  font-size: var(--dm-fs-sm);
  color: var(--dm-text-muted);
  text-decoration: line-through;
  font-family: var(--dm-font-body);
}
.dm-product-card__cta {
  margin-top: var(--dm-space-2);
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dm-border-strong);
  color: var(--dm-text-primary);
  padding: 12px;
  border-radius: var(--dm-radius-sm);
  font-size: var(--dm-fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition:
    background var(--dm-speed-fast),
    border-color var(--dm-speed-fast);
}
.dm-product-card__cta:hover {
  background: var(--dm-grad-red);
  border-color: transparent;
}

/* Glass panel */
.dm-glass {
  background: var(--dm-grad-glass);
  border: 1px solid var(--dm-border);
  border-radius: var(--dm-radius-lg);
  backdrop-filter: blur(10px);
}

/* ---------- Footer ---------- */
.dm-footer {
  background: var(--dm-black-soft);
  border-top: 1px solid var(--dm-border);
  padding-top: var(--dm-space-7);
}
.dm-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--dm-space-5);
  padding-bottom: var(--dm-space-6);
  border-bottom: 1px solid var(--dm-border);
}
@media (min-width: 768px) {
  .dm-footer__top {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
.dm-footer__brand .dm-navbar__logo {
  margin-bottom: var(--dm-space-2);
}
.dm-footer__brand p {
  color: var(--dm-text-muted);
  max-width: 320px;
  font-size: var(--dm-fs-sm);
}
.dm-footer__social {
  display: flex;
  gap: 12px;
  margin-top: var(--dm-space-3);
}
.dm-footer h6 {
  font-family: var(--dm-font-body);
  font-size: var(--dm-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dm-text-muted);
  margin-bottom: var(--dm-space-2);
}
.dm-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dm-footer ul a {
  color: var(--dm-text-secondary);
  font-size: var(--dm-fs-sm);
  transition: color var(--dm-speed-fast);
}
.dm-footer ul a:hover {
  color: var(--dm-red-bright);
}
.dm-footer__newsletter {
  display: flex;
  gap: 0;
  margin-top: var(--dm-space-2);
}
.dm-footer__newsletter input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dm-border-strong);
  border-right: none;
  color: var(--dm-text-primary);
  padding: 14px 16px;
  border-radius: var(--dm-radius-sm) 0 0 var(--dm-radius-sm);
  font-size: var(--dm-fs-sm);
}
.dm-footer__newsletter input::placeholder {
  color: var(--dm-text-muted);
}
.dm-footer__newsletter button {
  border-radius: 0 var(--dm-radius-sm) var(--dm-radius-sm) 0;
}
.dm-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--dm-space-2);
  padding: var(--dm-space-4) 0;
  font-size: var(--dm-fs-xs);
  color: var(--dm-text-muted);
}
.dm-footer__bottom .payments {
  display: flex;
  gap: 10px;
  font-size: 22px;
  color: var(--dm-text-muted);
}
.dm-footer__credit {
  text-align: center;
  padding: var(--dm-space-3) 0 var(--dm-space-2);
  margin-top: var(--dm-space-2);
  border-top: 1px solid var(--dm-border);
  font-size: var(--dm-fs-xs);
  color: var(--dm-text-muted);
}
.dm-footer__credit a {
  color: var(--dm-text-secondary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dm-footer__credit a:hover {
  color: var(--dm-red-bright);
}

/* ---------- Utilities ---------- */
.dm-text-muted {
  color: var(--dm-text-muted) !important;
}
.dm-text-red {
  color: var(--dm-red-bright) !important;
}
.dm-grad-text {
  background: var(--dm-grad-silver);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dm-divider {
  height: 1px;
  background: var(--dm-border);
  border: none;
}

/* ---------- Page header & breadcrumb (used by every inner page) ---------- */
.dm-page-header {
  padding-top: calc(var(--dm-navbar-height) + var(--dm-space-5));
  padding-bottom: var(--dm-space-4);
  background: linear-gradient(180deg, rgba(196, 0, 24, 0.08), transparent 70%);
  border-bottom: 1px solid var(--dm-border);
}
.dm-breadcrumb {
  font-size: var(--dm-fs-xs);
  color: var(--dm-text-muted);
  margin-bottom: var(--dm-space-2);
}
.dm-breadcrumb a {
  color: var(--dm-text-muted);
}
.dm-breadcrumb a:hover {
  color: var(--dm-red-bright);
}
.dm-breadcrumb i {
  font-size: 10px;
  margin: 0 6px;
}
.dm-page-header h1 {
  font-size: var(--dm-fs-xl);
}
.dm-page-header p {
  color: var(--dm-text-muted);
  margin-top: 8px;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--dm-black);
}
::-webkit-scrollbar-thumb {
  background: var(--dm-grey-900);
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--dm-red-bright);
  outline-offset: 2px;
}

.dm-whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 90px; /* sits above the mobile bottom nav */
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 950;
  transition: transform var(--dm-speed-fast) var(--dm-ease);
}
.dm-whatsapp-fab:hover {
  transform: scale(1.08);
}
@media (min-width: 992px) {
  .dm-whatsapp-fab {
    bottom: 24px; /* no bottom nav on desktop */
  }
}

/* ---------- "Select Your Car" popup (brand -> model) ---------- */
.dm-carsel-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}
.dm-carsel-overlay.is-open {
  display: block;
}
.dm-carsel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.72);
  backdrop-filter: blur(2px);
}
.dm-carsel-panel {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 6vh auto;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--dm-surface);
  border: 1px solid var(--dm-border-strong);
  border-radius: var(--dm-radius-lg);
  padding: var(--dm-space-5);
}
@media (max-width: 576px) {
  .dm-carsel-panel {
    margin: 0;
    max-width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }
}
.dm-carsel-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--dm-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--dm-text-secondary);
  font-size: 16px;
}
.dm-carsel-close:hover {
  color: var(--dm-text-primary);
  border-color: var(--dm-red-bright);
}
.dm-carsel-eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dm-red-bright);
  font-weight: 700;
  margin-bottom: 6px;
}
.dm-carsel-title {
  font-size: var(--dm-fs-lg);
  margin-bottom: var(--dm-space-2);
  padding-right: 40px;
}
.dm-carsel-hint {
  font-size: var(--dm-fs-xs);
  color: var(--dm-text-muted);
  margin-bottom: var(--dm-space-3);
}
.dm-carsel-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--dm-text-muted);
  font-size: var(--dm-fs-sm);
  padding: 0;
  margin-bottom: var(--dm-space-2);
}
.dm-carsel-back:hover {
  color: var(--dm-text-primary);
}
.dm-carsel-brand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 576px) {
  .dm-carsel-brand-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 768px) {
  .dm-carsel-brand-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.dm-carsel-brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--dm-border);
  border-radius: var(--dm-radius-sm);
  padding: 18px 10px;
  color: var(--dm-text-secondary);
  font-size: var(--dm-fs-sm);
  font-weight: 600;
  transition:
    border-color var(--dm-speed-fast) var(--dm-ease),
    color var(--dm-speed-fast) var(--dm-ease),
    background var(--dm-speed-fast) var(--dm-ease);
}
.dm-carsel-brand-card i {
  font-size: 22px;
  color: var(--dm-red-bright);
}
.dm-carsel-brand-card small {
  font-weight: 400;
  color: var(--dm-text-muted);
  font-size: 11px;
}
.dm-carsel-brand-card:hover {
  border-color: var(--dm-red-bright);
  color: var(--dm-text-primary);
  background: rgba(196, 0, 24, 0.08);
}
.dm-carsel-model-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 576px) {
  .dm-carsel-model-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.dm-carsel-model-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--dm-border);
  border-radius: var(--dm-radius-sm);
  padding: 10px 14px 10px 10px;
  transition:
    border-color var(--dm-speed-fast) var(--dm-ease),
    background var(--dm-speed-fast) var(--dm-ease);
}
.dm-carsel-model-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dm-red-bright);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--dm-radius-sm);
  overflow: hidden;
}
.dm-carsel-model-thumb svg {
  width: 100%;
  height: 100%;
}
.dm-carsel-model-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dm-carsel-model-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.dm-carsel-model-name {
  color: var(--dm-text-primary);
  font-weight: 600;
  font-size: var(--dm-fs-sm);
}
.dm-carsel-model-meta {
  color: var(--dm-text-muted);
  font-size: 12px;
}
.dm-carsel-model-card:hover {
  border-color: var(--dm-red-bright);
  background: rgba(196, 0, 24, 0.08);
}
