/*
Theme Name: Astra Child
Template: astra
Author: Vic Van Gelder
Version: 1.0
*//* ============================
   MOBILE FIX: FlipHTML5 iframe
   ============================ */
@media (max-width: 768px) {
  iframe[src*="fliphtml5"] {
    width: 100% !important;
    height: 85vh !important;
    max-height: 800px !important;
    display: block;
    margin: 0 auto;
    border: none !important;
    overflow: auto !important;
    pointer-events: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* ============================
   RELATED PRODUCTS (STORE)
   ============================ */
.related.products h2 {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 18px;
  color: #F4B44C;
  margin: 25px 0 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.related.products ul.products {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.related.products ul.products li.product {
  max-width: 220px;
  border: 1px solid #F4B44C;
  padding: 12px;
  border-radius: 10px;
  background-color: #000;
  text-align: center;
}

.related.products ul.products li.product img {
  max-width: 180px;
  margin: 0 auto 10px;
  height: auto;
}

.related.products ul.products li.product h2.woocommerce-loop-product__title {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  color: #F4B44C;
  font-size: 11px;
  line-height: 1.2;
  margin: 6px 0;
}

.related.products ul.products li.product .price {
  color: #F4B44C;
  font-weight: bold;
  font-size: 11px;
  margin: 4px 0;
}

/* ============================
   CHECKOUT BUTTON (Vic x Juju)
   ============================ */
#place_order,
.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order {
  display: block;
  width: 100%;
  text-align: center;
  font-family: "Cinzel", serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 15px;
  background: #000 !important;
  color: #F4B44C !important;
  border: 2px solid #E4CB86 !important;
  border-radius: 30px !important;
  padding: 14px 26px !important;
  box-shadow: inset 0 0 0 2px #000;
  transition: all .25s ease-in-out;
}

#place_order:hover {
  background: #F4B44C !important;
  color: #000 !important;
  border-color: #000 !important;
  box-shadow: inset 0 0 0 2px #E4CB86, 0 8px 24px rgba(0,0,0,.45);
  transform: translateY(-2px);
}

/* ============================
   HIDE EMPTY CART MESSAGE
   ============================ */
body.woocommerce-checkout .cart-empty,
body.woocommerce-checkout .return-to-shop {
  display: none !important;
}

/* ============================
   WooCommerce Notice Styling
   ============================ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background-color: #000 !important;
  border: 2px solid #E4CB86 !important;
  color: #E4CB86 !important;
  font-family: 'Cinzel', serif !important;
  font-size: 15px !important;
  text-transform: none !important;
  padding: 15px 20px !important;
  border-radius: 10px;
  margin: 20px auto !important;
  opacity: 1 !important;
}

.woocommerce-message::before {
  display: none !important;
}

.woocommerce-message .button {
  background: #000 !important;
  border: 2px solid #E4CB86 !important;
  color: #E4CB86 !important;
  border-radius: 25px !important;
  padding: 8px 18px !important;
  font-size: 13px !important;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s ease-in-out;
}

.woocommerce-message .button:hover {
  background: #E4CB86 !important;
  color: #000 !important;
}

/* ============================
   STORE PAGE SCROLL FIX (Mobile)
   ============================ */
@media (max-width: 768px) {
  .page-id-4566 {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    position: relative !important;
    max-width: 100% !important;
  }

  .page-id-4566 iframe,
  .page-id-4566 video {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    overflow: auto !important;
    pointer-events: auto !important;
  }
}

/* ============================
   TABLET BURGER & MENU FIXES
   ============================ */
@media (min-width: 768px) and (max-width: 1024px) {
  .ast-button-wrap .menu-toggle .ast-mobile-svg {
    stroke: #E4CB86 !important;
    fill: none !important;
    stroke-width: 3px !important;
  }

  .ast-button-wrap .menu-toggle {
    background-color: #000 !important;
    border: 1px solid #E4CB86 !important;
    padding: 6px;
    border-radius: 4px;
    position: relative;
    z-index: 9999;
  }

  .ast-mobile-popup-drawer .main-header-menu .menu-item {
    border-bottom: 1px solid #E4CB86 !important;
    padding: 8px 0 !important;
    text-align: center !important;
  }

  .ast-mobile-popup-drawer .main-header-menu .menu-item:last-child {
    border-bottom: none !important;
  }

  .ast-mobile-popup-drawer .main-header-menu .menu-link {
    font-family: 'Cinzel', serif !important;
    font-size: 16px !important;
    color: #E4CB86 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
}

/* RETURN-TO-SHOP BUTTON CLEAN FIX */
.woocommerce .return-to-shop a.button {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
  color: #E4CB86 !important;
  background: #000 !important;
  border: 1px solid #E4CB86 !important;
}

.woocommerce .return-to-shop a.button span {
  display: none !important;
}

/* ============================
   PRODUCT PAGE REFINEMENTS
   ============================ */
body.single-product .product_meta strong {
  text-transform: none !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

.single-product .woocommerce-product-gallery {
  margin-bottom: 12px !important;
}

.single-product .product .summary {
  margin-top: 10px !important;
}

/* MOBILE — product title smaller */
@media (max-width: 768px) {
  .single-product .product_title {
    font-size: calc(100% - 2px) !important;
    line-height: 1.3 !important;
  }
}

/* ============================
   MAILERLITE POPUP
   ============================ */
.ml-popup {
  transform: scale(0.8) !important;
  transform-origin: bottom left !important;
}

@media (max-width: 767px) {
  .ml-popup {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(0.6) !important;
    transform-origin: center center !important;
  }
}

/* ============================
   STRIPE PAYMENT — BLACK BOXES
   ============================ */
.woocommerce-checkout .wc-stripe-elements-field,
.woocommerce-checkout #wc-stripe-payment-request-wrapper,
.woocommerce-checkout .stripe-card-group,
.woocommerce-checkout .payment_box,
.woocommerce-checkout .wc_payment_method .payment_box,
.woocommerce-checkout .wc_payment_method .payment_box p,
.woocommerce-checkout .wc_payment_method .payment_box form {
  background: #000 !important;
  border: 1px solid #E4CB86 !important;
  color: #fff !important;
}

.woocommerce-checkout .payment_box label,
.woocommerce-checkout .payment_box p,
.woocommerce-checkout .payment_box span,
.woocommerce-checkout .payment_box div {
  color: #fff !important;
}

/* STRICT — Stripe pure-black fields */
.woocommerce-checkout .StripeElement,
.woocommerce-checkout .StripeElement--focus,
.woocommerce-checkout .StripeElement--empty {
  background-color: #000 !important;
}

/* ============================
   HIDE BUTTON IN NOTICE BAR
   ============================ */
.woocommerce-message .button {
  display: none !important;
}

/* ============================
   UNIVERSAL VIDEO OPTIMIZATION
   ============================ */
video {
  content-visibility: auto !important;
}


