/* ============================================================
   Metta Pic v15.0 — Desktop 2-col product · search · popup center
   ============================================================ */

/* ---- Desktop product: 2 columns, image RIGHT, options LEFT ---- */
@media (min-width: 901px) {
  body.single-product .mp-product-single-grid,
  .mp-single-product-page .mp-product-single-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
    align-items: start !important;
    background: #fff !important;
    border: 1px solid #e8ecf2 !important;
    border-radius: 20px !important;
    padding: 22px !important;
    box-shadow: 0 10px 36px rgba(7, 21, 47, 0.06) !important;
    max-width: 1100px !important;
    margin: 0 auto 28px !important;
  }

  /* RTL: first DOM child goes to the right visually.
     gallery is first in HTML → right side = image. Good. */
  body.single-product .mp-single-gallery,
  .mp-single-product-page .mp-single-gallery {
    grid-column: 1 !important;
    order: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  body.single-product .mp-single-info,
  .mp-single-product-page .mp-single-info {
    grid-column: 2 !important;
    order: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* variants live inside info / add-to-cart area */
  body.single-product .mp-variants {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 12px 0 0 !important;
  }
}

/* Image: radius 13px, NO white background */
body.single-product .mp-gallery-main,
body.single-product .mp-gallery-main img,
body.single-product #mpProductMainImage,
.mp-single-gallery .mp-gallery-main,
.mp-single-gallery .mp-gallery-main img {
  border-radius: 13px !important;
  background: transparent !important;
  background-color: transparent !important;
}
body.single-product .mp-gallery-main {
  overflow: hidden !important;
  border: none !important;
  background: transparent !important;
}
body.single-product .mp-gallery-main img {
  object-fit: contain !important;
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* Custom order chip/box OUTSIDE the 2-col product card */
.mp-custom-chip,
.mp-product-custom-order,
body.single-product .mp-custom-chip {
  display: block !important;
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto 24px !important;
  clear: both !important;
  position: relative !important;
  grid-column: 1 / -1 !important;
}
/* if chip was injected inside grid, force break out on desktop */
@media (min-width: 901px) {
  body.single-product .mp-product-single-grid > .mp-custom-chip,
  body.single-product .mp-single-info > .mp-custom-chip,
  body.single-product .mp-variants + .mp-custom-chip {
    grid-column: 1 / -1 !important;
    width: calc(100% + 0px) !important;
    margin-top: 20px !important;
  }
  /* Prefer fullwidth section outside grid */
  body.single-product .mp-product-fullwidth .mp-custom-chip,
  body.single-product .mp-custom-chip {
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ---- Search modal / panel navy ---- */
.mp-search-overlay,
.mp-search-modal,
.mp-search-panel,
#mpSearchOverlay,
.mp-search-pro,
.mp-search-box,
.search-modal {
  background: rgba(7, 21, 47, 0.97) !important;
  color: #fff !important;
}
.mp-search-modal input,
.mp-search-panel input,
.mp-search-pro input,
.search-modal input[type="search"],
.mp-search-box input {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  border-radius: 14px !important;
}
.mp-search-modal input::placeholder,
.mp-search-panel input::placeholder {
  color: rgba(255, 255, 255, 0.45) !important;
}
.mp-search-modal input:focus,
.mp-search-panel input:focus {
  border-color: #ff6b35 !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2) !important;
}
.mp-search-results a,
.mp-search-item,
.mp-search-modal a {
  color: #fff !important;
  border-radius: 12px !important;
}
.mp-search-results a:hover,
.mp-search-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}
.mp-search-close,
.mp-search-modal .close {
  color: #fff !important;
}
.header-search-trigger,
.header-search-desktop {
  color: #fff !important;
}
.header-search-trigger svg {
  stroke: #fff !important;
}

/* ---- Popup: horizontally centered, equal L/R gap ---- */
#mpQckSheet.is-open,
.mp-qck-sheet.is-open,
html body #mpQckSheet.is-open {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: 0 !important;
  top: auto !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  width: 93% !important;
  max-width: 93vw !important;
  height: 90vh !important;
  height: 90dvh !important;
  max-height: 90dvh !important;
  border-radius: 22px 22px 0 0 !important;
  box-sizing: border-box !important;
}
@media (min-width: 901px) {
  #mpQckSheet.is-open,
  .mp-qck-sheet.is-open {
    width: 40% !important;
    max-width: 480px !important;
    min-width: 360px !important;
  }
}

/* Fullwidth blocks stay outside product card */
.mp-product-fullwidth,
.mp-related-products {
  max-width: 1100px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
