:root {
  --bg: #f6f4f0; --card: #fff; --ink: #121214; --muted: #66636b; --line: #e7e3dc;
  --brand: #dc1720; --brand-dark: #b0121a; --brand-ink: #fff; --accent: #b7791f; --danger: #b91c1c; --ok: #15803d;
  --obsidian: #0b0b0c; --graphite: #17171a; --charcoal: #2a2a2e; --champagne: #c9a96e; --ivory: #f6f4f0; --link: #a8141b;
  --radius: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.55 "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1 { font-size: 1.7rem; margin: 1.2rem 0 .8rem; }
h2 { font-size: 1.25rem; margin: 1.6rem 0 .6rem; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.top { background: var(--obsidian); color: #fff; position: sticky; top: 0; z-index: 60; border-bottom: 1px solid #1e1e22; }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 60px; flex-wrap: wrap; }
.top a { color: #d1d5db; }
.top a:hover, .top a.on { color: #fff; text-decoration: none; }
.logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.logo img { height: 32px; width: auto; }
.main-nav, .user-nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.main-nav a { font-weight: 600; padding: 4px 0; border-bottom: 2px solid transparent; }
.main-nav a.on { border-color: var(--brand); }
.user-nav { margin-left: auto; font-size: .92rem; }
.admin-link { color: #fbbf24 !important; }

.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: var(--brand-ink); border: 1px solid transparent; border-radius: 999px; padding: 10px 20px; min-height: 44px; font: inherit; font-weight: 600; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }
.btn.sm { padding: 5px 12px; font-size: .9rem; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid #cfc9bf; }
.btn.ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn.wa { background: #1f9d55; color: #fff; }
.btn.wa:hover { background: #17864a; }
.btn.danger { background: var(--danger); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.flash { padding: 10px 14px; border-radius: 8px; margin: 14px 0; background: #ecfdf5; border: 1px solid #a7f3d0; }
.flash.err { background: #fef2f2; border-color: #fecaca; color: var(--danger); }

.hero { padding: 40px 0 10px; }
.hero h1 { font-size: 2.2rem; margin: 0 0 .4rem; }
.sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 24px 0 40px; }
.section-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.section-card h2 { margin: 0; }
.section-card .btn { margin-top: auto; align-self: flex-start; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 16px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.card .ph { aspect-ratio: 4/3; background: #f3f4f6 center/contain no-repeat; }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { font-size: 1rem; margin: 0; }
.card h3 a { color: var(--ink); }
.card .price { font-weight: 700; font-size: 1.1rem; }
.card .fav-form { position: absolute; top: 8px; right: 8px; }
.meta { color: var(--muted); font-size: .88rem; }
.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: #eef2ff; color: #3730a3; }
.badge.encar { background: #fee2e2; color: #991b1b; }
.badge.kbcar { background: #fef3c7; color: #92400e; }
.badge.lotte { background: #fce7f3; color: #9d174d; }
.badge.listing { background: #dcfce7; color: #166534; }
.badge.oem { background: #dbeafe; color: #1e40af; }
.badge.aftermarket { background: #f3e8ff; color: #6b21a8; }
.badge.reserved { background: #fef3c7; color: #92400e; }
.badge.sold { background: #e5e7eb; color: #374151; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.warn { color: var(--accent); font-weight: 600; }
.good { color: var(--ok); font-weight: 600; }

.fav { background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 99px; width: 34px; height: 34px; font-size: 1.1rem; cursor: pointer; color: var(--danger); }
.fav.inline { position: static; }

.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filters label { display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); gap: 2px; }
input, select, textarea { font: inherit; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 7px; background: #fff; color: var(--ink); max-width: 100%; }
.filters input, .filters select { min-width: 110px; }
textarea { width: 100%; min-height: 110px; }

.detail { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; margin-bottom: 40px; }
.gallery { display: grid; gap: 8px; }
.gallery .main { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: var(--radius); background: #e5e7eb; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 6px; }
.gallery .thumbs img { aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; cursor: pointer; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.panel h2:first-child { margin-top: 0; }
.specs { width: 100%; border-collapse: collapse; }
.specs td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.specs td:first-child { color: var(--muted); width: 45%; }
.fees { width: 100%; border-collapse: collapse; }
.fees td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.fees small { display: block; color: var(--muted); font-size: .8rem; }
.fees .sub td { color: var(--muted); }
.fees .total td { font-weight: 800; font-size: 1.15rem; border-bottom: 0; }
.big-price { font-size: 1.6rem; font-weight: 800; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

table.list { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.list th, table.list td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.list th { background: #f9fafb; font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.table-scroll { overflow-x: auto; }

.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; max-width: 760px; }
.form.narrow { max-width: 420px; margin: 30px auto; }
.form .fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; font-weight: 600; }
.form label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.form .full { grid-column: 1 / -1; }
.form fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 0 0 16px; }
.form legend { font-weight: 700; padding: 0 6px; }
.hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
.range-pair { display: flex; gap: 10px; align-items: center; }
.range-pair input[type=range] { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 14px; }

.steps { display: flex; gap: 0; flex-wrap: wrap; margin: 12px 0; }
.steps li { list-style: none; padding: 6px 12px; background: #e5e7eb; font-size: .82rem; }
.steps li.done { background: #d1fae5; }
.steps li.cur { background: var(--brand); color: #fff; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 8px 0 8px 18px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 12px 0 24px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat b { display: block; font-size: 1.5rem; }
.admin-nav { display: flex; gap: 14px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); margin-bottom: 8px; }

.pager { display: flex; gap: 6px; margin: 20px 0 40px; }
.pager a, .pager b { padding: 6px 11px; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.pager b { background: var(--brand); color: #fff; border-color: var(--brand); }
.empty { padding: 40px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
pre.msg { white-space: pre-wrap; background: #f9fafb; border: 1px solid var(--line); padding: 12px; border-radius: 8px; font-size: .85rem; max-height: 360px; overflow: auto; }

.foot { background: var(--obsidian); color: #c9c6c0; margin-top: 64px; padding: 44px 0 0; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.converter { display: flex; flex-direction: column; gap: 6px; min-width: 260px; }
.converter .row { display: flex; gap: 6px; }
.converter input { width: 140px; }
.converter output { font-weight: 700; color: #fff; }

@media (max-width: 800px) {
  .detail { grid-template-columns: 1fr; }
  .user-nav { margin-left: 0; }
  .top-in { padding: 10px 0; gap: 10px 20px; }
}

/* ── Arabic / RTL ───────────────────────────────────────────── */
[dir=rtl] body { font-family: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif; }
[dir=rtl] .user-nav { margin-left: 0; margin-right: auto; }
[dir=rtl] .num { text-align: left; }
[dir=rtl] .card .fav-form { right: auto; left: 8px; }
[dir=rtl] table.list th, [dir=rtl] table.list td { text-align: right; }
[dir=rtl] .timeline li { padding: 8px 18px 8px 0; border-left: 0; border-right: 2px solid var(--line); }
[dir=rtl] .timeline li::before { left: auto; right: -6px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Damage map (Korean inspection) */
.damage-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.damage-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.dmg { font-weight: 700; font-size: .8rem; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.dmg.bad { background: #fee2e2; color: #991b1b; }
.dmg.warn { background: #fef3c7; color: #92400e; }
.legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: 8px; }
.clean-badge { display: inline-flex; align-items: center; gap: 6px; background: #dcfce7; color: #166534; padding: 6px 12px; border-radius: 8px; font-weight: 700; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kv div { background: #f9fafb; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.kv span { display: block; font-size: .78rem; color: var(--muted); }
.kv b { font-size: .98rem; display: block; overflow-wrap: anywhere; word-break: break-word; }
.kv div { min-width: 0; }
.summary-line { color: var(--muted); margin: 4px 0 10px; }

/* Car report: options, full damage sheet, sheet photos, vehicle record */
.opt-group { font-size: .95rem; margin: 14px 0 6px; }
.opt-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px 14px; }
.opt-list li { font-size: .9rem; padding: 3px 0; }
.dmg.ok { background: #dcfce7; color: #166534; }
.sheet-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 8px; }
.sheet-photos img { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.history-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.history-list li { display: flex; justify-content: space-between; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

/* Car page: info beside photos, then specs + collapsible sections */
.car-top { display: grid; grid-template-columns: minmax(280px, 2fr) minmax(0, 3fr); gap: 20px; align-items: start; margin-bottom: 16px; }
.car-info h1 { margin: .4rem 0 .2rem; font-size: 1.6rem; }
.car-info .big-price { margin-top: 6px; }
.quick-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.arbon-line { margin: 8px 0 0; }
.carousel-stage { position: relative; border-radius: var(--radius); overflow: hidden; background: #e5e7eb; aspect-ratio: 4/3; }
.carousel-main { width: 100%; height: 100%; object-fit: contain; background: #f3f4f6; }
.carousel.empty { aspect-ratio: 4/3; background: #e5e7eb; border-radius: var(--radius); }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.55); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.carousel-btn:hover { background: rgba(0,0,0,.75); }
.carousel-btn.prev { right: 10px; }
.carousel-btn.next { left: 10px; }
.carousel-count { position: absolute; bottom: 10px; left: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; padding: 3px 9px; border-radius: 99px; direction: ltr; }
.carousel-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; scroll-behavior: smooth; }
.carousel-thumbs img { flex: 0 0 84px; height: 63px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: .6; border: 2px solid transparent; }
.carousel-thumbs img.on { opacity: 1; border-color: var(--brand); }
details.section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
details.section > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; font-weight: 700; }
details.section > summary::-webkit-details-marker { display: none; }
details.section > summary::after { content: "▾"; color: var(--muted); transition: transform .15s; }
details.section[open] > summary::after { transform: rotate(180deg); }
.section-title { font-size: 1.1rem; }
.section-sum { margin-inline-start: auto; font-weight: 500; font-size: .9rem; }
.section-body { padding: 0 18px 16px; }
details.subsection { margin-top: 10px; }
details.subsection > summary { cursor: pointer; color: var(--brand); font-weight: 600; padding: 6px 0; }
.damage-list.cols { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 800px) {
  .car-top { grid-template-columns: minmax(0, 1fr); }
  .car-top .carousel { order: -1; }
}

/* Price breakdown inside the info card, right under the order button */
.car-info details.section { border: 0; border-top: 1px solid var(--line); border-radius: 0; margin: 14px -18px -18px; }
.car-info details.section > summary { padding: 12px 18px; }
.car-info .section-title { font-size: 1rem; }
.btn-block { display: block; width: 100%; text-align: center; padding: 13px 18px; font-size: 1.05rem; }
.car-info .actions { flex-wrap: nowrap; align-items: center; }
.car-info .actions .btn-block { flex: 1; }

/* Mobile / app */
.mobile-cta { display: none; }
@media (max-width: 800px) {
  body { -webkit-text-size-adjust: 100%; }
  .wrap { padding: 0 12px; }
  h1 { font-size: 1.35rem; }
  .top-in { gap: 8px 14px; }
  .main-nav, .user-nav { gap: 12px; font-size: .92rem; }
  .car-top { gap: 12px; }
  .car-top .carousel { margin: 0 -12px; }
  .carousel-stage { border-radius: 0; }
  .carousel-btn { width: 36px; height: 36px; font-size: 1.5rem; }
  .carousel-thumbs { padding: 8px 12px 2px; }
  .car-info h1 { font-size: 1.4rem; }
  .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .damage-list.cols, .history-list, .opt-list { grid-template-columns: 1fr; }
  details.section > summary { padding: 14px; min-height: 48px; }
  .section-body { padding: 0 14px 14px; }
  .section-sum { font-size: .82rem; text-align: left; }
  .filters { gap: 8px; }
  .filters label { flex: 1 1 45%; }
  .filters input, .filters select { min-width: 0; width: 100%; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .card .body { padding: 10px; }
  .card .price { font-size: 1rem; }
  .fees td { font-size: .9rem; }
  .mobile-cta { display: flex; position: fixed; inset: auto 0 0 0; z-index: 50; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--card); border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
  .mobile-cta div { display: flex; flex-direction: column; line-height: 1.2; }
  .mobile-cta span { font-size: .75rem; }
  .mobile-cta b { font-size: 1.15rem; }
  .mobile-cta .btn { padding: 12px 22px; }
  body:has(.mobile-cta) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .foot { margin-top: 24px; }
}
input, select, textarea, button { font-size: 16px; } /* no iOS zoom on focus */

.car-top > * { min-width: 0; }
.carousel, .carousel-thumbs { max-width: 100%; }

/* Compact facts inside the order card */
.kv-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 10px 0; }
.kv-compact div { padding: 6px 8px; }
.kv-compact span { font-size: .72rem; }
.kv-compact b { font-size: .88rem; }
/* Report tiles at the bottom of the specs card */
.report-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.report-tiles a { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; background: #f9fafb; color: var(--ink); font-weight: 700; }
.report-tiles a:hover { border-color: var(--brand); text-decoration: none; }
@media (max-width: 800px) {
  .kv-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .report-tiles { grid-template-columns: 1fr; }
  .report-tiles a { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Order card as tall as the photo card */
@media (min-width: 801px) {
  .car-top { align-items: stretch; }
  .car-top .car-info { display: flex; flex-direction: column; margin-bottom: 0; }
  .car-top .car-info .arbon-line { margin-top: auto; padding-top: 10px; }
  .car-top .carousel { display: flex; flex-direction: column; }
  .car-top .carousel-stage { flex: 1; aspect-ratio: auto; min-height: 320px; }
}
.price-tile { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 8px; background: #f9fafb; color: var(--ink); font-weight: 700; }
.price-tile:hover { border-color: var(--brand); text-decoration: none; }
.price-tile span:first-child { white-space: nowrap; }
.price-tile .muted { font-weight: 500; font-size: .88rem; text-align: left; }

.filters select.multi { min-height: 38px; height: auto; }
.filters .check-inline { flex-direction: row; align-items: center; gap: 6px; font-size: .9rem; color: var(--ink); }
@media (min-width: 801px) { .filters select.multi { height: 38px; } .filters select.multi:focus { height: 180px; position: relative; z-index: 5; } }

/* ── Laravel rebuild additions ─────────────────────────────── */
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.user-nav select { padding: 4px 8px; font-size: .85rem; background: #1f2937; color: #fff; border-color: #374151; }
.foot-links { display: flex; align-items: flex-end; }
.tiny-link { font-size: .75rem; color: #6b7280 !important; opacity: .8; }
.journey { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 18px 0 28px; }
.journey li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; gap: 10px; align-items: center; font-weight: 600; }
.journey b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; flex: 0 0 30px; }
.ok-badge { background: #dcfce7; color: #166534; }
.price-label { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.small-label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--muted); margin: 8px 0; }
.quote-form { margin: 6px 0; }
.addons { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.addons .check-inline { font-size: .92rem; }
.add-list { display: flex; gap: 8px; margin-top: 8px; }
.add-list .btn { flex: 1; }
.add-list select { flex: 1; }
.test-code { background: #fef3c7; border-color: #fcd34d; font-size: 1.05rem; }
.otp-input { font-size: 1.6rem; letter-spacing: .4em; text-align: center; direction: ltr; }
.handoff-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.handoff-list li { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.handoff-list img { width: 84px; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.handoff-list li > div { flex: 1; }
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.stat { color: var(--ink); }
a.stat:hover { border-color: var(--brand); text-decoration: none; }
.activity { display: flex; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.list-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.list-card:hover { border-color: var(--brand); text-decoration: none; }
.list-card .link { color: var(--brand); font-size: .9rem; }
.list-send { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.rename input { min-width: 220px; }
.request-car-head { display: flex; gap: 14px; align-items: center; }
.request-car-head img { width: 120px; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 1.4rem; }
.prose ul { padding-inline-start: 1.2rem; }
.flash.err { margin: 10px 0; }
[dir=ltr] .carousel-btn.prev { right: auto; left: 10px; }
[dir=ltr] .carousel-btn.next { left: auto; right: 10px; }
[dir=ltr] .carousel-count { left: auto; right: 10px; }

/* search box: aligned grid */
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.filters label, .filters .f-range { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--muted); min-width: 0; margin: 0; }
.filters input, .filters select { width: 100%; min-width: 0; height: 40px; box-sizing: border-box; margin: 0; }
.filters .f-wide { grid-column: span 2; }
.filters .f-range > div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.filters .f-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.filters .f-row .btn { margin-inline-start: auto; min-width: 120px; }
.filters .check-inline { flex-direction: row; align-items: center; gap: 6px; font-size: .9rem; color: var(--ink); }
.filters .check-inline input { width: auto; height: auto; }
@media (max-width: 800px) {
  .filters { grid-template-columns: 1fr 1fr; gap: 10px; }
  .filters .f-wide, .filters .f-range { grid-column: 1 / -1; }
  .filters .f-row .btn { width: 100%; margin: 0; }
}

/* home: three sections */
.sections3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 26px; }
.section-tile { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.section-tile:hover { border-color: var(--brand, #0f766e); transform: translateY(-2px); }
.section-tile .st-ico { font-size: 1.8rem; }
.section-tile b { font-size: 1.15rem; }
.section-tile span:not(.st-ico) { color: var(--muted); font-size: .9rem; }
.section-tile em { font-style: normal; font-weight: 700; margin-top: auto; }
h2 .see-all { font-size: .85rem; font-weight: 500; margin-inline-start: 10px; }
@media (max-width: 800px) { .sections3 { grid-template-columns: 1fr; } }
/* stock + parts */
.price .old { color: var(--muted); text-decoration: line-through; font-weight: 400; font-size: .85em; margin-inline-start: 6px; }
.card.sold .ph { filter: grayscale(1); opacity: .7; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.cat-chips a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); text-decoration: none; font-size: .88rem; }
.cat-chips a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-chips a small { color: var(--muted); margin-inline-start: 4px; }
.cat-chips a.on small { color: #d1d5db; }
.qty-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.qty-row input { width: 80px; }
.empty-state { text-align: center; padding: 40px 16px; color: var(--muted); }

/* parts: placeholder photo, list, checkout */
.ph.part-ph, .part-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 4/3; background: linear-gradient(135deg, #f1f5f9, #e2e8f0); color: #334155; border-radius: inherit; text-align: center; }
.part-ph .ico { font-size: 2.6rem; line-height: 1; }
.part-ph small { font-size: .8rem; font-weight: 600; opacity: .8; }
.part-ph.big { border-radius: var(--radius); min-height: 280px; }
.part-ph.big .ico { font-size: 5rem; }
.partno { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92rem; background: #f3f4f6; padding: 2px 8px; border-radius: 6px; direction: ltr; display: inline-block; }
.cart-link { display: inline-flex; align-items: center; gap: 6px; }
.cart-link b { background: var(--ink); color: #fff; border-radius: 99px; padding: 0 7px; font-size: .78rem; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table .part-ph { width: 72px; min-height: 0; aspect-ratio: 4/3; border-radius: 8px; }
.cart-table .part-ph .ico { font-size: 1.6rem; }
.cart-table input[type=number] { width: 70px; }
.cart-summary { display: grid; gap: 6px; max-width: 420px; margin-inline-start: auto; }
.cart-summary .row { display: flex; justify-content: space-between; }
.cart-summary .row.total { font-weight: 800; font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: 8px; }
.policy-box { border: 2px solid #f59e0b; background: #fffbeb; border-radius: var(--radius); padding: 14px 16px; margin: 14px 0; }
.policy-box h3 { margin: 0 0 6px; }
.policy-box .policy-text { max-height: 220px; overflow: auto; font-size: .9rem; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.checkout-grid .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout-grid .form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); }
.checkout-grid .form-grid .full { grid-column: 1 / -1; }
.checkout-grid input, .checkout-grid select, .checkout-grid textarea { width: 100%; box-sizing: border-box; }
@media (max-width: 800px) { .checkout-grid, .checkout-grid .form-grid { grid-template-columns: 1fr; } .cart-table .hide-sm { display: none; } }

/* parts: your car */
.car-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: #eff6ff; border: 1px dashed #93c5fd; border-radius: var(--radius); padding: 10px 14px; margin: 0 0 12px; }
.car-bar.set { background: #ecfdf5; border: 1px solid #86efac; }
.fit-check { border-radius: 10px; padding: 10px 12px; margin: 10px 0; background: #f8fafc; border: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fit-check.fit-fits { background: #ecfdf5; border-color: #86efac; }
.fit-check.fit-no { background: #fef2f2; border-color: #fca5a5; }
.fit-check.fit-unknown { background: #fffbeb; border-color: #fcd34d; }
.fit-inline { font-size: .82rem; margin-top: 3px; }
.fit-inline.fit-no { color: #b91c1c; font-weight: 700; }
.fit-inline.fit-fits { color: #15803d; }
.fit-inline.fit-unknown { color: #92400e; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid-2 label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); }
.form-grid-2 select, .form-grid-2 input { width: 100%; box-sizing: border-box; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* my cars */
.my-car { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.my-car.active { border-color: #86efac; background: #f0fdf4; }
.my-car-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.my-car-pick { margin: 0 0 8px; }
.my-car-pick .btn { text-align: start; justify-content: flex-start; }

/* parts: compact rectangular cards (icon only, no big photo) */
.grid:has(> .part-card) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.card.part-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; }
.part-card .part-ico { width: 64px; height: 64px; border-radius: 12px; background: linear-gradient(135deg, #f1f5f9, #e2e8f0); display: flex; align-items: center; justify-content: center; font-size: 1.9rem; text-decoration: none; }
.part-card .body { padding: 0; min-width: 0; }
.part-card h3 { margin: 4px 0 2px; font-size: 1rem; }
.part-card .badges { margin: 0; }
.part-card .price { margin-top: 4px; }
.part-card .meta { font-size: .82rem; line-height: 1.35; }
.part-card .partno { font-size: .8rem; padding: 1px 6px; }

/* parts: browse like the catalogue */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0; font-size: .95rem; }
.crumbs span { color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 16px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--ink); transform: translateY(-2px); }
.tile .tile-ico { font-size: 2rem; }
.tile small { color: var(--muted); }
.tiles.types { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.tile.row { flex-direction: row; flex-wrap: wrap; text-align: start; align-items: baseline; padding: 12px 14px; }
.tile.row b { flex: 1 1 auto; }
.tile.row em { font-style: normal; font-weight: 700; background: #f3f4f6; border-radius: 99px; padding: 0 9px; }
.tile.row small { flex-basis: 100%; }
.aka { color: #0f766e; font-size: .8rem; }
.tile.row .aka { flex-basis: 100%; }

/* parts home: search + shop by vehicle / category */
.parts-search { display: flex; gap: 8px; margin: 10px 0 14px; }
.parts-search input { flex: 1; min-width: 0; height: 46px; font-size: 1rem; border-radius: 10px; }
.tiles.brands { grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); }
.tiles.brands .tile { padding: 12px; }
.tile.empty { opacity: .6; }
.group-head { margin: 18px 0 8px; font-size: 1.05rem; }
.request-part { margin-top: 16px; }
.request-part.strong { border: 2px solid #fcd34d; background: #fffbeb; }

/* parts: locked sections, loading banner, engine pick */
.locked-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #f8fafc; border: 1px dashed var(--line); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 12px; }
.tiles.locked .tile { opacity: .45; cursor: not-allowed; }
.fetch-banner { display: flex; align-items: center; gap: 10px; background: #eff6ff; border: 1px solid #93c5fd; border-radius: var(--radius); padding: 12px 14px; margin: 10px 0 14px; }
.fetch-banner.warn { background: #fffbeb; border-color: #fcd34d; }
.spinner { width: 18px; height: 18px; border: 3px solid #bfdbfe; border-top-color: #2563eb; border-radius: 50%; animation: spin 1s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.engine-pick { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 700; }
.engine-pick form { margin: 0; }

/* part pictures (own photo or licensed illustration of the part type) */
.part-card .part-ico img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; background: #fff; }
.part-card .part-ico { overflow: hidden; }
.type-img { margin: 0; aspect-ratio: 4/3; background: #fff; border-radius: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.type-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.type-img.big { border-radius: var(--radius); border: 1px solid var(--line); padding: 10px; min-height: 280px; }
.type-img.big img { max-height: 320px; }
.type-img figcaption { font-size: .72rem; color: var(--muted); margin-top: 6px; text-align: center; }

/* find this part: live offers from verified suppliers */
.finder { border: 2px solid #93c5fd; background: #f8fbff; }
.finder-start { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.finder-status { display: flex; align-items: center; gap: 10px; color: var(--muted); min-height: 20px; }
.offers { display: grid; gap: 8px; margin-top: 10px; }
.offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; animation: offerIn .35s ease; }
.offer .o-price { font-weight: 800; font-size: 1.1rem; }
.offer form { margin: 0; }
@keyframes offerIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* search → jump to the item in the catalogue */
.tile.row { scroll-margin-top: 90px; }
.tile.row.hl { opacity: 1; border: 2px solid #f59e0b; background: #fffbeb; animation: hlPulse 1.2s ease 2; }
@keyframes hlPulse { 50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, .25); } }

/* part availability */
.badge.avail-import { background: #e0f2fe; color: #075985; }
.badge.avail-stock { background: #dcfce7; color: #166534; }
.badge.avail-out { background: #f3f4f6; color: #6b7280; }

/* section: what the supplier lists for this exact car */
.tile.row .avail-yes { flex-basis: 100%; color: #15803d; font-weight: 600; }
.tile.row .avail-no { flex-basis: 100%; color: #9ca3af; }
.tile.row.na { opacity: .5; background: #f9fafb; }

.g-search { font-size: .78rem; margin-inline-start: 6px; white-space: nowrap; text-decoration: none; }
.g-search:hover { text-decoration: underline; }
.kv .g-search { display: inline-block; margin: 4px 0 0; }

/* ═══ 2026-09 website update: brand shell, homepage sections, FAQ, contact, WhatsApp button ═══ */
.btn.sm { min-height: 36px; padding: 6px 14px; }
.btn.lg { min-height: 52px; padding: 12px 26px; font-size: 1.02rem; }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn.ghost-light:hover { background: #fff; color: var(--obsidian); border-color: #fff; }
.btn-block { display: flex; width: 100%; }
.ico { flex: 0 0 auto; vertical-align: middle; }
[dir=rtl] .flip-rtl { transform: scaleX(-1); }
[dir=ltr] .flip-back { transform: scaleX(-1); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; inset-inline-start: 8px; z-index: 100; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* header */
.top-in { min-height: 64px; flex-wrap: nowrap; }
.top-menu { display: flex; align-items: center; gap: 24px; flex: 1; min-width: 0; }
.main-nav a, .user-nav a { display: inline-flex; align-items: center; gap: 6px; }
.main-nav a { color: #d8d4cd; font-weight: 500; }
.user-nav .cart-link b { background: var(--brand); color: #fff; border-radius: 99px; padding: 0 7px; font-size: .75rem; }
.user-nav select { background: transparent; color: #d8d4cd; border-color: #3a3a40; padding: 5px 8px; }
.user-nav select option { color: var(--ink); }
.menu-btn { display: none; margin-inline-start: auto; background: none; border: 0; color: #fff; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; border-radius: 10px; }
.menu-btn .menu-close { display: none; }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .top-in { flex-wrap: wrap; min-height: 60px; padding: 0 !important; }
  .logo img { height: 28px; }
  .top-menu { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 16px; border-top: 1px solid #1f1f23; max-height: calc(100svh - 60px); overflow-y: auto; }
  .top.open .top-menu { display: flex; }
  .top.open .menu-open { display: none; }
  .top.open .menu-close { display: inline; }
  .main-nav, .user-nav { flex-direction: column; align-items: stretch; gap: 0; margin: 0 !important; font-size: 1rem; }
  .main-nav a, .user-nav a:not(.btn) { padding: 13px 2px; border-bottom: 1px solid #1f1f23; }
  .main-nav a.on { border-bottom-color: var(--brand); color: #fff; }
  .user-nav { padding-top: 10px; gap: 10px; }
  .user-nav .inline-form select { width: 100%; }
  .user-nav .btn { margin-top: 4px; }
}

/* full-width hero */
.hero-x { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 85% 0%, #2a1416 0%, var(--obsidian) 55%); color: #fff; display: flex; align-items: flex-end; }
.hero-x.h-full { min-height: calc(100svh - 64px); }
.hero-x.h-tall { min-height: min(78svh, 760px); }
.hero-x.h-compact { min-height: 420px; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.on { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,calc(var(--overlay) * .55)) 0%, rgba(11,11,12,var(--overlay)) 55%, rgba(11,11,12,.92) 100%); }
.hero-x:not(.has-img) .hero-shade { background: none; }
.hero-body { position: relative; padding-top: 72px; padding-bottom: 56px; max-width: 1200px; width: 100%; }
.hero-body h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 14px; max-width: 18ch; font-weight: 700; }
[dir=rtl] .hero-body h1 { letter-spacing: 0; line-height: 1.3; }
.eyebrow { color: var(--champagne); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; margin: 0 0 14px; }
[dir=rtl] .eyebrow { letter-spacing: 0; font-size: .9rem; }
.hero-sub { color: #e4e1db; font-size: clamp(1rem, 2.2vw, 1.2rem); max-width: 56ch; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .hero-body { padding-top: 56px; padding-bottom: 36px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* home sections */
.home-sec { margin: 48px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); margin: 0 0 4px; letter-spacing: -.01em; }
.sec-head p { margin: 0; max-width: 60ch; }
.sec-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.page-head { margin: 28px 0 18px; }
.page-head h1 { margin: 0 0 6px; font-size: clamp(1.5rem, 4vw, 2.1rem); }
.page-head.with-action { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.empty a { font-weight: 600; }

.gateway { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.gate { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--graphite); color: #fff; border: 1px solid #26262b; transition: transform .15s, border-color .15s; }
.gate:hover { text-decoration: none; border-color: var(--champagne); transform: translateY(-2px); color: #fff; }
.gate-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: #232327; color: var(--champagne); flex: 0 0 auto; }
.gate-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.gate-body b { font-size: 1.1rem; }
.gate-body span { color: #bdb9b2; font-size: .92rem; }
.gate-go { color: var(--brand); }

.steps-x { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.steps-x li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--obsidian); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps-x b { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.steps-x p { margin: 0; color: var(--muted); font-size: .93rem; }

.features-x { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feat-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #f3eee4; color: #8a6a2f; margin-bottom: 12px; }
.feat b { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.feat p { margin: 0; color: var(--muted); font-size: .93rem; }

.faq-x { display: grid; gap: 10px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; font-weight: 600; min-height: 52px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { transform: rotate(45deg); transition: transform .2s; color: var(--muted); }
.faq-item[open] .faq-plus { transform: rotate(0deg); color: var(--brand); }
.faq-a { padding: 0 18px 16px; color: #3b3a3f; }
.faq-group { margin-bottom: 28px; }
.faq-group h2 { font-size: 1.15rem; margin: 0 0 12px; }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.cta-panel p { margin: 2px 0 0; }

.prose { line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.3rem; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.1rem; margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose img { border-radius: 10px; }
.page-article { max-width: 820px; margin: 28px auto 0; }
.page-article h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 18px; }

.contact-x { display: grid; gap: 16px; }
.contact-x.with-map { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.contact-info { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list li > .ico { color: var(--brand); margin-top: 2px; }
.contact-list span { display: block; font-size: .8rem; color: var(--muted); }
.contact-list a, .contact-list b { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.map-x { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 320px; background: #e9e5de; }
.map-x iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.office-photo { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 860px) { .contact-x.with-map { grid-template-columns: 1fr; } }

.social-x { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: var(--graphite); color: #fff; border-radius: var(--radius); padding: 24px; border: 0; }
.social-x h2 { margin: 0 0 6px; }
.social-x .muted { color: #bdb9b2; }
.social-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.social-pills a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; border: 1px solid #3a3a40; color: #fff; }
.social-pills a:hover { border-color: var(--champagne); text-decoration: none; }
.snapcode { border-radius: 16px; background: #fffc00; padding: 8px; }

.banner-x { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--graphite); color: #fff; min-height: 220px; display: flex; align-items: flex-end; }
.banner-x img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-x.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,11,12,.85), rgba(11,11,12,.15)); }
.banner-body { position: relative; z-index: 1; padding: 26px; max-width: 640px; }
.banner-body h2 { margin: 0 0 6px; }
.banner-body p { color: #e4e1db; }

/* O2Dealer car cards and pages */
.badge.loc { background: #f1ede5; color: #5b4a2a; }
.stock-card .ph-link { position: relative; display: block; }
.card.sold .ph { filter: saturate(.75); }
.ribbon { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--obsidian); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 99px; }
.sold-line { color: var(--muted); font-size: .88rem; font-weight: 500; margin-top: auto; }
.sold-box { background: #f6f3ec; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-top: 14px; display: grid; gap: 8px; }
.sold-box p { margin: 0; }
.crumb { margin: 18px 0 10px; }
.crumb a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.feature-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 16px; }
.feature-list li { display: flex; gap: 8px; align-items: center; }
.feature-list .ico { color: var(--ok); }
.video-x { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; }
.video-x iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* footer */
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 32px; padding-bottom: 32px; }
.foot-brand img { height: 32px; width: auto; margin-bottom: 12px; }
.foot-brand p { color: #a9a59e; max-width: 36ch; }
.foot-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--champagne); margin: 4px 0 14px; font-weight: 600; }
[dir=rtl] .foot-h { letter-spacing: 0; font-size: .95rem; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: #e4e1db; }
.foot a:hover { color: #fff; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact .ico { color: var(--champagne); margin-top: 2px; }
.social-row { display: flex; gap: 8px; margin-top: 14px; }
.social-row a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #333338; border-radius: 50%; }
.social-row a:hover { border-color: var(--champagne); }
.foot-legal { display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; border-top: 1px solid #1f1f23; padding-top: 18px; padding-bottom: calc(22px + env(safe-area-inset-bottom)); color: #8d8981; font-size: .85rem; }
.foot-legal b { color: #c9c6c0; font-weight: 600; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; gap: 26px; } }

/* floating WhatsApp button */
.wa-float { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 70; display: flex; align-items: flex-end; gap: 10px; }
.wa-float.right { right: calc(18px + env(safe-area-inset-right)); flex-direction: row-reverse; }
.wa-float.left { left: calc(18px + env(safe-area-inset-left)); }
.wa-btn { width: 58px; height: 58px; border-radius: 50%; background: #1f9d55; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0,0,0,.28); transition: transform .15s; flex: 0 0 auto; }
.wa-btn:hover { transform: scale(1.06); color: #fff; }
.wa-bubble { position: relative; background: #fff; color: var(--ink); border-radius: 16px; padding: 12px 36px 12px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.18); max-width: 240px; font-size: .92rem; margin-bottom: 8px; animation: wa-in .35s ease; }
[dir=rtl] .wa-bubble { padding: 12px 14px 12px 36px; }
.wa-bubble a { color: var(--ink); font-weight: 600; }
.wa-bubble-x { position: absolute; top: 6px; inset-inline-end: 6px; width: 26px; height: 26px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
@keyframes wa-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 800px) {
  body:has(.mobile-cta) .wa-float { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .wa-btn { width: 54px; height: 54px; }
  .home-sec { margin: 36px 0; }
}
@media (prefers-reduced-motion: reduce) { .hero-slide, .gate, .wa-btn { transition: none; } .wa-bubble { animation: none; } }
