/* ===========================
   ROVIQ – Main Stylesheet
   =========================== */

:root {
  /* Blue — primary accent */
  --blue:        #2563eb;
  --blue-dark:   #1d4ed8;
  --blue-light:  #60a5fa;
  --blue-glow:   rgba(37,99,235,0.15);

  /* Silver — secondary brand */
  --silver:      #c8cdd6;
  --silver-light:#e8ecf2;

  /* Dark backgrounds (4-level) */
  --bg:          #09090b;
  --bg-surface:  #0f1014;
  --bg-elevated: #16181e;
  --bg-hover:    #1e2028;

  /* Text */
  --text:        #f0f2f5;
  --text-muted:  #8892a4;
  --text-dim:    #4a5568;

  /* Borders */
  --border:        rgba(255,255,255,0.07);
  --border-blue:   rgba(37,99,235,0.40);
  --border-silver: rgba(200,205,214,0.15);

  /* Functional */
  --success: #22c55e;
  --error:   #ef4444;
  --warning: #f59e0b;
  --white:   #ffffff;

  /* Shadows */
  --shadow:      0 4px 24px rgba(0,0,0,0.7);
  --shadow-blue: 0 0 24px rgba(37,99,235,0.20);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.5), 0 0 0 1px var(--border);

  /* Keep legacy aliases so every var(--teal) / var(--accent) in the file resolves to brand blue */
  --teal:      #2563eb;
  --teal-dark: #1d4ed8;
  --teal-light:rgba(37,99,235,0.10);
  --accent:    #60a5fa;

  --radius: 8px;
}

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

/* Global image safety — prevents any image from ever overflowing its container on mobile */
img { max-width: 100%; height: auto; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.5px;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

/* ===== Age Gate (compact) ===== */
#age-gate {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.97);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}

.age-box {
  background: var(--bg-elevated);
  border-radius: 16px;
  border: 1px solid var(--border-silver);
  max-width: 420px;
  width: 100%;
  padding: 28px 24px 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  text-align: center;
}

.age-logo {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 16px;
}
.age-brand {
  font-family: 'Oswald', sans-serif;
  font-size: 36px; color: var(--dark);
  letter-spacing: 1px;
}

.age-box h2 {
  font-family: 'Oswald', sans-serif;
  color: var(--teal); font-size: 20px;
  margin: 0 0 10px;
}

/* Short notice block */
.age-notice {
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #93c5fd;
  line-height: 1.5;
  margin-bottom: 16px;
  text-align: left;
}

/* Checkboxes — always visible, no scrolling */
.age-checks {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 18px;
  text-align: left;
}
.age-check-label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--text);
  cursor: pointer; line-height: 1.5;
}
.age-check-label input[type="checkbox"] {
  margin-top: 3px;
  width: 18px; height: 18px;
  accent-color: var(--teal);
  flex-shrink: 0; cursor: pointer;
}
.terms-link {
  color: var(--teal);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
}

.age-btns {
  display: flex; gap: 10px; justify-content: center;
  margin-bottom: 12px;
}

.btn-enter {
  background: var(--teal); color: white;
  border: none; padding: 13px 0;
  border-radius: var(--radius);
  font-family: 'Oswald', sans-serif;
  font-size: 16px; cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  flex: 1;
}
.btn-enter:hover:not(:disabled) { background: var(--teal-dark); }
.btn-enter:disabled { opacity: 0.35; cursor: not-allowed; }

.btn-exit {
  background: transparent; color: var(--text-muted);
  border: 2px solid var(--border);
  padding: 13px 22px;
  border-radius: var(--radius);
  font-family: 'Oswald', sans-serif;
  font-size: 16px; cursor: pointer;
}
.btn-exit:hover { border-color: #aaa; }

.age-legal {
  font-size: 11px; color: #aaa;
}
.age-legal a { color: var(--teal); }

/* ===== Full Terms Slide Panel ===== */
#terms-panel-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
}
#terms-panel-overlay.open { display: block; }

#terms-panel {
  position: fixed;
  bottom: -100%;
  left: 50%; transform: translateX(-50%);
  width: min(500px, 100%);
  max-height: 80vh;
  background: white;
  border-radius: 20px 20px 0 0;
  z-index: 10001;
  display: flex; flex-direction: column;
  transition: bottom 0.35s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -6px 40px rgba(0,0,0,0.2);
}
#terms-panel.open { bottom: 0; }

#terms-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  font-family: 'Oswald', sans-serif;
  font-size: 17px; color: var(--teal);
  flex-shrink: 0;
}
#terms-panel-header button {
  background: none; border: none;
  font-size: 20px; cursor: pointer;
  color: var(--text-muted); line-height: 1;
}
#terms-panel-header button:hover { color: var(--text); }

#terms-panel-body {
  overflow-y: auto;
  padding: 18px 20px 24px;
  font-size: 13px; line-height: 1.7; color: #444;
}
#terms-panel-body h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 13px; letter-spacing: .5px;
  color: var(--teal-dark); text-transform: uppercase;
  margin: 16px 0 5px;
}
#terms-panel-body h3:first-child { margin-top: 0; }
#terms-panel-body p  { margin-bottom: 8px; }
#terms-panel-body ul { padding-left: 18px; margin-bottom: 8px; }
#terms-panel-body li { margin-bottom: 4px; }

/* Mobile */
@media (max-width: 480px) {
  .age-box { padding: 22px 18px 16px; }
  .age-btns { flex-direction: column; }
  .btn-enter, .btn-exit { width: 100%; text-align: center; }
  #terms-panel { width: 100%; border-radius: 18px 18px 0 0; }
}

/* ===== Announcement Bar — scrolling ticker ===== */
.announcement-bar {
  background: var(--teal);
  color: white;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
  padding: 9px 0;
  position: relative;
}
.ticker-track {
  display: inline-block;
  animation: ticker-scroll 36s linear infinite;
  will-change: transform;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-content {
  display: inline-block;
  padding-right: 60px;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Header ===== */
header {
  background: #0f1014;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  font-family: 'Oswald', sans-serif;
  font-size: 26px;
  color: var(--teal);
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}

.logo-text {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.logo-icon { font-size: 22px; }

.logo-img {
  height: 90px;
  width: auto;
  object-fit: contain;
  border-radius: 0;
}

.footer-logo-img {
  height: 32px;
  width: 32px;
  vertical-align: middle;
  margin-right: 4px;
}

.main-nav {
  display: flex; gap: 24px;
  flex: 1;
  flex-wrap: nowrap;
  align-items: center;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  max-width: 300px;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #09090b;
}

.header-search input,
.mobile-search input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 14px;
  color: var(--text);
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: #7c8a8a;
}

.search-icon {
  font-size: 14px;
  opacity: 0.8;
}

.main-nav a {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--teal); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.cart-btn {
  background: var(--teal);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.cart-btn:hover { background: var(--teal-dark); }

.cart-count {
  background: var(--accent);
  color: var(--text);
  border-radius: 50%;
  width: 20px; height: 20px;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: bold;
  margin-left: 4px;
}

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(ellipse at 75% 50%,
      rgba(37, 99, 235, 0.18) 0%,
      rgba(37, 99, 235, 0.06) 40%,
      transparent 70%),
    radial-gradient(ellipse at 25% 80%,
      rgba(37, 99, 235, 0.06) 0%,
      transparent 50%),
    #09090b;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  min-height: 100vh;
  overflow: hidden;
}

/* Centered max-width container */
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%;
  max-width: 940px;
}

.hero-content {
  flex: 1;
  min-width: 0;
  max-width: 520px;
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-content p {
  font-size: 17px;
  color: rgba(255,255,255,0.88);
  margin-bottom: 32px;
  line-height: 1.65;
}


.hero-tagline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn-hero-primary {
  background: var(--blue);
  color: #ffffff;
  padding: 14px 30px;
  border-radius: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.btn-hero-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,99,235,0.40);
  color: #ffffff;
}

.btn-hero-secondary {
  background: rgba(200,205,214,0.06);
  color: #ffffff;
  border: 2px solid rgba(200,205,214,0.35);
  padding: 12px 28px;
  border-radius: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.22);
  border-color: #ffffff;
  color: #ffffff;
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Mobile-only trust line (replaces the pill badges on phones) */
.hero-trust { display: none; }

.badge {
  background: var(--bg-surface);
  border: 1px solid var(--border-silver);
  color: var(--silver-light);
  padding: 7px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
}

.hero-visual {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-vial {
  max-height: 60vh;          /* size by height only so the aspect ratio is never distorted */
  width: auto;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(37,99,235,0.25)) drop-shadow(0 8px 24px rgba(0,0,0,0.5));
}

/* ── Tablet (768–1024px) ── */
@media (max-width: 1024px) {
  .hero { padding: 52px 20px; }
  .hero-inner { gap: 32px; }
  .hero-content h1 { font-size: 44px; }
  .hero-vial { max-height: 54vh; }
}

/* ── Large phone / small tablet (600–768px) ── */
@media (max-width: 768px) {
  .hero { padding: 22px 20px; min-height: auto; }
  /* stack: vial on top, text + badges full-width below */
  .hero-inner { flex-direction: column; align-items: center; gap: 14px; }
  .hero-visual { order: -1; }
  .hero-content { width: 100%; max-width: 100%; text-align: center; }
  .hero-content h1 { font-size: 30px; }
  .hero-tagline { margin-bottom: 8px; }
  .hero-content p  { font-size: 14px; margin-bottom: 12px; }
  .hero-btns { margin-bottom: 14px; justify-content: center; }
  /* pill badges hidden on mobile (higher specificity to beat the later .hero-badges rule); shown as a clean trust line instead */
  .hero-content .hero-badges { display: none; }
  .hero-trust {
    display: block;
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.4px; line-height: 1.6;
    color: var(--silver);
    margin-bottom: 14px;
  }
  .hero-trust span { color: var(--blue); margin: 0 5px; font-weight: 700; }
  .hero-vial { max-height: 24vh; }
}

/* ── Phone (max 480px) ── */
@media (max-width: 480px) {
  .hero { padding: 16px 16px; min-height: auto; }
  .hero-inner { gap: 12px; }
  .hero-content h1 { font-size: 22px; margin-bottom: 8px; }
  .hero-tagline { font-size: 10px; margin-bottom: 6px; }
  .hero-content p  { font-size: 13px; margin-bottom: 10px; }
  .hero-btns { margin-bottom: 12px; }
  .btn-hero-secondary { display: none; }
  .btn-hero-primary { padding: 11px 18px; font-size: 13px; }
  .hero-vial { max-height: 22vh; }
  .hero-trust { font-size: 11px; margin-bottom: 12px; }
}

.btn-primary {
  background: var(--accent);
  color: #09090b;
  border: none;
  padding: 14px 36px;
  border-radius: var(--radius);
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.15s, box-shadow 0.15s;
  font-weight: 600;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  color: var(--text);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.6);
  padding: 12px 32px;
  border-radius: var(--radius);
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-left: 12px;
  transition: border-color 0.2s;
}
.btn-secondary:hover { border-color: white; color: white; }

.hero-badges {
  display: flex; gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
}

/* ===== Content Layout ===== */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
}

/* ===== Sidebar ===== */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.widget {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.widget h3 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--teal);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.cat-list { list-style: none; }
.cat-list li { margin-bottom: 2px; }
.cat-list a {
  display: block;
  padding: 6px 10px;
  border-radius: 4px;
  color: var(--text);
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}
.cat-list a:hover,
.cat-list a.active {
  background: var(--teal-light);
  color: var(--teal);
}

.has-sub > ul {
  list-style: none;
  padding-left: 16px;
  margin-top: 2px;
}
.has-sub > ul a { font-size: 13px; color: var(--text-muted); }
.has-sub > ul a:hover { color: var(--teal); background: var(--teal-light); }

.payment-icons {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 10px;
}

.pay-icon {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  font-family: 'Oswald', sans-serif;
}
.pay-icon.card-icon { background: #6c47ff; color: white; }
.pay-icon.zelle     { background: #6913D8; color: white; }
.pay-icon.venmo     { background: #3D95CE; color: white; }
.pay-icon.crypto    { background: #2563eb; color: white; }

.pay-note { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }

.sidebar-hero-note {
  margin-top: 10px; padding: 10px 12px;
  background: rgba(37,99,235,0.10); border: 1.5px solid rgba(37,99,235,0.40);
  border-radius: 8px; font-size: 12px; color: #60a5fa; line-height: 1.5;
}
.sidebar-hero-note strong { font-weight: 700; }
.sidebar-hero-note span   { color: #c8cdd6; }
.sidebar-hero-note small  { color: #888; font-size: 11px; }

.promo-widget { background: linear-gradient(135deg, var(--teal-light), rgba(37,99,235,0.10)); }
.promo-widget h3 { color: var(--teal-dark); }
.promo-widget p { font-size: 14px; }
.promo-widget strong { color: var(--teal); }

/* ===== Shop Header ===== */
.shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.shop-header span { color: var(--text-muted); font-size: 14px; }

.shop-header select {
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 4px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  background: var(--bg-surface);
  cursor: pointer;
}

/* ===== Product Grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.15);
}

.product-img {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, var(--teal-light) 0%, rgba(37,99,235,0.10) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
  position: relative;
  overflow: hidden;
}

.product-vial-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.product-emoji-fallback {
  font-size: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.product-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--teal);
  color: white;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
}

.product-badge.sale { background: #e74c3c; }

.product-no-discount-hint {
  font-size: 11px;
  color: #c0392b;
  margin: 4px 0;
}

.product-info { padding: 14px; }

.product-name {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--text);
}

/* Product name linked to its /products/<slug>.html page. Styled to look
   identical to the unlinked name so cards render the same whether or not a
   product page has shipped yet. */
.product-name-link {
  color: inherit;
  text-decoration: none;
}
.product-name-link:hover {
  text-decoration: underline;
}

.product-cat { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }

.product-price {
  font-size: 18px;
  font-weight: bold;
  color: var(--teal);
  margin-bottom: 10px;
}

.product-price .old-price {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 6px;
  font-weight: normal;
}

.add-to-cart {
  width: 100%;
  background: var(--teal);
  color: white;
  border: none;
  padding: 9px;
  border-radius: var(--radius);
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.add-to-cart:hover { background: var(--teal-dark); }
.add-to-cart.out-of-stock { background: #ccc; color: #888; cursor: not-allowed; }
.add-to-cart.out-of-stock:hover { background: #ccc; }

.stock-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.stock-badge.stock-low { background: #fff3cd; color: #856404; }
.stock-badge.stock-out { background: #f8d7da; color: #842029; }

/* ===== Sections ===== */
.section, .section-alt {
  padding: 64px 20px;
}

.section-alt { background: var(--bg-surface); }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.container > h2 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 8px;
  color: var(--teal);
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 36px;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.about-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.about-icon { font-size: 40px; margin-bottom: 14px; }

.about-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--teal);
}

.about-card p { font-size: 14px; color: var(--text-muted); }

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 36px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-surface);
}

.faq-q {
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  cursor: pointer;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after { content: '+'; font-size: 20px; color: var(--teal); }
.faq-q.open::after { content: '−'; }

.faq-a {
  display: none;
  padding: 0 20px 16px;
  color: var(--text-muted);
  font-size: 14px;
}
.faq-a.open { display: block; }

/* Contact Form */
.contact-form {
  max-width: 620px;
  margin: 36px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  width: 100%;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--teal);
}

/* ===== Product Size Tag ===== */
.product-size {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* ===== Product Detail Modal ===== */
.product-modal {
  max-width: 520px;
  padding: 32px 28px 24px;
}

.pm-top {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.pm-emoji {
  font-size: 52px;
  line-height: 1;
  flex-shrink: 0;
}

.pm-header { flex: 1; }

.pm-badge {
  display: inline-block;
  background: var(--teal);
  color: white;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.pm-name {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 4px;
}

.pm-size {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.pm-price {
  font-size: 26px;
  font-weight: 700;
  color: var(--teal);
}

.pm-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pm-overview-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--teal);
  margin-bottom: 6px;
}

.pm-vial-img {
  width: 100%;
  max-width: 200px;
  max-height: 200px;
  object-fit: contain;
  display: block;
  margin: 12px auto;
  border-radius: 8px;
  border: 1px solid var(--border);
}

@media (max-width: 480px) {
  .pm-vial-img {
    max-width: 140px;
    max-height: 140px;
  }
}

/* Bacteriostatic Water Upsell */
/* FDA Disclaimer Checkbox */
.attestation-box {
  background: #f8f9fa;
  border: 1.5px solid #dee2e6;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.attestation-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px;
}
.attestation-sub {
  font-size: 13px;
  color: #666;
  margin: 0 0 14px;
}
.fda-check-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: white;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #333;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.2s;
}
.fda-check-label:last-child { margin-bottom: 0; }
.fda-check-label:hover { border-color: #aaa; }
.fda-check-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border: 2px solid #aaa;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  position: relative;
  margin-top: 1px;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.fda-check-label input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.fda-check-label input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.bac-upsell {
  border: 2px dashed var(--teal-light, #b2e4df);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 18px;
  background: rgba(37,99,235,0.08);
}

.bac-upsell-label {
  cursor: pointer;
  display: block;
}

.bac-upsell-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border: 2px solid var(--teal);
  border-radius: 6px;
  background: white;
  cursor: pointer;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.bac-upsell-label input[type="checkbox"]:checked {
  background: var(--teal);
  border-color: var(--teal);
}

.bac-upsell-label input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.bac-upsell-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bac-upsell-label input:checked ~ .bac-upsell-content {
  color: var(--teal);
}

.bac-upsell-label input:checked ~ .bac-upsell-content .bac-upsell-icon {
  transform: scale(1.2);
}

.bac-upsell-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.bac-upsell-content > div { flex: 1; }
.bac-upsell-content strong { display: block; font-size: 14px; color: var(--text); }
.bac-upsell-content small  { font-size: 12px; color: var(--text-muted); }

.bac-upsell-price {
  font-weight: 700;
  font-size: 16px;
  color: var(--teal);
  white-space: nowrap;
}

.bac-upsell-label:has(input:checked) .bac-upsell-content strong { color: var(--teal); }

/* Hero Discount Checkbox */
.hero-discount-box {
  border: 2px solid rgba(37,99,235,0.40);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
  background: rgba(37,99,235,0.10);
}
.hero-discount-text strong {
  display: block; font-size: 14px; color: #60a5fa; font-weight: 700;
}
.hero-discount-text small {
  font-size: 12px; color: var(--text-muted); line-height: 1.4; display: block; margin-top: 3px;
}
.verifypass-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: #60a5fa; color: #fff; text-decoration: none;
  font-size: 13px; font-weight: 600; padding: 9px 16px;
  border-radius: 7px; margin-top: 10px; transition: background 0.15s;
}
.verifypass-btn:hover { background: #154fa3; color: #fff; }

.pm-add-btn { margin-bottom: 14px; }

.pm-disclaimer {
  font-size: 11px;
  color: #999;
  text-align: center;
  line-height: 1.5;
  border-top: 1px solid #eee;
  padding-top: 12px;
  margin: 0;
}

@media (max-width: 480px) {
  .product-modal { padding: 24px 16px 20px; }
  .pm-emoji { font-size: 38px; }
  .pm-name  { font-size: 18px; }
  .pm-price { font-size: 22px; }
}

/* ===== Footer ===== */
footer {
  background: #030305;
  color: rgba(255,255,255,0.7);
  padding: 48px 20px;
  text-align: center;
}

.footer-logo {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  color: var(--silver-light);
  margin-bottom: 16px;
}

footer p { font-size: 13px; line-height: 1.7; margin-bottom: 20px; }

.footer-links {
  display: flex; gap: 20px; justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
}
.footer-links a:hover { color: var(--blue); }

.footer-copy { font-size: 12px; color: rgba(255,255,255,0.4); }

/* ===== Cart Drawer ===== */
.cart-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
}
.cart-overlay.open { display: block; }

.cart-drawer {
  position: fixed;
  right: -400px;
  top: 0; bottom: 0;
  width: 380px;
  background: var(--bg-elevated);
  z-index: 201;
  display: flex; flex-direction: column;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  transition: right 0.3s ease;
}
.cart-drawer.open { right: 0; }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-size: 20px; color: var(--teal); }
.cart-header button {
  background: none; border: none; font-size: 20px;
  cursor: pointer; color: var(--text-muted);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cart-empty { text-align: center; color: var(--text-muted); margin-top: 40px; }

.cart-item {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 60px; height: 60px;
  background: var(--teal-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border);
}

.cart-item-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.cart-item-info { flex: 1; }
.cart-item-name { font-size: 14px; font-weight: 500; }
.cart-item-price { font-size: 14px; color: var(--teal); }

.cart-item-qty {
  display: flex; align-items: center; gap: 8px;
  margin-top: 6px;
}

.qty-btn {
  width: 24px; height: 24px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

.remove-item {
  background: none; border: none;
  color: #e74c3c; cursor: pointer;
  font-size: 16px; padding: 4px;
}

.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.cart-total {
  font-size: 18px;
  margin-bottom: 12px;
}
.cart-total strong { color: var(--teal); }

.full-width { width: 100%; }

/* ===== Checkout Modal ===== */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  overflow-y: auto;
  padding: 40px 20px;
}
.modal-overlay.open { display: flex; align-items: flex-start; justify-content: center; }

.modal {
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 36px;
  width: 100%;
  max-width: 560px;
  position: relative;
}

.modal h2 {
  color: var(--teal);
  margin-bottom: 24px;
  font-size: 28px;
}

.modal-close {
  position: absolute; top: 12px; right: 14px;
  background: #ebebeb;
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 0;
  cursor: pointer;
  z-index: 10;
  transition: background 0.15s;
  flex-shrink: 0;
}
.modal-close:hover { background: #d4d4d4; }
.modal-close::before,
.modal-close::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 2px;
  background: #333;
  border-radius: 1px;
}
.modal-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.modal-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

/* Steps */
.step { display: none; }
.step.active { display: block; }

.step h3 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

#order-form input,
#order-form select {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  width: 100%;
  margin-bottom: 12px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}
#order-form input:focus,
#order-form select:focus {
  outline: none; border-color: var(--teal);
}

.form-group { margin-bottom: 12px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text-muted);
}

.promo-row { display: flex; gap: 8px; }
.promo-row input { margin-bottom: 0; flex: 1; }
.promo-row button {
  background: var(--teal);
  color: white;
  border: none;
  padding: 11px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
  white-space: nowrap;
}

#promo-msg { font-size: 13px; display: block; margin-top: 4px; }

.order-summary {
  background: var(--teal-light);
  border-radius: var(--radius);
  padding: 16px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 2;
}

.order-summary .total-line {
  font-weight: bold;
  font-size: 16px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 4px;
}

/* Payment Methods */
.hero-promo-banner {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(37,99,235,0.10); border: 1.5px solid rgba(37,99,235,0.40);
  border-radius: 9px; padding: 11px 14px; margin-bottom: 14px;
  font-size: 13px; color: #60a5fa;
}
.hero-promo-icon { font-size: 20px; flex-shrink: 0; line-height: 1.3; }
.hero-promo-banner strong { font-weight: 700; }
.hero-promo-sub { display: block; font-size: 11.5px; color: #8892a4; margin-top: 2px; }

.payment-methods {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 20px;
}

.pay-method-btn {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: left;
  width: 100%;
}
.pay-method-btn:hover { border-color: var(--teal); background: var(--teal-light); }
.pay-method-btn.selected { border-color: var(--teal); background: var(--teal-light); }

.pm-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: bold;
  color: white; flex-shrink: 0;
}
.zelle-icon   { background: #6913D8; }
.venmo-icon   { background: #3D95CE; }
.cashapp-icon { background: #00D632; }
.crypto-icon  { background: #2563eb; }

.pay-method-btn strong { display: block; font-size: 16px; }
.pay-method-btn small { color: var(--text-muted); font-size: 12px; }

.pay-instructions-box {
  background: #f8f4ff;
  /* Explicit dark text: this box is one of the few light-background panels on a
     dark-themed site, so without it the content inherits --text (#f0f2f5) and
     renders near-white on near-white — the Zelle/Venmo payment instructions were
     invisible. The inline styles in script.js only colour some elements, so the
     fix belongs here where it covers every payment method at once. */
  color: #1a1a1a;
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.9;
}
/* Headings and emphasis inside the box inherit the dark colour above; links need
   an explicit accessible colour rather than the site's light-on-dark link tone. */
.pay-instructions-box strong { color: #0f172a; }
.pay-instructions-box a { color: #1d4ed8; }

.order-ref {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.order-ref small { color: #e74c3c; font-style: italic; }

/* Confirmation */
.confirmation {
  text-align: center;
  padding: 20px 0;
}

.confirm-icon {
  width: 72px; height: 72px;
  background: var(--success);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: white;
  margin: 0 auto 20px;
}

.confirmation h3 { font-size: 28px; color: var(--success); margin-bottom: 12px; }
.confirmation p { color: var(--text-muted); margin-bottom: 8px; font-size: 15px; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border-blue);
  padding: 13px 22px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  z-index: 1100;                /* above the chat bubble (1000) */
  max-width: 90vw; text-align: center;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Account Button ===== */
.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 2px solid var(--teal);
  color: var(--teal);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.account-btn:hover { background: var(--teal); color: white; }

.account-btn--in {
  background: var(--teal-light);
  border-color: var(--teal);
  color: var(--teal-dark);
}

.account-tier-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* ===== Auth Modal ===== */
.auth-modal {
  max-width: 420px;
  padding: 32px 28px;
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  gap: 4px;
}
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 10px;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.auth-tab.active { color: var(--teal); border-bottom-color: var(--teal); }

.auth-form { display: none; flex-direction: column; gap: 12px; }
.auth-form.active { display: flex; }

.auth-form h2 { font-size: 24px; color: var(--teal); margin-bottom: 2px; }
.auth-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }

.auth-form input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  width: 100%;
  transition: border-color 0.2s;
}
.auth-form input:focus { outline: none; border-color: var(--teal); }

.auth-error {
  color: #e74c3c;
  font-size: 13px;
  min-height: 18px;
}

.auth-switch {
  font-size: 13px;
  text-align: center;
  color: var(--text-muted);
}

/* ===== Dashboard Modal ===== */
.dashboard-modal {
  max-width: 520px;
  padding: 32px 28px;
  max-height: 90vh;
  overflow-y: auto;
}

.dash-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.dash-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 26px;
  flex-shrink: 0;
}

.dash-header h2 { font-size: 22px; margin-bottom: 2px; }

/* Loyalty Card */
.loyalty-card {
  background: var(--teal-light);
  border: 2px solid var(--teal);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.loyalty-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.loyalty-tier {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.loyalty-msg { font-size: 13px; color: var(--text-muted); max-width: 260px; }

.loyalty-badge { font-size: 40px; }

.loyalty-progress-wrap { margin-bottom: 16px; }

.loyalty-progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}

.loyalty-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
  background: var(--teal);
}

.loyalty-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.loyalty-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.loyalty-stat {
  flex: 1;
  text-align: center;
  border-right: 1px solid var(--border);
  padding: 0 8px;
}
.loyalty-stat:last-child { border-right: none; }
.loyalty-stat strong { display: block; font-size: 20px; color: var(--teal-dark); font-family: 'Oswald', sans-serif; }
.loyalty-stat span { font-size: 11px; color: var(--text-muted); }

/* Active deal banner */
.dash-deal {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff8e1;
  border: 1px solid #f5c518;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.deal-icon { font-size: 28px; flex-shrink: 0; }
.dash-deal strong { display: block; font-size: 15px; margin-bottom: 2px; }
.dash-deal p { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }

.deal-code {
  display: inline-block;
  background: var(--text);
  color: var(--accent);
  font-family: monospace;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
}

/* Order history */
.dash-section h3 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--teal);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.empty-orders { font-size: 13px; color: var(--text-muted); text-align: center; padding: 20px 0; }

.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  font-size: 13px;
}
.order-row:last-child { border-bottom: none; }

.order-row-left { display: flex; flex-direction: column; gap: 2px; min-width: 80px; }
.order-row-left strong { font-size: 14px; color: var(--teal-dark); }
.order-row-left span { color: var(--text-muted); font-size: 12px; }

.order-row-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: 1; }
.order-items-preview { color: var(--text-muted); font-size: 12px; text-align: right; }
.order-row-right strong { color: var(--teal); font-size: 15px; }

/* Logout */
.logout-btn {
  width: 100%;
  margin-top: 20px;
  padding: 11px;
  background: transparent;
  border: 2px solid #e74c3c;
  color: #e74c3c;
  border-radius: var(--radius);
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.logout-btn:hover { background: #e74c3c; color: white; }

/* Mobile overrides for auth/dashboard */
@media (max-width: 600px) {
  .auth-modal, .dashboard-modal {
    border-radius: 16px 16px 0 0;
    max-width: 100%;
    max-height: 92vh;
    padding: 24px 16px 32px;
  }
  .loyalty-stats { gap: 0; }
  .account-btn span:not(.account-tier-dot) { display: none; }
  .account-btn { padding: 8px 10px; }
}

/* ===== Hamburger Button ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  margin-left: 4px;
  transition: background 0.2s;
}
.hamburger:hover { background: var(--teal-light); }
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: -100%;
  width: 80%; max-width: 300px;
  height: 100%;
  background: var(--bg-elevated);
  z-index: 300;
  flex-direction: column;
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  transition: left 0.3s ease;
  padding: 60px 0 40px;
  overflow-y: auto;
}
.mobile-nav.open { left: 0; }

.mobile-nav a {
  display: block;
  padding: 14px 24px;
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.mobile-nav a:hover { background: var(--teal-light); color: var(--teal); }


.mobile-search {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 54px 20px 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #09090b;
}
.mobile-nav-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none;
  font-size: 24px; cursor: pointer;
  color: var(--text-muted);
}

.mobile-nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 299;
}
.mobile-nav-overlay.open { display: block; }

/* Mobile Category Scroll Bar */
.mobile-cats {
  display: none;
  overflow-x: auto;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mobile-cats::-webkit-scrollbar { display: none; }

.mobile-cat-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.mobile-cat-btn.active,
.mobile-cat-btn:hover {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}

/* Mobile Bottom Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 10px 20px;
  z-index: 150;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
}

.mobile-bottom-bar .cart-btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

/* ===== Responsive – Tablet ===== */
@media (max-width: 900px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    padding: 24px 16px;
  }
  .sidebar { display: none; }
  .mobile-cats { display: flex; }
  .hero-overlay-btn { height: 10%; }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  /* Collapse nav to hamburger on tablets too */
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
  .header-search { display: none; }
  .mobile-search { display: flex; }
}

/* ===== Responsive – Mobile ===== */
@media (max-width: 600px) {
  /* Prevent iOS input zoom (font must be ≥16px) */
  input, select, textarea { font-size: 16px !important; }

  /* Header – single-row: [Logo] [flex-1] [Cart] [Hamburger] */
  .header-inner { padding: 4px 16px; gap: 6px; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }

  /* Logo – horizontal, compact */
  .logo { flex-direction: row; align-items: center; gap: 6px; }
  .logo-img { height: 44px; width: auto; }
  .logo-text { font-size: 20px; }

  /* Actions – row, push to right, same full Login + Cart buttons as desktop */
  .header-actions { flex-direction: row; gap: 6px; align-items: center; margin-left: auto; }
  .header-actions .cart-btn { padding: 8px 12px; font-size: 13px; }
  .header-actions #btn-login,
  .header-actions #btn-account { padding: 8px 10px; font-size: 13px; }

  /* Announcement */
  .announcement-bar { font-size: 9.5px; padding: 3px 8px; letter-spacing: 0.3px; line-height: 1.25; text-align: center; }

  /* Hero — full-width image, overlay buttons reposition for mobile */
  .btn-primary { padding: 13px 28px; font-size: 15px; min-height: 48px; }
  .hero-overlay-btn { height: 8%; width: 18%; }
  .hero-overlay-shop  { left: 7%;  top: 47%; }
  .hero-overlay-learn { left: 28%; top: 47%; }

  /* Product Grid – 2 columns */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-img { height: 120px; font-size: 38px; }
  .product-info { padding: 10px 8px; }
  .product-name { font-size: 13px; line-height: 1.3; min-height: 34px; }
  .product-size { font-size: 10px; }
  .product-price { font-size: 15px; margin-bottom: 8px; }
  .add-to-cart {
    font-size: 12px;
    padding: 9px 4px;
    min-height: 40px;        /* easier tap target */
    width: 100%;
  }

  /* Shop header */
  .shop-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .shop-header select { width: 100%; min-height: 44px; }

  /* Cart Drawer – full width on mobile */
  .cart-drawer { width: 100%; right: -100%; }
  .cart-header { padding: 16px; }
  .cart-item { padding: 12px; }

  /* Checkout Modal – slides up from bottom */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal {
    padding: 24px 16px 32px;
    border-radius: 18px 18px 0 0;
    max-width: 100%;
    max-height: 93vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal h2 { font-size: 20px; margin-bottom: 14px; }
  .step h3 { font-size: 14px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .payment-methods { gap: 10px; }
  .pay-method-btn { padding: 14px; min-height: 56px; }  /* big tap target */
  .pm-icon { width: 40px; height: 40px; font-size: 17px; }

  /* Product detail modal */
  .product-modal { border-radius: 18px 18px 0 0; }
  .product-modal .modal-close {
    position: sticky;
    top: 4px;
    display: block;
    margin-left: auto;
    z-index: 10;
  }
  .pm-top { gap: 12px; }
  .pm-emoji { font-size: 36px; }
  .pm-name { font-size: 17px; }
  .pm-price { font-size: 22px; }
  .pm-desc { font-size: 13px; }
  .bac-upsell-content strong { font-size: 13px; }

  /* Sections */
  .section, .section-alt { padding: 36px 16px; }
  .container > h2 { font-size: 24px; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .about-card { padding: 18px 12px; }
  .about-icon { font-size: 28px; }
  .about-card h3 { font-size: 14px; }

  /* FAQ – bigger tap area */
  .faq-q { font-size: 14px; padding: 16px; min-height: 52px; }

  /* Contact */
  .contact-form { gap: 10px; }
  .contact-form input,
  .contact-form select,
  .contact-form textarea { min-height: 48px; }

  /* Bottom padding for fixed bar */
  body { padding-bottom: 72px; }
  .mobile-bottom-bar { display: block; }

  /* Toast – bottom center */
  .toast { bottom: 82px; }   /* clear the mobile bottom bar; centering inherited from base */

  /* Age gate on mobile */
  .age-box { padding: 28px 18px; }
  .age-check-label { font-size: 14px; gap: 12px; }
}

/* ===========================
   ROVIQ – Virtual Assistant
   =========================== */

/* Floating bubble button */
#hl-chat-bubble {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 26px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(42,157,143,0.45);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, background 0.2s;
}
#hl-chat-bubble:hover { background: var(--teal-dark); transform: scale(1.08); }

/* Badge */
#hl-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: #e74c3c;
  color: white;
  font-size: 11px;
  font-weight: 700;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: none;
  align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif;
}

/* Chat widget */
#hl-chat-widget {
  position: fixed;
  bottom: 100px; right: 28px;
  width: 340px;
  max-height: 520px;
  background: var(--bg-elevated);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  display: flex; flex-direction: column;
  z-index: 999;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
#hl-chat-widget.hl-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Header */
#hl-chat-header {
  background: var(--teal);
  color: white;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  letter-spacing: 0.3px;
  cursor: pointer;
  user-select: none;
}
.hl-header-icon { font-size: 20px; }
.hl-header-text { flex: 1; display: flex; flex-direction: column; }
.hl-header-text span { font-size: 15px; }
.hl-header-text small { font-size: 11px; opacity: 0.75; font-family: 'Inter', sans-serif; font-weight: 300; }
#hl-chat-close { font-size: 14px; opacity: 0.7; }
#hl-chat-close:hover { opacity: 1; }

/* Body */
#hl-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex; flex-direction: column; gap: 10px;
  background: #f7fffe;
}

/* Messages */
.hl-msg { display: flex; }
.hl-msg-bot  { justify-content: flex-start; }
.hl-msg-user { justify-content: flex-end; }

.hl-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.55;
}
.hl-msg-bot  .hl-bubble {
  background: var(--bg-surface);
  color: var(--text);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.hl-msg-user .hl-bubble {
  background: var(--teal);
  color: white;
  border-bottom-right-radius: 4px;
}
.hl-bubble a { color: var(--teal-dark); }
.hl-msg-user .hl-bubble a { color: #b2f0e8; }
.hl-bubble code {
  background: #e8f7f5;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 11px;
  color: #155a52;
  word-break: break-all;
}

/* Typing dots */
.hl-typing-bubble {
  display: flex; align-items: center; gap: 5px;
  padding: 12px 16px;
}
.hl-typing-bubble span {
  width: 7px; height: 7px;
  background: var(--teal);
  border-radius: 50%;
  display: inline-block;
  animation: hl-dot 1.2s infinite;
}
.hl-typing-bubble span:nth-child(2) { animation-delay: 0.2s; }
.hl-typing-bubble span:nth-child(3) { animation-delay: 0.4s; }
@keyframes hl-dot {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40%            { transform: scale(1);   opacity: 1; }
}

/* Quick reply chips */
.hl-quick-replies {
  display: flex; flex-wrap: wrap; gap: 7px;
  padding: 4px 0;
}
.hl-quick-btn {
  background: white;
  border: 1.5px solid var(--teal);
  color: var(--teal-dark);
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.hl-quick-btn:hover {
  background: var(--teal);
  color: white;
}

/* Footer input */
#hl-chat-footer {
  display: flex;
  border-top: 1px solid #e0f0ee;
  padding: 10px 12px;
  gap: 8px;
  background: var(--bg-surface);
}
#hl-input {
  flex: 1;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 8px 14px;
  font-size: 13px;
  outline: none;
  font-family: 'Inter', sans-serif;
  color: var(--text);
}
#hl-input:focus { border-color: var(--teal); }
#hl-chat-footer button {
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
#hl-chat-footer button:hover { background: var(--teal-dark); }

/* Chat – Mobile */
@media (max-width: 600px) {
  #hl-chat-bubble {
    bottom: 84px;   /* clear the mobile bottom bar */
    right: 16px;
    width: 54px; height: 54px;
    font-size: 22px;
  }
  #hl-chat-widget {
    right: 0; left: 0;
    bottom: 0;
    width: 100%;
    max-height: 88vh;
    border-radius: 18px 18px 0 0;
  }
  #hl-input { font-size: 16px !important; }   /* prevent iOS zoom */
  .hl-quick-btn { padding: 7px 14px; font-size: 13px; min-height: 38px; }
}

/* ===== Admin Panel ===== */
.admin-pass-modal {
  max-width: 340px;
  text-align: center;
  padding: 32px 28px;
}
.admin-pass-title {
  font-family: 'Oswald', sans-serif;
  color: var(--teal);
  font-size: 20px;
  margin: 0 0 18px;
}
.admin-pass-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.admin-pass-input:focus { border-color: var(--teal); }
.admin-pass-msg {
  color: #e74c3c;
  font-size: 13px;
  margin: 8px 0 0;
  display: none;
}
.admin-pass-btns {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%,60%  { transform: translateX(-6px); }
  40%,80%  { transform: translateX(6px); }
}
.shake { animation: shake 0.4s ease; }

.admin-modal {
  max-width: 700px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px 28px 24px;
}
.admin-title {
  font-family: 'Oswald', sans-serif;
  color: var(--teal);
  font-size: 22px;
  margin: 0 0 16px;
}
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.admin-tab {
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 18px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.admin-tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}
.admin-stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.admin-stat {
  background: var(--teal-light);
  border-radius: var(--radius);
  padding: 14px 12px;
  text-align: center;
  border: 1px solid var(--border);
}
.admin-stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.admin-stat-val {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--teal-dark);
}
.admin-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-empty {
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  padding: 20px 0;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table th {
  text-align: left;
  padding: 8px 10px;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 2px solid var(--border);
}
.admin-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f5fffe; }
.admin-low-stock td { background: #fff0f0 !important; color: #c0392b; }
.admin-stock-input {
  width: 64px;
  padding: 5px 8px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
}
.admin-adjust-btns {
  display: flex;
  gap: 6px;
}
.admin-adjust-btns button {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-dark);
  font-weight: 700;
  transition: background 0.15s, border-color 0.15s;
}
.admin-adjust-btns button:hover {
  background: var(--teal-light);
  border-color: var(--teal);
}
@media (max-width: 600px) {
  .admin-stat-cards { grid-template-columns: repeat(2, 1fr); }
  .admin-modal { padding: 20px 14px; }
}

/* ── COA Modal ──────────────────────────────────────────────── */
.coa-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 28, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9000;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  overflow-y: auto;
}
.coa-overlay.active { display: flex; }

.coa-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 900px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  overflow: hidden;
  animation: coaSlideIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  margin: auto;
}

@keyframes coaSlideIn {
  from { opacity: 0; transform: translateY(-30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.coa-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.coa-close:hover { background: rgba(255,255,255,0.35); }

.coa-header {
  background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
  padding: 40px 40px 36px;
  text-align: center;
  color: #fff;
}
.coa-header-icon {
  font-size: 48px;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}
.coa-header h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.coa-header p {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin: 0;
  line-height: 1.6;
}

.coa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 30px;
}

.coa-card {
  background: #fff;
  border: 1.5px solid #e8f5f3;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 2px 8px rgba(42,157,143,0.07);
}
.coa-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(42,157,143,0.18);
  border-color: #2563eb;
}

.coa-card-accent {
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #52c9ba);
}

.coa-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.coa-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  width: fit-content;
}
.coa-badge.metabolic  { background: #fff0e6; color: #d4660a; }
.coa-badge.performance{ background: #e8f0ff; color: #2d5be3; }
.coa-badge.repair     { background: #e8faf5; color: #1a7a68; }
.coa-badge.cognitive  { background: #f3e8ff; color: #7c3aed; }
.coa-badge.wellness   { background: #fff8e1; color: #b07d00; }

.coa-name {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.coa-dose {
  font-size: 12px;
  font-weight: 600;
  color: #2563eb;
  background: #f0fafa;
  padding: 2px 7px;
  border-radius: 10px;
  white-space: nowrap;
}

.coa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
  transition: opacity 0.2s, transform 0.15s;
}
.coa-btn:hover { opacity: 0.9; transform: scale(1.02); }
.coa-btn span { font-size: 15px; }

.coa-footer {
  background: #09090b;
  border-top: 1.5px solid #e8f5f3;
  padding: 16px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 12px;
  color: #5a7a76;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .coa-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 20px; }
  .coa-header { padding: 28px 20px 24px; }
  .coa-header h2 { font-size: 22px; }
  .coa-footer { gap: 8px; padding: 14px 20px; }
}
@media (max-width: 440px) {
  .coa-grid { grid-template-columns: 1fr; }
}

/* ── COA card pill button ────────────────────────────────────── */
.coa-card-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  margin-top: 8px;
  padding: 7px 12px;
  background: transparent;
  border: 1.5px solid #2563eb;
  color: #2563eb;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.15s;
  justify-content: center;
}
.coa-card-pill:hover {
  background: #2563eb;
  color: #fff;
  transform: scale(1.02);
}

/* ── COA PDF Viewer Modal ─────────────────────────────────────── */
.coa-viewer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 28, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9500;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.coa-viewer-overlay.active { display: flex; }

.coa-viewer-modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 820px;
  height: 90vh;
  max-height: 860px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 100px rgba(0,0,0,0.35);
  animation: coaSlideIn 0.28s cubic-bezier(0.34,1.56,0.64,1);
}

.coa-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
  flex-shrink: 0;
  gap: 12px;
}

.coa-viewer-title {
  display: flex;
  align-items: center;
  gap: 14px;
}
.coa-viewer-shield { font-size: 28px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.coa-viewer-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.75);
}
.coa-viewer-product {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.5px;
}

.coa-viewer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.coa-viewer-dl-btn {
  padding: 8px 16px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.3);
}
.coa-viewer-dl-btn:hover { background: rgba(255,255,255,0.3); }

.coa-viewer-close {
  width: 36px; height: 36px;
  border: none;
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.coa-viewer-close:hover { background: rgba(255,255,255,0.35); }

.coa-viewer-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #f4f4f4;
}
.coa-viewer-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.coa-viewer-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  color: #666;
}

@media (max-width: 600px) {
  .coa-viewer-modal { height: 95vh; border-radius: 14px; }
  .coa-viewer-header { padding: 14px 16px; }
  .coa-viewer-product { font-size: 15px; }
  .coa-viewer-dl-btn { display: none; }
}


/* ===== Readability: dark-theme placeholders, selects & options ===== */
.contact-form input::placeholder, .contact-form textarea::placeholder,
#order-form input::placeholder,   #order-form textarea::placeholder,
#hl-input::placeholder { color: var(--text-muted); opacity: 1; }
.contact-form select, #order-form select, .shop-header select { color: var(--text); }
.contact-form select option, #order-form select option,
.shop-header select option { background: var(--bg-elevated); color: var(--text); }
