/* ==========================================================================
   ApexGrip™ Winter Emergency Traction Storefront Design System
   Palette: Crisp Snow #FFFFFF / Frost Slate #F8FAFC / Deep Alpine #0F172A / Safety Orange #F97316
   ========================================================================== */

:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-alt: #f1f5f9;
  --ink: #0f172a;
  --ink-muted: #475569;
  --ink-subtle: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #e11d48;
  --accent-hover: #be123c;
  --accent-soft: #fff1f2;
  --accent-border: #fda4af;
  --ok: #15803d;
  --ok-bg: #dcfce7;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --err: #b91c1c;
  --err-bg: #fee2e2;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.08);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  padding-bottom: 82px; /* Reserve room for mobile sticky ATC */
}

@media (min-width: 960px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Top Announcement Bar (Restrained, Honest — Zero Fake Expired Timers) */
.announcement-bar {
  background: var(--ink);
  color: #f8fafc;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  padding: 9px 14px;
  letter-spacing: 0.02em;
}

.announcement-bar span.highlight {
  color: #fb923c;
  font-weight: 700;
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  border: 2px solid var(--accent);
}

.main-nav {
  display: none;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
}

.main-nav a:hover,
.main-nav button.nav-link:hover {
  color: var(--ink);
}

.nav-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
}

@media (min-width: 820px) {
  .main-nav {
    display: flex;
    align-items: center;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sandbox-pill {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  transition: all 0.15s ease;
}

.sandbox-pill.active {
  background: var(--warn-bg);
  border-color: #f59e0b;
  color: var(--warn);
  border-style: solid;
}

.cart-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ink);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 700;
}

.cart-badge {
  background: var(--accent);
  color: #ffffff;
  font-size: 11px;
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* Price TBD Pill Styling */
.tbd-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 6px;
  background: var(--surface-alt);
  border: 1px dashed #94a3b8;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Main Product Hero Grid */
.pdp-section {
  padding: 28px 0 52px;
}

.pdp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 960px) {
  .pdp-grid {
    grid-template-columns: 1.06fr 0.94fr;
    gap: 44px;
  }
  .gallery-col {
    position: sticky;
    top: 86px;
  }
}

.main-stage {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.main-stage img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.stage-caption {
  padding: 10px 16px;
  font-size: 12.5px;
  color: var(--ink-muted);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.thumb-btn {
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--surface);
  transition: border-color 0.15s ease;
}

.thumb-btn.active {
  border-color: var(--accent);
}

.thumb-btn img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Feature Story Z-Grid */
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 820px) {
  .story-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.story-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.story-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.story-card-body {
  padding: 20px 22px;
}

/* Buy Box Column */
.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.pill-eyebrow {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border: 1px solid var(--accent-border);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rating-inline {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

.stars {
  color: #f59e0b;
  letter-spacing: 1px;
}

.pdp-title {
  font-size: clamp(24px, 3vw, 31px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.pdp-subtitle {
  font-size: 14.5px;
  color: var(--ink-muted);
  margin: 0 0 18px;
}

.price-header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.live-price-big {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
}

.compare-price {
  font-size: 15px;
  color: var(--ink-subtle);
  text-decoration: line-through;
}

.save-pill {
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.bnpl-hint {
  width: 100%;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 4px;
}

/* Interactive 2-Step Wheel-Fit Checker */
.fit-checker-card {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.fit-checker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.fit-checker-title {
  font-size: 13.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fit-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fit-btn {
  padding: 9px 11px;
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  background: #ffffff;
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.15s ease;
}

.fit-btn.selected-ok {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #14532d;
}

.fit-btn.selected-no {
  border-color: #dc2626;
  background: #fef2f2;
  color: #7f1d1d;
}

.fit-feedback {
  margin-top: 9px;
  font-size: 12.5px;
  padding: 8px 10px;
  border-radius: 8px;
}

/* Tier Bundle Cards */
.section-label {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 9px;
}

.tier-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.tier-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.tier-card:hover {
  border-color: var(--border-strong);
}

.tier-card.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.tier-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tier-radio-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.radio-dot {
  width: 19px;
  height: 19px;
  border-radius: 999px;
  border: 2px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  flex-shrink: 0;
  background: #fff;
}

.tier-card.active .radio-dot {
  border-color: var(--accent);
}

.tier-card.active .radio-dot::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
}

.tier-name {
  font-weight: 800;
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.tier-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  letter-spacing: 0.04em;
}

.tier-card.active .tier-badge {
  background: var(--accent);
}

.tier-sub {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 3px;
}

.tier-price-col {
  text-align: right;
  flex-shrink: 0;
}

.tier-bonuses {
  margin: 10px 0 0 29px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px dashed var(--accent-border);
  border-radius: 9px;
  list-style: none;
}

.tier-bonuses li {
  font-size: 12px;
  font-weight: 600;
  color: #9a3412;
  padding: 2px 0;
}

/* Primary CTA Button */
.primary-atc-btn {
  width: 100%;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.28);
  transition: background 0.15s ease, transform 0.1s ease;
}

.primary-atc-btn:hover {
  background: var(--accent-hover);
}

.primary-atc-btn:active {
  transform: scale(0.99);
}

/* Cross-Sell Add-On Box on PDP */
.cross-sell-box {
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cross-sell-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cross-sell-info img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.secondary-btn {
  background: #ffffff;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 999px;
  white-space: nowrap;
}

.secondary-btn:hover {
  background: var(--ink);
  color: #ffffff;
}

/* Trust 4-Grid */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.trust-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}

/* Content Sections Below Fold */
.content-band {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.content-band.alt {
  background: var(--surface);
}

.band-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 34px;
}

.band-header h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  margin: 6px 0 10px;
  letter-spacing: -0.02em;
}

.band-header p {
  color: var(--ink-muted);
  font-size: 15px;
  margin: 0;
}

/* Tow Bill vs Steel Chains vs ApexGrip Comparison Table */
.compare-table-wrap {
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  font-weight: 700;
}

.compare-table th.featured-col,
.compare-table td.featured-col {
  background: var(--accent-soft);
  font-weight: 700;
}

/* Reviews Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.review-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

/* FAQ Accordion */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 18px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-body {
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--ink-muted);
}

/* Slide-Out Cart Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 60;
  display: none;
}

.drawer-backdrop.open {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 100vw);
  background: #ffffff;
  z-index: 70;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.22s ease;
  box-shadow: -8px 0 30px rgba(15, 23, 42, 0.16);
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.drawer-foot {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* Modal (Policies / Financial Sandbox / Checkout Preview) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: var(--shadow-md);
}

/* Mobile Sticky Bottom ATC Bar */
.mobile-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--border);
  padding: 10px 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (min-width: 960px) {
  .mobile-sticky-bar {
    display: none;
  }
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 48px 0 36px;
  font-size: 13.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.site-footer h4 {
  color: #ffffff;
  margin: 0 0 12px;
  font-size: 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links button {
  background: none;
  border: none;
  padding: 0;
  color: #cbd5e1;
  font-size: 13.5px;
  text-align: left;
}

.footer-links button:hover {
  color: #ffffff;
  text-decoration: underline;
}
