/* ============================================================
   Metta Pic v14.9 — Header scroll · Desktop product · Popup · Pages
   ============================================================ */

/* ---- Desktop header: hidden until scroll ---- */
@media (min-width: 901px) {
  html body .site-header,
  html body #siteHeader {
    transition: transform .28s ease, opacity .28s ease, box-shadow .28s ease !important;
  }
  html body .site-header.mp-head-hidden,
  html body #siteHeader.mp-head-hidden {
    transform: translateY(-120%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  html body .site-header:not(.mp-head-hidden),
  html body #siteHeader:not(.mp-head-hidden) {
    transform: translateY(0) !important;
    opacity: 1 !important;
  }
}
@media (max-width: 900px) {
  .site-header.mp-head-hidden { transform: none !important; opacity: 1 !important; pointer-events: auto !important; }
}

/* ---- Homepage boxes < 100% width: subtle radius ---- */
.mp-custom-order,
.mp-final2,
.mp-about-hook,
section.mp-custom-order,
section.mp-final2 {
  border-radius: 22px !important;
}
.mp-custom-box,
.mp-final2-box {
  border-radius: 22px !important;
}
.trust-item,
.mp-val,
.faq-item,
.category-tile {
  border-radius: 16px !important;
}

/* ---- Desktop single product: one card, 2 columns ---- */
@media (min-width: 901px) {
  .mp-single-product-page .mp-product-single-grid,
  body.single-product .mp-product-single-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 28px !important;
    align-items: start !important;
    background: #fff !important;
    border: 1px solid #e8ecf2 !important;
    border-radius: 24px !important;
    padding: 24px !important;
    box-shadow: 0 10px 36px rgba(7, 21, 47, 0.06) !important;
    max-width: 1100px !important;
    margin: 0 auto 28px !important;
  }
  .mp-single-product-page .mp-single-gallery {
    order: 2 !important; /* RTL: visual right = image */
  }
  .mp-single-product-page .mp-single-info {
    order: 1 !important;
  }
  .mp-single-product-page .mp-single-gallery,
  .mp-single-product-page .mp-single-info,
  .mp-single-product-page .mp-variants {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .mp-gallery-main {
    border-radius: 18px !important;
    overflow: hidden !important;
    background: #f7f9fc !important;
  }
  .mp-single-info h1 {
    font-size: 26px !important;
    margin-bottom: 16px !important;
  }
  .mp-single-info .eyebrow,
  .mp-single-info .mp-single-description,
  .mp-single-info .price {
    display: none !important;
  }
}

/* ---- Popup width & position ---- */
#mpQckSheet.is-open,
.mp-qck-sheet.is-open {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  bottom: 0 !important;
  width: 93% !important;
  max-width: 93vw !important;
  height: 90vh !important;
  height: 90dvh !important;
  max-height: 90vh !important;
  margin: 0 !important;
  border-radius: 22px 22px 0 0 !important;
}
@media (min-width: 901px) {
  #mpQckSheet.is-open,
  .mp-qck-sheet.is-open {
    width: 40% !important;
    max-width: 480px !important;
    min-width: 360px !important;
  }
}

/* Popup field labels with icons */
.mp-qck-lab {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #07152f !important;
  margin-bottom: 12px !important;
}
.mp-qck-lab-t {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.mp-qck-lab-t svg { opacity: .65; flex-shrink: 0; }

/* Review rows */
.mp-qck-review {
  background: #f7f9fc !important;
  border: 1px solid #e4e9f0 !important;
  border-radius: 16px !important;
  padding: 14px !important;
  white-space: normal !important;
}
.mp-qck-rev-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef1f5;
  font-size: 13px;
}
.mp-qck-rev-row:last-child { border-bottom: 0; }
.mp-qck-rev-row span { color: #64748b; flex-shrink: 0; }
.mp-qck-rev-row strong { color: #07152f; text-align: left; font-weight: 800; }
.mp-qck-rev-price { color: #ff6b35 !important; font-size: 15px !important; }

/* Gateways with icons */
.mp-qck-gateways {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.mp-qck-gw {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 16px !important;
  border: 1.5px solid #d5dce8 !important;
  border-radius: 14px !important;
  background: #fff !important;
  cursor: pointer !important;
  font-weight: 800 !important;
  color: #07152f !important;
  transition: border-color .15s, background .15s !important;
}
.mp-qck-gw input { position: absolute; opacity: 0; pointer-events: none; }
.mp-qck-gw.is-active,
.mp-qck-gw:has(input:checked) {
  border-color: #07152f !important;
  background: #f0f4fa !important;
  box-shadow: 0 0 0 1px #07152f !important;
}
.mp-qck-gw-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f7f9fc;
  flex-shrink: 0;
}
.mp-qck-gw-title { flex: 1; }

/* Accordions coupon / note */
.mp-qck-acc {
  border: 1px solid #e4e9f0;
  border-radius: 14px;
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
}
.mp-qck-acc summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 800;
  font-size: 13px;
  color: #07152f;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mp-qck-acc summary::-webkit-details-marker { display: none; }
.mp-qck-acc-body {
  padding: 0 14px 14px;
}
.mp-qck-coupon-row {
  display: flex;
  gap: 8px;
}
.mp-qck-coupon-row input {
  flex: 1;
  border: 1.5px solid #d5dce8;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
}
.mp-qck-coupon-btn {
  background: #07152f;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}
.mp-qck-acc-body textarea {
  width: 100%;
  border: 1.5px solid #d5dce8;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  min-height: 72px;
  resize: vertical;
}

/* ---- Auth / login / account / wishlist navy ---- */
body.woocommerce-account,
body[data-page="login"],
body[data-page="wishlist"],
body.woocommerce-wishlist {
  background: #f3f5f9 !important;
}
.login-card,
.woocommerce-account .woocommerce,
.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-content,
.auth-card,
.mp-login-box {
  background: #fff !important;
  border: 1px solid #e4e9f0 !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 28px rgba(7, 21, 47, 0.06) !important;
}
.woocommerce-MyAccount-navigation ul li a {
  color: #07152f !important;
  border-radius: 10px !important;
}
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
  background: #07152f !important;
  color: #fff !important;
}
.woocommerce-account .button,
.login-card .btn,
.auth-card .button,
body[data-page="login"] .button {
  background: #07152f !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  font-weight: 900 !important;
}
.woocommerce-account .button:hover,
.login-card .btn:hover {
  background: #ff6b35 !important;
}
.wishlist-empty h2,
.compare-empty h2 {
  color: #07152f !important;
}

/* Contact / about polish already exist — reinforce navy */
.mp-page-hero {
  background: #07152f !important;
  color: #fff !important;
}
.mp-page-hero h1 { color: #fff !important; }
.mp-page-hero p { color: rgba(255,255,255,.75) !important; }
.mp-about-card,
.mp-contact-card {
  border-radius: 18px !important;
  box-shadow: 0 8px 28px rgba(7, 21, 47, 0.06) !important;
}


/* ===== COLOR DOTS MUST KEEP THEIR SWATCH COLOR WHEN SELECTED ===== */
.mp-color-dot,
button.mp-color-dot,
.mp-variants .mp-color-dot {
  background: var(--swatch, #07152f) !important;
  background-color: var(--swatch, #07152f) !important;
}
.mp-color-dot.is-active,
button.mp-color-dot.is-active,
.mp-variants .mp-color-dot.is-active {
  background: var(--swatch, #07152f) !important;
  background-color: var(--swatch, #07152f) !important;
  border-color: transparent !important;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--swatch, #07152f) !important;
  transform: scale(1.1);
  color: inherit !important;
}
