/* ===========================
   HelixLabs – Main Stylesheet
   =========================== */

:root {
  --teal: #2a9d8f;
  --teal-dark: #1e7a6e;
  --teal-light: #dff5f2;
  --accent: #6ee7b7;
  --text: #162929;
  --text-muted: #555;
  --border: #c6e8e4;
  --bg: #fafafa;
  --white: #ffffff;
  --success: #27ae60;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(42, 157, 143, 0.12);
}

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

body {
  font-family: 'Roboto', 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(10, 30, 30, 0.97);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}

.age-box {
  background: var(--white);
  border-radius: 16px;
  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; align-items: center; justify-content: center;
  gap: 10px; margin-bottom: 12px;
}
.age-brand {
  font-family: 'Oswald', sans-serif;
  font-size: 24px; color: var(--dark);
}

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

/* Short notice block */
.age-notice {
  background: #f0faf9;
  border: 1px solid #b2e0da;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #1a4a44;
  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 ===== */
.announcement-bar {
  background: var(--teal);
  color: white;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
}

/* ===== Header ===== */
header {
  background: var(--white);
  border-bottom: 2px solid var(--teal-light);
  position: sticky; top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  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-icon { font-size: 22px; }

.logo-img {
  height: 38px;
  width: 38px;
  object-fit: contain;
  border-radius: 6px;
}

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

.main-nav {
  display: flex; gap: 24px;
  flex: 1;
}

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

.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: linear-gradient(135deg, #162929 0%, #2a9d8f 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.hero-content h1 {
  font-size: 52px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto; margin-right: auto;
}

.btn-primary {
  background: var(--accent);
  color: #162929;
  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; justify-content: center;
  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(--white);
  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: 2px solid var(--teal-light);
}

.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.zelle   { background: #6913D8; color: white; }
.pay-icon.venmo   { background: #3D95CE; color: white; }
.pay-icon.cashapp { background: #00D632; color: white; }
.pay-icon.crypto  { background: #2a9d8f; color: white; }

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

.promo-widget { background: linear-gradient(135deg, var(--teal-light), #dff5f2); }
.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(--white);
  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: 'Roboto', sans-serif;
  font-size: 14px;
  background: white;
  cursor: pointer;
}

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

.product-card {
  background: var(--white);
  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(42, 157, 143, 0.15);
}

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

.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-info { padding: 14px; }

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

.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); }

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

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

.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: white;
}

.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: 'Roboto', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: white;
  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);
}

/* ===== Footer ===== */
footer {
  background: #0d1f1f;
  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(--accent);
  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(--accent); }

.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: white;
  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: 56px; height: 56px;
  background: var(--teal-light);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.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: white;
  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: 16px; right: 20px;
  background: none; border: none;
  font-size: 22px; cursor: pointer;
  color: var(--text-muted);
}

/* 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: 'Roboto', sans-serif;
  font-size: 14px;
  width: 100%;
  margin-bottom: 12px;
  background: white;
  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 */
.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: #2a9d8f; }

.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;
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.9;
}

.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: 24px; right: 24px;
  background: var(--text);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  z-index: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: 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: 'Roboto', 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: 2px solid var(--teal-light);
}

.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: 6px;
  margin-right: auto;
}
.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: white;
  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-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: 12px 16px;
  background: white;
  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: white;
  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: white;
  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-content h1 { font-size: 36px; }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Responsive – Mobile ===== */
@media (max-width: 600px) {
  /* Header */
  .header-inner {
    padding: 12px 16px;
    gap: 12px;
  }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
  .cart-btn { padding: 10px 14px; font-size: 14px; }

  /* Announcement */
  .announcement-bar { font-size: 12px; padding: 8px 12px; }

  /* Hero */
  .hero { padding: 48px 16px 40px; }
  .hero-content h1 { font-size: 26px; letter-spacing: 1px; margin-bottom: 12px; }
  .hero-content p { font-size: 14px; margin-bottom: 24px; }
  .btn-primary { padding: 12px 28px; font-size: 15px; }
  .btn-secondary { display: none; }
  .hero-badges { gap: 8px; }
  .badge { padding: 6px 14px; font-size: 12px; }

  /* Product Grid – 2 columns */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-img { height: 130px; font-size: 40px; }
  .product-info { padding: 10px; }
  .product-name { font-size: 13px; }
  .product-price { font-size: 15px; margin-bottom: 8px; }
  .add-to-cart { font-size: 13px; padding: 8px; }

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

  /* Cart Drawer – full width */
  .cart-drawer { width: 100%; right: -100%; }

  /* Checkout Modal */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal {
    padding: 24px 16px 32px;
    border-radius: 16px 16px 0 0;
    max-width: 100%;
    max-height: 92vh;
    overflow-y: auto;
  }
  .modal h2 { font-size: 22px; margin-bottom: 16px; }
  .step h3 { font-size: 15px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .payment-methods { gap: 10px; }
  .pay-method-btn { padding: 12px 14px; }
  .pm-icon { width: 38px; height: 38px; font-size: 16px; }

  /* Sections */
  .section, .section-alt { padding: 40px 16px; }
  .container > h2 { font-size: 26px; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .about-card { padding: 20px 14px; }
  .about-icon { font-size: 30px; }
  .about-card h3 { font-size: 15px; }

  /* FAQ */
  .faq-q { font-size: 14px; padding: 14px 16px; }

  /* Contact */
  .contact-form { gap: 10px; }

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

  /* Toast – bottom center on mobile */
  .toast { right: 50%; transform: translateX(50%) translateY(10px); bottom: 80px; }
  .toast.show { transform: translateX(50%) translateY(0); }
}

/* ===========================
   HelixLabs – 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: 'Roboto', sans-serif;
}

/* Chat widget */
#hl-chat-widget {
  position: fixed;
  bottom: 100px; right: 28px;
  width: 340px;
  max-height: 520px;
  background: white;
  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-chat-header span:nth-child(2) { flex: 1; }
#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: white;
  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: white;
}
#hl-input {
  flex: 1;
  border: 1.5px solid #cde8e4;
  border-radius: 24px;
  padding: 8px 14px;
  font-size: 13px;
  outline: none;
  font-family: 'Roboto', 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); }

/* Mobile */
@media (max-width: 480px) {
  #hl-chat-widget {
    right: 12px; left: 12px; width: auto;
    bottom: 90px;
  }
  #hl-chat-bubble { bottom: 20px; right: 20px; }
}
