/* Product detail — shared MX palette and typography, scoped to this page. */
.mx-detail-page { color: var(--mx-ink); background: radial-gradient(ellipse at 5% 0%, #eee2cc80, transparent 45%), var(--mx-cream); padding: 26px 0 80px; }
.mx-detail-container { max-width: 1240px; }
.mx-detail-page .any-text { color: var(--mx-ink); }
.mx-detail-breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--mx-muted); margin-bottom: 30px; }
.mx-detail-breadcrumb a { color: var(--mx-brown); }
.mx-detail-breadcrumb [aria-current] { overflow-wrap: anywhere; }
.mx-detail-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.mx-detail-gallery { min-width: 0; position: sticky; top: 100px; }
.mx-detail-page .mySwiper { display: block; border: 1px solid var(--mx-line); border-radius: 24px; overflow: hidden; background: #fff; --swiper-navigation-size: 22px; }
.mx-detail-page .mySwiper swiper-slide { position: relative; aspect-ratio: 1; }
.mx-detail-page .mySwiper img { width: 100%; height: 100%; object-fit: contain; border: 0; padding: 0; border-radius: 0; }
.mx-detail-page .mySwiper2 { display: block; margin-top: 14px; --swiper-navigation-color: var(--mx-gold-deep); --swiper-navigation-size: 18px; }
.mx-detail-page .mySwiper2 swiper-slide { opacity: .55; border: 1px solid var(--mx-line); border-radius: 12px; overflow: hidden; background: #fff; aspect-ratio: 1; transition: opacity .2s, border-color .2s; }
.mx-detail-page .mySwiper2 .swiper-slide-thumb-active { opacity: 1; border-color: var(--mx-gold-deep); }
.mx-detail-page .mySwiper2 img { width: 100%; height: 100%; object-fit: contain; padding: 3px; border: 0; }
.mx-detail-summary { min-width: 0; padding: 12px 0; }
.mx-detail-page .right-col-container { display: flex; flex-direction: column; align-items: stretch; }
.mx-detail-heading { padding-bottom: 24px; border-bottom: 1px solid var(--mx-line); }
.mx-detail-heading .mx-eyebrow { font-size: 10px; letter-spacing: .17em; margin-bottom: 16px; }
.mx-detail-heading h1 { font-family: var(--mx-serif); font-size: clamp(28px, 3vw, 42px); line-height: 1.4; letter-spacing: .06em; font-weight: 600; margin-bottom: 8px; }
.mx-detail-heading .text-muted { font-size: 13px; line-height: 1.8; }
.mx-detail-label { display: block; font-size: 12px; color: var(--mx-muted); letter-spacing: .1em; margin-bottom: 10px; }
.mx-detail-price { padding: 24px 0 8px; }
.mx-detail-price h6 { font-size: 16px; color: var(--mx-gold-deep) !important; display: flex; align-items: baseline; gap: 6px; }
.mx-detail-price .price { font-size: 34px; font-weight: 500; letter-spacing: .02em; }
.mx-detail-options { margin-top: 20px; }
.mx-detail-page .toggle-button { border: 1px solid var(--mx-beige) !important; border-radius: 12px; padding: 11px 19px; margin: 0 6px 8px 0; color: var(--mx-brown); background: #fffcf8; font-size: 14px; transition: background .2s, border-color .2s; touch-action: manipulation; }
.mx-detail-page .toggle-button:hover:not(:disabled), .mx-detail-page .toggle-button.active { border-color: var(--mx-gold-deep) !important; background: var(--mx-brown); color: #fff; }
.mx-detail-page .emptysubItem { color: var(--mx-muted); background: #eeeae4; border-style: dashed !important; }
.mx-detail-page .btn:focus-visible, .mx-detail-page a:focus-visible, .mx-detail-page input:focus-visible { outline: 3px solid var(--mx-gold); outline-offset: 3px; box-shadow: none; }
.mx-detail-page .word { color: var(--mx-brown); font-weight: 400; line-height: 1.8; margin-top: 20px; }
.mx-detail-page #showDetail { color: var(--mx-gold-deep) !important; text-decoration: underline; text-underline-offset: 4px; }
.mx-detail-purchase { width: 100%; }
.mx-detail-purchase > .mt-4:first-child { margin-top: 18px !important; }
.mx-detail-quantity { display: flex; align-items: center; gap: 4px; }
.mx-detail-page .btn-number { width: 38px; height: 38px; border: 1px solid var(--mx-beige) !important; border-radius: 50% !important; color: var(--mx-brown); }
.mx-detail-page .btn-number:hover { background: var(--mx-brown); color: white; }
.mx-detail-page .custom-input-number { flex: 0 0 52px; width: 52px; text-align: center; background: transparent; border: 0 !important; color: var(--mx-ink); }
.mx-detail-page .leftquantity { font-size: 12px; color: var(--mx-muted); margin-left: 12px; }
.mx-detail-page .common-send-button { display: flex; flex-wrap: wrap !important; width: 100%; }
.mx-detail-page .common-send-button .btn { border-radius: 30px; min-height: 50px; padding: 12px 16px !important; flex-direction: row !important; gap: 8px; border-color: var(--mx-gold-deep) !important; font-size: 14px; }
.mx-detail-page .common-send-button .addCart { flex: 1; background: linear-gradient(120deg, #b99a65, #97703c); color: white; }
.mx-detail-page .common-send-button .open-cart-drawer { flex: 1; color: var(--mx-brown); background: #fffaf2; }
.mx-detail-page .common-send-button #copyLinkBtn { flex-basis: 100%; min-height: 36px; background: transparent; border-color: transparent !important; color: var(--mx-muted); font-size: 12px; }
.mx-detail-page .common-send-button .btn:hover:not(:disabled) { filter: brightness(.94); }
.mx-detail-page #extraArea { padding: 18px; border: 1px solid var(--mx-line); border-radius: 16px; background: #efe7da70; }
.mx-detail-page .add-on-title { display: flex; align-items: center; gap: 8px; color: var(--mx-brown); font-size: 15px; }
.mx-detail-page .add-on-tip { font-size: 12px; color: var(--mx-muted); }
.mx-detail-page .addon-card { background: var(--mx-white); border: 1px solid var(--mx-line); border-radius: 12px; height: 100%; margin: 0 !important; padding: 12px !important; }
.mx-detail-page .addon-name { font-size: 13px; overflow-wrap: anywhere; }
.mx-detail-page .addon-newprice { color: var(--mx-gold-deep); font-size: 14px; }
.mx-detail-page .addon-card .toggle-button { padding: 7px 10px; margin: 0 0 0 8px !important; font-size: 12px; flex-shrink: 0; }
.mx-detail-page .soldout-label { position: absolute; top: 20px; left: 20px; background: var(--mx-brown); color: white; padding: 8px 18px; border-radius: 24px; font-size: 13px; z-index: 2; }
.mx-detail-page .grayscale { filter: grayscale(1); }
.mx-detail-description { margin-top: 64px; padding-top: 44px; border-top: 1px solid var(--mx-beige); }
.mx-detail-section-heading { text-align: center; margin-bottom: 30px; }
.mx-detail-section-heading .mx-eyebrow { margin-bottom: 10px; font-size: 10px; letter-spacing: .2em; }
.mx-detail-section-heading .mx-h2 { font-family: var(--mx-serif); font-size: clamp(24px, 3vw, 32px); letter-spacing: .08em; }
.mx-detail-section-heading > p:last-child:not(.mx-eyebrow) { color: var(--mx-muted); font-size: 13px; margin-top: 12px; }
.mx-detail-richtext { background: #fff; padding: clamp(16px, 4vw, 48px); border: 1px solid var(--mx-line); border-radius: 20px; line-height: 1.9; overflow-x: auto; overflow-wrap: anywhere; }
.mx-detail-richtext img { max-width: 100% !important; height: auto !important; }
.mx-detail-richtext iframe, .mx-detail-richtext video { max-width: 100%; }
.mx-detail-richtext table { max-width: 100%; border-collapse: collapse; }
.mx-detail-richtext th, .mx-detail-richtext td { border: 1px solid var(--mx-beige); padding: 10px; }
.mx-detail-richtext .marker { background: #f1dfb7; }
.mx-detail-related { margin-top: 64px; }
.mx-detail-related .swiper-container-wrapper { position: relative; }
.mx-detail-page .mySwiper-recommend { --swiper-navigation-color: var(--mx-gold-deep); --swiper-navigation-size: 22px; }
.mx-detail-page .mySwiper-recommend swiper-slide { box-sizing: border-box; border: 1px solid var(--mx-line); border-radius: 16px; background: var(--mx-white); padding: 12px 12px 20px; overflow: hidden; }
.mx-detail-page .mySwiper-recommend img { width: 100% !important; aspect-ratio: 1; object-fit: contain; border-radius: 10px; }
.mx-detail-page .mySwiper-recommend .text-dark { color: var(--mx-brown) !important; font-family: var(--mx-serif); font-size: 16px; }
.mx-detail-page .mySwiper-recommend .custom-p { color: var(--mx-gold-deep); margin-top: 8px; }
.mx-detail-page .custom-button-prev, .mx-detail-page .custom-button-next { display: none; }
.mx-detail-page #detailModal .modal-content { border: 1px solid var(--mx-beige); border-radius: 20px; background: var(--mx-white); }
.mx-detail-page #detailModal .table { color: var(--mx-brown); }
@media (max-width: 991px) {
  .mx-detail-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .mx-detail-page #extraArea .col-md-6 { width: 100%; }
}
@media (max-width: 767px) {
  .mx-detail-page { padding: 18px 0 48px; }
  .mx-detail-container { padding-inline: 20px; }
  .mx-detail-breadcrumb { font-size: 11px; gap: 8px; margin-bottom: 20px; }
  .mx-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .mx-detail-gallery { position: static; }
  .mx-detail-page .mySwiper { border-radius: 18px; }
  .mx-detail-summary { padding: 0; }
  .mx-detail-heading { padding-bottom: 20px; }
  .mx-detail-price .price { font-size: 30px; }
  .mx-detail-description { margin-top: 40px; padding-top: 30px; }
  .mx-detail-related { margin-top: 40px; }
}
