/* ═══════════════════════════════════════════════════════════
   Kids Bike Finder — External Stylesheet
   https://kidsbikefinder.com
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #2196F3;
  --blue-dark: #1565C0;
  --blue-light: #BBDEFB;
  --orange: #FF9800;
  --orange-dark: #E65100;
  --orange-light: #FFE0B2;
  --green: #4CAF50;
  --green-dark: #2E7D32;
  --green-light: #C8E6C9;
  --red: #EF5350;
  --red-light: #FFCDD2;
  --purple: #AB47BC;
  --purple-light: #E1BEE7;
  --yellow: #FDD835;
  --yellow-light: #FFF9C4;
  --teal: #009688;
  --teal-light: #B2DFDB;
  --bg: #F0F7FF;
  --card: #FFFFFF;
  --text: #263238;
  --text-light: #546E7A;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.14);
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.35s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

h1, h2, h3, h4 { font-family: 'Fredoka', sans-serif; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 10% 20%, rgba(33, 150, 243, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 85% 60%, rgba(255, 152, 0, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(76, 175, 80, 0.06) 0%, transparent 50%);
}

/* ── Accessibility ───────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Global Site Nav ──────────────────────────────────────── */
.site-nav {
  background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
  padding: 0;
  position: relative;
  z-index: 100;
}

.site-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.site-nav-links {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
}

.site-nav-links > a {
  color: white;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 18px;
  transition: background 0.15s ease;
}

.site-nav-links > a:hover {
  background: rgba(255,255,255,0.2);
}

.site-nav .nav-dropdown {
  position: relative;
}

.site-nav .nav-dropdown-label {
  color: white;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Nunito', sans-serif;
  padding: 14px 18px;
  transition: background 0.15s ease;
  display: block;
}

.site-nav .nav-dropdown-label:hover {
  background: rgba(255,255,255,0.2);
}

.site-nav .nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  min-width: 260px;
  padding: 6px 0;
  z-index: 200;
}

/* Hover AND click both work */
.site-nav .nav-dropdown:hover .nav-dropdown-menu,
.site-nav .nav-dropdown-menu.open { display: block; }

.site-nav .nav-dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: #263238;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.site-nav .nav-dropdown-menu a:hover {
  background: #BBDEFB;
  color: #1565C0;
}

.site-nav .nav-dropdown-divider {
  border-top: 1px solid #e5e7eb;
  margin: 4px 0;
}

.site-nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
}

@media (max-width: 768px) {
  .site-nav-inner {
    justify-content: space-between;
  }
  .site-nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    background: #0D47A1;
    border-radius: 8px;
    padding: 8px 0;
    margin-top: 8px;
  }
  .site-nav-links.nav-open { display: flex; }
  .site-nav-links a,
  .site-nav .nav-dropdown-label {
    padding: 10px 16px;
    display: block;
    width: 100%;
    text-align: left;
  }
  .site-nav .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    padding: 0 0 0 16px;
    background: rgba(255,255,255,0.1);
    transform: none;
  }
  .site-nav .nav-dropdown-menu a {
    color: rgba(255,255,255,0.85);
    padding: 8px 16px;
  }
  .site-nav .nav-dropdown-menu a:hover {
    background: rgba(255,255,255,0.15);
    color: white;
  }
  .site-nav-mobile-toggle { display: block; }
}

/* ── Header ───────────────────────────────────────────────── */
.header {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: white;
  text-align: center;
  padding: 28px 20px 36px;
  position: relative;
  overflow: hidden;
}

.header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 30px;
  background: var(--bg);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.header h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header p {
  font-size: clamp(0.9rem, 2.5vw, 1.15rem);
  opacity: 0.9;
}

/* ── Header Icon ──────────────────────────────────────────── */
.header-icon {
  display: inline-block;
  margin: 12px auto 0;
  animation: bikeFloat 3s ease-in-out infinite;
  opacity: 0.9;
}

@keyframes bikeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ── Safety Banner ────────────────────────────────────────── */
.safety-banner {
  background: linear-gradient(90deg, var(--yellow-light), var(--orange-light));
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  padding: 12px 18px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  max-width: 700px;
  margin: 20px auto 0;
  color: var(--orange-dark);
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 14px 12px;
  max-width: 960px;
  margin: 0 auto;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 247, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-btn {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition-base);
  color: white;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.nav-btn:active { transform: translateY(0); }
.nav-btn.c-blue { background: var(--blue); }
.nav-btn.c-orange { background: var(--orange); }
.nav-btn.c-green { background: var(--green); }
.nav-btn.c-purple { background: var(--purple); }
.nav-btn.c-red { background: var(--red); }
.nav-btn.c-teal { background: var(--teal); }

.nav-btn.active {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15), var(--shadow);
  transform: translateY(-2px);
}

/* ── Sections ─────────────────────────────────────────────── */
.section {
  display: none;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px 40px;
  animation: fadeUp var(--transition-slow) ease;
}

.section.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition-base);
}

.card:hover { box-shadow: var(--shadow-hover); }
.card h2 { font-size: 1.5rem; margin-bottom: 14px; }
.card h3 { font-size: 1.15rem; margin: 14px 0 8px; color: var(--blue-dark); }
.card-intro { margin-bottom: 14px; line-height: 1.6; }
.card--compact { padding: 14px; }
.card--compact h3 { margin: 0 0 10px; }

/* ── Form Elements ────────────────────────────────────────── */
label {
  display: block;
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 1rem;
}

input[type="text"],
input[type="number"],
select,
textarea {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  padding: 10px 14px;
  border: 2px solid var(--blue-light);
  border-radius: var(--radius-sm);
  width: 100%;
  transition: border-color var(--transition-base);
  background: #FAFCFF;
}

textarea { resize: vertical; min-height: 80px; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { margin-bottom: 14px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 12px 24px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-blue { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.btn-orange { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); }
.btn-green { background: linear-gradient(135deg, var(--green), var(--green-dark)); }
.btn-red { background: linear-gradient(135deg, var(--red), #b71c1c); }
.btn-teal { background: linear-gradient(135deg, var(--teal), #00695C); }
.btn-purple { background: linear-gradient(135deg, var(--purple), #7B1FA2); }
.btn-sm { font-size: 0.9rem; padding: 8px 14px; }

/* ── Toggle Buttons ───────────────────────────────────────── */
.toggle-group { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

.toggle-btn {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 16px;
  border: 2px solid var(--blue-light);
  border-radius: 30px;
  background: white;
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--text);
}

.toggle-btn:hover { border-color: var(--blue); background: var(--blue-light); }
.toggle-btn.selected { background: var(--blue); color: white; border-color: var(--blue); }

/* ── Size Result & Chart ──────────────────────────────────── */
.size-result {
  display: none;
  background: linear-gradient(135deg, var(--green-light), var(--blue-light));
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 16px;
  text-align: center;
  animation: fadeUp 0.4s ease;
}

.size-result.show { display: block; }

.size-wheel {
  font-size: 3rem;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.1;
}

.size-detail { font-size: 1rem; margin-top: 6px; color: var(--text-light); }
.size-detail--method { font-style: italic; font-size: 0.85rem; }
.size-detail--growth { margin-top: 8px; font-weight: 700; color: var(--green-dark); }
.size-detail--search-btn { margin-top: 12px; }

.size-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.size-card {
  background: white;
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.25s;
}

.size-card.highlighted {
  border-color: var(--green);
  background: var(--green-light);
  transform: scale(1.05);
}

.size-card-wheel { font-family: 'Fredoka', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--blue-dark); }
.size-card-age { font-weight: 700; color: var(--text-light); margin-top: 3px; font-size: 0.9rem; }
.size-card-height { font-size: 0.82rem; color: var(--text-light); }

/* ── Listings Grid ────────────────────────────────────────── */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.listing-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.25s;
  position: relative;
}

.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.listing-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--blue-light);
  display: block;
}

.listing-img-placeholder {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, var(--blue-light), var(--green-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.listing-body { padding: 12px 14px; }

.listing-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-price { font-family: 'Fredoka', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--green-dark); }
.listing-meta { font-size: 0.82rem; color: var(--text-light); margin-top: 3px; }
.listing-actions { display: flex; gap: 6px; margin-top: 8px; }
.listing-actions .btn-sm { flex: 1; justify-content: center; text-decoration: none; }

.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  line-height: 1;
}

.fav-btn:hover { transform: scale(1.15); }
.fav-btn.saved { background: var(--red); color: white; }

/* ── Checklist ────────────────────────────────────────────── */
.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  background: white;
  border-radius: var(--radius-sm);
  border: 2px solid #e5e7eb;
  transition: all var(--transition-base);
  cursor: pointer;
}

.checklist-item:hover { border-color: var(--blue-light); }
.checklist-item.pass { border-color: var(--green); background: var(--green-light); }
.checklist-item.fail { border-color: var(--red); background: var(--red-light); }
.checklist-item.skip { border-color: var(--orange); background: var(--orange-light); }
.check-icon { font-size: 1.5rem; flex-shrink: 0; width: 32px; text-align: center; }
.check-text { flex: 1; }
.check-text strong { display: block; font-size: 1rem; }
.check-text span { font-size: 0.85rem; color: var(--text-light); }
.check-btns { display: flex; gap: 4px; flex-shrink: 0; }

.check-btns button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  background: white;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.check-btns button:hover { transform: scale(1.15); }
.check-btn--pass { color: var(--green-dark); }
.check-btn--fail { color: var(--red); }
.check-btn--skip { color: var(--orange); }

/* ── Marketplace Links ────────────────────────────────────── */
.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.mp-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: white;
  border: 2px solid #e5e7eb;
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition-base);
  font-weight: 700;
}

.mp-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--blue); }
.mp-icon { font-size: 1.5rem; width: 36px; text-align: center; flex-shrink: 0; }

/* ── Shop/Program/Trail Cards ─────────────────────────────── */
.shop-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: all var(--transition-base);
}

.shop-card:hover { transform: translateX(4px); box-shadow: var(--shadow); }

/* ── Featured Shop Placement ─────────────────────────────── */
.shop-card--featured {
  background: linear-gradient(135deg, #FFFDE7 0%, #FFF8E1 100%);
  border-left: 4px solid var(--orange);
  position: relative;
}
.shop-card--featured:hover { transform: translateX(4px); box-shadow: 0 4px 16px rgba(255, 152, 0, 0.18); }
.featured-badge {
  display: inline-block;
  background: var(--orange);
  color: white;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
  vertical-align: middle;
}
.featured-msg {
  font-size: 0.82rem;
  color: var(--orange-dark);
  font-weight: 600;
  margin-top: 4px;
}

/* ── City Selector ───────────────────────────────────────── */
.city-selector {
  margin-bottom: 16px;
}

.shop-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.shop-icon--green { background: var(--green-light); }
.shop-icon--blue { background: var(--blue-light); }
.shop-icon--purple { background: var(--purple-light); }
.shop-icon--orange { background: var(--orange-light); }
.shop-icon--yellow { background: var(--yellow-light); }

.shop-info h4 { font-family: 'Fredoka', sans-serif; font-size: 1.05rem; }
.shop-info p { font-size: 0.85rem; color: var(--text-light); margin-top: 2px; }
.shop-info a { color: var(--blue); text-decoration: none; font-weight: 700; }
.shop-info a:hover { text-decoration: underline; }
.shop-note { font-size: 0.85rem; color: var(--text-light); margin-top: 2px; }

.program-card {
  background: linear-gradient(135deg, var(--purple-light), var(--blue-light));
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
}

.program-card h4 { font-family: 'Fredoka', sans-serif; font-size: 1.1rem; color: var(--purple); }
.program-card p { margin-top: 4px; color: var(--text-light); line-height: 1.5; font-size: 0.92rem; }
.program-card a { color: var(--purple); font-weight: 700; }

.event-card {
  background: linear-gradient(135deg, var(--orange-light), var(--yellow-light));
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
}

.event-card h4 { font-family: 'Fredoka', sans-serif; font-size: 1.1rem; color: var(--orange-dark); }
.event-card p { margin-top: 4px; color: var(--text-light); line-height: 1.5; font-size: 0.92rem; }
.event-card a { color: var(--orange-dark); font-weight: 700; }

.trail-card {
  background: linear-gradient(135deg, var(--green-light), var(--teal-light));
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
}

.trail-card h4 { font-family: 'Fredoka', sans-serif; font-size: 1.1rem; color: var(--green-dark); }
.trail-card p { margin-top: 4px; color: var(--text-light); line-height: 1.5; font-size: 0.92rem; }
.trail-card a { color: var(--green-dark); font-weight: 700; }

/* ── Brand Guide ──────────────────────────────────────────── */
.brand-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.9rem; }

.brand-table th {
  background: var(--blue);
  color: white;
  padding: 10px 12px;
  text-align: left;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
}

.brand-table td { padding: 10px 12px; border-bottom: 1px solid #e5e7eb; }
.brand-table tr:hover { background: var(--blue-light); }
.brand-table td:last-child { font-size: 0.82rem; }

.tier-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
}

.tier-premium { background: #E8F5E9; color: var(--green-dark); }
.tier-mid { background: var(--blue-light); color: var(--blue-dark); }
.tier-dept { background: var(--orange-light); color: var(--orange-dark); }

/* ── Alert boxes ──────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 0.95rem;
}

.alert-info { background: var(--blue-light); color: var(--blue-dark); border: 2px solid var(--blue); }
.alert-success { background: var(--green-light); color: var(--green-dark); border: 2px solid var(--green); }
.alert-warn { background: var(--yellow-light); color: var(--orange-dark); border: 2px solid var(--orange); }
.alert-danger { background: var(--red-light); color: #b71c1c; border: 2px solid var(--red); }
.alert--lg { font-size: 1.1rem; }

/* ── Stolen/Recall Result ─────────────────────────────────── */
.result-box {
  display: none;
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 14px;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  animation: fadeUp 0.3s ease;
}

.result-box.show { display: block; }

/* ── Spinner ──────────────────────────────────────────────── */
.spinner { display: none; text-align: center; padding: 30px; }
.spinner.show { display: block; }
.spinner-text { font-weight: 700; }
.spinner-text--blue { color: var(--blue); }
.spinner-text--red { color: var(--red); }
.spinner-text--orange { color: var(--orange); }
.spinner-text--teal { color: var(--teal); }

/* ── Seasonal Tip ─────────────────────────────────────────── */
.seasonal-tip {
  background: linear-gradient(135deg, var(--yellow-light), var(--orange-light));
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
}

.seasonal-tip h4 { font-family: 'Fredoka', sans-serif; color: var(--orange-dark); margin-bottom: 4px; }
.seasonal-tip p { color: var(--text-light); font-size: 0.92rem; line-height: 1.5; }

/* ── Fav count ────────────────────────────────────────────── */
.fav-count {
  background: var(--red);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 3px;
  vertical-align: middle;
}

/* ── Condition Score ──────────────────────────────────────── */
.score-display {
  text-align: center;
  padding: 20px;
  border-radius: var(--radius);
  margin-top: 14px;
}

.score-number {
  font-family: 'Fredoka', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.score-label { font-size: 1.1rem; font-weight: 700; margin-top: 4px; }

/* ── Helmet Banner ────────────────────────────────────────── */
.helmet-banner {
  background: linear-gradient(90deg, var(--red-light), var(--orange-light));
  border: 2px solid var(--red);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 14px;
}

.helmet-banner h4 { font-family: 'Fredoka', sans-serif; color: #b71c1c; }
.helmet-banner p { font-size: 0.9rem; color: var(--text-light); margin-top: 4px; }

/* ── Divider ──────────────────────────────────────────────── */
.divider { height: 2px; background: linear-gradient(90deg, transparent, var(--blue-light), transparent); margin: 18px 0; }

/* ── Empty state ──────────────────────────────────────────── */
.empty-state { text-align: center; padding: 30px 20px; color: var(--text-light); }
.empty-state-icon { font-size: 3rem; margin-bottom: 10px; }

/* ── Sell Helper ──────────────────────────────────────────── */
.listing-preview {
  background: #f8f9fa;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 12px;
  font-family: monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
  line-height: 1.6;
}

/* ── Serial Number List ───────────────────────────────────── */
.serial-list {
  padding-left: 20px;
  line-height: 2;
}

/* ── Growth Tracker Status ────────────────────────────────── */
.growth-outgrown { color: var(--red); font-weight: 700; }
.growth-fits { color: var(--green-dark); font-weight: 700; }
.growth-room { color: var(--blue-dark); font-weight: 700; }
.growth-meta { font-size: 0.85rem; font-weight: 400; }

.remove-btn {
  background: none;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-weight: 700;
}

.remove-btn:hover { text-decoration: underline; }

/* ── Recall Detail ────────────────────────────────────────── */
.recall-desc { font-size: 0.88rem; font-weight: 400; }
.recall-link { color: var(--red); font-weight: 700; }

/* ── Details/Summary (expandable sections) ────────────────── */
details { margin-top: 12px; }
details summary {
  cursor: pointer;
  list-style: none;
  color: var(--blue-dark);
}
details summary::-webkit-details-marker { display: none; }
details summary::before { content: '+ '; font-weight: 700; }
details[open] summary::before { content: '- '; }
details[open] summary { margin-bottom: 8px; }

/* ── Utility Classes ──────────────────────────────────────── */
.hint { font-size: 0.82rem; color: var(--text-light); margin-top: 3px; }
.flex-row { display: flex; gap: 8px; align-items: flex-end; }
.flex-1 { flex: 1; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; }
.text-center { text-align: center; }
.hidden { display: none; }
.find-shops-result { margin-top: 10px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .listings-grid { grid-template-columns: 1fr; }
  .marketplace-grid { grid-template-columns: 1fr; }
  .nav { gap: 4px; padding: 10px 8px; }
  .nav-btn { font-size: 0.75rem; padding: 6px 10px; }
  .size-chart { grid-template-columns: repeat(3, 1fr); }
  .shop-card { flex-direction: column; text-align: center; }
  .shop-card--featured { border-left: none; border-top: 4px solid var(--orange); }
  .checklist-item { flex-direction: column; text-align: center; }
  .brand-table { font-size: 0.78rem; }
  .brand-table th,
  .brand-table td { padding: 8px 6px; }
}

@media (max-width: 360px) {
  .header h1 { font-size: 1.6rem; }
  .size-chart { grid-template-columns: repeat(2, 1fr); }
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 30px 20px;
  margin-top: 40px;
  text-align: center;
}

.footer-inner {
  max-width: 700px;
  margin: 0 auto;
}

.footer-brand {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.footer-sub {
  font-size: 0.9rem;
  margin-top: 4px;
}

.footer-sub a {
  color: var(--blue-light);
  text-decoration: none;
}

.footer-sub a:hover { text-decoration: underline; }

.footer-legal {
  font-size: 0.75rem;
  margin-top: 14px;
  opacity: 0.5;
  line-height: 1.5;
}

/* ── Email Banner (always visible) ────────────────────────── */
#email-banner {
  display: block;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

#email-banner .card {
  background: linear-gradient(135deg, var(--orange-light), var(--yellow-light));
  border: 2px solid var(--orange);
}

/* ── Accessibility: Focus Styles for Toggle Buttons ──────── */
.toggle-btn:focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: 2px;
}

.nav-btn:focus-visible {
  outline: 3px solid white;
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 2px;
}

.checklist-item:focus-visible,
.check-btns button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* ── Language Toggle ──────────────────────────────────────── */
.lang-toggle {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  background: transparent;
  color: white;
  cursor: pointer;
  transition: all var(--transition-base);
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
}

.lang-toggle-container {
  display: inline-flex;
  align-items: center;
}

/* ── eBay Results ─────────────────────────────────────────── */
.ebay-results-card { padding: 14px; }
.ebay-results-card h3 { margin: 0 0 10px; }
.condition-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--blue-light);
  color: var(--blue-dark);
}

/* ── Community Listings ──────────────────────────────────── */
.contact-form-inline {
  margin-top: 8px;
  padding: 10px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.contact-form-inline input,
.contact-form-inline textarea {
  margin-bottom: 6px;
  font-size: 0.85rem;
  padding: 8px 10px;
}

.contact-form-inline textarea {
  min-height: 50px;
}

/* ── Skip to Content (Accessibility) ─────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-dark);
  color: white;
  padding: 10px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 9999;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ── Print Styles ─────────────────────────────────────────── */
@media print {
  .nav, .header::after, .bike-anim { display: none; }
  body { background: white; }
  .card { box-shadow: none; border: 1px solid #e5e7eb; break-inside: avoid; }
}
