/* ================================
   ASTRA HEADER + SALE TICKER
   Non-sticky version
   ================================ */

/* Main header normal, not fixed */
#masthead,
.site-header,
.main-header-bar,
.ast-primary-header-bar {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100%;
  z-index: 999 !important;
  background-color: #001540 !important;
  box-shadow: none !important;
}

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

/* Remove old fixed-header spacing */
.ast-desktop .site-content,
.ast-desktop #content,
.ast-header-break-point .site-content,
.ast-header-break-point #content {
  padding-top: 0 !important;
}

/* Let Astra's above-header area show the sale ticker */
.ast-above-header-bar,
.ast-above-header-wrap,
.site-above-header-wrap,
.ast-builder-grid-row,
.ast-header-html,
.ast-header-html-1,
.ast-header-html-2 {
  overflow: visible !important;
}

/* Clean up the above-header row so ticker can span edge to edge */
.ast-above-header-bar {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
  border: none !important;
}

/* Keep mobile menu usable, but no fixed top offset */
.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 {
  background-color: #001540 !important;
}

/* Ensure mobile menu is visible when active */
.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;
}

/* Overlay above content but below popups */
.ast-mobile-popup-overlay {
  z-index: 9997 !important;
}

/* ================================
   PRODUCT GRID STYLING
   ================================ */

/* 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;
  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 */
.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 */
.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;
  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;
}

/* ================================
   MOBILE SHOP SIDEBAR
   ================================ */

/* Move WooCommerce sidebar above products on mobile */
@media (max-width: 767px) {
  .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;
  }

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

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

/* ================================
   POPUP MAKER STYLE
   ================================ */

/* Dark overlay */
.pum-overlay,
.pum-overlay.pum-active {
  background: rgba(4, 10, 28, 0.72) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}

/* Completely strip Popup Maker's outer shell */
.pum-container,
.pum-theme-default-theme .pum-container,
.pum-theme-lightbox .pum-container,
.pum-theme-enterprise-blue .pum-container,
.pum-theme-cutting-edge .pum-container,
.pum-theme-framed-border .pum-container {
  position: relative !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  width: calc(100vw - 32px) !important;
  max-width: 960px !important;
  margin: 0 auto !important;
}

/* Remove any extra wrapper spacing */
.pum-content,
.popmake-content {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* Remove weird focus ring / outline */
.pum-container:focus,
.pum-content:focus,
.popmake-content:focus,
.pum:focus,
.popmake:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Optional: hide default popup title area */
.pum-title {
  display: none !important;
}

/* Better close button */
.pum-close,
.pum-theme-default-theme .pum-close,
.pum-theme-lightbox .pum-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;

  border-radius: 50% !important;
  background: rgba(7, 20, 47, 0.82) !important;
  border: 1px solid rgba(140, 190, 255, 0.28) !important;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255,255,255,0.04) inset !important;

  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: 0 !important;
  text-decoration: none !important;

  cursor: pointer !important;
  z-index: 99999 !important;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease !important;
}

/* Replace CLOSE text with an X */
.pum-close::before {
  content: "×";
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
  display: block;
}

/* Hover / focus */
.pum-close:hover,
.pum-close:focus-visible {
  background: rgba(16, 40, 86, 0.95) !important;
  border-color: rgba(140, 190, 255, 0.45) !important;
  transform: scale(1.04) !important;
  outline: none !important;
}

/* Mobile popup */
@media (max-width: 767px) {
  .pum-container,
  .pum-theme-default-theme .pum-container,
  .pum-theme-lightbox .pum-container,
  .pum-theme-enterprise-blue .pum-container,
  .pum-theme-cutting-edge .pum-container,
  .pum-theme-framed-border .pum-container {
    width: calc(100vw - 20px) !important;
    max-width: none !important;
  }

  .pum-close,
  .pum-theme-default-theme .pum-close,
  .pum-theme-lightbox .pum-close {
    top: 10px !important;
    right: 10px !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
  }

  .pum-close::before {
    font-size: 26px;
  }
}

/* ================================
   RETATRUTIDE SALE HERO
   ================================ */

.cyg-sale-hero {
  width: 100%;
  padding: 80px 20px;
  background:
    radial-gradient(circle at top right, rgba(134, 29, 29, 0.42), transparent 34%),
    linear-gradient(135deg, #001540 0%, #020816 58%, #861d1d 130%);
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.cyg-sale-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: translateX(-100%);
  animation: cygHeroShine 5.5s infinite;
}

.cyg-sale-hero__content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
}

.cyg-sale-hero__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #d7ecff;
}

.cyg-sale-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  color: #ffffff;
  text-transform: uppercase;
}

.cyg-sale-hero__deal {
  margin: 0 0 18px;
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 800;
  color: #ffffff;
}

.cyg-sale-hero__deal span {
  color: #ffdddd;
}

.cyg-sale-hero__text {
  max-width: 680px;
  margin: 0 auto 28px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.86);
}

.cyg-sale-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border-radius: 999px;
  background: #ffffff;
  color: #001540 !important;
  font-weight: 800;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 14px 35px rgba(0,0,0,0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cyg-sale-hero__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0,0,0,0.36);
}

.cyg-sale-hero__fineprint {
  margin: 18px auto 0;
  max-width: 700px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,0.62);
}

@keyframes cygHeroShine {
  0% {
    transform: translateX(-100%);
  }
  45%, 100% {
    transform: translateX(100%);
  }
}

@media (max-width: 767px) {
  .cyg-sale-hero {
    padding: 58px 18px;
  }

  .cyg-sale-hero__text {
    font-size: 16px;
  }

  .cyg-sale-hero__button {
    width: 100%;
    max-width: 330px;
  }
}


.cyg-sale-ticker:hover .cyg-sale-ticker__track {
  animation-play-state: paused;
}

@keyframes cygTickerScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 767px) {
  .cyg-sale-ticker {
    font-size: 10px;
  }

  .cyg-sale-ticker__track {
    gap: 18px;
    padding: 8px 0;
    animation-duration: 20s;
  }

  .cyg-sale-ticker__track span::after {
    margin-left: 18px;
  }
}

/* ================================
   DUAL SALE HERO UPDATE
   ================================ */

.cyg-sale-hero--dual {
  padding: 72px 20px;
}

.cyg-sale-hero__intro {
  max-width: 720px;
  margin: 0 auto 34px;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,0.84);
}

.cyg-sale-hero__offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 980px;
  margin: 0 auto 24px;
}

.cyg-sale-offer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: stretch;
  padding: 28px 24px;
  border-radius: 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 18px 42px rgba(0,0,0,0.24);
  color: #ffffff !important;
  text-decoration: none !important;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.cyg-sale-offer-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.32);
  color: #ffffff !important;
  text-decoration: none !important;
}

.cyg-sale-offer-card__label {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

.cyg-sale-offer-card__deal {
  margin-bottom: 16px;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.1;
  font-weight: 700;
  color: #ffffff;
}

.cyg-sale-offer-card__deal strong {
  color: #ffdddd;
  font-weight: 900;
}

.cyg-sale-offer-card__text {
  max-width: 360px;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
}

.cyg-sale-offer-card__button {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 999px;
  background: #ffffff;
  color: #001540;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.cyg-sale-offer-card--sema {
  background: rgba(255,255,255,0.1);
}

/* Mobile */
@media (max-width: 767px) {
  .cyg-sale-hero--dual {
    padding: 42px 16px 46px !important;
  }

  .cyg-sale-hero__intro {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 24px;
  }

  .cyg-sale-hero__offers {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cyg-sale-offer-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .cyg-sale-offer-card__label {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .cyg-sale-offer-card__deal {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .cyg-sale-offer-card__text {
    font-size: 14px;
    margin-bottom: 18px;
  }

  .cyg-sale-offer-card__button {
    width: 100%;
    padding: 12px 16px;
    font-size: 12px;
  }
}

/* ================================
   TOP HEADER NOTICES
   Dual Promo Bar + Checkout Notice
   ================================ */

.ast-above-header-bar,
.ast-above-header-wrap,
.site-above-header-wrap,
.ast-above-header-bar .ast-container,
.ast-above-header-wrap .ast-container,
.site-above-header-wrap .ast-container,
.ast-above-header-bar .ast-builder-grid-row,
.ast-above-header-wrap .ast-builder-grid-row,
.site-above-header-wrap .ast-builder-grid-row,
.ast-header-html,
.ast-header-html-1,
.ast-header-html-2,
.ast-builder-html-element {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.cyg-top-notices {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  z-index: 10000;
}

/* Promo row */
.cyg-promo-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  background: linear-gradient(90deg, #861d1d 0%, #001540 50%, #861d1d 100%);
  box-sizing: border-box;
}

/* Individual promo buttons */
.cyg-promo-pill {
  flex: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 14px;
  color: #ffffff !important;
  text-decoration: none !important;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  line-height: 1.2;
  box-sizing: border-box;
  border-right: 1px solid rgba(255,255,255,0.14);
}

.cyg-promo-pill:last-child {
  border-right: none;
}

.cyg-promo-pill:hover,
.cyg-promo-pill:focus {
  color: #ffffff !important;
  text-decoration: none !important;
  background: rgba(255,255,255,0.07);
}

.cyg-promo-pill__main {
  color: #ffffff;
}

.cyg-promo-pill__sub {
  color: rgba(255,255,255,0.86);
}

/* Optional slight highlight for Semaglutide */
.cyg-promo-pill--sema {
  background: rgba(255,255,255,0.04);
}

/* Checkout notice */
.cyg-checkout-notice {
  width: 100% !important;
  max-width: none !important;
  padding: 7px 16px;
  background: #020816;
  color: rgba(255,255,255,0.86);
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.2px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-sizing: border-box;
}

.cyg-checkout-notice strong {
  color: #ffffff;
  font-weight: 800;
}

.cyg-checkout-mobile {
  display: none;
}

/* Mobile */
@media (max-width: 767px) {
  .cyg-promo-row {
    flex-direction: column;
  }

  .cyg-promo-pill {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 10px;
    letter-spacing: 0.35px;
    gap: 6px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }

  .cyg-promo-pill__main,
  .cyg-promo-pill__sub {
    display: inline-block;
  }

  .cyg-checkout-notice {
    padding: 7px 10px;
    font-size: 11px;
    line-height: 1.3;
  }

  .cyg-checkout-desktop {
    display: none;
  }

  .cyg-checkout-mobile {
    display: inline;
  }
}