/* YOUSUF Auto Parts — parts catalogue
   Shares the design tokens of the main site so the catalogue reads as the same brand. */

:root {
  --ink: #0a1016;
  --ink-2: #111a23;
  --paper: #ffffff;
  --paper-2: #f5f7f9;
  --muted: #5b6c7c;
  --line: rgba(10, 16, 22, 0.12);
  --line-2: rgba(10, 16, 22, 0.07);
  --accent: #1e86f0;
  --accent-2: #59a9ff;
  --accent-soft: #eaf3ff;
  --maxw: 1180px;
  --r: 16px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(var(--maxw), 100% - 48px); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 10px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 26px rgba(30, 134, 240, 0.26); }
.btn-primary:hover { background: #1474d8; box-shadow: 0 14px 30px rgba(30, 134, 240, 0.32); }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-outline:hover { border-color: #9fb1c2; }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: #fff; border: 1px solid rgba(255, 255, 255, 0.32); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 12.5px; border-radius: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(6, 11, 17, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: block; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 11px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 6px 18px rgba(0, 0, 0, 0.45);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; transform: scale(1.36); transform-origin: 50% 30%; }
.brand-name { display: block; font-size: 17px; font-weight: 800; letter-spacing: 0.06em; line-height: 1.1; color: #fff; }
.brand-sub { display: block; margin-top: 3px; font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.42); }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.68); }
.nav a { padding: 6px 0; border-bottom: 2px solid transparent; transition: color .16s ease, border-color .16s ease; }
.nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { height: 42px; padding: 0 18px; font-size: 13px; }

/* ---------- page hero ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #060b11;
  padding: 46px 0 40px;
}
.page-hero::before {
  content: ""; position: absolute; inset: -30% -10% -40% -10%; z-index: -2;
  background: radial-gradient(720px 460px at 84% -20%, rgba(30, 134, 240, 0.4), transparent 62%),
              radial-gradient(520px 420px at 0% 120%, rgba(30, 134, 240, 0.14), transparent 72%);
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.5); margin-bottom: 18px; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { opacity: 0.45; }
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
.page-hero .lede { margin-top: 14px; max-width: 62ch; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.68); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.82);
}
.chip b { color: #fff; font-weight: 800; }

/* ---------- filter bar ---------- */
.filters {
  position: sticky; top: 74px; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.filters-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.5fr); gap: 12px; padding: 14px 0; align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field select, .field input {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 9px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 13.5px; font-weight: 600; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235b6c7c' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.field input { background-image: none; padding-right: 12px; }
.field select:focus, .field input:focus { outline: 2px solid rgba(30, 134, 240, 0.45); outline-offset: 1px; border-color: var(--accent); }
.field select:disabled { opacity: 0.55; cursor: not-allowed; }
.filters-foot { display: flex; align-items: center; gap: 14px; padding: 0 0 14px; font-size: 12.5px; color: var(--muted); }
.filters-foot strong { color: var(--ink); }
.reset-link { font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- product grid ---------- */
.section { padding: 44px 0 20px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
  position: relative;
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r);
  background: #fff; overflow: hidden; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card:hover { border-color: rgba(30, 134, 240, 0.5); box-shadow: 0 18px 40px rgba(10, 16, 22, 0.09); transform: translateY(-2px); }
.card-media { position: relative; background: #fff; border-bottom: 1px solid var(--line-2); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 14px; }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card-tag {
  position: absolute; top: 12px; left: 12px; height: 24px; padding: 0 9px; border-radius: 6px;
  display: inline-flex; align-items: center; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(10, 16, 22, 0.78); color: #fff;
}
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.card-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.card-title { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r); }
.card-title a:focus-visible { outline: none; }
.card:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30, 134, 240, 0.22); }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r); }
.card-title a:focus-visible { outline: none; }
.card:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30, 134, 240, 0.22); }
.card-fit { font-size: 13px; color: var(--muted); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2); }
.card-id { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-cta { font-size: 12.5px; font-weight: 800; color: var(--accent); display: inline-flex; align-items: center; gap: 5px; }
.card:hover .card-cta { gap: 9px; }

.empty { border: 1px dashed var(--line); border-radius: var(--r); padding: 56px 24px; text-align: center; }
.empty h2 { font-size: 18px; margin-bottom: 8px; }
.empty p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

/* ---------- catalogue note ---------- */
.note-band { margin: 34px 0 8px; border: 1px solid var(--line-2); background: var(--paper-2); border-radius: var(--r); padding: 22px 24px; }
.note-band h2 { font-size: 15px; margin-bottom: 8px; }
.note-band p { font-size: 13.5px; color: var(--muted); max-width: 78ch; }
.note-band p + p { margin-top: 10px; }

/* ---------- detail page ---------- */
.detail { padding: 40px 0 10px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.detail-media { position: sticky; top: 150px; }
.detail-media .frame {
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  padding: 20px; display: grid; place-items: center; aspect-ratio: 4 / 3;
}
.detail-media .frame img { width: 100%; height: 100%; object-fit: contain; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.compare figure { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.compare img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.compare figcaption { padding: 8px 10px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line-2); }

.detail-head .eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.detail-head h1 { margin-top: 10px; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; letter-spacing: -0.02em; }
.detail-head .idline { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-weight: 700; letter-spacing: 0.04em; color: var(--ink); }
.detail-head .lede { margin-top: 16px; font-size: 15.5px; line-height: 1.62; color: #33414f; }
.detail-head .body { margin-top: 14px; font-size: 14.5px; line-height: 1.68; color: var(--muted); }
.detail-head .body + .body { margin-top: 12px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cta-row .btn { flex: 0 1 auto; }

.spec { margin-top: 28px; border-top: 1px solid var(--line-2); }
.spec-row { display: grid; grid-template-columns: 132px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.spec-row dt { color: var(--muted); font-weight: 700; }
.spec-row dd { margin: 0; font-weight: 600; }
.spec-note { margin-top: 12px; font-size: 12.5px; color: var(--muted); }

.block { margin-top: 40px; }
.block h2 { font-size: 18px; letter-spacing: -0.01em; margin-bottom: 14px; }
.block h2 .count { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; margin-left: 8px; }
.ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
.ticks li { position: relative; padding-left: 24px; font-size: 13.5px; color: #33414f; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 3px;
  background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(30, 134, 240, 0.5);
}
.notes li { position: relative; padding-left: 20px; font-size: 13.5px; color: var(--muted); }
.notes li + li { margin-top: 10px; }
.notes li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.legal { margin-top: 44px; border-top: 1px solid var(--line-2); padding-top: 18px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.legal p + p { margin-top: 8px; }

/* ---------- footer ---------- */
.footer { margin-top: 64px; background: #060b11; color: rgba(255, 255, 255, 0.62); padding: 48px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 36px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; }
.footer-brand .brand-name { color: #fff; }
.footer-text { margin-top: 14px; font-size: 13px; line-height: 1.6; max-width: 46ch; }
.footer-col h4 { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.42); margin-bottom: 12px; }
.footer-col a, .footer-col span { display: block; font-size: 13.5px; padding: 5px 0; color: rgba(255, 255, 255, 0.72); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 12px; color: rgba(255, 255, 255, 0.42); }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .nav { gap: 16px; font-size: 13px; }
  .nav a { white-space: nowrap; }
  .detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .detail-media { position: static; }
  .filters-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .wrap { width: min(var(--maxw), 100% - 32px); }
  .header-inner { height: 62px; gap: 12px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 9px; }
  .brand-name { font-size: 15px; }
  .brand-sub { display: none; }
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .header-cta .btn { height: 38px; padding: 0 14px; font-size: 12px; }
  .filters { top: 62px; }
  .filters-inner { grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 0 4px; }
  .filters-inner .field:last-child { grid-column: 1 / -1; }
  .page-hero { padding: 30px 0 28px; }
  .page-hero h1 { font-size: 27px; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .related { grid-template-columns: 1fr; }
  .ticks { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: 108px 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .detail-head h1 { font-size: 24px; }
  .cta-row .btn { width: 100%; }
}

/* ---------- more vehicles in preparation ---------- */
.coming {
  margin-top: 34px; padding: 26px 26px 28px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--paper-2);
}
.coming-head h2 { font-size: 19px; letter-spacing: -0.012em; }
.coming-head p { margin-top: 8px; max-width: 62ch; font-size: 14px; color: var(--muted); }
.coming-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 20px; }
.coming-list li {
  padding: 7px 13px; border: 1px dashed rgba(10, 16, 22, 0.22); border-radius: 999px;
  background: #fff; color: #33414e; font-size: 13px; font-weight: 600;
}

/* ---------- mobile sticky WhatsApp ---------- */
.mobile-wa { display: none; }
@media (max-width: 760px) {
  .mobile-wa {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70;
    height: 50px; border-radius: 10px;
    background: var(--accent); color: #fff;
    font-size: 15px; font-weight: 800; letter-spacing: 0.01em;
    box-shadow: 0 12px 30px rgba(30, 134, 240, 0.38);
  }
  body { padding-bottom: 74px; }
  .coming { padding: 20px 18px 22px; }
  .coming-list { margin: 14px 0 18px; }
}
