/* ============================================================
   Metta Pic v14.6 — Mobile product · Popup · Cart full · Hooks
   ============================================================ */

/* ---- Size / BL checkboxes ALWAYS navy when selected ---- */
.mp-size-item input:checked + .mp-size-box,
.mp-size-item.is-active .mp-size-box,
.mp-variants .mp-size-item:has(input:checked) .mp-size-box,
.mp-variants .mp-size-item.is-active .mp-size-box,
.mp-bl-choice input:checked + span,
.mp-variants .mp-bl-choice:has(input:checked) span,
label.mp-size-item.is-active .mp-size-box {
  background: #07152f !important;
  background-color: #07152f !important;
  border-color: #07152f !important;
  color: #fff !important;
  box-shadow: none !important;
}
.mp-size-box,
.mp-bl-choice span {
  box-shadow: none !important;
  border: 1.5px solid #d5dce8 !important;
  background: #fff !important;
  color: #07152f !important;
  border-radius: 12px !important;
}

/* ---- Product tabs navy + radius ---- */
.woocommerce-tabs ul.tabs li a,
.mp-product-tabs button,
.mp-tab-btn {
  border-radius: 999px !important;
  background: #fff !important;
  color: #07152f !important;
  border: 1.5px solid #d5dce8 !important;
  font-weight: 800 !important;
  padding: 10px 18px !important;
}
.woocommerce-tabs ul.tabs li.active a,
.mp-product-tabs button.is-active,
.mp-tab-btn.is-active {
  background: #07152f !important;
  color: #fff !important;
  border-color: #07152f !important;
}

/* ---- Gallery border-radius ---- */
.mp-gallery-main,
.mp-gallery-main img,
#mpProductMainImage {
  border-radius: 20px !important;
}

/* ---- Cart & Checkout FULL WIDTH ---- */
body.woocommerce-cart .container,
body.woocommerce-checkout .container,
body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce,
body.woocommerce-cart main .container,
body.woocommerce-checkout main .container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}
body.woocommerce-cart .commerce-grid,
body.woocommerce-checkout .checkout-layout {
  max-width: 1200px !important;
  margin: 0 auto !important;
  width: 100% !important;
}
@media (min-width: 1100px) {
  body.woocommerce-cart .commerce-grid,
  body.woocommerce-checkout .checkout-layout {
    grid-template-columns: 1.4fr 0.7fr !important;
  }
}

/* ---- Filter buttons navy ---- */
.mp-shop-filters button,
.mp-filter-card button,
.mp-filters-sticky button,
.mp-filter-btn,
.woocommerce-ordering select,
.mp-shop-toolbar button {
  background: #fff !important;
  color: #07152f !important;
  border: 1.5px solid #d5dce8 !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
}
.mp-shop-filters button.is-active,
.mp-filter-btn.is-active,
.mp-filters-sticky button.is-active {
  background: #07152f !important;
  color: #fff !important;
  border-color: #07152f !important;
}
.mp-filters-sticky,
.mp-shop-filters {
  background: #fff !important;
  border: 1px solid #e4e9f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 16px rgba(7, 21, 47, 0.06) !important;
}

/* ---- Custom order box 97% width + margins ---- */
.mp-custom-order,
section.mp-custom-order {
  width: 97% !important;
  max-width: 97% !important;
  margin: 24px auto 32px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.mp-custom-order .container,
.mp-custom-order .mp-custom-box {
  max-width: 100% !important;
  width: 100% !important;
}
.mp-custom-box {
  background: #07152f !important;
  color: #fff !important;
  border-radius: 24px !important;
  padding: 36px 28px !important;
  box-shadow: 0 16px 48px rgba(7, 21, 47, 0.2) !important;
}

/* Final2 / wall CTA same treatment */
.mp-final2,
section.mp-final2 {
  width: 97% !important;
  max-width: 97% !important;
  margin: 24px auto 40px !important;
}
.mp-final2-box {
  background: #07152f !important;
  border-radius: 24px !important;
  padding: 40px 28px !important;
  box-shadow: 0 16px 48px rgba(7, 21, 47, 0.2) !important;
}

/* ---- Popup: top layer, scroll inside, lock body ---- */
#mpQckOverlay.is-open,
.mp-qck-overlay.is-open {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: block !important;
  background: rgba(7, 21, 47, 0.55) !important;
}
#mpQckSheet.is-open,
.mp-qck-sheet.is-open {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 1000000 !important;
  display: flex !important;
  flex-direction: column !important;
  max-height: 92vh !important;
  overflow: hidden !important;
  border-radius: 24px 24px 0 0 !important;
  background: #fff !important;
}
.mp-qck-sheet.is-open .mp-qck-form,
.mp-qck-sheet.is-open #mpQckForm {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  max-height: calc(92vh - 140px) !important;
}
body.mp-qck-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}
body.mp-qck-open .site-footer,
body.mp-qck-open .mobile-bottom-nav {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ---- Soft page background glows ---- */
body.mp-theme,
body.mp-home {
  background:
    radial-gradient(ellipse 40% 30% at 95% 15%, rgba(255, 107, 53, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 35% 25% at 5% 70%, rgba(7, 21, 47, 0.03) 0%, transparent 55%),
    #f3f5f9 !important;
}

/* ---- MOBILE single product: minimal conversion layout ---- */
@media (max-width: 900px) {
  .mp-single-product-page .mp-product-single-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }
  /* Image first */
  .mp-single-product-page .mp-single-gallery {
    order: 1 !important;
  }
  .mp-gallery-main {
    border-radius: 18px !important;
    overflow: hidden !important;
    aspect-ratio: 1 !important;
    background: #fff !important;
    border: 1px solid #e8ecf2 !important;
  }
  .mp-gallery-main img {
    border-radius: 16px !important;
    object-fit: contain !important;
  }
  .mp-gallery-thumbs {
    display: none !important; /* declutter mobile */
  }
  /* Title + options */
  .mp-single-product-page .mp-single-info {
    order: 2 !important;
    padding: 0 4px !important;
  }
  .mp-single-info .eyebrow,
  .mp-single-info .mp-single-rating,
  .mp-single-info .mp-single-description,
  .mp-single-info .price,
  .mp-single-info .woocommerce-Price-amount {
    display: none !important; /* hide clutter; price is in var-total */
  }
  .mp-single-info h1 {
    font-size: 18px !important;
    line-height: 1.4 !important;
    margin: 0 0 12px !important;
    color: #07152f !important;
    font-weight: 900 !important;
  }
  /* Variants compact */
  .mp-variants {
    margin: 0 !important;
    padding: 14px !important;
    border-radius: 16px !important;
    background: #fff !important;
    border: 1px solid #e8ecf2 !important;
  }
  .mp-var-label {
    font-size: 12px !important;
    margin-bottom: 8px !important;
  }
  .mp-size-list {
    gap: 8px !important;
  }
  .mp-size-box {
    min-width: 72px !important;
    padding: 10px 12px !important;
  }
  .mp-size-box strong {
    font-size: 13px !important;
  }
  .mp-size-price {
    font-size: 10px !important;
  }
  /* Price + buy CTA compact */
  .mp-var-total {
    margin-top: 12px !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
  }
  .mp-var-total strong,
  #mpVariantTotal {
    font-size: 15px !important;
  }
  .single_add_to_cart_button,
  .mp-buy-now {
    width: 100% !important;
    min-height: 50px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 10px !important;
  }
  .single_add_to_cart_button::after {
    content: '↓' !important;
    font-size: 16px !important;
    opacity: 0.9 !important;
  }
  /* Everything else below */
  .mp-product-fullwidth,
  .mp-product-info-boxes,
  .mp-product-accordion,
  .woocommerce-tabs,
  .mp-related-products,
  .mp-custom-chip {
    order: 10 !important;
  }
  .mp-product-info-boxes {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .mp-product-info-box {
    padding: 12px 10px !important;
  }
  .mp-product-info-box b {
    font-size: 12px !important;
  }
  .mp-product-info-box span {
    font-size: 11px !important;
  }
  /* Hide sticky on mobile if using main CTA - keep but compact */
  .mp-sticky-price {
    width: 82% !important;
    bottom: 72px !important;
  }
}

/* Buy button with icon feel */
.single_add_to_cart_button,
.mp-buy-now {
  background: #07152f !important;
  color: #fff !important;
}
.single_add_to_cart_button:hover {
  background: #ff6b35 !important;
}

/* About page hooks */
.mp-about-hook {
  width: 97%;
  max-width: 97%;
  margin: 28px auto;
  background: #07152f;
  color: #fff;
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 0 16px 48px rgba(7, 21, 47, 0.18);
  text-align: center;
}
.mp-about-hook h3 {
  color: #fff;
  font-size: 22px;
  margin: 0 0 10px;
}
.mp-about-hook p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 18px;
  line-height: 1.8;
}
.mp-about-hook .mp-btn {
  background: #fff !important;
  color: #07152f !important;
  border-radius: 14px !important;
  font-weight: 900 !important;
  padding: 12px 24px !important;
  display: inline-block !important;
  text-decoration: none !important;
}
.mp-about-hook .mp-btn:hover {
  background: #ff6b35 !important;
  color: #fff !important;
}
