/* ================================
   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);
}
/* ========== FiboSearch - Cybergen Header Style ========== */

/* Outer wrapper (keeps it tidy in header) */
.dgwt-wcas-search-wrapp {
  max-width: 420px;
}

/* Input */
.dgwt-wcas-search-wrapp .dgwt-wcas-search-input {
  height: 42px;
  border-radius: 999px;
  padding: 10px 44px 10px 44px; /* room for icon */
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #ffffff;
  font-size: 14px;
  outline: none;
  box-shadow: none;
  transition: all 180ms ease;
}

/* Placeholder */
.dgwt-wcas-search-wrapp .dgwt-wcas-search-input::placeholder {
  color: rgba(255,255,255,0.65);
}

/* Hover */
.dgwt-wcas-search-wrapp .dgwt-wcas-search-input:hover {
  border-color: rgba(255,255,255,0.30);
  background: rgba(255,255,255,0.10);
}

/* Focus */
.dgwt-wcas-search-wrapp .dgwt-wcas-search-input:focus {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.12);
}

/* Magnifier icon */
.dgwt-wcas-search-wrapp .dgwt-wcas-ico-magnifier,
.dgwt-wcas-search-wrapp .dgwt-wcas-ico-magnifier svg {
  fill: rgba(255,255,255,0.85);
  color: rgba(255,255,255,0.85);
}

/* If the icon sits inside a button/anchor in your theme */
.dgwt-wcas-search-wrapp button,
.dgwt-wcas-search-wrapp .dgwt-wcas-search-submit {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Suggestions dropdown */
.dgwt-wcas-suggestions-wrapp {
  border-radius: 14px;
  overflow: hidden;
  background: #0f1115;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 14px 35px rgba(0,0,0,0.45);
}

/* Each suggestion row */
.dgwt-wcas-suggestion {
  padding: 12px 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Suggestion hover */
.dgwt-wcas-suggestion:hover,
.dgwt-wcas-suggestion.dgwt-wcas-suggestion-selected {
  background: rgba(255,255,255,0.06);
}

/* Suggestion text */
.dgwt-wcas-suggestion .dgwt-wcas-st,
.dgwt-wcas-suggestion a {
  color: rgba(255,255,255,0.92) !important;
}

/* Price / meta text */
.dgwt-wcas-suggestion .dgwt-wcas-sp,
.dgwt-wcas-suggestion .dgwt-wcas-sd {
  color: rgba(255,255,255,0.65) !important;
}
/* Move WooCommerce sidebar above products on mobile */
@media (max-width: 767px) {
  /* Common theme wrappers */
  .woocommerce-page .content-area,
  .woocommerce.archive .content-area,
  .woocommerce-page #primary,
  .woocommerce.archive #primary,
  .site-main,
  .woocommerce-page .site-content,
  .woocommerce .site-content {
    display: flex;
    flex-direction: column;
  }

  /* Sidebar first */
  .woocommerce-page #secondary,
  .woocommerce.archive #secondary,
  .woocommerce-page .widget-area,
  .woocommerce.archive .widget-area {
    order: 1;
    width: 100%;
    margin-bottom: 14px;
  }

  /* Products second */
  .woocommerce-page main,
  .woocommerce.archive main,
  .woocommerce-page .woocommerce,
  .woocommerce.archive .woocommerce {
    order: 2;
  }
}
@media (max-width: 767px){
  .woocommerce-page .elementor-section,
  .woocommerce-page .elementor-container,
  .woocommerce-page .elementor-widget-wrap{
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}