:root {
  --ink: #16181d;
  --ink-2: #4a505c;
  --line: #e2e5ea;
  --bg: #f5f6f8;
  --card: #ffffff;
  --orange: #f07c00;
  --orange-dk: #c86400;
  --blue: #0a5cad;
  --radius: 10px;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.45; }
a { color: var(--blue); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* Header */
.topbar { background: #fff; border-bottom: 4px solid var(--orange); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.brand img { height: 46px; width: auto; }
.contact { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.contact a { text-decoration: none; color: var(--ink-2); font-weight: 600; }
.contact .phone { color: #fff; background: var(--ink); padding: 8px 14px; border-radius: 999px; font-style: italic; }

/* Hero + search */
.hero { background: linear-gradient(135deg, #16181d 0%, #23262e 60%, #0a3a6e 100%); color: #fff; padding: 40px 0 34px; }
.hero h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.01em; }
.lede { margin: 0 0 22px; color: #cfd5de; max-width: 720px; }
.search { display: grid; grid-template-columns: 1fr 170px 170px 110px auto; gap: 8px; background: #fff; padding: 8px; border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.search input, .search select { font: inherit; padding: 12px; border: 1px solid var(--line); border-radius: 7px; min-width: 0; background: #fff; color: var(--ink); }
.search input { font-size: 1.05rem; }
.search button { font: inherit; font-weight: 700; padding: 12px 22px; border: 0; border-radius: 7px; background: var(--orange); color: #fff; cursor: pointer; }
.search button:hover { background: var(--orange-dk); }

/* Sections */
main { padding: 28px 16px 48px; min-height: 50vh; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 16px; }
.section-head h2 { margin: 0; font-size: 1.3rem; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.crumbs { font-size: .9rem; margin-bottom: 14px; }
.crumbs a { text-decoration: none; }

/* Make grid */
.makes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.makes a { display: flex; justify-content: space-between; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; text-decoration: none; color: var(--ink); font-weight: 600; }
.makes a:hover { border-color: var(--orange); color: var(--orange-dk); }
.makes span { font-weight: 400; color: var(--ink-2); font-size: .85rem; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s; }
.card:hover { border-color: var(--orange); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.thumb { aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; border-bottom: 1px solid var(--line); padding: 10px; }
.thumb img { max-height: 100%; object-fit: contain; }
.thumb .noimg { color: #9aa1ad; font-size: .85rem; text-align: center; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.pn { font-weight: 800; color: var(--orange-dk); letter-spacing: .02em; }
.fits { font-weight: 600; }
.fits-more { font-size: .85rem; color: var(--ink-2); }
.more { display: block; margin: 22px auto 0; font: inherit; font-weight: 700; padding: 11px 24px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; cursor: pointer; }
.badge { align-self: flex-start; margin-top: 4px; font-size: .75rem; font-weight: 700; color: #7a4a00; background: #fff1dc; border: 1px solid #f3cf9c; border-radius: 999px; padding: 2px 9px; }
.construction { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 8px; padding: 2px 16px 10px; margin-bottom: 18px; }
.construction h3 { margin-top: 12px; }
.construction p { margin: 6px 0; }
.variant-list { display: flex; gap: 8px; margin: 10px 0; }
.variant-list em { font-style: normal; font-weight: 600; color: var(--ink); margin-left: 4px; }
.variant-list span { font-weight: 800; color: var(--orange-dk); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; }
.text-photo { display: inline-block; margin-top: 6px; padding: 12px 20px; border-radius: 8px; background: var(--orange); color: #fff; font-weight: 600; text-decoration: none; }
.text-photo:hover { background: var(--orange-dk); }
.more[hidden] { display: none; }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }

/* Product detail */
.detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: start; }
.gallery { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.gallery .main-img { aspect-ratio: 4 / 3; display: grid; place-items: center; }
.gallery .main-img img { max-height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 12px; }
.thumbs button { width: 72px; height: 56px; padding: 4px; border: 2px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--orange); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.detail h1 { margin: 0; font-size: 2rem; }
.detail .desc { margin: 4px 0 18px; color: var(--ink-2); font-size: 1.05rem; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.btn { display: inline-block; font-weight: 700; padding: 12px 20px; border-radius: 8px; text-decoration: none; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dk); }
.btn-ghost { border: 2px solid var(--ink); color: var(--ink); }
table.apps { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
.apps th, .apps td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.apps th { background: #f0f2f5; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.apps tr:last-child td { border-bottom: 0; }
.oe { font-family: Consolas, "Courier New", monospace; font-size: .88rem; }
h3 { margin: 22px 0 8px; font-size: 1rem; }

/* Footer */
.footer { background: var(--ink); color: #cfd5de; padding: 26px 0; }
.footer a { color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 20px; }

/* Site menu and SEO pages */
.sitenav { display: flex; flex-wrap: wrap; gap: 4px 20px; padding-bottom: 10px; font-size: .92rem; }
.sitenav a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.sitenav a:hover { color: var(--orange-dk); }
.hero-slim { padding: 14px 0; }
.search-simple { grid-template-columns: 1fr auto; }
.page h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 4px 0 10px; }
.page h2 { font-size: 1.25rem; margin: 28px 0 12px; }
.page .h3 { font-size: 1rem; margin: 22px 0 8px; }
.lede-dark { color: var(--ink-2); font-size: 1.05rem; max-width: 820px; }
.prose { max-width: 760px; font-size: 1.04rem; }
.prose li { margin: 4px 0; }
.thumb-row { display: flex; gap: 8px; margin-top: 12px; }
.thumb-row img { width: 96px; height: 72px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.related { margin-top: 36px; }
.apps.models td:last-child { font-weight: 700; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--radius); padding: 16px 20px; margin: 0 auto 32px; }
.cta-band > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.cta-band .actions { margin: 0; }
.seo-intro { padding-top: 8px; padding-bottom: 40px; color: var(--ink-2); }
.seo-intro h2 { color: var(--ink); font-size: 1.2rem; }
.footer-makes { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 18px; margin-top: 18px; border-top: 1px solid #2c3038; font-size: .85rem; }
.footer-makes a { color: #aab2bf; text-decoration: none; }
.footer-makes.on-light { border-top-color: var(--line); }
.footer-makes.on-light a { color: var(--blue); }

/* Embed mode: inside another site's page, which already has its own header and footer */
.embed .topbar, .embed .footer, .embed .seo-intro { display: none; }
.embed .hero { padding: 18px 0 16px; }
.embed .hero h1 { font-size: 1.4rem; }
.embed .lede { margin-bottom: 14px; }

@media (max-width: 820px) {
  .search-simple { grid-template-columns: 1fr; }
  .search { grid-template-columns: 1fr 1fr; }
  .search input { grid-column: 1 / -1; }
  .search button { grid-column: 1 / -1; }
  .search #year ~ button { grid-column: auto; }
  .detail { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .brand img { height: 36px; }
  .contact { gap: 10px; font-size: .9rem; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 10px; }
}
