/* ================================
   PAYMENT BANNER + FIXED ASTRA HEADER
   ================================ */

/* Top payment banner (fixed above header) */
#cybergen-payment-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10000; /* above header */
  background-color: #001540;
  color: #f9fafb;
  padding: 10px 16px;
  text-align: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

/* Fixed header now sits UNDER the banner */
#masthead,
.site-header,
.main-header-bar,
.ast-primary-header-bar {
  position: fixed !important;
  top: 90px; /* approx. banner height */
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999 !important;
  background-color: #001540 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Footer normal */
footer,
.site-footer {
  position: static !important;
}

/* Push content below banner + header (desktop) */
.ast-desktop .site-content,
.ast-desktop #content {
  padding-top: 145px !important; /* old 105 + 40 banner */
}

/* Push content below banner + header (mobile) */
.ast-header-break-point .site-content,
.ast-header-break-point #content {
  padding-top: 112px !important; /* old 72 + 40 banner */
}

/* 🔧 Mobile menu containers (still under header) */
.ast-header-break-point .ast-mobile-popup-drawer,
.ast-header-break-point .ast-mobile-header-content,
.ast-header-break-point .ast-off-canvas-sidebar,
.ast-header-break-point .ast-main-header-bar-navigation {
  position: fixed !important;
  top: 112px !important; /* header (72) + banner (40) */
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9998 !important;
  background-color: #001540 !important;
  overflow-y: auto;
  height: calc(100vh - 112px) !important;
}

/* When menu opens, ensure it’s visible */
.ast-header-break-point .ast-mobile-popup-drawer.active,
.ast-header-break-point .ast-mobile-header-content.active {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Make sure the overlay is below header + banner but above content */
.ast-mobile-popup-overlay {
  z-index: 9997 !important;
}

/* WP admin bar fix */
.admin-bar #masthead,
.admin-bar .site-header,
.admin-bar .main-header-bar {
  top: 72px !important; /* admin bar 32 + 40 banner */
}

@media (max-width: 782px) {
  .admin-bar #masthead,
  .admin-bar .site-header,
  .admin-bar .main-header-bar {
    top: 86px !important; /* admin 46 + 40 banner */
  }

  /* Admin bar + header + banner offset for menu */
  .admin-bar .ast-header-break-point .ast-mobile-popup-drawer,
  .admin-bar .ast-header-break-point .ast-mobile-header-content {
    top: 158px !important;            /* old 118 + 40 banner */
    height: calc(100vh - 158px) !important;
  }
}

/* ================================
   PRODUCT GRID STYLING (unchanged)
   ================================ */

/* Reduce Cybergen product image size */
.woocommerce div.product div.images img {
  max-width: 70%;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* Product card wrapper setup */
.woocommerce ul.products li.product {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Keep images consistent */
.woocommerce ul.products li.product a img {
  width: 100%;
  height: 200px; /* Adjust if you want taller vials */
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* Product title + price grouping */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price {
  text-align: center;
  margin: 0 0 8px;
}

/* Force consistent title area height (but keep it up top) */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 48px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-size: 16px;
  color: #001540;
  font-weight: 600;
}

/* Keep prices close to title */
.woocommerce ul.products li.product .price {
  font-size: 15px;
  color: #861d1d;
  font-weight: 700;
}

/* Button stays fixed at the bottom, evenly spaced */
.woocommerce ul.products li.product .button {
  margin-top: auto;
  text-align: center;
  background-color: #001540;
  color: #fff;
  border-radius: 6px;
  padding: 10px 0;
  width: 100%;
  transition: all 0.3s ease;
  font-weight: 600;
}

.woocommerce ul.products li.product .button:hover {
  background-color: #861d1d;
  color: #fff;
}

/* Subtle hover effect for premium feel */
.woocommerce ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}