:root {
  --brand-orange: #e84118;
  --brand-dark: #2d2d2d;
  --brand-green: #129135;
  --bg-color: #f5f5f5;
  --text-primary: #222222;
  --text-secondary: #666666;
  --border-radius: 8px;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.08);
  --temu-orange: #e84118;
  --temu-green: #129135;
  --temu-dark: #2d2d2d;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
}
a { text-decoration: none; color: inherit; }

/* ── TOP BAR ──────────────────────────────────────────────────────────── */
.top-bar {
  background-color: #000;
  color: #fff;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 8px 24px;
  font-size: 12px;
  overflow: hidden;
}
.top-bar-track { display: contents; }
.tb-dup { display: none !important; }
@keyframes top-bar-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.top-bar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 0 24px;
  position: relative;
  flex: 1; justify-content: center;
}
.top-bar-item + .top-bar-item::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 32px; background: #333;
}
.top-bar-item svg { flex-shrink: 0; }
.top-bar-strong { font-weight: 700; font-size: 13px; color: #fff; white-space: nowrap; }
.top-bar-sub { color: #aaa; font-size: 11px; }

/* ── HEADER ───────────────────────────────────────────────────────────── */
.main-header {
  background-color: var(--brand-orange);
  color: #fff;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.logo img { height: 44px; display: block; }
.logo-text {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
}
.logo-text .dot-now { color: var(--brand-dark); }
.header-nav { display: flex; gap: 4px; font-weight: 600; font-size: 13px; align-items: center; }
.header-nav a {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 6px; white-space: nowrap;
  transition: background .15s;
}
.header-nav a:hover { background: rgba(255,255,255,.15); text-decoration: none; }
.header-nav .nav-categories {
  display: flex; align-items: center; gap: 5px;
}
.header-nav .nav-categories svg.chevron { transition: transform .2s; }
.nav-categories-wrap { position: relative; }
.nav-categories-wrap:hover .nav-categories svg.chevron { transform: rotate(180deg); }

/* ── CATEGORIES DROPDOWN ─────────────────────────────────────────────── */
.categories-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  z-index: 1000;
  padding: 8px 0;
}
.nav-categories-wrap:hover .categories-dropdown { display: block; }
.cat-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: background .12s, color .12s;
}
.cat-dropdown-item:hover {
  background: #fff3ed;
  color: var(--brand-orange);
}
.cat-dropdown-item .cat-count {
  font-size: 11px;
  color: #999;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.cat-dropdown-item:hover .cat-count {
  background: var(--brand-orange);
  color: #fff;
}

/* ── PRODUCT DETAIL TABS ─────────────────────────────────────────────── */
.product-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 0;
}
.product-tab {
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.product-tab:hover { color: #333; }
.product-tab.active {
  color: var(--brand-orange);
  border-bottom-color: var(--brand-orange);
}
.tab-panel { display: none; padding: 30px 0; }
.tab-panel.active { display: block; }
.tab-panel-inner {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  max-width: 850px;
}
.tab-panel-inner h2 { font-size: 24px; color: #111; margin: 0 0 16px 0; }
.tab-panel-inner h3 { font-size: 19px; color: #222; margin: 28px 0 12px 0; }
.tab-panel-inner h4 { font-size: 16px; color: #333; margin: 22px 0 10px 0; }
.tab-panel-inner table { border-collapse: collapse; width: 100%; margin: 16px 0; }
.tab-panel-inner table th,
.tab-panel-inner table td { padding: 10px 14px; border: 1px solid #e0e0e0; font-size: 14px; }
.tab-panel-inner table thead { background: #f7f7f7; }
.tab-panel-inner img { max-width: 100%; height: auto; border-radius: 8px; }
.tab-panel-inner ul, .tab-panel-inner ol { margin-left: 20px; }
.tab-panel-inner li { margin-bottom: 6px; }

/* ── NCBI REFERENCES ─────────────────────────────────────────────────── */
.ncbi-refs { margin-top: 30px; border-top: 1px solid #eee; padding-top: 24px; }
.ncbi-refs h3 { font-size: 18px; color: #222; margin: 0 0 16px 0; }
.ncbi-ref-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}
.ncbi-ref-num {
  flex-shrink: 0;
  width: 24px; height: 24px;
  background: var(--brand-orange);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.ncbi-ref-item a {
  color: #1a73e8;
  text-decoration: none;
  word-break: break-all;
}
.ncbi-ref-item a:hover { text-decoration: underline; }

/* ── RELATED PRODUCTS ────────────────────────────────────────────────── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.search-bar {
  flex: 1;
  max-width: 560px;
  display: flex;
  background: #fff;
  border-radius: 50px;
  overflow: hidden;
  padding: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.search-input { flex: 1; border: none; padding: 9px 18px; font-size: 14px; outline: none; color: #333; }
.search-btn {
  background: var(--brand-dark);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
}
.search-btn:hover { background: #111; }

.header-actions { display: flex; align-items: center; gap: 18px; font-size: 11px; font-weight: 600; }
.action-item { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; white-space: nowrap; opacity: .95; transition: opacity .15s; }
.action-item:hover { opacity: 1; }
.action-item svg { width: 24px; height: 24px; }
.cart-icon { position: relative; }
.cart-badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--brand-dark); color: #fff;
  border-radius: 50%; width: 16px; height: 16px;
  font-size: 10px; display: flex; align-items: center; justify-content: center;
}

/* ── TRUST BANNER ─────────────────────────────────────────────────────── */
.trust-banner {
  background: linear-gradient(135deg, #0d7a3e, #129135);
  color: #fff;
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  margin: 14px auto;
  max-width: 1200px;
  box-sizing: border-box;
}
.trust-items { display: flex; gap: 20px; }
.trust-features { display: flex; gap: 16px; }

/* ── BADGE STRIP ──────────────────────────────────────────────────────── */
.badge-strip {
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 20px 16px;
}
.badge-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}
.trust-badge { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.trust-badge img { width: 64px; height: 64px; }
.trust-badge span { font-size: 10px; font-weight: 700; color: #444; letter-spacing: 0.3px; text-transform: uppercase; line-height: 1.3; }

/* ── PILL NAV ──────────────────────────────────────────────────────────── */
.pill-nav-container { display: flex; justify-content: center; margin: 16px 0; }
.pill-nav {
  display: flex; gap: 10px; overflow-x: auto;
  max-width: 1200px; padding: 0 16px 8px;
  scrollbar-width: none;
}
.pill-nav::-webkit-scrollbar { display: none; }
.pill {
  border: 1px solid #ddd; padding: 7px 16px; border-radius: 50px;
  font-size: 13px; background: #fff; white-space: nowrap; cursor: pointer; color: #333; font-weight: 500;
}
.pill:hover, .pill.active { background: var(--brand-orange); color: #fff; border-color: var(--brand-orange); }

/* ── LAYOUT ────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px 40px; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-title h2 { color: var(--brand-orange); margin: 0; font-size: 22px; font-style: italic; font-weight: 900; }
.section-title a { font-size: 13px; color: #555; font-weight: 700; }
.section-title a:hover { text-decoration: underline; }

/* ── PRODUCT GRID & CARDS ─────────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.product-card {
  background: #fff; border-radius: var(--border-radius); overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
  cursor: pointer; display: flex; flex-direction: column; box-shadow: var(--card-shadow);
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.13); }
.product-img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f0f0f0; }
.product-info { padding: 11px; display: flex; flex-direction: column; flex: 1; }
.product-title {
  font-size: 13px; color: #444; margin: 0 0 6px 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4;
}
.price-row { display: flex; align-items: baseline; gap: 4px; margin-bottom: 3px; }
.price { color: var(--brand-orange); font-weight: 800; font-size: 21px; }
.price-currency { color: var(--brand-orange); font-size: 14px; font-weight: 800; }
.original-price { color: #bbb; text-decoration: line-through; font-size: 11px; margin-left: 4px; }
.sold-count { font-size: 11px; color: #888; margin-bottom: 6px; }
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 7px; }
.tag-local { border: 1px solid var(--brand-green); color: var(--brand-green); padding: 1px 4px; font-size: 10px; border-radius: 2px; }
.tag-encore { background: var(--brand-orange); color: #fff; padding: 1px 5px; font-size: 10px; border-radius: 2px; font-weight: 700; }
.tag-bestseller { color: var(--brand-orange); font-size: 11px; font-weight: 700; }
.action-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; }
.rating { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #555; margin-top: 6px; margin-bottom: 8px; }
.stars { color: #f59e0b; }
.btn-cart {
  background: none; border: 1px solid #ccc; border-radius: 50%;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.btn-cart:hover { background: var(--brand-orange); border-color: var(--brand-orange); color: #fff; }
.btn-cart svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Full-width Add to Cart on product listing cards */
.btn-cart-full {
  width: 100%; margin-top: 8px;
  background: var(--brand-orange); color: #fff;
  border: none; border-radius: 8px;
  padding: 10px 12px; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; transition: background 0.2s; line-height: 1;
}
.btn-cart-full:hover { background: #d45500; }
.btn-cart-full svg { flex-shrink: 0; }

/* Quantity selector on product detail */
.qty-row { display: flex; align-items: center; gap: 0; border: 1.5px solid #ddd; border-radius: 10px; overflow: hidden; width: fit-content; }
.qty-btn {
  width: 44px; height: 44px; border: none; background: #f5f5f5;
  font-size: 22px; font-weight: 300; cursor: pointer; color: var(--brand-orange);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s; line-height: 1;
}
.qty-btn:hover { background: #ffe8d6; }
.qty-input {
  width: 56px; height: 44px; border: none; border-left: 1.5px solid #ddd; border-right: 1.5px solid #ddd;
  text-align: center; font-size: 16px; font-weight: 600; color: #222;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── STATIC / EEAT PAGES ─────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--brand-orange) 0%, #c4360e 100%);
  color: #fff; padding: 60px 24px; text-align: center;
}
.page-hero h1 { margin: 0 0 12px; font-size: 2.4rem; font-weight: 900; }
.page-hero p { margin: 0 auto; max-width: 640px; font-size: 1.1rem; opacity: .9; line-height: 1.6; }

.page-body { max-width: 900px; margin: 0 auto; padding: 48px 24px 80px; }
.page-body h2 { color: var(--brand-orange); margin-top: 40px; font-size: 1.4rem; }
.page-body h3 { color: var(--brand-dark); margin-top: 28px; }
.page-body p, .page-body li { line-height: 1.75; color: #444; }
.page-body ul, .page-body ol { padding-left: 24px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 32px 0; }
.feature-card {
  background: #fff; border-radius: 12px; padding: 28px 20px;
  box-shadow: var(--card-shadow); text-align: center;
}
.feature-card .icon { font-size: 2.4rem; margin-bottom: 14px; }
.feature-card h3 { margin: 0 0 10px; color: var(--brand-dark); font-size: 1rem; }
.feature-card p { margin: 0; font-size: 0.9rem; color: #555; line-height: 1.6; }

.faq-item { background: #fff; border-radius: 8px; margin-bottom: 10px; overflow: hidden; box-shadow: var(--card-shadow); }
.faq-q { padding: 18px 20px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--brand-dark); }
.faq-q:hover { background: #fef4f1; }
.faq-a { padding: 0 20px 18px; color: #555; line-height: 1.7; border-top: 1px solid #f0f0f0; }

.shipping-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 20px 0; }
.shipping-table th { background: var(--brand-orange); color: #fff; padding: 12px 16px; text-align: left; }
.shipping-table td { padding: 12px 16px; border-bottom: 1px solid #eee; }
.shipping-table tr:nth-child(even) td { background: #fafafa; }

/* ── FOOTER ────────────────────────────────────────────────────────────── */
.site-footer { background-color: #1a1a1a; color: #fff; padding: 48px 24px 24px; }
.footer-logo { text-align: center; margin-bottom: 32px; }
.footer-logo img { height: 38px; }
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px; font-size: 13px; border-top: 1px solid #333; padding-top: 32px;
}
.footer-col h3 { font-size: 14px; margin: 0 0 14px; color: #fff; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #888; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-badges {
  max-width: 1200px; margin: 28px auto 0;
  border-top: 1px solid #333; padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
}
.footer-badges img { height: 48px; opacity: .75; }
.footer-badges img:hover { opacity: 1; }
.footer-bottom {
  max-width: 1200px; margin: 24px auto 0;
  border-top: 1px solid #333; padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #666; flex-wrap: wrap; gap: 8px;
}

/* ── FLASH ─────────────────────────────────────────────────────────────── */
.flash { background: #fff8e1; border-left: 4px solid var(--brand-orange); padding: 10px 16px; border-radius: 4px; margin-bottom: 16px; }
.flash-error { background: #fff0f0; border-color: #e53935; }

/* ── TRUST RIBBON ─────────────────────────────────────────────────────── */
.trust-ribbon {
  background: linear-gradient(135deg,#0d7a3e,#129135);
  color:#fff; font-size:12px; padding:8px 16px;
}
.trust-ribbon-inner {
  max-width:1200px; margin:0 auto;
  display:flex; flex-wrap:wrap; gap:12px 20px; justify-content:center; align-items:center;
}
.ribbon-item { display:inline-flex; align-items:center; gap:5px; }

/* ── LOGO ─────────────────────────────────────────────────────────────── */
.logo-link {
  display: flex; align-items: center; flex-shrink: 0;
}
.logo-img {
  display: block;
  height: 88px;
  width: auto;
  object-fit: contain;
}

/* ── HERO BANNER ──────────────────────────────────────────────────────── */
/* ── HERO CAROUSEL ────────────────────────────────────────────────── */
.hero-carousel {
  position:relative; overflow:hidden; background:#0a0a0a;
}
.hero-slides { position:relative; height:480px; }
.hero-slide {
  position:absolute; inset:0; opacity:0;
  background-size:cover; background-position:center;
  transition:opacity .8s ease;
}
.hero-slide.active { opacity:1; z-index:1; }
.hero-overlay {
  position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 50%, rgba(0,0,0,.15) 100%);
}
.hero-slide-content {
  position:relative; z-index:2; max-width:1200px; margin:0 auto;
  padding:80px 40px; color:#fff; max-width:620px;
  margin-left:max(40px, calc((100% - 1200px)/2 + 40px));
}
.hero-badge {
  display:inline-flex; align-items:center; gap:6px;
  background:rgba(255,255,255,.12); backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.2);
  padding:6px 16px; border-radius:50px;
  font-size:11px; font-weight:700; letter-spacing:1.5px;
  margin-bottom:20px; color:#fff;
}
.hero-slide-content h1 {
  font-size:2.8rem; font-weight:900; margin:0 0 16px; line-height:1.1;
  letter-spacing:-.5px; color:#fff;
}
.hero-slide-content p {
  font-size:1.05rem; line-height:1.7; margin:0 0 28px;
  color:rgba(255,255,255,.85); max-width:520px;
}
.hero-cta-row { display:flex; gap:14px; flex-wrap:wrap; }
.btn-hero-primary {
  background:var(--brand-orange); color:#fff;
  padding:14px 30px; border-radius:8px; font-weight:700; font-size:15px;
  transition:transform .15s,box-shadow .15s; border:none; cursor:pointer;
  text-decoration:none; display:inline-block;
}
.btn-hero-primary:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(232,65,24,.35); color:#fff; }
.btn-hero-outline {
  border:2px solid rgba(255,255,255,.5); color:#fff;
  padding:12px 26px; border-radius:8px; font-weight:600; font-size:14px;
  transition:background .15s,border-color .15s; text-decoration:none; display:inline-block;
}
.btn-hero-outline:hover { background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.8); color:#fff; }

/* Arrows */
.hero-arrow {
  position:absolute; top:50%; transform:translateY(-50%); z-index:5;
  width:44px; height:44px; border-radius:50%;
  background:rgba(255,255,255,.1); backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.2);
  color:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:background .2s;
}
.hero-arrow:hover { background:rgba(255,255,255,.25); }
.hero-arrow-left { left:20px; }
.hero-arrow-right { right:20px; }

/* Dots */
.hero-dots {
  position:absolute; bottom:60px; left:50%; transform:translateX(-50%); z-index:5;
  display:flex; gap:8px;
}
.hero-dot {
  width:10px; height:10px; border-radius:50%;
  background:rgba(255,255,255,.3); border:none; cursor:pointer;
  transition:background .2s,transform .2s;
}
.hero-dot.active { background:#fff; transform:scale(1.2); }
.hero-dot:hover { background:rgba(255,255,255,.6); }

/* Trust Bar */
.hero-trust-bar {
  position:absolute; bottom:0; left:0; right:0; z-index:5;
  display:flex; justify-content:center; gap:32px; flex-wrap:wrap;
  padding:12px 24px;
  background:rgba(0,0,0,.5); backdrop-filter:blur(10px);
  border-top:1px solid rgba(255,255,255,.08);
}
.hero-trust-item {
  display:flex; align-items:center; gap:6px;
  color:rgba(255,255,255,.8); font-size:12px; font-weight:600;
  letter-spacing:.3px;
}
.hero-trust-item svg { opacity:.7; }

/* Keep old btn classes for other pages */
.btn-primary {
  background:#fff; color:var(--brand-orange);
  padding:13px 28px; border-radius:50px; font-weight:800; font-size:15px;
  transition:transform .15s,box-shadow .15s;
}
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 6px 16px rgba(0,0,0,.2); }
.btn-outline-white {
  border:2px solid rgba(255,255,255,.7); color:#fff;
  padding:11px 24px; border-radius:50px; font-weight:700; font-size:14px;
  transition:background .15s;
}
.btn-outline-white:hover { background:rgba(255,255,255,.15); }

/* Responsive hero */
@media (max-width:768px) {
  .hero-slides { height:420px; }
  .hero-slide-content {
    padding:50px 24px 70px; margin-left:0;
  }
  .hero-slide-content h1 { font-size:1.8rem; }
  .hero-slide-content p { font-size:.9rem; }
  .hero-arrow { display:none; }
  .hero-trust-bar { gap:16px; padding:10px 16px; }
  .hero-trust-item { font-size:10px; }
}

/* ── SCROLL ROW (horizontal deal cards) ──────────────────────────────── */
.scroll-row-wrap { position:relative; }
.scroll-row {
  display:flex; gap:12px; overflow-x:auto; padding-bottom:8px;
  scrollbar-width:none;
}
.scroll-row::-webkit-scrollbar { display:none; }
.scroll-row .product-card { min-width:180px; max-width:200px; flex-shrink:0; }
.scroll-hint {
  display:none;
  position:absolute; right:0; top:50%; transform:translateY(-50%);
  background:linear-gradient(to right, transparent, rgba(255,255,255,.95) 40%);
  width:52px; height:100%; align-items:center; justify-content:flex-end;
  padding-right:6px; pointer-events:none;
}

/* ── PRODUCT IMAGE BADGE ──────────────────────────────────────────────── */
.product-img-wrap { position:relative; }
.product-img-wrap .product-img { width:100%; aspect-ratio:1; object-fit:cover; background:#f0f0f0; display:block; }
.img-badge {
  position:absolute; top:8px; left:8px;
  padding:3px 8px; border-radius:4px; font-size:10px; font-weight:800;
  letter-spacing:.5px; text-transform:uppercase;
}
.img-badge--hot { background:var(--brand-orange); color:#fff; }
.img-badge--new { background:#1565c0; color:#fff; }
.img-badge--coa { background:#2e7d32; color:#fff; }

/* ── PARTNER BANNER ───────────────────────────────────────────────────── */
.partner-banner {
  display:flex; align-items:center; justify-content:space-between;
  background:#fff; border:1px solid #eee; border-radius:10px;
  padding:16px 24px; margin:28px 0; cursor:pointer;
  transition:box-shadow .15s;
}
.partner-banner:hover { box-shadow:0 4px 12px rgba(0,0,0,.08); }
.partner-left { display:flex; align-items:center; gap:12px; font-size:15px; }
.partner-brand { font-weight:900; color:var(--brand-orange); font-size:18px; }
.partner-x { color:#aaa; font-size:20px; }
.partner-ship { font-weight:700; color:#333; }
.partner-right { display:flex; align-items:center; gap:8px; font-size:14px; color:var(--brand-orange); font-weight:700; }

/* ── ENCORE / CATEGORY SECTION ────────────────────────────────────────── */
.encore-header { text-align:center; margin:40px 0 20px; }
.encore-title { font-size:13px; font-weight:900; color:var(--brand-orange); letter-spacing:2px; }
.encore-sub { color:#666; font-size:14px; margin:6px 0 0; }

.category-grid {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:12px; margin-bottom:8px;
}
.cat-tile {
  border-radius:12px; padding:20px 12px;
  display:flex; flex-direction:column; align-items:center; gap:10px;
  transition:transform .15s,box-shadow .15s; border:1px solid #eee;
}
.cat-tile:hover { transform:translateY(-3px); box-shadow:0 6px 16px rgba(0,0,0,.1); }
.cat-icon { font-size:2rem; }
.cat-name { font-size:12px; font-weight:700; color:#333; text-align:center; line-height:1.3; }

/* ── WHY US STRIP ─────────────────────────────────────────────────────── */
.why-strip {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:0; background:#fff; border-radius:12px; overflow:hidden;
  box-shadow:var(--card-shadow); margin:40px 0;
}
.why-item {
  display:flex; align-items:flex-start; gap:14px;
  padding:24px 20px; border-right:1px solid #f0f0f0;
}
.why-item:last-child { border-right:none; }
.why-icon { font-size:2rem; flex-shrink:0; }
.why-text { display:flex; flex-direction:column; gap:4px; }
.why-text strong { font-size:14px; color:#222; }
.why-text span { font-size:12px; color:#777; line-height:1.5; }

/* ── STATIC PAGE HERO ─────────────────────────────────────────────────── */
.page-hero {
  background:linear-gradient(135deg,var(--brand-orange) 0%,#c4360e 100%);
  color:#fff; padding:60px 24px; text-align:center;
}
.page-hero h1 { margin:0 0 12px; font-size:2.4rem; font-weight:900; }
.page-hero p { margin:0 auto; max-width:640px; font-size:1.05rem; opacity:.9; line-height:1.65; }

.page-body { max-width:900px; margin:0 auto; padding:48px 24px 80px; }
.page-body h2 { color:var(--brand-orange); margin-top:40px; font-size:1.4rem; border-bottom:2px solid #fce8e2; padding-bottom:8px; }
.page-body h3 { color:var(--brand-dark); margin-top:28px; }
.page-body p,.page-body li { line-height:1.78; color:#444; }
.page-body ul,.page-body ol { padding-left:24px; }

.feature-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:20px; margin:32px 0; }
.feature-card { background:#fff; border-radius:12px; padding:28px 20px; box-shadow:var(--card-shadow); text-align:center; }
.feature-card .icon { font-size:2.4rem; margin-bottom:14px; }
.feature-card h3 { margin:0 0 10px; color:var(--brand-dark); font-size:1rem; }
.feature-card p { margin:0; font-size:.9rem; color:#555; line-height:1.6; }

.faq-item { background:#fff; border-radius:8px; margin-bottom:10px; box-shadow:var(--card-shadow); overflow:hidden; }
.faq-q {
  padding:18px 20px; font-weight:700; cursor:pointer;
  display:flex; justify-content:space-between; align-items:center;
  color:var(--brand-dark); user-select:none;
}
.faq-q:hover { background:#fef4f1; }
.faq-a { padding:0 20px 18px; color:#555; line-height:1.75; border-top:1px solid #f0f0f0; }

.shipping-table { width:100%; border-collapse:collapse; font-size:.9rem; margin:20px 0; border-radius:8px; overflow:hidden; }
.shipping-table th { background:var(--brand-orange); color:#fff; padding:12px 16px; text-align:left; }
.shipping-table td { padding:12px 16px; border-bottom:1px solid #eee; }
.shipping-table tr:nth-child(even) td { background:#fafafa; }

/* ── TEAM / ABOUT ─────────────────────────────────────────────────────── */
.team-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:24px; margin:32px 0; }
.team-card { background:#fff; border-radius:12px; overflow:hidden; box-shadow:var(--card-shadow); text-align:center; }
.team-card img { width:100%; height:200px; object-fit:cover; object-position:top; }
.team-card-body { padding:16px; }
.team-card-body h4 { margin:0 0 4px; color:#222; font-size:1rem; }
.team-card-body p { margin:0; font-size:.85rem; color:#777; }

/* ── CTA BANNER ───────────────────────────────────────────────────────── */
.cta-banner {
  background:linear-gradient(135deg,var(--brand-orange),#c4360e);
  color:#fff; border-radius:16px; padding:48px 32px;
  text-align:center; margin:48px 0;
}
.cta-banner h2 { margin:0 0 12px; font-size:1.8rem; }
.cta-banner p { margin:0 auto 24px; max-width:500px; opacity:.9; }

/* ── MOBILE NAV DRAWER ──────────────────────────────────────────────────── */
.mobile-menu-btn { display:none; background:none; border:none; cursor:pointer; padding:6px; flex-shrink:0; }
.mobile-nav-overlay {
  display:none; position:fixed; inset:0; background:rgba(0,0,0,.5);
  z-index:998; opacity:0; transition:opacity .3s;
}
.mobile-nav-overlay.open { display:block; opacity:1; }
.mobile-nav-drawer {
  position:fixed; top:0; left:-300px; width:300px; height:100%;
  background:#fff; z-index:999; overflow-y:auto;
  transition:left .3s ease; box-shadow:4px 0 24px rgba(0,0,0,.15);
}
.mobile-nav-drawer.open { left:0; }
.mobile-nav-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 20px; border-bottom:1px solid #eee;
  background:#1a1a1a;
}
.mobile-nav-search {
  display:flex; margin:12px 16px; border:1px solid #eee;
  border-radius:8px; overflow:hidden; background:#f9f9f9;
}
.mobile-nav-links {
  display:flex; flex-direction:column;
}
.mobile-nav-links a {
  display:flex; align-items:center; justify-content:space-between;
  padding:13px 20px; font-size:14px; font-weight:600; color:#333;
  border-bottom:1px solid #f5f5f5; text-decoration:none;
  transition:background .12s;
}
.mobile-nav-links a:hover { background:#fff3ed; color:var(--brand-orange); }
.mobile-nav-section-title {
  padding:12px 20px 6px; font-size:11px; font-weight:700; color:#999;
  text-transform:uppercase; letter-spacing:.5px;
}
.mobile-nav-cats a { font-weight:500; font-size:13px; padding:10px 20px; }

/* ══════════════════════════════════════════════════════════════════════════
   TABLET BREAKPOINT (max-width: 1024px)
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width:1024px) {
  /* Header: hide desktop nav, show hamburger */
  .header-nav { display:none !important; }
  .mobile-menu-btn { display:flex; }
  .main-header { flex-wrap:wrap; padding:8px 12px 0; gap:8px; }
  .logo-link { flex:1; }
  .logo-img { height:86px !important; }
  .search-bar { order:10; flex-basis:100%; max-width:100%; margin-bottom:8px; }
  .search-input { font-size:16px !important; padding:9px 14px; }
  .action-desktop { display:none !important; }
  .header-actions { gap:10px; }
  .action-item span { display:none; }
  .action-item svg { width:22px; height:22px; }
  .cart-icon span { display:none; }

  /* Table overflow for product descriptions */
  .tab-panel-inner table, .product-desc table { display:block; overflow-x:auto; -webkit-overflow-scrolling:touch; max-width:100%; }

  /* Footer 2-col on tablet */
  .footer-grid { grid-template-columns:1fr 1fr !important; gap:24px; }

  /* Hero: trust bar below slides, no overlap */
  .hero-trust-bar { position:relative; background:#111; border-top:none; gap:16px; padding:10px 16px; }
  .hero-slides { height:500px; }
  .hero-slide-content { padding:40px 24px 36px; margin-left:0; }
  .hero-dots { bottom:14px; }
  .hero-dot { width:6px; height:6px; }

  /* Top bar: simplify */
  .top-bar { padding:6px 12px; gap:4px; }
  .top-bar-item { padding:0 8px; }
  .top-bar-sub { display:none; }
  .top-bar-item + .top-bar-item::before { display:none; }

  /* Trust ribbon: wrap tighter */
  .trust-ribbon { padding:6px 10px; }
  .trust-ribbon-inner { gap:8px 14px; font-size:11px; }

  /* Badge strip */
  .badge-strip { padding:14px 10px; }
  .badge-strip-inner { gap:14px; }
  .trust-badge img { width:48px; height:48px; }
  .trust-badge span { font-size:9px; }

  /* Product detail: stack image + buy box */
  .pd-top-flex { flex-direction:column !important; gap:20px !important; padding:16px !important; }
  .pd-image-col { max-width:100% !important; }
  .pd-buy-col { flex:none !important; width:100% !important; }

  /* Product tabs: scroll */
  .product-tabs { overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
  .product-tabs::-webkit-scrollbar { display:none; }
  .product-tab { padding:12px 16px; font-size:13px; }

  /* Cart layout */
  .cart-layout { grid-template-columns:1fr !important; }
  .cart-header-row { display:none !important; }
  .cart-item-row {
    grid-template-columns:1fr auto !important;
    grid-template-rows:auto auto !important;
    gap:8px !important; padding:14px 16px !important;
  }

  /* Checkout layout */
  .checkout-layout { grid-template-columns:1fr !important; }

  /* Why us strip */
  .why-strip { grid-template-columns:1fr 1fr !important; }
  .why-item { border-right:none !important; border-bottom:1px solid #f0f0f0; }

  /* Partner banner */
  .partner-banner { flex-direction:column !important; text-align:center; gap:10px; padding:16px; }
  .partner-left { flex-wrap:wrap; justify-content:center; }
  .partner-right { font-size:13px; }

  /* Footer */
  .footer-grid { grid-template-columns:1fr 1fr !important; gap:24px; }
  .footer-bottom { flex-direction:column; text-align:center; }
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE BREAKPOINT (max-width: 768px)
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width:768px) {
  .hero-slides { height:500px; }
  .hero-slide-content { padding:40px 24px 36px; margin-left:0; }
  .hero-slide-content h1 { font-size:1.8rem; }
  .hero-slide-content p { font-size:.9rem; }
  .hero-arrow { display:none; }
  .hero-trust-bar { position:relative; background:#111; border-top:none; gap:16px; padding:10px 16px; }
  .hero-trust-item { font-size:10px; }

  /* Top bar: compact single row */
  .top-bar { padding:6px 8px; font-size:10px; }
  .top-bar-item { padding:0 4px; gap:4px; }
  .top-bar-item svg { width:16px; height:16px; }
  .top-bar-strong { font-size:11px; }

  /* Header */
  .main-header { padding:6px 10px; gap:6px; }
  .logo-img { height:86px !important; }
  .search-bar { min-width:0; flex:1; max-width:none; }
  .search-input { padding:7px 10px; font-size:13px; }
  .search-btn { padding:0 12px; }

  /* Container */
  .container { padding:0 12px 32px; }

  /* Page hero & body */
  .page-hero { padding:36px 16px !important; }
  .page-hero h1 { font-size:1.6rem !important; }
  .page-hero p { font-size:.95rem !important; }
  .page-body { padding:28px 16px 48px !important; }

  /* Product grid: 2 columns */
  .product-grid { grid-template-columns:repeat(2, 1fr) !important; gap:8px; }
  .review-form-grid { grid-template-columns:1fr !important; }
  .product-info { padding:8px; }
  .product-title { font-size:12px; }
  .price { font-size:17px; }
  .sold-count { font-size:10px; }

  /* Category grid */
  .category-grid { grid-template-columns:repeat(3, 1fr) !important; gap:8px; }
  .cat-tile { padding:14px 8px; }
  .cat-name { font-size:11px; }

  /* Related products */
  .related-grid { grid-template-columns:repeat(2, 1fr) !important; gap:10px; }

  /* Product detail sections */
  .pd-top-flex { padding:12px !important; gap:16px !important; }

  /* Pill nav */
  .pill-nav { padding:0 12px 8px; gap:6px; }
  .pill { padding:6px 12px; font-size:12px; }

  /* Section titles */
  .section-title h2 { font-size:16px !important; }

  /* Scroll row cards */
  .scroll-row .product-card { min-width:150px; max-width:170px; }

  /* Feature grid */
  .feature-grid { grid-template-columns:1fr !important; gap:12px; }

  /* Why strip: single column */
  .why-strip { grid-template-columns:1fr !important; }

  /* Team grid */
  .team-grid { grid-template-columns:1fr 1fr !important; gap:12px; }

  /* Footer */
  .site-footer { padding:32px 16px 16px; }
  .footer-grid { grid-template-columns:1fr !important; gap:20px; padding-top:20px; }
  .footer-bottom { flex-direction:column; text-align:center; gap:4px; }

  /* CTA banner */
  .cta-banner { padding:32px 16px; margin:32px 0; }
  .cta-banner h2 { font-size:1.3rem; }

  /* Badge strip: 4 per row */
  .badge-strip-inner { gap:10px; }
  .trust-badge { flex:0 0 calc(25% - 10px); }
  .trust-badge img { width:60px; height:60px; }
  .trust-badge span { font-size:11px; }

  /* NCBI refs */
  .ncbi-ref-item { font-size:12px; gap:8px; }

  /* Shipping table scroll */
  .shipping-table { display:block; overflow-x:auto; }

  /* Tab content */
  .tab-panel { padding:20px 0; }
  .tab-panel-inner { font-size:14px; }
  .tab-panel-inner h2 { font-size:20px; }
  .tab-panel-inner h3 { font-size:16px; }
  .tab-panel-inner table { display:block; overflow-x:auto; }
}

/* ══════════════════════════════════════════════════════════════════════════
   SMALL MOBILE (max-width: 480px)
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width:480px) {
  /* Top bar: scrolling marquee showing full text */
  .top-bar { justify-content:flex-start; padding:0; gap:0; }
  .top-bar-track {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 8px 0;
    animation: top-bar-marquee 22s linear infinite;
    will-change: transform;
  }
  .top-bar-item { flex-shrink:0; padding:0 20px; gap:8px; }
  .top-bar-item > div { display:block !important; }
  .top-bar-item + .top-bar-item::before { display:flex; }
  .top-bar-strong { font-size:12px; }
  .top-bar-sub { font-size:10px; }
  .tb-dup { display:flex !important; }

  /* Header minimal */
  .logo-img { height:86px !important; }
  .header-actions { gap:6px; }
  .cart-badge { width:14px; height:14px; font-size:9px; }
  .footer-grid { grid-template-columns:1fr 1fr !important; gap:16px; }
  .site-footer { padding:28px 14px 16px; }
  .site-footer > div:first-child img { height:56px !important; }
  .site-footer > div:first-child p { font-size:15px !important; }

  /* Hero: trust bar flows below slides, no overlap */
  .hero-slides { height:345px; }
  .hero-slide-content { padding:24px 16px 24px; }
  .hero-slide-content h1 { font-size:1.4rem; }
  .hero-cta-row { flex-direction:column; gap:8px; }
  .btn-hero-primary { width:100%; text-align:center; padding:11px 20px; font-size:14px; }
  .btn-hero-outline { width:100%; text-align:center; padding:10px 20px; font-size:13px; background:rgba(255,255,255,.15); border-color:rgba(255,255,255,.6); }
  .hero-trust-bar { position:relative; background:#111; gap:12px; padding:10px 12px; border-top:none; }
  .hero-trust-item { font-size:10px; gap:4px; }
  .hero-trust-item svg { width:13px; height:13px; }
  .hero-dots { bottom:14px; }
  .hero-dot { width:6px; height:6px; }

  /* Product grid: keep 2 cols but tighter */
  .product-grid { gap:6px; }
  .product-card { border-radius:6px; }
  .product-info { padding:6px; }
  .price { font-size:15px; }

  /* Scroll hint: show on mobile */
  .scroll-hint { display:flex; }

  /* Category grid: 2 cols */
  .category-grid { grid-template-columns:repeat(2, 1fr) !important; }

  /* Trust ribbon: hide on very small */
  .trust-ribbon { display:none; }

  /* Badge strip: 4 per row smaller */
  .trust-badge { flex:0 0 calc(25% - 8px); }
  .trust-badge img { width:56px; height:56px; }
  .trust-badge span { font-size:10px; }

  /* Scroll row */
  .scroll-row .product-card { min-width:130px; max-width:150px; }

  /* Page body text */
  .page-hero h1 { font-size:1.3rem !important; }
  .page-body h2 { font-size:1.15rem; }

  /* Article body */
  .article-body { font-size:14px !important; line-height:1.7 !important; }
  .article-body h2 { font-size:1.15rem !important; }
  .article-body h3 { font-size:1rem !important; }
  .article-body table { display:block; overflow-x:auto; }
  .article-body blockquote { padding:10px 14px; margin:16px 0; }

  /* Article hero */
  .article-hero-img img { height:240px !important; }
  .article-hero-text { padding:28px 16px 32px !important; }
  .article-title { font-size:1.4rem !important; }

  /* Related articles */
  .related-articles-grid { grid-template-columns:1fr !important; }

  /* Content hub grids - inline override */
  .page-body div[style*="grid-template-columns:repeat"] { grid-template-columns:1fr !important; }
  .container div[style*="grid-template-columns:repeat(auto-fit,minmax(200px"] { grid-template-columns:1fr 1fr !important; }

  /* Auth forms */
  .page-body form input[type="text"],
  .page-body form input[type="email"],
  .page-body form input[type="password"],
  .page-body form textarea { font-size:16px !important; }

  /* Orders dashboard verification banner */
  .page-body > div[style*="display:flex"][style*="gap:14px"] { flex-direction:column !important; text-align:center; }
}
