/* Apparel shop + hero truck art. */

:root { --preview-banner-h: 0rem; }
@media (max-width: 800px) {
  :root { --preview-banner-h: 0rem; }
}


.preview-banner {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: var(--gold-400);
  color: var(--navy-950);
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  padding: 0.45rem 1rem;
  line-height: 1.35;
}
.preview-banner strong { font-weight: 800; }
.site-header { top: var(--preview-banner-h, 2.15rem); }
html { scroll-padding-top: calc(var(--header-h) + var(--preview-banner-h, 2.15rem) + 0.75rem); }
@media (max-width: 800px) {
  .nav { inset: calc(var(--header-h) + var(--preview-banner-h, 2.15rem)) 0 auto 0; }
  .emergency-panel.mobile-sheet {
    top: calc(var(--header-h) + var(--preview-banner-h, 2.15rem) + 0.5rem);
  }
}

/* Hero: truck and pumps sit on a navy floor, blended into the backdrop */
.hero {
  background:
    linear-gradient(180deg, transparent 52%, rgba(16, 28, 48, 0.22) 78%, rgba(10, 16, 28, 0.5) 100%),
    linear-gradient(90deg, rgba(5, 8, 15, 0.96) 0%, rgba(5, 8, 15, 0.86) 34%, rgba(5, 8, 15, 0.3) 62%, rgba(5, 8, 15, 0.1) 100%),
    #05080f;
  padding-bottom: 6.25rem;
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero-art::before {
  /* faint warm glow behind the pumps */
  content: "";
  position: absolute;
  right: 6%;
  top: 0;
  width: 36%;
  height: 58%;
  z-index: 0;
  background: radial-gradient(ellipse at 58% 28%, rgba(252, 185, 49, 0.18), rgba(180, 50, 20, 0.06) 45%, transparent 72%);
}
.hero-art::after {
  /* soft vignette only; the art itself is transparent so the page gradient shows through */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at 78% 52%, transparent 42%, rgba(5, 8, 15, 0.12) 80%, rgba(5, 8, 15, 0.28) 100%);
}
.hero-art img {
  position: absolute;
  right: 0;
  top: 0;
  width: 62%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: right 72%;
  opacity: 1;
  filter: saturate(0.97);
  z-index: 1;
}
.hero-pattern { opacity: 0.22; z-index: 0; }
.hero-arcs {
  opacity: 0.14;
  z-index: 0;
  /* Sit in the upper-right navy, clear of the rear tire (~1300, 820) */
  right: -6%;
  top: -36%;
  width: min(44vw, 32rem);
  height: 78%;
}
.hero-inner { position: relative; z-index: 2; }

/* Keep action buttons and Grant's contact clear of the truck nose */
@media (min-width: 801px) {
  .hero-actions { max-width: 29rem; }
  .hero-locations { max-width: 22rem; }
}

@media (max-width: 800px) {
  .hero {
    display: flex;
    flex-direction: column;
    padding: 3rem 0 0;
    background:
      linear-gradient(180deg, rgba(5, 8, 15, 0.9) 0%, rgba(5, 8, 15, 0.84) 40%, rgba(5, 8, 15, 0.55) 100%),
      #05080f;
  }
  .hero-inner {
    order: 1;
    z-index: 2;
    padding-bottom: 1.5rem;
  }
  .hero-art {
    position: relative;
    inset: auto;
    order: 2;
    z-index: 1;
    width: 100%;
    height: auto;
    /* Nearly square so the full truck+pumps cluster (right of the 24:11 art) fits */
    aspect-ratio: 1 / 1;
    /* Clip any glow inside the art box, below the contact block, so a
       CSS ::before box cannot draw hard edges over the emergency numbers. */
    overflow: hidden;
    background: transparent;
  }
  .hero-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    right: auto;
    top: auto;
    object-fit: cover;
    object-position: right center;
    opacity: 1;
    filter: none;
  }
  .hero-art::before {
    /* Phone uses the baked, top-feathered glow in the WebP only.
       A CSS gradient box was visible at 5x contrast at y=2015 / x=717. */
    display: none;
  }
  .hero-art::after {
    display: none;
  }
}

/* Shop layout */
.apparel { background: var(--navy-900); }
.apparel .section-kicker { color: var(--gold-400); }
.apparel h2 { color: var(--white); }
.shop-intro {
  max-width: 40rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}
.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(20rem, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}
.shop-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}
.shop-gallery figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.shop-gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.shop-gallery figcaption {
  padding: 0.55rem 0.75rem 0.7rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.product-media {
  background: #ffffff;
  position: relative;
}
.product-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: contain;
  background: #ffffff;
  cursor: pointer;
}
.product-thumbs {
  display: flex;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem 0;
  flex-wrap: wrap;
}
.product-thumbs button {
  width: 3.1rem;
  height: 3.1rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.4rem;
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
}
.product-thumbs button[aria-pressed="true"],
.product-thumbs button:focus-visible {
  border-color: var(--gold-400);
}
.product-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-body { padding: 0.9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.product-cat {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-size: 0.75rem;
}
.product-body h3 {
  font-size: 1.45rem;
  margin: 0;
}
.product-body p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.product-price {
  font-weight: 700;
  color: var(--gold-300);
  font-size: 1.02rem;
}
.product-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.65rem;
  margin-top: 0.25rem;
}
.product-controls .field.full { grid-column: 1 / -1; }
.product-controls .field label { font-size: 0.8rem; color: var(--ink-soft); }
.product-controls input,
.product-controls select {
  min-height: 2.55rem;
  padding: 0.4rem 0.6rem;
}
.qty-row { display: flex; align-items: center; gap: 0.35rem; }
.qty-row button {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.14);
  background: var(--navy-950);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}
.qty-row button:hover { border-color: var(--gold-400); color: var(--gold-300); }
.qty-row input {
  width: 3.4rem;
  text-align: center;
  -moz-appearance: textfield;
}
.qty-row input::-webkit-outer-spin-button,
.qty-row input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.product-body .btn { width: 100%; margin-top: auto; }

/* Request panel */
.request-panel {
  position: sticky;
  top: calc(var(--header-h) + var(--preview-banner-h, 2.15rem) + 0.75rem);
  background: var(--surface);
  border: 1px solid var(--gold-line);
  border-radius: calc(var(--radius) + 0.15rem);
  padding: 1.25rem 1.2rem 1.3rem;
}
.request-panel h3 {
  font-size: 1.7rem;
  margin: 0 0 0.35rem;
}
.request-empty { color: var(--muted); font-size: 0.95rem; margin: 0 0 1rem; }
.request-list { display: grid; gap: 0.7rem; margin: 0 0 1rem; }
.request-item {
  display: grid;
  grid-template-columns: 3.4rem 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line-soft);
}
.request-item img {
  width: 3.4rem;
  height: 3.4rem;
  object-fit: cover;
  border-radius: 0.35rem;
  background: #080c14;
}
.request-item h4 { font-size: 1.05rem; margin: 0 0 0.15rem; font-family: var(--font); font-weight: 700; letter-spacing: 0; line-height: 1.2; }
.request-item p { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
.request-item .remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  text-decoration: underline;
  padding: 0;
}
.request-item .remove:hover { color: var(--gold-300); }
.request-panel .form-note { margin-bottom: 0.9rem; }
.request-panel .form-grid { grid-template-columns: 1fr; }
.request-panel .field input,
.request-panel .field select,
.request-panel .field textarea { background: var(--navy-950); }
.fulfill-options {
  display: grid;
  gap: 0.45rem;
}
.fulfill-options label {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}
.fulfill-options label:has(input:checked) {
  border-color: var(--gold-400);
  background: rgba(252, 185, 49, 0.08);
}
.fulfill-options input { margin-top: 0.2rem; accent-color: var(--gold-400); }
.fulfill-options small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 0.82rem; }
.ship-fields[hidden] { display: none !important; }
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cart-float {
  display: none;
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 900;
  box-shadow: var(--shadow-lg);
}
.cart-float[hidden] { display: none !important; }
.form-status.is-ok { color: #8ee0a4; }
.form-status.is-err { color: #ff8d8d; }

@media (max-width: 1024px) {
  .shop-layout,
  .product-grid,
  .shop-gallery { grid-template-columns: 1fr; }
  .request-panel { position: static; }
  .cart-float { display: inline-flex; }
}

@media (max-width: 800px) {
  .product-controls { grid-template-columns: 1fr; }
}

.request-panel .label-like {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.request-panel .ship-fields .form-grid {
  grid-template-columns: 1fr 1fr;
}

/* Longer hero line stays on one line and clear of the truck */
.hero h1 {
  max-width: min(21ch, 54%);
  font-size: clamp(2.55rem, 6.2vw, 5.35rem);
}
.hero h1 span { display: block; }
@media (max-width: 800px) {
  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 10.2vw, 2.65rem);
  }
}

/* overnight QA 2026-12-01: radios were picking up the full-width text-input styles (.field input) */
.request-panel .field .fulfill-options input[type="radio"] {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  margin: 0.2rem 0 0;
  padding: 0;
  border: 0;
  background: none;
  accent-color: var(--gold-400);
}
.fulfill-options label > span { flex: 1 1 auto; min-width: 0; }
/* thumbnails: show the whole photo (wide front+back / two-cap shots were being cropped) */
.product-thumbs img { object-fit: contain; background: #ffffff; }

/* All-apparel lineup picture above the shop grid */
.apparel-lineup {
  margin: 0 0 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffffff;
}
.apparel-lineup img {
  display: block;
  width: 100%;
  height: auto;
}
