/* =========================================================
   BIOBULK LABS — SHARED DESIGN SYSTEM
   ========================================================= */

:root {
  --bg: #050706;
  --bg-alt: #090c0a;
  --surface: #0d110e;
  --surface-2: #12160f;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(0, 255, 156, 0.35);
  --accent: #00ff9c;
  --accent-dim: rgba(0, 255, 156, 0.14);
  --accent-ink: #04140d;
  --text: #f2f5f2;
  --text-dim: #96a29b;
  --text-faint: #5c665f;
  --danger: #ff5f6d;
  --hero-glow: rgba(0, 255, 156, 0.10);
  --banner-glow: rgba(0, 255, 156, 0.08);
  --media-bg: #060806;
  --nav-bg: rgba(5, 7, 6, 0.88);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --maxw: 1180px;
}

[data-theme="light"] {
  --bg: #f6f9f7;
  --bg-alt: #eef3ef;
  --surface: #ffffff;
  --surface-2: #f1f5f2;
  --border: rgba(13, 30, 20, 0.10);
  --border-strong: rgba(5, 150, 90, 0.35);
  --accent: #059669;
  --accent-dim: rgba(5, 150, 105, 0.12);
  --accent-ink: #ffffff;
  --text: #0d130f;
  --text-dim: #495650;
  --text-faint: #8b968f;
  --danger: #dc3f4e;
  --hero-glow: rgba(5, 150, 105, 0.08);
  --banner-glow: rgba(5, 150, 105, 0.06);
  --media-bg: #eef3ef;
  --nav-bg: rgba(246, 249, 247, 0.88);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
  transition: background-color .25s ease, color .25s ease;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; transition: color .25s ease; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

button { font-family: inherit; cursor: pointer; }

/* ---------- utility type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 20px; }
p { color: var(--text-dim); }

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { margin-top: 14px; font-size: 16px; }

/* =========================================================
   TOP STRIP
   ========================================================= */
.top-strip {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  padding: 8px 0;
  overflow: hidden;
}
.top-strip .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  white-space: nowrap;
}
.top-strip span { color: var(--accent); }
@media (max-width: 640px) {
  .top-strip .wrap { justify-content: center; }
  .top-strip .strip-right { display: none; }
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 34px; width: 34px; border-radius: 7px; object-fit: cover; }
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.brand-name b { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; color: var(--text-dim); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  position: relative;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  background: transparent;
}
.icon-btn:hover { border-color: var(--border-strong); }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 10.5px; font-weight: 800;
  min-width: 18px; height: 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.cart-badge[data-cart-count="0"] { display: none; }
.btn-menu { display: none; }

/* Language selector */
.lang-select {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 13px;
  font-family: inherit;
  max-width: 128px;
}
.lang-select:hover { border-color: var(--border-strong); }
.lang-select option { background: var(--surface); color: var(--text); }
.mobile-nav .lang-select { width: 100%; max-width: none; padding: 12px 14px; font-size: 14px; }
.lang-select-compact {
  max-width: 56px;
  width: 56px;
  padding: 9px 4px;
  text-align: center;
  text-align-last: center;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14.5px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--border-strong); color: var(--accent); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* Mobile drawer nav */
.mobile-nav {
  position: fixed; inset: 0 0 0 auto;
  width: min(320px, 82vw);
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform .35s ease;
  padding: 90px 28px 28px;
  display: flex; flex-direction: column; gap: 22px;
}
.mobile-nav.active { transform: translateX(0); }
.mobile-nav a { font-size: 17px; color: var(--text); }

.scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 1100;
}
.scrim.active { opacity: 1; pointer-events: all; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .btn-menu { display: flex; }
}
@media (max-width: 480px) {
  .nav-inner { padding: 14px 16px; }
  .wrap { padding: 0 16px; }
  .nav-actions { gap: 6px; }
  .brand-name { font-size: 13px; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 76px 0 60px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 85% -10%, var(--hero-glow), transparent 45%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: 17px;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.stat-row {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.stat-row div { flex: 1; padding-right: 18px; border-right: 1px solid var(--border); }
.stat-row div:last-child { border-right: none; }
.stat-row strong { display: block; font-size: 24px; font-weight: 800; color: var(--accent); }
.stat-row span { font-size: 12.5px; color: var(--text-dim); }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/5;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5,7,6,.85));
}
.hero-badge {
  position: absolute; left: 20px; bottom: 20px; z-index: 2;
  background: rgba(5,7,6,.85);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: #f2f5f2;
  padding: 12px 16px;
  font-size: 13px;
}
.hero-badge strong { color: var(--accent); display: block; font-size: 15px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stat-row { flex-wrap: wrap; gap: 18px; }
  .stat-row div { flex: 1 1 40%; border-right: none; padding-right: 0; }
  .hero-visual { order: -1; aspect-ratio: 16/9; }
}

/* =========================================================
   WHY CHOOSE / COMPARISON TABLE
   ========================================================= */
.why-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.why-table th, .why-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.why-table thead th {
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
  font-weight: 600;
}
.why-table tbody tr:last-child td { border-bottom: none; }
.why-table tbody tr:hover { background: rgba(255,255,255,.02); }
.why-table td:first-child { font-weight: 700; width: 30%; }
.why-table td:last-child { color: var(--text-dim); }

@media (max-width: 700px) {
  .why-table thead { display: none; }
  .why-table, .why-table tbody, .why-table tr, .why-table td { display: block; width: 100%; }
  .why-table tr { border-bottom: 1px solid var(--border); padding: 14px 0; }
  .why-table td { border: none; padding: 4px 24px; }
}

/* =========================================================
   CATEGORY CHIPS
   ========================================================= */
.chip-row {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.chip {
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--text-dim);
  background: var(--surface);
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }

/* =========================================================
   PRODUCT GRID / CARD
   ========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex; flex-direction: column;
  transition: border-color .25s ease, transform .25s ease;
  position: relative;
}
.product-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.product-media {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1/1;
  margin-bottom: 14px;
  background: var(--media-bg);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.product-tag {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 4px 9px;
  border-radius: 6px;
  font-weight: 700;
}
.product-cat {
  font-size: 11.5px;
  color: var(--text-faint);
  text-transform: capitalize;
  margin-bottom: 4px;
}
.product-card h3 { font-size: 16px; margin-bottom: 6px; cursor: pointer; }
.product-price {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
  margin-top: auto;
}
.product-card .btn { margin-top: 0; }

/* =========================================================
   FILTER / SEARCH BAR
   ========================================================= */
.filter-bar {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.search-box {
  position: relative;
  flex: 1; min-width: 220px; max-width: 340px;
}
.search-box input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
}
.search-box input:focus { border-color: var(--border-strong); }
.search-box i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-faint); }

/* =========================================================
   WHOLESALE BANNER + FAQ + ABOUT TEASER
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.banner {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, var(--banner-glow), transparent 60%), var(--surface);
  padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.banner h2 { margin-bottom: 10px; }
.banner p { max-width: 480px; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left;
  background: none; border: none; color: var(--text);
  padding: 20px 4px; font-size: 15.5px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q i { color: var(--accent); transition: transform .25s ease; flex-shrink: 0; }
.faq-item.active .faq-q i { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  color: var(--text-dim); font-size: 14.5px; padding: 0 4px;
}
.faq-item.active .faq-a { max-height: 300px; padding-bottom: 20px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 72px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); margin-bottom: 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { height: 30px; width: 30px; border-radius: 6px; }
.footer p, .footer a { color: var(--text-dim); font-size: 14px; display: block; margin-bottom: 12px; }
.footer a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 14px; margin-top: 18px; }
.footer-social a { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12.5px; color: var(--text-faint);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================
   FLOATING WHATSAPP + LIVE POPUP
   ========================================================= */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 950;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 27px;
  box-shadow: 0 10px 25px rgba(37,211,102,.35);
}
.whatsapp-float:hover { transform: scale(1.08); }

.live-popup {
  position: fixed; bottom: 24px; left: 24px; z-index: 950;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13px;
  max-width: 260px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: .4s cubic-bezier(.16,1,.3,1);
}
.live-popup.show { transform: translateY(0); opacity: 1; }
@media (max-width: 520px) { .live-popup { left: 16px; right: 16px; max-width: none; bottom: 92px; } }

/* =========================================================
   CART DRAWER
   ========================================================= */
.cart-drawer {
  position: fixed; top: 0; right: -100%; height: 100%; width: min(400px, 100%);
  background: var(--surface); border-left: 1px solid var(--border);
  z-index: 1300; padding: 24px; display: flex; flex-direction: column;
  transition: right .35s ease;
}
.cart-drawer.active { right: 0; }
.cart-drawer-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.cart-items { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; gap: 10px; }
.cart-item .name { font-size: 13.5px; font-weight: 600; }
.cart-item .sub { font-size: 12px; color: var(--text-dim); font-family: var(--font-mono); }
.qty-controls { display: flex; align-items: center; gap: 8px; }
.qty-controls button { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--border); background: transparent; color: var(--text); }
.cart-remove { color: var(--danger); background: none; border: none; font-size: 15px; }
.cart-footer { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 18px; }
.cart-total-row { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 14px; }
.cart-empty { text-align: center; color: var(--text-faint); padding: 40px 10px; font-size: 14px; }

/* =========================================================
   MODAL (variant selector / checkout / confirmation)
   ========================================================= */
.modal-scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,.75); backdrop-filter: blur(6px);
  z-index: 1400; display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-scrim.active { display: flex; }
.modal-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; width: 100%; max-width: 420px;
  position: relative; max-height: 90vh; overflow-y: auto;
}
.modal-close { position: absolute; top: 18px; right: 18px; background: none; border: none; color: var(--text-faint); font-size: 18px; }
.modal-box h3 { margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--text-dim); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-alt); color: var(--text); font-size: 14px;
  font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--border-strong); }
.modal-price { font-family: var(--font-mono); color: var(--accent); font-size: 26px; font-weight: 800; margin: 14px 0 20px; }

/* toast */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 13.5px;
  padding: 12px 22px; border-radius: 999px; z-index: 1500; transition: transform .35s cubic-bezier(.16,1,.3,1);
  display: flex; align-items: center; gap: 8px;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* =========================================================
   MISC PAGE ELEMENTS
   ========================================================= */
.page-hero { padding: 60px 0 40px; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(30px, 4.5vw, 46px); margin-bottom: 12px; }
.page-hero p { max-width: 560px; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.info-card i { color: var(--accent); font-size: 22px; margin-bottom: 14px; display: block; }
.info-card h3 { margin-bottom: 8px; }
.info-card p { font-size: 14px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

table.plain { width: 100%; border-collapse: collapse; }
table.plain th, table.plain td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 14.5px; }
table.plain th { color: var(--accent); font-family: var(--font-mono); font-size: 12px; font-weight: 600; }

.badge-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 13px; color: var(--text-dim); }

/* =========================================================
   MOBILE FINE-TUNING (applies across all pages)
   ========================================================= */
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .section-tight { padding: 40px 0; }
  .page-hero { padding: 44px 0 32px; }
  .hero { padding: 48px 0 40px; }
  .banner { padding: 32px 22px; flex-direction: column; align-items: flex-start; text-align: left; }
  .banner .btn { width: 100%; justify-content: center; }
  .modal-box { padding: 24px 20px; max-height: 85vh; }
  .footer { padding: 48px 0 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .why-table thead th, .why-table td { padding: 14px 16px; }
  .info-grid, .product-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .info-grid, .product-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(28px, 8vw, 36px) !important; }
}
