:root {
  /* SweetCars brand palette */
  --brand: #FF5D00;        /* vivid orange: main actions */
  --brand-hover: #E85400;
  --brand-soft: #FFEDE0;
  --blue-deep: #2329A8;    /* deep blue: banner, dark buttons, links */
  --blue-deep-2: #1B2085;
  --blue-soft: #E7E9FB;
  --blue-bright: #355CF5;  /* bright blue: success, ticks, progress done */
  --blue-bright-soft: #E8EDFE;
  --beige: #FBE9D1;        /* light beige: tints and surfaces */

  --ink: #17201C;
  --muted: #7A7F7C;
  --line: #E9E3DA;
  --page: #FBF6EF;
  --white: #ffffff;
  --accent: var(--blue-deep);
  --green: #2A48D0;        /* "positive" text and pills, now in blue */
  --verified: var(--blue-bright);
  --radius-lg: 22px;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
svg { display: block; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ================= HEADER ================= */
.topbar { background: var(--blue-deep); color: #fff; padding: 20px 0 50px; }
.topbar__inner { display: flex; align-items: center; gap: 40px; }

.logo { display: flex; align-items: center; gap: 6px; font-size: 25px; font-weight: 700; letter-spacing: -0.5px; }
.logo__mark { width: 22px; height: 22px; }

.nav { display: flex; align-items: center; gap: 6px; flex: 1; }
.nav__link {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; font-size: 15px; color: rgba(255,255,255,.72);
  transition: color .2s, background .2s;
}
.nav__link svg { width: 19px; height: 19px; }
.nav__link:hover { color: #fff; }
.nav__link.is-active { background: #fff; color: var(--ink); font-weight: 500; }
.badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-10%);
  background: var(--green); color: #fff; font-size: 10px; font-weight: 600;
  padding: 2px 7px; border-radius: 999px; border: 2px solid var(--blue-deep);
}

.topbar__actions { display: flex; align-items: center; gap: 22px; }
.btn-round { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.btn-round svg { width: 14px; height: 14px; }
.btn-round--green { background: var(--green); color: #fff; transition: transform .2s; }
.btn-round--green:hover { transform: scale(1.06); }
.btn-icon { position: relative; color: #fff; }
.btn-icon svg { width: 22px; height: 22px; }
.btn-icon .dot { position: absolute; top: 1px; right: 2px; width: 7px; height: 7px; background: var(--blue-bright); border-radius: 50%; border: 1.5px solid var(--blue-deep); }
.profile {
  display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px;
  background: var(--blue-deep-2); border-radius: 999px;
}
.profile svg { width: 16px; height: 16px; color: #fff; }
.avatar {
  position: relative; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--blue-bright)); color: #fff;
}
.profile .avatar svg { width: 15px; height: 15px; }
.avatar__badge {
  position: absolute; top: -5px; right: -7px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: #e0344b; color: #fff; font-size: 10px; font-weight: 600; display: grid; place-items: center;
  border: 2px solid var(--blue-deep-2);
}
.avatar__badge[hidden] { display: none; }
.profile-wrap { position: relative; }
.profile[aria-expanded="true"] { background: #2a3048; }

.pmenu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: 300px; max-width: calc(100vw - 32px);
  background: #fff; color: var(--ink); border-radius: 16px; padding: 6px;
  box-shadow: 0 20px 50px -12px rgba(11, 15, 30, .35), 0 0 0 1px rgba(11, 15, 30, .05);
  animation: pmenu-in .15s ease-out;
}
@keyframes pmenu-in { from { opacity: 0; transform: translateY(-4px); } }
.pmenu__section { padding: 8px 6px; }
.pmenu__section + .pmenu__section { border-top: 1px solid var(--line); }
.pmenu__label {
  display: flex; justify-content: space-between; align-items: center; padding: 0 6px 6px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted);
}
.pmenu__label a { color: var(--accent); text-transform: none; letter-spacing: 0; font-size: 12px; }
.pmenu__car, .pmenu__item {
  display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 10px; transition: background .15s;
}
.pmenu__car:hover, .pmenu__item:hover { background: var(--page); }
.pmenu__thumb { width: 58px; flex: none; }
.pmenu__car strong, .pmenu__item strong { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.25; }
.pmenu__car small, .pmenu__item small { display: block; font-size: 11.5px; color: var(--muted); }
.pmenu__item > svg { width: 30px; height: 30px; padding: 7px; border-radius: 9px; background: var(--page); color: var(--accent); flex: none; }
.pmenu__item--wa > svg { background: #e3f9eb; color: #1faa52; }
.pmenu__empty { font-size: 12.5px; color: var(--muted); padding: 2px 6px 4px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pmenu__empty svg { width: 13px; height: 13px; color: #e0344b; display: inline; }
.pmenu__more { display: block; font-size: 12.5px; color: var(--accent); padding: 6px; }
.pmenu__clear { width: 100%; text-align: left; font-size: 12px; color: var(--muted); padding: 8px 6px 2px; }
.pmenu__clear:hover { color: #e0344b; }
.menu-toggle { display: none; color: #fff; }
.menu-toggle svg { width: 24px; height: 24px; }

/* ================= HERO / SEARCH ================= */
.hero {
  background: #fff; border-radius: 36px 36px 0 0; margin-top: -30px;
  padding: 30px 0 28px; position: relative;
}
.hero__title { font-size: 21px; font-weight: 600; letter-spacing: -0.2px; margin-bottom: 16px; }

.search { display: flex; gap: 14px; }
.search__fields {
  flex: 1; display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.field {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  padding: 14px 16px; min-height: 74px; cursor: pointer;
}
.field + .field { border-left: 1px solid var(--line); }
.field__label { font-size: 9px; text-transform: uppercase; letter-spacing: .3px; color: #585d6b; margin-bottom: 5px; }
.field__input {
  appearance: none; -webkit-appearance: none; border: 0; outline: 0; background: transparent;
  font-size: 14.5px; font-weight: 500; color: var(--ink); padding-right: 26px; cursor: pointer;
  text-overflow: ellipsis; white-space: nowrap; width: 100%;
}
.field__icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; pointer-events: none; color: var(--ink); }
.field:focus-within { background: #fafbfd; }

.search__btn {
  width: 176px; border-radius: 12px; background: var(--brand); color: var(--ink);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 500; transition: background .2s;
}
.search__btn svg { width: 19px; height: 19px; }
.search__btn:hover { background: var(--brand-hover); }

/* ================= CONTENT ================= */
.content { background: var(--page); padding: 38px 0 60px; }

.section-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 18px; scroll-margin-top: 20px; }
.section-head + .popular { margin-bottom: 38px; }
.section-title { font-size: 23px; font-weight: 600; letter-spacing: -0.3px; display: flex; align-items: center; gap: 6px; }
.emoji { font-size: 21px; }
.see-all { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 14px; }
.see-all svg { width: 14px; height: 14px; }
.see-all:hover { text-decoration: underline; }

/* ---------- Popular cards ---------- */
.popular { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pcard {
  --tint: var(--beige); --tint-2: #F3DCBF;
  border-radius: var(--radius); background: var(--tint); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.pcard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(20, 30, 60, .35); }
.pcard--violet { --tint: var(--beige); --tint-2: #F3DCBF; }
.pcard--blue   { --tint: var(--blue-soft); --tint-2: #D5DAF8; }
.pcard--pink   { --tint: #FFE3D1; --tint-2: #FCD2B8; }

.pcard__top { position: relative; padding: 16px 16px 0; height: 180px; }
.pcard__head { display: flex; align-items: flex-start; gap: 10px; position: relative; z-index: 2; }
.pcard__logo { width: 32px; height: 32px; flex: none; display: grid; place-items: center; }
.pcard__logo img { width: 100%; height: 100%; object-fit: contain; }
.pcard__name { font-size: 17px; font-weight: 600; line-height: 1.2; }
.pcard__sub { font-size: 12px; color: var(--muted); }
.status {
  margin-left: auto; background: #fff; border-radius: 999px; padding: 5px 12px;
  font-size: 10.5px; color: var(--ink); white-space: nowrap;
}
.status--red { color: #e0344b; }
.status--green { color: var(--green); }
.watermark {
  position: absolute; left: 0; right: 0; top: 70px; text-align: center; z-index: 0;
  font-size: 44px; font-weight: 800; letter-spacing: 4px; text-transform: uppercase;
  color: rgba(255, 255, 255, .55); white-space: nowrap; overflow: hidden; pointer-events: none;
}
.pcard__car { position: absolute; z-index: 1; left: 50%; bottom: 6px; transform: translateX(-50%); width: 80%; max-width: 290px; }

.pcard__foot {
  background: var(--tint-2); padding: 12px 16px; display: flex; align-items: center; gap: 10px; margin-top: auto;
}
.dealer-logo {
  width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 9px; font-weight: 700; color: #fff;
}
.dealer__name { font-size: 13.5px; font-weight: 500; line-height: 1.2; }
.dealer__tag { display: flex; align-items: center; gap: 4px; font-size: 9.5px; color: var(--muted); }
.dealer__tag svg { width: 10px; height: 10px; }
.price { margin-left: auto; font-size: 18px; font-weight: 600; white-space: nowrap; }
.price small { font-size: 11px; font-weight: 400; color: #505566; }

/* ---------- Collection ---------- */
.result-note { font-size: 13px; color: var(--muted); margin: -8px 0 14px; }
.collection { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ccard {
  background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s; cursor: pointer;
}
.ccard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(20, 30, 60, .35); }
.ccard__body { padding: 16px 16px 6px; }
.ccard__name { font-size: 16.5px; font-weight: 600; line-height: 1.2; }
.ccard__sub { font-size: 12px; color: var(--muted); }
.ccard__img { height: 106px; display: grid; place-items: center; margin-top: 4px; }
.ccard__img svg, .ccard__img img { width: 90%; max-width: 250px; }
.ccard__foot {
  border-top: 1px solid var(--line); padding: 12px 16px; margin-top: auto;
  display: flex; align-items: center; gap: 10px;
}
.specs { display: flex; gap: 10px; font-size: 11px; color: #4a4f5e; }
.spec { display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.spec svg { width: 12px; height: 12px; color: var(--accent); }
.ccard__price { margin-left: auto; font-size: 15.5px; font-weight: 600; text-align: right; line-height: 1.1; white-space: nowrap; }
.ccard__price small { display: block; font-size: 9.5px; font-weight: 400; color: var(--muted); }

.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 50px 0; }

/* car images */
.car-img { width: 100%; height: auto; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .18)); }

/* ================= FOOTER ================= */
.footer { background: var(--page); border-top: 1px solid var(--line); padding: 22px 0 30px; font-size: 12px; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1000px) {
  .container { padding: 0 24px; }
  .topbar__inner { gap: 20px; }
  .nav__link { padding: 8px 12px; }
  .nav__link svg { display: none; }
  .collection { grid-template-columns: repeat(2, 1fr); }
  .search { flex-direction: column; }
  .search__fields { grid-template-columns: repeat(2, 1fr); }
  .field:nth-child(3) { border-left: 0; }
  .field:nth-child(n+3) { border-top: 1px solid var(--line); }
  .search__btn { width: 100%; height: 54px; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .topbar__inner { justify-content: space-between; }
  .menu-toggle { display: block; }
  .topbar__actions { gap: 16px; }
  .popular { grid-template-columns: 1fr; }
  .pcard__top { height: 200px; }
  .pcard__car { width: 62%; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .hero { border-radius: 26px 26px 0 0; }
  .hero__title { font-size: 19px; }
  .search__fields { grid-template-columns: 1fr; }
  .field + .field { border-left: 0; border-top: 1px solid var(--line); }
  .collection { grid-template-columns: 1fr; }
  .section-title { font-size: 20px; }
  .see-all { font-size: 13px; }
  .pcard__car { width: 80%; }
  .watermark { font-size: 34px; }
}

/* =========================================================
   SHARED (multi-page)
   ========================================================= */
.status--green { color: var(--green); }
.status--blue { color: var(--accent); }
a.pcard, a.ccard { color: inherit; }

/* mobile nav drawer */
.mobile-nav { display: none; }
@media (max-width: 820px) {
  .topbar.is-open .mobile-nav {
    display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 0;
  }
  .mobile-nav .nav__link { padding: 12px 14px; font-size: 16px; }
  .mobile-nav .nav__link svg { display: block; }
  .mobile-nav .badge { position: static; transform: none; margin-left: auto; border: 0; }
}

/* collection card extras */
.ccard__row { display: flex; align-items: flex-start; gap: 10px; }
.ccard__row > div { flex: 1; min-width: 0; }
.ccard__pills { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0 8px; }
.pill {
  font-size: 10.5px; padding: 3px 9px; border-radius: 999px; background: var(--page); color: #4a4f5e; white-space: nowrap;
}
.pill--green { background: var(--blue-bright-soft); color: var(--green); }
.pill--blue { background: var(--blue-soft); color: var(--accent); }
.pill--red { background: #fde8ec; color: #e0344b; }

.save {
  width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--page); color: #8a8f9c; transition: color .2s, background .2s, transform .15s;
}
.save svg { width: 16px; height: 16px; }
.save:hover { color: #e0344b; }
.save:active { transform: scale(.9); }
.save.is-saved { color: #e0344b; background: #fde8ec; }
.save.is-saved svg { fill: currentColor; }
.save--lg { width: 40px; height: 40px; background: #fff; }
.save--lg svg { width: 18px; height: 18px; }

.link-btn { color: var(--accent); font-size: 13px; }
.link-btn:hover { text-decoration: underline; }

.empty strong { display: block; color: var(--ink); font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.empty p { margin-bottom: 12px; }

/* =========================================================
   CARS PAGE
   ========================================================= */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.page-head .hero__title { margin-bottom: 2px; }
.page-sub { font-size: 13.5px; color: var(--muted); }

.search__fields--bar { grid-template-columns: 1fr 230px; }
input.field__input { cursor: text; font-weight: 500; }
input.field__input::placeholder { color: #a2a6b2; font-weight: 400; }
input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }

.browse { display: grid; grid-template-columns: 250px 1fr; gap: 20px; align-items: start; }

.filters {
  background: #fff; border-radius: var(--radius); padding: 18px; position: sticky; top: 16px;
  max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: thin;
}
.filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.filters__head h2 { font-size: 17px; font-weight: 600; }
.filters__close, .filters__apply { display: none; }

.fgroup { padding: 14px 0; border-top: 1px solid var(--line); }
.fgroup:first-of-type { border-top: 0; }
.fgroup__title { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .4px; color: #585d6b; margin-bottom: 10px; }

.checklist { display: flex; flex-direction: column; gap: 2px; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.check:hover { background: var(--page); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box {
  width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid #c9ccd5; flex: none; display: grid; place-items: center;
  transition: background .15s, border-color .15s;
}
.check input:checked + .check__box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .check__box::after {
  content: ""; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px);
}
.check input:focus-visible + .check__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check__logo { width: 20px; height: 20px; display: grid; place-items: center; }
.check__logo img { width: 100%; height: 100%; object-fit: contain; }
.check__logo .dealer-logo { width: 20px; height: 20px; font-size: 8px; }
.check__label { flex: 1; }
.check__count { font-size: 11.5px; color: var(--muted); background: var(--page); border-radius: 999px; padding: 1px 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: #3d4250;
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: #c4c8d2; }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

.range input { width: 100%; accent-color: var(--ink); cursor: pointer; }
.range__labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; }
.range__labels strong { color: var(--ink); font-weight: 600; }

.switch { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch__track { width: 36px; height: 20px; border-radius: 999px; background: #d5d8e0; position: relative; transition: background .2s; flex: none; }
.switch__track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s;
}
.switch input:checked + .switch__track { background: var(--green); }
.switch input:checked + .switch__track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 2px; }

.results { min-width: 0; }
.results__bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; min-height: 34px; }
.results__count { font-size: 15px; color: #4a4f5e; margin-right: 4px; }
.results__count strong { color: var(--ink); font-weight: 600; }
.active-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.achip {
  display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line);
  padding: 5px 8px 5px 12px; border-radius: 999px; font-size: 12.5px;
}
.achip svg { width: 12px; height: 12px; color: var(--muted); }
.achip:hover { border-color: #c4c8d2; }
.achip:hover svg { color: #e0344b; }
.filters-btn {
  display: none; align-items: center; gap: 6px; margin-left: auto; background: #fff; border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
}
.filters-btn svg { width: 16px; height: 16px; }

.collection--3 { grid-template-columns: repeat(3, 1fr); }
.scrim { display: none; }

@media (max-width: 1000px) {
  .browse { grid-template-columns: 1fr; }
  .filters-btn { display: flex; }
  .filters {
    position: fixed; z-index: 50; top: 0; left: 0; bottom: 0; width: min(340px, 88vw); max-height: none;
    border-radius: 0 20px 20px 0; transform: translateX(-105%); transition: transform .3s ease;
    padding-bottom: 80px;
  }
  .filters-open .filters { transform: none; }
  .filters__close { display: grid; place-items: center; width: 32px; height: 32px; margin-left: 8px; }
  .filters__close svg { width: 20px; height: 20px; }
  .filters__head .link-btn { margin-left: auto; }
  .filters__apply {
    display: block; position: fixed; left: 18px; right: 18px; bottom: 16px; height: 48px; border-radius: 12px;
    background: var(--brand); font-weight: 500; width: calc(min(340px, 88vw) - 36px);
  }
  .scrim { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(11, 15, 30, .45); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .filters-open .scrim { opacity: 1; pointer-events: auto; }
  .filters-open { overflow: hidden; }
  .collection--3 { grid-template-columns: repeat(2, 1fr); }
  .search--bar { flex-direction: row; }
  .search--bar .search__btn { width: 120px; height: auto; }
}
@media (max-width: 560px) {
  .search__fields--bar { grid-template-columns: 1fr; }
  .search--bar { flex-direction: column; }
  .search--bar .search__btn { width: 100%; height: 50px; }
  .collection--3 { grid-template-columns: 1fr; }
}

/* =========================================================
   CAR DETAIL PAGE
   ========================================================= */
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.crumbs svg { width: 12px; height: 12px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { color: var(--ink); }

.detail { display: grid; grid-template-columns: 1.45fr 1fr; gap: 28px; }
.detail__media { min-width: 0; }

.stage {
  position: relative; border-radius: var(--radius-lg); background: var(--tint); height: 380px; overflow: hidden;
}
.stage__top { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.stage__top .status { margin: 0; font-size: 12px; padding: 7px 14px; }
.stage__actions { display: flex; gap: 8px; }
.stage__wm {
  position: absolute; left: 0; right: 0; top: 90px; text-align: center; font-size: 96px; font-weight: 800;
  letter-spacing: 8px; text-transform: uppercase; color: rgba(255,255,255,.6); white-space: nowrap; overflow: hidden;
}
.stage__car { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); width: 82%; z-index: 1; }

.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.spec-tile { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.spec-tile span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.spec-tile strong { display: block; font-size: 14.5px; font-weight: 500; margin-top: 2px; }

.detail__brand { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.detail__title { font-size: 34px; font-weight: 600; letter-spacing: -0.6px; line-height: 1.1; margin-top: 10px; }
.detail__sub { color: var(--muted); font-size: 14px; margin-top: 4px; }

.price-box { margin-top: 22px; padding: 18px; border-radius: 14px; background: var(--page); }
.price-box__label { font-size: 12px; color: var(--muted); }
.price-box__value { display: block; font-size: 30px; font-weight: 600; letter-spacing: -0.5px; }
.price-box__note { font-size: 12px; color: var(--muted); }

.cta { display: flex; gap: 8px; margin-top: 16px; }
.cta__primary {
  flex: 1.3; height: 52px; border-radius: 12px; background: var(--brand); font-weight: 500; font-size: 15px; transition: background .2s;
}
.cta__primary:hover { background: var(--brand-hover); }
.cta__primary:disabled { background: #eceef2; color: var(--muted); cursor: not-allowed; }
.cta__ghost {
  flex: 1; height: 52px; border-radius: 12px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 500; font-size: 15px; transition: border-color .2s;
}
.cta__ghost svg { width: 18px; height: 18px; }
.cta__ghost:hover { border-color: var(--ink); }
.cta__wa {
  width: 52px; height: 52px; border-radius: 12px; background: #25d366; color: #fff; display: grid; place-items: center; flex: none;
}
.cta__wa svg { width: 24px; height: 24px; }

.dealer-card {
  margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  transition: border-color .2s;
}
.dealer-card:hover { border-color: #c4c8d2; }
.dealer-card > svg { width: 16px; height: 16px; margin-left: auto; color: var(--muted); }
.dealer-logo--lg { width: 38px; height: 38px; font-size: 13px; }

.info-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 38px; }
.panel { background: #fff; border-radius: var(--radius); padding: 22px; }
.panel__title { font-size: 18px; font-weight: 600; margin-bottom: 16px; }

.steps { list-style: none; }
.step { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step.is-done::before { background: var(--green); }
.step__dot {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid #d5d8e0; background: #fff; flex: none; display: grid; place-items: center;
}
.step__dot svg { width: 14px; height: 14px; color: #fff; display: block; }
.step.is-done .step__dot { background: var(--green); border-color: var(--green); }
.step.is-current .step__dot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--blue-soft); }
.step.is-current .step__dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.step strong, .included strong { display: block; font-size: 14.5px; font-weight: 500; }
.step div span, .included div span { display: block; font-size: 12.5px; color: var(--muted); }
.step:not(.is-done):not(.is-current) strong { color: var(--muted); }

.included { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.included li { display: flex; gap: 12px; }
.included__tick { width: 24px; height: 24px; border-radius: 8px; background: var(--blue-bright-soft); color: var(--green); display: grid; place-items: center; flex: none; }
.included__tick svg { width: 14px; height: 14px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--blue-deep); color: #fff;
  padding: 14px 20px; border-radius: 12px; font-size: 14px; max-width: calc(100vw - 32px); opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; z-index: 100; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1000px) {
  .detail { grid-template-columns: 1fr; gap: 20px; }
  .detail__media { display: contents; }
  .stage, .gallery { order: 1; }
  .detail__info { order: 2; }
  .spec-grid { order: 3; margin-top: 0; }
  .info-cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stage { height: 260px; }
  .stage__wm { font-size: 56px; top: 80px; }
  .stage__car { width: 92%; bottom: 20px; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .detail__title { font-size: 28px; }
  .cta { flex-wrap: wrap; }
  .cta__primary { flex-basis: 100%; }
}

/* =========================================================
   DEALERS PAGE
   ========================================================= */
.pcard--green { --tint: #E8EDFE; --tint-2: #D3DDFD; }
.search__fields--3 { grid-template-columns: 1.4fr 1fr 1fr; }
.section-head--spaced { margin-top: 44px; }

.seg {
  display: flex; gap: 4px; background: #fff; padding: 4px; border-radius: 999px; border: 1px solid var(--line);
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg__btn { flex: none; white-space: nowrap; padding: 8px 16px; border-radius: 999px; font-size: 13.5px; color: #4a4f5e; transition: background .2s, color .2s; }
.seg__btn:hover { color: var(--ink); }
.seg__btn.is-on { background: var(--ink); color: #fff; }

.dealers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.dcard {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .3s; scroll-margin-top: 20px;
}
.dcard.is-target { box-shadow: 0 0 0 3px var(--brand); }
.dcard__top { background: var(--tint); padding: 18px 18px 6px; }
.dcard__head { display: flex; align-items: center; gap: 12px; }
.dcard__logo {
  width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 16px; letter-spacing: .5px;
}
.dcard__id { flex: 1; min-width: 0; }
.dcard__name { font-size: 19px; font-weight: 600; line-height: 1.2; }
.dcard__head .dealer__tag { font-size: 12px; }
.dcard__head .dealer__tag svg { width: 12px; height: 12px; }
.rating {
  display: flex; align-items: center; gap: 4px; background: #fff; border-radius: 999px; padding: 6px 12px;
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
.rating svg { width: 14px; height: 14px; color: var(--brand); }
.rating small { font-weight: 400; font-size: 11.5px; color: var(--muted); }

.dcard__cars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.dcard__car { display: block; padding: 6px 4px; border-radius: 12px; transition: background .2s; }
.dcard__car:hover { background: rgba(255,255,255,.55); }

.dcard__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.dstats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 12px; }
.dstats div { padding: 10px 12px; }
.dstats div + div { border-left: 1px solid var(--line); }
.dstats strong { display: block; font-size: 17px; font-weight: 600; }
.dstats span { font-size: 11px; color: var(--muted); }
.dcard__about { font-size: 13.5px; color: #4a4f5e; line-height: 1.5; }
.dcard__brands { display: flex; flex-wrap: wrap; gap: 6px; }
.dbrand { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; background: var(--page); font-size: 12.5px; }
.dbrand__logo { width: 18px; height: 18px; display: grid; place-items: center; }
.dbrand__logo img { width: 100%; height: 100%; object-fit: contain; }
.dbrand__logo .dealer-logo { width: 18px; height: 18px; font-size: 7px; }
.dcard__meta { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: #4a4f5e; }
.dcard__meta li { display: flex; align-items: center; gap: 6px; }
.dcard__meta svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

.cta--sm { margin-top: auto; }
.cta--sm .cta__primary, .cta--sm .cta__ghost { height: 46px; font-size: 14px; }
.cta--sm .cta__wa { width: 46px; height: 46px; }
a.cta__primary { display: flex; align-items: center; justify-content: center; }

.verify { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.verify__item { background: #fff; border-radius: var(--radius); padding: 20px; }
.verify__num {
  width: 30px; height: 30px; border-radius: 10px; background: var(--brand); display: grid; place-items: center;
  font-weight: 600; font-size: 14px; margin-bottom: 12px;
}
.verify__item h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.verify__item p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.join {
  margin-top: 14px; background: var(--blue-deep); color: #fff; border-radius: var(--radius-lg); padding: 28px 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.join h2 { font-size: 21px; font-weight: 600; }
.join p { color: #a8adbd; font-size: 14px; margin-top: 4px; }
.join__btn {
  background: var(--brand); color: var(--ink); padding: 14px 24px; border-radius: 12px; font-weight: 500; white-space: nowrap;
  transition: background .2s;
}
.join__btn:hover { background: var(--brand-hover); }

@media (max-width: 1000px) {
  .dealers { grid-template-columns: 1fr; }
  .search__fields--3 { grid-template-columns: 1fr 1fr; }
  .search__fields--3 .field:first-child { grid-column: 1 / -1; }
  .search__fields--3 .field:nth-child(2) { border-left: 0; border-top: 1px solid var(--line); }
  .search__fields--3 .field:nth-child(3) { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .search__fields--3 { grid-template-columns: 1fr; }
  .search__fields--3 .field:nth-child(3) { border-left: 0; }
  .dstats { grid-template-columns: repeat(2, 1fr); }
  .dstats div:nth-child(3) { border-left: 0; }
  .dstats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .verify { grid-template-columns: 1fr; }
  .join { flex-direction: column; align-items: flex-start; padding: 24px; }
  .section-head { flex-wrap: wrap; gap: 10px; }
  .rating small { display: none; }
}

/* =========================================================
   WHATSAPP
   ========================================================= */
.cta__wa { transition: background .2s; }
.cta__wa:hover { background: #1ebe5b; }
.cta__wa--wide {
  width: auto; flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 500; font-size: 15px;
}
.cta__wa--wide svg { width: 20px; height: 20px; }
.cta--sm .cta__wa--wide { width: auto; font-size: 14px; }
.cta__note { font-size: 12px; color: var(--muted); margin-top: 8px; text-align: center; }

.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 30; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .7); transition: transform .2s;
}
.wa-fab svg { width: 28px; height: 28px; }
.wa-fab:hover { transform: scale(1.07); }
@media (max-width: 560px) {
  .wa-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .cta__wa--wide { flex-basis: 100%; height: 50px; }
}

/* =========================================================
   IMPORT STATUS PAGE
   ========================================================= */
.search__fields--one { grid-template-columns: 1fr; }
.demo-orders { margin-top: 12px; font-size: 13px; color: var(--muted); }
.demo-orders .link-btn { font-size: 13px; font-weight: 500; }
.muted { font-size: 13px; color: var(--muted); }

.notice {
  background: #fff4e5; border: 1px solid #fbd9a5; border-radius: 14px; padding: 14px 18px; margin-bottom: 28px;
  display: flex; flex-direction: column; gap: 2px; font-size: 14px;
}
.notice span { color: #7a5a24; font-size: 13px; }

.typical { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.typical__item { background: #fff; border-radius: var(--radius); padding: 20px; }
.typical__top { display: flex; justify-content: space-between; align-items: flex-start; }
.typical__item h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.typical__item p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.join__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.join__btn--wa { background: #25d366; color: #fff; display: flex; align-items: center; gap: 8px; }
.join__btn--wa:hover { background: #1ebe5b; }
.join__btn--wa svg { width: 18px; height: 18px; }

/* order header */
.order { display: grid; grid-template-columns: 1fr 1.15fr; background: #fff; border-radius: var(--radius-lg); overflow: hidden; }
.order__media { position: relative; background: var(--tint); min-height: 250px; overflow: hidden; }
.order__wm {
  position: absolute; left: 0; right: 0; top: 40px; text-align: center; font-size: 64px; font-weight: 800; letter-spacing: 6px;
  text-transform: uppercase; color: rgba(255,255,255,.6); white-space: nowrap; overflow: hidden;
}
.order__car { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 84%; }
.order__info { padding: 24px 26px; display: flex; flex-direction: column; }
.order__ids { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order__no { font-size: 12.5px; font-weight: 600; letter-spacing: .5px; background: var(--page); padding: 5px 11px; border-radius: 8px; }
.order__copy { display: flex; align-items: center; gap: 5px; }
.order__copy svg { width: 14px; height: 14px; }
.order__car-name { font-size: 26px; font-weight: 600; letter-spacing: -0.4px; margin-top: 12px; line-height: 1.15; }
.order__meta { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.order__status {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--brand-soft);
}
.order__status strong { display: block; font-size: 16px; font-weight: 600; }
.order__status span { font-size: 13px; color: #4a4f5e; }
.order__pulse {
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent); margin-top: 5px; flex: none;
  box-shadow: 0 0 0 0 rgba(42, 92, 230, .5); animation: pulse 1.8s infinite;
}
.order__pulse.is-done { background: var(--green); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(42, 92, 230, 0); } 100% { box-shadow: 0 0 0 0 rgba(42, 92, 230, 0); } }
.order__foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 18px; }
.order__wa { flex: none; height: 44px; padding: 0 18px; border-radius: 12px; margin-left: auto; font-size: 14px; }

/* horizontal stepper */
.panel--steps { margin: 14px 0; padding: 22px 18px; }
.tsteps { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); }
.tstep { position: relative; text-align: center; padding: 0 4px; }
.tstep::before {
  content: ""; position: absolute; top: 15px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 2px; background: var(--line);
}
.tstep:first-child::before { display: none; }
.tstep.is-done::before, .tstep.is-current::before { background: var(--green); }
.tstep__dot {
  width: 32px; height: 32px; border-radius: 50%; margin: 0 auto 8px; display: grid; place-items: center;
  border: 2px solid #d5d8e0; background: #fff; font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1;
}
.tstep__dot svg { width: 15px; height: 15px; }
.tstep.is-done .tstep__dot { background: var(--green); border-color: var(--green); color: #fff; }
.tstep.is-current .tstep__dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 5px var(--blue-soft); }
.tstep strong { display: block; font-size: 13.5px; font-weight: 600; }
.tstep > span:not(.tstep__dot) { display: block; font-size: 11.5px; color: var(--muted); }
.tstep:not(.is-done):not(.is-current) strong { color: var(--muted); font-weight: 500; }

.track-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: start; }
.track-col { display: flex; flex-direction: column; gap: 14px; }
.panel__row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.panel__row .panel__title { margin-bottom: 0; }

/* shipping route */
.route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.route__end span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.route__end strong { display: block; font-size: 15px; font-weight: 600; }
.route__end small { font-size: 12px; color: var(--muted); }
.route__end--right { text-align: right; }
.route__track { position: relative; height: 40px; }
.route__line { position: absolute; left: 0; right: 0; top: 50%; height: 3px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, #cfd3dc 0 6px, transparent 6px 12px); border-radius: 3px; }
.route__fill { height: 100%; background: var(--accent); border-radius: 3px; }
.route__ship {
  position: absolute; top: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent); color: var(--accent); display: grid; place-items: center;
  box-shadow: 0 6px 14px -6px rgba(42, 92, 230, .6);
}
.route__ship svg { width: 20px; height: 20px; }
.route__note { margin-top: 12px; font-size: 13.5px; color: #4a4f5e; }
.vessel { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; }
.vessel div { padding: 10px 14px; }
.vessel div + div { border-left: 1px solid var(--line); }
.vessel span { display: block; font-size: 11px; color: var(--muted); }
.vessel strong { font-size: 14px; font-weight: 500; }

/* updates log */
.log { list-style: none; }
.log li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.log li:first-child { border-top: 0; padding-top: 0; }
.log time { font-size: 12.5px; color: var(--muted); padding-top: 2px; }
.log strong { font-size: 14.5px; font-weight: 500; }
.log p { font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.log li.is-latest strong { color: var(--accent); }

/* documents */
.docs { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.docs li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.docs__icon { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--page); color: var(--muted); }
.docs__icon svg { width: 14px; height: 14px; }
.docs li.is-ok .docs__icon { background: var(--blue-bright-soft); color: var(--green); }
.docs__name { flex: 1; }
.docs li:not(.is-ok) .docs__name { color: var(--muted); }
.docs__state { font-size: 11.5px; color: var(--muted); }
.docs li.is-ok .docs__state { color: var(--green); }

/* payment */
.pay__bar { height: 8px; border-radius: 999px; background: var(--page); overflow: hidden; }
.pay__bar div { height: 100%; background: var(--green); border-radius: 999px; }
.pay__sum { display: flex; justify-content: space-between; margin: 10px 0 16px; }
.pay__sum span { display: block; font-size: 11.5px; color: var(--muted); }
.pay__sum strong { font-size: 17px; font-weight: 600; }
.pay__sum div:last-child { text-align: right; }
.pay { list-style: none; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.pay li { display: flex; align-items: center; gap: 10px; }
.pay li div { flex: 1; }
.pay strong { display: block; font-size: 13.5px; font-weight: 500; }
.pay span { font-size: 12px; color: var(--muted); }
.pay b { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.pay__dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #d5d8e0; flex: none; display: grid; place-items: center; }
.pay__dot svg { width: 11px; height: 11px; color: #fff; }
.pay__dot.is-ok { background: var(--green); border-color: var(--green); }

@media (max-width: 1000px) {
  .order { grid-template-columns: 1fr; }
  .track-cols { grid-template-columns: 1fr; }
  .typical { grid-template-columns: repeat(2, 1fr); }
  .tsteps { grid-template-columns: 1fr; gap: 0; }
  .tstep { display: grid; grid-template-columns: 32px 1fr; column-gap: 14px; text-align: left; padding: 0 0 16px; }
  .tstep::before { left: 15px; right: auto; top: -16px; height: 16px; width: 2px; }
  .tstep__dot { margin: 0; grid-row: span 2; }
  .tstep:last-child { padding-bottom: 0; }
}
@media (max-width: 560px) {
  .typical { grid-template-columns: 1fr; }
  .order__media { min-height: 190px; }
  .order__wm { font-size: 44px; top: 30px; }
  .order__info { padding: 20px; }
  .order__car-name { font-size: 22px; }
  .order__foot { flex-wrap: wrap; }
  .order__wa { flex-basis: 100%; margin-left: 0; height: 48px; }
  .route { grid-template-columns: 1fr 1fr; }
  .route__track { grid-column: 1 / -1; grid-row: 2; }
  .route__end--right { grid-row: 1; grid-column: 2; }
  .log li { grid-template-columns: 1fr; gap: 2px; }
  .vessel { grid-template-columns: 1fr 1fr; }
  .vessel div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); grid-column: 1 / -1; }
  .join__actions { width: 100%; }
  .join__actions .join__btn { flex: 1; text-align: center; justify-content: center; }
}

/* =========================================================
   REAL PHOTOS (Otomoto import)
   ========================================================= */
.car-photo { display: block; width: 100%; height: 100%; object-fit: cover; background: #e9ecf2; }

/* collection card photo */
.ccard__img:has(.car-photo) {
  height: auto; aspect-ratio: 4 / 3; margin: 10px -4px 10px; border-radius: 12px; overflow: hidden; display: block;
}
.ccard__img .car-photo { width: 100%; max-width: none; transition: transform .4s ease; }
.ccard:hover .car-photo { transform: scale(1.04); }
.ccard__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccard__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* popular card photo */
.pcard__top--photo { height: auto; padding-bottom: 14px; }
.pcard__photo { margin-top: 12px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; position: relative; z-index: 1; }
.pcard__photo .car-photo { transition: transform .4s ease; }
.pcard:hover .pcard__photo .car-photo { transform: scale(1.04); }
.pcard__head > div { min-width: 0; }
.pcard__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* dealer card showcase + profile menu thumbs */
.dcard__car .car-photo { aspect-ratio: 4 / 3; border-radius: 10px; }
.pmenu__thumb .car-photo { aspect-ratio: 4 / 3; border-radius: 8px; }

/* load-more */
.more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 24px; }
.more p { font-size: 13px; color: var(--muted); }
.more__btn {
  background: #fff; border: 1px solid var(--line); padding: 12px 28px; border-radius: 999px; font-weight: 500; font-size: 14px;
  transition: border-color .2s;
}
.more__btn:hover { border-color: var(--ink); }
.fgroup--switches { display: flex; flex-direction: column; gap: 12px; }

/* ---------- detail: gallery ---------- */
.gallery__main {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: #e9ecf2;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.gallery__status { position: absolute; top: 16px; left: 16px; margin: 0; font-size: 12px; padding: 7px 14px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.gallery__actions { position: absolute; top: 14px; right: 14px; }
.gallery__actions .save--lg { box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.gallery__nav, .gallery__zoom {
  position: absolute; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.15); transition: background .2s, transform .15s;
}
.gallery__nav:hover, .gallery__zoom:hover { background: #fff; }
.gallery__nav:active { transform: scale(.94); }
.gallery__nav svg, .gallery__zoom svg { width: 20px; height: 20px; }
.gallery__nav { top: 50%; margin-top: -21px; }
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }
.gallery__zoom { right: 14px; bottom: 14px; width: 38px; height: 38px; }
.gallery__zoom svg { width: 17px; height: 17px; }
.gallery__count {
  position: absolute; right: 62px; bottom: 20px; background: rgba(11,15,30,.7); color: #fff; font-size: 12px;
  padding: 5px 11px; border-radius: 999px;
}
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.gallery__thumb { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; opacity: .6; transition: opacity .2s, box-shadow .2s; padding: 0; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__thumb:hover { opacity: .9; }
.gallery__thumb.is-on { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(8, 10, 18, .94); display: flex; align-items: center; justify-content: center;
  padding: 50px 70px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lightbox__close, .lightbox__nav {
  position: absolute; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff;
  display: grid; place-items: center; transition: background .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__close svg, .lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav { top: 50%; margin-top: -23px; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #c9ccd5; font-size: 13px; }
.lb-open { overflow: hidden; }

/* ---------- detail: info ---------- */
.detail__ref { margin-left: auto; font-size: 11.5px; letter-spacing: .4px; background: var(--page); padding: 4px 9px; border-radius: 6px; color: #4a4f5e; }
.detail__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.detail__badges .pill { font-size: 12px; padding: 4px 11px; }
.price-box__pln { display: block; font-size: 13px; color: #4a4f5e; margin: 2px 0 6px; }
.price-box__note { display: block; line-height: 1.45; }

.info-cols--wide { grid-template-columns: 1.6fr 1fr; align-items: start; }
.info-main, .info-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.spec-table { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.spec-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-row dt { color: var(--muted); }
.spec-row dd { font-weight: 500; text-align: right; }
.spec-row--warn dd { color: #e0344b; }

.equip { columns: 2; column-gap: 28px; position: relative; }
.equip__group { break-inside: avoid; margin-bottom: 18px; }
.equip__group h3 { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .4px; color: #585d6b; margin-bottom: 8px; }
.equip__group ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.equip__group li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; }
.equip__group li svg { width: 14px; height: 14px; color: var(--green); flex: none; margin-top: 3px; }
.equip.is-collapsed { max-height: 330px; overflow: hidden; }
.equip.is-collapsed::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, #fff);
}
.equip__more { margin-top: 10px; font-size: 14px; font-weight: 500; }

.desc summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer;
}
.desc summary::-webkit-details-marker { display: none; }
.desc summary strong { display: block; font-size: 18px; font-weight: 600; }
.desc summary small { font-size: 12.5px; color: var(--muted); }
.desc summary svg { width: 20px; height: 20px; color: var(--muted); transition: transform .2s; flex: none; }
.desc[open] summary svg { transform: rotate(180deg); }
.desc__body {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); white-space: pre-line; font-size: 14px;
  line-height: 1.6; color: #3d4250; max-height: 520px; overflow-y: auto;
}

@media (max-width: 1000px) {
  .info-cols--wide { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .gallery__main { border-radius: 16px; }
  .gallery__nav { width: 36px; height: 36px; margin-top: -18px; }
  .gallery__thumbs { gap: 6px; }
  .spec-table { grid-template-columns: 1fr; }
  .equip { columns: 1; }
  .lightbox { padding: 60px 8px; }
  .lightbox__nav { top: auto; bottom: 10px; margin-top: 0; }
  .lightbox__count { bottom: 26px; }
}
.dcard__empty { margin-top: 14px; padding: 22px 0 14px; text-align: center; font-size: 13px; color: var(--muted); }
.cta__primary--off { display: flex; align-items: center; justify-content: center; background: #eceef2; color: var(--muted); cursor: default; }
.cta__primary--off:hover { background: #eceef2; }

.order__photo { position: absolute; inset: 0; display: block; }
/* keep the bottom of wide-cropped photos visible so the source watermark isn't cut off */
.pcard__photo .car-photo, .order__photo .car-photo { object-position: center bottom; }

/* =========================================================
   HOMEPAGE COPY SECTIONS
   ========================================================= */

.section-head--stack { flex-direction: column; align-items: flex-start; gap: 2px; }
.section-sub { font-size: 14px; color: var(--muted); margin-top: 2px; }

.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.why__item { background: #fff; border-radius: var(--radius); padding: 22px; }
.why__icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--blue-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 14px;
}
.why__icon svg { width: 22px; height: 22px; }
.why__item h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.why__item p { font-size: 13.5px; color: #5a5f6d; line-height: 1.55; }

.how { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.how__step { background: #fff; border-radius: var(--radius); padding: 22px; position: relative; }
.how__num { display: block; font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .5px; margin-bottom: 10px; }
.how__step h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.how__step p { font-size: 13.5px; color: #5a5f6d; line-height: 1.55; }

.join--spaced { margin-top: 44px; }

.faq { display: flex; flex-direction: column; gap: 8px; }
.faq__item { background: #fff; border-radius: 14px; padding: 0 20px; }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font-size: 15.5px; font-weight: 500;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s; flex: none;
}
.faq__item[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq__item p { font-size: 14px; color: #4a4f5e; line-height: 1.6; padding: 0 0 18px; max-width: 720px; }

.closing {
  margin-top: 44px; text-align: center; padding: 48px 24px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--beige), #FFE3D1 55%, #E8EDFE);
}
.closing h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.4px; }
.closing p { color: #4a4f5e; margin-top: 6px; }
.closing__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

@media (max-width: 1000px) {
  .why { grid-template-columns: repeat(2, 1fr); }
  .how { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .why, .how { grid-template-columns: 1fr; }
  .closing { padding: 36px 20px; }
  .closing h2 { font-size: 21px; }
  .closing__actions .join__btn { flex: 1; text-align: center; justify-content: center; }
}

/* =========================================================
   HOMEPAGE BANNER + QUICK PANEL
   ========================================================= */
.banner {
  position: relative; margin-top: -30px; border-radius: 36px 36px 0 0; overflow: hidden; background: var(--blue-deep);
}
.banner__track { display: flex; }
.slide { flex: 0 0 100%; min-height: 520px; position: relative; overflow: hidden; color: #fff; }
.slide::before {
  content: ""; position: absolute; width: 720px; height: 720px; border-radius: 50%; right: -160px; top: -260px;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 65%);
}
.slide--1 { background: linear-gradient(120deg, #12166B 0%, var(--blue-deep) 55%, #355CF5 130%); }
.slide__inner {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  min-height: 520px; padding-top: 48px; padding-bottom: 150px;
}
.slide__eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 500; letter-spacing: .3px; color: var(--brand);
  background: rgba(85, 212, 248, .12); border: 1px solid rgba(85, 212, 248, .3); padding: 5px 12px; border-radius: 999px;
}
.slide__title { font-size: 50px; font-weight: 700; line-height: 1.06; letter-spacing: -1.2px; margin-top: 16px; }
.slide__title em { font-style: normal; color: var(--brand); }
.slide__text { font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.78); max-width: 470px; margin-top: 16px; }
.slide__btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; padding: 14px 24px; border-radius: 12px;
  background: var(--brand); color: var(--ink); font-weight: 600; transition: background .2s;
}
.slide__btn:hover { background: var(--brand-hover); }
.slide__btn--wa { background: #25d366; color: #fff; }
.slide__btn--wa:hover { background: #1ebe5b; }

.slide__offer {
  display: inline-flex; align-items: center; gap: 22px; margin-top: 26px; padding: 16px 22px;
  background: #fff; color: var(--ink); border-radius: 18px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.5);
}
.offer { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #4a4f5e; }
.offer strong { display: block; font-size: 17px; color: var(--ink); font-weight: 700; }
.offer__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; flex: none; }
.offer__icon svg { width: 22px; height: 22px; color: var(--ink); }
.offer__divider { width: 1px; align-self: stretch; background: var(--line); }

.slide__car {
  display: block; position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); transform: rotate(-1.5deg); transition: transform .4s;
}
.slide__car:hover { transform: rotate(0); }
.slide__car img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; display: block; }
.slide__tag {
  position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.95); color: var(--ink);
  padding: 8px 12px; border-radius: 12px; font-size: 12px; line-height: 1.35;
}
.slide__tag strong { display: block; font-size: 13.5px; }


/* quick panel overlapping the banner */
.quick { position: relative; z-index: 3; margin-top: -116px; background: linear-gradient(transparent 116px, var(--page) 116px); }
.quick__card {
  display: grid; grid-template-columns: 1fr 360px; background: #fff; border-radius: 22px;
  box-shadow: 0 24px 50px -24px rgba(11, 15, 30, .35);
}
.quick__buy { padding: 26px 26px 22px; min-width: 0; }
.quick__import { padding: 26px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.quick__title { display: inline-flex; align-items: center; gap: 4px; font-size: 22px; font-weight: 700; color: var(--blue-deep); margin-bottom: 4px; }
.quick__title svg { width: 18px; height: 18px; }
.quick__title:hover { color: var(--accent); }

.quick__search {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px;
  height: 50px; margin: 10px 0 14px; transition: border-color .2s;
}
.quick__search:focus-within { border-color: var(--accent); }
.quick__search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.quick__search input { flex: 1; border: 0; outline: 0; font-size: 15px; background: transparent; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile {
  position: relative; height: 116px; border-radius: 12px; padding: 12px 14px; overflow: hidden; color: #fff;
  transition: transform .2s, box-shadow .2s;
}
.tile:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(0,0,0,.4); }
.tile--teal { background: linear-gradient(135deg, var(--blue-deep), #3A44C9); }
.tile--violet { background: linear-gradient(135deg, #E04F00, #FF7A2E); }
.tile--coral { background: linear-gradient(135deg, #2A48D0, #5C7BFF); }
.tile--blue { background: linear-gradient(135deg, #12166B, #4A5BE0); }
.tile__label { display: block; font-size: 15px; font-weight: 700; line-height: 1.2; max-width: 100%; position: relative; z-index: 1; }
.tile__count { display: block; font-size: 12px; opacity: .85; margin-top: 2px; position: relative; z-index: 1; }

.brands { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 16px; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 10px; transition: background .2s; }
.brand:hover { background: var(--page); }
.brand__logo { width: 36px; height: 30px; display: grid; place-items: center; }
.brand__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand__logo .dealer-logo { width: 28px; height: 28px; font-size: 10px; }
.brand__name { font-size: 12.5px; color: #3d4250; text-align: center; }
.brand--all .brand__logo { width: 30px; height: 30px; border-radius: 50%; background: var(--page); color: var(--accent); }
.brand--all .brand__logo svg { width: 16px; height: 16px; }

.quick__btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 12px;
  font-weight: 600; font-size: 15px; transition: background .2s;
}
.quick__btn svg { width: 20px; height: 20px; }
.quick__btn--primary { background: var(--brand); color: var(--ink); }
.quick__btn--primary:hover { background: var(--brand-hover); }
.quick__btn--dark { background: var(--blue-deep); color: #fff; }
.quick__btn--dark:hover { background: var(--blue-deep-2); }
.perks {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 4px;
  background: var(--page); border-radius: 12px; padding: 16px 8px;
}
.perks li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12px; color: #3d4250; line-height: 1.3; }
.perks svg { width: 30px; height: 30px; color: var(--blue-deep); }

@media (max-width: 1000px) {
  .slide, .slide__inner { min-height: 460px; }
  .slide__title { font-size: 40px; }
  .slide__inner { grid-template-columns: 1fr 0.8fr; gap: 24px; }
  .slide__offer { flex-direction: column; align-items: flex-start; gap: 12px; }
  .offer__divider { width: 100%; height: 1px; }
  .quick__card { grid-template-columns: 1fr; }
  .quick__import { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .slide__inner { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 144px; }
  .slide__media { display: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .brands { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .banner { border-radius: 26px 26px 0 0; }
  .slide, .slide__inner { min-height: 0; }
  .slide__title { font-size: 32px; letter-spacing: -0.6px; }
  .slide__text { font-size: 14.5px; }
  .slide__offer { padding: 14px 16px; }
  .offer strong { font-size: 15px; }
  .quick__buy, .quick__import { padding: 20px 16px; }
  .quick__title { font-size: 19px; }
  .perks { grid-template-columns: repeat(3, 1fr); padding: 14px 4px; }
}

/* =========================================================
   FULL-WIDTH HEADER + HOMEPAGE BANNER
   ========================================================= */
:root { --edge: clamp(16px, 4vw, 64px); }

/* header spans the whole window on every page */
.topbar .container { max-width: none; padding-left: var(--edge); padding-right: var(--edge); }

/* homepage: banner runs edge to edge straight under the header */
.topbar[data-active="home"] { padding-bottom: 20px; }
.banner { margin-top: 0; border-radius: 0; }
.banner .slide__inner { max-width: none; padding-left: clamp(24px, 7vw, 112px); padding-right: clamp(24px, 7vw, 112px); }
.slide__title { font-size: clamp(32px, 4vw, 60px); }
@media (min-width: 1600px) {
  .slide__inner { grid-template-columns: 1fr 1fr; gap: 72px; }
}
@media (max-width: 1000px) {
  .banner .slide__inner { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 560px) {
  .banner { border-radius: 0; }
  .banner .slide__inner { padding-left: 16px; padding-right: 16px; }
}
.slide__media { display: flex; justify-content: flex-end; }
.slide__car { width: 100%; max-width: 640px; }
@media (max-width: 720px) { .slide__media { display: none; } }

/* =========================================================
   BRAND COLOUR OVERRIDES
   ========================================================= */
.logo__mark { color: var(--brand); }
.badge { background: var(--brand); }

/* white text on every orange button */
.search__btn, .cta__primary:not(.cta__primary--off):not(:disabled), .join__btn:not(.join__btn--wa), .slide__btn:not(.slide__btn--wa),
.quick__btn--primary, .verify__num, .filters__apply, .more__btn:hover { color: #fff; }
.offer__icon { background: var(--brand); }
.offer__icon svg { color: #fff; }
.more__btn:hover { background: var(--brand); border-color: var(--brand); }

/* banner accents */
.slide__eyebrow { color: #B9C8FF; background: rgba(53, 92, 245, .2); border-color: rgba(150, 172, 255, .5); }
.slide__title em { color: var(--brand); }

/* progress and live states use the brand orange */
.step.is-current .step__dot { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.step.is-current .step__dot::after { background: var(--brand); }
.tstep.is-current .tstep__dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
.route__fill { background: var(--brand); }
.route__ship { border-color: var(--brand); color: var(--brand); box-shadow: 0 6px 14px -6px rgba(255, 93, 0, .6); }
.order__pulse { background: var(--brand); animation-name: pulse-brand; }
@keyframes pulse-brand { 70% { box-shadow: 0 0 0 9px rgba(255, 93, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 93, 0, 0); } }
.order__pulse.is-done { background: var(--blue-bright); }
.log li.is-latest strong { color: var(--brand); }

/* success = bright blue */
.step.is-done .step__dot, .tstep.is-done .tstep__dot, .pay__dot.is-ok { background: var(--blue-bright); border-color: var(--blue-bright); }
.step.is-done::before, .tstep.is-done::before, .tstep.is-current::before { background: var(--blue-bright); }
.pay__bar div, .switch input:checked + .switch__track { background: var(--blue-bright); }

/* selected filters and active chips in deep blue */
.chip.is-on, .seg__btn.is-on, .check input:checked + .check__box { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.range input { accent-color: var(--brand); }
.gallery__thumb.is-on { box-shadow: 0 0 0 2px var(--brand); }
.dcard.is-target { box-shadow: 0 0 0 3px var(--brand); }
.quick__search:focus-within { border-color: var(--brand); }

/* =========================================================
   ORANGE HEADER
   ========================================================= */
.topbar { background: var(--brand); }
.logo__mark { color: var(--blue-deep); }
.nav__link { color: rgba(255, 255, 255, .9); }
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.nav__link.is-active { background: #fff; color: var(--blue-deep); }
.badge { background: var(--blue-deep); border-color: var(--brand); }
.btn-icon .dot { border-color: var(--brand); }
.profile { background: rgba(0, 0, 0, .14); }
.profile[aria-expanded="true"] { background: rgba(0, 0, 0, .24); }
.avatar { background: linear-gradient(135deg, var(--blue-deep), var(--blue-bright)); }
.avatar__badge { background: var(--blue-deep); border-color: var(--brand); }
.mobile-nav .nav__link.is-active { color: var(--blue-deep); }

/* =========================================================
   HERO BANNER IMAGE
   ========================================================= */
.slide--1 {
  background:
    linear-gradient(90deg, rgba(14, 18, 74, .88) 0%, rgba(14, 18, 74, .62) 32%, rgba(14, 18, 74, 0) 58%),
    linear-gradient(0deg, rgba(14, 18, 74, .35), rgba(14, 18, 74, 0) 35%),
    url("images/hero-banner.jpg") 70% center / cover no-repeat,
    var(--blue-deep);
}
.slide--1::before { display: none; }
.slide--1 .slide__inner { grid-template-columns: minmax(0, 620px) 1fr; }
.slide--1 .slide__title { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }

@media (max-width: 720px) {
  .slide--1 {
    background:
      linear-gradient(180deg, rgba(14, 18, 74, .9) 0%, rgba(14, 18, 74, .78) 50%, rgba(14, 18, 74, .45) 100%),
      url("images/hero-banner-sm.jpg") 68% center / cover no-repeat,
      var(--blue-deep);
  }
}

/* =========================================================
   BODY-TYPE ICONS
   ========================================================= */
.body-icon { display: block; width: 100%; height: auto; }

.quick__label { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin: 14px 0 8px; }
.bodies { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.body {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px 10px;
  border: 1px solid var(--line); border-radius: 12px; color: var(--blue-deep); transition: border-color .2s, background .2s, color .2s;
}
.body .body-icon { width: 64px; }
.body:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.body__name { font-size: 13px; font-weight: 500; color: var(--ink); }
.body__count { font-size: 11px; color: var(--muted); }

/* Cars page body-type chips */
#fBodies { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
#fBodies .chip {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border-radius: 12px;
  color: var(--blue-deep); font-size: 12.5px;
}
#fBodies .chip .body-icon { width: 54px; }
#fBodies .chip span { color: var(--ink); }
#fBodies .chip.is-on { color: #fff; }
#fBodies .chip.is-on span { color: #fff; }

.footer__credit { flex-basis: 100%; font-size: 11px; opacity: .8; }

/* =========================================================
   LOGO
   ========================================================= */
.logo { color: #fff; }
.logo__word { display: block; height: 22px; width: auto; }
@media (max-width: 560px) { .logo__word { height: 18px; } }

/* =========================================================
   PHOTO DASHBOARD (admin.html)
   ========================================================= */
.admin-grid { display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; }
.admin-list { background: #fff; border-radius: var(--radius); padding: 16px; position: sticky; top: 16px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.admin-search { margin: 0 0 10px; height: 44px; }
.admin-seg { margin-bottom: 8px; align-self: flex-start; }
.admin-list > .muted { margin: 2px 2px 8px; }
.admin-cars { list-style: none; overflow-y: auto; margin: 0 -6px; padding: 0 6px; flex: 1; }
.admin-car {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px; border-radius: 12px;
  transition: background .15s;
}
.admin-car:hover { background: var(--page); }
.admin-car.is-on { background: var(--blue-soft); box-shadow: inset 0 0 0 1.5px var(--blue-deep); }
.admin-car__thumb { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--page); }
.admin-car__thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-car__thumb .car-img { width: 92%; filter: none; }
.admin-car__text { flex: 1; min-width: 0; }
.admin-car__text strong { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-car__text small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-car .pill { flex: none; }

.admin-editor { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.admin-editor > .empty { background: #fff; border-radius: var(--radius); }
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.admin-head .panel__title { margin-bottom: 2px; }
.admin-head .link-btn { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.admin-head .link-btn svg { width: 14px; height: 14px; }

.admin-rights { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; border-radius: 12px; background: var(--page); margin-bottom: 14px; }
.admin-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.admin-field select, .admin-field input {
  height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; color: var(--ink);
}
.admin-check { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.admin-check input { width: 18px; height: 18px; accent-color: var(--brand); }

.drop {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 34px 20px;
  border: 2px dashed #d8cfc2; border-radius: 16px; cursor: pointer; color: var(--muted); transition: border-color .2s, background .2s;
}
.drop svg { width: 34px; height: 34px; color: var(--brand); }
.drop strong { color: var(--ink); font-size: 15.5px; }
.drop span { font-size: 12.5px; }
.drop:hover, .drop.is-over { border-color: var(--brand); background: var(--brand-soft); }
.admin-progress { font-size: 13px; color: var(--muted); margin-top: 10px; min-height: 18px; }

.admin-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.admin-photo { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.admin-photo__img { position: relative; aspect-ratio: 4 / 3; background: var(--page); }
.admin-photo__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-photo__cover { position: absolute; top: 8px; left: 8px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.admin-photo figcaption { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.admin-photo select { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font-size: 13px; background: #fff; }
.admin-photo__tools { display: flex; gap: 6px; align-items: center; }
.admin-photo__tools button { height: 30px; min-width: 30px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; padding: 0 8px; }
.admin-photo__tools button:hover:not(:disabled) { border-color: var(--blue-deep); color: var(--blue-deep); }
.admin-photo__tools button:disabled { opacity: .35; cursor: default; }
.admin-photo__tools svg { width: 15px; height: 15px; }
.admin-photo__cover-btn { flex: 1; }
.admin-photo__del { margin-left: auto; }
.admin-photo__del:hover { border-color: #e0344b !important; color: #e0344b !important; }

.notice code { background: rgba(0,0,0,.06); padding: 1px 6px; border-radius: 4px; }

@media (max-width: 1000px) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-list { position: static; max-height: 420px; }
  .admin-rights { grid-template-columns: 1fr; }
}
.notice[hidden] { display: none; }
.admin-search, .admin-seg, .admin-list > .muted { flex: none; }

/* site-wide notice above the header */
.site-notice {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; text-align: center;
  background: var(--blue-deep); color: #fff; font-size: 12.5px; line-height: 1.4;
  padding-block: 8px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.site-notice__tag { background: var(--brand); padding: 1px 9px; border-radius: 999px; font-weight: 600; font-size: 11.5px; }

/* single WhatsApp action on the car page */
.cta--single .cta__wa--main { flex: 1; height: 56px; font-size: 16px; font-weight: 600; border-radius: 14px; }
.cta--single .cta__wa--main svg { width: 22px; height: 22px; }
.example-note { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--brand-soft); }
.example-note strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 2px; }
.example-note p { font-size: 13px; line-height: 1.5; color: #5a4a3e; }

/* model reference photo credit */
.photo-credit { font-size: 11.5px; line-height: 1.5; color: var(--muted); margin-top: 8px; }
.photo-credit a, .footer__credit a { color: inherit; text-decoration: underline; }
.credits { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.credit { background: #fff; border-radius: var(--radius); overflow: hidden; }
.credit img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.credit div { padding: 12px 14px; font-size: 12.5px; line-height: 1.5; color: #4a4f5e; }
.credit strong { display: block; font-size: 14px; color: var(--ink); }
.credit a { color: var(--accent); }

/* =========================================================
   BRAND WALL (full width, above the closing banner)
   ========================================================= */
.brandwall { margin-top: 44px; overflow: hidden; }
.brandwall__head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 20px; }
.brandwall__rows { display: flex; flex-direction: column; gap: 12px; padding-block: 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.bw-row { overflow: hidden; }
.bw-track { display: flex; width: max-content; animation: bw-scroll 40s linear infinite; }
.bw-row--rev .bw-track { animation-direction: reverse; animation-duration: 46s; }
.brandwall__rows:hover .bw-track { animation-play-state: paused; }
.bw-set { display: flex; gap: 12px; padding-right: 12px; }
@keyframes bw-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.bw-tile {
  flex: none; width: 132px; height: 112px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.bw-tile:hover, .bw-tile:focus-visible { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 10px 22px -14px rgba(255, 93, 0, .6); }
.bw-tile__logo { width: 52px; height: 40px; display: grid; place-items: center; }
.bw-tile__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bw-tile__name { font-size: 12.5px; color: #3d4250; }
@media (prefers-reduced-motion: reduce) {
  .bw-track { animation: none; }
  .bw-row { overflow-x: auto; }
}
@media (max-width: 560px) {
  .bw-tile { width: 104px; height: 92px; gap: 8px; }
  .bw-tile__logo { width: 42px; height: 32px; }
}

/* =========================================================
   MICRO POLISH: spacing, alignment, consistency
   ========================================================= */
/* section headers: link sits on the same baseline as the last line of the heading block */
.section-head { align-items: flex-end; gap: 16px; }
.section-head--stack { align-items: flex-start; }
.section-title { line-height: 1.2; }
.section-sub { line-height: 1.45; }
.see-all { white-space: nowrap; padding-bottom: 2px; }

/* car cards: one footer layout everywhere, price never clipped */
.ccard__body { padding: 16px 16px 4px; }
.ccard__row { min-height: 40px; }
.ccard__pills { min-height: 22px; margin: 0 0 12px; }
.ccard__foot { flex-wrap: wrap; row-gap: 6px; column-gap: 12px; padding: 12px 16px 14px; align-items: center; }
.specs { gap: 10px; flex-wrap: wrap; min-width: 0; }
.ccard__price { margin-left: auto; font-size: 15px; }
.ccard__price small { margin-top: 2px; }

/* popular cards: same header height and footer rhythm on all three */
.pcard__head { min-height: 44px; align-items: center; }
.pcard__logo { width: 30px; height: 30px; }
.pcard__foot { padding: 14px 16px; }
.pcard__foot .dealer__name { font-size: 13.5px; font-weight: 600; }
.pcard__foot .dealer__tag { font-size: 11px; }
.price { font-size: 17px; }

/* quick panel: right column fills the card height, perks sit at the bottom */
.quick__import { gap: 12px; }
.quick__import .perks { margin-top: auto; }
.quick__title { line-height: 1.2; }
.brand__logo { width: 40px; height: 30px; }
.bodies { gap: 10px; }

/* why / how cards: equal heights, same inner rhythm */
.why, .how { align-items: stretch; }
.why__item, .how__step { display: flex; flex-direction: column; }
.why__item h3, .how__step h3 { line-height: 1.3; }

/* FAQ chevron: centred on the question in both states */
.faq__item summary::after { transform: rotate(45deg); margin-top: -4px; }
.faq__item[open] summary::after { transform: rotate(225deg); margin-top: 4px; }

/* brand wall + closing banner spacing matches other sections */
.brandwall { margin-top: 56px; }
.closing { margin-top: 48px; }
.join--spaced { margin-top: 48px; }
.brand__logo img, .bw-tile__logo img, .pcard__logo img, .check__logo img { object-fit: contain; }
.bw-tile__logo { width: 48px; height: 36px; }

/* car page: tidy right column spacing */
.detail__info .cta { margin-top: 16px; }
.price-box { margin-top: 18px; }
.photo-credit { margin-top: 10px; }
.spec-grid { margin-top: 14px; }

/* footer: consistent rhythm */
.footer__inner { row-gap: 8px; align-items: baseline; }

@media (max-width: 720px) {
  /* body types: one swipeable row instead of a lonely last tile */
  .bodies { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
  .bodies::-webkit-scrollbar { display: none; }
  .body { flex: none; width: 92px; }
  /* brand grid: 12 logos fill 3 full rows; the title link already goes to all cars */
  .brand--all { display: none; }
}
@media (max-width: 560px) {
  .site-notice__tag { display: none; }
  .site-notice { font-size: 12px; }
  .section-head { flex-wrap: wrap; align-items: flex-start; }
  .ccard__price { font-size: 16px; }
}

/* polish, round 2 */
.section-head--stack { gap: 4px; }
.quick__import .perks { margin-top: 4px; }
.brand { gap: 8px; }

/* card footer: specs on one line, price on its own line, same on every card */
.ccard__foot { flex-direction: column; align-items: stretch; gap: 8px; }
.ccard__price {
  margin-left: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; text-align: left;
}
.ccard__price small { order: -1; margin-top: 0; font-size: 11px; }

/* brand wall: bare logos, no tiles */
.bw-set { gap: 56px; padding-right: 56px; align-items: center; }
.brandwall__rows { gap: 28px; padding-block: 12px; }
.bw-tile {
  width: auto; height: auto; background: none; border: 0; border-radius: 0; box-shadow: none;
  padding: 4px; gap: 10px; transition: transform .2s, opacity .2s;
}
.bw-tile:hover, .bw-tile:focus-visible { border: 0; box-shadow: none; transform: translateY(-3px); }
.bw-tile__logo { width: 96px; height: 72px; }
.bw-tile__name { font-size: 13px; color: var(--muted); }
@media (max-width: 560px) {
  .bw-set { gap: 36px; padding-right: 36px; }
  .bw-tile__logo { width: 72px; height: 54px; }
}
.bw-tile__logo { display: block; }
.bw-tile__logo img { display: block; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }

/* brand wall now holds 30+ logos: slower drift so each stays readable */
.bw-track { animation-duration: 90s; }

/* two rows of ~16 logos each */
.bw-track { animation-duration: 60s; }
.bw-row--rev .bw-track { animation-duration: 66s; }

/* three rows of ~11 bigger logos */
.brandwall__rows { gap: 32px; }
.bw-set { gap: 72px; padding-right: 72px; }
.bw-tile__logo { width: 128px; height: 92px; }
.bw-tile__name { font-size: 13.5px; }
.bw-track { animation-duration: 55s; }
.bw-row--rev .bw-track { animation-duration: 62s; }
.bw-row:nth-child(3) .bw-track { animation-duration: 70s; }
@media (max-width: 560px) {
  .brandwall__rows { gap: 22px; }
  .bw-set { gap: 40px; padding-right: 40px; }
  .bw-tile__logo { width: 92px; height: 66px; }
}

/* header avatar: even sizes so the icon sits exactly in the middle */
.avatar { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; line-height: 0; }
.profile .avatar svg { width: 18px; height: 18px; flex: none; }
.profile { padding: 4px 12px 4px 4px; gap: 8px; }

/* =========================================================
   LIVE SEARCH SUGGESTIONS (home)
   ========================================================= */
.quick__search { position: relative; }
.suggest {
  position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); z-index: 20; max-height: min(460px, 70vh); overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px;
  box-shadow: 0 20px 44px -16px rgba(23, 32, 28, .3);
}
.suggest__label { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 10px 10px 4px; }
.suggest__item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--ink); }
.suggest__item:hover, .suggest__item.is-active { background: var(--brand-soft); }
.suggest__logo { width: 32px; height: 32px; flex: none; display: grid; place-items: center; }
.suggest__logo img { width: 100%; height: 100%; object-fit: contain; }
.suggest__logo .dealer-logo { width: 28px; height: 28px; font-size: 10px; }
.suggest__thumb { width: 64px; height: 48px; flex: none; border-radius: 8px; overflow: hidden; background: var(--page); display: grid; place-items: center; }
.suggest__thumb .car-photo { width: 100%; height: 100%; object-fit: cover; }
.suggest__thumb .car-img { width: 90%; filter: none; }
.suggest__text { flex: 1; min-width: 0; }
.suggest__text strong { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest__text small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest mark { background: none; color: var(--brand); font-weight: 600; }
.suggest__price { font-size: 13px; font-weight: 600; white-space: nowrap; }
.suggest__all {
  display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 6px; padding: 11px; border-radius: 10px;
  border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--accent);
}
.suggest__all svg { width: 14px; height: 14px; }
.suggest__all:hover, .suggest__all.is-active { background: var(--blue-soft); }
.suggest__empty { padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.suggest__empty a { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: #25d366; color: #fff; padding: 9px 14px; border-radius: 10px; font-weight: 500; font-size: 13.5px; }
.suggest__empty svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .suggest__price { display: none; } }

.suggest__wa { width: 28px; height: 28px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; flex: none; }
.suggest__wa svg { width: 15px; height: 15px; }

/* sourcing page for models not in the catalogue */
.price-box__value--sm { font-size: 24px; }
.model-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.model-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; transition: border-color .2s, color .2s;
}
.model-chip:hover { border-color: var(--brand); color: var(--brand); }
.model-chip__logo { width: 26px; height: 26px; display: grid; place-items: center; }
.model-chip__logo img { width: 100%; height: 100%; object-fit: contain; }
