/*
 * Al Mashriq brand layer (2026 redesign), loaded after style.css.
 * Same look as the new Al Mashriq site: jet-black bars, warm paper background, logo red accent, Manrope.
 * Classes are prefixed "am-" so they never clash with the older style.css / Bootstrap 4 rules.
 */
:root {
    --am-jet: #141210;
    --am-jet-2: #0c0b0a;
    --am-paper: #f4f0ea;
    --am-surface: #fffcf8;
    --am-ink: #1a1714;
    --am-ink-3: #5a534b;
    --am-line: rgba(26, 23, 20, 0.1);
    --am-red: #d71920;
    --am-red-dark: #9e1b16;
    --am-red-on-dark: #e58b83;
    --am-wa: #25d366;
    --am-radius: 14px;
    --am-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
    background: var(--am-paper);
    color: var(--am-ink);
    font-family: var(--am-font);
    -webkit-tap-highlight-color: transparent;
}
::selection { background: rgba(158, 27, 22, 0.3); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--am-red);
    outline-offset: 2px;
}
.am-wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ---------- top info strip (desktop) ---------- */
.am-strip { background: var(--am-jet-2); color: rgba(255, 255, 255, 0.7); font-size: 12px; }
.am-strip .am-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding-top: 6px; padding-bottom: 6px; }
.am-strip b { color: #fff; font-weight: 600; }
.am-strip a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.am-strip a:hover { color: #fff; }
.am-strip i { color: var(--am-red-on-dark); margin-right: 6px; }
.am-strip .am-strip-group { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; }

/* ---------- white logo row (desktop) ---------- */
.am-header { background: #fff; border-bottom: 1px solid var(--am-line); }
.am-header .am-wrap { display: flex; align-items: center; gap: 20px; padding-top: 8px; padding-bottom: 8px; }
.am-logo img { height: 88px; width: auto; display: block; }
.am-search { flex: 1; max-width: 560px; margin: 0 auto; display: flex; border: 1px solid var(--am-line); border-radius: var(--am-radius); overflow: hidden; background: var(--am-surface); }
.am-search:focus-within { box-shadow: 0 0 0 2px var(--am-red); }
.am-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 11px 16px; font-size: 14px; color: var(--am-ink); outline: none; }
.am-search button { border: 0; background: var(--am-jet); color: #fff; font-weight: 700; font-size: 14px; padding: 0 20px; display: inline-flex; align-items: center; gap: 8px; }
.am-search button:hover { background: #2b2621; }
.am-actions { display: flex; gap: 8px; flex-shrink: 0; }
.am-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; padding: 10px 16px; font-weight: 700; font-size: 14px; text-decoration: none !important; white-space: nowrap; transition: filter .15s, background .15s; }
.am-btn-wa { background: var(--am-wa); color: var(--am-jet) !important; }
.am-btn-wa:hover { filter: brightness(1.08); }
.am-btn-dark { background: var(--am-jet); color: #fff !important; }
.am-btn-dark:hover { background: #2b2621; }
.am-btn-red { background: var(--am-red); color: #fff !important; }
.am-btn-red:hover { background: var(--am-red-dark); }

/* ---------- sticky navigation bar ---------- */
.am-nav { position: sticky; top: 0; z-index: 1030; background: var(--am-jet); color: #fff; box-shadow: 0 6px 20px -12px rgba(0, 0, 0, 0.5); }
.am-nav .am-wrap { display: flex; align-items: center; gap: 6px; min-height: 52px; }
.am-nav::after { content: ""; display: block; height: 2px; background: linear-gradient(90deg, var(--am-red), rgba(215, 25, 32, 0.6), transparent); }
.am-nav-links { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.am-nav-links > li > a, .am-nav-links > li > button { display: block; padding: 15px 14px; color: rgba(255, 255, 255, 0.9); font-weight: 700; font-size: 14px; text-decoration: none; background: none; border: 0; }
.am-nav-links > li > a:hover, .am-nav-links > li > button:hover, .am-nav-links > li > a.active { background: rgba(255, 255, 255, 0.1); color: #fff; }
.am-nav-links > li > a.active { box-shadow: inset 0 -2px 0 var(--am-red); }
.am-nav-links .dropdown-menu { border-radius: 0 0 12px 12px; border: 1px solid var(--am-line); margin-top: 0; }
.am-nav-links .dropdown-item { font-weight: 600; font-size: 14px; }
.am-nav-logo { display: none; }
.am-icon-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; border: 0; background: transparent; color: inherit; font-size: 19px; text-decoration: none !important; }
.am-icon-btn:hover { background: rgba(26, 23, 20, 0.07); }
.am-nav-account { margin-left: auto; }

/* Phones and tablets: white top bar with logo, search, account and menu buttons (like the new site) */
@media (max-width: 991.98px) {
    .am-nav { background: rgba(255, 255, 255, 0.96); color: var(--am-ink); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--am-line); }
    .am-nav::after { display: none; }
    .am-nav .am-wrap { min-height: 64px; }
    .am-nav-logo { display: block; margin-right: auto; }
    .am-nav-logo img { height: 54px; width: auto; display: block; }
    .am-nav-links { display: none; }
    .am-icon-btn { display: inline-flex; color: var(--am-ink); }
}

/* Phone search row (opens under the bar) */
.am-msearch { display: none; background: #fff; border-bottom: 1px solid var(--am-line); padding: 10px 16px; }
.am-msearch.open { display: block; }
.am-msearch .am-search { max-width: none; }

/* ---------- side menu (phones) ---------- */
.am-drawer-bg { position: fixed; inset: 0; background: rgba(12, 11, 10, 0.55); z-index: 1040; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.am-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); background: var(--am-jet); color: #fff; z-index: 1050; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
body.am-menu-open { overflow: hidden; }
body.am-menu-open .am-drawer { transform: none; }
body.am-menu-open .am-drawer-bg { opacity: 1; visibility: visible; }
.am-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.am-drawer-head img { height: 44px; width: auto; }
.am-drawer-head .am-icon-btn { display: inline-flex; color: #fff; }
.am-drawer-head .am-icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
.am-drawer nav a { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; color: rgba(255, 255, 255, 0.9); font-weight: 700; font-size: 16px; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.am-drawer nav a:hover, .am-drawer nav a.active { background: rgba(255, 255, 255, 0.08); color: #fff; }
.am-drawer nav a.active { box-shadow: inset 3px 0 0 var(--am-red); }
.am-drawer nav a i { color: rgba(255, 255, 255, 0.35); font-size: 13px; }
.am-drawer-contact { padding: 18px 20px 28px; font-size: 14px; color: rgba(255, 255, 255, 0.75); display: grid; gap: 10px; }
.am-drawer-contact a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.am-drawer-contact i { color: var(--am-red-on-dark); width: 18px; }
.am-drawer-contact .am-btn { justify-content: center; }

/* ---------- footer ---------- */
footer.am-footer { padding: 0; background: linear-gradient(180deg, var(--am-jet), var(--am-jet-2)); color: #fff; margin-top: 56px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.am-footer .am-wrap { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 32px 40px; padding-top: 40px; padding-bottom: 28px; }
.am-footer img.am-foot-logo { height: 84px; width: auto; }
.am-footer p { font-size: 14px; line-height: 1.6; max-width: 36ch; margin: 12px 0 0; color: #fff; }
.am-foot-head { font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--am-red-on-dark); margin-bottom: 12px; }
.am-foot-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.am-foot-links a, .am-foot-contact a { color: #fff; text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; font-size: 14px; }
.am-foot-links a:hover, .am-foot-contact a:hover { color: var(--am-red-on-dark); }
.am-foot-contact { font-size: 14px; display: grid; gap: 4px; }
.am-foot-contact i { color: var(--am-red-on-dark); width: 18px; margin-right: 6px; }
.am-social { display: flex; gap: 8px; margin-top: 16px; }
.am-social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); color: #fff; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 17px; }
.am-social a:hover { background: var(--am-red); }
.am-foot-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 12px; color: rgba(255, 255, 255, 0.85); }
.am-foot-bottom .am-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 14px; padding-bottom: 14px; grid-template-columns: none; }
@media (max-width: 991.98px) {
    .am-footer .am-wrap { grid-template-columns: 1fr; gap: 26px; padding-top: 28px; }
    .am-footer img.am-foot-logo { height: 70px; }
}

/* ---------- floating WhatsApp button ---------- */
.am-wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 1020; width: 56px; height: 56px; border-radius: 50%; background: var(--am-wa); color: #fff !important; display: inline-flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.45); text-decoration: none !important; }
.am-wa-float:hover { filter: brightness(1.06); }

/* ---------- brand accents on the existing pages ---------- */
.btn-primary, .btn-danger { background-color: var(--am-red); border-color: var(--am-red); }
.btn-primary:hover, .btn-danger:hover { background-color: var(--am-red-dark); border-color: var(--am-red-dark); }

/* ---------- loading skeleton: a shimmer sweeps over photo boxes until the photo arrives ---------- */
.am-skel { position: relative; overflow: hidden; }
.am-skel::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, 0.5) 50%, transparent 75%);
    transform: translateX(-100%); animation: am-shimmer 1.3s ease-in-out infinite;
}
.am-gal-stage.am-skel::before { background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, 0.08) 50%, transparent 75%); }
.am-skel.is-loaded::before { content: none; }
.am-card-photo.am-skel > img, .am-gal-thumb.am-skel > img { position: relative; z-index: 1; }
.am-card-photo.am-skel::after { z-index: 1; }
@keyframes am-shimmer { to { transform: translateX(100%); } }

@media (prefers-reduced-motion: reduce) {
    .am-drawer, .am-drawer-bg { transition: none; }
    .am-skel::before { animation: none; transform: none; background: transparent; }
}

/* style.css paints every element black ("* { color: #000 }"); inside the new bars, menu and footer text follows its container instead. */
.am-strip *, .am-header .am-btn *, .am-search button *, .am-nav *, .am-drawer *, .am-footer *, .am-wa-float * { color: inherit; }
.am-nav .dropdown-menu, .am-nav .dropdown-menu * { color: var(--am-ink); }

/* Make logos in "Shop by make": one fixed box, so every logo lines up whatever its shape. */
img.am-make-logo { width: 36px !important; height: 24px !important; object-fit: contain; flex-shrink: 0; margin-right: 8px; }

/* Destination flags: bigger, true 4:3 rectangles with a thin edge (light flags stay visible). */
img.am-flag { width: 48px; height: 36px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px rgba(26, 23, 20, 0.15), 0 2px 6px -2px rgba(26, 23, 20, 0.3); margin-bottom: 4px; }

/* Wide screens: the two side columns (makes/filters left, yen rate/search/flags right) stay in view and
   scroll on their own, so the page ends with the car list instead of a long column of flags. */
@media (min-width: 1200px) {
    .am-side-col { position: sticky; top: 64px; align-self: flex-start; max-height: calc(100vh - 76px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(26, 23, 20, 0.25) transparent; }
}

/* ---------- vehicle cards (partials/car-card) ---------- */
/* First, so the card rules below win over it (style.css paints every element black). */
.am-card * { color: inherit; }
.am-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; margin-bottom: 18px; }
.am-card { background: var(--am-surface); border: 1px solid var(--am-line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.am-card:hover { box-shadow: 0 14px 30px -18px rgba(26, 23, 20, 0.45); transform: translateY(-2px); }
.am-card-photo { position: relative; display: block; aspect-ratio: 4 / 3; background: #e3dbd1; overflow: hidden; }
.am-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.am-card:hover .am-card-photo img { transform: scale(1.04); }
.am-card-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 44px; background: linear-gradient(to top, rgba(26, 23, 20, 0.45), transparent); pointer-events: none; }
.am-chip { position: absolute; z-index: 1; border-radius: 8px; padding: 2px 8px; font-size: 11.5px; font-weight: 700; line-height: 1.6; }
.am-chip.am-chip-stock { left: 8px; top: 8px; background: rgba(0, 0, 0, 0.58); color: #fff; backdrop-filter: blur(4px); }
.am-chip.am-badge-new, .am-chip.am-badge-sold, .am-chip.am-badge-res { left: 8px; bottom: 8px; }
.am-chip.am-badge-new { background: var(--am-red); color: #fff; }
.am-chip.am-badge-sold { background: #e3dbd1; color: var(--am-ink); }
.am-chip.am-badge-res { background: #fdecc8; color: #7a4b00; }
.am-card-body { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 14px; min-width: 0; }
.am-card-title { font-weight: 800; font-size: 14.5px; line-height: 1.35; color: var(--am-ink) !important; text-decoration: none !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.am-card:hover .am-card-title { color: var(--am-red-dark) !important; }
.am-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin: 10px 0 0; font-size: 12.5px; color: var(--am-ink-3); }
.am-specs div { display: flex; align-items: center; gap: 6px; min-width: 0; }
.am-specs dt { margin: 0; flex-shrink: 0; }
.am-specs dt i { color: var(--am-red); width: 14px; text-align: center; }
.am-specs dd { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--am-ink-3); }
.am-card-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--am-line); display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 12px; }
.am-price small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--am-ink-3); }
.am-price strong { font-size: 19px; font-weight: 800; color: var(--am-red-dark); font-variant-numeric: tabular-nums; line-height: 1.2; }
.am-price span { font-size: 14px; font-weight: 700; color: var(--am-ink); }
.am-card-actions { display: flex; gap: 6px; flex-shrink: 0; }
.am-card-wa { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(37, 211, 102, 0.14); color: #128c4a !important; box-shadow: inset 0 0 0 1px rgba(37, 211, 102, 0.45); font-size: 20px; text-decoration: none !important; }
.am-card-wa:hover { background: rgba(37, 211, 102, 0.26); }
.am-card-btn { height: 40px; display: inline-flex; align-items: center; border-radius: 12px; padding: 0 14px; background: var(--am-jet); color: #fff !important; font-weight: 700; font-size: 13.5px; text-decoration: none !important; }
.am-card-btn:hover { background: var(--am-red-dark); }
/* Phones: compact rows (photo left, details right) so several cars fit on one screen, like the new site. */
@media (max-width: 575.98px) {
    .am-cards { grid-template-columns: 1fr; gap: 10px; }
    .am-card { flex-direction: row; }
    .am-card-photo { width: 40%; flex-shrink: 0; align-self: center; margin: 8px 0 8px 8px; border-radius: 12px; }
    .am-card-body { padding: 10px 12px; }
    .am-card-title { font-size: 13.5px; min-height: 0; }
    .am-specs { font-size: 11.5px; gap: 4px 8px; margin-top: 6px; }
    .am-card-foot { padding-top: 8px; margin-top: 8px; }
    .am-price strong { font-size: 17px; }
    .am-card-btn { display: none; }
}

/* ---------- car details: breadcrumb, gallery, details card ---------- */
.am-crumbs { font-size: 13px; color: var(--am-ink-3); margin: 4px 0 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.am-crumbs a { color: var(--am-ink-3); font-weight: 600; text-decoration: none; }
.am-crumbs a:hover { color: var(--am-red-dark); }
.am-crumbs span:last-child { color: var(--am-ink); font-weight: 700; }
.am-detail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 991.98px) { .am-detail { grid-template-columns: 1fr; } }

.am-gallery { min-width: 0; }
/* Desktop: photos stay in view beside the long specification table (below the sticky menu bar). */
@media (min-width: 992px) { .am-gallery:not(.is-full) { position: sticky; top: 72px; } }
.am-gallery :where(*) { color: inherit; }
.am-gal-stage { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: #1a1714; }
.am-gal-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; cursor: zoom-in; }
.am-gal-img.is-active { opacity: 1; z-index: 1; }
.am-gal-stage .am-chip { z-index: 2; }
.am-gal-stage .am-badge-sold, .am-gal-stage .am-badge-res { left: auto; right: 8px; top: 8px; bottom: auto; }
.am-gal-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(20, 18, 16, 0.55); color: #fff; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.am-gal-nav:hover { background: var(--am-red); }
.am-gal-prev { left: 10px; } .am-gal-next { right: 10px; }
.am-gal-count { position: absolute; left: 10px; bottom: 10px; z-index: 2; background: rgba(0, 0, 0, 0.58); color: #fff; border-radius: 8px; padding: 3px 9px; font-size: 12.5px; font-weight: 600; }
.am-gal-count b { color: #fff; }
.am-gal-full { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 10px; border: 0; background: rgba(0, 0, 0, 0.58); color: #fff; }
.am-gal-full:hover { background: var(--am-red); }
.am-gal-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 4px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.am-gal-thumb { flex: 0 0 auto; width: 88px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #e3dbd1; opacity: .7; scroll-snap-align: start; transition: opacity .15s, border-color .15s; }
.am-gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.am-gal-thumb:hover { opacity: 1; }
.am-gal-thumb.is-active { opacity: 1; border-color: var(--am-red); }
/* full screen */
.am-gallery.is-full { position: fixed; inset: 0; z-index: 2000; background: rgba(12, 11, 10, 0.97); display: flex; flex-direction: column; justify-content: center; padding: 16px; }
.am-gallery.is-full .am-gal-stage { aspect-ratio: auto; flex: 1; border-radius: 0; background: transparent; }
.am-gallery.is-full .am-gal-img { object-fit: contain; cursor: zoom-out; }
.am-gallery.is-full .am-gal-thumbs { justify-content: center; }
.am-gallery.is-full .am-gal-full i::before { content: "\f00d"; }

.am-dcard { background: var(--am-surface); border: 1px solid var(--am-line); border-radius: 18px; padding: 18px 18px 8px; min-width: 0; }
.am-dcard * { color: inherit; }
.am-dtitle { font-size: 22px; font-weight: 800; line-height: 1.25; margin: 0 0 10px; color: var(--am-ink); letter-spacing: -0.01em; }
.am-dchips { display: flex; flex-wrap: wrap; gap: 6px; }
.am-dchips span { background: var(--am-paper); border: 1px solid var(--am-line); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 600; color: var(--am-ink-3); }
.am-dchips i { color: var(--am-red); margin-right: 3px; }
.am-dprice { margin: 14px 0; padding: 14px 16px; border-radius: 14px; background: var(--am-jet); color: #fff; }
.am-dprice small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.am-dprice strong { display: block; font-size: 30px; font-weight: 800; line-height: 1.15; color: #fff; font-variant-numeric: tabular-nums; }
.am-dprice strong.am-ask { font-size: 22px; }
.am-dprice p { margin: 4px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, 0.75); }
.am-dactions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.am-dactions .am-btn { justify-content: center; padding: 12px 10px; }
.am-btn-wa * , .am-btn-dark * { color: inherit; }
.am-dhead { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--am-red-dark); margin: 4px 0 8px; }
.am-dspecs { margin: 0 0 8px; display: grid; grid-template-columns: 1fr; gap: 0 18px; }
@media (min-width: 576px) and (max-width: 991.98px) { .am-dspecs { grid-template-columns: 1fr 1fr; } }
.am-dspecs div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--am-line); min-width: 0; }
.am-dspecs dt { font-size: 12.5px; font-weight: 600; color: var(--am-ink-3); margin: 0; }
.am-dspecs dd { font-size: 13px; font-weight: 700; color: var(--am-ink); margin: 0; text-align: right; overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .am-dtitle { font-size: 19px; } .am-dprice strong { font-size: 26px; } }
.am-dfeatures { margin-top: 18px; background: var(--am-surface); border: 1px solid var(--am-line); border-radius: 18px; padding: 16px 18px; }
.am-dfeatures * { color: inherit; }
.am-dfeatures > div { display: flex; flex-wrap: wrap; gap: 8px; }
.am-dfeatures span { border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; background: var(--am-paper); border: 1px solid var(--am-line); color: var(--am-ink); }
.am-dfeatures span i { color: #1e8e4a; margin-right: 4px; }

/* ---------- pagination (partials/pagination) ---------- */
.am-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 6px 0 22px; }
.am-pager * { color: inherit; }
.am-pager-info { margin: 0; font-size: 14px; color: var(--am-ink-3); }
.am-pager-info b { color: var(--am-ink); }
.am-pager ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.am-pg { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; background: var(--am-surface); border: 1px solid var(--am-line); color: var(--am-ink) !important; text-decoration: none !important; font-variant-numeric: tabular-nums; }
a.am-pg:hover { border-color: var(--am-jet); background: #fff; }
.am-pg.is-current { background: var(--am-jet); border-color: var(--am-jet); color: #fff !important; }
.am-pg.is-off { opacity: .4; }
.am-pg.is-gap { background: transparent; border-color: transparent; min-width: 24px; padding: 0; }
@media (max-width: 575.98px) { .am-pager { justify-content: center; } .am-pager-info { width: 100%; text-align: center; } .am-pg { min-width: 36px; height: 36px; } }

/* ---------- home: banners and make logos ---------- */
.am-banners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.am-banner { display: block; border-radius: 14px; overflow: hidden; background: #e3dbd1; aspect-ratio: 16 / 9; }
.am-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 991.98px) {
    .am-banners { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 4px; scrollbar-width: none; }
    .am-banners::-webkit-scrollbar { display: none; }
    .am-banner { flex: 0 0 86%; scroll-snap-align: start; }
}
.am-makes { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 10px; scrollbar-width: none; }
.am-makes::-webkit-scrollbar { display: none; }
.am-make { flex: 0 0 auto; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px 8px; border-radius: 14px; background: var(--am-surface); border: 1px solid var(--am-line); text-decoration: none !important; }
.am-make * { color: inherit; }
.am-make img { width: 44px; height: 30px; object-fit: contain; }
.am-make span { font-size: 12px; font-weight: 700; color: var(--am-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.am-make small { font-size: 11px; color: var(--am-ink-3); }
.am-make:hover { border-color: var(--am-jet); }

/* Body-type silhouettes (partials/body-icon) in "Shop by type" */
svg.am-body-icon { width: 44px; height: 22px; flex-shrink: 0; margin-right: 8px; color: var(--am-jet); vertical-align: middle; }
a:hover > svg.am-body-icon { color: var(--am-red); }

/* The header has the search box on desktop; hide the older in-page one there (phones keep it). */
@media (min-width: 992px) { form.search-form { display: none; } }

/* Trustpilot box in the footer: on a light plate so the widget's dark text reads. */
.am-trustpilot { margin-top: 16px; max-width: 320px; background: #fff; border-radius: 12px; padding: 6px 8px; min-height: 64px; }
.am-trustpilot a { color: var(--am-ink) !important; font-weight: 700; font-size: 14px; text-decoration: none; display: inline-flex; min-height: 52px; align-items: center; }

/* ---------- Lighthouse fixes (readable sizes, contrast, tap targets) ---------- */
.review-text { font-size: 14px !important; line-height: 1.5 !important; font-weight: 600; }
.review-client { font-size: 12.5px !important; color: var(--am-red-dark) !important; }
.review-stars i { font-size: 12px; color: #d97706; }
.previous-swipe, .next-swipe { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; margin-left: 6px; background: #fff; color: var(--am-ink); }
.previous-swipe::before, .next-swipe::before { content: none; }
.see-more a { background: var(--am-red); border-color: var(--am-red); color: #fff; width: auto; padding: 0 18px; min-height: 44px; line-height: 44px; border-radius: 10px; }
.search-form button[type="submit"] { min-width: 44px; min-height: 44px; top: 0; right: 30px; display: inline-flex; align-items: center; justify-content: center; }
.am-specs { font-size: 13px; }
.side-filters label, .filters-wrap label { color: var(--am-ink); }
