/* === GLOBAL VARIABLES === */
:root {
  --primary-brown: #5D4037;
  --accent-gold: #D4AF37;
  --bg-beige: #FFF8E1;
  --card-white: #FFFFFF;
  --btn-green: #2e7d32;
  --danger-red: #d32f2f;
  --disabled-grey: #9e9e9e;
  --nav-height: 60px;
}

/* === GLOBAL RESET === */
* { box-sizing: border-box; }

html, body {
  margin: 0; 
  padding: 0; 
  background-color: var(--bg-beige);
  font-family: "Microsoft JhengHei", "Helvetica", sans-serif;
  color: var(--primary-brown);
  min-height: 100vh;
  touch-action: manipulation;
  scroll-behavior: smooth;
}

/* === NAVIGATION BAR === */
.main-nav {
  background-color: white;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 2000;
}

.nav-brand {
  color: var(--primary-brown);
  font-weight: bold;
  font-size: 1.2em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-lang-btn {
  background: #eee;
  border: none;
  color: var(--primary-brown);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav-lang-btn:hover {
  background: #e0e0e0;
}

/* === LANDING PAGE: SHARED UTILS === */
.lp-btn-base {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}
.cta-wa { background: #25D366; color: white; box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2); border-color: #25D366; }
.cta-wa:hover { background: #20ba5a; transform: translateY(-2px); }

.cta-ig { background: white; color: var(--primary-brown); border: 2px solid var(--primary-brown); }
.cta-ig:hover { background: var(--bg-beige); transform: translateY(-2px); }

.section-container { 
  padding: 60px 20px; 
  max-width: 1200px; 
  margin: 0 auto; 
}

/* === HERO SECTION === */
.hero-section {
    text-align: center;
    padding: 100px 20px 80px;
    background-color: var(--bg-beige); 
    background-image: radial-gradient(var(--accent-gold) 0.5px, transparent 0.5px), radial-gradient(var(--accent-gold) 0.5px, var(--bg-beige) 0.5px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    position: relative;
    border-bottom: 1px solid rgba(212,175,55,0.1);
}
.hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(255,248,225,0.95), rgba(255,248,225,0.7));
    z-index: 0;
}
.hero-wrapper { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }

.hero-badge {
    background: var(--primary-brown);
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 25px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title { 
    font-size: clamp(2rem, 5vw, 3rem); 
    margin-bottom: 25px; 
    color: var(--primary-brown); 
    font-weight: 800; 
    line-height: 1.25; 
}

.hero-sub { 
    color: #5d4037; 
    margin-bottom: 40px; 
    font-size: 1.1rem; 
    font-weight: 400; 
    line-height: 1.7; 
    opacity: 0.9;
}

.cta-group { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* === FEATURES & GRIDS === */
.section-header-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}
.section-title {
  color: var(--primary-brown);
  font-size: 1.8rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}
.section-title::after { 
    content: ''; 
    display: block;
    width: 60px; 
    height: 3px; 
    background: var(--accent-gold); 
    border-radius: 2px;
    margin: 10px auto 0;
}
.section-desc {
  color: #666;
  font-size: 1.05rem;
  margin-top: 15px;
  line-height: 1.6;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; 
  gap: 10px;
  text-align: center;
}
.process-step { padding: 5px; }
.step-icon {
  font-size: 2rem; 
  background: var(--bg-beige);
  width: 50px; 
  height: 50px; 
  line-height: 50px;
  border-radius: 50%;
  margin: 0 auto 15px;
  color: var(--primary-brown);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.process-step h3 {
  color: var(--primary-brown);
  /* UPDATED: Increased from 0.95rem to match Drink Card Title */
  font-size: 1rem; 
  margin-bottom: 8px;
  font-weight: bold;
}
.process-step p {
  color: #666;
  /* UPDATED: Increased from 0.8rem to match Drink Card Desc */
  font-size: 0.85rem;
  line-height: 1.4;
}

/* === SIGNATURE PRODUCT CARDS (HORIZONTAL SCROLL) === */
.rec-carousel-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.product-grid {
  display: flex; /* Horizontal Layout */
  gap: 20px;
  padding: 10px 5px 20px 5px; /* Space for scrollbar/shadow */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin: 0 auto;
  scroll-behavior: smooth;
}
.product-grid::-webkit-scrollbar { display: none; }
.product-grid { -ms-overflow-style: none; scrollbar-width: none; }

/* STANDARD VERTICAL CARD (For Store Manager Recs & Index Efficacy) */
.prod-card {
  min-width: 180px; 
  width: 180px;
  flex-shrink: 0;
  scroll-snap-align: start;
  
  background: white;
  border-radius: 12px;
  border: 1px solid #eee;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
}

.prod-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(93, 64, 55, 0.08);
  border-color: var(--accent-gold);
}

.prod-img-wrapper {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1; 
  background-color: #f5f5f5;
  position: relative;
}

.prod-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.prod-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.prod-content h3 {
  color: var(--primary-brown);
  font-size: 1rem; 
  margin: 0 0 5px 0;
  font-weight: bold;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prod-meta {
  color: var(--accent-gold);
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 8px;
}

.prod-content p {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === HORIZONTAL EFFICACY CARDS (Used on efficacy.html only) === */
.efficacy-card-horiz {
  display: flex;
  flex-direction: row;
  background: white;
  border-radius: 12px;
  border: 1px solid #eee;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  
  height: 160px; 
  min-width: 290px;
  width: 290px;
  flex-shrink: 0;
  scroll-snap-align: start;
  transition: transform 0.3s;
}

/* On Efficacy Grid page, stretch width to fill grid cell */
.efficacy-grid .efficacy-card-horiz {
  width: 100%;
  min-width: 0; 
}

.efficacy-img-horiz {
  width: 160px; 
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  background-color: #f5f5f5;
}

.efficacy-content-horiz {
  padding: 10px 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  overflow: hidden;
}

.efficacy-content-horiz h3 {
  color: var(--primary-brown);
  font-size: 1rem;
  margin: 0 0 4px 0;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.efficacy-content-horiz p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5; /* Increased lines since card is taller */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CAROUSEL ARROWS */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    color: var(--primary-brown);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    user-select: none;
}
.scroll-btn:hover { background: var(--bg-beige); border-color: var(--primary-brown); }
.scroll-btn:active { transform: translateY(-50%) scale(0.95); }
.scroll-btn.prev { left: -20px; }
.scroll-btn.next { right: -20px; }

/* === PROMO SECTION === */
.promo-section {
  padding: 80px 20px;
  background-image: linear-gradient(to bottom, #fffdf5, #ffffff);
}
.promo-box {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(93, 64, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 50px 30px;
}
.promo-content h2 {
    text-align: center;
    color: var(--primary-brown);
    font-size: 1.6rem;
    margin-bottom: 20px;
}
.promo-lead {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1rem;
  color: #5d4037;
  line-height: 1.6;
  font-weight: 500;
}
.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.benefit-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.ben-icon {
  font-size: 1.8rem;
  background: #fdfbf7;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid #eee;
  flex-shrink: 0;
}
.ben-text strong {
  display: block;
  font-size: 1.1rem;
  color: var(--primary-brown);
  margin-bottom: 5px;
}
.ben-text div {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

/* === EFFICACY PAGE GRID === */
.efficacy-grid {
  display: grid;
  /* Wider minimum to fit horizontal content comfortably */
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding-bottom: 40px;
}

/* === FOOTER === */
.main-footer { 
    background: #2D1B15; 
    color: #f5f5f5; 
    padding: 60px 20px 30px; 
}
.footer-grid { 
    max-width: 1000px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 40px; 
}
.footer-col h4 { 
    color: var(--accent-gold); 
    margin-bottom: 20px; 
    font-size: 0.95rem; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
}
.footer-row { 
    display: flex; 
    gap: 15px; 
    margin-bottom: 15px; 
    font-size: 1rem; 
    align-items: flex-start; 
    line-height: 1.5;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 600px) {
  .hero-title { font-size: 1.8rem; }
  .promo-box { padding: 30px 20px; }
  .section-container { padding: 50px 20px; }
  
  /* Hide scroll buttons on mobile, swipe is enough */
  .scroll-btn { display: none; }
  
  /* Reset relative positioning on mobile to prevent overflow issues if needed */
  .rec-carousel-wrapper { max-width: 100%; margin: 0; }
  .scroll-btn.prev { left: 0; }
  .scroll-btn.next { right: 0; }
}