/* ============ GEARHAUS shared design system ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --steel:    #0d1b2a;
  --steel-mid:#1c2e42;
  --steel-lt: #2a4057;
  --accent:   #f59e0b;
  --accent-lt:color-mix(in oklab, var(--accent) 85%, white);
  --accent-dk:color-mix(in oklab, var(--accent) 82%, black);
  --chalk:    #f0f4f8;
  --muted:    #8fa3b8;
  --ink-2:    #3a4f62;
  --white:    #ffffff;
  --red:      #ef4444;
  --green:    #16a34a;
  --line:     #e5eaf0;
  --radius:   8px;
  --pad:      1;
}
body { font-family: 'Inter', sans-serif; background: var(--chalk); color: var(--steel); font-size: 14px; line-height: 1.5; overflow-x: hidden; }
body.density-compact { --pad: 0.72; }
a { color: inherit; }
.icon { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.cond { font-family: 'Barlow Condensed', sans-serif; }

/* TOP BAR */
.topbar { background: var(--steel); color: var(--muted); font-size: 12px; padding: 6px 16px; text-align: center; letter-spacing: 0.04em; }
.topbar span { color: var(--accent); font-weight: 600; }

/* NAVBAR */
nav.gh-nav { background: var(--steel-mid); padding: 0 40px; display: flex; align-items: center; gap: 20px; height: 64px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.logo { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 26px; color: var(--white); letter-spacing: 0.06em; text-decoration: none; flex-shrink: 0; }
.logo span { color: var(--accent); }
.nav-search { flex: 1; max-width: 480px; display: flex; background: var(--steel-lt); border-radius: calc(var(--radius) - 2px); overflow: hidden; border: 1px solid rgba(255,255,255,0.08); }
.nav-search input { flex: 1; background: transparent; border: none; outline: none; color: var(--white); padding: 0 14px; font-size: 13px; font-family: 'Inter', sans-serif; min-width: 0; }
.nav-search input::placeholder { color: var(--muted); }
.nav-search button { background: var(--accent); border: none; padding: 0 16px; cursor: pointer; color: var(--steel); display: flex; align-items: center; transition: background 0.2s; }
.nav-search button:hover { background: var(--accent-lt); }
.nav-vehicle { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: calc(var(--radius) - 2px); padding: 6px 12px; color: var(--white); font-size: 12px; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background 0.2s; }
.nav-vehicle:hover { background: rgba(255,255,255,0.12); }
.nav-vehicle .icon { color: var(--accent); }
.nav-vehicle em { font-style: normal; color: var(--muted); font-size: 11px; }
.nav-links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav-link { color: var(--muted); font-size: 13px; padding: 8px 12px; border-radius: 5px; cursor: pointer; transition: color 0.2s, background 0.2s; display: flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.nav-link:hover { color: var(--white); background: var(--steel-lt); }
.cart-btn { background: var(--accent); color: var(--steel); font-weight: 600; font-size: 13px; padding: 8px 16px; border-radius: calc(var(--radius) - 3px); border: none; cursor: pointer; display: flex; align-items: center; gap: 7px; transition: background 0.2s; text-decoration: none; }
.cart-btn:hover { background: var(--accent-lt); }
.cart-badge { background: var(--red); color: white; font-size: 10px; font-weight: 700; border-radius: 99px; padding: 1px 6px; line-height: 1.4; }

/* CATEGORY NAV */
.cat-section { background: var(--white); padding: 0 40px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.cat-row { display: flex; gap: 0; }
.cat-item { padding: calc(14px * var(--pad)) 16px; font-size: 13px; font-weight: 500; color: #4a5e72; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; transition: color 0.15s, border-color 0.15s; text-decoration: none; display: block; }
.cat-item:hover { color: var(--steel); border-bottom-color: var(--accent); }
.cat-item.active { color: var(--steel); border-bottom-color: var(--accent); font-weight: 600; }

/* PROMO STRIP */
.promo-strip { background: var(--accent); padding: 10px 40px; display: flex; gap: 32px; align-items: center; justify-content: center; flex-wrap: wrap; }
.promo-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--steel); }

/* LAYOUT */
.main { padding: calc(40px * var(--pad)) 40px; max-width: 1280px; margin: 0 auto; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.section-head h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 26px; color: var(--steel); letter-spacing: 0.02em; }
.section-head a { font-size: 13px; color: var(--accent-dk); font-weight: 600; text-decoration: none; }
.section-head a:hover { text-decoration: underline; }

/* BREADCRUMB */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--steel); }
.crumbs .sep { color: #c3cfdb; }
.crumbs .here { color: var(--steel); font-weight: 500; }

/* PRODUCT CARD */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(14px * var(--pad)); }
.pcard { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; cursor: pointer; transition: box-shadow 0.2s, transform 0.2s; position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.pcard:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.12); transform: translateY(-2px); }
.pcard-badge { position: absolute; top: 8px; left: 8px; background: var(--red); color: white; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 3px; letter-spacing: 0.04em; z-index: 1; }
.pcard-badge.oem { background: var(--steel); }
.pcard-badge.new { background: var(--green); }
.pcard-img { width: 100%; height: calc(160px * var(--pad)); background: #eef2f6; overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-body { padding: calc(12px * var(--pad)); flex: 1; display: flex; flex-direction: column; }
.pcard-brand { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pcard-name { font-size: 13px; font-weight: 500; color: var(--steel); line-height: 1.4; margin-bottom: 8px; flex: 1; }
.pcard-sku { font-size: 10px; color: #aab8c6; margin-bottom: 6px; }
.stars { display: flex; align-items: center; gap: 2px; margin-bottom: 8px; }
.star { color: var(--accent); font-size: 12px; }
.star.empty { color: #dde3ea; }
.review-count { font-size: 11px; color: var(--muted); margin-left: 4px; }
.pcard-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.price-main { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 22px; color: var(--steel); }
.price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.price-save { font-size: 11px; color: var(--red); font-weight: 600; }
.fit-tag { font-size: 11px; color: var(--green); font-weight: 600; display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.fit-tag.unknown { color: var(--muted); }
.pcard-add { width: 100%; padding: calc(9px * var(--pad)); background: var(--steel); color: white; border: none; border-radius: calc(var(--radius) - 3px); font-size: 12px; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s; letter-spacing: 0.04em; display: flex; align-items: center; justify-content: center; gap: 6px; }
.pcard-add:hover { background: var(--accent); color: var(--steel); }
.pcard-add.added { background: var(--green); color: white; }

/* SIDEBAR (listing filters + home categories) */
.sidebar-block { background: var(--white); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; border: 1px solid var(--line); }
.sidebar-head { background: var(--steel); color: var(--white); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; padding: 10px 14px; }
.sidebar-list { list-style: none; }
.sidebar-list li { border-bottom: 1px solid #f0f4f8; }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list li a { display: flex; align-items: center; justify-content: space-between; padding: calc(9px * var(--pad)) 14px; font-size: 13px; color: var(--ink-2); text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s; }
.sidebar-list li a:hover { background: #f8fafc; color: var(--steel); }
.sidebar-list li a.active { background: #fff8ec; color: var(--steel); font-weight: 600; box-shadow: inset 2px 0 0 var(--accent); }
.sidebar-list li a span { font-size: 11px; color: var(--muted); }
.filter-group { padding: 12px 14px; border-bottom: 1px solid #f0f4f8; }
.filter-group:last-child { border-bottom: none; }
.filter-group h5 { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.filter-check { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.filter-check input { accent-color: var(--accent-dk); width: 14px; height: 14px; cursor: pointer; }
.filter-check span.cnt { margin-left: auto; font-size: 11px; color: var(--muted); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; cursor: pointer; font-family: 'Inter', sans-serif; font-weight: 600; border-radius: calc(var(--radius) - 2px); transition: background 0.2s, transform 0.1s, color 0.2s; text-decoration: none; }
.btn-accent { background: var(--accent); color: var(--steel); }
.btn-accent:hover { background: var(--accent-lt); transform: translateY(-1px); }
.btn-dark { background: var(--steel); color: var(--white); }
.btn-dark:hover { background: var(--steel-lt); }
.btn-ghost { background: var(--white); color: var(--steel); border: 1.5px solid #dde3ea; }
.btn-ghost:hover { border-color: var(--steel); }
.btn-lg { padding: 13px 22px; font-size: 14px; }
.btn-block { width: 100%; }

/* FORMS */
.gh-select, .gh-input { width: 100%; padding: 9px 10px; border: 1.5px solid #dde3ea; border-radius: calc(var(--radius) - 3px); font-size: 13px; font-family: 'Inter', sans-serif; color: var(--steel); background: #f8fafc; transition: border-color 0.2s; }
.gh-select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238fa3b8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }
.gh-select:focus, .gh-input:focus { outline: none; border-color: var(--accent); }
.gh-input::placeholder { color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* QTY STEPPER */
.qty { display: inline-flex; align-items: center; border: 1.5px solid #dde3ea; border-radius: calc(var(--radius) - 3px); overflow: hidden; background: var(--white); }
.qty button { width: 34px; height: 36px; border: none; background: #f8fafc; cursor: pointer; font-size: 16px; color: var(--ink-2); display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.qty button:hover { background: var(--line); }
.qty input { width: 44px; height: 36px; border: none; text-align: center; font-size: 14px; font-weight: 600; color: var(--steel); font-family: 'Inter', sans-serif; outline: none; }

/* CARDS / PANELS */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-pad { padding: calc(20px * var(--pad)); }

/* FITMENT BANNER */
.fit-banner { display: flex; align-items: center; gap: 12px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius); padding: 10px 16px; font-size: 13px; color: #166534; margin-bottom: 18px; }
.fit-banner .icon { color: var(--green); width: 18px; height: 18px; }
.fit-banner strong { font-weight: 700; }
.fit-banner a { margin-left: auto; font-size: 12px; color: #166534; font-weight: 600; }
.fit-banner.none { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.fit-banner.none .icon { color: var(--accent-dk); }
.fit-banner.none a { color: #92400e; }

/* FOOTER */
footer.gh-footer { background: var(--steel); color: var(--muted); padding: 40px 40px 20px; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; max-width: 1280px; margin-left: auto; margin-right: auto; }
.footer-col h4 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.footer-col p { font-size: 13px; line-height: 1.7; color: #6b8099; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-col ul li { font-size: 13px; color: #6b8099; cursor: pointer; transition: color 0.15s; }
.footer-col ul li:hover { color: var(--muted); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 16px; display: flex; justify-content: space-between; align-items: center; max-width: 1280px; margin: 0 auto; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 11px; color: #3d5166; max-width: 760px; }
.payment-icons { display: flex; gap: 8px; margin-top: 14px; }
.pay-chip { background: rgba(255,255,255,0.06); border-radius: 4px; padding: 4px 10px; font-size: 11px; font-weight: 600; color: #8fa3b8; letter-spacing: 0.04em; }

/* TOAST */
.gh-toast { position: fixed; bottom: 24px; right: 24px; background: var(--steel); color: white; padding: 12px 18px; border-radius: var(--radius); font-size: 13px; display: flex; align-items: center; gap: 10px; box-shadow: 0 12px 32px rgba(0,0,0,0.35); z-index: 500; opacity: 0; transform: translateY(8px); transition: opacity 0.25s, transform 0.25s; pointer-events: none; }
.gh-toast.show { opacity: 1; transform: translateY(0); }
.gh-toast .icon { color: var(--green); }

@media (max-width: 980px) {
  nav.gh-nav { padding: 0 16px; flex-wrap: wrap; height: auto; row-gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .main { padding: 24px 16px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
