/* =========================================================
   Naushad Auto Parts LLC — Prototype Styles (v2)
   Type:   Sora (display) + Plus Jakarta Sans (body/UI)
   Colour: Graphite ink + signal red accent
   Icons:  Phosphor "light" (thin line icons)
   Fully responsive (clamp-based fluid type + mobile-first breaks)
   ========================================================= */

:root {
  /* palette */
  --ink:         #15171c;
  --ink-2:       #20242d;
  --ink-3:       #2c3140;
  --accent:      #e11d2a;
  --accent-dark: #b3121d;
  --accent-soft: #fdecec;
  --green:       #25d366;
  --text:        #1d2129;
  --muted:       #6f7682;
  --line:        #e8eaef;
  --bg:          #f6f7f9;
  --surface:     #ffffff;

  /* radius + shadow */
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 20px;
  --sh-sm: 0 1px 2px rgba(21,23,28,.06);
  --sh:    0 8px 30px rgba(21,23,28,.08);
  --sh-lg: 0 24px 60px rgba(21,23,28,.16);

  /* fluid type scale */
  --fs-hero: clamp(1.9rem, 1.2rem + 3.4vw, 3.3rem);
  --fs-h2:   clamp(1.35rem, 1.05rem + 1.3vw, 1.95rem);
  --fs-h3:   1.02rem;
  --fs-body: 0.95rem;
  --fs-sm:   0.83rem;
  --fs-xs:   0.74rem;

  --maxw: 1200px;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-head: 'Sora', var(--font-body);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: .1px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand { font-family: var(--font-head); font-weight: 700; letter-spacing: -.4px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* thin line icons */
[class*="ph-"] { line-height: 1; vertical-align: -.08em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 28px); }
.section { padding: clamp(40px, 6vw, 68px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: clamp(20px, 3vw, 30px); gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: var(--fs-h2); color: var(--ink); }
.section-head p { color: var(--muted); font-size: var(--fs-sm); margin-top: 4px; }
.section-head .link { color: var(--accent); font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  border: none; border-radius: var(--r-sm); padding: 12px 22px;
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-sm);
  transition: .18s ease; white-space: nowrap; line-height: 1.1;
}
.btn i { font-size: 1.15em; }
.btn-accent  { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(225,29,42,.28); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost   { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-outline { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-green   { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(37,211,102,.28); }
.btn-green:hover { background: #1eb455; transform: translateY(-1px); }
.btn-block   { width: 100%; }
.btn-sm      { padding: 9px 15px; font-size: var(--fs-xs); }

/* ---------- Announcement bar ---------- */
.announce { background: linear-gradient(90deg, var(--accent-dark), var(--accent)); color: #fff; text-align: center; font-size: var(--fs-xs); padding: 8px 16px; letter-spacing: .2px; }
.announce i { vertical-align: -.12em; margin-right: 4px; }
.announce b { font-weight: 700; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #aeb4c0; font-size: var(--fs-xs); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 10px; flex-wrap: wrap; }
.topbar .tb-left span { margin-right: 18px; }
.topbar .tb-right a { margin-left: 16px; color: #aeb4c0; }
.topbar .tb-right a:hover { color: #fff; }
.topbar i { color: var(--accent); margin-right: 2px; }

/* ---------- Header ---------- */
/* wrapper must not form a containing block, else the sticky header un-sticks
   once you scroll past the announce/topbar. display:contents fixes that. */
#site-header { display: contents; }
.header { background: var(--surface); box-shadow: var(--sh-sm); position: sticky; top: 0; z-index: 50; }
.header .container { display: flex; align-items: center; gap: 22px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: clamp(42px, 6vw, 54px); width: auto; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: 5px; padding: 9px 13px; border-radius: var(--r-sm); font-weight: 500; font-size: var(--fs-sm); color: var(--ink); transition: .15s; cursor: pointer; }
.nav-link .caret { font-size: .75em; transition: transform .2s; opacity: .65; }
.nav-link:hover, .nav-link.active { background: var(--accent-soft); color: var(--accent-dark); }
.nav-item.has-mega:hover > .nav-link { background: var(--accent-soft); color: var(--accent-dark); }
.nav-item.has-mega:hover > .nav-link .caret { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.7rem; color: var(--ink); padding: 4px; }

/* ---------- Mega menu ---------- */
.mega {
  position: absolute; top: 100%; left: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-lg); padding: 20px; min-width: 540px; max-width: calc(100vw - 40px);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s ease; z-index: 60;
}
.mega.right { left: auto; right: 0; }
.nav-item.has-mega:hover > .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-tip { font-size: var(--fs-xs); color: var(--muted); background: var(--bg); border-radius: var(--r-sm); padding: 9px 14px; margin-bottom: 16px; }
.mega-cols { display: grid; gap: 24px; }
.mega-cols.mega-3 { grid-template-columns: 1.2fr 1fr 1.1fr; }
.mega-cols.mega-1 { grid-template-columns: 1fr; }
.mega-col h4 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.mega-col h4 i { color: var(--accent); font-size: 1.3em; }
.mega-feature { display: flex; gap: 11px; align-items: flex-start; padding: 8px 10px; border-radius: var(--r-sm); transition: .15s; margin: 0 -10px; }
.mega-feature:hover { background: var(--accent-soft); }
.mega-feature .mf-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; color: var(--accent); font-size: 1.25rem; }
.mega-feature:hover .mf-ic { background: #fff; }
.mega-feature .mf-txt { display: flex; flex-direction: column; }
.mega-feature .mf-txt b { font-size: var(--fs-sm); color: var(--ink); font-weight: 700; line-height: 1.2; }
.mega-feature .mf-txt small { font-size: var(--fs-xs); color: var(--muted); }
.mega-link { display: block; font-size: var(--fs-sm); color: var(--text); padding: 7px 0; border-radius: 6px; transition: .12s; }
.mega-link:hover { color: var(--accent); transform: translateX(3px); }
.mega-brand { display: flex; align-items: center; gap: 9px; }
.mega-brand img { width: 22px; height: 22px; object-fit: contain; flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; background-color: #15171c;
  background-image:
    radial-gradient(115% 120% at 82% -10%, rgba(225,29,42,.55) 0%, rgba(225,29,42,0) 48%),
    linear-gradient(118deg, rgba(11,13,17,.97) 0%, rgba(15,17,22,.92) 38%, rgba(17,20,27,.72) 66%, rgba(179,18,29,.42) 128%),
    url('https://images.unsplash.com/photo-1487754180451-c456f719a1fc?auto=format&fit=crop&w=1600&q=80');
  background-position: center, center, center right;
  background-size: cover, cover, cover;
  border-bottom: 3px solid var(--accent);
}
.hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 120%, rgba(0,0,0,.35), transparent 70%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero .container { padding-top: clamp(44px, 7vw, 70px); padding-bottom: clamp(48px, 7vw, 76px); }
.hero h1 { font-size: var(--fs-hero); line-height: 1.08; max-width: 18ch; font-weight: 800; }
.hero h1 span { color: var(--accent); }
.hero p.lead { margin-top: 16px; font-size: clamp(.95rem, .9rem + .4vw, 1.1rem); color: #d4d8e0; max-width: 56ch; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.hero-badges span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 7px 13px; border-radius: 30px; font-size: var(--fs-xs); backdrop-filter: blur(4px); }

/* search panel */
.search-panel { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: clamp(14px, 2vw, 20px); margin-top: clamp(26px, 4vw, 38px); }
.search-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.search-tabs button { background: var(--bg); border: none; color: var(--ink); padding: 9px 18px; border-radius: var(--r-sm); font-weight: 600; font-size: var(--fs-sm); display: inline-flex; gap: 7px; align-items: center; }
.search-tabs button.active { background: var(--ink); color: #fff; }
.search-grid { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; }
.search-grid .field { display: flex; flex-direction: column; gap: 5px; }
.search-grid label { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.search-grid select, .search-grid input {
  padding: 12px 13px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-family: inherit; font-size: var(--fs-sm); color: var(--text); background: var(--surface); outline: none; transition: .15s; width: 100%;
}
.search-grid select:focus, .search-grid input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-grid .btn { align-self: end; height: 46px; }
.vin-row { display: none; grid-template-columns: 1fr auto; gap: 12px; }
.vin-row.active { display: grid; }
.vin-row input { padding: 12px 13px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-family: inherit; font-size: var(--fs-sm); outline: none; }
.vin-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Stat strip ---------- */
.stats { background: var(--ink); color: #fff; }
.stats .container { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; padding: clamp(24px, 3vw, 34px) clamp(16px,4vw,28px); }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); color: var(--accent); }
.stat span { font-size: var(--fs-sm); color: #b6bcc8; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.5vw, 18px); }
.cat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px,2.5vw,26px) 16px; text-align: center; transition: .2s; box-shadow: var(--sh-sm); }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: #f3c9cc; }
.cat-card .ic { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 1.7rem; }
.cat-card h3 { font-size: var(--fs-h3); color: var(--ink); }
.cat-card p { font-size: var(--fs-xs); color: var(--muted); margin-top: 4px; }

/* ---------- Product grid / cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 20px); }
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: .2s; box-shadow: var(--sh-sm); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.product-card .thumb { position: relative; aspect-ratio: 4/3; background: #fff; overflow: hidden; border-bottom: 1px solid var(--line); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .45s cubic-bezier(.2,.7,.3,1); }
.product-card:hover .thumb img { transform: scale(1.09); }
.product-card .thumb::after { content: ''; position: absolute; inset: 0; border: 2px solid transparent; transition: border-color .28s ease; pointer-events: none; }
.product-card:hover .thumb::after { border-color: var(--accent); }
.product-card .badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: var(--fs-xs); font-weight: 700; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: .4px; }
.product-card .badge.used { background: var(--ink-2); }
.product-card .pc-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.product-card h3 { font-size: var(--fs-h3); color: var(--ink); line-height: 1.3; font-weight: 700; }
.product-card .meta { font-size: var(--fs-xs); color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; }
.product-card .meta span { display: inline-flex; align-items: center; gap: 4px; }
.product-card .price { margin-top: auto; font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--accent-dark); }
.product-card .price small { font-weight: 500; font-size: var(--fs-xs); color: var(--muted); }
.product-card .pc-actions { display: flex; gap: 8px; margin-top: 4px; }
.product-card .pc-actions .btn { flex: 1; padding: 10px; }

.empty-state { text-align: center; padding: 54px 20px; color: var(--muted); grid-column: 1/-1; font-size: var(--fs-sm); }
.empty-state i { font-size: 2.6rem; color: var(--line); display: block; margin-bottom: 10px; }

/* ---------- Brands strip ---------- */
.brands { display: grid; grid-template-columns: repeat(6,1fr); gap: clamp(10px,1.4vw,16px); }
.brand-chip { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 10px; text-align: center; font-weight: 700; font-family: var(--font-head); color: var(--ink); transition: .2s; box-shadow: var(--sh-sm); font-size: var(--fs-sm); }
.brand-chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); box-shadow: var(--sh); }
.brand-chip .brand-logo { display: grid; place-items: center; height: 52px; margin-bottom: 10px; }
.brand-chip .brand-logo img { max-height: 52px; max-width: 80%; width: auto; object-fit: contain; transition: .2s; }
.brand-chip:hover .brand-logo img { transform: scale(1.06); }
.brand-chip .brand-logo i { font-size: 2rem; color: var(--accent); }   /* fallback icon */

/* ---------- Why us ---------- */
.why { background: var(--surface); }
.why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(16px,2vw,24px); }
.why-card .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: var(--accent); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 14px; }
.why-card h3 { font-size: var(--fs-h3); color: var(--ink); margin-bottom: 6px; }
.why-card p { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- CTA banner ---------- */
.cta { background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 55%, var(--accent-dark) 150%); color: #fff; border-radius: var(--r-lg); padding: clamp(30px,5vw,48px); text-align: center; box-shadow: var(--sh); }
.cta h2 { font-size: var(--fs-h2); margin-bottom: 8px; }
.cta p { color: #d4d8e0; max-width: 56ch; margin: 0 auto 22px; font-size: var(--fs-sm); }
.cta .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #a7adb9; margin-top: 30px; }
.footer .container { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: clamp(24px,3vw,38px); padding: clamp(36px,5vw,54px) clamp(16px,4vw,28px) 30px; }
.footer h4 { color: #fff; font-size: var(--fs-h3); margin-bottom: 16px; }
.footer a, .footer p { font-size: var(--fs-sm); color: #a7adb9; display: block; margin-bottom: 9px; }
.footer a:hover { color: var(--accent); }
.footer .f-brand img { height: 58px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer .f-contact i { color: var(--accent); width: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .container { display: flex; justify-content: space-between; padding: 18px clamp(16px,4vw,28px); flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: var(--fs-xs); color: #7c8390; margin: 0; }

/* ---------- Page header ---------- */
.page-head { background: var(--ink); color: #fff; padding: clamp(28px,4vw,42px) 0 clamp(24px,3vw,34px); }
.page-head h1 { font-size: var(--fs-h2); }
.breadcrumb { font-size: var(--fs-sm); color: #9aa1ad; margin-bottom: 8px; }
.breadcrumb a { color: var(--accent); }

/* ---------- Listings layout ---------- */
.listing-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; position: sticky; top: 90px; }
.filters h3 { font-size: var(--fs-h3); color: var(--ink); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--line); }
.filter-group:last-of-type { border-bottom: none; }
.filter-group h4 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 10px; }
.filter-group label { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); padding: 5px 0; cursor: pointer; }
.filter-group input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }
.filter-group select, .filter-group input[type=text], .filter-group input[type=number] { width: 100%; padding: 10px 11px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-family: inherit; font-size: var(--fs-sm); outline: none; }
.filter-group select:focus, .filter-group input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.price-inputs { display: flex; gap: 8px; align-items: center; }
.listing-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.listing-toolbar .count { color: var(--muted); font-size: var(--fs-sm); }
.listing-toolbar .count b { color: var(--ink); font-family: var(--font-head); }
.toolbar-right { display: flex; gap: 10px; align-items: center; }
.toolbar-right select { padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-family: inherit; font-size: var(--fs-sm); }

/* ---------- Product detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px,3vw,36px); align-items: start; }
.gallery .main-img { position: relative; background: #fff; border-radius: var(--r); overflow: hidden; height: clamp(280px, 40vw, 420px); border: 1.5px solid var(--line); display: grid; place-items: center; transition: border-color .25s ease, box-shadow .25s ease; }
.gallery .main-img:hover { border-color: var(--accent); box-shadow: var(--sh); }
.gallery .main-img img { width: 100%; height: 100%; object-fit: contain; padding: 20px; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.gallery .main-img:hover img { transform: scale(1.09); }
.gal-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.92); color: var(--ink); box-shadow: var(--sh-sm); display: grid; place-items: center; font-size: 1.45rem; cursor: pointer; z-index: 3; transition: .18s; }
.gal-arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.gal-prev { left: 12px; }
.gal-next { right: 12px; }
.gal-count { position: absolute; bottom: 12px; right: 12px; background: rgba(21,23,28,.72); color: #fff; font-size: var(--fs-xs); font-weight: 600; padding: 3px 11px; border-radius: 20px; z-index: 3; }
.gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery .thumbs img { width: 76px; height: 60px; object-fit: contain; background: #fff; padding: 4px; border-radius: var(--r-sm); border: 2px solid var(--line); cursor: pointer; transition: border-color .2s ease, transform .2s ease; }
.gallery .thumbs img:hover { border-color: #f3c9cc; transform: translateY(-2px); }
.gallery .thumbs img.active { border-color: var(--accent); }
.detail-info h1 { font-size: clamp(1.4rem,1.1rem+1vw,1.8rem); color: var(--ink); line-height: 1.2; margin-top: 8px; }
.detail-info .price-tag { font-family: var(--font-head); font-size: clamp(1.6rem,1.3rem+1vw,2.1rem); font-weight: 700; color: var(--accent-dark); margin: 14px 0; }
.detail-info .price-tag small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0; background: var(--surface); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.spec-table td { padding: 12px 16px; font-size: var(--fs-sm); border-bottom: 1px solid var(--line); }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td:first-child { color: var(--muted); width: 42%; font-weight: 600; }
.spec-table td:last-child { color: var(--ink); font-weight: 600; }
.detail-actions { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.detail-actions .btn { flex: 1; min-width: 140px; }
.detail-desc { margin-top: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px,2.5vw,24px); }
.detail-desc h3 { color: var(--ink); margin-bottom: 10px; font-size: var(--fs-h3); }
.detail-desc p { color: var(--text); font-size: var(--fs-sm); }
.tag { display: inline-block; background: var(--accent-soft); color: var(--accent-dark); font-size: var(--fs-xs); font-weight: 700; padding: 5px 13px; border-radius: 20px; }
.tag-brand { background: var(--ink); color: #fff; margin-left: 6px; }

/* ---------- Admin ---------- */
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
.admin-side { background: var(--ink); color: #aeb4c0; padding: 22px 16px; }
.admin-side .a-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 0 6px; }
.admin-side .a-brand img { height: 40px; filter: brightness(0) invert(1); }
.admin-side .a-brand b { color: #fff; font-size: var(--fs-sm); font-family: var(--font-head); }
.admin-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: var(--r-sm); font-size: var(--fs-sm); color: #aeb4c0; margin-bottom: 4px; transition: .15s; cursor: pointer; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(225,29,42,.14); color: #fff; }
.admin-nav a i { color: var(--accent); font-size: 1.25em; }
.admin-side .a-foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.admin-side .a-foot a i { color: var(--accent); font-size: 1.25em; }
.admin-main { background: var(--bg); }
.admin-top { background: var(--surface); box-shadow: var(--sh-sm); padding: 15px clamp(16px,3vw,28px); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 10; gap: 12px; }
.admin-top h1 { font-size: clamp(1.1rem,1rem+.5vw,1.35rem); color: var(--ink); }
.admin-top .a-mobilebrand { display: none; align-items: center; gap: 8px; }
.admin-top .a-mobilebrand img { height: 34px; }
.admin-body { padding: clamp(16px,3vw,28px); }

.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(12px,1.6vw,18px); margin-bottom: 26px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--sh-sm); }
.kpi .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 12px; }
.kpi b { font-family: var(--font-head); font-size: clamp(1.3rem,1.1rem+.7vw,1.7rem); color: var(--ink); display: block; }
.kpi span { font-size: var(--fs-sm); color: var(--muted); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); margin-bottom: 24px; }
.panel-head { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel-head h2 { font-size: var(--fs-h3); color: var(--ink); }
.panel-body { padding: clamp(16px,2.5vw,22px); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1/-1; }
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group label { font-size: var(--fs-xs); font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .4px; }
.field-group label .req { color: var(--accent); }
.field-group input, .field-group select, .field-group textarea {
  padding: 12px 13px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-size: var(--fs-sm);
  font-family: inherit; outline: none; transition: .15s; background: var(--surface); color: var(--text);
}
.field-group input:focus, .field-group select:focus, .field-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-group textarea { resize: vertical; min-height: 92px; }
.field-group small { color: var(--muted); font-size: var(--fs-xs); text-transform: none; letter-spacing: 0; font-weight: 400; }
.form-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

.img-drop { border: 2px dashed var(--line); border-radius: var(--r-sm); padding: 20px; text-align: center; cursor: pointer; transition: .15s; }
.img-drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.img-drop i { font-size: 1.8rem; color: var(--accent); }
.img-preview { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.img-preview .pv { position: relative; width: 84px; height: 64px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.img-preview .pv img { width: 100%; height: 100%; object-fit: cover; }
.img-preview .pv button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; border: none; background: rgba(21,23,28,.8); color: #fff; font-size: .9rem; display: grid; place-items: center; line-height: 1; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.data-table th { text-align: left; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 12px 16px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); vertical-align: middle; }
.data-table tr:hover td { background: #fafbfc; }
.data-table .t-img { width: 52px; height: 40px; object-fit: cover; border-radius: 8px; background: #eef0f4; }
.data-table .t-name { font-weight: 700; color: var(--ink); }
.pill { display: inline-block; padding: 3px 11px; border-radius: 20px; font-size: var(--fs-xs); font-weight: 700; }
.pill.used { background: #eef0f4; color: var(--ink-2); }
.pill.new  { background: #e6f8ee; color: #1a9d57; }
.pill.refurb { background: var(--accent-soft); color: var(--accent-dark); }
.t-actions { display: flex; gap: 6px; }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--muted); transition: .15s; font-size: 1.1rem; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn.danger:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Pagination ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; padding: 18px 14px; }
.pager:empty { display: none; }
.pager button { min-width: 38px; height: 38px; padding: 0 12px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 9px; font-family: inherit; font-weight: 600; font-size: var(--fs-sm); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: .15s; }
.pager button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.pager button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }
.pager .pg-ellipsis { color: var(--muted); padding: 0 3px; }

/* ---------- Admin multi-view ---------- */
.admin-view { display: none; }
.admin-view.active { display: block; animation: viewIn .18s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 8px; }
.qa-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--sh-sm); transition: .18s; cursor: pointer; text-align: left; }
.qa-card:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: #f3c9cc; }
.qa-card .qa-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; font-size: 1.5rem; flex: none; }
.qa-card b { display: block; color: var(--ink); font-size: var(--fs-body); }
.qa-card small { color: var(--muted); font-size: var(--fs-xs); }

/* mobile admin tab bar (shown when the sidebar is hidden) */
.admin-tabs { display: none; gap: 4px; overflow-x: auto; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 12px; position: sticky; top: 0; z-index: 9; -webkit-overflow-scrolling: touch; }
.admin-tabs a { white-space: nowrap; padding: 9px 14px; border-radius: 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.admin-tabs a.active { background: var(--accent-soft); color: var(--accent-dark); }
.admin-tabs a i { font-size: 1.15em; }

/* ---------- Settings (categories / makes / conditions) ---------- */
.set-list { margin-bottom: 18px; }
.set-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: none; }
.set-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; font-size: 1.35rem; flex: none; }
.set-info { flex: 1; min-width: 0; }
.set-info b { color: var(--ink); font-size: var(--fs-body); }
.set-info small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip-list:empty::before { content: 'None yet.'; color: var(--muted); font-size: var(--fs-sm); }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 6px 5px 6px 14px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.chip button { width: 20px; height: 20px; border: none; border-radius: 50%; background: #e3e7ec; color: var(--muted); cursor: pointer; display: grid; place-items: center; font-size: 1rem; line-height: 1; transition: .15s; }
.chip button:hover { background: var(--accent); color: #fff; }
.set-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.set-add input { flex: 1; min-width: 150px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-size: var(--fs-sm); font-family: inherit; outline: none; }
.set-add input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Login ---------- */
.login-page { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 65%, var(--accent-dark) 160%); padding: 20px; }
.login-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: clamp(26px,4vw,38px); width: 100%; max-width: 400px; }
.login-card .lc-logo { text-align: center; margin-bottom: 18px; }
.login-card .lc-logo img { height: 62px; margin: 0 auto; }
.login-card h1 { text-align: center; font-size: 1.35rem; color: var(--ink); margin-bottom: 4px; }
.login-card .sub { text-align: center; color: var(--muted); font-size: var(--fs-sm); margin-bottom: 24px; }
.login-card .field-group { margin-bottom: 16px; }
.login-hint { text-align: center; font-size: var(--fs-xs); color: var(--muted); margin-top: 16px; padding: 11px; background: var(--bg); border-radius: var(--r-sm); }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--ink); color: #fff; padding: 14px 20px; border-radius: var(--r-sm); box-shadow: var(--sh-lg); font-size: var(--fs-sm); display: flex; align-items: center; gap: 10px; transform: translateY(160%); transition: .3s; z-index: 999; max-width: calc(100vw - 32px); }
.toast.show { transform: translateY(0); }
.toast i { color: var(--green); font-size: 1.3rem; }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; bottom: 22px; right: 22px; width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 1.9rem; box-shadow: 0 8px 24px rgba(37,211,102,.45); z-index: 90; transition: .2s; }
.wa-float:hover { transform: scale(1.08); }

/* ---------- Request a Part (RFQ) ---------- */
.nav-link.req { background: var(--accent); color: #fff; font-weight: 700; }
.nav-link.req:hover, .nav-item:hover > .nav-link.req { background: var(--accent-dark); color: #fff; }
.nav-link.req i { color: #fff; }

.nav-count { background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }

.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 20px; box-shadow: var(--sh-sm); }
.step .step-no { position: absolute; top: -12px; left: 20px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; font-size: .85rem; }
.step .ic { font-size: 1.9rem; color: var(--accent); margin-bottom: 8px; }
.step h3 { font-size: var(--fs-h3); color: var(--ink); margin-bottom: 4px; }
.step p { font-size: var(--fs-sm); color: var(--muted); }

.chat-top {
  background: linear-gradient(115deg, var(--ink) 0%, var(--ink-2) 70%, #1d6b3a 160%);
  color: #fff; border-radius: var(--r); padding: 20px 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 18px; margin-bottom: 22px; box-shadow: var(--sh); flex-wrap: wrap;
}
.chat-top .ct-info { display: flex; align-items: center; gap: 15px; }
.chat-top .ct-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 1.7rem; flex: none; }
.chat-top .ct-txt b { font-family: var(--font-head); font-size: 1.1rem; display: block; }
.chat-top .ct-txt span { font-size: var(--fs-sm); color: #c4cbd6; }
.chat-top .btn { flex: none; }

.request-layout { display: grid; grid-template-columns: 1fr 320px; gap: 26px; align-items: start; }
.request-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 90px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--sh-sm); }
.side-card.accent { background: var(--ink); color: #fff; border-color: var(--ink); }
.side-card h3 { font-size: var(--fs-h3); color: var(--ink); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.side-card h3 i { color: var(--accent); }
.side-card.accent h3 { color: #fff; }
.side-card.accent p { font-size: var(--fs-sm); color: #c4cbd6; margin-bottom: 12px; }
.side-card ul { list-style: none; display: grid; gap: 10px; }
.side-card li { font-size: var(--fs-sm); color: var(--text); display: flex; gap: 9px; align-items: flex-start; }
.side-card li i { color: var(--green); margin-top: 2px; }

.rq-success { background: #e6f8ee; border: 1px solid #b6e6cb; color: #157a47; border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 18px; display: flex; gap: 10px; align-items: center; font-size: var(--fs-sm); }
.rq-success i { font-size: 1.5rem; }
.rq-success .rq-id { font-family: var(--font-head); }

.req-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 16px; box-shadow: var(--sh-sm); }
.req-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.req-card h3 { font-size: var(--fs-h3); color: var(--ink); }
.req-meta { font-size: var(--fs-xs); color: var(--muted); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.req-meta i { color: var(--accent); }
.req-notes { font-size: var(--fs-sm); color: var(--text); font-style: italic; margin: 12px 0; padding-left: 12px; border-left: 3px solid var(--line); }
.req-quotes { margin-top: 14px; }
.req-quotes h4 { font-size: var(--fs-sm); color: var(--ink); margin-bottom: 12px; }

.status-pill { font-size: var(--fs-xs); font-weight: 700; padding: 4px 12px; border-radius: 20px; white-space: nowrap; }
.status-pill.open { background: #eef2f7; color: var(--ink-2); }
.status-pill.quoted { background: var(--accent-soft); color: var(--accent-dark); }
.status-pill.closed { background: #e6f8ee; color: #1a9d57; }

.quote-card { border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 10px; position: relative; transition: .15s; }
.quote-card.best { border-color: var(--accent); background: #fffaf6; }
.best-tag { position: absolute; top: -10px; right: 14px; background: var(--accent); color: #fff; font-size: var(--fs-xs); font-weight: 700; padding: 3px 10px; border-radius: 20px; display: inline-flex; align-items: center; gap: 4px; }
.quote-main { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.quote-seller b { font-size: var(--fs-body); color: var(--ink); }
.quote-seller i { color: #2b6cff; margin-left: 4px; }
.quote-seller small { display: block; font-size: var(--fs-xs); color: var(--muted); }
.quote-price { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--accent-dark); white-space: nowrap; }
.quote-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.grade { font-size: var(--fs-xs); font-weight: 700; padding: 3px 10px; border-radius: 6px; }
.grade-A { background: #e6f8ee; color: #157a47; }
.grade-B { background: #fff3e8; color: var(--accent-dark); }
.grade-C { background: #eef2f7; color: var(--ink-2); }
.badge-soft { font-size: var(--fs-xs); font-weight: 600; padding: 3px 10px; border-radius: 6px; background: var(--bg); color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.badge-soft i { color: var(--green); }
.quote-note { font-size: var(--fs-sm); color: var(--text); margin-bottom: 12px; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(15,17,22,.55); display: none; place-items: center; z-index: 200; padding: 20px; }
.modal.show { display: grid; }
.modal-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-lg); width: 100%; max-width: 560px; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; }
.modal-head { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-head h2 { font-size: var(--fs-h3); color: var(--ink); }
.modal-body { padding: 22px; overflow-y: auto; }
.req-detail h3 { font-size: var(--fs-h2); color: var(--ink); margin-bottom: 6px; }
.existing-quotes { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.existing-quotes h4 { font-size: var(--fs-sm); color: var(--ink); margin-bottom: 10px; }
.mini-quote { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: var(--fs-sm); padding: 9px 0; border-bottom: 1px dashed var(--line); }
.mini-quote.accepted { background: #e6f8ee; border-radius: 8px; padding: 9px 10px; border-bottom: none; }
.mini-quote .grade { margin: 0 4px; }
.accepted-tag { color: #157a47; font-weight: 700; font-size: var(--fs-xs); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.req-status-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; background: var(--bg); border-radius: var(--r-sm); margin-bottom: 16px; font-size: var(--fs-sm); }
.rsb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.quote-card.accepted { border-color: #1a9d57; background: #f2fbf6; }

/* invoice modal */
.modal-card.modal-lg { max-width: 640px; }
.inv-item-row { display: grid; grid-template-columns: 1fr 60px 100px 34px; gap: 8px; margin-bottom: 8px; align-items: center; }
.inv-item-row input { padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 8px; font-size: var(--fs-sm); font-family: inherit; outline: none; width: 100%; }
.inv-item-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.inv-item-row .icon-btn { width: 34px; height: 38px; }
.inv-totals { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; max-width: 280px; margin-left: auto; }
.inv-tot-row { display: flex; justify-content: space-between; font-size: var(--fs-sm); padding: 5px 0; color: var(--muted); }
.inv-tot-row b { color: var(--ink); }
.inv-tot-row.grand { font-family: var(--font-head); font-size: 1.1rem; border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; }
.inv-tot-row.grand b { color: var(--accent-dark); }

/* ---------- Vehicle-first search ---------- */
.veh-search { background: var(--surface); border-radius: var(--r); box-shadow: var(--sh); padding: 14px; margin-top: 20px; max-width: 720px; }
.veh-search .vs-row { display: grid; grid-template-columns: 160px 1fr auto; gap: 10px; }
.veh-search .vs-row + .vs-row { margin-top: 10px; }
.veh-search .vs-vin { grid-template-columns: 1fr auto; }
.veh-search select, .veh-search input { padding: 11px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-family: inherit; font-size: var(--fs-sm); outline: none; color: var(--text); background: var(--surface); }
.veh-search select:focus, .veh-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.vehicle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 20px); }
.vehicle-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: var(--sh-sm); transition: .2s; }
.vehicle-card:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: #f3c9cc; }
.vehicle-card .vc-thumb { width: 88px; height: 66px; flex: none; border-radius: var(--r-sm); overflow: hidden; background: #eef0f4; }
.vehicle-card .vc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-card .vc-body { flex: 1; min-width: 0; }
.vc-make { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .6px; color: var(--accent); font-weight: 700; }
.vehicle-card h3 { font-size: var(--fs-h3); color: var(--ink); line-height: 1.2; }
.vc-meta { font-size: var(--fs-xs); color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.vc-meta i { color: var(--accent); }
.vehicle-card .vc-go { color: var(--muted); font-size: 1.3rem; flex: none; transition: .2s; }
.vehicle-card:hover .vc-go { color: var(--accent); transform: translateX(3px); }

.vehicle-hero { display: flex; justify-content: space-between; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; margin-bottom: 26px; box-shadow: var(--sh-sm); flex-wrap: wrap; }
.vehicle-hero .vh-left { display: flex; align-items: center; gap: 18px; }
.vehicle-hero .vh-logo { width: 64px; height: 64px; object-fit: contain; flex: none; }
.vehicle-hero h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); color: var(--ink); line-height: 1.1; }
.vehicle-cat { margin-bottom: 34px; }
.vehicle-cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.vehicle-cat-head h3 { font-size: var(--fs-h2); color: var(--ink); display: flex; align-items: center; gap: 9px; }
.vehicle-cat-head h3 i { color: var(--accent); }
.vehicle-cat-head span { font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }

/* "Auto Parts" heading on the car page */
.parts-head { margin: 26px 0 18px; }
.parts-head h3 { font-size: var(--fs-h2); color: var(--ink); display: flex; align-items: center; gap: 9px; }
.parts-head h3 i { color: var(--accent); }
.parts-head p { font-size: var(--fs-sm); color: var(--muted); margin-top: 4px; }

/* varieties list (car + category → options with prices) */
.part-list { display: flex; flex-direction: column; gap: 12px; }
.part-row { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px 12px 12px; box-shadow: var(--sh-sm); transition: .18s; }
.part-row:hover { transform: translateY(-2px); box-shadow: var(--sh); border-color: #f3c9cc; }
.part-row .pr-thumb { width: 92px; height: 70px; flex: none; border-radius: var(--r-sm); overflow: hidden; background: #eef0f4; }
.part-row .pr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.part-row .pr-body { flex: 1; min-width: 0; }
.part-row h4 { font-size: var(--fs-body); color: var(--ink); line-height: 1.3; }
.part-row .pr-meta { font-size: var(--fs-xs); color: var(--muted); margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.part-row .pr-price { text-align: right; flex: none; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--accent-dark); }
.part-row .pr-price span { display: block; font-family: var(--font-body); font-weight: 600; font-size: var(--fs-xs); color: var(--muted); margin-top: 3px; }
.part-row:hover .pr-price span { color: var(--accent); }

/* live universal search suggestions (parts + vehicles) */
.car-suggest { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--sh-lg); z-index: 300; overflow: hidden; max-height: 380px; overflow-y: auto; text-align: left; }
.car-suggest .cs-group { font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 700; padding: 9px 13px 5px; background: var(--bg); }
.car-suggest .cs-item { display: flex; align-items: center; gap: 11px; padding: 9px 13px; border-bottom: 1px solid var(--line); transition: .12s; }
.car-suggest .cs-item:hover { background: var(--accent-soft); }
.car-suggest .cs-item > img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.car-suggest .cs-item .cs-thumb { width: 40px; height: 32px; border-radius: 6px; overflow: hidden; background: #eef0f4; flex: none; }
.car-suggest .cs-item .cs-thumb img { width: 100%; height: 100%; object-fit: cover; }
.car-suggest .cs-item span { flex: 1; min-width: 0; }
.car-suggest .cs-item b { font-size: var(--fs-sm); color: var(--ink); display: block; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-suggest .cs-item small { font-size: var(--fs-xs); color: var(--muted); }
.car-suggest .cs-item i { color: var(--muted); flex: none; }
.car-suggest .cs-all { display: flex; align-items: center; gap: 8px; padding: 11px 13px; font-size: var(--fs-sm); font-weight: 600; color: var(--accent-dark); background: var(--bg); }
.car-suggest .cs-all:hover { background: var(--accent-soft); }
.car-suggest .cs-empty { padding: 14px 13px; font-size: var(--fs-sm); color: var(--muted); }
.car-suggest .cs-empty a { color: var(--accent-dark); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3,1fr); }
  .cat-grid { grid-template-columns: repeat(3,1fr); }
  .brands { grid-template-columns: repeat(4,1fr); }
  .footer .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 74px; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 10px; box-shadow: var(--sh); gap: 2px; border-top: 1px solid var(--line); max-height: calc(100vh - 74px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav-item { width: 100%; }
  .nav-link { padding: 13px; justify-content: space-between; width: 100%; }
  .nav-link .caret { transition: transform .2s; }
  .nav-item.open > .nav-link { background: var(--accent-soft); color: var(--accent-dark); }
  .nav-item.open > .nav-link .caret { transform: rotate(180deg); }
  .menu-toggle { display: block; margin-left: auto; }

  /* mega menus collapse into inline accordions */
  .mega { position: static; min-width: 0; max-width: none; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-radius: 0; padding: 4px 8px 10px 16px; display: none; }
  .mega.right { right: auto; }
  .nav-item.open .mega { display: block; }
  .nav-item.has-mega:hover > .mega { opacity: 1; visibility: visible; } /* hover no-op on touch */
  .mega-tip { display: none; }
  .mega-cols.mega-3, .mega-cols.mega-1 { grid-template-columns: 1fr; gap: 14px; }
  .mega-feature { margin: 0; }
  .header-actions .btn span { display: none; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .search-grid .field[style*="span 2"] { grid-column: 1 / -1 !important; }
  .search-grid .btn { grid-column: 1/-1; }
  .vin-row { grid-template-columns: 1fr; }
  .stats .container, .why-grid { grid-template-columns: repeat(2,1fr); }
  .cat-grid, .product-grid { grid-template-columns: repeat(2,1fr); }
  .listing-wrap { grid-template-columns: 1fr; }
  .filters { position: static; }
  .detail-grid { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: none; }
  .admin-tabs { display: flex; }
  .quick-actions { grid-template-columns: 1fr; }
  .admin-top .a-mobilebrand { display: flex; }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .request-layout { grid-template-columns: 1fr; }
  .request-side { position: static; }
  .nav-count { margin-left: 8px; }
  .vehicle-grid { grid-template-columns: repeat(2,1fr); }
  .veh-search .vs-row { grid-template-columns: 1fr; }
  .veh-search .vs-vin { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .vehicle-grid { grid-template-columns: 1fr; }
  .part-row .pr-thumb { width: 66px; height: 54px; }
  .part-row .pr-price { font-size: 1.05rem; }
  .topbar .tb-left span:nth-child(2) { display: none; }
  .cat-grid, .brands { grid-template-columns: repeat(2,1fr); }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .product-card .pc-actions { flex-direction: column; }
  .hero-badges span { font-size: 11px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .footer .container { grid-template-columns: 1fr 1fr; }
  .footer .f-brand { grid-column: 1/-1; }
}
@media (max-width: 400px) {
  .product-grid { grid-template-columns: 1fr; }
  .search-grid { grid-template-columns: 1fr; }
  .stats .container { grid-template-columns: 1fr 1fr; }
}
