/* ============================================
   5ElemTea — Shared Stylesheet
   Multi-screen adaptive (mobile / tablet / desktop)
   ============================================ */

:root {
  --green: #4A7C59;
  --green-light: #F2F7F2;
  --green-dark: #3A6247;
  --red: #C24B3D;
  --yellow: #E8A840;
  --gold: #D4A853;
  --blue: #6366A0;
  --black: #1A1A1A;
  --dark: #2D2D2D;
  --gray: #6B7280;
  --gray-light: #9CA3AF;
  --gray-lighter: #E5E7EB;
  --off-white: #FAFAF9;
  --white: #FFFFFF;
  --accent: #c17d60;
  --accent-dark: #a86448;
  --gray-bg: #F3F4F6;

  --nav-h: 64px;

  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ RESET ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============ NAVIGATION ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-lighter);
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 101;
}

.nav-logo .elements {
  font-size: 1rem;
  letter-spacing: 2px;
  opacity: 0.7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--green);
}

.nav-links .btn-quiz {
  background: var(--green);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background var(--transition);
}

.nav-links .btn-quiz:hover {
  background: var(--green-dark);
  color: var(--white);
}

.nav-icons {
  display: flex;
  gap: 1rem;
  font-size: 1.2rem;
}

.nav-icons a {
  color: var(--dark);
  text-decoration: none;
}

.nav-cart {
  position: relative;
}

.nav-cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--red);
  color: white;
  font-size: 0.65rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 101;
  padding: 8px;
  line-height: 1;
}

/* mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.35);
}

/* ============ SECTION PADDING ============ */
.section {
  padding: 5rem 2rem;
}

.section-tight {
  padding: 3rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ============ TYPOGRAPHY ============ */
h1,
h2,
h3,
.h1,
.h2,
.h3 {
  font-family: var(--font-heading);
}

.h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.15;
  font-weight: 700;
}

.h2 {
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  line-height: 1.2;
  font-weight: 700;
}

.h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.3;
  font-weight: 600;
}

.subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--gray);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

.text-center {
  text-align: center;
}

.text-green {
  color: var(--green);
}

.text-red {
  color: var(--red);
}

.text-gold {
  color: var(--gold);
}

.text-gray {
  color: var(--gray);
}

.section-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.75rem;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

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

.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

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

.btn-white:hover {
  background: var(--gray-lighter);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
}

/* ============ HERO (Homepage) ============ */
.hero {
  min-height: min(90vh, 800px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FAFDF9 0%, #F2F7F2 40%, #FDFAF5 70%, #F7F8FC 100%);
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(74, 124, 89, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(194, 75, 61, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(99, 102, 160, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  width: 100%;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero .subtitle {
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ TRUST BAR ============ */
.trust-bar {
  background: var(--green-light);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(74, 124, 89, 0.1);
}

.trust-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green-dark);
}

.trust-bar-inner span {
  white-space: nowrap;
}

/* ============ 5 ELEMENTS GRID ============ */
.elements-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.element-card {
  background: var(--white);
  border: 1px solid var(--gray-lighter);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1rem;
  text-align: center;
  transition: all var(--transition);
}

.element-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.element-emoji {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.element-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.element-cn {
  font-size: 1rem;
  color: var(--green);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.element-tagline {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.element-desc {
  font-size: 0.82rem;
  color: var(--gray);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.element-link {
  display: inline-block;
  color: var(--green);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition);
}

.element-link:hover {
  border-color: var(--green);
}

/* ============ QUIZ SECTION ============ */
.quiz-section {
  background: var(--off-white);
}

.quiz-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem auto;
  max-width: 960px;
}

.quiz-step {
  text-align: center;
  padding: 2rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.quiz-step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 1rem;
}

.quiz-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.quiz-step p {
  font-size: 0.88rem;
  color: var(--gray);
}

.social-proof {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--gray);
  text-align: center;
}

.social-proof .stars {
  color: var(--gold);
}

/* ============ WHY DIFFERENT (3-col) ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-lighter);
}

.feature-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ============ PRODUCT CARDS ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-lighter);
  overflow: hidden;
  transition: all var(--transition);
}

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

.product-card-image {
  aspect-ratio: 1;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.product-card-image.wood {
  background: #E8F5E9;
}

.product-card-image.fire {
  background: #FBE9E7;
}

.product-card-image.earth {
  background: #FFF8E1;
}

.product-card-image.metal {
  background: #ECEFF1;
}

.product-card-image.water {
  background: #E8EAF6;
}

.product-card-body {
  padding: 1.25rem;
}

.product-card-emoji {
  font-size: 1.5rem;
  margin-right: 4px;
}

.product-card-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.product-card-desc {
  font-size: 0.82rem;
  color: var(--gray);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.product-card-rating {
  font-size: 0.82rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.product-card-price {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 1rem;
}

.product-card .btn-sm {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.collection-banner {
  margin-top: 2rem;
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--white);
  text-align: center;
}

.collection-banner h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.collection-banner .price {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  opacity: 0.9;
}

.collection-banner .savings {
  opacity: 0.8;
  font-weight: 400;
  margin-left: 0.5rem;
}

/* ============ TESTIMONIALS ============ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--gray-lighter);
}

.testimonial-stars {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--dark);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-verified {
  font-size: 0.78rem;
  color: var(--green);
  margin-top: 0.25rem;
}

/* ============ PROMISE ============ */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.promise-card {
  text-align: center;
  padding: 2rem 1rem;
}

.promise-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.promise-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.promise-card p {
  color: var(--gray);
  font-size: 0.92rem;
}

/* ============ EMAIL CAPTURE ============ */
.email-section {
  background: linear-gradient(135deg, var(--green-light), #FAFAF9);
}

.email-form {
  display: flex;
  gap: 0.75rem;
  max-width: 520px;
  margin: 2rem auto 0;
}

.email-input {
  flex: 1;
  min-width: 0;
  padding: 14px 20px;
  border: 2px solid var(--gray-lighter);
  border-radius: 999px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
}

.email-input:focus {
  border-color: var(--green);
}

.email-form .btn {
  flex-shrink: 0;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 2rem 2rem;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-elements {
  font-size: 1.2rem;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-disclaimer {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  opacity: 0.5;
  line-height: 1.6;
}

/* ============ PRODUCT HERO ============ */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
  align-items: center;
  gap: 4rem;
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-hero-image {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
}

.hero-wood {
  background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
}

.hero-fire {
  background: linear-gradient(135deg, #FBE9E7, #FFCCBC);
}

.hero-earth {
  background: linear-gradient(135deg, #FFF8E1, #FFECB3);
}

.hero-metal {
  background: linear-gradient(135deg, #ECEFF1, #CFD8DC);
}

.hero-water {
  background: linear-gradient(135deg, #E8EAF6, #C5CAE9);
}

.product-hero-text h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.product-hero-element {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  color: var(--gray);
  margin-bottom: 1rem;
}

.product-hero-tagline {
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 1.5rem;
  font-style: italic;
  max-width: 480px;
  line-height: 1.6;
}

.product-hero-price {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.product-hero-price small {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gray);
}

.product-hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============ PRODUCT SECTIONS ============ */
.product-section {
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.product-section h2 {
  margin-bottom: 1.5rem;
}

.product-section p {
  color: var(--dark);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* Ingredient cards */
.ingredient-list {
  margin-top: 2rem;
}

.ingredient-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-lighter);
  margin-bottom: 1rem;
  align-items: flex-start;
}

.ingredient-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 48px;
  text-align: center;
}

.ingredient-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.ingredient-card p {
  font-size: 0.9rem;
  color: var(--gray);
  margin: 0;
}

/* Brew card */
.brew-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border-left: 4px solid var(--green);
}

.brew-card p {
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
}

.brew-tip {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-lighter);
  font-style: italic;
  color: var(--gray);
}

/* Feature highlight box */
.highlight-box {
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
  border: 1px solid #FCD34D;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.highlight-box h3 {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
}

.highlight-box p {
  font-size: 0.93rem;
  color: var(--dark);
  margin: 0;
}

/* Tasting notes */
.tasting-notes {
  margin: 1.5rem 0;
}

.tasting-notes p {
  margin-bottom: 0.75rem;
}

.tasting-label {
  font-weight: 600;
  color: var(--green);
  display: inline-block;
  min-width: 90px;
}

/* When to drink */
.drink-occasions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.drink-occasions span {
  background: var(--green-light);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* FAQ */
.faq-list {
  margin-top: 2rem;
}

.faq-item {
  border-bottom: 1px solid var(--gray-lighter);
  padding: 1.25rem 0;
}

.faq-item h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.faq-item p {
  color: var(--gray);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* Supplement facts */
.supplement-facts {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  font-size: 0.88rem;
  border: 2px solid var(--gray-lighter);
}

.supplement-facts h4 {
  font-size: 0.93rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--dark);
}

.supplement-facts .sf-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px dotted var(--gray-lighter);
}

.supplement-facts .sf-indent {
  padding-left: 1.5rem;
  font-size: 0.83rem;
}

.supplement-facts .sf-note {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-lighter);
  font-size: 0.78rem;
  color: var(--gray);
}

/* Bottom CTA */
.bottom-cta {
  background: var(--green-light);
  text-align: center;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  margin: 3rem auto;
  max-width: 900px;
}

.bottom-cta h3 {
  margin-bottom: 0.75rem;
}

.bottom-cta .btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Page header */
.page-header {
  background: var(--off-white);
  padding: 2rem;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.breadcrumb a {
  color: var(--green);
  text-decoration: none;
}

/* ============ IMAGE PLACEHOLDER SYSTEM ============ */
.img-ph {
  position: relative;
  overflow: hidden;
  background: var(--gray-lighter);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: var(--gray);
  text-align: center;
  padding: 1rem;
  line-height: 1.5;
}



.img-ph:hover {
  background: #DCE2E6;
}

.img-ph span {
  display: block;
  max-width: 100%;
  word-break: break-word;
}

/* sizes — use clamp/min for responsiveness */
.img-ph-sm {
  min-height: clamp(80px, 15vw, 120px);
}

.img-ph-md {
  min-height: clamp(140px, 25vw, 220px);
}

.img-ph-lg {
  min-height: clamp(200px, 40vw, 360px);
}

.img-ph-xl {
  min-height: clamp(240px, 50vw, 480px);
}

.img-ph-huge {
  min-height: clamp(300px, 60vw, 600px);
}

.img-ph-square {
  aspect-ratio: 1;
  min-height: auto;
}

.img-ph-wide {
  aspect-ratio: 16 / 9;
  min-height: auto;
}

.img-ph-portrait {
  aspect-ratio: 3 / 4;
  min-height: auto;
}

.img-ph-banner {
  aspect-ratio: 21 / 9;
  min-height: auto;
}

/* overlay label */
.img-ph-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* hero bg image placeholder */
.img-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--gray-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray);
  padding: 1rem;
  opacity: 0.5;
}


.img-hero-bg img {

  object-fit: cover;
  /* 关键属性：填满容器，裁剪多余部分 */
  object-position: center;
  /* 图片居中（可选：top / bottom / left / right） */
}

/* product hero image placeholder */
.img-product-hero {
  width: 100%;
  aspect-ratio: 1;
  background: var(--gray-lighter);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem;
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.5;
}

.img-product-hero span {
  display: block;
  max-width: 100%;
  word-break: break-word;
}

.img-product-hero::before {
  content: '\01F4F7';
  font-size: 2.5rem;
  opacity: 0.3;
  margin-bottom: 0.5rem;
}

/* product card image */
.img-product-card {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem;
  font-size: 0.7rem;
  color: var(--gray);
  line-height: 1.4;
}

.img-product-card span {
  display: block;
  max-width: 100%;
  word-break: break-word;
}

.img-product-card::before {
  content: '\01F4F7';
  font-size: 1.8rem;
  opacity: 0.3;
  margin-bottom: 0.4rem;
}

/* testimonial avatar */
.img-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gray-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--gray);
  flex-shrink: 0;
  margin-bottom: 0.75rem;
  overflow: hidden;
  text-align: center;
  line-height: 1.2;
  padding: 4px;
}

.img-avatar span {
  display: block;
}

/* lifestyle grid scene */
.img-scene {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--gray-lighter);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-size: 0.75rem;
  color: var(--gray);
  line-height: 1.5;
  overflow: hidden;
}

.img-scene span {
  display: block;
  max-width: 100%;
  word-break: break-word;
}

.img-scene::before {
  content: '\01F4F7';
  font-size: 2rem;
  opacity: 0.3;
  margin-bottom: 0.4rem;
}

/* brewing guide image */
.img-brew {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--gray-lighter);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-size: 0.75rem;
  color: var(--gray);
  line-height: 1.4;
  overflow: hidden;
}

.img-brew span {
  display: block;
  max-width: 100%;
  word-break: break-word;
}

.img-brew::before {
  content: '\01F4F7';
  font-size: 2rem;
  opacity: 0.3;
  margin-bottom: 0.5rem;
}

/* newsletter guide preview */
.img-guide-preview {
  width: clamp(120px, 20vw, 160px);
  height: clamp(150px, 28vw, 210px);
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem;
  font-size: 0.65rem;
  color: var(--gray);
  line-height: 1.3;
  margin: 0 auto 1.5rem;
  overflow: hidden;
}

.img-guide-preview span {
  display: block;
  word-break: break-word;
}

.img-guide-preview::before {
  content: '\01F4D6';
  font-size: 2rem;
  opacity: 0.3;
  margin-bottom: 0.5rem;
}

/* section divider image — responsive aspect ratio */
.img-divider {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  background: var(--gray-lighter);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem;
  font-size: 0.78rem;
  color: var(--gray);
  min-height: 120px;
  overflow: hidden;
}

.img-divider span {
  display: block;
  max-width: 100%;
  word-break: break-word;
}

.img-divider::before {
  content: '\01F4F7';
  font-size: 2.2rem;
  opacity: 0.25;
  margin-bottom: 0.4rem;
}

/* ============ IMAGE LAYOUT HELPERS (responsive) ============ */
.img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.img-trio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.img-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.75rem;
}

.img-mosaic .img-ph:first-child {
  grid-row: span 2;
}

/* ============ ACTUAL IMAGE STYLING ============ */
.img-ph img,
.img-scene img,
.img-divider img,
.img-product-card img,
.img-product-hero img,
.img-brew img,
.img-guide-preview img,
.img-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* position: absolute; */
  top: 0;
  left: 0;
}

/* Hide camera icon when real image is present */
.img-ph:has(img),
.img-scene:has(img),
.img-divider:has(img),
.img-product-card:has(img),
.img-product-hero:has(img),
.img-brew:has(img),
.img-guide-preview:has(img),
.img-hero-bg:has(img) {
  padding: 0;
}

.img-ph:has(img)::before,
.img-scene:has(img)::before,
.img-divider:has(img)::before,
.img-product-card:has(img)::before,
.img-product-hero:has(img)::before,
.img-brew:has(img)::before,
.img-guide-preview:has(img)::before,
.img-hero-bg:has(img)::before {
  display: none;
}

/* ============ IMAGE CAPTION ============ */
.img-caption {
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray-light);
  margin-top: 0.5rem;
  font-style: italic;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* ================================================ */
/*    RESPONSIVE BREAKPOINTS                        */
/* ================================================ */

/* ---------- Large Tablet: ≤1024px ---------- */
@media (max-width: 1024px) {
  .elements-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* img-divider taller on tablet */
  .img-divider {
    min-height: 160px;
  }

  /* product hero shrink gap */
  .product-hero {
    gap: 2.5rem;
  }
}

/* ---------- Medium Tablet: ≤900px ---------- */
@media (max-width: 900px) {
  .section {
    padding: 3.5rem 1.5rem;
  }

  .section-tight {
    padding: 2.5rem 1.5rem;
  }

  /* hero lower min-height */
  .hero {
    min-height: min(70vh, 600px);
    padding: 1.5rem;
  }

  /* img-pair stack */
  .img-pair {
    grid-template-columns: 1fr;
  }

  .img-pair .img-scene {
    aspect-ratio: 16 / 9;
  }

  /* img-trio to 2+1 */
  .img-trio {
    grid-template-columns: 1fr 1fr;
  }

  .img-trio .img-scene {
    aspect-ratio: 4 / 3;
  }

  .img-trio .img-scene:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  /* product hero single column with image max-width */
  .product-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }

  .product-hero .img-product-hero {
    max-width: 400px;
    margin: 0 auto;
  }

  /* brew grid collapse */
  .product-section .img-brew {
    margin-top: 1.5rem;
  }

  /* collection banner padding */
  .collection-banner {
    padding: 1.5rem;
  }

  /* testimonials to 2-col */
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* quiz steps to 2+1 */
  .quiz-steps {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .quiz-steps .quiz-step:last-child {
    grid-column: 1 / -1;
    max-width: 400px;
    justify-self: center;
  }

  /* footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  /* trust bar */
  .trust-bar-inner {
    gap: 0.5rem 1.5rem;
  }
}

/* ---------- Small Tablet / Large Phone: ≤768px ---------- */
@media (max-width: 768px) {

  /* ---- NAV ---- */
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 80vw);
    background: var(--white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.25rem;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    z-index: 100;
    overflow-y: auto;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.05rem;
  }

  .nav-overlay.active {
    display: block;
  }

  .mobile-toggle {
    display: block;
  }

  /* ---- SECTIONS ---- */
  .section {
    padding: 3rem 1.25rem;
  }

  .section-tight {
    padding: 2rem 1.25rem;
  }

  /* ---- HERO ---- */
  .hero {
    min-height: auto;
    padding: 4rem 1.25rem 3rem;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* trust bar horizontal scroll */
  .trust-bar {
    padding: 0.75rem 1rem;
  }

  .trust-bar-inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    gap: 1rem;
    scrollbar-width: none;
  }

  .trust-bar-inner::-webkit-scrollbar {
    display: none;
  }

  /* ---- ELEMENTS ---- */
  .elements-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .element-card {
    padding: 1.5rem 1rem;
  }

  /* ---- GRIDS ---- */
  .features-grid,
  .promise-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .collection-banner {
    grid-column: 1 / -1;
  }

  /* testimonials to 1-col */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* quiz steps single column */
  .quiz-steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .quiz-steps .quiz-step:last-child {
    grid-column: auto;
    max-width: none;
    justify-self: auto;
  }

  /* img-trio to single column */
  .img-trio {
    grid-template-columns: 1fr;
  }

  .img-trio .img-scene {
    aspect-ratio: 16 / 9;
  }

  .img-trio .img-scene:last-child:nth-child(odd) {
    grid-column: auto;
    aspect-ratio: 16 / 9;
  }

  /* brewed section stacking */
  .product-section[style*="grid-template-columns"] {
    display: block !important;
  }

  /* specific: brew 2-col collapse */
  .product-section>div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .img-brew {
    margin-top: 1.5rem;
  }

  /* footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* page header */
  .page-header {
    padding: 1.5rem 1rem;
  }

  /* bottom CTA */
  .bottom-cta {
    padding: 2rem 1.25rem;
    margin: 2rem auto;
    border-radius: 0;
  }
}

/* ---------- Phone: ≤480px ---------- */
@media (max-width: 480px) {
  .nav {
    padding: 0 1rem;
  }

  .nav-logo {
    font-size: 1.15rem;
  }

  .nav-logo .elements {
    font-size: 0.8rem;
    letter-spacing: 1px;
  }

  .section {
    padding: 2.5rem 1rem;
  }

  .section-tight {
    padding: 1.5rem 1rem;
  }

  /* hero */
  .hero {
    padding: 3rem 1rem 2.5rem;
  }

  .hero h1 br {
    display: none;
  }

  .hero-buttons .btn {
    max-width: 100%;
  }

  /* elements single column */
  .elements-grid {
    grid-template-columns: 1fr;
  }

  .element-card {
    padding: 1.5rem;
  }

  /* products single column */
  .products-grid {
    grid-template-columns: 1fr;
  }

  /* product hero */
  .product-hero {
    padding: 1.5rem 1rem;
  }

  .product-hero-text h1 {
    font-size: 1.8rem;
  }

  .product-hero-buttons {
    flex-direction: column;
  }

  .product-hero-buttons .btn {
    text-align: center;
    justify-content: center;
  }

  /* product sections */
  .product-section {
    padding: 2rem 1rem;
  }

  /* ingredient card mobile */
  .ingredient-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .ingredient-icon {
    margin-bottom: 0.25rem;
  }

  /* drink occasions vertical */
  .drink-occasions {
    flex-direction: column;
  }

  .drink-occasions span {
    text-align: center;
  }

  /* footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer {
    padding: 2.5rem 1rem 1.5rem;
  }

  /* email form */
  .email-form {
    flex-direction: column;
  }

  /* collection banner */
  .collection-banner {
    padding: 1.25rem;
    border-radius: 0;
    margin-left: -1rem;
    margin-right: -1rem;
  }

  /* trust bar */
  .trust-bar {
    padding: 0.6rem 0.75rem;
  }

  .trust-bar-inner {
    font-size: 0.78rem;
    gap: 0.75rem;
  }

  /* quiz section */
  .quiz-step {
    padding: 1.5rem 1rem;
  }

  /* bottom cta */
  .bottom-cta {
    padding: 1.5rem 1rem;
    margin: 1.5rem 0;
    border-radius: 0;
  }

  .bottom-cta .btn-group {
    flex-direction: column;
    align-items: center;
  }

  /* feature cards */
  .feature-card {
    padding: 1.5rem 1rem;
  }

  /* img-divider */
  .img-divider {
    min-height: 100px;
    padding: 1rem;
    font-size: 0.7rem;
  }

  .img-divider::before {
    font-size: 1.6rem;
  }

  /* img-ph */
  .img-ph {
    font-size: 0.7rem;
    padding: 0.75rem;
  }

  .img-ph::before {
    font-size: 1.5rem;
  }

  /* img-scene */
  .img-scene {
    font-size: 0.65rem;
    padding: 0.75rem;
  }

  .img-scene::before {
    font-size: 1.5rem;
  }

  /* img-hero-bg */
  .img-hero-bg {
    font-size: 0.7rem;
  }

  .img-hero-bg::before {
    font-size: 2rem;
  }

  /* img-product-hero */
  .img-product-hero {
    font-size: 0.68rem;
    padding: 1rem;
  }

  /* img-product-card */
  .img-product-card {
    font-size: 0.6rem;
    padding: 0.5rem;
  }

  .img-product-card::before {
    font-size: 1.3rem;
  }

  /* hide very long image descriptions on phone */
  .img-hero-bg span,
  .img-scene span,
  .img-ph-banner span {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ===== Quiz Modal CSS ===== */
.quiz-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
}

.quiz-modal-overlay.active {
  display: flex;
}

.quiz-modal {
  background: #f7f5f0;
  max-width: 620px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin: 20px 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

.quiz-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: all 0.15s;
}

.quiz-modal-close:hover {
  background: #fff;
  color: #000;
}

body.modal-open {
  overflow: hidden;
}

.quiz-header {
  background: linear-gradient(135deg, #3a3a3a 0%, #5a5a5a 100%);
  color: #fff;
  padding: 40px 32px 28px;
  text-align: center;
}

.quiz-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.quiz-header p {
  font-size: .92rem;
  opacity: .75;
}

.quiz-progress-wrap {
  background: #e8e4dd;
  height: 4px;
  width: 100%;
}

.quiz-progress-bar {
  height: 100%;
  background: #c17d60;
  transition: width .35s ease;
}

.quiz-body {
  padding: 28px 32px 32px;
}

.quiz-q-num {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #777;
  margin-bottom: 8px;
}

.quiz-q-text {
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 22px;
  line-height: 1.45;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid #e8e4dd;
  border-radius: 10px;
  cursor: pointer;
  transition: all .18s;
  background: #fff;
}

.quiz-opt:hover {
  border-color: #c17d60;
  background: #fdf9f5;
}

.quiz-opt.selected {
  border-color: #c17d60;
  background: #fdf5ed;
  box-shadow: 0 0 0 3px rgba(193, 125, 96, 0.15);
}

.quiz-opt .quiz-radio-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #ccc;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .18s;
}

.quiz-opt.selected .quiz-radio-dot {
  border-color: #c17d60;
  background: #c17d60;
}

.quiz-opt.selected .quiz-radio-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.quiz-opt-none {
  opacity: .72;
}

.quiz-opt .quiz-label {
  flex: 1;
  font-size: .96rem;
}

.quiz-opt .quiz-emoji {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.quiz-btn-row {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
}

.quiz-btn {
  padding: 12px 28px;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .15s;
}

.quiz-btn-back {
  background: none;
  border: 1.5px solid #e8e4dd;
  color: #777;
}

.quiz-btn-back:hover {
  border-color: #aaa;
  color: #333;
}

.quiz-btn-next {
  background: #c17d60;
  color: #fff;
}

.quiz-btn-next:hover {
  background: #a86448;
}

.quiz-btn-next:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* Result styles (in-modal) */
.quiz-res-header {
  text-align: center;
  padding: 32px 32px 20px;
}

.quiz-res-badge {
  font-size: 3rem;
  margin-bottom: 8px;
}

.quiz-res-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.quiz-res-subtitle {
  font-size: .92rem;
  color: #777;
}

.quiz-res-body {
  padding: 24px 32px 32px;
}

.quiz-score-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: .88rem;
}

.quiz-score-label {
  width: 130px;
  font-weight: 600;
  flex-shrink: 0;
}

.quiz-score-bar-bg {
  flex: 1;
  height: 22px;
  background: #f0ede6;
  border-radius: 6px;
  overflow: hidden;
}

.quiz-score-bar-fill {
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font-size: .76rem;
  color: #fff;
  font-weight: 700;
  min-width: 30px;
  transition: width .6s ease;
}

.quiz-tea-card {
  background: #fafaf8;
  border: 1px solid #e8e4dd;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 20px;
}

.quiz-tea-card h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.quiz-tea-tag {
  display: inline-block;
  font-size: .78rem;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  font-weight: 600;
}

.quiz-tea-tag.wood {
  background: #f1f7ec;
  color: #5a8a3a;
}

.quiz-tea-tag.fire {
  background: #fef3f1;
  color: #c04535;
}

.quiz-tea-tag.earth {
  background: #fdf8ef;
  color: #a87d20;
}

.quiz-tea-tag.metal {
  background: #f7f5f2;
  color: #887e72;
}

.quiz-tea-tag.water {
  background: #eef3f7;
  color: #3d6485;
}

.quiz-tea-detail {
  font-size: .9rem;
  color: #555;
  line-height: 1.65;
}

.quiz-tea-detail b {
  color: #2c2c2c;
}

.quiz-life-card {
  background: #fff;
  border: 1px solid #e8e4dd;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 16px;
}

.quiz-life-card h4 {
  font-size: 1rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8e4dd;
}

.quiz-life-item {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: .9rem;
  line-height: 1.5;
}

.quiz-life-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.quiz-life-text {
  color: #555;
  flex: 1;
}

.quiz-life-text strong {
  color: #2c2c2c;
}

.quiz-secondary-tea {
  background: #fff;
  border: 1.5px dashed #e8e4dd;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
  font-size: .88rem;
  color: #666;
}

.quiz-secondary-tea b {
  color: #2c2c2c;
}

.quiz-tie-banner {
  background: #fff7ed;
  border: 2px solid #e0b958;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
  text-align: center;
  font-size: .92rem;
}

.quiz-btn-buy {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  background: #c17d60;
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.quiz-btn-buy:hover {
  background: #a86448;
}

.quiz-btn-restart {
  display: block;
  margin: 16px auto 0;
  padding: 10px 32px;
  background: none;
  border: 1.5px solid #e8e4dd;
  border-radius: 8px;
  color: #777;
  font-size: .9rem;
  cursor: pointer;
}

.quiz-btn-restart:hover {
  border-color: #aaa;
  color: #333;
}

.quiz-disclaimer {
  text-align: center;
  font-size: .78rem;
  color: #aaa;
  padding: 16px 32px 24px;
  border-top: 1px solid #e8e4dd;
  line-height: 1.5;
}

@media (max-width:480px) {

  /* === mobile quiz: force one-screen-per-question === */
  .quiz-modal-overlay {
    padding: 0;
    align-items: stretch;
  }

  .quiz-modal {
    border-radius: 0;
    margin: 0;
    overflow-y: auto;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }

  #quizContent {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  /* header: compact */
  .quiz-header {
    padding: 16px 12px 12px;
  }

  .quiz-header h2 {
    font-size: 1.1rem;
    margin-bottom: 2px;
  }

  .quiz-header p {
    font-size: .78rem;
  }

  .quiz-progress-wrap {
    height: 3px;
  }

  /* body: fill remaining space, flex the options area */
  .quiz-body {
    padding: 12px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .quiz-q-num {
    font-size: .68rem;
    margin-bottom: 4px;
  }

  .quiz-q-text {
    font-size: .94rem;
    margin-bottom: 10px;
    line-height: 1.35;
  }

  /* options: scroll if needed, but aim to fit */
  .quiz-options {
    flex: 1;
    gap: 6px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .quiz-opt {
    padding: 10px 12px;
    gap: 8px;
    border-radius: 8px;
    border-width: 1px;
  }

  .quiz-opt .quiz-radio-dot {
    width: 18px;
    height: 18px;
    border-width: 1.5px;
    flex-shrink: 0;
  }

  .quiz-opt.selected .quiz-radio-dot::after {
    width: 6px;
    height: 6px;
  }

  .quiz-opt .quiz-label {
    font-size: .82rem;
  }

  .quiz-opt .quiz-emoji {
    font-size: 1rem;
  }

  /* button row: fixed at bottom */
  .quiz-btn-row {
    margin-top: 8px;
    padding-top: 8px;
    flex-shrink: 0;
    border-top: 1px solid #e8e4dd;
  }

  .quiz-btn {
    padding: 10px 20px;
    font-size: .85rem;
  }

  .quiz-btn-next:disabled {
    opacity: .35;
  }

  /* close button: adjust position */
  .quiz-modal-close {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  /* === mobile results: scrollable, keep compact === */
  .quiz-res-header {
    padding: 20px 16px 14px;
  }

  .quiz-res-badge {
    font-size: 2.2rem;
  }

  .quiz-res-title {
    font-size: 1.1rem;
  }

  .quiz-res-subtitle {
    font-size: .82rem;
  }

  .quiz-res-body {
    padding: 14px 16px 20px;
  }

  .quiz-score-row {
    gap: 6px;
    margin-bottom: 5px;
    font-size: .78rem;
  }

  .quiz-score-label {
    width: 100px;
    font-size: .76rem;
  }

  .quiz-score-bar-bg {
    height: 18px;
  }

  .quiz-tea-card {
    padding: 14px 16px;
    margin-bottom: 12px;
  }

  .quiz-tea-card h4 {
    font-size: .95rem;
  }

  .quiz-tea-tag {
    font-size: .7rem;
  }

  .quiz-tea-detail {
    font-size: .8rem;
  }

  .quiz-life-card {
    padding: 14px 16px;
    margin-bottom: 10px;
  }

  .quiz-life-card h4 {
    font-size: .9rem;
    margin-bottom: 10px;
  }

  .quiz-life-item {
    font-size: .8rem;
    gap: 6px;
  }

  .quiz-life-icon {
    font-size: .95rem;
    width: 20px;
  }

  .quiz-secondary-tea {
    padding: 12px 14px;
    font-size: .8rem;
  }

  .quiz-tie-banner {
    padding: 12px 14px;
    font-size: .82rem;
  }

  .quiz-btn-buy {
    padding: 12px 28px;
    font-size: .88rem;
  }

  .quiz-disclaimer {
    font-size: .7rem;
    padding: 12px 16px 18px;
  }
}