* { margin: 0; padding: 0; box-sizing: border-box; }

/* =========================================================================
   Shared design tokens (inherited by landing + wizards + admin)
   ========================================================================= */
body {
  --bg: #f8f5f0;
  --surface: #ffffff;
  --surface-alt: #f3efe8;
  --ink: #1a1410;
  --ink-2: #5f5953;
  --ink-3: #9a928a;
  --separator: #ebe5dc;
  --hairline: rgba(26, 20, 16, 0.08);
  --accent: #a8421c;
  --accent-soft: #f4e8dd;
  --success: #15803d;
  --success-soft: #dcf4e2;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --error: #b91c1c;
  --error-soft: #fee2e2;
  --info: #0369a1;
  --info-soft: #e0f2fe;
  --violet: #6d28d9;
  --violet-soft: #ede9fe;

  --radius-card: 16px;
  --radius-sm: 10px;
  --radius-chip: 999px;

  --font: "Inter", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont,
          "Segoe UI", "PingFang SC", "Helvetica Neue", Arial, sans-serif;

  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01", "ss03";
}

/* ECU Unlock wizard — dense service list (2-col grid, compact cards) */
.ecu-services {
  max-width: 880px;
  margin: 0 auto;
}
.ecu-section + .ecu-section { margin-top: 22px; }
.ecu-section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  padding-left: 2px;
}
.ecu-section-count {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-3);
  text-transform: none;
  letter-spacing: 0.3px;
}
.ecu-section-cards {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}
.ecu-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 13px 15px 12px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s;
}
.ecu-card:hover {
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 1px 2px rgba(26, 20, 16, 0.04), 0 4px 14px rgba(26, 20, 16, 0.05);
}
.ecu-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.ecu-card-row1 {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.ecu-card-name {
  flex: 1;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--ink);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ecu-card-type {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.1px;
}
.ecu-card-type.onsite {
  background: var(--accent-soft);
  color: var(--accent);
}
.ecu-card-type.dropoff {
  background: var(--success-soft);
  color: var(--success);
}
.ecu-card-desc {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.35;
  letter-spacing: -0.05px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 32px;
}
.ecu-card-row3 {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 2px;
}
.ecu-card-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.ecu-card-meta {
  font-size: 11.5px;
  color: var(--ink-3);
  flex: 1;
  font-weight: 500;
}
.ecu-card-arrow {
  color: var(--ink-3);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}
.ecu-card:hover .ecu-card-arrow {
  color: var(--accent);
}

.ecu-service-note {
  max-width: 560px;
  margin: 0 auto 20px;
  background: var(--accent-soft);
  border: 1px solid rgba(168, 66, 28, 0.16);
  border-radius: var(--radius-card);
  padding: 18px 22px;
}

/* Indoor parking showcase — shown above the drop-off section in the ECU wizard */
.ecu-parking-banner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 1px 0 rgba(26, 20, 16, 0.02);
}
.ecu-parking-banner.hidden { display: none; }
.ecu-parking-img {
  position: relative;
  background: var(--surface-alt);
  min-height: 148px;
}
.ecu-parking-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ecu-parking-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(26, 20, 16, 0.18));
  pointer-events: none;
}
.ecu-parking-body {
  padding: 14px 18px 14px 2px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.ecu-parking-overline {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.9px;
}
.ecu-parking-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.2px;
  line-height: 1.3;
}
.ecu-parking-desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-2);
  letter-spacing: -0.05px;
}
.ecu-parking-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.ecu-parking-tag {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface-alt);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-chip);
  padding: 3px 9px;
  letter-spacing: 0.2px;
}
@media (max-width: 640px) {
  .ecu-parking-banner {
    grid-template-columns: 1fr;
  }
  .ecu-parking-img { min-height: 160px; }
  .ecu-parking-body { padding: 14px 16px 16px; }
}
.ecu-note-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}
.ecu-note-body {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-line;
  letter-spacing: -0.05px;
}

.ecu-date-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 24px;
}
.ecu-date-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}
.ecu-date-input {
  width: 100%;
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--separator);
  border-radius: var(--radius-sm);
  background: var(--bg);
  letter-spacing: -0.3px;
  box-sizing: border-box;
}
.ecu-date-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.ecu-date-note {
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 10px;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .ecu-section-cards { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ecu-card { padding: 12px 14px; gap: 4px; }
  .ecu-card-name { font-size: 14px; }
  .ecu-card-price { font-size: 15px; }
  .ecu-date-card { padding: 20px; }
  .ecu-date-input { font-size: 18px; padding: 10px 12px; }
}

/* Wizard top-bar — brand mark doubles as "back to home" */
.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2px 0 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}
.wizard-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.1px;
  padding: 6px 10px 6px 6px;
  margin-left: -6px;
  border-radius: 8px;
  transition: background 0.12s, transform 0.12s;
}
.wizard-home:hover {
  background: var(--surface);
}
.wizard-home:active {
  transform: translateX(-2px);
}
.wizard-home svg {
  color: var(--ink-3);
  flex-shrink: 0;
}
.wizard-home:hover svg {
  color: var(--ink);
}
.wizard-nav-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.wizard-nav-name {
  white-space: nowrap;
}
@media (max-width: 480px) {
  .wizard-nav { padding: 0 0 12px; margin-bottom: 14px; }
  .wizard-home { font-size: 14px; padding: 6px 8px 6px 6px; }
  .wizard-nav-mark { width: 24px; height: 24px; font-size: 13px; }
}

/* Step container */
.step { display: none; }
.step.active { display: block; }

/* Typography */
.step-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 20px;
  color: var(--ink);
}
.step-subtitle {
  text-align: center;
  color: var(--ink-2);
  font-size: 14px;
  margin-bottom: 28px;
  letter-spacing: -0.05px;
}
.label-sm {
  color: var(--ink-3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: var(--radius-sm);
  letter-spacing: -0.1px;
  cursor: pointer;
  border: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 20, 16, 0.12);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-green {
  display: inline-block;
  background: var(--success);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: var(--radius-sm);
  letter-spacing: -0.1px;
  cursor: pointer;
  border: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-green:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.24);
}
.btn-green:active { transform: translateY(0); }

.btn-back {
  display: inline-block;
  background: none;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  cursor: pointer;
  border: none;
  letter-spacing: -0.1px;
  transition: color 0.12s;
}
.btn-back:hover { color: var(--ink); }

/* Step 1: Size input */
.size-selector {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.size-box {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  min-width: 120px;
  text-align: center;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.size-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.size-box .label-sm { margin-bottom: 4px; display: block; }
.size-box select {
  font-family: inherit;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  border: none;
  background: none;
  text-align: center;
  width: 100%;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  color: var(--ink);
}
.size-separator {
  font-size: 32px;
  font-weight: 300;
  color: var(--ink-3);
  align-self: center;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  color: var(--ink-2);
  font-size: 14px;
}
.toggle {
  width: 42px;
  height: 24px;
  background: var(--separator);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle.active { background: var(--ink); }
.toggle .knob {
  width: 18px;
  height: 18px;
  background: var(--surface);
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: left 0.2s;
  box-shadow: 0 1px 3px rgba(26, 20, 16, 0.15);
}
.toggle.active .knob { left: 21px; }

/* Step 2: Season cards */
.season-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 680px;
  margin: 0 auto;
}
.season-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s;
}
.season-card:hover {
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(26, 20, 16, 0.04), 0 8px 24px rgba(26, 20, 16, 0.06);
}
.season-card .icon { font-size: 40px; margin-bottom: 6px; }
.season-card .name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--ink);
}
.season-card .count {
  font-size: 14px;
  font-weight: 600;
  color: var(--success);
  margin-top: 4px;
}

/* Step 3: Layout */
.browse-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 24px;
}
.tire-list { flex: 1; min-width: 0; }

/* Sidebar filters */
.filter-group { margin-bottom: 22px; }
.filter-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}
.filter-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  cursor: pointer;
  background: var(--surface);
  color: var(--ink-2);
  margin-bottom: 6px;
  transition: all 0.12s;
  letter-spacing: -0.05px;
}
.filter-chip:hover { border-color: var(--ink-3); color: var(--ink); }
.filter-chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.filter-chip .count { font-size: 12px; opacity: 0.55; font-weight: 500; }
.sort-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  cursor: pointer;
  background: var(--surface);
  color: var(--ink-2);
  margin-bottom: 6px;
  width: 100%;
  transition: all 0.12s;
  letter-spacing: -0.05px;
}
.sort-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.sort-btn.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

/* Tire card */
.tire-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.tire-card:hover {
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(26, 20, 16, 0.04), 0 8px 24px rgba(26, 20, 16, 0.06);
}
.tire-card.oos { opacity: 0.4; pointer-events: none; }
.tire-img {
  width: 104px;
  height: 104px;
  background: var(--surface-alt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.tire-img img { max-width: 95%; max-height: 95%; object-fit: contain; }
.tire-img { flex-shrink: 0; }
.tire-info { flex: 1; min-width: 0; }
.tire-brand-logo { height: 20px; object-fit: contain; margin-bottom: 4px; }
.tire-model {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--ink);
}
.tire-specs {
  color: var(--ink-2);
  font-size: 13.5px;
  margin-top: 4px;
  letter-spacing: -0.05px;
}
.tire-sku { color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.tire-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tire-price-col { text-align: right; min-width: 140px; flex-shrink: 0; }
.tire-price {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.tire-price.green { color: var(--success); }
.tire-price.yellow { color: var(--warn); }
.tire-price.grey { color: var(--ink-3); }
.tire-price-label {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 3px;
  font-weight: 500;
}

/* Tags — soft tonal chips */
.tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1.4;
}
.tag-category { background: var(--violet-soft); color: var(--violet); }
.tag-homologation { background: var(--info-soft); color: var(--info); }
.tag-none { background: var(--hairline); color: var(--ink-3); }
.tag-speed { background: var(--accent-soft); color: var(--accent); }
.tag-rf { background: var(--success-soft); color: var(--success); }

/* Promo badge */
.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--warn-soft);
  border-radius: 8px;
  padding: 6px 10px;
  margin-top: 8px;
}
.promo-text { color: var(--warn); font-size: 13px; font-weight: 600; letter-spacing: -0.05px; }
.promo-dates { color: var(--warn); opacity: 0.75; font-size: 11.5px; }

/* Stock rows */
.stock-section { margin-top: 12px; }
.stock-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
  justify-content: flex-end;
  font-size: 12px;
  color: var(--ink-2);
}
.stock-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Step 4: Quote */
.quote-box {
  max-width: 540px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 24px 28px;
}
.quote-line {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--separator);
  align-items: baseline;
}
.quote-line:first-child { padding-top: 4px; }
.quote-line .label {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.1px;
}
.quote-line .value {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.1px;
}
.quote-total {
  display: flex;
  justify-content: space-between;
  padding: 18px 0 4px;
  margin-top: 6px;
  border-top: 2px solid var(--ink);
  align-items: baseline;
}
.quote-total .label {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.quote-total .value {
  font-size: 32px;
  font-weight: 700;
  color: var(--success);
  letter-spacing: -0.8px;
}

/* Quantity selector */
.qty-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
.qty-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--surface);
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: border-color 0.12s, background 0.12s;
}
.qty-btn:hover { border-color: var(--ink); }
.qty-btn:active { background: var(--surface-alt); }
.qty-value {
  font-size: 24px;
  font-weight: 700;
  min-width: 36px;
  text-align: center;
  letter-spacing: -0.3px;
}

/* Loading */
.loading {
  text-align: center;
  padding: 60px;
  color: var(--ink-3);
  font-size: 15px;
}
.loading::after {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  margin: 16px auto;
  border: 3px solid var(--hairline);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Admin page */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 640px;
  margin: 0 auto;
}
.admin-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 20px 18px;
  text-align: center;
}
.admin-card .label-sm { margin-bottom: 10px; }
.admin-card input {
  font-family: inherit;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-align: center;
  border: none;
  border-bottom: 1px solid var(--separator);
  width: 100%;
  padding: 6px 0;
  color: var(--ink);
  background: transparent;
  transition: border-color 0.15s;
}
.admin-card input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

/* Mobile filter toggle */
.mobile-filter-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-bottom: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
}
.mobile-filter-toggle:active { background: var(--surface-alt); }
.mobile-filter-body {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 14px;
  background: var(--surface);
}

/* Touch targets */
@media (pointer: coarse) {
  .filter-chip, .sort-btn { min-height: 40px; }
  .toggle { width: 48px; height: 28px; }
  .toggle .knob { width: 22px; height: 22px; top: 3px; left: 3px; }
  .toggle.active .knob { left: 23px; }
  .qty-btn { width: 44px; height: 44px; font-size: 22px; }
  .btn-back { padding: 10px 14px; font-size: 15px; }
}

/* Tablet */
@media (max-width: 768px) {
  body { padding: 20px 16px; }

  .step-title { font-size: 24px; margin-bottom: 14px; letter-spacing: -0.4px; }
  .step-subtitle { font-size: 14px; margin-bottom: 20px; }

  .size-selector { gap: 6px; }
  .size-box { padding: 12px 14px; min-width: 92px; }
  .size-box select { font-size: 24px; }
  .size-separator { font-size: 26px; }

  .season-grid { gap: 10px; }
  .season-card { padding: 22px 16px; }
  .season-card .icon { font-size: 34px; }
  .season-card .name { font-size: 18px; }
  .season-card .count { font-size: 13px; }

  .browse-layout { flex-direction: column; gap: 14px; }
  .sidebar { width: 100%; position: static; }

  .filter-group { margin-bottom: 14px; }

  .tire-card { padding: 14px; gap: 12px; flex-wrap: wrap; }
  .tire-img { width: 80px; height: 80px; }
  .tire-info { min-width: 0; }
  .tire-model { font-size: 17px; }
  .tire-specs { font-size: 13px; }
  .tire-tags { gap: 4px; }
  .tag { font-size: 10px; padding: 2px 6px; }
  .tire-price-col {
    text-align: left;
    min-width: auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
  }
  .tire-price { font-size: 22px; }
  .stock-section { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 0; }
  .stock-row { justify-content: flex-start; margin-top: 0; }

  .promo-badge { padding: 4px 10px; }
  .promo-text { font-size: 12.5px; }
  .promo-dates { font-size: 11px; }

  .quote-box { padding: 20px; }
  .quote-line .label { font-size: 14px; }
  .quote-line .value { font-size: 14px; }
  .quote-total .label { font-size: 17px; }
  .quote-total .value { font-size: 26px; }

  .btn-primary, .btn-green {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-size: 15px;
  }

  .admin-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .admin-card input { font-size: 22px; }
}

/* Phone */
@media (max-width: 480px) {
  body { padding: 16px 12px; }

  .step-title { font-size: 20px; }

  .size-selector { gap: 4px; }
  .size-box { padding: 10px 8px; min-width: 72px; border-radius: 8px; }
  .size-box select { font-size: 20px; }
  .size-box .label-sm { font-size: 10px; letter-spacing: 0.6px; }
  .size-separator { font-size: 22px; }
  .toggle-row span { font-size: 13px; }

  .season-grid { grid-template-columns: 1fr; gap: 8px; }
  .season-card {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
  }
  .season-card .icon { font-size: 28px; margin-bottom: 0; }
  .season-card .name { font-size: 17px; }
  .season-card .count { font-size: 13px; margin-top: 0; }

  .tire-card { flex-direction: column; padding: 14px; }
  .tire-img { width: 100%; height: 140px; border-radius: 8px; }
  .tire-model { font-size: 16px; }
  .tire-specs { font-size: 12px; }
  .tire-sku { font-size: 11px; }
  .tire-price { font-size: 22px; }
  .tire-price-label { font-size: 12px; }

  .quote-box { padding: 16px; }
  .quote-line { padding: 9px 0; }
  .quote-line .label { font-size: 13px; }
  .quote-line .value { font-size: 13px; }
  .quote-total .label { font-size: 15px; }
  .quote-total .value { font-size: 22px; }
  .qty-value { font-size: 22px; }

  .admin-grid { grid-template-columns: 1fr; }
  .admin-card input { font-size: 20px; }
}
/* =========================================================================
   Landing — hybrid (Inter + warm neutral + grouped list)
   Calm web-native aesthetic between MD3 warmth and iOS restraint
   ========================================================================= */

body.landing-page {
  /* palette — warm neutral with rust accent */
  --bg: #f8f5f0;
  --surface: #ffffff;
  --ink: #1a1410;
  --ink-2: #5f5953;
  --ink-3: #9a928a;
  --separator: #ebe5dc;
  --hairline: rgba(26, 20, 16, 0.08);
  --accent: #a8421c;
  --accent-soft: #f4e8dd;
  --success: #15803d;
  --success-soft: #dcf4e2;

  --radius-card: 16px;
  --radius-chip: 999px;
  --radius-icon: 10px;

  --font: "Inter", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  padding: 0;
  max-width: none;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01", "ss03";
}

/* Nav — simple, no frosted glass */
.nav {
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.5px;
}
.nav-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: var(--ink);
}

/* Main */
.main {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 48px;
}

/* Hero */
.hero {
  padding: 0 4px 36px;
}
.hero-title {
  font-size: clamp(30px, 4.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 12px;
}
.hero-sub {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 540px;
  letter-spacing: -0.1px;
}

/* Section */
.section {
  margin-top: 36px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px;
  margin-bottom: 14px;
}
.section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-chip);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.1px;
  line-height: 1;
  white-space: nowrap;
}
.badge-live {
  background: var(--success-soft);
  color: var(--success);
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}
.badge-soon {
  background: var(--hairline);
  color: var(--ink-2);
  font-weight: 500;
}

/* Tire cards */
.tire-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.tire-option {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 24px;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 196px;
  border: 1px solid var(--hairline);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.tire-option:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 2px rgba(26, 20, 16, 0.04),
    0 8px 24px rgba(26, 20, 16, 0.06);
  border-color: transparent;
}
.tire-option:active {
  transform: translateY(0);
}
.tire-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.tire-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 9px;
  border-radius: 6px;
  margin-bottom: 14px;
  line-height: 1;
}
.tire-title {
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 8px;
}
.tire-brands {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 20px;
  flex: 1;
  letter-spacing: -0.05px;
}
.tire-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.1px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.tire-option:hover .tire-cta {
  color: var(--accent);
  gap: 8px;
}

/* Grouped list (coming soon) */
.list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  min-height: 60px;
  position: relative;
}
.list-row + .list-row::before {
  content: "";
  position: absolute;
  left: 64px;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--separator);
}
.list-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-icon);
  background: #f3efe8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.list-text {
  flex: 1;
  min-width: 0;
}
.list-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 3px;
  letter-spacing: -0.15px;
}
.list-desc {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.35;
  letter-spacing: -0.05px;
}

/* Footer */
.footer {
  max-width: 820px;
  margin: 56px auto 0;
  padding: 24px 24px 32px;
  border-top: 1px solid var(--hairline);
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
  letter-spacing: -0.05px;
}

/* Language toggle — compact rounded pill, warm neutral */
body.landing-page > div[style*="position:fixed"],
body.landing-page > div[style*="position: fixed"] {
  top: 10px !important;
  right: 24px !important;
  z-index: 30 !important;
  background: var(--surface) !important;
  border: 1px solid var(--hairline) !important;
  border-radius: 999px !important;
  padding: 3px !important;
  display: inline-flex !important;
  gap: 0 !important;
  box-shadow: none !important;
}
body.landing-page > div[style*="position:fixed"] button,
body.landing-page > div[style*="position: fixed"] button {
  font-family: var(--font) !important;
  font-weight: 500 !important;
  font-size: 12px !important;
  letter-spacing: -0.05px !important;
  padding: 4px 11px !important;
  border-radius: 999px !important;
  border: none !important;
  background: transparent !important;
  color: var(--ink-2) !important;
  cursor: pointer !important;
  transition: background 0.15s, color 0.15s !important;
}
body.landing-page > div[style*="position:fixed"] button:hover,
body.landing-page > div[style*="position: fixed"] button:hover {
  color: var(--ink) !important;
}
body.landing-page > div[style*="position:fixed"] button[style*="background: rgb(17, 17, 17)"],
body.landing-page > div[style*="position: fixed"] button[style*="background: rgb(17, 17, 17)"],
body.landing-page > div[style*="position:fixed"] button[style*="background:#111"],
body.landing-page > div[style*="position: fixed"] button[style*="background:#111"] {
  background: var(--ink) !important;
  color: var(--bg) !important;
  box-shadow: none !important;
}

/* Responsive */
@media (max-width: 640px) {
  .tire-grid {
    grid-template-columns: 1fr;
  }
  .tire-option {
    min-height: 0;
    padding: 20px;
  }
  .tire-brands {
    margin-bottom: 16px;
  }
  .main {
    padding: 28px 16px 32px;
  }
  .nav-inner {
    padding: 12px 16px;
  }
  .hero-title {
    letter-spacing: -0.4px;
  }
  .list-row {
    padding: 13px 16px;
  }
}

.admin-tab {
  padding: 12px 20px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  letter-spacing: -0.1px;
  transition: color 0.12s, border-color 0.12s;
}
.admin-tab:hover { color: var(--ink-2); }
.admin-tab.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
