/* ==========================================================================
   Ximport Express — stylesheet (mobile-first, no inline styles anywhere)
   Sections: 1 base · 2 header/nav/search · 3 buttons/alerts · 4 hero/page head
             5 catalog layout/cards · 6 product page · 7 cart/checkout/forms
             8 footer/toast · 9 desktop enhancements
   ========================================================================== */

/* 1. Base ------------------------------------------------------------------ */
:root {
    --blue: #003478;
    --blue-dark: #001f4d;
    --blue-soft: #eaf1fb;
    --red: #d6002a;
    --accent: #f5b400;
    --bg: #f4f6f9;
    --card: #fff;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --ok: #0f7b4f;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 4px 14px rgba(15, 23, 42, .04);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; color: #0f172a; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 820px; }
.page-pad { padding-top: 20px; padding-bottom: 48px; }
.lead { font-size: 1.05rem; color: var(--muted); }
.muted { color: var(--muted); font-weight: 400; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; background: #fff; padding: 10px 14px; border-radius: 6px; z-index: 200; }
.skip-link:focus { top: 8px; }
[hidden] { display: none !important; }
.prose h2 { margin-top: 1.6em; }
.prose li { margin-bottom: .5em; }

/* 2. Header, navigation, vehicle + part search ---------------------------------- */
.topbar { display: none; background: var(--blue-dark); color: #cbd5e1; font-size: 13px; }
.topbar a { color: #cbd5e1; }
.topbar-inner { display: flex; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; }

.site-header { background: #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, .08); z-index: 100; }
.header-main { position: relative; display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.logo { display: inline-flex; margin-right: auto; }
.logo img { display: block; height: 44px; width: auto; }

.nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border);
       box-shadow: 0 10px 20px rgba(15, 23, 42, .12); padding: 8px 16px 16px; z-index: 90; }
.nav.open { display: block; }
.nav-link { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 8px 4px;
            background: none; border: 0; border-bottom: 1px solid var(--border); font: inherit; font-weight: 600; color: var(--text);
            text-decoration: none; cursor: pointer; text-align: left; }
.nav-drop { display: none; padding: 4px 0 8px 12px; }
.nav-item.open .nav-drop { display: block; }
.nav-drop a { display: block; padding: 11px 4px; color: var(--text); text-decoration: none; }

.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--text); }
.cart-badge { position: absolute; top: 2px; right: 0; min-width: 20px; padding: 1px 5px; border-radius: 10px; background: var(--red);
              color: #fff; font-size: 12px; font-weight: 700; text-align: center; line-height: 18px; }
.nav-toggle { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 22px; cursor: pointer; color: var(--blue); }

.searchbar { background: var(--blue); padding: 10px 0 12px; }
.search-form { display: grid; gap: 8px; }
.vehicle-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 6px 12px; border: 2px solid var(--accent); border-radius: 8px; background: #fff; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.vehicle-btn svg { flex: none; color: var(--blue); }
.vehicle-btn .vb-label { display: block; font-weight: 700; font-size: 15px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vehicle-btn .vb-sub { display: block; font-size: 12px; color: var(--muted); }
.vehicle-btn > span { min-width: 0; }
.modal-current { margin: 0 0 12px; font-size: .95rem; }

.search-form select, .search-form input[type=search] {
    width: 100%; min-height: 46px; padding: 0 10px; border: 0; border-radius: 8px; background: #fff; color: var(--text); font-size: 16px;
}
.search-form select:disabled { background: #dbe4f0; color: #8a97ab; }
.search-input { display: flex; gap: 6px; }
.search-input input { flex: 1; min-width: 0; }
.btn-link { background: none; border: 0; padding: 6px 0; color: #fff; font: inherit; text-decoration: underline; cursor: pointer; }

/* 3. Buttons, alerts ----------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 18px;
    border: 1px solid transparent; border-radius: 8px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
    transition: background .15s, color .15s, border-color .15s; text-align: center;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-accent { background: var(--red); color: #fff; }
.btn-accent:hover { background: #b80023; }
.btn-outline { background: #fff; color: var(--blue); border-color: #b8c4d8; }
.btn-outline:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-sm { min-height: 40px; padding: 6px 12px; font-size: 14px; background: #fff; border-color: #b8c4d8; color: var(--blue); }
.btn-lg { min-height: 52px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; height: 44px; border: 0; background: none; color: #b42318; font-size: 18px; cursor: pointer; border-radius: 8px; }
.btn-icon:hover { background: #fee4e2; }
.alert { margin: 14px 0; padding: 12px 16px; border-radius: 8px; border: 1px solid; }
.alert-error { background: #fef3f2; border-color: #fda29b; color: #912018; }
.alert-success { background: #ecfdf3; border-color: #75e0a7; color: #05603a; }
.alert-info { background: var(--blue-soft); border-color: #b8cdee; color: var(--blue-dark); }

/* 4. Hero, page head, breadcrumb ----------------------------------------------------------- */
.hero { background: linear-gradient(135deg, var(--blue-dark) 0%, #1646a0 100%); color: #fff; padding: 32px 0; }
.hero h1 { color: #fff; font-size: 1.7rem; max-width: 780px; }
.hero p { color: #cfe0fb; max-width: 720px; }
.steps-wrap { margin-top: -18px; }
.steps { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.steps li { display: grid; gap: 2px; background: var(--card); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.steps span { color: var(--muted); font-size: .95rem; }
.page-head { background: #fff; border-bottom: 1px solid var(--border); padding: 14px 0 6px; }
.page-head h1 { margin-bottom: .3em; }
.page-head p { color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 8px; padding: 0; font-size: 14px; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; }
.breadcrumb a { color: var(--muted); }

/* 5. Catalog layout, cards ----------------------------------------------------------------------- */
.layout { display: block; padding-top: 18px; padding-bottom: 40px; }
.sidebar-toggle { width: 100%; margin-bottom: 12px; }
.sidebar { display: none; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 18px; }
.sidebar.open { display: block; }
.side-block { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.side-block:last-child { border-bottom: 0; }
.side-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-scroll { max-height: 320px; overflow: auto; }
.side-list a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 8px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: .95rem; }
.side-list a:hover { background: #f1f5f9; }
.side-list a.active { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.count { background: #e8edf4; color: var(--muted); border-radius: 10px; padding: 0 7px; font-size: 12px; line-height: 20px; }

.content { min-width: 0; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 14px; }
.toolbar-title { flex: 1 1 100%; margin: 0; font-size: 1.15rem; }
.results-count { color: var(--muted); font-size: 14px; margin-right: auto; }
.sort-form select { min-height: 40px; border: 1px solid #b8c4d8; border-radius: 8px; padding: 0 10px; background: #fff; font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; transition: box-shadow .15s, border-color .15s; }
.card:hover { box-shadow: var(--shadow); border-color: #cbd5e1; }
.card-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.card-img { display: flex; align-items: center; justify-content: center; height: 140px; margin-bottom: 10px; background: #f8fafc; border-radius: 8px; padding: 8px; }
.card-img img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.card-cat { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #0b6bb0; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-title { font-size: .92rem; font-weight: 600; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-oem { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.card-oem b { font-family: ui-monospace, Consolas, monospace; color: var(--text); background: #f1f5f9; padding: 1px 4px; border-radius: 3px; word-break: break-all; }
.card-price { margin-top: auto; padding-top: 8px; font-size: 1.2rem; font-weight: 800; color: var(--red); }
.card-form { margin: 10px 0 0; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 26px; }
.pagination a, .pagination .gap { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); text-decoration: none; font-weight: 600; }
.pagination .gap { border: 0; background: none; min-width: 20px; padding: 0; }
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination a.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.empty { background: #fff; border: 1px dashed #b8c4d8; border-radius: var(--radius); padding: 36px 20px; text-align: center; color: var(--muted); }
.empty h2, .empty h3 { color: var(--text); }

/* 6. Product page -------------------------------------------------------------------------------------- */
.product { display: grid; gap: 18px; margin-bottom: 26px; }
.gallery-main { display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; aspect-ratio: 1 / 1; max-height: 460px; margin: 0 auto; width: 100%; }
/* The picture fills the frame (absolute + object-fit) so wide diagrams / odd sizes can never spill out, in any browser. */
.gallery-main { position: relative; overflow: hidden; }
.gallery-main img { position: absolute; top: 12px; left: 12px; width: calc(100% - 24px); height: calc(100% - 24px); max-width: none; max-height: none; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: 0 0 64px; width: 64px; height: 64px; padding: 2px; background: #fff; border: 2px solid var(--border); border-radius: 8px; cursor: pointer; }
.thumb[aria-current=true], .thumb:hover { border-color: var(--blue); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.buy { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.buy-title { font-size: 1.35rem; }
.buy-meta { color: var(--muted); }
.price-lg { font-size: 2rem; font-weight: 800; color: var(--red); line-height: 1.1; }
.price-note { color: var(--muted); font-size: 14px; margin: 4px 0 14px; }
.buy-form { display: flex; gap: 10px; margin-bottom: 16px; }
.qty { width: 84px; min-height: 52px; border: 1px solid #b8c4d8; border-radius: 8px; padding: 0 10px; font-size: 16px; text-align: center; }
.buy-form .btn { flex: 1; }
.info-box { background: var(--blue-soft); border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; }
.trust { list-style: none; margin: 0; padding: 14px 16px; background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }
.trust li + li { margin-top: 8px; }

.details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.desc { border-left: 4px solid var(--blue); background: #f8fafc; padding: 12px 14px; border-radius: 0 8px 8px 0; }
.specs { margin: 0; display: grid; gap: 0; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #eef2f6; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.fit-filter { width: 100%; min-height: 44px; margin-bottom: 10px; padding: 0 12px; border: 1px solid #b8c4d8; border-radius: 8px; font-size: 16px; }
.table-wrap { max-height: 420px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.fit-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.fit-table th { position: sticky; top: 0; background: #f1f5f9; text-align: left; padding: 10px 12px; }
.fit-table td { padding: 9px 12px; border-top: 1px solid #eef2f6; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px;
              padding: 10px 16px; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -4px 14px rgba(15, 23, 42, .1); }
.sticky-price { font-size: 1.25rem; font-weight: 800; color: var(--red); }
main:has(.sticky-cta) + .site-footer { padding-bottom: 76px; }

/* 7. Cart, checkout, forms ------------------------------------------------------------------------------ */
.cart { display: grid; gap: 18px; align-items: start; }
.cart-list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.cart-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "thumb info" "actions actions"; gap: 12px 14px; align-items: start; padding: 16px 14px; border-bottom: 1px solid var(--border); }
.cart-row:last-child { border-bottom: 0; }
.cart-thumb { grid-area: thumb; display: block; width: 76px; height: 76px; background: #f8fafc; border: 1px solid #eef2f6; border-radius: 8px; padding: 4px; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-info { grid-area: info; min-width: 0; }
.cart-title { display: block; font-weight: 700; line-height: 1.35; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.cart-title:hover { color: var(--blue); }
.cart-oem { margin-top: 4px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.cart-oem b { color: var(--text); font-weight: 600; }
.cart-unit { margin-top: 2px; font-size: 15px; font-weight: 700; color: var(--text); }
.cart-actions { grid-area: actions; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.qty-form { display: flex; gap: 6px; margin: 0; }
.qty-form .qty { width: 58px; min-height: 44px; padding: 0 4px; }
.qty-form .btn-sm { min-height: 44px; }
.cart-end { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.cart-line-total { text-align: right; font-weight: 800; color: var(--red); font-size: 1.15rem; white-space: nowrap; }
.cart-remove { margin: 0; }
.btn-trash { display: inline-flex; align-items: center; justify-content: center; width: 40px; color: #64748b; }
.btn-trash:hover, .btn-trash:focus-visible { color: #b42318; background: #fee4e2; }
.cart-summary { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #eef2f6; font-size: .95rem; }
.sum-total { border-bottom: 0; border-top: 2px solid var(--border); margin-top: 6px; padding-top: 12px; font-size: 1.15rem; }
.sum-total b { color: var(--red); }
.sum-row b { text-align: right; }
.note { color: var(--muted); font-size: 13.5px; margin: 12px 0; }
.mini-list { list-style: none; margin: 0 0 8px; padding: 0; font-size: .92rem; }
.mini-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }

.form fieldset { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); margin: 0 0 16px; padding: 12px 16px 6px; min-width: 0; }
.form legend { font-weight: 700; padding: 0 6px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 5px; font-size: .95rem; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
    width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #b8c4d8; border-radius: 8px; background: #fff; font: inherit; font-size: 16px; color: var(--text);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(0, 52, 120, .15); }
.field [aria-invalid=true] { border-color: #d92d20; }
.field-row { display: grid; gap: 0 14px; }
.hint { color: var(--muted); font-size: 13.5px; margin: 6px 0 0; }
.field-error { color: #b42318; font-size: 14px; font-weight: 600; margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.field.check input { width: 22px; height: 22px; margin: 2px 0 0; }
.field.check label { font-weight: 400; margin: 0; }
.field.check .field-error { grid-column: 2; }
.success-card { background: var(--card); border: 1px solid #75e0a7; border-radius: var(--radius); padding: 22px; }
.ref { font-family: ui-monospace, Consolas, monospace; background: #ecfdf3; padding: 2px 8px; border-radius: 6px; }
.next-steps li { margin-bottom: .6em; }

/* 8. Footer, toast ----------------------------------------------------------------------------------------- */
.site-footer { background: var(--blue-dark); color: #cbd5e1; margin-top: 20px; font-size: 14.5px; }
.site-footer a { color: #dbe6f7; }
.footer-grid { display: grid; gap: 24px; padding-top: 32px; padding-bottom: 28px; }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: .7em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 14px 0; font-size: 13px; color: #94a3b8; }
.footer-bottom .container { display: flex; flex-direction: column; gap: 4px; }

.toast { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 300; background: #fff; border-left: 5px solid var(--ok); border-radius: 10px; box-shadow: 0 12px 32px rgba(15, 23, 42, .25); padding: 16px; }
.toast-close { position: absolute; top: 4px; right: 8px; width: 40px; height: 40px; border: 0; background: none; font-size: 26px; color: var(--muted); cursor: pointer; }
.toast-head { color: var(--ok); font-weight: 800; margin-bottom: 6px; }
.toast-name { font-weight: 600; font-size: .92rem; margin-bottom: 10px; overflow-wrap: anywhere; }
.toast-qty { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; }
.toast-qty input { width: 70px; min-height: 40px; border: 1px solid #b8c4d8; border-radius: 6px; text-align: center; font-size: 16px; }

/* 9. Larger screens ------------------------------------------------------------------------------------------ */
@media (min-width: 640px) {
    h1 { font-size: 1.9rem; }
    .hero { padding: 48px 0; }
    .hero h1 { font-size: 2.2rem; }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
    .card { padding: 14px; }
    .card-img { height: 160px; }
    .toolbar-title { flex: 0 1 auto; margin-right: 8px; }
    .field-row { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom .container { flex-direction: row; justify-content: space-between; }
    .toast { left: auto; right: 20px; bottom: 20px; width: 340px; }
}

@media (min-width: 720px) {
    .cart-row { grid-template-columns: 88px minmax(0, 1fr) auto; grid-template-areas: "thumb info actions"; align-items: center; gap: 12px 18px; padding: 16px; }
    .qty-form .qty { width: 72px; }
    .cart-thumb { width: 88px; height: 88px; }
    .cart-actions { flex-wrap: nowrap; gap: 14px; }
    .cart-end { gap: 8px; }
    .btn-trash { width: 44px; }
    .cart-line-total { min-width: 110px; }
}

@media (min-width: 900px) {
    .topbar { display: block; }
    .site-header { position: sticky; top: 0; }
    .nav-toggle { display: none; }
    .logo { margin-right: 12px; }
    .logo img { height: 52px; }
    .nav { display: flex; position: static; align-items: center; gap: 4px; margin-right: auto; padding: 0; border: 0; box-shadow: none; background: none; }
    .nav-link { width: auto; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 8px; gap: 6px; }
    .nav-link:hover { background: var(--blue-soft); color: var(--blue); }
    .nav-item { position: relative; }
    .nav-drop { position: absolute; top: 100%; left: 0; min-width: 230px; max-height: 70vh; overflow-y: auto; padding: 8px 0; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 10px 24px rgba(15, 23, 42, .15); }
    .nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop { display: block; }
    .nav-drop a { padding: 10px 18px; }
    .nav-drop a:hover { background: var(--blue-soft); color: var(--blue); }
    .search-form { grid-template-columns: minmax(0, 440px) 1fr; align-items: center; }
    .searchbar { padding: 12px 0; }
    .sticky-cta { display: none; }
    main:has(.sticky-cta) + .site-footer { padding-bottom: 0; }
    .product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; }
    .buy { padding: 24px; }
    .buy-title { font-size: 1.6rem; }
}

@media (min-width: 992px) {
    .layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
    .sidebar-toggle { display: none; }
    .sidebar { display: block; position: sticky; top: 140px; margin-bottom: 0; max-height: calc(100vh - 160px); overflow: auto; }
    .cart { grid-template-columns: minmax(0, 1fr) 360px; }
    .cart-summary { position: sticky; top: 140px; }
    .checkout { grid-template-columns: minmax(0, 1fr) 380px; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}


/* 10. Home: big category tiles, vehicle gate -------------------------------------------------------------- */
.home-cats { margin-top: 26px; }
.home-cats h2 { margin-bottom: .8em; }
.cat-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 124px; padding: 16px 10px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--blue); text-decoration: none; text-align: center; font-weight: 600; font-size: .95rem; line-height: 1.25; }
.cat-tile span { color: var(--text); }
.cat-tile:hover, .cat-tile:focus-visible { border-color: var(--blue); background: var(--blue-soft); }
.cat-more { margin: 14px 0 0; color: var(--muted); font-size: .95rem; }
.cat-more a { margin-left: 10px; white-space: nowrap; }
.vehicle-gate { margin-top: 26px; padding: 20px; background: var(--blue-soft); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; }
.vehicle-gate p { margin: .4em 0 1em; }
@media (min-width: 640px) {
    .cat-tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
    .cat-tiles { grid-template-columns: repeat(6, 1fr); }
}

/* 11. Trust strip, delivery box, FAQ, business fields ------------------------------------------------------- */
.t-green  { --tc: #0f7b4f; --tb: #e6f5ee; }
.t-blue   { --tc: #003478; --tb: #eaf1fb; }
.t-amber  { --tc: #a86400; --tb: #fff4dc; }
.t-purple { --tc: #6b3fa0; --tb: #f1eafa; }
.t-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tb); color: var(--tc); }

.trust-wrap { margin-top: 18px; }
.trust-strip { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
.trust-strip li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--tc); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.trust-strip strong { display: block; line-height: 1.3; }
.trust-strip small { display: block; margin-top: 2px; color: var(--muted); font-size: .86rem; line-height: 1.4; }

.ship-box { margin-top: 18px; background: #fffaf0; border: 1px solid #f3dfae; border-radius: var(--radius); padding: 14px 16px; }
.ship-head { display: flex; align-items: center; gap: 12px; }
.ship-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ship-main { display: block; font-size: 1.05rem; color: #7a4a00; line-height: 1.3; }
.ship-note { margin: 10px 0 12px; color: #5b4a22; font-size: .92rem; }
.ship-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ship-points li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.ship-points svg { flex: none; margin-top: 2px; color: var(--tc); }
.ship-links { margin: 12px 0 0; font-size: .9rem; }

.cant-find { margin-top: 30px; }
.cant-find-box { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; background: var(--blue-soft); border: 1px solid #cfdcf0; border-radius: var(--radius); padding: 18px; }
.cant-find-box h2 { margin: 0 0 .25em; }
.cant-find-box p { margin: 0; color: var(--text); }

.home-faq { margin-top: 30px; margin-bottom: 30px; }
.faq-list { display: grid; gap: 8px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.faq-item summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style-position: inside; }
.faq-item[open] summary { color: var(--blue); }
.faq-a { padding: 0 16px 14px; color: var(--text); }
.faq-a p { margin: 0; }
.faq-more { margin-top: 14px; }

.company-fields { margin-top: 12px; padding: 14px; background: var(--blue-soft); border: 1px solid #cfdcf0; border-radius: var(--radius); }
.company-fields.is-hidden { display: none; }
.biz-note { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }

@media (min-width: 640px) {
    .trust-strip { grid-template-columns: repeat(2, 1fr); }
    .cant-find-box { flex-direction: row; align-items: center; }
    .cant-find-box > div { flex: 1; }
}
@media (min-width: 960px) {
    .trust-strip { grid-template-columns: repeat(4, 1fr); }
}
.rel-more { margin: 14px 0 0; font-weight: 600; }

/* 12. Brand tiles + model chips ---------------------------------------------------------------------------- */
.brand-tiles { display: grid; gap: 10px; grid-template-columns: 1fr; }
.brand-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 120px; padding: 20px 14px; background: linear-gradient(135deg, #003478, #00205a); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; text-align: center; }
.brand-tile strong { font-size: 1.9rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 800; padding-left: .22em; }
.brand-tile span { font-size: .9rem; color: #cfe0ff; }
.brand-tile:hover, .brand-tile:focus-visible { background: linear-gradient(135deg, #0a4aa5, #003478); }
.chips { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 8px 14px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; }
.chips a:hover { border-color: var(--blue); background: var(--blue-soft); }
@media (min-width: 640px) { .brand-tiles { grid-template-columns: repeat(3, 1fr); } }
.chips-note { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }

/* 13. Product page: "does it fit?" banner ------------------------------------------------------------------ */
.t-red { --tc: #b3001f; --tb: #fde8ec; }
.fit-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin: 14px 0; padding: 10px 14px; background: var(--tb); border: 1px solid var(--tc); border-left-width: 5px; border-radius: var(--radius); color: var(--tc); }
.fit-msg { display: flex; align-items: center; gap: 10px; font-size: .98rem; line-height: 1.3; }
.fit-msg svg { flex: none; }
.fit-actions { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 700; font-size: .92rem; }
.fit-actions a { color: var(--tc); white-space: nowrap; }

/* 14. Vehicle pop-up ----------------------------------------------------------------------------------------- */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); }
.modal-card { position: relative; width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 14px; padding: 24px 22px 22px; box-shadow: 0 20px 50px rgba(15, 23, 42, .35); animation: modal-in .18s ease-out; }
.modal-card h2 { margin: 0 0 4px; font-size: 1.3rem; color: var(--blue); }
.modal-lead { margin: 0 0 16px; color: var(--muted); font-size: .95rem; }
.modal-close { position: absolute; top: 6px; right: 8px; width: 44px; height: 44px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; }
.modal-close:hover { color: var(--text); }
.modal-error { margin: 0 0 10px; color: #b3001f; font-size: .92rem; }
html.modal-open { overflow: hidden; }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal-card { animation: none; } }

/* Vehicle panel (category / brand pages) and category text */
.vpanel { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 18px; padding: 14px 16px; background: var(--blue-soft); border: 1px solid var(--line, #dbe4f0); border-left: 4px solid var(--accent); border-radius: 10px; }
.vpanel > svg { flex: none; color: var(--blue); }
.vpanel.is-set { border-left-color: #1a8f4c; }
.vp-text { flex: 1 1 240px; min-width: 0; }
.vp-text strong { display: block; font-size: 1.05rem; color: var(--blue); }
.vp-text span { display: block; font-size: .92rem; color: var(--muted); }
.vp-actions { flex: none; }
@media (max-width: 560px) { .vp-actions, .vp-actions .btn { width: 100%; } }
.cat-about { margin: 0 0 20px; padding: 18px 20px 8px; background: #fff; border: 1px solid #dbe4f0; border-radius: 10px; }
.cat-about h2 { font-size: 1.2rem; margin: 0 0 10px; color: var(--blue); }
.cat-about p { margin: 0 0 12px; color: var(--text); line-height: 1.65; }

/* Product: replaces box; reviews */
.sup-box { margin: 16px 0; padding: 14px 16px; background: var(--blue-soft); border-radius: 10px; }
.sup-box h3 { margin: 0 0 4px; font-size: 1.02rem; color: var(--blue); }
.sup-box p { margin: 0 0 8px; color: var(--muted); font-size: .92rem; }
.reviews { margin: 34px auto; }
.reviews h2 { margin: 0 0 10px; }
.rev-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 14px; }
.rev-summary strong { font-size: 1.6rem; }
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.rev-lead { margin: 0 0 14px; color: var(--muted); max-width: 640px; }
.rev-link { margin: 0; }
.rev-attr { margin: 8px 0 0; color: var(--muted); font-size: .85rem; }

/* Reviews carousel */
.rev-carousel { position: relative; margin: 6px 0 16px; }
.rev-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 8px; }
.rev-track::-webkit-scrollbar { display: none; }
.rev-card { flex: 0 0 calc((100% - 28px) / 3); scroll-snap-align: start; margin: 0; padding: 18px 16px 14px; background: #fff; border: 1px solid #dbe4f0; border-radius: 12px; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.rev-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.rev-initial { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.15rem; background: var(--blue); }
.rev-initial.h1, .rev-initial.h2 { background: #c2410c; } .rev-initial.h3, .rev-initial.h4 { background: #15803d; }
.rev-initial.h5, .rev-initial.h6 { background: #0e7490; } .rev-initial.h7, .rev-initial.h8 { background: #7e22ce; }
.rev-initial.h9, .rev-initial.h10 { background: #be123c; } .rev-initial.h11, .rev-initial.h12 { background: #4d7c0f; }
.rev-name { margin: 8px 0 6px; font-weight: 700; font-size: 1.02rem; }
.rev-text { margin: 0; line-height: 1.5; font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.rev-card.open .rev-text { display: block; -webkit-line-clamp: unset; }
.rev-more { background: none; border: 0; padding: 2px 0; color: var(--muted); font: inherit; font-size: .9rem; cursor: pointer; }
.rev-card .stars { margin-top: auto; padding-top: 10px; }
.rev-date { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--muted); font-size: .85rem; }
.rev-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #4285f4; color: #fff; font-size: 15px; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.rev-nav:disabled { opacity: .35; cursor: default; }
.rev-prev { left: -10px; } .rev-next { right: -10px; }
@media (max-width: 900px) { .rev-card { flex-basis: calc((100% - 14px) / 2); } }
@media (max-width: 560px) { .rev-card { flex-basis: 86%; } .rev-prev { left: -4px; } .rev-next { right: -4px; } }

/* Reviews: centered header + banner */
.reviews { text-align: center; }
.reviews h2 { text-align: center; }
.rev-banner { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: 4px auto 18px; padding: 10px 22px; background: #fff; border: 1px solid #dbe4f0; border-radius: 999px; box-shadow: 0 1px 4px rgba(16,36,80,.06); }
.rb-score { font-size: 1.9rem; font-weight: 800; line-height: 1; color: var(--text); }
.rb-score small { font-size: .9rem; font-weight: 600; color: var(--muted); margin-left: 3px; }
.rb-stars { gap: 3px; }
.rb-count { color: var(--muted); font-size: .98rem; }
.rb-count strong { color: var(--text); }
.rev-link, .rev-attr, .rev-lead { text-align: center; margin-left: auto; margin-right: auto; }
.rev-card { text-align: center; }
@media (max-width: 560px) { .rev-banner { border-radius: 18px; padding: 12px 16px; } }

/* Phones: home page blocks become swipeable rows instead of long stacks ------------------------------------- */
@media (max-width: 639px) {
    .hero { padding: 22px 0 30px; }
    .hero h1 { font-size: 1.45rem; }
    .hero p { font-size: .95rem; margin-bottom: .6em; }

    .steps, .trust-strip, .brand-tiles {
        display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
        margin: 0 -16px; padding: 4px 16px 10px; -webkit-overflow-scrolling: touch;
    }
    .steps::-webkit-scrollbar, .trust-strip::-webkit-scrollbar, .brand-tiles::-webkit-scrollbar, .cat-tiles::-webkit-scrollbar { display: none; }
    .steps li { flex: 0 0 78%; scroll-snap-align: start; }
    .trust-strip li { flex: 0 0 82%; scroll-snap-align: start; }
    .brand-tile { flex: 0 0 62%; scroll-snap-align: start; min-height: 96px; padding: 14px 10px; }
    .brand-tile strong { font-size: 1.5rem; }

    /* Category tiles: two rows that scroll sideways */
    .cat-tiles {
        display: grid; grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 132px;
        gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
        margin: 0 -16px; padding: 4px 16px 10px; -webkit-overflow-scrolling: touch;
    }
    .cat-tile { min-height: 96px; padding: 12px 8px; gap: 6px; font-size: .86rem; scroll-snap-align: start; }
    .cat-tile svg { width: 38px; height: 38px; }
    .home-cats { margin-top: 18px; }
    .home-cats h2 { margin-bottom: .5em; }
    /* hint that there is more to the right */
    .steps-wrap, .trust-wrap, .home-cats { overflow: hidden; }
}
@media (max-width: 639px) {
    .steps, .trust-strip, .brand-tiles, .cat-tiles { scroll-padding-left: 16px; }
    .steps li { align-content: start; }
}

.vehicle-wrap { position: relative; }
.vehicle-wrap .vehicle-btn { padding-right: 44px; }
.vehicle-clear { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 50%; background: #eef2f8; color: #3b4a63; font-size: 22px; line-height: 1; cursor: pointer; }
.vehicle-clear:hover, .vehicle-clear:focus-visible { background: #dbe4f0; color: #b3001f; }
.modal .modal-remove { display: block; margin: 14px auto 0; color: #b3001f; text-decoration: underline; font-weight: 600; }

/* Phones: more compact product page ------------------------------------------------------------------------ */
@media (max-width: 639px) {
    .breadcrumb ol { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; font-size: 13px; scrollbar-width: none; margin-bottom: 6px; }
    .breadcrumb ol::-webkit-scrollbar { display: none; }
    .breadcrumb li:last-child:not(:first-child) { display: none; }   /* the current page is the H1 right below */
    .product { gap: 12px; margin-bottom: 18px; }
    .gallery-main { aspect-ratio: 4 / 3; max-height: 250px; padding: 8px; }
    .thumbs { gap: 6px; margin-top: 8px; }
    .thumb { flex-basis: 50px; width: 50px; height: 50px; }
    .buy { padding: 14px; }
    .buy-title { font-size: 1.15rem; line-height: 1.3; margin-bottom: .4em; }
    .buy-meta { font-size: .88rem; margin: 0 0 8px; }
    .price-lg { font-size: 1.7rem; }
    .price-note { font-size: .8rem; margin: 2px 0 10px; }
    .fit-banner { padding: 10px 12px; font-size: .92rem; }
    .ship-box { margin-top: 12px; padding: 12px; }
    .ship-main { font-size: .98rem; }
    .ship-note { display: none; }          /* long explanation; the quote and the FAQ cover it */
    .ship-head + .ship-points { margin-top: 10px; }
    .ship-points li { font-size: .86rem; }
    .details { padding: 14px; margin-bottom: 14px; }
    .details h2 { font-size: 1.15rem; }
    .desc { padding: 10px 12px; font-size: .94rem; }
}

@media (max-width: 639px) { .gallery-main img { top: 8px; left: 8px; width: calc(100% - 16px); height: calc(100% - 16px); } }

/* Checkout: delivery options (home delivery, 1-3 per country) */
.courier-opt{display:flex;align-items:center;gap:.7rem;padding:.7rem .85rem;margin:.45rem 0;border:1px solid var(--border,#d9dee7);border-radius:10px;background:#fff;cursor:pointer}
.courier-opt:hover{border-color:#94a3b8}
.courier-opt input{flex:none;margin:0}
.courier-opt .co-name{flex:1;min-width:0}
.courier-opt small{color:#64748b;font-weight:400}
.courier-opt b{white-space:nowrap}
.courier-opt:has(input:checked){border-color:#1d4ed8;box-shadow:0 0 0 1px #1d4ed8 inset;background:#f5f8ff}
#courier-box.is-hidden{display:none}

/* Cookie banner + cookie policy table */
.cookie-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 900; background: #fff; color: var(--text, #0f172a);
    border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 23, 42, .18); }
.cookie-banner[hidden] { display: none; }
.cookie-inner { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; max-width: 1100px; margin: 0 auto; }
.cookie-text { margin: 0; font-size: 14px; line-height: 1.45; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cookie-actions .btn { min-height: 40px; padding: 6px 16px; font-size: 14px; }
.cookie-actions .is-hidden, .cookie-prefs[hidden] { display: none; }
.cookie-prefs { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.cookie-opt { display: inline-flex; align-items: center; gap: 6px; }
body:has(.sticky-cta) .cookie-banner { bottom: 84px; }
.footer-cookie-btn { color: #dbe6f7; padding: 0; font-size: 13px; }
.prose .btn-link { color: var(--blue); padding: 0; }
.table-wrap { overflow-x: auto; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: .5em 0 1em; }
.cookie-table th, .cookie-table td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.cookie-table th { background: var(--blue-soft); }
@media (min-width: 760px) {
    .cookie-inner { flex-direction: row; align-items: center; justify-content: space-between; }
    .cookie-actions { flex: none; }
    body:has(.sticky-cta) .cookie-banner { bottom: 12px; }
}

/* WhatsApp: floating button (bottom right), contact-page button, product-page link */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 250; display: flex; align-items: center; justify-content: center;
            width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
            box-shadow: 0 0 0 7px rgba(37, 211, 102, .22), 0 6px 16px rgba(15, 23, 42, .22); transition: transform .15s ease; }
.wa-float:hover, .wa-float:focus-visible { transform: scale(1.06); color: #fff; }
.wa-float:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }
.wa-float img { width: 32px; height: 32px; display: block; object-fit: contain; }
body:has(.sticky-cta) .wa-float { bottom: 88px; }
.site-footer .footer-bottom { padding-bottom: 86px; }
.btn-wa { background: #0f7b4f; color: #fff; border-color: #0f7b4f; }
.btn-wa:hover { background: #0b6440; color: #fff; }
.wa-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 18px; }
.wa-ask { margin: -4px 0 14px; font-size: 14.5px; color: var(--muted); }
.wa-ask a { font-weight: 700; color: #0f7b4f; }
@media (min-width: 992px) {
    .wa-float { right: 24px; bottom: 24px; }
    body:has(.sticky-cta) .wa-float { bottom: 24px; }
    .site-footer .footer-bottom { padding-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } }
