/*
Theme Name: Halo BioLabs
Theme URI: https://halobiolabs.com
Description: Custom child theme for HALO BIOLABS — built on Storefront. Dark, gold-accented research peptide storefront.
Author: Halo BioLabs
Template: storefront
Version: 1.0.8-debug
Text Domain: halo-biolabs
*/

/* ============================================
   HALO BIOLABS — GLOBAL DESIGN SYSTEM
   ============================================ */

:root{
  --gold:#C9A84C;
  --gold-light:#E8C97A;
  --gold-dim:rgba(201,168,76,0.12);
  --gold-border:rgba(201,168,76,0.22);
  --bg:#05080F;
  --bg2:#080C16;
  --bg3:#0b0f1e;
  --text:#F0EDE6;
  --muted:rgba(240,237,230,0.38);
  --faint:rgba(240,237,230,0.08);
}

/* ============================================
   BASE / RESET
   ============================================ */

html, body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: "Space Grotesk", sans-serif !important;
}

a {
  color: var(--gold);
  text-decoration: none;
}
a:hover {
  color: var(--gold-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.5px;
}

/* ============================================
   SITE HEADER / NAV (overrides Storefront header)
   ============================================ */

.site-header {
  background: rgba(5,8,15,0.97) !important;
  border-bottom: 0.5px solid var(--faint);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 62px;
  padding: 0 !important;
  display: flex !important;
  align-items: center;
  flex-wrap: nowrap !important;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.site-header > *:not(.main-navigation):not(.col-full) {
  display: flex !important;
  align-items: center;
  flex: 0 0 auto;
}

.site-header > .main-navigation {
  align-items: center;
}

.site-header .col-full {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap !important;
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  padding: 0 3.5rem !important;
  height: 62px;
  margin: 0 !important;
}

/* Logo / branding */
.site-header .site-branding {
  margin: 0 !important;
  flex-shrink: 0;
  order: 1;
  width: auto !important;
}

.halo-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff !important;
  text-decoration: none;
  white-space: nowrap;
}

.halo-logo:hover {
  color: #fff !important;
}

.halo-logo .halo-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.halo-logo .halo-logo-icon svg {
  width: 16px;
  height: 16px;
}

.halo-logo .halo-logo-gold,
.halo-logo:hover .halo-logo-gold {
  color: var(--gold) !important;
}

.site-header .site-description,
.site-header .site-branding .site-title {
  display: none !important;
}

/* Primary navigation */
.site-header .main-navigation {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0%;
  display: flex !important;
  justify-content: center;
  order: 2;
  width: auto !important;
  min-width: 0;
}

.site-header .main-navigation ul.menu,
.site-header .main-navigation ul.nav-menu,
#halo-fallback-menu {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

#halo-fallback-menu li {
  list-style: none;
}

#halo-fallback-menu a {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

#halo-fallback-menu a:hover {
  color: var(--text);
}

.main-navigation ul li a {
  color: var(--muted) !important;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 !important;
  white-space: nowrap;
  transition: color 0.2s;
}

.main-navigation ul li a:hover {
  color: var(--text) !important;
}

/* Hide any remaining default Storefront cart/search widget areas */
.site-header .header-widget-region,
.site-header .site-header-cart,
.site-header .site-search {
  display: none !important;
}

/* Cart icon link inside halo-header-actions */
.halo-cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0.5px solid var(--faint);
  border-radius: 50%;
  flex-shrink: 0;
  text-decoration: none !important;
}

.halo-cart-link::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: var(--text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M6 2L3 6v14a2 2 0 002 2h14a2 2 0 002-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 01-8 0'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M6 2L3 6v14a2 2 0 002 2h14a2 2 0 002-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 01-8 0'/%3E%3C/svg%3E") center/contain no-repeat;
}

.halo-cart-link:hover {
  border-color: var(--gold) !important;
}

.halo-cart-link:hover::before {
  background: var(--gold);
}

/* Sign In + Shop Now */
.halo-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  order: 4;
  flex-shrink: 0;
}

.halo-signin {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted) !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color 0.2s;
}

.halo-signin:hover {
  color: var(--text) !important;
}

.halo-shopnow {
  white-space: nowrap;
  padding: 10px 22px !important;
  font-size: 11px !important;
  letter-spacing: 0.1em;
}

@media (max-width: 700px) {
  .halo-signin { display: none; }
  .halo-header-actions { gap: 0.6rem; }
}

@media (max-width: 480px) {
  .halo-shopnow { display: none; }
}

/* Handheld (mobile) nav toggle */
.site-header .handheld-navigation {
  order: 5;
}

@media (max-width: 900px) {
  .site-header .main-navigation {
    display: none !important;
  }
  .site-header .handheld-navigation {
    display: flex !important;
    align-items: center;
  }
  .site-header .handheld-navigation .menu-toggle {
    background: transparent !important;
    border: 0.5px solid var(--gold-border) !important;
    color: var(--gold) !important;
    font-size: 11px !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 14px !important;
    border-radius: 999px;
  }
  .site-header .col-full {
    padding: 0 1.2rem !important;
  }
  .halo-logo span:not(.halo-logo-icon) {
    font-size: 12px;
  }
  .halo-logo .halo-logo-icon {
    width: 26px;
    height: 26px;
  }
  .halo-logo .halo-logo-icon svg {
    width: 13px;
    height: 13px;
  }
}

@media (min-width: 901px) {
  .site-header .handheld-navigation {
    display: none !important;
  }
}

/* Mobile dropdown menu styling when toggled open */
.site-header .main-navigation.toggled ul.menu,
.site-header .main-navigation.toggled ul.nav-menu {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  background: var(--bg2);
  border-bottom: 0.5px solid var(--faint);
  padding: 1rem 1.5rem !important;
  gap: 0 !important;
  z-index: 199;
}
.site-header .main-navigation.toggled ul.menu li,
.site-header .main-navigation.toggled ul.nav-menu li {
  padding: 0.7rem 0;
  border-bottom: 0.5px solid var(--faint);
}
@media (max-width: 900px) {
  .site-header .main-navigation.toggled {
    display: block !important;
    width: 100%;
    order: 5;
  }
}

/* Ticker bar: smaller text + tighter spacing on small screens */
@media (max-width: 600px) {
  .halo-abar-item {
    padding: 0 1.4rem;
    font-size: 9px;
    letter-spacing: 0.08em;
  }
  body { padding-top: 96px; }
  .halo-abar { height: 34px; }
  .site-header { height: 60px; }
  .halo-abar { top: 60px; }
  .site-header .col-full { height: 60px; }
}

/* push page content below fixed header + announcement bar */
body {
  padding-top: 100px;
}

/* ============================================
   ANNOUNCEMENT / TICKER BAR
   ============================================ */

.halo-abar {
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  height: 38px;
  background: linear-gradient(90deg, #C9A84C, #E8C97A, #C9A84C);
  border-bottom: 0.5px solid rgba(0,0,0,0.15);
  overflow: hidden;
  z-index: 190;
  display: flex;
  align-items: stretch;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.halo-abar-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  animation: halo-abar-scroll 35s linear infinite;
  will-change: transform;
}

.halo-abar:hover .halo-abar-track {
  animation-play-state: paused;
}

.halo-abar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 3rem;
  font-size: 11px;
  line-height: normal;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(5,8,15,0.78);
  white-space: nowrap;
}

.halo-abar-item .dashicons {
  font-size: 15px;
  width: 15px;
  height: 15px;
  color: rgba(5,8,15,0.85);
}

.halo-abar-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(5,8,15,0.3);
  flex-shrink: 0;
  align-self: center;
}

@keyframes halo-abar-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   SHARED LAYOUT HELPERS
   ============================================ */

.halo-section {
  padding: 5rem 3.5rem;
}

.halo-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.halo-eyebrow-line {
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.halo-eyebrow-text {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.halo-sec-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 0.6rem;
}

/* ============================================
   PRODUCT CARDS (WooCommerce overrides)
   ============================================ */

ul.products li.product,
.woocommerce ul.products li.product {
  background: var(--bg2) !important;
  border: 0.5px solid var(--faint) !important;
  border-radius: 14px !important;
  padding: 1.2rem !important;
  transition: border-color 0.2s, transform 0.2s;
}

ul.products li.product:hover {
  border-color: var(--gold-border) !important;
  transform: translateY(-3px);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: #fff !important;
  font-family: "Space Grotesk", sans-serif !important;
  font-weight: 700 !important;
  font-size: 15px !important;
}

.woocommerce ul.products li.product .price {
  color: var(--gold) !important;
  font-weight: 700 !important;
}

.woocommerce ul.products li.product img {
  border-radius: 10px !important;
  background: #000 !important;
}

/* Buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.button, .btn-gold {
  background: var(--gold) !important;
  color: #05080F !important;
  border: none !important;
  border-radius: 999px !important;
  font-family: "Space Grotesk", sans-serif !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 24px !important;
  transition: opacity 0.2s;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.button:hover {
  background: var(--gold-light) !important;
  color: #05080F !important;
  opacity: 0.92;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--bg2) !important;
  color: var(--muted) !important;
  padding: 0 !important;
}

.site-footer .col-full {
  padding: 0 !important;
}

.halo-footer {
  padding: 3rem 3.5rem;
}

.halo-footer-top {
  display: grid !important;
  grid-template-columns: 1.6fr 1fr 1fr 1fr !important;
  gap: 3rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 0.5px solid var(--faint);
  width: 100%;
}

.halo-footer-top > div {
  width: auto;
}

.halo-footer-tagline {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 220px;
  margin-top: 10px;
}

.halo-footer-col-title {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}

.halo-footer-links,
ul.halo-footer-links {
  list-style: none !important;
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
}

.halo-footer-links li,
ul.halo-footer-links li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.halo-footer-links a {
  color: var(--muted) !important;
  font-size: 13px;
  text-decoration: none !important;
}

.halo-footer-links a:hover {
  color: var(--gold) !important;
}

.halo-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.halo-footer-copy,
.halo-footer-legal {
  font-size: 11px;
  color: rgba(240,237,230,0.18);
  letter-spacing: 0.04em;
}

@media (max-width: 800px) {
  .halo-footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .halo-footer {
    padding: 2.5rem 1.5rem;
  }
  .halo-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .halo-footer-top {
    grid-template-columns: 1fr;
  }
}

/* WooCommerce product grid responsiveness */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
@media (max-width: 1100px) {
  .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .woocommerce ul.products { grid-template-columns: 1fr; }
}
.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

/* ============================================
   PRICING GATE (sign-up to view pricing)
   ============================================ */

.halo-price-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--gold-dim);
  border: 0.5px solid var(--gold-border);
  border-radius: 8px;
  margin-top: 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.halo-price-gate:hover {
  background: rgba(201,168,76,0.18);
}

/* Hide leftover Storefront credit/copyright line if it persists */
.site-info,
.storefront-credit,
.site-footer .site-info {
  display: none !important;
}
