:root {
  --navy: #1a3768;
  --bh-blue: #1a3768;
  --bh-white: #ffffff;

  --blue-mid: #335f9f;
  --blue-accent: #7c9abf;
  --border: #d8dee8;
  --gray: #54565b;

  --pm-chocolate: #321d10;
  --pm-vanilla: #e7d6c2;
  --pa-mocha: #d5b49e;
  --pa-vanilla: #e1d2c6;
  --pa-mixed-berry: #aa4499;
  --pa-spicy-chili-mango: #f36d21;
  --pa-chocolate: #743e2a;
  --pa-strawberry: #d7292e;
  --electrolytes: #7c9abf;
  --el-watermelon: #e82176;
  --el-orange: #f78d2b;
  --el-passion-fruit: #ffc60a;
  --pa-el-lemon-lime: #eadc16;
  --body-calm: #4e748b;
  --sleep: #141d29;
  --probiotic: #335f9f;
  --metal-free: #54565b;
  --greens: #104633;
  --gut-restore: #48773c;
  --reds: #601621;
  --cardiovascular: #9a3f4e;
  --mocha-chip-bar: #5f4b3d;
  --brownie-bar: #8b542f;
  --blondie-bar: #c7893c;
}

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

  body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--blue-pale);
    color: var(--text);
    min-height: 100vh;
  }

header {
  background: var(--navy);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--blue-accent);
}

.site-logo {
  display: block;
  width: 180px;
  max-width: 45vw;
  height: auto;
}

.header-sub {
  font-size: 14px;
  color: #ffffff;
  margin-left: auto;
}

  .container {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px 80px;
  }

  /* ── Intro Screen ── */
  .intro {
    background: var(--white);
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(10,30,60,0.08);
    border-top: 4px solid var(--blue-accent);
  }

  .intro h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 16px;
    line-height: 1.3;
  }

  .intro p {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 12px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .intro .stats {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin: 32px 0;
    flex-wrap: wrap;
  }

  .stat {
    background: var(--blue-pale);
    border: 1px solid var(--blue-light);
    border-radius: 12px;
    padding: 16px 24px;
    min-width: 120px;
  }

  .stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--blue-accent);
    display: block;
  }

  .stat-label {
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .disclaimer {
    font-size: 12px;
    color: var(--gray);
    background: var(--blue-pale);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 24px;
    text-align: left;
    line-height: 1.6;
  }

  /* ── Progress ── */
  .progress-wrap {
    margin-bottom: 32px;
  }

  .progress-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--gray);
  }

  .progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
  }

  .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue-mid), var(--blue-accent));
    border-radius: 99px;
    transition: width 0.4s ease;
  }

  /* ── Question Card ── */
  .question-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(10,30,60,0.08);
    border-top: 4px solid var(--blue-accent);
    animation: fadeUp 0.3s ease;
  }

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

  .question-category {
    font-size: 11px;
    font-weight: 700;
    color: var(--blue-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
  }

  .question-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 8px;
  }

  .question-hint {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 28px;
    line-height: 1.5;
  }

  /* ── Answer Options ── */
  .options { display: flex; flex-direction: column; gap: 12px; }

  .option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: var(--white);
    text-align: left;
    width: 100%;
    font-size: 15px;
    color: var(--text);
  }

  .option:hover {
    border-color: var(--blue-accent);
    background: var(--blue-pale);
  }

  .option.selected {
    border-color: var(--blue-mid);
    background: var(--blue-light);
    color: var(--navy);
    font-weight: 600;
  }

  .option-letter {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--blue-pale);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue-mid);
    flex-shrink: 0;
    transition: all 0.15s;
  }

  .option.selected .option-letter {
    background: var(--blue-mid);
    border-color: var(--blue-mid);
    color: white;
  }

  /* ── Scale Input ── */
  .scale-wrap { padding: 8px 0; }

  .scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 12px;
  }

  input[type=range] {
    width: 100%;
    height: 6px;
    accent-color: var(--blue-accent);
    cursor: pointer;
  }

  .scale-value {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: var(--blue-accent);
    margin-top: 12px;
  }

  /* ── Navigation ── */
  .nav {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    justify-content: flex-end;
  }

  .btn {
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
  }

  .btn-primary {
    background: var(--navy);
    color: white;
  }

  .btn-primary:hover { background: var(--blue-mid); transform: translateY(-1px); }
  .btn-primary:disabled { background: var(--border); color: var(--gray); cursor: not-allowed; transform: none; }

  .btn-secondary {
    background: transparent;
    color: var(--gray);
    border: 2px solid var(--border);
  }

  .btn-secondary:hover { border-color: var(--blue-accent); color: var(--blue-mid); }

  .btn-start {
    background: var(--blue-accent);
    color: white;
    font-size: 17px;
    padding: 18px 48px;
    border-radius: 12px;
    margin-top: 32px;
  }

  .btn-start:hover { background: var(--blue-mid); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(74,127,193,0.3); }

  /* ── Results ── */
  .results { animation: fadeUp 0.4s ease; }

  .results-header {
    background: var(--navy);
    border-radius: 16px;
    padding: 36px 40px;
    color: white;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
  }

  .results-header::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 200px; height: 200px;
    background: rgba(74,127,193,0.15);
    border-radius: 50%;
  }

  .results-header h2 {
    font-size: 13px;
    font-weight: 700;
    color: var(--blue-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
  }

  .profile-name {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
  }

  .profile-desc {
    font-size: 15px;
    color: #A8C4E8;
    line-height: 1.7;
    max-width: 560px;
  }

  .profile-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
  }

  .profile-tag {
    background: rgba(74,127,193,0.2);
    border: 1px solid rgba(74,127,193,0.4);
    color: #A8C4E8;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 99px;
  }

  .section-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(10,30,60,0.06);
    border-left: 4px solid var(--blue-accent);
  }

  .section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--blue-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .section-icon {
    width: 28px;
    height: 28px;
    background: var(--blue-pale);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
  }

  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
  }

  .product-card {
    background: var(--blue-pale);
    border: 1px solid var(--blue-light);
    border-radius: 12px;
    padding: 18px;
  }

  .product-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
  }

  .product-reason {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 10px;
  }

  .product-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--blue-accent);
    background: white;
    border: 1px solid var(--blue-light);
    padding: 3px 10px;
    border-radius: 99px;
  }

  .rec-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }

  .rec-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 15px;
    color: var(--text);
    line-height: 1.5;
  }

  .rec-dot {
    width: 8px;
    height: 8px;
    background: var(--blue-accent);
    border-radius: 50%;
    margin-top: 7px;
    flex-shrink: 0;
  }

  .action-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .action-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--blue-pale);
    border-radius: 12px;
    padding: 16px;
  }

  .step-num {
    width: 32px;
    height: 32px;
    background: var(--navy);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
  }

  .step-content strong {
    display: block;
    font-size: 15px;
    color: var(--navy);
    margin-bottom: 4px;
  }

  .step-content p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
  }

  .results-disclaimer {
    background: var(--blue-pale);
    border: 1px solid var(--blue-light);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 13px;
    color: var(--gray);
    line-height: 1.6;
    margin-top: 8px;
  }

  .restart-wrap {
    text-align: center;
    margin-top: 32px;
  }

  .btn-restart {
    background: transparent;
    border: 2px solid var(--blue-mid);
    color: var(--blue-mid);
    font-size: 15px;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
  }

  .btn-restart:hover { background: var(--blue-mid); color: white; }

/* ── Enhanced product result cards ── */
.product-grid .product-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.product-image {
  width: 100%;
  max-width: 180px;
  height: 180px;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
}

.product-content h3 {
  font-size: 16px;
  color: var(--navy);
  margin: 8px 0 6px;
}

.product-content p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.45;
}

.product-price {
  font-weight: 700;
  color: var(--navy);
  margin-top: 8px;
}

.product-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.product-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-size: 13px;
  text-decoration: none;
}

.collection-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.collection-links a {
  background: var(--blue-pale);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  text-decoration: none;
}

.collection-links a:hover {
  border-color: var(--blue-accent);
}

@media (max-width: 600px) {
  header {
    padding: 14px 18px;
  }

  .site-logo {
    width: 150px;
  }

  .header-sub {
    font-size: 12px;
  }

  .container { padding: 24px 16px 60px; }
  .question-card, .intro { padding: 28px 20px; }
  .intro h1 { font-size: 22px; }
  .question-text { font-size: 17px; }
  .results-header { padding: 28px 24px; }
  .profile-name { font-size: 22px; }
  .section-card { padding: 24px 20px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-image { max-width: 160px; height: 160px; }
}
/* ── Product Card Enhancements (SAFE ADD-ON) ── */

.product-grid .product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 20px 16px;
  transition: all 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(10,30,60,0.12);
}

.product-image {
  width: 100%;
  max-width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 4px;
}

.product-content h3 {
  font-size: 15px;
  color: var(--navy);
  margin: 4px 0 2px;
}

.product-content p {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.4;
  margin-bottom: 6px;
}

.product-price {
  font-weight: 700;
  color: var(--navy);
  margin-top: 4px;
}

.product-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  justify-content: center;
}

.product-actions .btn {
  padding: 8px 12px;
  font-size: 12px;
}

.collection-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  justify-content: center;
}

.collection-links a {
  background: var(--blue-pale);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  text-decoration: none;
}

.collection-links a:hover {
  border-color: var(--blue-accent);
}

/* Mobile tweak */
@media (max-width: 600px) {
  .product-image {
    max-width: 140px;
    height: 140px;
  }
}
