/* ═══════════════════════════════════════════
   五行小刘坊 Design System
   Xiao Liu Food Wellness — E-Commerce
   ═══════════════════════════════════════════ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+SC:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors */
  --green-deep: #2D5016;
  --green-mid: #4A7C28;
  --green-light: #6B9B3A;
  --green-soft: #E8F0DE;
  --gold-warm: #8B6914;
  --gold-light: #C49B2A;
  --gold-pale: #F5E6C0;
  --honey: #D4A574;
  --amber: #B8860B;

  /* Neutrals */
  --bg-warm: #FAFAF5;
  --bg-cream: #F5F0E8;
  --bg-card: #FFFFFF;
  --text-primary: #1A1A1A;
  --text-secondary: #555555;
  --text-muted: #888888;
  --border-light: #E8E4DC;

  /* Accents */
  --red-deal: #D32F2F;
  --red-soft: #FFEBEE;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;
  --nutri-a: #00873E;

  /* Product Theme Colors */
  --shiquan-color: #5A8F3C;
  --jiuhei-color: #3D2B5A;
  --qibai-color: #C9A96E;
  --huangjing-color: #9E7C2B;

  /* Typography */
  --font-zh: 'Noto Sans SC', sans-serif;
  --font-en: 'Inter', sans-serif;

  /* Spacing */
  --section-pad: clamp(3rem, 6vw, 6rem);
  --card-pad: 1.5rem;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 20px rgba(45,80,22,0.15);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-zh);
  background: var(--bg-warm);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; }

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--green-deep);
  margin-bottom: 0.5rem;
}
.section-title p {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 300;
}

/* ═══ HERO ═══ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, #F5F0E8 0%, #E8F0DE 40%, #F5E6C0 100%);
  overflow: hidden;
  padding: 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80vw;
  height: 80vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,80,22,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nutri-a);
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease-out;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--green-deep);
  line-height: 1.3;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--gold-warm), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.8s 0.15s ease-out both;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
  animation: fadeInUp 0.8s 0.3s ease-out both;
}

.hero-tag {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(45,80,22,0.15);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--green-deep);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green-deep);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  font-weight: 600;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s 0.45s ease-out both;
}
.hero-cta:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ═══ TRUST BAR ═══ */
.trust-bar {
  background: var(--green-deep);
  color: #fff;
  padding: 1.2rem 0;
}
.trust-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.trust-icon {
  font-size: 1.5rem;
}
.trust-label {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.95;
  line-height: 1.3;
}

/* ═══ PRODUCTS GRID ═══ */
.products-section {
  padding: var(--section-pad) 0;
  background: var(--bg-warm);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* --- Product Card --- */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-light);
}

.product-img-wrap {
  position: relative;
  background: linear-gradient(135deg, #f8f8f4, #f0ede4);
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}
.product-img-wrap img {
  max-height: 240px;
  object-fit: contain;
  transition: transform 0.5s ease;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.1));
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}

.nutri-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--nutri-a);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,135,62,0.3);
}
.nutri-badge .nutri-letter { font-size: 1.1rem; }
.nutri-badge .nutri-sub { font-size: 0.4rem; letter-spacing: 0.02em; margin-top: 1px; }

.product-theme-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  z-index: 3;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  letter-spacing: 0.05em;
}

.product-body {
  padding: var(--card-pad);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name-zh {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}
.product-name-en {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-en);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.product-tagline {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-light);
}

/* Symptom Tags */
.symptom-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.symptom-tag {
  background: var(--bg-cream);
  color: var(--text-secondary);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 500;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}
.symptom-tag:hover {
  background: var(--green-soft);
  border-color: var(--green-light);
  color: var(--green-deep);
}

/* Pricing */
.pricing-area {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.price-single {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}
.price-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.price-amount {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-en);
  color: var(--green-deep);
}
.price-unit {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.price-deal {
  background: linear-gradient(135deg, #FFF8E1, #FFF3E0);
  border: 1px solid var(--gold-pale);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.8rem;
}
.deal-badge {
  display: inline-block;
  background: var(--red-deal);
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.deal-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.deal-amount {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-en);
  color: var(--red-deal);
}
.deal-original {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.deal-save {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red-deal);
  background: var(--red-soft);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-pill);
}

/* WhatsApp Button */
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--whatsapp);
  color: #fff;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.3s ease;
}
.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37,211,102,0.35);
}
.btn-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ═══ BUNDLE SECTION ═══ */
.bundle-section {
  padding: var(--section-pad) 0;
  background: linear-gradient(160deg, #1A3A0A 0%, #2D5016 50%, #3A6520 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.bundle-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,155,42,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.bundle-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.bundle-images {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  position: relative;
}
.bundle-images img {
  width: 130px;
  height: auto;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.35));
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  border-radius: 8px;
}
.bundle-images img:first-child {
  transform: rotate(-5deg) translateX(10px);
  z-index: 1;
}
.bundle-images img:nth-child(2) {
  transform: translateY(-15px) scale(1.1);
  z-index: 3;
}
.bundle-images img:last-child {
  transform: rotate(5deg) translateX(-10px);
  z-index: 1;
}
.bundle-images img:hover {
  transform: scale(1.12) translateY(-5px);
  z-index: 4;
}

.bundle-info h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.bundle-desc {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 1rem;
  line-height: 1.6;
}
.bundle-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 0.4rem;
}
.bundle-price {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: var(--font-en);
  color: var(--gold-light);
  text-shadow: 0 2px 10px rgba(196,155,42,0.3);
}
.bundle-original {
  font-size: 1.1rem;
  text-decoration: line-through;
  opacity: 0.6;
  color: rgba(255,255,255,0.7);
}
.bundle-save-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-light), var(--amber));
  color: var(--green-deep);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(196,155,42,0.3);
  font-weight: 800;
  margin-bottom: 1.2rem;
}

/* ═══ QUALITY SECTION ═══ */
.quality-section {
  padding: var(--section-pad) 0;
  background: var(--bg-cream);
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
}
.quality-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  text-align: center;
  transition: all 0.3s ease;
}
.quality-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.quality-icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}
.quality-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 0.4rem;
}
.quality-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* NUTRI-GRADE Explainer */
.nutri-explainer {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  border: 2px solid var(--nutri-a);
  margin-top: 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
}
.nutri-big-badge {
  width: 80px;
  height: 80px;
  background: var(--nutri-a);
  color: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 4px 15px rgba(0,135,62,0.3);
}
.nutri-big-badge .big-letter { font-size: 2.5rem; line-height: 1; }
.nutri-big-badge .big-sub { font-size: 0.6rem; letter-spacing: 0.05em; }
.nutri-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 0.3rem;
}
.nutri-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══ SHIPPING SECTION ═══ */
.shipping-section {
  padding: var(--section-pad) 0;
  background: var(--bg-warm);
}
.shipping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.shipping-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.shipping-card .s-icon { font-size: 2rem; }
.shipping-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 0.25rem;
}
.shipping-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ═══ CONTACT CTA ═══ */
.contact-section {
  padding: var(--section-pad) 0;
  background: linear-gradient(135deg, var(--bg-cream), var(--green-soft));
  text-align: center;
}
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.3s ease;
}
.btn-contact:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.btn-contact.primary {
  background: var(--whatsapp);
  color: #fff;
}
.btn-contact.secondary {
  background: var(--bg-card);
  color: var(--green-deep);
  border: 2px solid var(--green-deep);
}

/* ═══ FOOTER ═══ */
.site-footer {
  background: var(--green-deep);
  color: rgba(255,255,255,0.7);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.8;
}
.site-footer a {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
}
.footer-disclaimer {
  max-width: 600px;
  margin: 0.5rem auto 0;
  font-size: 0.7rem;
  opacity: 0.6;
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .trust-bar .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  .bundle-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.5rem;
  }
  .bundle-images img { width: 90px; }
  .nutri-explainer {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .products-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .hero { min-height: 70vh; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .trust-bar .container { grid-template-columns: repeat(2, 1fr); }
  .bundle-price { font-size: 2rem; }
}

/* ═══ ADD TO CART BUTTON ═══ */
.btn-add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--green-deep);
  color: #fff;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.3s ease;
}
.btn-add-cart:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Bundle CTA — High Visibility Gold */
.btn-bundle-cta {
  background: linear-gradient(135deg, var(--gold-light), var(--amber)) !important;
  color: var(--green-deep) !important;
  font-size: 1.05rem !important;
  padding: 0.9rem 1.5rem !important;
  border-radius: var(--radius-pill) !important;
  box-shadow: 0 4px 20px rgba(196,155,42,0.4);
  letter-spacing: 0.02em;
}
.btn-bundle-cta:hover {
  background: linear-gradient(135deg, var(--amber), #9A7516) !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 25px rgba(196,155,42,0.5);
}

/* ═══ FLOATING CART ═══ */
.cart-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--green-deep);
  color: #fff;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: all 0.3s ease;
}
.cart-float:hover { transform: scale(1.1); background: var(--green-mid); }
#cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red-deal);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
}

/* ═══ CART PANEL ═══ */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  z-index: 1998; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.cart-panel.open ~ .cart-overlay { opacity: 1; pointer-events: auto; }

.cart-panel {
  position: fixed;
  top: 0; right: -420px;
  width: 400px; max-width: 90vw;
  height: 100vh;
  background: var(--bg-card);
  z-index: 1999;
  transition: right 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
  overflow-y: auto;
  box-shadow: -4px 0 30px rgba(0,0,0,0.15);
}
.cart-panel.open { right: 0; }

.cart-panel-inner { padding: 1.5rem; }

.cart-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem; padding-bottom: 0.8rem; border-bottom: 2px solid var(--border-light);
}
.cart-header h3 { font-size: 1.2rem; font-weight: 800; color: var(--green-deep); }
.cart-close {
  background: none; font-size: 1.3rem; color: var(--text-muted);
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.cart-close:hover { background: var(--bg-cream); color: var(--text-primary); }

/* Auth */
.cart-auth { margin-bottom: 1rem; }
.btn-google-login {
  width: 100%; padding: 0.6rem; border-radius: var(--radius-sm);
  background: var(--bg-cream); color: var(--text-primary);
  font-size: 0.85rem; font-weight: 600; transition: all 0.2s;
  border: 1px solid var(--border-light);
}
.btn-google-login:hover { background: var(--green-soft); border-color: var(--green-light); }
.auth-info {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--green-soft); padding: 0.5rem 0.8rem; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 600; color: var(--green-deep);
}
.btn-signout {
  background: none; color: var(--text-muted); font-size: 0.8rem;
  text-decoration: underline; padding: 0.2rem 0.5rem;
}

/* Cart Empty */
.cart-empty {
  text-align: center; padding: 2rem 1rem; color: var(--text-muted);
  font-size: 0.95rem;
}

/* Cart Line Items */
.cart-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0; border-bottom: 1px solid var(--border-light);
}
.cart-line-name { font-size: 0.88rem; font-weight: 600; display: block; }
.cart-line-price { font-size: 0.75rem; color: var(--text-muted); }
.cart-line-controls { display: flex; align-items: center; gap: 0.5rem; }
.qty-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-cream); border: 1px solid var(--border-light);
  font-size: 1rem; font-weight: 700; color: var(--text-primary);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.qty-btn:hover { background: var(--green-soft); border-color: var(--green-light); }
.qty-display {
  font-size: 1rem; font-weight: 800; min-width: 24px; text-align: center;
  font-family: var(--font-en);
}

/* Breakdown & Total */
.cart-breakdown {
  background: var(--bg-cream); border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem; margin: 0.8rem 0; font-size: 0.78rem; color: var(--text-secondary);
}
.bd-line { padding: 0.15rem 0; }
.cart-total-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.8rem 0; font-size: 1rem; font-weight: 800;
}
.cart-total-amount { font-size: 1.4rem; color: var(--green-deep); font-family: var(--font-en); }
.cart-savings {
  text-align: center; background: var(--red-soft); color: var(--red-deal);
  padding: 0.4rem; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 700;
  margin-bottom: 0.8rem;
}

/* Address Form */
.addr-form { margin: 1rem 0; }
.addr-form h4 { font-size: 0.95rem; font-weight: 700; color: var(--green-deep); margin-bottom: 0.6rem; }
.addr-input {
  width: 100%; padding: 0.6rem 0.8rem; border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); font-size: 0.88rem; font-family: var(--font-zh);
  margin-bottom: 0.5rem; transition: border-color 0.2s; background: var(--bg-warm);
}
.addr-input:focus { outline: none; border-color: var(--green-light); background: #fff; }

/* Submit Order */
.btn-submit-order {
  margin-top: 0.5rem; padding: 0.85rem; font-size: 1.05rem;
}

/* Order History */
.order-history { margin-top: 1.5rem; border-top: 2px solid var(--border-light); padding-top: 1rem; }
.order-history h4 { font-size: 0.95rem; font-weight: 700; color: var(--green-deep); margin-bottom: 0.6rem; }
.history-card {
  background: var(--bg-cream); border-radius: var(--radius-sm);
  padding: 0.7rem; margin-bottom: 0.5rem; border: 1px solid var(--border-light);
}
.history-date { font-size: 0.7rem; color: var(--text-muted); font-family: var(--font-en); }
.history-items { font-size: 0.82rem; font-weight: 500; margin: 0.2rem 0; }
.history-total { font-size: 0.9rem; font-weight: 800; color: var(--green-deep); font-family: var(--font-en); }
.empty-history { font-size: 0.85rem; color: var(--text-muted); text-align: center; padding: 1rem; }

@media (max-width: 480px) {
  .cart-float { bottom: 1rem; right: 1rem; width: 52px; height: 52px; font-size: 1.3rem; }
}

/* ═══ PAYMENT MODAL ═══ */
.payment-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.payment-card {
  background: #fff;
  border-radius: var(--radius);
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideUp 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
@keyframes slideUp { from { opacity:0; transform:translateY(40px); } to { opacity:1; transform:translateY(0); } }

.payment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(135deg, var(--green-soft), #fff);
}
.payment-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green-deep);
  margin: 0;
}
.payment-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.payment-close:hover { background: rgba(0,0,0,0.1); }

.payment-body {
  padding: 1.5rem;
}

/* Reference */
.payment-ref {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.5rem;
  background: var(--bg-cream);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.payment-ref strong {
  color: var(--green-deep);
  font-family: var(--font-en);
  letter-spacing: 0.05em;
}

/* Amount */
.payment-amount-box {
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
  color: #fff;
}
.payment-amount-label {
  display: block;
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 0.3rem;
}
.payment-amount-value {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  font-family: var(--font-en);
  letter-spacing: 0.02em;
}
.payment-amount-saved {
  display: block;
  font-size: 0.8rem;
  color: var(--gold-light);
  margin-top: 0.3rem;
  font-weight: 600;
}

/* QR Code */
.payment-qr-area {
  text-align: center;
  padding: 1rem;
  background: #FAFAFA;
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.payment-qr-canvas {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.payment-qr-canvas img {
  width: 220px !important;
  height: 220px !important;
  image-rendering: pixelated;
}
.payment-qr-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.payment-company {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}
.payment-uen {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-en);
}
.payment-qr-lock {
  font-size: 0.72rem;
  color: var(--green-deep);
  font-weight: 700;
  margin-top: 0.2rem;
}

/* Instructions */
.payment-instructions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.pay-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.step-num {
  width: 24px; height: 24px;
  background: var(--green-deep);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Timer */
.payment-timer {
  text-align: center;
  padding: 0.6rem;
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #5D4037;
}
.payment-timer strong {
  font-family: var(--font-en);
  font-size: 1.1rem;
  color: var(--red-deal);
}
.timer-icon { font-size: 1rem; }
.payment-timer.expired {
  background: var(--red-soft);
  border-color: var(--red-deal);
}
.payment-timer.expired strong { color: var(--red-deal); }

/* Buttons */
.btn-confirm-payment {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}
.btn-confirm-payment:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37,211,102,0.4);
}
.btn-cancel-payment {
  width: 100%;
  padding: 0.6rem;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-cancel-payment:hover { background: var(--red-soft); color: var(--red-deal); border-color: var(--red-deal); }

/* Success Overlay */
.payment-success-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.85);
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.payment-success-card {
  background: #fff;
  border-radius: var(--radius);
  max-width: 380px;
  width: 100%;
  text-align: center;
  padding: 2.5rem 1.5rem;
  animation: slideUp 0.4s ease;
}
.success-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.success-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green-deep);
  margin-bottom: 0.5rem;
}
.success-msg {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.success-ref {
  background: var(--bg-cream);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--green-deep);
  font-size: 1rem;
  display: inline-block;
  margin-bottom: 1.5rem;
}

/* ═══ LANGUAGE TOGGLE ═══ */
.lang-toggle {
  position: fixed;
  top: 1rem; right: 1rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  font-family: var(--font-en);
}
.lang-toggle:hover { transform: scale(1.1); background: var(--green-mid); }

/* ═══ PRODUCT DETAIL LINK ═══ */
.product-detail-link {
  display: block;
  text-align: center;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--green-mid);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}
.product-detail-link:hover { color: var(--green-deep); text-decoration: underline; }

/* ═══ PRODUCT DETAIL MODAL ═══ */
.product-detail-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.product-detail-card {
  background: #fff;
  border-radius: var(--radius);
  max-width: 500px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideUp 0.4s ease;
  position: relative;
  padding: 1.5rem;
}
.detail-header { text-align: center; margin-bottom: 1rem; }
.detail-name { font-size: 1.2rem; font-weight: 800; color: var(--green-deep); }
.detail-name-en { font-size: 0.85rem; color: var(--text-secondary); }
.detail-section { margin-bottom: 1rem; }
.detail-section h4 {
  font-size: 0.9rem; font-weight: 700; color: var(--green-deep);
  margin-bottom: 0.4rem; padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border-light);
}
.detail-section p, .detail-section ul {
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7;
}
.detail-section ul { padding-left: 1.2rem; }
.detail-section li { margin-bottom: 0.2rem; }
.detail-btn-area { text-align: center; margin-top: 1rem; }

/* ═══ FOOTER LINKS ═══ */
.footer-links {
  display: flex; gap: 1.5rem; justify-content: center;
  margin: 0.5rem 0;
}
.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

/* ═══ UPSELL TIPS ═══ */
.upsell-tip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem;
  margin: 0.4rem 0;
  background: linear-gradient(135deg, #FFF8E1, #FFF3E0);
  border: 1px solid #FFD54F;
  border-radius: 10px;
  animation: upsellSlide 0.4s ease;
}
@keyframes upsellSlide { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

.upsell-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.upsell-text {
  flex: 1;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #5D4037;
}
.upsell-text strong {
  color: #E65100;
  font-size: 0.82rem;
}
.upsell-text span {
  color: #795548;
}
.upsell-btn {
  flex-shrink: 0;
  padding: 0.4rem 0.8rem;
  background: #E65100;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  animation: upsellPulse 2s infinite;
}
.upsell-btn:hover { background: #BF360C; transform: scale(1.05); }
@keyframes upsellPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230,81,0,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(230,81,0,0); }
}

/* ═══ WHATSAPP FLOAT ═══ */
.whatsapp-float {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37,211,102,0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(37,211,102,0.6);
}
.whatsapp-float svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2)); }

/* ═══ PRODUCT SHARE BUTTONS ═══ */
.product-share-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  justify-content: center;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  text-decoration: none;
  color: #fff;
  transition: all 0.2s;
  font-weight: 600;
}
.share-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.share-btn.wa { background: #25D366; }
.share-btn.tg { background: #0088cc; }

@media (max-width: 768px) {
  .whatsapp-float { bottom: 85px; right: 16px; width: 48px; height: 48px; }
}

/* ═══ FAQ SECTION ═══ */
.faq-section {
  padding: var(--section-pad) 0;
  background: var(--bg-cream);
}
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-item:hover { border-color: var(--green-light); }
.faq-item[open] { border-color: var(--green-mid); box-shadow: var(--shadow-md); }
.faq-item summary {
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-deep);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item[open] summary::after { content: '−'; color: var(--green-deep); }
.faq-item summary:hover { background: var(--green-soft); }
.faq-item p {
  padding: 0 1.2rem 1rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  animation: faqSlide 0.3s ease;
}
@keyframes faqSlide { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
