/* layout.css — Page skeleton: top bars, header, views, hero, sections, footer */

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; padding-bottom: 70px; }

/* Creator Dynamic Welcome Bar */
.creator-bar {
  background: linear-gradient(90deg, #1e3a8a, #2563eb);
  color: #fff; text-align: center; padding: 9px 16px; font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.3px; display: none; align-items: center; justify-content: center; gap: 8px;
}
.creator-bar .code-chip { background: #fff; color: var(--navy); padding: 2px 8px; border-radius: 4px; font-family: var(--font-mono); font-size: 11px; }

/* Top Announcement Bar */
.announcement-bar {
  background: var(--navy); color: #fff; text-align: center; padding: 8px 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
  display: flex; justify-content: center; align-items: center; gap: 10px;
}
.announcement-bar .badge { background: var(--teal); color: var(--navy); padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; }

/* Header */
header.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.nav-wrap { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.brand-logo { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--navy); cursor: pointer; }
.brand-logo h1 { font-size: 24px; font-weight: 900; letter-spacing: 1px; }
.brand-logo span { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

nav.main-nav { display: flex; align-items: center; gap: 24px; }
nav.main-nav a { text-decoration: none; color: var(--text); font-size: 13.5px; font-weight: 600; transition: color 0.2s; cursor: pointer; }
nav.main-nav a:hover, nav.main-nav a.active { color: var(--electric); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.ca-badge { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); background: #f1f5f9; padding: 4px 10px; border-radius: 999px; }
.ca-dot { width: 7px; height: 7px; background: var(--teal); border-radius: 50%; box-shadow: 0 0 6px var(--teal); }

.cart-btn {
  background: var(--navy); color: #fff; border: none; padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background 0.2s;
}
.cart-btn:hover { background: var(--cobalt); }
.cart-count { background: var(--electric); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 11px; }

/* Layout Views */
main.view-container { max-width: 1280px; margin: 0 auto; padding: 28px 24px 80px; }
.page-view { display: none; animation: fadeIn 0.25s ease-in-out forwards; }
.page-view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Image Wrapper */
.img-wrap { width: 100%; position: relative; overflow: hidden; background: #f1f5f9; display: flex; align-items: center; justify-content: center; }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.img-wrap:hover img { transform: scale(1.02); }

/* Hero Buy Box Grid */
.hero-commerce-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; margin-bottom: 50px; align-items: start; }

.gallery-panel {
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; position: sticky; top: 90px;
}
.visual-stage {
  width: 100%; height: 410px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
  position: relative; background: #edf2f7;
}
.gallery-caption { margin-top: 14px; font-size: 13px; font-weight: 800; color: var(--navy); font-family: var(--font-mono); text-align: center; }
.gallery-note { font-size: 11.5px; color: var(--muted); text-align: center; }

.commerce-details h2 { font-size: 32px; font-weight: 900; color: var(--navy); line-height: 1.2; margin-bottom: 6px; }
.hero-rating { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-bottom: 12px; color: #475569; }
.stars { color: #f59e0b; font-size: 14px; }
.commerce-lead { font-size: 14px; color: var(--muted); margin-bottom: 14px; line-height: 1.6; }

.dispatch-countdown-bar {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 8px 14px; margin-bottom: 16px;
  font-size: 12px; color: #92400e; font-weight: 700; display: flex; align-items: center; gap: 8px;
}
.dispatch-countdown-bar b { color: #b45309; }

.cold-chain-banner {
  background: #ecfeff; border: 1px solid #a5f3fc; border-radius: 10px; padding: 10px 14px; margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px; font-size: 12px; color: #0e7490;
}
.cold-chain-icon { font-size: 18px; flex-shrink: 0; }
.cold-chain-text b { display: block; font-weight: 800; color: #0891b2; font-size: 12px; }

.protocol-cadence-box {
  background: #f0fdfa; border: 1px solid #99f6e4; border-radius: 12px; padding: 12px 16px; margin-bottom: 20px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; font-size: 12px;
}
.cadence-col b { display: block; color: var(--teal-dark); font-weight: 800; margin-bottom: 2px; }
.cadence-col span { color: #134e4a; font-size: 11.5px; line-height: 1.4; display: block; }

.fresh-vs-traditional-section { margin: 50px 0; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 30px; box-shadow: var(--shadow); }
.diff-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; margin-top: 16px; }
.diff-table th, .diff-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.diff-table th { background: #f8fafc; font-weight: 800; color: var(--navy); }
.diff-table tr:last-child td { border-bottom: none; }
.col-highlight { background: #f0fdfa; font-weight: 700; color: var(--teal-dark); }

.shoppable-ugc-section { margin: 60px 0; }
.section-title { font-size: 26px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.section-desc { font-size: 14px; color: var(--muted); margin-bottom: 24px; }

.protocol-reviews-section { margin: 60px 0; }
.reviews-timeline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.timeline-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: space-between; border-top: 4px solid var(--cobalt);
}
.timeline-card.t-teal { border-top-color: var(--teal); }
.timeline-card.t-amber { border-top-color: var(--amber); }

.review-img-box { height: 180px; width: 100%; border-bottom: 1px solid var(--border); }
.review-body { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.time-badge {
  display: inline-block; font-size: 10.5px; font-weight: 800; font-family: var(--font-mono); text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px; background: #f1f5f9; color: var(--navy); margin-bottom: 10px; align-self: flex-start;
}
.timeline-quote { font-size: 13px; color: #334155; line-height: 1.6; margin-bottom: 14px; flex-grow: 1; }
.timeline-user { border-top: 1px solid #f1f5f9; padding-top: 10px; font-size: 11.5px; color: var(--muted); }
.timeline-user b { color: var(--navy); display: block; }
.verified-pill { color: var(--teal-dark); font-weight: 700; }

.science-section-full { margin: 60px 0; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 36px; box-shadow: var(--shadow); }
.science-lead-block { max-width: 840px; margin-bottom: 30px; }
.science-lead-block h3 { font-size: 24px; font-weight: 900; color: var(--navy); margin-bottom: 10px; }
.science-lead-block p { font-size: 14.5px; color: #475569; line-height: 1.7; }

.science-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.sci-pillar-card { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.sci-card-img { height: 160px; width: 100%; border-bottom: 1px solid var(--border); }
.sci-card-content { padding: 18px; flex-grow: 1; }
.sci-pillar-card .atomic-num { font-family: var(--font-mono); font-size: 11px; font-weight: 800; color: var(--electric); margin-bottom: 4px; }
.sci-pillar-card h4 { font-size: 15.5px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.sci-pillar-card p { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }
.sci-cite { font-size: 10.5px; font-family: var(--font-mono); color: #2563eb; display: block; border-top: 1px dashed #cbd5e1; padding-top: 8px; }

.steps-visual-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.step-visual-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.step-img-box { height: 190px; width: 100%; border-bottom: 1px solid var(--border); }
.step-body { padding: 20px; }
.step-tag { font-size: 11px; font-family: var(--font-mono); font-weight: 900; color: var(--electric); margin-bottom: 4px; }
.step-body h4 { font-size: 15px; color: var(--navy); margin-bottom: 6px; font-weight: 800; }
.step-body p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.practical-faq-section { margin: 60px 0; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.faq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 18px; }
.faq-card { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.faq-card h4 { font-size: 14px; font-weight: 800; color: var(--navy); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.faq-card p { font-size: 12.5px; color: #475569; line-height: 1.5; }

/* Footer */
footer.site-footer { background: var(--navy); color: #cbd5e1; padding: 48px 24px 28px; font-size: 12.5px; border-top: 1px solid #1e3a8a; }
.footer-wrap { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-col h5 { color: #fff; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #94a3b8; text-decoration: none; cursor: pointer; }
.footer-col a:hover { color: #fff; }
.disclaimer-box { max-width: 1280px; margin: 0 auto; padding-top: 20px; border-top: 1px solid #1e293b; font-size: 11px; color: #64748b; line-height: 1.6; }
.legal-entity-note { margin-top: 10px; color: #94a3b8; font-size: 11px; }
