/* Product-page geometry follows the measured HHP layout; MINGYI content remains authoritative. */
body.mgs-site .mgs-single-product {
  width: calc(100% - 5.235848em);
  max-width: 66.4989378333em;
  margin: 0 auto;
  padding: 0;
  display: flow-root;
  font-size: 17px;
  line-height: 1.618;
}
body.mgs-site .mgs-single-product .mgs-breadcrumb {
  margin: 20px 0 !important;
  padding: 5px 10px !important;
  background: #f5f5f5;
  border-radius: 4px;
  color: #333;
  font: 17px/1.618 Abel, Arial, sans-serif;
  overflow-wrap: anywhere;
}
body.mgs-site .mgs-single-product .mgs-breadcrumb a { color: #333; text-decoration: none; }
body.mgs-site .mgs-single-product .mgs-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 9fr) minmax(0, 13fr);
  column-gap: 4.3478260869%;
  align-items: start;
  margin: 0 0 3.7063235294em;
}
body.mgs-site .mgs-single-product .mgs-product-image-stage { position: relative; }
body.mgs-site .mgs-single-product .mgs-product-photo-main {
  display: flex;
  width: 100%;
  height: 375px;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}
body.mgs-site .mgs-single-product .mgs-product-photo-main img {
  display: block;
  width: min(100%, 375px);
  height: 375px;
  max-width: 100%;
  max-height: 375px;
  margin: 0;
  object-fit: contain;
}
body.mgs-site .mgs-single-product .mgs-product-zoom {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-height: 0;
  padding: 7px;
  border: 0;
  border-radius: 3px;
  background: #eee !important;
  color: #333 !important;
  box-shadow: none;
}
body.mgs-site .mgs-single-product .mgs-product-zoom .mgs-icon { width: 20px; height: 20px; margin: 0; }
body.mgs-site .mgs-single-product .mgs-product-photo-note {
  margin: 0;
  padding: 0 20px;
  color: #666;
  font: italic 14px/1.618 Abel, Arial, sans-serif;
  text-align: center;
}
body.mgs-site .mgs-single-product .mgs-product-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}
body.mgs-site .mgs-single-product .mgs-product-thumbnail {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0;
  padding: 3px;
  border: 1px solid #ddd;
  border-radius: 2px;
}
body.mgs-site .mgs-single-product .mgs-product-thumbnail[aria-current="true"] { border: 2px solid #003087; padding: 2px; }
body.mgs-site .mgs-single-product .mgs-product-thumbnail img { width: 100%; height: 100%; object-fit: contain; }
body.mgs-site .mgs-single-product .mgs-product-gallery > .mgs-product-image-empty { height: 375px; }
body.mgs-site .mgs-single-product .mgs-product-summary h1.product_title {
  padding: 0 0 8px !important;
  margin: 0 0 .54079em !important;
  border-bottom: 1px solid #003087;
  font: 400 30px/1.214 Oswald, Arial, sans-serif !important;
  letter-spacing: -1px;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
body.mgs-site .mgs-single-product .mgs-product-callout {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  padding: 6px 20px;
  border-left: 8px solid #003087;
  background: #e8eef8;
  color: #222;
  font: 14px/1.618 Abel, Arial, sans-serif;
}
body.mgs-site .mgs-single-product .mgs-product-callout .mgs-icon { flex: 0 0 17px; width: 17px; height: 17px; color: #003087; }
body.mgs-site .mgs-single-product .mgs-product-quote-terms { margin: 0; }
body.mgs-site .mgs-single-product .mgs-product-pricing {
  margin: 0 0 12px;
  color: #222;
  font: 400 24px/1.618 Oswald, Arial, sans-serif;
}
body.mgs-site .mgs-single-product .mgs-product-reference { margin: 0; font-size: 17px; color: #333; overflow-wrap: anywhere; }
body.mgs-site .mgs-single-product .mgs-esn-box {
  display: block;
  min-width: 0;
  padding: 15px 16px;
  margin: 17px 0 40px;
  border: 1px solid #003087;
  border-radius: 0;
  text-align: left;
  font: 16px/1.25 Abel, Arial, sans-serif;
}
body.mgs-site .mgs-single-product .mgs-esn-box legend.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
body.mgs-site .mgs-single-product .mgs-esn-intro { margin: 0; font: inherit; }
body.mgs-site .mgs-single-product .mgs-esn-intro label { display: inline; margin: 0; color: #111; font: 600 16px/1.25 Abel, Arial, sans-serif; }
body.mgs-site .mgs-single-product .mgs-esn-chevron { color: #003087; font: 700 25px/16px Arial, sans-serif; vertical-align: -1px; }
body.mgs-site .mgs-single-product #mgs-product-esn {
  display: block;
  width: 100%;
  height: 39.75px;
  min-height: 0;
  margin: 4px 0 9px;
  padding: 9.88875px;
  border: 0;
  border-radius: 0;
  background: #f2f2f2;
  color: #222;
  box-shadow: none;
  font: 600 16px/20px Abel, Arial, sans-serif !important;
}
body.mgs-site .mgs-single-product .mgs-esn-unknown { display: flex; align-items: center; gap: 4px; margin: 0; cursor: pointer; font: 16px/20px Abel, Arial, sans-serif; }
body.mgs-site .mgs-single-product #mgs-product-esn-unknown { flex: 0 0 13px; width: 13px; height: 13px; min-height: 0; margin: 0; padding: 0; accent-color: #003087; }
body.mgs-site .mgs-single-product .mgs-esn-help { margin: 10px 0 0; font: 14px/1.5 Abel, Arial, sans-serif; }
body.mgs-site .mgs-single-product .mgs-esn-help[hidden] { display: none !important; }
body.mgs-site .mgs-single-product .mgs-product-request-type { margin: 0 0 27.506px; color: #333; font-size: 16px; }
body.mgs-site .mgs-single-product .mgs-product-purchase { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
body.mgs-site .mgs-single-product .mgs-quantity {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7.92px;
  width: auto;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 2px 2px 7.8125px;
}
body.mgs-site .mgs-single-product .mgs-quantity button,
body.mgs-site .mgs-single-product #mgs-product-qty {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  min-height: 48px !important;
  max-width: 48px;
  margin: 0;
  padding: 0;
  border: 1px solid #e4e4e4;
  border-radius: 4px;
  background: #f2f2f2 !important;
  color: #222 !important;
  text-align: center;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 5%);
  font: 400 16px/25.888px Oswald, Arial, sans-serif !important;
}
body.mgs-site .mgs-single-product #mgs-product-qty { appearance: textfield; -moz-appearance: textfield; }
body.mgs-site .mgs-single-product #mgs-product-qty::-webkit-inner-spin-button,
body.mgs-site .mgs-single-product #mgs-product-qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
body.mgs-site .mgs-single-product .mgs-product-purchase > .button {
  display: block;
  width: 170px;
  min-height: 45.625px;
  margin: 0;
  padding: 9.88875px 12px;
  border: 0 !important;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  font: 600 16px/25.888px Oswald, Arial, sans-serif !important;
}
body.mgs-site .mgs-single-product .mgs-product-purchase > .mgs-add-to-quote { height: 50px; background: #003087 !important; color: #fff !important; }
body.mgs-site .mgs-single-product .mgs-product-purchase > .mgs-button-secondary { margin-top: 17px; background: #151515 !important; color: #fff !important; }
body.mgs-site .mgs-single-product #mgs-product-status { margin: 12px 0 0; font-size: 16px; }
body.mgs-site .mgs-single-product #mgs-product-status:empty { display: none; }
body.mgs-site .mgs-single-product .mgs-product-assurances { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 20px 0; font: 17px/1.618 Abel, Arial, sans-serif; }
body.mgs-site .mgs-single-product .mgs-product-assurances > span { display: flex; flex-direction: column; align-items: center; text-align: center; }
body.mgs-site .mgs-single-product .mgs-product-assurances .mgs-icon { width: 20px; height: 20px; color: #b9b9b9; margin: 0; }
body.mgs-site .mgs-single-product .mgs-product-meta { margin: 0; padding: 17px 0 0; border-top: 1px solid #f1f1f1; font-size: 14px; line-height: 1.618; overflow-wrap: anywhere; }
body.mgs-site .mgs-single-product .mgs-product-meta .sku_wrapper,
body.mgs-site .mgs-single-product .mgs-product-meta .posted_in { margin: 0 !important; }
body.mgs-site .mgs-single-product .mgs-product-meta .posted_in a { color: #222; text-decoration: underline; }
body.mgs-site .mgs-single-product .mgs-product-order-help { margin: 20px 0 24px; }
body.mgs-site .mgs-single-product .mgs-product-order-help .button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; width: 330px; max-width: 100%; min-height: 45.625px; margin: 0; padding: 9.88875px 12px; border: 0; border-radius: 4px; background: linear-gradient(#eee, #d8d8d8) !important; color: #111 !important; font: 600 16px/25.888px Oswald, Arial, sans-serif !important; }
body.mgs-site .mgs-single-product .mgs-product-order-help .mgs-icon { width: 20px; height: 20px; margin: 0; }
body.mgs-site .mgs-single-product .mgs-product-tabs { clear: both; width: 100%; margin: 0 0 17px; padding: 10px 0; }
body.mgs-site .mgs-single-product .mgs-product-tabs [role="tablist"] { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; width: 100%; margin: 0 0 27.506px; padding: 0 0 0 12px; border-top: 1px solid #f3f3f3; border-bottom: 1px solid #003087; }
body.mgs-site .mgs-single-product .mgs-product-tabs [role="tab"] { display: inline-flex; flex: 0 1 auto; align-items: center; justify-content: center; gap: 6px; min-height: 49.5px; margin: 0 -1px -1px 0; padding: 10px 20px; border: 1px solid #003087; border-radius: 3px 3px 0 0; background: #e8eef8; color: #333; text-transform: none; font: 600 17px/1.618 Abel, Arial, sans-serif !important; }
body.mgs-site .mgs-single-product .mgs-product-tabs [role="tab"] .mgs-icon { width: 17px; height: 17px; margin: 0; color: #003087; }
body.mgs-site .mgs-single-product .mgs-product-tabs [role="tab"][aria-selected="true"] { background: #003087 !important; color: #fff !important; }
body.mgs-site .mgs-single-product .mgs-product-tabs [role="tab"][aria-selected="true"] .mgs-icon { color: #fff; }
body.mgs-site .mgs-single-product .mgs-product-tab-chevron { display: none; }
body.mgs-site .mgs-single-product .mgs-tab-panel { float: none; width: 100%; margin: 0; padding: 20px; border: 0; text-align: left; overflow-wrap: anywhere; }
body.mgs-site .mgs-single-product .mgs-tab-panel[hidden] { display: none !important; }
body.mgs-site .mgs-single-product .mgs-tab-panel h2 { margin: 0 0 1.41575em; padding: 10px 0 0 !important; font: 400 24px/1.618 Oswald, Arial, sans-serif !important; text-transform: uppercase; }
body.mgs-site .mgs-single-product .mgs-tab-panel .woocommerce-product-details__short-description { display: block !important; visibility: visible !important; margin-bottom: 27.506px; }
body.mgs-site .mgs-single-product .mgs-tab-panel .mgs-product-detail-figure { margin-top: 24px; }
body.mgs-site .mgs-single-product .mgs-tab-panel .mgs-product-detail-image { max-height: none; }
body.mgs-site .mgs-single-product :is(button, a, input):focus-visible { outline: 2px solid #003087; outline-offset: 3px; }
body.mgs-site .mgs-single-product .mgs-product-zoom:hover { background: #ddd !important; }
body.mgs-site .mgs-single-product .mgs-product-purchase > .button:hover { filter: brightness(.92); }
body.mgs-site .mgs-single-product > .mgs-suggest { width: calc((100% - 30px) / 2); max-width: none; margin: 48px auto 70px; padding: 27.506px 20px 30px; border: 1px solid #ccc; border-radius: 10px; background: #fafafa; }
body.mgs-site .mgs-single-product > .mgs-suggest h2 { margin: 0 0 16px; padding: 0 !important; font: 400 24px/1.618 Oswald, Arial, sans-serif !important; text-transform: none !important; }
body.mgs-site .mgs-single-product > .mgs-suggest .button { width: 250px; max-width: 100%; min-height: 45.625px; padding: 9.88875px 12px !important; border: 0 !important; font: 600 16px/25.888px Oswald, Arial, sans-serif !important; }

/* The dialog only contains the merchant's product photographs. */
body.mgs-site .mgs-product-lightbox { inset: 0; width: min(94vw, 1200px); max-width: 94vw; max-height: 94dvh; margin: auto; padding: 52px 58px 24px; border: 0; border-radius: 4px; background: #fff; color: #222; box-shadow: 0 12px 60px rgb(0 0 0 / 25%); }
body.mgs-site .mgs-product-lightbox::backdrop { background: rgb(0 0 0 / 78%); }
body.mgs-site .mgs-product-lightbox:not([open]) { display: none; }
body.mgs-site .mgs-product-lightbox img { display: block; width: 100%; height: min(72dvh, 900px); object-fit: contain; margin: auto; }
body.mgs-site .mgs-product-lightbox button { position: absolute; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 0; padding: 0; border: 0; border-radius: 3px; background: #f1f1f1; color: #003087; font: 28px/1 Arial, sans-serif; }
body.mgs-site .mgs-product-lightbox button:hover { background: #e8eef8; }
body.mgs-site .mgs-product-lightbox button:focus-visible { outline: 2px solid #003087; outline-offset: 3px; }
body.mgs-site .mgs-product-lightbox button[hidden] { display: none; }
body.mgs-site .mgs-product-lightbox-close { top: 5px; right: 5px; }
body.mgs-site .mgs-product-lightbox-previous { top: calc(50% - 22px); left: 5px; }
body.mgs-site .mgs-product-lightbox-next { top: calc(50% - 22px); right: 5px; }
body.mgs-site .mgs-product-lightbox-caption { margin: 12px 0 0; text-align: center; font: 16px/1.5 Abel, Arial, sans-serif; }

@media (max-width: 767px) {
  body.mgs-site .mgs-single-product .mgs-breadcrumb { margin: 0 0 20px !important; font-size: 14px; }
  body.mgs-site .mgs-single-product .mgs-product-layout { grid-template-columns: minmax(0, 1fr); row-gap: 10px; margin-bottom: 2.617924em; }
  body.mgs-site .mgs-single-product .mgs-product-photo-main { height: auto; aspect-ratio: 1; }
  body.mgs-site .mgs-single-product .mgs-product-photo-main img { width: 100%; height: 100%; max-height: none; aspect-ratio: 1; }
  body.mgs-site .mgs-single-product .mgs-product-summary { text-align: center !important; }
  body.mgs-site .mgs-single-product .mgs-product-summary h1.product_title { margin-bottom: .54079em !important; font-size: 24px !important; text-align: center !important; }
  body.mgs-site .mgs-single-product .mgs-product-callout { justify-content: center; padding: 15px 20px; }
  body.mgs-site .mgs-single-product #mgs-product-esn-unknown { flex-basis: 48px; width: 48px; height: 48px; }
  body.mgs-site .mgs-single-product .mgs-esn-unknown { gap: 5px; }
  body.mgs-site .mgs-single-product .mgs-product-purchase { align-items: stretch; }
  body.mgs-site .mgs-single-product .mgs-quantity { justify-content: center; width: 100%; }
  body.mgs-site .mgs-single-product .mgs-product-purchase > .button { width: 100%; }
  body.mgs-site .mgs-single-product .mgs-product-purchase > .mgs-add-to-quote { height: auto; min-height: 45.625px; }
  body.mgs-site .mgs-single-product .mgs-product-assurances { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-bottom: 27.506px; }
  body.mgs-site .mgs-single-product .mgs-product-assurances > span > span { max-width: 90px; }
  body.mgs-site .mgs-single-product .mgs-product-order-help .button { width: 100%; }
  body.mgs-site .mgs-single-product .mgs-product-tabs [role="tablist"] { display: flex; flex-direction: column; align-items: stretch; margin-bottom: 24.0678px; padding: 0; border: 0; }
  body.mgs-site .mgs-single-product .mgs-product-tabs [role="tab"] { flex: none; justify-content: flex-start; width: 100%; min-height: 50.5px; margin: 0 0 -1px; padding: 10px 20px; border-radius: 0; background: #fff; text-align: left; font-weight: 400 !important; }
  body.mgs-site .mgs-single-product .mgs-product-tabs [role="tab"]:last-child { margin-bottom: 0; }
  body.mgs-site .mgs-single-product .mgs-product-tab-chevron { display: inline; margin-left: auto; }
  body.mgs-site .mgs-single-product .mgs-product-tabs [aria-selected="true"] .mgs-product-tab-chevron { visibility: hidden; }
  body.mgs-site .mgs-single-product .mgs-tab-panel { padding: 20px 0; }
  body.mgs-site .mgs-single-product .mgs-tab-panel table { table-layout: fixed; }
  body.mgs-site .mgs-single-product .mgs-tab-panel :is(th, td) { padding: 10px 8px; overflow-wrap: anywhere; }
  body.mgs-site .mgs-single-product > .mgs-suggest { width: calc((100% - 30px) * .92); }
  body.mgs-site .mgs-product-lightbox { padding: 50px 10px 20px; }
  body.mgs-site .mgs-product-lightbox img { height: 65dvh; }
  body.mgs-site .mgs-product-lightbox-previous, body.mgs-site .mgs-product-lightbox-next { background: rgb(241 241 241 / 92%); }
}
@media (max-width: 568px) {
  body.mgs-site .mgs-single-product { width: calc(100% - 2.8315em); }
}
