/* ============================================================
   MKIV.PARTS — Mobile Responsive Overrides
   Engineered by Ghost Eagle Dynamics | v1.0.00
   Mobile-first breakpoints — max-width: 768px
   ============================================================ */

@media (max-width: 768px) {

  /* ── NAV ───────────────────────────────────────────────── */
  .site-nav    { display: none; }
  .hamburger   { display: flex; }
  .header-inner { padding: 10px 16px; }
  .logo-main   { font-size: 20px; }
  .logo-sub    { font-size: 8px; }

  /* ── HERO ──────────────────────────────────────────────── */
  .hero { padding: 36px 16px 32px; }
  .hero::before { font-size: 90px; }
  .hero-title { font-size: 52px; }
  .hero-sub   { font-size: 14px; }
  .hero-btns  { flex-direction: column; }
  .hero-btns .btn { width: 100%; }

  /* ── STATS ─────────────────────────────────────────────── */
  .stat-num { font-size: 28px; }
  .stat-item { padding: 14px 8px; }

  /* ── PARTS GRID ────────────────────────────────────────── */
  .parts-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* ── GB GRID ───────────────────────────────────────────── */
  .gb-grid { grid-template-columns: 1fr; }

  /* ── PART DETAIL ───────────────────────────────────────── */
  .part-detail { padding: 20px 16px 40px; }
  .part-detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .part-info-title { font-size: 30px; }
  .part-price-amount { font-size: 40px; }

  /* ── GALLERY ───────────────────────────────────────────── */
  .gallery-main { aspect-ratio: 3/2; max-height: 320px; }
  .gallery-thumb { width: 56px; height: 56px; }

  /* ── GB DETAIL ─────────────────────────────────────────── */
  .gb-detail { padding: 20px 16px 40px; }
  .gb-detail-title { font-size: 38px; }
  .gb-tracker-stats { grid-template-columns: repeat(3, 1fr); }
  .gb-tracker-num { font-size: 26px; }

  /* ── FORMS ─────────────────────────────────────────────── */
  .form-row { grid-template-columns: 1fr; }
  .shipping-calc-row { flex-direction: column; }

  /* ── FILTER BAR ────────────────────────────────────────── */
  .filter-bar-inner { gap: 8px; }
  .filter-bar select,
  .filter-bar input { width: 100%; }
  .filter-count { margin-left: 0; }

  /* ── FOOTER ────────────────────────────────────────────── */
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-nav   { flex-wrap: wrap; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }

  /* ── PAGE HERO ─────────────────────────────────────────── */
  .page-hero { padding: 24px 16px 20px; }

  /* ── CONTACT ───────────────────────────────────────────── */
  .contact-wrap { padding: 24px 16px 40px; }
  .contact-title { font-size: 36px; }

  /* ── SECTION HEADER ────────────────────────────────────── */
  .section-header { gap: 8px; }
  .section-title  { font-size: 22px; }
  .section { padding: 36px 0; }

  /* ── WHY GRID ──────────────────────────────────────────── */
  .why-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* ── SOLD GRID ─────────────────────────────────────────── */
  .sold-grid { grid-template-columns: 1fr 1fr; }

  /* ── LIGHTBOX ──────────────────────────────────────────── */
  .lightbox-img { max-width: 95vw; max-height: 80vh; }
  .lightbox-prev, .lightbox-next { padding: 12px 8px; }

  /* ── PAYPAL ────────────────────────────────────────────── */
  .paypal-total-amount { font-size: 24px; }
}

@media (max-width: 480px) {
  .parts-grid { grid-template-columns: 1fr; }
  .why-grid   { grid-template-columns: 1fr; }
  .sold-grid  { grid-template-columns: 1fr; }
  .hero-title { font-size: 44px; }
  .stats-bar-inner { grid-template-columns: repeat(3, 1fr); }
  .stat-num { font-size: 24px; }
  .stat-label { font-size: 9px; }

  .gb-tracker-stats { grid-template-columns: repeat(3, 1fr); }
  .gb-tracker-num { font-size: 22px; }
  .gb-tracker-lbl { font-size: 9px; }
}

/* ── TOUCH TARGETS — all interactive elements >= 44px ──────── */
@media (max-width: 768px) {
  a, button, input, select, textarea, .cat-pill, .tab-btn, .page-btn, .part-card, .gb-card {
    -webkit-tap-highlight-color: transparent;
  }
  .btn { min-height: 48px; }
  .form-control { min-height: 48px; font-size: 16px; } /* prevent zoom on iOS */
  select.form-control { font-size: 16px; }
}

/* ── NAV SIGN IN — collapse divider on mobile ───────────────── */
@media (max-width: 768px) {
  .nav-link--auth {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
  }
}

/* error-page mobile rules live in style.css with the rest of the block */
