/* ZapasLand storefront: one stylesheet for every public page.
   The look is the approved brand (navy, night, orange, Kalameh; calm, lots of air); this file adds what makes it feel alive:
   colour on the goods, depth, movement on hover and on scroll, and the header, basket and "my car" windows. */
@font-face { font-family: Kalameh; font-weight: 200; font-display: swap; src: url(/fonts/KalamehWebFaNum-ExtraLight.woff2) format('woff2'); }
@font-face { font-family: Kalameh; font-weight: 300; font-display: swap; src: url(/fonts/KalamehWebFaNum-Light.woff2) format('woff2'); }
@font-face { font-family: Kalameh; font-weight: 400; font-display: swap; src: url(/fonts/KalamehWebFaNum-Regular.woff2) format('woff2'); }
@font-face { font-family: Kalameh; font-weight: 500; font-display: swap; src: url(/fonts/KalamehWebFaNum-Medium.woff2) format('woff2'); }
@font-face { font-family: Kalameh; font-weight: 600; font-display: swap; src: url(/fonts/KalamehWebFaNum-SemiBold.woff2) format('woff2'); }
@font-face { font-family: Kalameh; font-weight: 700; font-display: swap; src: url(/fonts/KalamehWebFaNum-Bold.woff2) format('woff2'); }
@font-face { font-family: Kalameh; font-weight: 800; font-display: swap; src: url(/fonts/KalamehWebFaNum-ExtraBold.woff2) format('woff2'); }

:root {
  --navy: #14213D; --navy-2: #1D2E55; --night: #0F1930; --orange: #F77F00; --orange-2: #FF9124;
  --text: #2B2D42; --muted: #5F6878; --soft: #A9B1C1; --line: #E9EBF0; --line-2: #D9DDE5; --bg: #F2F3F5; --tile: #F4F5F7;
  --ok: #17694A; --ok-bg: #E7F5EE; --bad: #8E2A1E; --bad-bg: #FDECEA; --warn: #8A4B00; --warn-bg: #FFF1DD;
  --sh-1: 0 1px 3px rgba(20,33,61,.08);
  --sh-2: 0 12px 30px rgba(20,33,61,.09);
  --sh-3: 0 24px 56px rgba(20,33,61,.16);
  --ease: cubic-bezier(.2,.7,.2,1);
  --hdr: 80px; /* how much of the top of the window the floating header takes; sticky things sit just under it */
  --col: 1210px; /* how wide the page's column of content may grow: the header, every section and the footer share it. Everything on every page grows and shrinks with it (1100 felt too small, 1280 too big). */
  --glass: rgba(255,255,255,.84); /* the frosted panes that float over the page: the bar at the bottom of a phone, the product page's jump links */
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Kalameh, Tahoma, sans-serif; font-size: 14px; line-height: 1.85; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
::selection { background: rgba(247,127,0,.26); }
.skip { position: absolute; top: -60px; right: 12px; z-index: 90; padding: 8px 16px; border-radius: 999px; background: var(--navy); color: #fff; }
.skip:focus { top: 12px; }
main { display: flow-root; } /* so the first block's top margin is kept, not swallowed by the header's */
.wrap { max-width: calc(var(--col) + 48px); margin: 0 auto; padding: 0 24px; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.i.fill { fill: currentColor; stroke: none; }
.bw { filter: grayscale(1) contrast(1.04); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.err { color: #B42318; }
.grow { flex: 1; min-width: 0; }
.under { text-decoration: underline; text-underline-offset: 4px; }
.linklike { color: var(--muted); font-size: 12.5px; text-decoration: underline; text-underline-offset: 4px; transition: color .2s; }
.linklike:hover { color: var(--navy); }
.noimg { display: grid; place-items: center; width: 100%; height: 100%; background: var(--tile); color: var(--soft); }
.noimg .i { width: 34px; height: 34px; }

/* buttons: every one answers the pointer */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 22px; border-radius: 999px; font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn .i { width: 17px; height: 17px; }
.i.mv { transition: transform .25s var(--ease); }
a:hover > .i.mv, button:hover > .i.mv, a:hover .btn .i.mv { transform: translateX(-4px); }
.btn:active { transform: scale(.97); }
.btn-o { background: var(--orange); color: var(--navy); box-shadow: 0 6px 16px rgba(247,127,0,.2); }
.btn-o:hover, a:hover > .btn-o { background: var(--orange-2); box-shadow: 0 10px 24px rgba(247,127,0,.32); }
.btn-n { background: var(--navy); color: #fff; }
.btn-n:hover, a:hover > .btn-n { background: var(--navy-2); box-shadow: 0 8px 20px rgba(20,33,61,.22); }
.btn-g { background: rgba(255,255,255,.12); color: #fff; }
.btn-g:hover, a:hover > .btn-g { background: rgba(255,255,255,.22); }
.btn-l { background: #fff; color: var(--navy); border: 1px solid var(--line-2); }
.btn-l:hover { border-color: var(--navy); }
.btn.sm { height: 36px; padding: 0 16px; font-size: 12.5px; }
.btn.sm .i { width: 15px; height: 15px; }
.btn.lg { height: 48px; padding: 0 26px; font-size: 14.5px; }
.btn.wide { width: 100%; height: 50px; font-size: 14.5px; }
.btn:disabled, .btn.busy { opacity: .6; pointer-events: none; }

/* two-weight headings, as in the concept: light words and strong words */
.tt { font-size: 28px; line-height: 1.5; font-weight: 300; color: var(--muted); }
.tt b { font-weight: 600; color: var(--navy); }
.tt.solid { font-weight: 600; color: var(--navy); }
.sec { margin-top: 100px; }
.sec-head { text-align: center; margin-bottom: 34px; }
.sec-head p { max-width: 400px; margin: 8px auto 0; font-size: 13.5px; color: var(--muted); }
.cic { width: 42px; height: 42px; border-radius: 50%; background: var(--tile); color: var(--navy); display: grid; place-items: center; transition: background-color .25s var(--ease), color .25s var(--ease); }
.cic .i { width: 19px; height: 19px; }

/* small labels: grade of a part, rating */
.grade { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--navy); line-height: 1.6; white-space: nowrap; }
.grade::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.grade.company::before { background: var(--navy); }
.grade.aftermarket::before { background: #98A0AF; }
.grade.none { font-weight: 500; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.grade.none::before { display: none; }
.rate { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; }
.rate .i { width: 13px; height: 13px; color: var(--orange); }
.rate small { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.stars { display: flex; align-items: center; gap: 1px; color: var(--orange); }
.stars .i { width: 14px; height: 14px; }
.stars .dim { color: #D5D9E0; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chipl { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-size: 13px; color: var(--navy); white-space: nowrap; transition: border-color .2s, background-color .2s, color .2s; }
.chipl:hover { border-color: var(--navy); }
.chipl.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chipl .i { width: 13px; height: 13px; }
.chipl[class*=q-]::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.chipl.q-company::before { background: var(--navy); }
.chipl.q-aftermarket::before { background: #98A0AF; }
.chipl.on.q-company::before { background: #fff; }
.chips-label { font-size: 12.5px; color: var(--muted); margin-inline-end: 4px; }
.ava { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 14px; font-weight: 600; line-height: 1; }
.ava .i { width: 17px; height: 17px; }

/* ---------- the quiet line above the header ---------- */
.ribbon { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px; min-height: 38px; padding: 8px 24px 0; font-size: 12.5px; color: var(--muted); text-align: center; }
/* each note of the ribbon sits on a pale orange pill */
.ribbon span { padding: 3px 14px; border-radius: 999px; background: var(--orange); color: var(--navy); }
.ribbon b { color: var(--navy); font-weight: 600; }
.ribbon a { color: var(--navy); font-weight: 500; }

/* ---------- header: one floating bar of frosted glass that stays at the top of the window ---------- */
.hdr { position: sticky; top: 10px; z-index: 40; margin-top: 6px; padding: 0 24px; }
.bar { position: relative; display: flex; align-items: center; gap: 12px; max-width: var(--col); height: 64px; margin: 0 auto; padding-inline: 24px 10px; border-radius: 999px; background: rgba(255,255,255,.74); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); border: 1px solid rgba(255,255,255,.75); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 10px 34px rgba(15,25,48,.09); transition: background-color .3s, box-shadow .3s; }
.hdr.scrolled .bar { background: rgba(255,255,255,.88); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 14px 40px rgba(15,25,48,.15); }
.logo { flex: none; transition: opacity .2s; }
.logo:hover { opacity: .8; }
.logo img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; flex: none; margin-inline-start: 8px; }
.navbtn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 13px; border-radius: 999px; font-size: 13.5px; color: #3A4256; white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease); }
.navbtn:hover, .navbtn[aria-expanded=true] { background: rgba(20,33,61,.07); color: var(--navy); }
.navbtn.cur { background: rgba(20,33,61,.06); color: var(--navy); font-weight: 600; }
button.navbtn { font-weight: 600; color: var(--navy); }
.navbtn .i { width: 17px; height: 17px; }
.navbtn .c { width: 13px; height: 13px; color: var(--muted); transition: transform .25s var(--ease); }
.navbtn[aria-expanded=true] .c { transform: rotate(180deg); }
.search { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; height: 44px; margin-inline-start: 4px; padding-inline: 5px 16px; border-radius: 999px; background: rgba(20,33,61,.055); border: 1px solid transparent; transition: background-color .2s, border-color .2s, box-shadow .2s; }
.search:hover { background: rgba(20,33,61,.08); }
.search:focus-within { background: #fff; border-color: rgba(20,33,61,.45); box-shadow: 0 0 0 4px rgba(20,33,61,.07); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: 0; font: inherit; font-size: 13.5px; color: var(--text); text-overflow: ellipsis; }
.search input::placeholder { color: #6F7888; }
.search input::-webkit-search-cancel-button { display: none; }
.search > button { flex: none; width: 34px; height: 34px; border-radius: 50%; color: var(--muted); display: grid; place-items: center; transition: background-color .2s, color .2s; }
.search > button:hover { background: rgba(20,33,61,.08); color: var(--navy); }
.search > button .i { width: 18px; height: 18px; }
.sug { position: absolute; top: calc(100% + 16px); right: 0; z-index: 5; width: max(100%, 440px); padding: 8px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-3); max-height: min(70vh, 540px); overflow-y: auto; animation: pop .2s var(--ease); }
.sug-h { padding: 6px 12px 2px; font-size: 11.5px; color: var(--muted); }
.sug a { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 14px; }
.sug a:hover, .sug a.on { background: var(--tile); }
.sug img, .sug .ph { width: 46px; height: 46px; flex: none; border-radius: 12px; object-fit: cover; background: var(--tile); display: grid; place-items: center; color: var(--muted); }
.sug .ph .i { width: 18px; height: 18px; }
.sug .t { flex: 1; min-width: 0; }
.sug .t b { display: block; font-weight: 500; color: var(--navy); line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug .t small { display: block; font-size: 12px; color: var(--muted); line-height: 1.6; }
.sug .p { font-size: 13px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.sug .p small { font-weight: 400; color: var(--muted); }
.sug .p.soon { font-size: 12px; font-weight: 500; color: var(--muted); }
.sug .all { justify-content: center; gap: 8px; margin-top: 4px; padding: 10px; color: var(--navy); font-weight: 500; background: var(--tile); }
.sug .all:hover, .sug .all.on { background: #E9ECF1; }
.sug .none { padding: 18px 12px; text-align: center; color: var(--muted); }

.acts { display: flex; align-items: center; gap: 8px; flex: none; }
.acctbtn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; background: rgba(20,33,61,.055); font-size: 13.5px; font-weight: 500; color: var(--navy); white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.acctbtn:hover { background: var(--navy); color: #fff; }
.acctbtn:active, .cartbtn:active { transform: scale(.95); }
.acctbtn .i { width: 18px; height: 18px; }
.acctbtn.in, .acctbtn.in:hover { width: 44px; padding: 0; justify-content: center; background: none; }
.acctbtn.in .ava { width: 40px; height: 40px; font-size: 15px; transition: box-shadow .2s; }
.acctbtn.in:hover .ava, .acctmenu[open] .ava { box-shadow: 0 0 0 4px rgba(20,33,61,.13); }
.cartbtn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; background: var(--navy); color: #fff; transition: background-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.cartbtn:hover { background: var(--navy-2); box-shadow: 0 8px 22px rgba(20,33,61,.28); }
.cartbtn .i { width: 19px; height: 19px; }
.cartbtn em, .tabbar em { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: var(--navy); font-style: normal; font-size: 11.5px; font-weight: 700; line-height: 20px; text-align: center; }
em.bump { animation: bump .5s var(--ease); }
.acctmenu { position: relative; }
.pop { position: absolute; top: calc(100% + 18px); left: 0; z-index: 6; min-width: 230px; padding: 8px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-3); animation: pop .2s var(--ease); }
.pop-head { padding: 8px 12px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.pop-head b { display: block; color: var(--navy); font-weight: 600; line-height: 1.6; }
.pop-head small { display: block; font-size: 12px; color: var(--muted); text-align: start; }
.pop a, .pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; color: var(--text); text-align: start; transition: background-color .2s, color .2s; }
.pop a:hover, .pop button:hover { background: var(--tile); color: var(--navy); }
.pop .i { width: 18px; height: 18px; color: var(--muted); }
.pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

/* the categories menu: every kind of part at a glance, in a panel that floats under the bar */
.scrim { position: fixed; inset: 0; z-index: 39; background: rgba(15,25,48,.3); animation: fade .25s; }
.mega { position: absolute; top: calc(100% + 10px); right: 24px; left: 24px; max-width: var(--col); margin: 0 auto; padding: 26px; border-radius: 32px; background: #fff; border: 1px solid rgba(255,255,255,.8); box-shadow: 0 34px 70px rgba(15,25,48,.22); opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.99); transform-origin: top center; transition: opacity .2s var(--ease), transform .28s var(--ease), visibility 0s .28s; }
.mega.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega-in { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 26px; }
.mega-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; align-content: start; }
.mc-head { display: flex; align-items: center; gap: 10px; padding: 6px; margin: -6px; border-radius: 14px; transition: background-color .2s; }
.mc-head:hover { background: var(--tile); }
.mc-head .cic { width: 40px; height: 40px; flex: none; }
.mc-head:hover .cic { background: var(--navy); color: #fff; }
.mc-head b { display: block; font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.55; }
.mc-head small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.mega-cats ul { display: grid; gap: 1px; margin-top: 10px; padding-inline-start: 50px; }
.mega-cats ul a { font-size: 13px; color: var(--muted); transition: color .2s, padding .2s var(--ease); }
.mega-cats ul a:hover { color: var(--navy); padding-inline-start: 4px; }
.mega-side { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px; border-radius: 22px; color: #fff; background: linear-gradient(165deg, #1F2B47 0%, var(--night) 70%); }
.mega-side .mega-t { margin: 0; font-size: 20px; line-height: 1.55; font-weight: 300; color: #fff; }
.mega-side .mega-t b { font-weight: 600; }
.mega-side p { font-size: 12.5px; color: var(--soft); margin-bottom: 8px; }
.mega-side .lnk { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; font-size: 13px; color: #fff; }
.mega-side .lnk .i { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.mega-side .lnk:hover .i { transform: translateX(-4px); }

/* ---------- windows over the page: my car, categories, the basket ---------- */
dialog.dlg { border: 0; padding: 0; max-width: none; max-height: none; color: var(--text); background: #fff; }
dialog.dlg::backdrop { background: rgba(15,25,48,.52); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade .25s; }
.dlg.sheet { width: min(580px, calc(100vw - 32px)); padding: 26px; border-radius: 26px; box-shadow: var(--sh-3); animation: rise .3s var(--ease); }
.dlg.sheet.tall { max-height: 86vh; overflow-y: auto; }
.dlg.closing { animation: sink .18s ease-in forwards; }
.dlg.closing::backdrop { animation: fadeout .18s forwards; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dlg-head h2 { font-size: 20px; font-weight: 300; color: var(--muted); }
.dlg-head h2 b { font-weight: 600; color: var(--navy); }
.xbtn { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--tile); color: var(--navy); display: grid; place-items: center; transition: background-color .2s, transform .3s var(--ease); }
.xbtn:hover { background: #E6E9EE; transform: rotate(90deg); }
.xbtn .i { width: 17px; height: 17px; }
.dlg-lead { color: var(--muted); margin-bottom: 16px; }
.mycar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border-radius: 16px; background: var(--ok-bg); }
.mycar > i { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.mycar > span { flex: 1; min-width: 0; }
.mycar small { display: block; font-size: 11.5px; color: var(--ok); line-height: 1.5; }
.mycar b { display: block; color: var(--navy); font-weight: 600; line-height: 1.6; }
.quick { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.quick > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.quick p { display: flex; flex-wrap: wrap; gap: 6px; }
.quick a { height: 32px; padding: 0 12px; border-radius: 999px; background: var(--tile); font-size: 12.5px; line-height: 32px; color: var(--navy); transition: background-color .2s, color .2s; }
.quick a:hover { background: var(--navy); color: #fff; }
.dlg .linklike { display: inline-block; margin-top: 14px; }
.catlist { display: grid; gap: 4px; }
.catlist > li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.catlist .mc-head .c { width: 16px; height: 16px; margin-inline-start: auto; color: #98A0AF; }
.catlist .mc-head > span:nth-child(2) { flex: 1; }
.catlist p { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; padding-inline-start: 50px; font-size: 13px; color: var(--muted); }
.catlinks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.catlinks a { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--tile); font-size: 13.5px; color: var(--navy); font-weight: 500; }
.catlinks .i { width: 18px; height: 18px; color: var(--orange); }

.dlg.drawer { position: fixed; inset: 0 auto 0 0; margin: 0; width: min(440px, 100vw); height: 100%; max-height: 100dvh; border-radius: 0 26px 26px 0; box-shadow: var(--sh-3); animation: slidein .34s var(--ease); }
.dlg.drawer[open] { display: flex; flex-direction: column; }
.dlg.drawer.closing { animation: slideout .2s ease-in forwards; }
.drawer .dlg-head { padding: 20px 22px 16px; margin: 0; border-bottom: 1px solid var(--line); }
.drawer .dlg-head small { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.drawer-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dfree { padding: 14px 22px 0; }
.dlines { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 22px; overscroll-behavior: contain; }
.dline { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.dline:last-child { border-bottom: 0; }
.dline .thumb { width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: var(--tile); display: grid; place-items: center; color: var(--soft); }
.dline .thumb img { width: 100%; height: 100%; object-fit: cover; }
.dline .t { display: block; padding-inline-end: 30px; font-weight: 500; color: var(--navy); line-height: 1.7; }
.dline .t:hover { text-decoration: underline; text-underline-offset: 4px; }
.dline small { display: block; font-size: 12px; color: var(--muted); }
.dline .warn { color: #B42318; }
.drow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.drow .sum b { font-size: 15px; font-weight: 700; color: var(--navy); }
.drow .sum small { display: inline; }
.dline .rm { position: absolute; top: 14px; left: -6px; }
.dline .qty { height: 40px; padding: 3px; }
.dline .qty button { width: 34px; height: 34px; font-size: 17px; }
.dline .qty button:disabled { opacity: .35; }
.dline .qty input { width: 30px; pointer-events: none; }
.dmsg { padding: 0 22px; font-size: 12.5px; color: #B42318; }
.dfoot { display: grid; gap: 12px; padding: 18px 22px 22px; border-top: 1px solid var(--line); background: #fff; }
.dtotal { display: flex; align-items: baseline; justify-content: space-between; color: var(--muted); }
.dtotal b { font-size: 20px; font-weight: 700; color: var(--navy); }
.dtotal small { font-size: 12.5px; }
.dfoot .lnk { justify-self: center; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.dfoot .lnk:hover { color: var(--navy); }
.dempty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 30px; text-align: center; }
.dempty > i, .emptybox > i { width: 76px; height: 76px; border-radius: 50%; background: var(--tile); color: var(--navy); display: grid; place-items: center; }
.dempty > i .i, .emptybox > i .i { width: 30px; height: 30px; }
.dempty b { color: var(--navy); font-size: 15px; }
.dload { flex: 1; display: grid; place-items: center; }
.spin { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--line-2); border-top-color: var(--navy); animation: spin .7s linear infinite; }

/* how far the basket is from free delivery */
.freebar p { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.freebar p b { color: var(--navy); font-weight: 600; }
.freebar p .i { width: 16px; height: 16px; color: var(--ok); }
.freebar .bar { height: 6px; border-radius: 999px; background: #E6E9EE; overflow: hidden; }
.freebar .bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(to left, var(--orange), #FFB15C); transition: width .6s var(--ease); }
.freebar.done .bar i { background: var(--ok); }

.toast { position: fixed; bottom: 26px; right: 50%; transform: translateX(50%); z-index: 70; display: flex; gap: 12px; align-items: center; padding: 9px 20px 9px 10px; padding-inline: 10px 20px; border-radius: 999px; background: var(--night); color: #fff; box-shadow: var(--sh-3); white-space: nowrap; animation: toastin .32s var(--ease); }
.toast > i { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; color: var(--orange); }
.toast > i .i { width: 16px; height: 16px; }
.toast.bad > i { color: #FF9C8F; }
.toast a { color: var(--orange); font-weight: 600; }
.totop { display: inline-flex; align-items: center; gap: 8px; flex: none; white-space: nowrap; color: #C9CFDB; font-size: 12.5px; transition: color .2s; }
.totop .i { width: 34px; height: 34px; padding: 9px; border-radius: 50%; background: rgba(255,255,255,.08); transition: background-color .2s, transform .25s var(--ease); }
.totop:hover { color: #fff; }
.totop:hover .i { background: var(--orange); color: var(--navy); transform: translateY(-3px); }
.tabbar, .buybar { display: none; }

/* ---------- a product card: the same everywhere ---------- */
.pcard { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 10px; border-radius: 20px; background: #fff; color: var(--text); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.pcard-media { position: relative; display: block; aspect-ratio: 1 / .9; border-radius: 14px; overflow: hidden; background: var(--tile); }
/* multiply: a photo taken on white sits on the soft tile instead of in a white box */
.pcard-media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .6s var(--ease), opacity .35s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.06); }
/* a second view of the product, faded in while the card is pointed at */
.pcard-media .alt { position: absolute; inset: 0; opacity: 0; }
.pcard:hover .pcard-media.two img:not(.alt) { opacity: 0; }
.pcard:hover .pcard-media.two .alt { opacity: 1; }
/* no picture yet: the category's icon on a white disc, so the tile reads as a place kept for a picture, not as a fault */
.pcard-media .noimg .i { box-sizing: content-box; width: 34px; height: 34px; padding: 21px; border-radius: 50%; background: #fff; color: #9AA2B1; stroke-width: 1.3; }
.pcard-off { position: absolute; top: 10px; right: 10px; z-index: 1; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--orange); color: var(--navy); font-size: 12px; font-weight: 700; line-height: 24px; }
/* on the picture: the part's grade at the top, a stock warning at the bottom */
.pcard-grade { position: absolute; top: 10px; right: 10px; z-index: 1; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(255,255,255,.95); box-shadow: var(--sh-1); }
.pcard-low { position: absolute; bottom: 10px; right: 10px; height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--warn); font-size: 11.5px; font-weight: 600; line-height: 24px; box-shadow: var(--sh-1); }
.pcard-body { flex: 1; display: flex; flex-direction: column; padding: 12px 6px 6px; }
/* the part's maker on one side, what buyers think on the other; the line keeps its height when either is missing */
.pcard-top { display: flex; align-items: center; gap: 8px; min-height: 20px; }
.pcard-brand { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; font-weight: 600; letter-spacing: .03em; color: var(--muted); }
.pcard-top .rate { margin-inline-start: auto; }
.pcard-title { margin-top: 5px; font-size: 14px; font-weight: 500; line-height: 1.7; color: var(--navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-title a::after { content: ''; position: absolute; inset: 0; border-radius: 20px; } /* the whole card is the link */
.pcard-title a:focus-visible { outline: 0; }
.pcard-title a:focus-visible::after { outline: 2px solid var(--orange); outline-offset: 2px; }
.pcard-fit { margin-top: 2px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.pcard-price { display: grid; gap: 1px; min-width: 0; }
/* the old price with the percent off right beside it, above the price it leads to */
.pcard-was { display: flex; align-items: center; gap: 6px; }
.pcard-was em { height: 19px; padding: 0 7px; border-radius: 999px; background: var(--orange); color: var(--navy); font-size: 11.5px; font-weight: 700; font-style: normal; line-height: 19px; }
.pcard-price s { font-size: 12px; line-height: 1.6; color: #7F8796; }
.pcard-price span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; }
.pcard-price b { font-size: 16.5px; font-weight: 700; color: var(--navy); line-height: 1.5; }
.pcard-price small { font-size: 11px; color: var(--muted); }
.pcard-add { position: relative; z-index: 1; width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.pcard-add:hover { background: var(--orange); color: var(--navy); transform: scale(1.08); box-shadow: 0 8px 18px rgba(247,127,0,.34); }
.pcard-add:active { transform: scale(.94); }
.pcard-add.busy { pointer-events: none; opacity: .6; }
.pcard-add.ok { background: var(--ok); color: #fff; animation: bump .5s var(--ease); }
/* sold out: said plainly in place of the price and the basket button */
.pcard-sold { width: 100%; height: 42px; border-radius: 999px; background: var(--tile); color: var(--muted); font-size: 13px; font-weight: 600; display: grid; place-items: center; }
.pcard.out .pcard-media img { filter: grayscale(1); opacity: .55; }
.pcard.out .pcard-title { color: var(--text); }

/* a row of cards that slides sideways */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 5); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; scrollbar-width: none; overscroll-behavior-x: contain; padding: 8px 4px 34px; margin: -8px -4px -34px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.arrows { display: flex; align-items: center; gap: 8px; }
.arrows .all { margin-inline-end: 8px; font-size: 13px; text-decoration: underline; text-underline-offset: 5px; transition: color .2s; }
.ar { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; transition: background-color .2s, color .2s, transform .2s var(--ease), opacity .2s; }
.ar.o { background: var(--orange); }
.ar .i { width: 18px; height: 18px; }
.ar:hover { transform: scale(1.08); }
.ar:disabled { opacity: .32; transform: none; }
/* the last card of a row: the way on to the whole list */
.more-card { display: grid; place-content: center; justify-items: center; gap: 8px; min-height: 200px; padding: 0 12px; border-radius: 20px; background: rgba(20,33,61,.045); color: var(--navy); text-align: center; transition: background-color .25s var(--ease); }
.more-card:hover { background: rgba(20,33,61,.08); }
.more-card .go2 { width: 44px; height: 44px; margin-bottom: 4px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; transition: background-color .25s var(--ease), color .25s var(--ease), transform .3s var(--ease); }
.more-card:hover .go2 { background: var(--orange); color: var(--navy); transform: translateX(-4px); }
.more-card .go2 .i { width: 18px; height: 18px; }
.more-card b { font-size: 14px; font-weight: 600; line-height: 1.6; }
.more-card > span:last-child { font-size: 12.5px; line-height: 1.7; color: var(--muted); }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: 1fr 324px; gap: 6px; margin-top: 16px; }
/* The frame is a little taller in a tall window (so it and the promises bar under it fill the first screen), never
   squeezed in a short one. The words stand in the middle of the room above the finder. */
.hero-main { position: relative; display: flex; flex-direction: column; height: clamp(520px, calc(100vh - 316px), 590px); border-radius: 24px; overflow: hidden; background: var(--night); color: #fff; }
/* Without a photo the brand's own mark stands in the frame: the logo's gear, drawn in line, rising behind the finder like
   the sun in the logo and turning very slowly. It fades out towards the finder, so there is no hard edge above it. */
.hero-mark { position: absolute; left: -80px; bottom: 148px; height: min(calc(100% - 264px), 250px); aspect-ratio: 2 / 1; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(to top, transparent, #000 70%); mask-image: linear-gradient(to top, transparent, #000 70%); }
.hero-mark i { display: block; width: 100%; aspect-ratio: 1; background: url(/assets/gear-line.svg?v=2) center / contain no-repeat; opacity: .55; animation: turn 120s linear infinite; }
.hero-main > img { position: absolute; top: 0; left: 0; width: 66%; height: 100%; object-fit: cover; object-position: 60% 50%; opacity: .92; -webkit-mask-image: linear-gradient(to right, #000 48%, transparent 96%); mask-image: linear-gradient(to right, #000 48%, transparent 96%); transform-origin: 30% 50%; animation: drift 28s ease-in-out infinite alternate; }
/* the photo sinks into the card's own dark towards the bottom, where the car finder stands */
.hero-main:not(.plain)::after { content: ''; position: absolute; inset: 62% 0 0; background: linear-gradient(to top, rgba(15,25,48,.92) 30%, rgba(15,25,48,0)); pointer-events: none; }
/* one line down the right: the slogan, the words under it, the finder's heading and the first word in its bar all start 44px in */
.hero-txt { position: relative; z-index: 1; max-width: 520px; margin-block: auto; padding: 28px 44px; }
.hero .hl { margin: 0 0 12px; font-size: 60px; line-height: 1.26; font-weight: 300; }
.hero .hl b { font-weight: 700; }
.hero-sub { max-width: 390px; margin-bottom: 22px; font-size: 14.5px; color: #C2C9D6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
/* the car finder: a heading, the cars most looked for, and one white bar with the only orange button of the first screen */
.finder { position: relative; z-index: 1; margin: 0 20px 20px; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "title quick" "form form"; align-items: center; gap: 14px 16px; }
.finder h2 { grid-area: title; padding-inline-start: 24px; font-size: 17px; line-height: 1.6; font-weight: 300; color: #D5DAE4; }
.finder h2 b { font-weight: 600; color: #fff; }
.finder-quick { grid-area: quick; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 6px; padding-inline-end: 4px; font-size: 12px; color: var(--soft); }
.finder-quick span { margin-inline-end: 4px; }
.finder-quick a { height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.1); line-height: 28px; color: #E6E9EF; transition: background-color .2s, color .2s; }
.finder-quick a:hover { background: var(--orange); color: var(--navy); }
.finder .carpick { grid-area: form; }
.finder-m { display: none; } /* the phone's one white line in place of the bar (see the phone rules) */
/* car picker: real select boxes dressed like the design's fields */
.fields { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; align-items: end; }
.fields label > span { display: block; font-size: 12px; color: var(--soft); margin-bottom: 4px; }
.carpick select { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9B1C1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat left 12px center / 15px; color: #fff; font: inherit; font-size: 13.5px; appearance: none; -webkit-appearance: none; cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.carpick select:hover:not(:disabled) { border-color: rgba(255,255,255,.34); }
.carpick select:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(247,127,0,.22); }
.carpick select:disabled { opacity: .5; cursor: default; }
.carpick option { color: var(--text); background: #fff; }
.go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; background: var(--orange); color: var(--navy); font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: background-color .2s, box-shadow .2s, transform .2s var(--ease); }
.go:hover { background: var(--orange-2); box-shadow: 0 8px 20px rgba(247,127,0,.32); }
.go:active { transform: scale(.97); }
.go .i { width: 17px; height: 17px; }
.carpick.light select { border-color: var(--line-2); background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F6878' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); color: var(--text); }
.carpick.light select:hover:not(:disabled) { border-color: var(--navy); }
.carpick.light select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20,33,61,.08); }
.carpick.light .fields { grid-template-columns: 1fr 1fr 1fr; }
.carpick.light .fields label > span { color: var(--muted); }
.carpick.light .go { grid-column: 1 / -1; height: 48px; border-radius: 999px; }
/* the home page's finder: one white bar. Each part of it is a whole select box, with its name written small above the choice. */
.carpick.white .fields { grid-template-columns: 1fr 1fr 1fr auto; gap: 0; align-items: stretch; padding: 8px; border-radius: 22px; background: #fff; box-shadow: 0 18px 44px rgba(0,0,0,.3); }
.carpick.white label { position: relative; display: block; }
.carpick.white label + label::before { content: ''; position: absolute; top: 14px; bottom: 14px; right: 0; z-index: 1; width: 1px; background: var(--line-2); }
.carpick.white label > span { position: absolute; top: 9px; right: 16px; z-index: 1; margin: 0; font-size: 11.5px; line-height: 1.6; color: var(--muted); pointer-events: none; }
.carpick.white select { height: 58px; padding: 22px 16px 0 38px; border: 0; border-radius: 14px; background-color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F6878' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-position: left 14px center; color: var(--navy); font-size: 14.5px; font-weight: 600; }
.carpick.white select:hover:not(:disabled), .carpick.white select:focus { background-color: var(--tile); box-shadow: none; }
.carpick.white select:focus-visible { box-shadow: inset 0 0 0 2px var(--orange); }
.carpick.white select:disabled { opacity: 1; color: #8A92A1; font-weight: 400; }
.carpick.white .go { height: 58px; margin-inline-start: 8px; padding: 0 26px; border-radius: 16px; font-size: 14.5px; }

/* the first screen arrives in one calm movement: the words, the buttons, then the car picker and the cards beside it */
.hero-txt > *, .finder, .hero-side > * { animation: rise .7s var(--ease) backwards; }
.hero-txt > :nth-child(2) { animation-delay: .07s; }
.hero-txt > :nth-child(3) { animation-delay: .14s; }
.finder, .hero-side > :first-child { animation-delay: .2s; }
.hero-side > :nth-child(2) { animation-delay: .28s; }

.hero-side { display: grid; grid-template-rows: 1fr 168px; gap: 6px; }
.offer { position: relative; padding: 26px 24px; border-radius: 24px; overflow: hidden; background: linear-gradient(165deg, #1F2B47 0%, var(--night) 70%); color: #fff; }
.offer > img { position: absolute; left: -12%; bottom: -10%; width: 92%; height: 62%; object-fit: cover; opacity: .9; -webkit-mask-image: radial-gradient(ellipse at 40% 60%, #000 35%, transparent 72%); mask-image: radial-gradient(ellipse at 40% 60%, #000 35%, transparent 72%); transition: transform .7s var(--ease); }
.offer:hover > img { transform: scale(1.06) rotate(-2deg); }
.offer > :not(img) { position: relative; }
.offer .ey { font-size: 12px; }
.offer .ey b { color: var(--orange); font-weight: 500; }
.offer h3 { font-size: 21px; line-height: 1.55; font-weight: 300; margin: 4px 0 14px; }
.offer h3 b { font-weight: 600; }
/* the first screen's own product: the best offer of the moment, in colour, with its price */
.pick { display: flex; flex-direction: row-reverse; align-items: center; gap: 14px; padding: 12px; padding-inline-start: 20px; border-radius: 24px; background: #fff; color: var(--text); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pick:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.pick-media { flex: none; align-self: stretch; width: 124px; min-height: 120px; border-radius: 16px; overflow: hidden; background: var(--tile); }
.pick-media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.pick:hover .pick-media img { transform: scale(1.06); }
.pick-txt { flex: 1; min-width: 0; display: grid; justify-items: start; gap: 6px; }
.pick-tag { height: 24px; padding: 0 10px; border-radius: 999px; background: var(--orange); color: var(--navy); font-size: 12px; font-weight: 700; line-height: 24px; white-space: nowrap; }
.pick-tag.best { background: var(--navy); color: #fff; font-weight: 600; }
.pick .rate { margin-top: -2px; }
.pick h3 { font-size: 14.5px; font-weight: 600; line-height: 1.7; color: var(--navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick-price { display: grid; }
.pick-price s { font-size: 12px; line-height: 1.5; color: #7F8796; }
.pick-price > span { display: flex; align-items: baseline; gap: 5px; }
.pick-price b { font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--navy); }
.pick-price small { font-size: 11px; color: var(--muted); }
/* (shown in its place while the shop has nothing on sale yet) */
.guar { position: relative; padding: 18px 20px; border-radius: 24px; background: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.guar .cic { background: var(--warn-bg); color: #B45A00; }
.guar h3 { font-size: 15px; font-weight: 400; color: var(--text); }
.guar h3 b { font-weight: 600; color: var(--navy); }
.guar p { font-size: 12.5px; line-height: 1.75; color: var(--muted); }
.guar p b { font-weight: 500; color: var(--text); }

/* the four promises */
.usp { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 6px; padding: 16px 6px; border-radius: 24px; background: #fff; }
.usp > div { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 4px 18px; border-inline-start: 1px solid var(--line); }
.usp > div:first-child { border: 0; }
.usp i { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--tile); color: var(--navy); display: grid; place-items: center; transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
.usp > div:hover i { background: var(--navy); color: #fff; transform: scale(1.06); }
.usp .i { width: 21px; height: 21px; }
.usp > div > span { min-width: 0; }
.usp b { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); line-height: 1.6; }
.usp small { display: block; font-size: 12px; color: var(--muted); line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.usp.dark { margin: 0 0 46px; padding: 0 0 36px; border-radius: 0; background: none; border-bottom: 1px solid rgba(255,255,255,.08); }
.usp.dark > div { border-color: rgba(255,255,255,.08); }
.usp.dark i { background: rgba(255,255,255,.07); color: var(--orange); }
.usp.dark > div:hover i { background: var(--orange); color: var(--navy); }
.usp.dark b { color: #fff; }
.usp.dark small { color: var(--soft); }
/* on the home page the promises stand a little apart from the first screen, on a bar of the brand's navy with orange marks */
.usp.home { margin-top: 40px; padding: 20px 8px; background: var(--navy); }
.usp.home > div { border-color: rgba(255,255,255,.1); }
.usp.home i { background: var(--orange); color: var(--navy); }
.usp.home > div:hover i { background: #fff; color: var(--navy); }
.usp.home b { color: #fff; }
.usp.home small { color: #C2C9D6; }

/* categories: the concept's bento, with part counts */
.cats { display: grid; grid-template-columns: 344fr 245fr 170fr 157fr 157fr; grid-template-rows: 166px 166px; gap: 6px; }
.cat { position: relative; border-radius: 24px; background: #fff; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.cat:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.cat > img { transition: transform .8s var(--ease); }
.cat:hover > img { transform: scale(1.05); }
.cat:hover .cic { background: var(--navy); color: #fff; }
.cat.r2 { grid-row: span 2; }
.cat.c2 { grid-column: span 2; }
/* with fewer categories, tiles span three or four of the five columns (see TILE_SETS in pages.js) */
.cat.c3 { grid-column: span 3; }
.cat.c4 { grid-column: span 4; }
.cat .t { position: absolute; right: 20px; left: 20px; }
.cat .t.up { top: 18px; }
.cat .t.dn { bottom: 18px; }
.cat .t b { display: block; font-size: 15px; font-weight: 500; color: var(--navy); line-height: 1.6; }
.cat .t span { display: block; font-size: 12.5px; color: var(--muted); }
.cat .t bdi { white-space: nowrap; }
.cat .cic { position: absolute; }
.cat .cic.tr { top: 18px; right: 18px; }
.cat .cic.tl { top: 18px; left: 18px; }
.cat .cic.bl { bottom: 18px; left: 18px; }
.cat .go2 { position: absolute; bottom: 18px; left: 18px; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; transition: background-color .25s var(--ease), color .25s var(--ease), transform .3s var(--ease); }
.cat:hover .go2 { background: var(--orange); color: var(--navy); transform: translateX(-4px); }
.cat .go2 .i { width: 17px; height: 17px; }
.cat.big .t b { font-size: 19px; }
.cat.big .t span { font-size: 13px; }
/* the gearbox photo runs off the top and sides of the card; its own white floor blends into the card */
.cat.big > img { position: absolute; top: 0; left: 0; width: 100%; height: 68%; object-fit: cover; object-position: 50% 0; }
.cat.dark { background: var(--night); }
.cat.dark > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.cat.dark::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(15,25,48,.92) 0%, rgba(15,25,48,.1) 46%, rgba(15,25,48,.55) 100%); }
.cat.dark .t, .cat.dark .go2 { z-index: 1; }
.cat.dark .t b { color: #fff; }
.cat.dark .t span { color: var(--soft); }
.cat.dark .go2 { background: rgba(255,255,255,.14); }
.cat.dark:hover .go2 { background: var(--orange); }
/* a small tile shows one of the category's own parts, in colour, on the soft grey the product cards use.
   The shop's own photo, taken on white, is shown whole; a picture from elsewhere fills the frame. */
.cat .cv { position: absolute; top: 8px; left: 8px; right: 8px; height: calc(100% - 82px); border-radius: 18px; overflow: hidden; background: var(--tile); }
.cat .cv img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .7s var(--ease); }
.cat .cv.full img { object-fit: cover; }
/* the shop's own photos are taken on one gray (222, 224, 229): the frame takes that gray, so the photo has no edge in it */
.cat .cv.own { background: #DEE0E5; }
.cat .cv.own img { mix-blend-mode: normal; }
.cat .t .nm { font-style: normal; }
.cat:hover .cv img { transform: scale(1.06); }
.cat.pic.up .cv { top: auto; bottom: 8px; }
.cat.pic.c2 .cv { top: 8px; bottom: 8px; right: auto; width: 46%; height: auto; }
.cat.pic.c2 .t { left: calc(46% + 24px); }
.cat.pic.c3 .cv { top: 8px; bottom: 8px; right: auto; width: 40%; height: auto; }
.cat.pic.c3 .t { left: calc(40% + 24px); }
.cat.all { background: var(--orange); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--navy); }
.cat.all .go2 { position: static; }
.cat.all:hover .go2 { background: var(--navy); color: #fff; transform: translate(-3px, -3px); }
.cat.all b { font-size: 14px; font-weight: 600; }

/* dark band with the best sellers */
.band { position: relative; margin-top: 100px; padding: 76px 0 84px; background: var(--night); color: #fff; overflow: hidden; }
.band .wrap { position: relative; }
.bhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.bhead .tt { color: #D5DAE4; }
.bhead .tt b { color: #fff; }
.bhead p { max-width: 360px; margin-top: 6px; font-size: 13.5px; color: var(--soft); }
.bhead p b { color: #fff; font-weight: 500; }
.band .arrows .all:hover { color: var(--orange); }
.band .pcard:hover { box-shadow: 0 24px 50px rgba(0,0,0,.4); }
.band .more-card { background: rgba(255,255,255,.06); color: #fff; }
.band .more-card:hover { background: rgba(255,255,255,.11); }
.band .more-card .go2 { background: rgba(255,255,255,.14); }
.band .more-card > span:last-child { color: var(--soft); }

/* rows of goods by category */
.rows { display: grid; gap: 60px; }
.rows > * { min-width: 0; }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.row-head .tt { font-size: 24px; }
.row-head .ar { width: 40px; height: 40px; background: #fff; box-shadow: var(--sh-1); }
.row-head .ar.o { background: var(--navy); color: #fff; }
.row-head .ar .i { width: 16px; height: 16px; }
.row-head .all { color: var(--muted); }
.row-head .all:hover { color: var(--navy); }

/* this week's offers: every offer in a row that slides, on the brand's own dark band */
.deals .tt { color: #D5DAE4; }
.deals .tt b { color: #fff; }
.drail { grid-auto-columns: calc((100% - 16px) / 3); gap: 8px; }
.drail.few { grid-auto-columns: calc((100% - 8px) / 2); }
.deal { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: 264px; padding: 26px 24px; border-radius: 22px; overflow: hidden; background: #fff; color: var(--text); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.deal:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(0,0,0,.4); }
/* every offer's picture stands on the same soft tile as a product card's: a photo taken on white does not float on the white card */
.deal::before { content: ''; position: absolute; top: 14px; left: 14px; width: 40%; height: calc(100% - 28px); border-radius: 16px; background: var(--tile); }
.deal > img { position: absolute; top: 14px; left: 14px; width: 40%; height: calc(100% - 28px); object-fit: cover; border-radius: 16px; mix-blend-mode: multiply; transition: transform .7s var(--ease); }
.deal:hover > img { transform: scale(1.04); }
.deal > :not(img) { position: relative; max-width: 55%; }
.deal .ey { height: 26px; padding: 0 12px; border-radius: 999px; background: var(--orange); color: var(--navy); font-size: 12px; font-weight: 700; line-height: 26px; white-space: nowrap; }
.deal h3 { margin: 12px 0 8px; font-size: 19px; line-height: 1.6; font-weight: 600; color: var(--navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deal .save { margin-bottom: 14px; font-size: 12px; font-weight: 500; line-height: 1.7; color: var(--navy); }
.few .deal { padding: 30px 32px; }
.few .deal h3 { font-size: 21px; }
.dprice { display: grid; margin-bottom: 2px; }
.dprice s { font-size: 13px; color: #7F8796; line-height: 1.5; }
.dprice span { display: flex; align-items: baseline; gap: 6px; }
.dprice b { font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1.4; }
.dprice small { font-size: 12px; color: var(--muted); }
.deal .btn { margin-top: auto; }

/* car makers: every mark in the same grey, the same size */
.makers { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.maker { display: grid; place-items: center; align-content: center; gap: 9px; height: 108px; padding: 0 8px; border-radius: 22px; background: #fff; color: #8A92A1; text-align: center; transition: color .25s, transform .3s var(--ease), box-shadow .3s var(--ease); }
.maker svg { width: 38px; height: 38px; fill: currentColor; }
/* a prepared one-colour mark: its shape is cut out of a block of the tile's own text colour, so it matches the drawn ones exactly */
.maker .mk { width: 38px; height: 38px; background: currentColor; -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat; }
.maker img { height: 38px; width: auto; max-width: 72%; object-fit: contain; filter: grayscale(1) opacity(.55); transition: filter .25s; }
.maker span { font-size: 12px; line-height: 1.4; }
.maker b { font-size: 14.5px; font-weight: 600; line-height: 1.5; }
/* only a maker the shop has parts for is a link, and only a link answers the pointer */
a.maker:hover { color: var(--navy); transform: translateY(-4px); box-shadow: var(--sh-2); }
a.maker:hover img { filter: grayscale(1) opacity(.95); }

/* online-only offer: wider than the page column, as in the concept */
.promo { position: relative; width: calc(100% - 48px); max-width: calc(var(--col) + 120px); margin: 100px auto 0; padding: 66px 24px 64px; border-radius: 26px; overflow: hidden; background: var(--night); color: #fff; text-align: center; }
.promo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; opacity: .38; }
.promo:not(.plain)::before { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at center, rgba(15,25,48,.5), rgba(15,25,48,.94) 72%); }
.promo > :not(img) { position: relative; z-index: 2; }
/* without a photo, the same gear as the first screen's stands at the banner's side */
.promo > .hero-mark { position: absolute; z-index: 0; left: -60px; bottom: 0; height: min(70%, 13vw); } /* small enough to stay clear of the words in the middle */
.promo h2 { font-size: 30px; line-height: 1.55; font-weight: 300; color: #D5DAE4; margin-bottom: 24px; }
.promo h2 b { font-weight: 600; color: #fff; }

/* guides */
.guides { display: grid; grid-template-columns: 1fr 1.25fr; gap: 60px; align-items: center; }
.guides .intro .tt { font-size: 26px; }
.guides .intro p { max-width: 340px; margin: 12px 0 22px; font-size: 13px; color: var(--muted); }
.glist { display: grid; gap: 12px; }
.g { display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-radius: 18px; background: #fff; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.g:hover { transform: translateX(-6px); box-shadow: var(--sh-2); }
.g img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; flex: none; transition: filter .4s; }
.g:hover img, .gcard:hover img { filter: none; }
.g h3 { font-size: 14.5px; font-weight: 600; line-height: 1.7; color: var(--navy); }
.g p { font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.more { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12.5px; font-weight: 500; color: var(--navy); }
.more .i { width: 14px; height: 14px; transition: transform .25s var(--ease); }
a:hover .more .i { transform: translate(-2px, -2px); }

/* ---------- page frame ---------- */
.page { margin-top: 20px; min-height: 46vh; }
.page.narrow { max-width: 868px; }
.bc { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 14px; font-size: 12.5px; color: var(--muted); }
.bc a { transition: color .2s; }
.bc a:hover { color: var(--navy); }
.bc a::after { content: '‹'; margin-inline-start: 8px; color: var(--soft); }
.bc span { color: var(--navy); }
.phead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.page > .tt { margin-bottom: 18px; }
.lead { max-width: 62ch; margin-bottom: 22px; font-size: 15px; color: var(--muted); }
/* (before .prose, so a page's text set in a card keeps its own headings) */
.card { background: #fff; border-radius: 22px; padding: 24px; }
.card.flush { padding: 0; overflow: hidden; }
.card h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 16px; font-weight: 600; color: var(--navy); }
.card h2 .i { width: 20px; height: 20px; color: var(--orange); }
.prose { max-width: 70ch; }
.prose p { margin-bottom: 14px; }
.prose p:last-child { margin-bottom: 0; }
.prose.intro { color: var(--muted); }
/* the text of a guide or page as written in the admin panel: headings, lists, a note, links and pictures */
.prose h2 { display: block; margin: 32px 0 10px; font-size: 19px; line-height: 1.6; font-weight: 600; color: var(--navy); scroll-margin-top: calc(var(--hdr) + 18px); }
.prose h3 { margin: 24px 0 8px; font-size: 16px; line-height: 1.6; font-weight: 600; color: var(--navy); scroll-margin-top: calc(var(--hdr) + 18px); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 14px; padding-inline-start: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; list-style: persian; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--orange); }
.prose strong { font-weight: 600; color: var(--navy); }
.prose a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 1.5px; text-underline-offset: 5px; transition: color .2s; }
.prose a:hover { color: var(--orange-2); }
.prose figure { margin: 24px 0; }
.prose figure img { width: 100%; height: auto; border-radius: 18px; background: var(--tile); }
.prose figcaption { margin-top: 8px; font-size: 12.5px; color: var(--muted); text-align: center; }
.prose .note { margin: 0 0 16px; padding: 14px 18px; border-radius: 16px; background: var(--warn-bg); color: var(--warn); border-inline-start: 3px solid var(--orange); }
.prose .toc { margin: 0 0 26px; padding: 16px 22px; border-radius: 18px; background: var(--tile); }
.prose .toc b { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--navy); }
.prose .toc ol { margin: 0; }
.prose .toc li { margin-bottom: 2px; }
.prose .toc a { color: var(--text); text-decoration: none; }
.prose .toc a:hover { color: var(--orange-2); }
.prose > :last-child { margin-bottom: 0; }
.stack { display: grid; gap: 10px; align-content: start; min-width: 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 356px; gap: 10px; align-items: start; }
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; margin-bottom: 12px; border-radius: 14px; background: var(--warn-bg); color: #7A4A00; }
.notice .i { width: 18px; height: 18px; margin-top: 4px; }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.bad { background: var(--bad-bg); color: var(--bad); }
.emptybox { display: grid; gap: 8px; justify-items: center; padding: 54px 24px; border-radius: 22px; background: #fff; text-align: center; }
.emptybox > i { margin-bottom: 8px; }
.emptybox b { color: var(--navy); font-size: 15.5px; }
.emptybox p { max-width: 46ch; color: var(--muted); }
.emptybox .btn, .emptybox .addrow { margin-top: 10px; }
.lost .big { font-size: 96px; font-weight: 800; line-height: 1; color: var(--tile); -webkit-text-stroke: 1.5px var(--line-2); letter-spacing: 4px; }
.addrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.addrow.center { justify-content: center; }
.secure { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--muted); }
.secure .i { width: 16px; height: 16px; margin-top: 3px; color: var(--ok); }
.asklink { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border-radius: 14px; background: var(--tile); color: var(--muted); font-size: 13px; text-align: start; transition: background-color .2s; }
.asklink:hover { background: #E9ECF1; }
.asklink .i { width: 19px; height: 19px; color: var(--orange); }
.asklink b { color: var(--navy); font-weight: 600; }

/* ---------- lists ---------- */
/* The head of a list: the same night frame as the home page's first screen (the logo's gear, or the category's own
   picture fading into it), with an orange icon, the name in two weights and, as on the home page, the car finder in a
   white bar. It is kept low, so that goods still start high on the page. */
.lhero { position: relative; isolation: isolate; display: grid; gap: 20px; padding: 26px 28px 24px; margin-bottom: 10px; border-radius: 24px; overflow: hidden; background: var(--night); color: #fff; }
.lhero > .hero-mark { z-index: -1; left: -54px; top: 16px; bottom: auto; height: 118px; }
.lhero-img { position: absolute; z-index: -2; top: 0; left: 0; width: 48%; height: 100%; object-fit: cover; opacity: .62; }
.lhero.pic::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(to left, var(--night) 54%, rgba(15,25,48,.5) 78%, rgba(15,25,48,.2)); }
.lhero-top { display: flex; align-items: center; gap: 16px; min-width: 0; }
.lhero-ic { width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--orange); color: var(--navy); display: grid; place-items: center; }
.lhero-ic .i { width: 26px; height: 26px; }
.lhero .tt { font-size: 30px; line-height: 1.45; color: #D5DAE4; }
.lhero .tt b { font-weight: 600; color: #fff; }
.lhero-sub { margin-top: 2px; font-size: 13.5px; color: #AEB6C6; }
/* the car finder of a list: the question on the frame, the three choices and the only orange button in a white bar */
.lfind { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px 20px; }
.lfind-q { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 15px; color: #fff; white-space: nowrap; }
.lfind-q .i { width: 21px; height: 21px; flex: none; color: var(--orange); }
.lfind-q b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.lfind-btn { display: none; }
.lfind .carpick.white .fields { padding: 6px; border-radius: 20px; box-shadow: 0 14px 34px rgba(0,0,0,.3); }
.lfind .carpick.white select { height: 52px; padding-top: 20px; }
.lfind .carpick.white label > span { top: 7px; }
.lfind .carpick.white .go { height: 52px; border-radius: 14px; }
/* a car is already chosen: say which, and offer its own parts */
.lfind.has { display: flex; flex-wrap: wrap; gap: 10px 14px; padding: 10px 12px; border-radius: 20px; background: rgba(255,255,255,.08); }
.lfind.has > i { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.lfind.has > i .i { width: 18px; height: 18px; }
.lfind.has p { flex: 1; min-width: 180px; color: #D5DAE4; }
.lfind.has p b { color: #fff; font-weight: 600; }
.lfind.has .linklike { margin-inline: 2px 8px; color: #D5DAE4; }
.lfind.has .linklike:hover { color: #fff; }
/* a car's trims, on the frame */
.lhero .trims .chips-label { color: #AEB6C6; }
.lhero .trims .chipl { background: rgba(255,255,255,.09); border-color: transparent; color: #fff; }
.lhero .trims .chipl:hover { background: rgba(255,255,255,.18); }
.lhero .trims .chipl.on { background: #fff; color: var(--navy); font-weight: 600; }
/* what is inside a category (or which kinds of part a car has): one tile each, shown by one of its own parts */
/* (--cols is set on the row from how many tiles there are: up to six side by side, more than six in two even rows) */
.ltiles { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.ltile { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 8px; padding-inline-end: 16px; border-radius: 20px; background: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .2s; }
.ltile:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.ltile-pic { width: 58px; height: 58px; flex: none; border-radius: 14px; overflow: hidden; background: var(--tile); color: var(--navy); display: grid; place-items: center; }
.ltile-pic img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.ltile-pic .i { width: 22px; height: 22px; }
.ltile-t { display: grid; min-width: 0; }
.ltile-t b { font-size: 14px; font-weight: 600; line-height: 1.6; color: var(--navy); }
.ltile-t small { font-size: 12px; line-height: 1.6; color: var(--muted); }
/* an arrow at the far end of each tile: it says the tile leads somewhere, and balances a wide one */
.ltile::after { content: ''; width: 16px; height: 16px; flex: none; margin-inline-start: auto; opacity: .55; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F6878' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .25s var(--ease), opacity .2s; }
.ltile:hover::after { transform: translateX(-4px); opacity: 1; }
.ltile.on::after { display: none; }
.ltile.on { background: var(--navy); }
.ltile.on b { color: #fff; }
.ltile.on small { color: #AEB6C6; }
.sumline { max-width: 82ch; color: var(--muted); }
/* the list's facts in one sentence, for people who read to the end and for search engines */
.results > .sumline { margin-top: 26px; padding: 0 6px; font-size: 13px; line-height: 2; }
.labout { margin-top: 10px; }
.labout .prose { max-width: 82ch; }
.shop { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 10px; align-items: start; }
.side { position: sticky; top: calc(var(--hdr) + 12px); max-height: calc(100vh - var(--hdr) - 24px); overflow-y: auto; padding: 18px 12px; border-radius: 22px; background: #fff; transition: top .3s var(--ease); scrollbar-width: thin; }
.side h2 { padding: 0 10px 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.side h2:not(:first-of-type) { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.side ul a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; font-size: 13.5px; transition: background-color .2s, color .2s; }
.side ul a:hover { background: var(--tile); color: var(--navy); }
.side ul a .c { width: 15px; height: 15px; margin-inline-start: auto; color: #98A0AF; transition: transform .25s var(--ease); }
.side ul a:hover .c { transform: translateX(-3px); }
.side .on a, .side .on a:hover { background: var(--navy); color: #fff; }
.side .on a .c { color: #fff; }
.filters-head { display: none; }
.filters .chips { padding: 0 8px; gap: 6px; }
.filters .chipl { height: 32px; padding: 0 12px; font-size: 12.5px; }
.switches { display: grid; gap: 2px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 12px; font-size: 13.5px; transition: background-color .2s; }
.switch:hover { background: var(--tile); }
.switch i { position: relative; width: 38px; height: 22px; flex: none; border-radius: 999px; background: #D5D9E0; transition: background-color .25s; }
.switch i::after { content: ''; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.22); transition: transform .28s var(--ease); }
.switch.on { color: var(--navy); font-weight: 500; }
.switch.on i { background: var(--navy); }
.switch.on i::after { transform: translateX(-16px); }
.fback { display: none; }
.results { min-width: 0; }
.toolbar { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px; padding-inline-end: 20px; margin-bottom: 10px; border-radius: 18px; background: #fff; }
.sortbar { flex: 1; display: flex; align-items: center; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; font-size: 13px; }
.sortbar::-webkit-scrollbar { display: none; }
.sortbar > span { display: inline-flex; align-items: center; gap: 6px; padding-inline: 10px 8px; font-weight: 500; color: var(--navy); white-space: nowrap; }
.sortbar > span .i { width: 16px; height: 16px; }
.sortbar a { height: 36px; padding: 0 14px; border-radius: 999px; line-height: 36px; color: var(--muted); white-space: nowrap; transition: background-color .2s, color .2s; }
.sortbar a:hover { background: var(--tile); color: var(--navy); }
.sortbar a.on { background: var(--navy); color: #fff; font-weight: 500; }
.tcount { font-size: 13px; font-weight: 400; line-height: inherit; color: var(--muted); white-space: nowrap; }
.tcount b { color: var(--navy); }
.fbtn { display: none; }
/* on a phone the ways to sort open from one button, instead of a row that runs off the screen */
.sortmenu { display: none; position: relative; flex: 1; min-width: 0; }
.sortmenu summary { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--tile); color: var(--navy); font-size: 13px; font-weight: 500; list-style: none; cursor: pointer; }
.sortmenu summary::-webkit-details-marker { display: none; }
.sortmenu summary .i { width: 16px; height: 16px; flex: none; }
.sortmenu summary .c { margin-inline-start: auto; transition: transform .25s var(--ease); }
.sortmenu[open] summary .c { transform: rotate(180deg); }
.sortmenu .pop { top: calc(100% + 8px); left: 0; right: 0; min-width: 0; }
.sortmenu .pop a.on { background: var(--navy); color: #fff; font-weight: 500; }
.activef { margin-bottom: 10px; }
.activef .chipl { height: 32px; font-size: 12.5px; }
.activef .clear { font-size: 12.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.activef .clear:hover { color: var(--navy); }
.plist { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; }
.pager a, .pager b, .pager span { min-width: 42px; height: 42px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; background: #fff; color: var(--navy); transition: background-color .2s, color .2s, transform .2s var(--ease); }
.pager a:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.pager b { background: var(--navy); color: #fff; }
.pager span { background: none; min-width: 20px; }
.pager .i { width: 16px; height: 16px; }
.carlinks { margin-top: 40px; padding: 22px 24px; border-radius: 22px; background: #fff; }
.carlinks h2 { margin-bottom: 12px; font-size: 15px; font-weight: 600; color: var(--navy); }
.carlinks .chipl { background: var(--tile); border-color: transparent; }
.carlinks .chipl:hover { background: var(--navy); color: #fff; }
/* ---------- the cars page ---------- */
/* a maker's mark, on a disc */
.mkbox { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--tile); color: #6B7383; display: grid; place-items: center; transition: background-color .25s var(--ease), color .25s var(--ease); }
.mkbox svg:not(.i) { width: 24px; height: 24px; fill: currentColor; }
.mkbox .mk { width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat; }
.mkbox img { width: 26px; height: 26px; object-fit: contain; filter: grayscale(1) opacity(.6); }
.mkbox .i { width: 20px; height: 20px; }
/* the makers, as jumps to their groups: a tile turns navy under the pointer */
.makejump { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-bottom: 10px; }
.makejump a { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; padding: 12px 14px; border-radius: 20px; background: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .25s var(--ease); }
.makejump a:hover { transform: translateY(-3px); background: var(--navy); box-shadow: 0 14px 30px rgba(20,33,61,.22); }
.makejump .mkbox { grid-row: 1 / 3; }
.makejump b { align-self: end; font-size: 14px; font-weight: 600; line-height: 1.6; color: var(--navy); transition: color .25s; }
.makejump small { align-self: start; font-size: 12px; line-height: 1.6; color: var(--muted); transition: color .25s; }
.makejump a:hover b { color: #fff; }
.makejump a:hover small { color: #AEB6C6; }
.makejump a:hover .mkbox { background: var(--orange); color: var(--navy); }
/* each maker's group: a navy bar with the maker's mark, then its cars as white cards */
/* (a maker with one car or two takes a third or two thirds of the row, so that small makers stand side by side
   instead of each leaving most of a row empty) */
.carmakes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 8px; margin-top: 16px; }
.carmake { grid-column: 1 / -1; min-width: 0; scroll-margin-top: calc(var(--hdr) + 16px); }
.carmake.one { grid-column: span 1; }
.carmake.two { grid-column: span 2; }
.carmake.one .carlist { grid-template-columns: minmax(0, 1fr); }
.carmake.two .carlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.carmake.one .carmake-head .tt { font-size: 18px; }
.carmake-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; padding-inline-end: 22px; margin-bottom: 8px; border-radius: 22px; background: var(--navy); color: #fff; }
.carmake-head .mkbox { width: 50px; height: 50px; background: rgba(255,255,255,.1); color: #fff; }
.carmake-head .mkbox svg:not(.i), .carmake-head .mkbox .mk { width: 27px; height: 27px; }
.carmake-head .mkbox img { filter: brightness(0) invert(1); }
.carmake-head .tt { font-size: 21px; color: #C8CEDA; }
.carmake-head .tt b { color: #fff; }
.carmake-n { margin-inline-start: auto; height: 32px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 12.5px; line-height: 32px; color: #D5DAE4; white-space: nowrap; }
.carmake-n b { font-weight: 700; color: var(--orange); }
.carlist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
/* one car. Under the pointer the card lifts and its arrow turns orange. */
.carcard { position: relative; display: grid; align-content: start; gap: 14px; padding: 18px 18px 16px; border-radius: 22px; background: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.carcard:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.carcard-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.carname b { display: block; font-size: 18px; font-weight: 600; line-height: 1.6; color: var(--navy); }
.carname b span { display: block; font-size: 12px; font-weight: 400; line-height: 1.5; color: var(--muted); } /* «لوازم یدکی», said quietly above the car's name */
.carname::after { content: ''; position: absolute; inset: 0; border-radius: 22px; } /* the whole card is the link */
.carname:focus-visible { outline: 0; }
.carname:focus-visible::after { outline: 2px solid var(--orange); outline-offset: 2px; }
.carcard-mid { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.carcount { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.carcount b { margin-inline-end: 2px; font-size: 17px; font-weight: 700; color: var(--navy); }
/* a few of the car's own parts, as overlapping discs */
.carthumbs { display: flex; }
.carthumbs img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #fff; background: var(--tile); object-fit: cover; box-shadow: 0 2px 6px rgba(20,33,61,.12); }
.carthumbs img + img { margin-inline-start: -10px; }
.cargo { margin-inline-start: auto; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--tile); color: var(--navy); display: grid; place-items: center; transition: background-color .25s var(--ease), color .25s var(--ease), transform .3s var(--ease); }
.cargo .i { width: 16px; height: 16px; }
.carcard:hover .cargo { background: var(--orange); transform: translateX(-4px); }
.kinds { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.kinds a { height: 28px; padding: 0 11px; border-radius: 999px; background: var(--tile); font-size: 12px; line-height: 28px; color: var(--text); white-space: nowrap; transition: background-color .2s, color .2s; }
.kinds a:hover { background: var(--navy); color: #fff; }
.kinds a.more { background: none; padding: 0 4px; color: var(--muted); }
.kinds a.more:hover { background: none; color: var(--navy); }

/* ---------- one product ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: 10px; align-items: start; }
/* the pictures: small ones in a column, the chosen one large; on a phone they are swiped */
.gallery { position: sticky; top: calc(var(--hdr) + 12px); padding: 14px; border-radius: 26px; background: #fff; }
.gallery.multi { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; align-items: start; }
.thumbs { display: grid; gap: 8px; }
.thumbs button { width: 74px; height: 74px; padding: 0; border-radius: 14px; overflow: hidden; background: var(--tile); opacity: .6; transition: opacity .2s, box-shadow .2s; }
.thumbs button:hover { opacity: 1; }
.thumbs button.on { opacity: 1; box-shadow: 0 0 0 2px var(--navy); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.stage { position: relative; border-radius: 18px; overflow: hidden; background: var(--tile); }
.shots { display: flex; aspect-ratio: 1; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.shots::-webkit-scrollbar { display: none; }
.shot { position: relative; flex: 0 0 100%; overflow: hidden; scroll-snap-align: start; }
.shot img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .3s var(--ease); }
.shot[data-zoom] { cursor: zoom-in; }
.shot.zoom img { transform: scale(1.9); transition: transform .2s var(--ease); }
.stage .pcard-off { top: 14px; right: 14px; height: 28px; padding: 0 12px; font-size: 13px; line-height: 28px; }
.gnav { position: absolute; top: 50%; z-index: 2; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%; background: rgba(255,255,255,.88); color: var(--navy); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(15,25,48,.14); opacity: 0; transition: opacity .2s, transform .2s var(--ease), background-color .2s; }
.gnav.prev { right: 12px; }
.gnav.next { left: 12px; }
.stage:hover .gnav, .gnav:focus-visible { opacity: 1; }
.gnav:hover { background: #fff; transform: scale(1.08); }
.gnav:disabled { opacity: 0 !important; pointer-events: none; }
.gnav .i { width: 17px; height: 17px; }
.gcount { position: absolute; bottom: 12px; left: 12px; z-index: 2; height: 26px; padding: 0 11px; border-radius: 999px; background: rgba(15,25,48,.6); color: #fff; font-size: 12px; line-height: 26px; }
.info { display: grid; gap: 14px; align-content: start; padding: 28px; border-radius: 24px; background: #fff; }
.info-top { display: flex; align-items: center; gap: 8px; }
.info .grade { height: 30px; padding: 0 12px; border-radius: 999px; background: var(--tile); font-size: 12.5px; }
.info .rate { margin-inline-start: auto; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; transition: background-color .2s; }
.info .rate:hover { background: var(--tile); }
.info .rate small { font-size: 12px; margin-inline-start: 2px; }
.hint { position: relative; }
.hint summary { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 12px; line-height: 1; color: var(--muted); transition: background-color .2s, color .2s, border-color .2s; }
.hint summary:hover, .hint[open] summary { background: var(--navy); border-color: var(--navy); color: #fff; }
.hint p { position: absolute; top: calc(100% + 10px); right: -10px; z-index: 4; width: min(310px, 78vw); padding: 12px 16px; border-radius: 16px; background: var(--night); color: #E6E9EF; font-size: 12.5px; line-height: 1.85; box-shadow: var(--sh-3); animation: pop .2s var(--ease); }
.hint p a { color: var(--orange); }
.info h1 { font-size: 27px; line-height: 1.55; font-weight: 600; color: var(--navy); }
.info .sumline { font-size: 13.5px; }
/* under the name: the car the part is for (what the buyer looks for first), then its maker */
.info .pfor { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.pfor-car { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-size: 15.5px; }
.pfor-car .i { width: 19px; height: 19px; flex: none; color: var(--orange); }
.pfor-car b { font-weight: 600; }
.spec tr.code th, .spec tr.code td { color: var(--muted); font-size: 13px; }
.fitbox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border-radius: 18px; background: var(--tile); }
.fitbox > i { width: 36px; height: 36px; flex: none; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; }
.fitbox > i .i { width: 18px; height: 18px; }
.fitbox > span { flex: 1; min-width: 180px; }
.fitbox.yes { background: var(--ok-bg); color: var(--ok); }
.fitbox.yes > i { background: var(--ok); color: #fff; }
.fitbox.no { background: var(--bad-bg); color: var(--bad); }
.fitbox.no > i { background: var(--bad); color: #fff; }
.fitbox .linklike { color: inherit; opacity: .8; }
.buybox { display: grid; gap: 14px; padding: 18px; border-radius: 20px; border: 1px solid var(--line); }
.pricebox { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.pricebox .was { flex-basis: 100%; display: flex; align-items: center; gap: 10px; }
.pricebox .was s { font-size: 14px; color: #7F8796; }
.pricebox .was em { height: 22px; padding: 0 9px; border-radius: 999px; background: var(--orange); color: var(--navy); font-style: normal; font-size: 11.5px; font-weight: 700; line-height: 22px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 31px; font-weight: 700; line-height: 1.35; color: var(--navy); }
/* a product the shop has not priced yet */
.price.soon b { font-size: 22px; font-weight: 600; color: var(--muted); }
.price small { font-size: 13px; color: var(--muted); }
.stock { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(23,105,74,.14); }
.stock.in { color: var(--ok); }
.stock.low { color: var(--warn); }
.stock.low::before { box-shadow: 0 0 0 4px rgba(138,75,0,.14); }
.stock.out { color: var(--bad); }
.stock.out::before { box-shadow: 0 0 0 4px rgba(142,42,30,.12); }
.qty { display: inline-flex; align-items: center; height: 48px; padding: 4px; border-radius: 999px; background: var(--tile); }
.qty button { width: 40px; height: 40px; border-radius: 50%; font-size: 19px; line-height: 1; color: var(--navy); transition: background-color .2s, box-shadow .2s; }
.qty button:hover { background: #fff; box-shadow: var(--sh-1); }
.qty input { width: 36px; padding: 0; border: 0; background: none; outline: 0; text-align: center; font: inherit; font-weight: 600; color: var(--navy); }
.buybox .notice { margin: 0; }
.perks { display: grid; gap: 10px; font-size: 13px; color: var(--muted); }
.perks li { display: flex; align-items: flex-start; gap: 10px; }
.perks .i { width: 18px; height: 18px; margin-top: 3px; color: var(--navy); }
.perks b { color: var(--navy); font-weight: 500; }
.anchors { position: sticky; top: calc(var(--hdr) + 4px); z-index: 20; display: flex; gap: 4px; margin: 10px 0; padding: 7px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); border: 1px solid rgba(255,255,255,.75); overflow-x: auto; scrollbar-width: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 8px 26px rgba(15,25,48,.07); }
.anchors::-webkit-scrollbar { display: none; }
.anchors a { height: 38px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; line-height: 38px; color: var(--muted); white-space: nowrap; transition: background-color .2s, color .2s; }
.anchors a:hover { background: var(--tile); color: var(--navy); }
.anchors a.on { background: var(--navy); color: #fff; font-weight: 500; }
.pdmore { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.pdmore .card { scroll-margin-top: calc(var(--hdr) + 68px); }
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; font-weight: 400; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 40%; color: var(--muted); }
.spec .under { color: var(--navy); font-weight: 500; }
.nums { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.nums li { padding: 3px 14px; border-radius: 10px; background: var(--tile); font-family: Consolas, 'Courier New', monospace; font-size: 13px; color: var(--navy); }
.rsum { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px 30px; padding: 20px 24px; margin-bottom: 4px; border-radius: 20px; background: var(--tile); }
.rsum-n { display: grid; justify-items: center; gap: 4px; min-width: 104px; }
.rsum-n b { font-size: 44px; font-weight: 700; line-height: 1.15; color: var(--navy); }
.rsum-n .stars .i { width: 16px; height: 16px; }
.rsum-n small { font-size: 12px; color: var(--muted); }
.rbars { display: grid; gap: 7px; }
.rbars li { display: grid; grid-template-columns: 12px minmax(0, 1fr) 20px; align-items: center; gap: 10px; font-size: 12px; line-height: 1; color: var(--muted); }
.rbars i { height: 6px; border-radius: 999px; background: #E1E4EA; overflow: hidden; }
.rbars i b { display: block; height: 100%; border-radius: 999px; background: var(--orange); }
.rbars small { text-align: end; }
.review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.rv-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rv-head > div { flex: 1; min-width: 0; }
.rv-head b { display: block; font-weight: 500; line-height: 1.5; color: var(--navy); }
.rv-head small { display: block; font-size: 12px; line-height: 1.5; color: var(--muted); }
.review .ava { background: var(--tile); color: var(--navy); }
.review:last-of-type { border-bottom: 0; }
.review > p { max-width: 64ch; }
.review .reply { margin-top: 10px; margin-inline-start: 44px; padding: 12px 16px; border-radius: 16px; background: var(--tile); font-size: 13.5px; }
.review .reply b { display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 600; color: var(--navy); }
.reviewform { display: grid; gap: 10px; margin-top: 16px; justify-items: start; }
.reviewform textarea { width: 100%; }
.related { margin-top: 70px; }

/* ---------- forms ---------- */
.page input[type=text], .page input[type=tel], .page select, .page textarea { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; font: inherit; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.page textarea { height: auto; padding: 9px 14px; line-height: 1.85; resize: vertical; }
.page select { padding-inline-end: 38px; appearance: none; -webkit-appearance: none; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F6878' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat left 12px center / 15px; }
.page input:hover, .page select:hover, .page textarea:hover { border-color: #B9C0CC; }
.page input:focus, .page select:focus, .page textarea:focus { border-color: var(--navy); outline: 0; box-shadow: 0 0 0 3px rgba(20,33,61,.08); }
.page label { display: grid; gap: 5px; font-size: 13px; font-weight: 500; color: var(--navy); }
.page .qty input { width: 36px; height: auto; padding: 0; border: 0; box-shadow: none; }
.form2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form2 .full { grid-column: 1 / -1; }
.inline { display: flex; gap: 8px; }
.inline .btn { height: 46px; flex: none; }
.opts { display: grid; gap: 8px; }
.page label.opt { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line-2); font-weight: 400; color: var(--text); cursor: pointer; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.page label.opt:hover { border-color: #B9C0CC; }
.page label.opt:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: #FAFBFC; }
.opt input { width: 18px; height: 18px; flex: none; accent-color: var(--navy); }
.opt > i { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--tile); color: var(--navy); display: grid; place-items: center; transition: background-color .2s, color .2s; }
.opt:has(input:checked) > i { background: var(--navy); color: #fff; }
.opt > i .i { width: 19px; height: 19px; }
.opt > span { flex: 1; display: grid; }
.opt b { font-weight: 500; color: var(--navy); }
.opt small { color: var(--muted); }
.opt em { font-style: normal; font-weight: 600; color: var(--navy); white-space: nowrap; }

/* ---------- login ---------- */
.authwrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .86fr); max-width: 880px; margin: 26px auto 0; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: var(--sh-2); }
.auth { display: grid; gap: 14px; align-content: center; min-height: 470px; padding: 46px 44px; }
.auth h1 { font-size: 23px; font-weight: 600; color: var(--navy); }
.auth form { display: grid; gap: 12px; }
.auth input { height: 52px !important; font-size: 16px !important; letter-spacing: 1.5px; text-align: center; }
.auth .otp { font-size: 22px !important; font-weight: 600; letter-spacing: 12px; }
.auth .linklike:disabled { text-decoration: none; opacity: .75; }
.auth form > .linklike { justify-self: center; }
.sentto { color: var(--muted); }
.sentto b { color: var(--navy); }
.auth-side { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 46px 38px; color: #fff; background: linear-gradient(165deg, #1F2B47 0%, var(--night) 70%); }
.auth-side img { height: 38px; width: auto; align-self: flex-start; }
.auth-side h2 { font-size: 27px; font-weight: 300; line-height: 1.5; }
.auth-side ul { display: grid; gap: 16px; }
.auth-side li { display: flex; align-items: flex-start; gap: 12px; }
.auth-side li .i { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--orange); }
.auth-side li span { font-size: 12.5px; color: var(--soft); line-height: 1.7; }
.auth-side li b { display: block; font-size: 14px; font-weight: 500; color: #fff; }

/* ---------- cart, checkout, orders ---------- */
.flow { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.flow li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.flow li + li::before { content: ''; width: 36px; height: 2px; margin-inline-end: 2px; border-radius: 2px; background: #D5D9E0; }
.flow i { width: 28px; height: 28px; border-radius: 50%; background: #E3E6EB; color: var(--muted); display: grid; place-items: center; font-style: normal; font-size: 12.5px; font-weight: 600; line-height: 1; }
.flow i .i { width: 15px; height: 15px; }
.flow .now { color: var(--navy); font-weight: 600; }
.flow .now i { background: var(--navy); color: #fff; box-shadow: 0 0 0 4px rgba(20,33,61,.1); }
.flow .past i { background: var(--orange); color: var(--navy); }
.flow .past + li::before { background: var(--orange); }
.line { display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); transition: background-color .2s; }
.line:last-child { border-bottom: 0; }
.line.bad { background: #FFFAF9; }
.line .grow b { color: var(--navy); font-weight: 500; }
.line .grow a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.line .thumb { width: 76px; height: 76px; flex: none; border-radius: 14px; overflow: hidden; background: var(--tile); display: grid; place-items: center; color: var(--soft); }
.line .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.line .thumb:hover img { transform: scale(1.08); }
.line .qty { height: 42px; padding: 3px; }
.line .qty button { width: 36px; height: 36px; font-size: 17px; }
.line .sum { min-width: 116px; text-align: end; white-space: nowrap; }
.line .sum b { font-size: 15px; color: var(--navy); }
.rm { width: 34px; height: 34px; flex: none; border-radius: 50%; color: var(--muted); display: grid; place-items: center; transition: background-color .2s, color .2s; }
.rm:hover { background: var(--bad-bg); color: var(--bad); }
.rm .i { width: 16px; height: 16px; }
a.line:hover { background: #FAFBFC; }
.line.order .c { width: 16px; height: 16px; color: #98A0AF; transition: transform .25s var(--ease); }
.line.order:hover .c { transform: translateX(-4px); }
.oic { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--tile); color: var(--navy); display: grid; place-items: center; }
.summary { position: sticky; top: calc(var(--hdr) + 12px); display: grid; gap: 14px; transition: top .3s var(--ease); }
.summary h2 { margin: 0; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; }
.summary dd { text-align: end; }
.summary dd b { color: var(--navy); }
.summary .total { padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; color: var(--navy); }
.summary .total b { font-size: 21px; }
.summary .perks { padding-top: 14px; border-top: 1px solid var(--line); }
.mini { display: grid; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.mini li { display: flex; align-items: center; gap: 12px; }
.mini li > span:last-child { white-space: nowrap; font-weight: 500; color: var(--navy); }
.mini .thumb { position: relative; width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--tile); display: grid; place-items: center; color: var(--soft); }
.mini .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.mini .thumb em { position: absolute; top: -6px; left: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--navy); color: #fff; font-style: normal; font-size: 11px; font-weight: 600; line-height: 20px; text-align: center; }
.state { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: #EEF0F3; color: #4A4F5C; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.state::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.state.do { background: var(--warn-bg); color: var(--warn); }
.state.ok { background: var(--ok-bg); color: var(--ok); }
.state.bad { background: #FBE7E4; color: var(--bad); }
.statehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.steps { display: grid; margin-bottom: 18px; font-size: 12.5px; color: var(--muted); text-align: center; counter-reset: step; }
.steps li { position: relative; padding-top: 38px; counter-increment: step; }
.steps li::before { content: counter(step, persian); position: absolute; top: 0; right: 50%; z-index: 1; width: 28px; height: 28px; margin-right: -14px; border-radius: 50%; background: #E3E6EB; color: var(--muted); display: grid; place-items: center; font-size: 12px; font-weight: 600; line-height: 1; }
.steps li::after { content: ''; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background: #E3E6EB; }
.steps li:last-child::after { display: none; }
.steps li.done { color: var(--navy); font-weight: 500; }
.steps li.done::before { content: '✓'; background: var(--orange); color: var(--navy); }
.steps li.done:has(+ .done)::after { background: var(--orange); }

/* ---------- reading pages ---------- */
.cover { width: 100%; height: auto; max-height: 420px; margin: 16px 0; border-radius: 22px; object-fit: cover; filter: grayscale(1) contrast(1.04); }
.gcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gcard { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: #fff; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.gcard:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.gpic { display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tile); color: var(--soft); }
.gpic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s; }
.gcard:hover .gpic img { transform: scale(1.05); }
.gcard > div { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 18px 20px 20px; }
.gcard h2 { font-size: 15.5px; font-weight: 600; line-height: 1.7; color: var(--navy); }
.gcard p { margin-top: 4px; font-size: 13px; color: var(--muted); }
.gcard .more { margin-top: auto; padding-top: 12px; }
.onward { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 34px; padding: 26px 28px; border-radius: 22px; color: #fff; background: linear-gradient(165deg, #1F2B47 0%, var(--night) 70%); }
.onward h2 { font-size: 20px; font-weight: 300; }
.onward h2 b { font-weight: 600; }
.onward p { font-size: 13px; color: var(--soft); }
.faq { display: grid; gap: 8px; margin-bottom: 22px; }
.faq details { border-radius: 18px; background: #fff; padding: 0 22px; transition: box-shadow .3s var(--ease); }
.faq details:hover, .faq details[open] { box-shadow: var(--sh-2); }
.faq summary { position: relative; padding: 16px 0; padding-inline-end: 40px; font-size: 14.5px; font-weight: 500; color: var(--navy); }
.faq summary::before, .faq summary::after { content: ''; position: absolute; top: 50%; left: 8px; width: 14px; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--navy); transition: transform .3s var(--ease), background-color .2s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details[open] summary::before, .faq details[open] summary::after { background: var(--orange); }
.faq .prose { padding-bottom: 18px; color: var(--muted); }
/* the questions buyers ask most: on the home page under a centred heading; in a product page's side column, as lines */
.qa .faq { max-width: 860px; margin: 0 auto; }
.qa-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.faq.flat { gap: 0; margin-bottom: 14px; }
.faq.flat details { padding: 0; border-radius: 0; background: none; border-bottom: 1px solid var(--line); }
.faq.flat details:hover, .faq.flat details[open] { box-shadow: none; }
.faq.flat summary { padding: 13px 0; padding-inline-end: 30px; font-size: 14px; }
.faq.flat summary::before, .faq.flat summary::after { left: 2px; }
.faq.flat .prose { padding-bottom: 14px; font-size: 13.5px; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--navy); }
.more-link .i { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.more-link:hover .i { transform: translateX(-3px); }
.askbox { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 20px; background: #fff; }
.askbox > i { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--warn-bg); color: #B45A00; display: grid; place-items: center; }
.askbox p { flex: 1; min-width: 200px; color: var(--muted); }
.askbox p b { color: var(--navy); font-weight: 600; }

/* ---------- footer ---------- */
.ftr { margin-top: 90px; padding-top: 46px; background: var(--night); color: #C9CFDB; }
.fgrid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.25fr; gap: 34px 48px; }
.fbrand img { height: 40px; width: auto; }
.fbrand p { max-width: 300px; margin: 14px 0 18px; font-size: 13px; color: var(--soft); }
.ftr h2 { margin-bottom: 14px; font-size: 14px; line-height: inherit; font-weight: 500; color: #fff; }
.ftr li { margin-bottom: 8px; font-size: 13px; color: var(--soft); }
.ftr li a, .flink { transition: color .2s, padding .25s var(--ease); }
.ftr li a:hover, .flink:hover { color: #fff; padding-inline-start: 4px; }
.flink { font-size: 13px; color: var(--soft); }
.ftr .contact li { display: flex; align-items: flex-start; gap: 8px; }
.ftr .contact .i { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--orange); }
/* the ways to reach the shop: round icons, the number behind them */
.cicons { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.cicons a, .cicons button { width: 38px; height: 38px; padding: 0; border: 0; cursor: pointer; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; transition: background .2s, transform .25s var(--ease); }
.ftr .cicons a:hover, .ftr .cicons button:hover { background: var(--orange); transform: translateY(-2px); padding: 0; }
.ftr .contact .cicons .i { width: 19px; height: 19px; margin: 0; color: inherit; }
.cicons .i { width: 19px; height: 19px; }
/* (the footer's narrow column on a phone: the four icons stay on one line) */
.ftr .contact .cicons { flex-wrap: nowrap; gap: 6px; }
.ftr .contact .cicons a, .ftr .contact .cicons button { width: 34px; height: 34px; flex: none; }
/* (the messengers named in a sentence: no longer used by the footer) */
.ftr .contact .reach a, .ftr .contact .reach b { font-weight: 400; color: #fff; }
.ftr .contact .reach a { text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 4px; }
.ftr .contact .reach a:hover { padding-inline-start: 0; text-decoration-color: var(--orange); }
.fbot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; padding: 18px 0 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; color: #8C95A6; }

/* going from one page to the next: a short cross-fade instead of a white flash, in browsers that can */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

/* ---------- things appear as the page is scrolled (only where the browser runs the script, and only below the first screen) ---------- */
.rv { opacity: 0; transform: translateY(22px); }
.rv.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeout { to { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes sink { to { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes slidein { from { transform: translateX(-100%); } }
@keyframes slideout { to { transform: translateX(-100%); } }
@keyframes sheetup { from { transform: translateY(100%); } }
@keyframes sheetdown { to { transform: translateY(100%); } }
@keyframes toastin { from { opacity: 0; transform: translate(50%, 14px); } }
@keyframes bump { 40% { transform: scale(1.3); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes turn { to { transform: rotate(360deg); } }

/* ---------- narrower desktops ---------- */
@media (max-width: 1120px) {
  .mega-in { grid-template-columns: minmax(0, 1fr) 230px; }
  .mega-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* ---------- tablet ---------- */
@media (max-width: 980px) {
  .nav a.navbtn { display: none; } /* the bar keeps the categories button; the other links are in its menu and in the footer */
  .mega-in { grid-template-columns: minmax(0, 1fr); }
  .mega-side { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-mark { left: -90px; height: min(calc(100% - 264px), 200px); } /* the words reach further left here, so the gear gives way */
  .hero-side { grid-template-rows: none; grid-template-columns: 1.3fr 1fr; }
  .offer { min-height: 230px; }
  .pick-media { align-self: center; width: 148px; height: 148px; }
  /* three columns: the two photo tiles two rows tall, and the five others fill the rest without a hole */
  .cats { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; grid-auto-rows: 166px; }
  .cat.c2, .cat.c3, .cat.c4 { grid-column: auto; }
  .cat.pic.c2 .cv, .cat.pic.c3 .cv { top: auto; bottom: 8px; right: 8px; width: auto; height: calc(100% - 82px); }
  .cat.pic.c2 .t, .cat.pic.c3 .t { left: 20px; }
  /* four or five categories: the orange tile closes the last row, a low bar under four */
  .cats.n4 { grid-template-rows: 166px 166px 76px; }
  .cats.n4 .cat.all { grid-column: 1 / -1; flex-direction: row; }
  .cats.n5 .cat.all { grid-column: span 2; }
  .cat.pic .t .nm { display: none; } /* a tile with a photo has room for its name and how many parts, not for the kinds */
  .rail { grid-auto-columns: calc((100% - 20px) / 3); }
  .drail, .drail.few { grid-auto-columns: calc((100% - 8px) / 2); }
  .promo > .hero-mark { display: none; } /* no room beside the words */
  .usp { grid-template-columns: 1fr 1fr; gap: 14px 0; }
  .usp > div:nth-child(3) { border: 0; }
  .makers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shop { grid-template-columns: minmax(0, 1fr); }
  .plist { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .carlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carmakes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carmake.two { grid-column: 1 / -1; }
  .lfind { grid-template-columns: minmax(0, 1fr); }
  .ltiles { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
  .cols, .pdmore { grid-template-columns: minmax(0, 1fr); }
  .summary, .gallery { position: static; }
  .gcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fgrid { grid-template-columns: 1fr 1fr 1fr; }
  .fbrand { grid-column: span 3; }
  /* the filters become a sheet that rises from the bottom */
  .fbtn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; flex: none; border-radius: 999px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 500; }
  .fbtn .i { width: 16px; height: 16px; }
  .fbtn em { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--orange); color: var(--navy); font-style: normal; font-size: 11px; font-weight: 700; line-height: 18px; }
  .sortbar > span { display: none; }
  .side.filters { position: fixed; top: auto; right: 0; left: 0; bottom: 0; z-index: 80; max-height: 84vh; padding: 20px 16px calc(22px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; box-shadow: 0 -20px 50px rgba(15,25,48,.2); transform: translateY(105%); visibility: hidden; transition: transform .34s var(--ease), visibility 0s .34s; }
  .side.filters.open { transform: none; visibility: visible; transition-delay: 0s; }
  .filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding: 0 6px; font-size: 16px; color: var(--navy); }
  .fback { display: block; position: fixed; inset: 0; z-index: 79; background: rgba(15,25,48,.52); animation: fade .25s; }
}
/* ---------- phone ---------- */
@media (max-width: 720px) {
  :root { --hdr: 62px; }
  .wrap { padding: 0 16px; }
  .sec { margin-top: 64px; }
  .tt { font-size: 23px; }
  .ribbon { min-height: 34px; padding: 8px 16px 0; font-size: 12px; }
  .ribbon > :nth-child(n+2) { display: none; }
  /* the header becomes a flat pane of glass across the top: logo and search */
  .hdr { top: 0; padding: 0; }
  .bar { height: 60px; max-width: none; gap: 12px; padding-inline: 16px 12px; border-radius: 0; border-width: 0 0 1px; border-color: rgba(20,33,61,.06); background: rgba(242,243,245,.8); box-shadow: none; }
  .hdr.scrolled .bar { background: rgba(255,255,255,.86); box-shadow: 0 6px 24px rgba(15,25,48,.08); }
  .nav, .acts, .mega, .scrim { display: none; }
  .logo img { height: 30px; }
  .search { height: 42px; margin: 0; background: rgba(20,33,61,.07); }
  .sug { right: auto; left: 0; width: calc(100vw - 24px); max-height: 60vh; }
  /* the bar at the bottom: a floating capsule of glass */
  .tabbar { position: fixed; right: 12px; left: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 35; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; height: 64px; padding: 6px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); border: 1px solid rgba(255,255,255,.75); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 14px 44px rgba(15,25,48,.2); }
  .tabbar > * { position: relative; display: grid; align-content: center; justify-items: center; gap: 1px; border-radius: 999px; font-size: 10.5px; line-height: 1.5; color: var(--muted); transition: background-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease); }
  .tabbar > *:active { transform: scale(.94); }
  .tabbar .on { background: rgba(20,33,61,.08); color: var(--navy); font-weight: 600; }
  .tabbar .i { width: 22px; height: 22px; }
  .tabbar em { position: absolute; top: 3px; right: 50%; margin-right: -25px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 10.5px; line-height: 18px; }
  .no-tabbar .tabbar, .has-buybar .tabbar { display: none; }
  .buybar { position: fixed; right: 12px; left: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 36; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 66px; padding-inline: 24px 9px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); border: 1px solid rgba(255,255,255,.75); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 14px 44px rgba(15,25,48,.2); }
  .bb-price { display: grid; }
  .bb-price s { font-size: 11.5px; line-height: 1.4; color: #7F8796; }
  .bb-price span { display: flex; align-items: baseline; gap: 5px; }
  .bb-price b { font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--navy); }
  .bb-price small { font-size: 11.5px; color: var(--muted); }
  .buybar .btn { height: 48px; flex: 1; max-width: 210px; }
  /* room under the footer for the floating bar, in the footer's own colour */
  .ftr { margin-top: 64px; padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .no-tabbar .ftr { padding-bottom: 0; }
  .toast { bottom: calc(88px + env(safe-area-inset-bottom)); right: 12px; left: 12px; transform: none; white-space: normal; border-radius: 20px; animation-name: fade; }
  .totop { margin-inline-start: auto; }
  /* windows rise from the bottom of the screen */
  .dlg.sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; padding: 22px 16px calc(22px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; max-height: 90vh; overflow-y: auto; animation-name: sheetup; }
  .dlg.sheet.closing { animation-name: sheetdown; }
  .dlg.drawer { width: 100vw; border-radius: 0; }
  .carpick.light .fields { grid-template-columns: 1fr 1fr; }
  /* home */
  .hero { margin-top: 10px; }
  .hero-main { height: auto; }
  .hero-main > img { width: 100%; opacity: .3; -webkit-mask-image: none; mask-image: none; animation: none; }
  .hero-main::after { inset: 40% 0 0; }
  /* as on a big screen, the gear rises behind the car line like the sun over the lines of the logo, in the room the
     words leave on the left */
  .hero-mark { left: -28px; top: auto; bottom: 44px; width: 232px; height: 116px; }
  .hero-mark i { width: 232px; height: 232px; }
  .hero-txt { margin-block: 0; padding: 40px 22px 0; }
  .hero .hl { font-size: 44px; }
  .hero-sub { margin-bottom: 0; }
  .hero-cta { display: none; } /* the finder below is the thing to do; all the goods are one tap away in the bar at the bottom */
  /* the finder is one white line, as at the head of a list: the question and an orange button. The three choices open in
     the window from the bottom, with the cars most looked for; the bar of a big screen and its quick links stay out. */
  .finder { display: block; margin: 96px 12px 12px; }
  .finder h2, .finder-quick, .finder .carpick { display: none; }
  .finder-m { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 60px; padding: 6px; padding-inline-start: 16px; border-radius: 999px; background: #fff; box-shadow: 0 14px 34px rgba(0,0,0,.3); color: var(--navy); text-align: start; transition: transform .2s var(--ease); }
  button.finder-m:active { transform: scale(.98); }
  .finder-m .i { width: 22px; height: 22px; color: var(--orange); }
  .finder-m > b { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .finder-m .btn { flex: none; height: 48px; padding: 0 20px; font-size: 13.5px; box-shadow: none; } /* no orange haze on the white */
  /* a car already chosen: its name (a tap changes it) and the way to its parts */
  .finder-m.has button { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 48px; text-align: start; }
  .finder-m.has span { display: grid; min-width: 0; line-height: 1.45; }
  .finder-m.has small { font-size: 11px; color: var(--muted); }
  .finder-m.has b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .finder-m .i.cv { width: 16px; height: 16px; margin-inline-start: auto; color: var(--muted); }
  .fields { grid-template-columns: 1fr 1fr; }
  .fields label:nth-child(3) { grid-column: span 2; }
  .go { grid-column: 1 / -1; }
  .hero-side { grid-template-columns: 1fr; }
  .offer { min-height: 200px; }
  .pick-media { width: 112px; min-height: 104px; }
  .guar { gap: 14px; }
  /* the four promises: a list in the footer of other pages; on the home page two by two, every word of each in view */
  .usp { grid-template-columns: 1fr; gap: 0; padding: 6px 4px; }
  .usp > div { padding: 12px 14px; border-inline-start: 0; }
  .usp > div:nth-child(n+2) { border-top: 1px solid var(--line); }
  .usp.dark > div:nth-child(n+2) { border-top-color: rgba(255,255,255,.08); }
  .usp.dark > div { padding-inline: 0; }
  .usp.home { grid-template-columns: 1fr 1fr; margin-top: 26px; padding: 6px; }
  .usp.home > div { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 12px 12px; border-top: 0; }
  .usp.home > div:nth-child(even) { border-inline-start: 1px solid rgba(255,255,255,.1); }
  .usp.home > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
  .usp.home i { width: 38px; height: 38px; }
  .usp.home .i { width: 19px; height: 19px; }
  .usp.home b { font-size: 13px; }
  .usp.home small { white-space: normal; overflow: visible; }
  /* categories: the two with a photo side by side, the others as short tiles with a part beside the name */
  .cats { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .cat { min-height: 104px; }
  .cat.big, .cat.dark { grid-column: auto; grid-row: auto; min-height: 172px; }
  .cat.big > img { height: 56%; }
  .cat.big .t b { font-size: 16px; }
  .cat .t { right: 14px; left: 14px; }
  .cat .t.up { top: 14px; }
  .cat .t.dn { bottom: 14px; }
  .cat .go2 { display: none; }
  .cat.c2, .cat.c3, .cat.c4 { grid-column: auto; }
  .cat.pic .cv, .cat.pic.up .cv, .cat.pic.c2 .cv, .cat.pic.c3 .cv { top: 8px; bottom: 8px; left: 8px; right: auto; width: 42%; height: auto; border-radius: 16px; }
  .cat.pic .t, .cat.pic.c2 .t, .cat.pic.c3 .t { top: 50%; bottom: auto; right: 14px; left: calc(42% + 18px); transform: translateY(-50%); }
  /* a category with no picture yet: its icon where the picture would be, and the name beside it */
  .cat.ico .cic { top: 50%; bottom: auto; left: 16px; right: auto; transform: translateY(-50%); }
  .cat.ico .t { top: 50%; bottom: auto; left: 70px; transform: translateY(-50%); }
  .cat.ico .t span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cat.all { grid-column: span 2; grid-row: auto; flex-direction: row; min-height: 60px; }
  .cats.n3 .cat.all, .cats.n5 .cat.all { grid-column: auto; } /* beside the last tile, not under it */
  .cat .t .nm { display: none; } /* a narrow tile says how many parts, not which kinds */
  .cat.all .go2 { display: grid; width: 34px; height: 34px; }
  .band { margin-top: 64px; padding: 52px 0 58px; }
  .bhead { align-items: center; margin-bottom: 22px; }
  .bhead p, .arrows .ar { display: none; }
  /* two cards and the edge of a third, so it is plain that the row goes on */
  .rail { grid-auto-columns: 48%; gap: 8px; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .drail, .drail.few { grid-auto-columns: 88%; }
  .more-card { min-height: 0; }
  .rows { gap: 44px; }
  .row-head .tt { font-size: 20px; }
  .deal, .few .deal { min-height: 216px; padding: 20px; }
  .deal h3, .few .deal h3 { font-size: 17px; }
  .makers { gap: 6px; }
  .maker { height: 84px; gap: 6px; border-radius: 18px; }
  .maker svg, .maker img, .maker .mk { width: 28px; height: 28px; }
  .maker span { font-size: 11px; }
  .maker b { font-size: 12.5px; }
  .promo { width: auto; margin: 64px 16px 0; padding: 46px 18px; }
  .promo h2 { font-size: 22px; }
  .guides { grid-template-columns: 1fr; gap: 26px; }
  .g img { width: 76px; height: 76px; }
  /* inner pages */
  .page { margin-top: 14px; }
  /* the head of a list, kept short: the car question becomes one white line with a button */
  .lhero { gap: 14px; padding: 18px 16px 16px; border-radius: 22px; }
  .lhero > .hero-mark { display: none; } /* the name runs the full width here; the gear would sit under its words */
  .lhero-img { width: 62%; opacity: .5; }
  .lhero-top { gap: 12px; }
  .lhero-ic { width: 46px; height: 46px; }
  .lhero-ic .i { width: 22px; height: 22px; }
  .lhero .tt { font-size: 22px; }
  .lhero-sub { font-size: 12.5px; }
  .lfind { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 6px; padding-inline-start: 14px; border-radius: 999px; background: #fff; }
  .lfind .carpick { display: none; }
  .lfind-q { font-size: 13.5px; color: var(--navy); }
  .lfind-btn { display: inline-flex; }
  .lfind.has { padding: 10px 12px; border-radius: 18px; background: rgba(255,255,255,.08); }
  .lhero .trims .chipl { height: 34px; padding: 0 13px; }
  /* the tiles become small pills that wrap, so every one of them is in view */
  .ltiles { display: flex; flex-wrap: wrap; gap: 6px; }
  .ltile { gap: 8px; padding: 4px; padding-inline-end: 13px; border-radius: 999px; }
  .ltile-pic { width: 32px; height: 32px; border-radius: 50%; }
  .ltile-pic .i { width: 16px; height: 16px; }
  .ltile-t b { font-size: 13px; font-weight: 500; }
  .ltile-t small { display: none; }
  .ltile::after { display: none; }
  .sortbar { display: none; }
  .sortmenu { display: block; }
  .pcard-grade { top: 8px; right: 8px; height: 22px; padding: 0 8px; }
  .pcard-low { bottom: 8px; right: 8px; height: 22px; padding: 0 8px; font-size: 11px; }
  .pcard-media .noimg .i { width: 28px; height: 28px; padding: 17px; }
  .makejump { grid-template-columns: 1fr 1fr; gap: 8px; }
  .makejump a { padding: 10px 12px; column-gap: 10px; }
  .mkbox { width: 40px; height: 40px; }
  .carmakes { grid-template-columns: minmax(0, 1fr); gap: 18px 0; margin-top: 12px; }
  .carmake.one, .carmake.two { grid-column: 1 / -1; }
  .carmake.two .carlist { grid-template-columns: minmax(0, 1fr); }
  .carmake-head { padding: 10px 12px; padding-inline-end: 14px; border-radius: 20px; gap: 10px; }
  .carmake-head .mkbox { width: 42px; height: 42px; }
  .carmake-head .tt { font-size: 17px; }
  .carmake-n { height: 28px; padding: 0 11px; font-size: 12px; line-height: 28px; }
  .carcard { padding: 16px 16px 14px; gap: 12px; }
  .plist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pcard { padding: 8px; border-radius: 18px; }
  .pcard-title { font-size: 13.5px; }
  .pcard-price b { font-size: 15px; }
  .pcard-add { width: 38px; height: 38px; }
  .tcount { display: none; }
  .toolbar { padding-inline-end: 8px; }
  .pd { grid-template-columns: minmax(0, 1fr); }
  .gallery { padding: 10px; }
  .gallery.multi { display: block; }
  .thumbs, .gnav { display: none; }
  .info, .card { padding: 18px; border-radius: 20px; }
  .card.flush { padding: 0; }
  .info h1 { font-size: 21px; }
  .price b { font-size: 26px; }
  .rsum { gap: 12px 18px; padding: 18px; }
  .rsum-n { min-width: 92px; }
  .rsum-n b { font-size: 38px; }
  .review .reply { margin-inline-start: 0; }
  .form2 { grid-template-columns: 1fr; }
  .carlist, .gcards { grid-template-columns: minmax(0, 1fr); }
  .line { flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
  .line .grow { flex-basis: calc(100% - 140px); }
  .line .sum { margin-inline-start: auto; min-width: 0; }
  .line.order .grow { flex-basis: calc(100% - 70px); }
  .steps { font-size: 11px; }
  .flow span { display: none; }
  .flow .now span { display: inline; }
  .flow li + li::before { width: 18px; }
  .authwrap { grid-template-columns: minmax(0, 1fr); margin-top: 8px; border-radius: 24px; }
  .auth { min-height: 0; padding: 30px 22px; }
  .auth-side { display: none; }
  .fgrid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .fbrand, .fshop { grid-column: span 2; }
}
@media (hover: none) {
  .pcard:hover, .cat:hover, .deal:hover, .gcard:hover, .g:hover, a.maker:hover, .pick:hover, .carcard:hover, .ltile:hover { transform: none; box-shadow: none; }
}
@media print {
  .rv { opacity: 1; transform: none; }
  .ribbon, .hdr, .tabbar, .buybar, .toast, .ftr { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
}
