/* ===================== Albann EuroSpec ===================== */
:root {
  --bg: #0a0a0b;
  --surface: #131315;
  --surface-2: #1a1a1d;
  --surface-3: #232327;
  --border: #2a2a2f;
  --text: #f3f3f4;
  --muted: #9d9da6;
  /* brand colours from the AES logo: German-flag dark grey, red and gold */
  --red: #e50206;
  --red-2: #b80105;
  --gold: #fee009;
  --gold-2: #e6c800;
  --flag-dark: #3a3a3a;
  --tricolor: linear-gradient(90deg, var(--flag-dark) 0 33.33%, var(--red) 33.33% 66.66%, var(--gold) 66.66% 100%);
  --red-text: #ff4a52;   /* lighter red for text on dark backgrounds (WCAG AA contrast) */
  --green: #22c55e;
  --amber: #f59e0b;
  --blue: #3b82f6;
  --radius: 6px;
  --maxw: 1280px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Eurostile", "Microgramma", "Arial Black", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; line-height: 1.15; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.right { text-align: right; }
.red { color: var(--gold); }
a.red, .small a, .tiny a, .hint a, label a { text-decoration: underline; text-underline-offset: 2px; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: .5rem } .mt-2 { margin-top: 1rem } .mt-3 { margin-top: 1.5rem } .mt-4 { margin-top: 2.5rem }
.mb-0 { margin-bottom: 0 } .mb-1 { margin-bottom: .5rem } .mb-2 { margin-bottom: 1rem } .mb-3 { margin-bottom: 1.5rem }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }

/* ---------- slash motif from the logo ---------- */
.slashes { display: inline-flex; gap: 6px; vertical-align: middle; }
.slashes i { display: block; width: 10px; height: 22px; background: var(--flag-dark); transform: skewX(-30deg); }
.slashes i:nth-child(2) { background: var(--red); }
.slashes i:nth-child(3) { background: var(--gold); }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .25em; text-transform: uppercase; font-size: .78rem; display: flex; align-items: center; gap: 10px; margin-bottom: .8rem; }
.eyebrow::before { content: ""; width: 36px; height: 4px; background: var(--tricolor); transform: skewX(-30deg); }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius); border: 1px solid transparent;
  background: var(--red); color: #fff; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; cursor: pointer; transition: .15s; font-family: var(--font); line-height: 1.2; }
.btn:hover { background: var(--red-2); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: #000; }
.btn-dark { background: var(--surface-3); border-color: var(--border); color: var(--text); }
.btn-dark:hover { background: #2e2e33; }
.btn-ghost { background: transparent; color: var(--muted); padding: 8px 10px; }
.btn-ghost:hover { background: var(--surface-2); color: #fff; }
.btn-danger { background: transparent; color: #ff5a5f; border-color: #5a1d20; }
.btn-danger:hover { background: #3a1214; color: #ff8a8e; }
.btn-sm { padding: 7px 12px; font-size: .74rem; }
.btn-lg { padding: 16px 30px; font-size: .95rem; }
.btn-block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font: inherit; text-decoration: underline; }
.linkbtn:hover { color: #fff; }

label { display: block; font-size: .82rem; font-weight: 600; color: #d6d6db; margin-bottom: 6px; letter-spacing: .02em; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=search], input[type=date], select, textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius); padding: 11px 13px; font: inherit; font-size: .95rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(224, 22, 31, .2); }
textarea { min-height: 110px; resize: vertical; }
::placeholder { color: #8e8e96; opacity: 1; }
/* accessibility: visible keyboard focus + skip link */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible, .check input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 3px; }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: #fff; color: #000; padding: 10px 16px; border-radius: 4px; font-weight: 700; }
.skip-link:focus { left: 12px; color: #000; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #aaa 50%), linear-gradient(135deg, #aaa 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row.three { grid-template-columns: 1fr 1fr 1fr; }
.hint { color: var(--muted); font-size: .78rem; margin-top: 5px; font-weight: 400; }
.check { display: flex; align-items: center; gap: 9px; font-weight: 500; cursor: pointer; margin: 0; }
.check input { width: 17px; height: 17px; }
input[type=checkbox], input[type=radio] { accent-color: var(--red); }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin: 0 0 20px; }
legend { padding: 0 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--muted); }

/* ---------- alerts ---------- */
.alert { padding: 13px 16px; border-radius: var(--radius); margin-bottom: 16px; border: 1px solid; font-size: .93rem; }
.alert-success { background: #0f2417; border-color: #1d5233; color: #9ff0bd; }
.alert-error { background: #2a1012; border-color: #6b1d22; color: #ffb3b6; }
.alert-info { background: #10192b; border-color: #23406e; color: #b3cdff; }
.alert-warn { background: #2a2008; border-color: #6b5214; color: #ffe08a; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.flash-wrap { padding-top: 16px; }

/* ---------- header ---------- */
.announce { background: var(--red); color: #fff; text-align: center; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; padding: 8px 12px; font-weight: 700; }
.testmode { background: #f59e0b; color: #111; text-align: center; font-size: .8rem; padding: 6px; font-weight: 700; }
.site-header::after { content: ""; display: block; height: 3px; background: var(--tricolor); }
.site-header { background: rgba(10, 10, 11, .96); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 76px; }
.logo img { height: 36px; width: auto; }
.main-nav { display: flex; gap: 2px; align-items: center; }
.main-nav > a, .nav-drop > button { padding: 10px 10px; font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #d8d8dd; background: none; border: 0; cursor: pointer; font-family: var(--font); }
.main-nav > a:hover, .nav-drop > button:hover, .main-nav > a.active { color: #fff; }
.main-nav > a.active { box-shadow: inset 0 -2px 0 var(--gold); }
.nav-drop { position: relative; }
.nav-drop-menu { position: absolute; top: 100%; left: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; min-width: 240px;
  display: none; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: block; }
.nav-drop-menu a { display: block; padding: 9px 12px; border-radius: 4px; font-size: .9rem; color: #ddd; }
.nav-drop-menu a:hover { background: var(--surface-3); color: #fff; }
.header-search { flex: 1; max-width: 380px; margin-left: auto; position: relative; }
.header-search input { padding-left: 38px; background: var(--surface); height: 42px; }
.header-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.header-icons { display: flex; gap: 4px; align-items: center; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; color: #e8e8ea; background: none; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: #fff; }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: 2px; right: 0; background: var(--red); color: #fff; font-size: .68rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.menu-toggle { display: none; }
.search-toggle { display: none !important; }
.filters-toggle { display: none !important; }
.mobile-nav { display: none; }

/* ---------- hero ---------- */
.hero { --s: 150px; --g: 7px; position: relative; overflow: hidden; border-bottom: 1px solid var(--border);
  background: radial-gradient(1000px 520px at 50% 30%, #2a0b0d 0%, transparent 60%), linear-gradient(180deg, #0d0d0f, #0a0a0b); }
/* banner photos: slanted panels split by white / red slash lines like the logo */
.hero-photos { position: absolute; top: 0; bottom: 0; left: calc(-1 * var(--s)); right: calc(-1 * var(--s)); display: flex; }
.hp { position: relative; flex: 1 1 0; min-width: 0; margin-right: calc(var(--g) - var(--s)); }
.hp:last-child { margin-right: 0; }
.hp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: polygon(var(--s) 0, 100% 0, calc(100% - var(--s)) 100%, 0 100%); }
.hp::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(100% - var(--s)); width: calc(var(--s) + var(--g));
  clip-path: polygon(var(--s) 0, calc(var(--s) + var(--g)) 0, var(--g) 100%, 0 100%); background: #f3f3f4; opacity: .9; }
.hp::after { background: var(--flag-dark) !important; opacity: 1 !important; }
.hp:nth-child(2)::after { background: var(--red) !important; }
.hp:nth-child(3)::after { background: var(--gold) !important; }
.hp:last-child::after { display: none; }
.hero-photos[data-count="1"] { left: 0; right: 0; }
.hero-photos[data-count="1"] .hp img { clip-path: none; }
.hero-shade { position: absolute; inset: 0;
  background: radial-gradient(ellipse 58% 72% at 50% 50%, rgba(0,0,0,.8) 0%, rgba(0,0,0,.6) 55%, rgba(0,0,0,.28) 100%), linear-gradient(0deg, rgba(0,0,0,.55), transparent 30%); }
.hero-inner { position: relative; z-index: 1; min-height: 700px; padding: 80px 20px 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.hero-logo { margin: 0 0 14px; line-height: 0; }
.hero-logo img { width: clamp(280px, 46vw, 620px); height: auto; filter: drop-shadow(0 8px 30px rgba(0,0,0,.7)); }
.eyebrow-center { justify-content: center; }
.eyebrow-center::after { content: ""; width: 36px; height: 4px; background: var(--tricolor); transform: skewX(-30deg); }
.hero-title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.15; margin: 0 0 .45em; text-shadow: 0 2px 16px rgba(0,0,0,.7); }
.hero p.lead { font-size: 1.15rem; color: #dcdce1; max-width: 640px; margin: 0 auto 1.6em; text-shadow: 0 2px 12px rgba(0,0,0,.7); text-wrap: balance; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-vehicle { margin: 26px auto 0; width: 100%; max-width: 760px; flex-direction: column; background: rgba(14, 14, 16, .88); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: flex; gap: 10px; flex-wrap: nowrap; backdrop-filter: blur(6px); }

/* ---------- My Garage ---------- */
.garage-picker { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; align-content: flex-start; }
.garage-picker select { flex: 1 1 130px; min-width: 0; width: auto; }
.garage-picker select:disabled { opacity: .45; }
.garage-picker select.is-skipped { display: none; }
.garage-picker .btn { flex: 0 0 auto; }
.garage-msg { flex-basis: 100%; margin: 0; font-size: .85rem; color: #d6d6db; }
.garage-msg:empty { display: none; }
.garage-msg a { color: var(--gold); text-decoration: underline; }
.hero-vehicle .garage-msg { text-align: left; }
.hero-garage-title, .hero-garage-current { margin: 0 0 10px; text-align: left; font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-garage-title svg { width: 20px; height: 20px; color: var(--gold); }
.hero-garage-current a { color: var(--gold); }
.garage-btn { position: relative; }
.garage-dot { position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px var(--bg); }
.vehicle-bar { background: #111114; border-bottom: 1px solid var(--border); font-size: .85rem; }
.vehicle-bar .container { display: flex; gap: 14px; align-items: center; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; }
.vehicle-bar svg { width: 18px; height: 18px; color: var(--red-text); }
.vehicle-bar a { color: var(--red-text); text-decoration: underline; }
.fit-banner { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 12px 16px; margin-bottom: 18px; border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: var(--radius); background: var(--surface); font-size: .9rem; }
.fit-banner > svg, .fit-banner-title svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }
.fit-banner a { color: var(--gold); text-decoration: underline; }
.fit-banner-pick { flex-direction: column; align-items: stretch; }
.fit-banner-title { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.fit-check { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: var(--radius); margin: 4px 0 14px; font-size: .9rem; border: 1px solid; flex-wrap: wrap; }
.fit-check a { text-decoration: underline; }
.fit-check > span:not(.fit-icon) { flex: 1 1 0; min-width: 0; }
.fit-check .fit-change { margin-left: auto; color: inherit; opacity: .85; white-space: nowrap; }
.fit-check { flex-wrap: nowrap; }
.fit-icon { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; flex-shrink: 0; }
.fit-yes { background: #0f2417; border-color: #1d5233; color: #b5f5cc; }
.fit-yes .fit-icon { background: var(--green); color: #04220f; }
.fit-no { background: #2a2008; border-color: #6b5214; color: #ffe08a; }
.fit-no .fit-icon { background: var(--amber); color: #2a1a00; }
.fit-none { background: var(--surface); border-color: var(--border); color: #d6d6db; }
.fit-none .fit-icon { background: var(--surface-3); color: #fff; }
.fit-none a { color: var(--gold); }
.garage-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.garage-row:first-of-type { border-top: 0; }
.garage-row > svg { width: 22px; height: 22px; color: var(--muted); }
.garage-row.active > svg { color: var(--gold); }

/* ---------- sections ---------- */
.section-makes { padding-bottom: 20px; }
.make-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.make-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 150px; padding: 22px;
  border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(135deg, #1b1b1f, #0f0f11); transition: .2s; }
.make-tile::before, .make-tile::after { content: ""; position: absolute; top: -20%; height: 140%; width: 34px; transform: skewX(-30deg); transition: .25s; }
.make-tile::before { right: 64px; background: var(--red); opacity: .16; }
.make-tile::after { right: 18px; background: var(--gold); opacity: .2; }
.make-tile:hover { border-color: var(--red); transform: translateY(-2px); }
.make-tile:hover::before { opacity: .5; }
.make-tile:hover::after { opacity: .55; }
.make-name { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; font-size: clamp(1.05rem, 1.75vw, 1.5rem); line-height: 1.1; }
.make-meta { position: relative; z-index: 1; display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; }
.make-go { color: #fff; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; }
.section { padding: 70px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.cat-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 170px; padding: 20px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #18181b, #0f0f11); border: 1px solid var(--border); transition: .2s; }
.cat-tile::after { content: ""; position: absolute; right: -20px; top: -10px; width: 54px; height: 130%; background: var(--tricolor); transform: skewX(-30deg); opacity: .2; transition: .2s; }
.cat-tile:hover { border-color: var(--red); transform: translateY(-2px); }
.cat-tile:hover::after { opacity: .5; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: .3s; }
.cat-tile:hover img { opacity: .7; transform: scale(1.03); }
.cat-tile .cat-name { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 1.05rem; }
.cat-tile .cat-count { position: relative; z-index: 1; color: var(--muted); font-size: .8rem; }
.cat-tile.has-img { background: #000; }
.cat-tile.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent 70%); z-index: 1; }
.cat-tile.has-img .cat-name, .cat-tile.has-img .cat-count { z-index: 2; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.feature svg { width: 30px; height: 30px; color: var(--gold); margin-bottom: 12px; }
.feature h3 { font-size: .92rem; margin-bottom: .4em; }
.feature p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .2s; position: relative; }
.card:hover { border-color: #444; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .4); }
.card-img { aspect-ratio: 4 / 3; background: #0e0e10; position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { color: var(--gold); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.card-title { font-weight: 600; font-size: .98rem; line-height: 1.35; }
.card-price { margin-top: auto; padding-top: 6px; font-weight: 800; font-size: 1.08rem; display: flex; gap: 8px; align-items: baseline; }
.compare { color: var(--muted); text-decoration: line-through; font-weight: 500; font-size: .88rem; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 3px; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.badge-sale { background: var(--red); color: #fff; }
.badge-out { background: #333; color: #ccc; }
.card .badge { position: absolute; top: 10px; left: 10px; z-index: 2; }

/* image placeholder (no photo uploaded yet) */
.ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #8a8a92;
  background: repeating-linear-gradient(-60deg, #101012 0 14px, #121215 14px 28px); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; }
.ph img { width: 30% !important; height: auto !important; max-width: 120px; object-fit: contain; opacity: .22; filter: grayscale(30%); transform: none !important; }

/* ---------- shop listing ---------- */
.page-head { padding: 44px 0 28px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, #121214, var(--bg)); }
.breadcrumbs { font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span { margin: 0 6px; }
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding-top: 32px; padding-bottom: 70px; }
.filters h4 { font-size: .78rem; color: var(--muted); letter-spacing: .15em; margin: 22px 0 10px; }
.filters h4:first-child { margin-top: 0; }
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list a { display: block; padding: 7px 10px; border-radius: 4px; font-size: .92rem; color: #cfcfd5; }
.filter-list a:hover { background: var(--surface-2); color: #fff; }
.filter-list a.active { background: var(--surface-3); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar select { width: auto; min-width: 200px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius); padding: 0 12px; }
.pagination .current { background: var(--red); border-color: var(--red); }
.empty { text-align: center; padding: 70px 20px; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); }

/* ---------- product page ---------- */
.product-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; padding-top: 30px; padding-bottom: 60px; }
.gallery-main { aspect-ratio: 4 / 3; background: #0e0e10; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #0b0b0c; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; margin-top: 12px; }
.thumbs button { padding: 0; border: 2px solid var(--border); border-radius: 4px; overflow: hidden; background: #0e0e10; cursor: pointer; aspect-ratio: 1; }
.thumbs button.active, .thumbs button:hover { border-color: var(--red); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.p-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: .3em; }
.p-price { font-size: 1.9rem; font-weight: 800; display: flex; align-items: baseline; gap: 12px; margin: 10px 0 6px; }
.p-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; margin-bottom: 18px; }
.stock-in { color: var(--green); font-weight: 600; }
.stock-out { color: #ff6b6f; font-weight: 600; }
.buy-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 18px 0; }
.qty { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.qty button { width: 40px; background: var(--surface-2); border: 0; color: #fff; font-size: 1.2rem; cursor: pointer; }
.qty input { width: 56px; text-align: center; border: 0; border-radius: 0; background: var(--surface-2); padding: 10px 4px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-row { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 160px; }
.perks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 9px; font-size: .88rem; color: #cfcfd5; }
.perks li { display: flex; gap: 10px; align-items: center; }
.perks svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.tabs { margin-top: 26px; }
.tab-buttons { display: flex; gap: 4px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tab-buttons button { background: none; border: 0; color: var(--muted); padding: 12px 16px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; font-family: var(--font); }
.tab-buttons button.active { color: #fff; border-color: var(--red); }
.tab-panel { padding: 20px 2px; display: none; }
.tab-panel.active { display: block; }
.prose { color: #d4d4da; }
.prose h2 { font-size: 1.1rem; margin-top: 1.6em; }
.prose h3 { font-size: .95rem; margin-top: 1.3em; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--gold); text-decoration: underline; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .93rem; }
.spec-table td:first-child { color: var(--muted); width: 40%; }
.fitment-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.fitment-list li { padding: 10px 14px; background: var(--surface-2); border-left: 3px solid var(--red); border-radius: 3px; font-size: .93rem; }

/* ---------- reviews ---------- */
.stars { position: relative; display: inline-block; font-size: 1rem; line-height: 1; letter-spacing: 2px; vertical-align: middle; white-space: nowrap; }
.stars-base { color: #4a4a52; }
.stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--gold); }
.stars-sm { font-size: .82rem; }
.stars-lg { font-size: 1.4rem; }
.card-rating { display: flex; align-items: center; gap: 6px; }
.p-rating { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; color: #d6d6db; margin-bottom: 6px; }
.p-rating:hover span:last-child { text-decoration: underline; }
.reviews { padding: 10px 0 40px; border-top: 1px solid var(--border); margin-top: 10px; }
.reviews .section-head { margin: 28px 0 18px; }
.reviews-layout { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.reviews-summary { position: sticky; top: 96px; }
.rs-avg { font-size: 2.6rem; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.rs-bar { display: grid; grid-template-columns: 32px 1fr 28px; gap: 8px; align-items: center; font-size: .82rem; margin: 5px 0; }
.rs-bar .bar { margin: 0; }
.rs-bar .bar > span { background: var(--gold); }
.review { padding: 18px 0; border-bottom: 1px solid var(--border); }
.review:first-child { padding-top: 0; }
.review-title { margin-left: 8px; }
.review-meta { margin: 6px 0 8px; color: #d6d6db; }
.verified { color: var(--green); font-weight: 700; font-size: .8rem; }
.review-body { white-space: pre-wrap; color: #d6d6db; margin-bottom: 10px; }
.review-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.review-photos img { width: 96px; height: 96px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); }
.review-photos a:hover img { border-color: var(--red); }
.review-reply { background: var(--surface); border-left: 3px solid var(--red); padding: 10px 12px; border-radius: 4px; font-size: .88rem; margin-top: 10px; }
.review-form-wrap { margin-top: 20px; }
.review-form-wrap summary { cursor: pointer; color: #fff; font-size: 1rem; }
.star-input { border: 0; padding: 0; margin: 0 0 16px; display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input legend { float: left; width: 100%; padding: 0; margin-bottom: 6px; font-size: .82rem; font-weight: 600; color: #d6d6db; text-transform: none; letter-spacing: .02em; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2rem; color: #4a4a52; cursor: pointer; margin: 0; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--gold); }
.star-input input:focus-visible + label { outline: 2px solid #fff; outline-offset: 2px; border-radius: 3px; }

/* ---------- cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; padding-top: 30px; padding-bottom: 70px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-thumb { width: 96px; height: 72px; border-radius: 4px; overflow: hidden; background: #0e0e10; border: 1px solid var(--border); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .ph { font-size: 0; }
.cart-thumb .ph img { width: 50%; }
.summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: sticky; top: 96px; }
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: .95rem; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; font-size: 1.2rem; font-weight: 800; }
.freeship { margin: 0 0 16px; font-size: .85rem; color: #cfcfd5; }
.bar { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.bar > span { display: block; height: 100%; background: var(--red); }
.coupon-form { display: flex; gap: 8px; margin: 14px 0; }
.ship-to select { display: inline-block; width: auto; padding: 4px 28px 4px 8px; font-size: .85rem; margin-left: 4px; background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; }
.coupon-form input { text-transform: uppercase; }
.mini-lines { display: grid; gap: 12px; margin-bottom: 14px; }
.mini-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: .88rem; }
.mini-line .cart-thumb { width: 56px; height: 44px; position: relative; overflow: visible; }
.mini-line .qtyb { position: absolute; top: -7px; right: -7px; background: #555; color: #fff; font-size: .7rem; min-width: 19px; height: 19px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--muted); font-size: .8rem; margin-top: 12px; }
.secure-note svg { width: 15px; height: 15px; }

.agree-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.agree-box .check { align-items: flex-start; font-weight: 400; font-size: .88rem; line-height: 1.5; color: #d6d6db; }
.agree-box .check input { margin-top: 3px; flex-shrink: 0; }

/* ---------- order page ---------- */
.order-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 24px 0 30px; }
.order-step { text-align: center; padding-top: 14px; border-top: 4px solid var(--surface-3); color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.order-step.done { border-color: var(--red); color: #fff; }
.box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.box h3 { font-size: .85rem; color: var(--muted); letter-spacing: .15em; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---------- auth / narrow pages ---------- */
.narrow { max-width: 460px; margin: 50px auto 80px; }
.narrow-wide { max-width: 820px; margin: 40px auto 80px; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.auth-card h1 { font-size: 1.5rem; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; padding: 11px 14px; background: var(--surface-2); color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; white-space: nowrap; }
.table td { padding: 12px 14px; border-top: 1px solid var(--border); vertical-align: middle; }
.table tr:hover td { background: rgba(255, 255, 255, .015); }
.table a.rowlink { font-weight: 600; }
.table a.rowlink:hover { color: var(--red-text); }

.status { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; border: 1px solid; }
.st-pending { color: #aaa; border-color: #444; }
.st-paid, .st-sent, .st-confirmed { color: #93c5fd; border-color: #1e3a8a; background: #0d1a33; }
.st-processing { color: #fcd34d; border-color: #78350f; background: #241605; }
.st-shipped { color: #c4b5fd; border-color: #4c1d95; background: #1a0f33; }
.st-delivered { color: #86efac; border-color: #14532d; background: #0a2214; }
.st-cancelled, .st-refunded { color: #bbb; border-color: #444; background: #1a1a1a; }
.st-failed, .st-unassigned { color: #fca5a5; border-color: #7f1d1d; background: #2a0d0d; }

/* ---------- footer ---------- */
.site-footer { background: #070708; border-top: 1px solid var(--border); margin-top: auto; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 36px; padding: 56px 20px 40px; }
.footer-top h4 { font-size: .78rem; letter-spacing: .18em; color: var(--muted); margin-bottom: 14px; }
.footer-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .92rem; }
.footer-top ul a { color: #cfcfd5; }
.footer-top ul a:hover { color: #fff; }
.footer-logo img { height: 46px; width: auto; margin-bottom: 16px; }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a { width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.socials a:hover { border-color: var(--red); background: var(--red); }
.socials svg { width: 17px; height: 17px; }
.newsletter { display: flex; gap: 8px; margin-top: 10px; }
.footer-legal { border-top: 1px solid var(--border); padding: 18px 20px 6px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .84rem; margin-bottom: 10px; }
.legal-links a { color: #cfcfd5; }
.legal-links a:hover { color: #fff; text-decoration: underline; }
.disclaimer { color: var(--muted); font-size: .76rem; line-height: 1.5; margin: 0; max-width: 980px; }
.cookie-notice { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 560px; margin-left: auto; display: flex; gap: 14px; align-items: center;
  background: #16161a; border: 1px solid #3a3a40; border-radius: 8px; padding: 14px 16px; box-shadow: 0 16px 40px rgba(0,0,0,.6); font-size: .86rem; color: #d6d6db; }
.cookie-notice p { margin: 0; flex: 1; }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 20px; display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; flex-wrap: wrap; gap: 10px; }
.pay-icons { display: flex; gap: 8px; }
.pay-icons span { border: 1px solid var(--border); border-radius: 4px; padding: 3px 8px; font-size: .7rem; font-weight: 700; letter-spacing: .05em; color: #bbb; }

/* ---------- responsive ---------- */
@media (max-width: 1339px) {
  .header-search { display: none; }
  .header-icons { margin-left: auto; }
  .header-search.open { display: block; position: absolute; left: 0; right: 0; top: 76px; max-width: none; padding: 10px 20px; background: var(--bg); border-bottom: 1px solid var(--border); }
  .search-toggle { display: inline-flex !important; }
}
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav.open { display: block; border-top: 1px solid var(--border); padding: 10px 20px 20px; }
  .mobile-nav a { display: block; padding: 11px 4px; border-bottom: 1px solid var(--border); font-weight: 600; }
  .mobile-nav .sub a { padding-left: 18px; font-weight: 400; color: #cfcfd5; font-size: .93rem; }
  .mobile-nav .mnav-label { padding: 14px 4px 4px; color: var(--gold); font-size: .7rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
  .features { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero { --s: 60px; --g: 5px; }
  .hero-inner { min-height: 0; padding: 56px 20px 64px; }
  /* phones: show the first two photos */
  .hp:nth-child(n+3) { display: none; }
  .hp:nth-child(2) { margin-right: 0; }
  .hp:nth-child(2)::after { display: none; }
  .hp:nth-child(1)::after { background: var(--red) !important; }
  .shop-layout, .product-layout, .cart-layout { grid-template-columns: 1fr; }
  .filters { display: none; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex !important; }
  .summary { position: static; }
  .reviews-layout { grid-template-columns: 1fr; }
  .reviews-summary { position: static; }
  .two-col { grid-template-columns: 1fr; }

}
@media (max-width: 560px) {
  .logo img { height: 28px; }
  .header-inner { gap: 10px; height: 66px; }
  .header-search.open { top: 66px; }
  .field-row, .field-row.three { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .make-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .make-tile { min-height: 110px; padding: 16px; }
  .make-tile::before { right: 44px; width: 22px; } .make-tile::after { right: 12px; width: 22px; }
  .footer-top { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-body { padding: 10px 12px 14px; }
  .card-title { font-size: .88rem; }
  .cart-line { grid-template-columns: 70px 1fr; }
  .cart-line .cart-thumb { width: 70px; height: 56px; }
  .cart-line .line-total { grid-column: 2; }
  .order-steps { grid-template-columns: repeat(2, 1fr); }
  .auth-card { padding: 22px; }
  .eyebrow-center { font-size: .68rem; letter-spacing: .16em; white-space: nowrap; }
  .eyebrow-center::before, .eyebrow-center::after { display: none; }
  .garage-picker select, .garage-picker .btn { flex: 1 1 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .ph { font-size: .6rem; letter-spacing: .12em; text-align: center; }
}

/* accessibility: respect "reduce motion" */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .card:hover, .cat-tile:hover, .make-tile:hover, .card:hover .card-img img, .cat-tile:hover img { transform: none !important; }
}

/* password rules checklist + sign-in code */
.pw-rules { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .8rem; color: var(--muted, #a1a1aa); }
.pw-rules li::before { content: "\2022"; display: inline-block; width: 1.1em; color: #71717a; }
.pw-rules li.ok { color: #86efac; }
.pw-rules li.ok::before { content: "\2713"; color: #86efac; }
.code-input { font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.linklike { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
