/* Approved mobile app detail: mobile and PC evolve independently. */
body[data-app="mall-mobile"] dialog.product-detail-dialog.mall-product-app {
  --mpw-accent: var(--store-accent, #ff683e);
  --mpw-soft: color-mix(in srgb, var(--mpw-accent) 10%, white);
  --mpw-ink: #27303f;
  --mpw-muted: #858e9d;
  --mpw-line: #f0f1f5;
  position: fixed; inset: 0; width: 100%; max-width: 600px; height: 100dvh; max-height: 100dvh;
  margin: 0 auto; padding: 0; border: 0; border-radius: 0; transform: none;
  background: #f5f6f8; color: var(--mpw-ink); overflow: auto; overscroll-behavior: contain;
  font-family: inherit; scrollbar-width: none;
}
body[data-app="mall-mobile"] .mall-product-app::backdrop { background: #f5f6f8; }
body[data-app="mall-mobile"] .mall-product-app *, body[data-app="mall-mobile"] .mall-product-app *::before, body[data-app="mall-mobile"] .mall-product-app *::after { box-sizing: border-box; }
.mall-product-app :where(button,input,a) { font-family: inherit; letter-spacing: 0; }
body[data-app="mall-mobile"] .mall-product-app button { cursor: pointer; }
body[data-app="mall-mobile"] .mall-product-app :is(button,input,a):focus-visible { outline: 2px solid var(--mpw-accent); outline-offset: 3px; }
body[data-app="mall-mobile"] .mall-product-app [hidden] { display: none !important; }
body[data-app="mall-mobile"] .mall-product-app :is(button,a):disabled { cursor: default; opacity: .5; }
body[data-app="mall-mobile"] dialog.mall-product-app > div { display: block; gap: 0; padding: 0; }
body[data-app="mall-mobile"] dialog.mall-product-app > div > footer { display: none; }
body[data-app="mall-mobile"] dialog.mall-product-app > div > header {
  position: absolute; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 4;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 54px; padding: 8px 12px;
  background: none; border: 0; pointer-events: none;
}
body[data-app="mall-mobile"] dialog.mall-product-app > div > header > div { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body[data-app="mall-mobile"] dialog.mall-product-app > div > header button {
  display: inline-flex; align-items: center; justify-content: center; width: 35px; min-width: 35px; height: 35px; min-height: 35px;
  padding: 0; border: 0; border-radius: 50%; color: #35404f; background: #ffffffe0; backdrop-filter: blur(12px); pointer-events: auto;
}
body[data-app="mall-mobile"] dialog.mall-product-app > div > header button svg { width: 19px; height: 19px; }
body[data-app="mall-mobile"] .mall-product-app .mpw-header-share span { display: none; }
body[data-app="mall-mobile"] dialog.mall-product-app .product-detail-content.mall-product-workspace {
  display: block; width: 100%; max-width: none; max-height: none; margin: 0; padding: 0 0 calc(88px + env(safe-area-inset-bottom, 0px));
  overflow: visible; font-size: 12px; line-height: 1.65;
}
.mall-product-app .mall-product-workspace > *, .mall-product-app .mpw-info > * { min-width: 0; }
.mall-product-app .mpw-info { display: block; }
.mall-product-app .mo-product-cover { display: none; }
.mall-product-app .mpw-media, .mall-product-app .mpw-image-frame { position: relative; margin: 0; padding: 0; }
.mall-product-app .mpw-image-stage { width: 100%; aspect-ratio: 1.32; display: grid; place-items: center; overflow: hidden; background: white; }
.mall-product-app .mpw-image-stage img { display: block; width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.mall-product-app .mpw-image-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; padding: 30px; color: var(--mpw-muted); background: #f0f3f7; pointer-events: none; }
.mall-product-app .mpw-image-status-icon svg { width: 35px; height: 35px; }
.mall-product-app .mpw-photo-count { position: absolute; right: 12px; bottom: 12px; padding: 2px 10px; border-radius: 16px; color: white; background: #20334755; font-size: 10px; }
.mall-product-app .mpw-image-caption:has(> [hidden]) { display: none; }
.mall-product-app .mpw-image-caption { padding: 5px 12px; background: white; }
.mall-product-app .mpw-thumbnails { display: flex; gap: 8px; padding: 8px 12px; overflow: auto; background: white; }
.mall-product-app .mpw-thumbnail { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--mpw-line); border-radius: 6px; padding: 3px; background: white; font-size: 10px; }
.mall-product-app .mpw-thumbnail[aria-pressed="true"] { border-color: var(--mpw-accent); }
.mall-product-app .mpw-thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.mall-product-app .mpw-price {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 15px 11px; margin: 0; border: 0; border-radius: 0;
  background: linear-gradient(110deg, color-mix(in srgb, var(--mpw-accent) 80%, #ffc443), var(--mpw-accent) 78%); color: white;
}
.mall-product-app .mpw-price-main { min-width: 0; }
.mall-product-app .mpw-price-label { display: block; font-size: 11px; margin-bottom: 2px; }
.mall-product-app .mpw-price-value { display: inline-block; color: white; font-size: 28px; font-weight: 750; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mall-product-app .mpw-market-price { display: inline-block; font-size: 10px; color: #ffffffcf; text-decoration: line-through; margin-left: 7px; }
.mall-product-app .mpw-price-meta { display: grid; gap: 3px; text-align: right; flex: 0 1 auto; font-size: 12px; }
.mall-product-app .mpw-fulfillment { font-size: 10px; color: #ffffffe0; overflow-wrap: anywhere; }
.mall-product-app .mqm-title-card { margin: 0; padding: 14px 15px 12px; border-radius: 0 0 12px 12px; background: white; }
.mall-product-app .mpw-title { margin: 0; color: #252c38; font-size: 17px; font-weight: 650; line-height: 1.6; overflow-wrap: anywhere; }
.mall-product-app .product-detail-summary { margin: 5px 0 0; color: var(--mpw-muted); font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.mall-product-app .mpw-card-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; margin-top: 8px; color: #8e96a3; font-size: 10px; }
.mall-product-app .mpw-card-code { display: inline-flex; gap: 4px; }
.mall-product-app .mpw-card-code b { font-weight: 400; }
.mall-product-app .mpw-product-type { padding: 1px 5px; border-radius: 4px; color: #aa7725; background: #fff5df; }
.mall-product-app .mpw-command { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 30px; padding: 3px 6px; border: 0; border-radius: 7px; background: transparent; color: #7f8998; font-size: 11px; }
.mall-product-app .mpw-command svg { width: 15px; height: 15px; flex: none; }
.mall-product-app .mpw-card-foot .mpw-command { margin-left: auto; font-size: 10px; }
.mall-product-app .mpw-member-upgrade { display: flex; align-items: center; gap: 6px; margin: 9px; padding: 10px; min-height: 43px; border: 1px solid #ffeed0; border-radius: 9px; background: linear-gradient(105deg,#fff4de,#ffecd0); color: #ad7325; text-decoration: none; font-size: 11px; }
.mall-product-app .mpw-member-upgrade b { font-size: 11px; font-weight: 600; }
.mall-product-app .mpw-member-upgrade > span { display: flex; align-items: center; margin-left: auto; }
.mall-product-app .mpw-member-upgrade svg { width: 15px; height: 15px; flex: none; }
.mall-product-app .mqm-service { margin: 8px; padding: 0 13px; border-radius: 13px; background: white; }
.mall-product-app .mqm-fact-row { display: flex; align-items: center; gap: 15px; min-height: 48px; width: 100%; padding: 9px 0; border: 0; border-bottom: 1px solid var(--mpw-line); background: transparent; text-align: left; }
.mall-product-app .mqm-fact-row:last-child { border: 0; }
.mall-product-app .mqm-fact-label { color: #949aa5; font-size: 11px; flex: none; }
.mall-product-app .mqm-fact-values { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; flex: 1; min-width: 0; font-size: 12px; overflow-wrap: anywhere; }
.mall-product-app .mqm-fact-row > svg { width: 14px; height: 14px; color: #a9aeba; flex: none; }
.mall-product-app .mpw-quantity-range { font-size: 11px; color: #838b98; }
.mall-product-app .mqm-assure-item { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; color: #717b8a; }
.mall-product-app .mqm-assure-item svg { width: 12px; height: 12px; color: var(--mpw-accent); flex: none; }
.mall-product-app .mpw-tools:empty, .mall-product-app .mpw-copy-value[hidden] { display: none; }
.mall-product-app .mpw-tools, .mall-product-app .mpw-status { margin: 8px 12px; font-size: 12px; overflow-wrap: anywhere; }
.mall-product-app .mpw-status.is-error { color: #b63324; }
.mall-product-app .mpw-copy-value { width: calc(100% - 24px); margin: 4px 12px; padding: 10px; background: white; color: #465263; border: 1px solid #e4e7ed; }
.mall-product-app .mqm-tabs { margin: 9px 8px 0; border-radius: 13px 13px 0 0; background: white; overflow: hidden; }
.mall-product-app .mpw-sup-tablist { display: flex; justify-content: space-around; align-items: stretch; height: 47px; border-bottom: 1px solid var(--mpw-line); overflow-x: auto; scrollbar-width: none; }
.mall-product-app .mpw-sup-tab { position: relative; flex: 1 0 auto; min-width: 62px; padding: 0 7px; border: 0; background: none; color: #7f8794; font-size: 12px; white-space: nowrap; }
.mall-product-app .mpw-sup-tab[aria-selected="true"] { color: #242b39; font-weight: 600; }
.mall-product-app .mpw-sup-tab[aria-selected="true"]::after { content: ""; position: absolute; left: calc(50% - 10px); bottom: 0; width: 20px; height: 3px; border-radius: 3px; background: var(--mpw-accent); }
.mall-product-app .mpw-sup-panel { padding: 14px; overflow-x: auto; }
.mall-product-app .mpw-sup-table { width: 100%; min-width: 450px; border-collapse: collapse; }
.mall-product-app .mpw-sup-table :is(th,td) { padding: 9px 7px; text-align: left; font-size: 11px; border-bottom: 1px solid var(--mpw-line); white-space: nowrap; color: #737c8b; }
.mall-product-app .mpw-sup-table th { color: #697482; font-weight: 500; background: #fafbfc; }
.mall-product-app .mpw-sup-empty { padding: 20px 0; text-align: center; color: var(--mpw-muted); }
.mall-product-app .mpw-body-heading { margin: 0 8px; padding: 16px 15px 0; background: white; }
.mall-product-app .mpw-body-heading h3 { margin: 0 0 8px; font-size: 14px; color: #353e4c; }
.mall-product-app .mpw-product-code { display: none; }
.mall-product-app .mpw-content-empty { margin: 0; padding-bottom: 20px; color: var(--mpw-muted); }
.mall-product-app .mpw-body { margin: 0 8px; padding: 0 15px 20px; border-radius: 0 0 13px 13px; background: white; min-width: 0; overflow-wrap: anywhere; }
.mall-product-app .mpw-body :is(img,video,iframe) { max-width: 100%; }
.mall-product-app .mpw-body .mps-product-description { font-size: 12px; line-height: 1.9; color: #737c8b; }
.mall-product-app .mpw-body table { display: block; max-width: 100%; overflow: auto; }
.mall-product-app .mpw-tab-other :is(.mpw-body-heading,.mpw-body) { display: none; }
.mall-product-app .product-purchase-notice { margin: 0 0 10px; padding: 0; color: #737c8b; background: transparent; border: 0; font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
/* This bar belongs to the native product dialog, never to the outer page. */
body[data-app="mall-mobile"] .mall-product-app .mqm-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 8; width: 100%; max-width: 600px; margin: 0 auto; display: flex; align-items: center; gap: 9px; padding: 8px 12px calc(9px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #eeeef2; background: #fffffff5; backdrop-filter: blur(15px); }
.mall-product-app .mqm-bar-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 35px; min-height: 44px; padding: 0; color: #737d8c; background: none; border: 0; text-decoration: none; font-size: 9px; }
.mall-product-app .mqm-bar-link svg { width: 20px; height: 20px; }
.mall-product-app .mpw-favorite-host { position: relative; min-width: 35px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 15px; }
.mall-product-app .mpw-favorite-label { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: 9px; color: #737d8c; pointer-events: none; }
.mall-product-app .mpw-favorite-host .mf-toggle-wrap { position: static; display: flex; margin: 0; padding: 0; gap: 0; }
.mall-product-app .mpw-favorite-host .mf-toggle { display: flex; align-items: center; justify-content: center; width: 35px; min-width: 35px; min-height: 29px; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; color: #737d8c; }
.mall-product-app .mpw-favorite-host .mf-toggle svg { width: 20px; height: 20px; }
.mall-product-app .mpw-favorite-host .mf-toggle[aria-pressed="true"] { color: var(--mpw-accent); }
.mall-product-app .mpw-favorite-host:has([aria-pressed="true"]) .mpw-favorite-label { color: var(--mpw-accent); }
.mall-product-app .mpw-favorite-host .mf-toggle-caption { display: none; }
.mall-product-app .mpw-favorite-host .mf-retry { position: absolute; bottom: 38px; right: 0; width: 28px; height: 28px; }
.mall-product-app .mpw-bar-actions { display: flex; flex: 1; min-width: 0; height: 44px; margin-left: 3px; border-radius: 24px; overflow: hidden; }
.mall-product-app .mpw-bar-actions button { flex: 1; min-width: 0; min-height: 44px; padding: 0 7px; font-size: 13px; font-weight: 600; border: 0; border-radius: 0; white-space: nowrap; }
.mall-product-app .mpw-open-cart { background: var(--mpw-soft); color: var(--mpw-accent); }
.mall-product-app .mpw-open-buy { color: white; background: linear-gradient(110deg,color-mix(in srgb,var(--mpw-accent) 80%,#ffc443),var(--mpw-accent)); }
/* One dialog owns both views. The section is intentionally not another showModal(). */
body[data-app="mall-mobile"] dialog.mall-product-app.mpw-sheet-open { overflow: hidden; }
.mall-product-app .mpw-sheet-overlay { position: fixed; inset: 0; z-index: 12; display: flex; align-items: flex-end; width: 100%; max-width: 600px; height: 100dvh; margin: 0 auto; background: #1b243b66; }
.mall-product-app .mpw-sheet { position: relative; width: 100%; min-width: 0; max-height: calc(100dvh - 30px - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain; border-radius: 23px 23px 0 0; padding: 0 19px calc(20px + env(safe-area-inset-bottom, 0px)); background: white; color: var(--mpw-ink); box-shadow: 0 -10px 50px #17263c0c; animation: mpwSheetIn .22s ease-out; scrollbar-width: thin; }
.mall-product-app .mpw-sheet-handle { width: 34px; height: 4px; border-radius: 8px; margin: 8px auto 12px; background: #e5e7eb; }
.mall-product-app .mpw-sheet-close { position: absolute; top: 14px; right: 11px; width: 36px; min-width: 36px; height: 36px; border-radius: 50%; background: #f6f7f9; color: #929baa; }
.mall-product-app .mpw-sheet-close span { display: none; }
.mall-product-app .mpw-sheet-top { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 3px 28px 17px 0; }
.mall-product-app .mpw-sheet-image { position: relative; display: grid; place-items: center; width: 74px; height: 74px; flex: none; border-radius: 12px; overflow: hidden; background: #f7f8fa; color: #b6becc; }
.mall-product-app .mpw-sheet-image > svg { width: 28px; height: 28px; }
.mall-product-app .mpw-sheet-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: white; }
.mall-product-app .mpw-sheet-copy { min-width: 0; }
.mall-product-app .mpw-sheet-price { color: var(--mpw-accent); font-size: 26px; font-weight: 650; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mall-product-app .mpw-sheet-copy p { margin: 5px 0 0; font-size: 11px; color: #87909e; line-height: 1.6; overflow-wrap: anywhere; }
.mall-product-app .mpw-sheet-title { font-size: 13px; margin: 4px 0 13px; font-weight: 600; }
body[data-app="mall-mobile"] .mall-product-app .product-sku-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 0; margin: 0 0 20px; border: 0; border-radius: 0; list-style: none; background: transparent; }
body[data-app="mall-mobile"] .mall-product-app .product-sku-list li { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 65px; padding: 9px 5px; border: 1px solid #edf0f4; border-radius: 9px; background: #f7f8fa; text-align: center; }
.mall-product-app .product-sku-option label { display: block; width: 100%; margin: 0; cursor: pointer; }
.mall-product-app .product-sku-option label input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mall-product-app .product-sku-option:has(input:focus-visible) { outline: 2px solid var(--mpw-accent); outline-offset: 2px; }
body[data-app="mall-mobile"] .mall-product-app .product-sku-list strong { display: block; font-size: 12px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
body[data-app="mall-mobile"] .mall-product-app .product-sku-list small { display: none; }
body[data-app="mall-mobile"] .mall-product-app .product-sku-list b { color: #858c99; font-size: 11px; font-weight: 400; line-height: 1.4; overflow-wrap: anywhere; }
body[data-app="mall-mobile"] .mall-product-app .product-sku-list .mpw-selected { border-color: color-mix(in srgb,var(--mpw-accent) 60%,white); background: var(--mpw-soft); color: var(--mpw-accent); }
body[data-app="mall-mobile"] .mall-product-app .product-sku-list .mpw-selected b { color: var(--mpw-accent); }
.mall-product-app .product-sku-option.is-disabled { opacity: .5; }
.mall-product-app .mpw-specifications:empty, .mall-product-app .mpw-native-options:has(> [hidden]) { display: none; }
.mall-product-app :is(.pc-specification-groups,.mobile-specification-groups) { border: 0; padding: 0; margin: 0 0 18px; background: transparent; }
.mall-product-app .pc-specification-groups-option:has(input:checked) { border-color: var(--mpw-accent); background: var(--mpw-soft); }
.mall-product-app .mpw-purchase { min-width: 0; }
.mall-product-app #productSaleAvailability { margin: 0 0 8px; font-size: 11px; color: #858e9b; overflow-wrap: anywhere; }
body[data-app="mall-mobile"] .mall-product-app .product-purchase-panel { position: static; inset: auto; z-index: auto; display: flex; align-items: center; flex-wrap: nowrap; gap: 12px; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
body[data-app="mall-mobile"] .mall-product-app .product-purchase-panel > label { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 0; width: auto; min-width: 0; font-size: 13px; color: #353e4c; }
.mall-product-app .mpw-stepper { display: flex; align-items: center; flex: none; }
body[data-app="mall-mobile"] .mall-product-app .mpw-stepper button { display: grid; place-items: center; flex: none; width: 33px; min-width: 33px; height: 36px; min-height: 36px !important; padding: 0; border: 1px solid #eceef2; border-radius: 0; background: #f8f9fb; color: #525d6e; }
.mall-product-app .mpw-stepper button:first-child { border-radius: 7px 0 0 7px; }
.mall-product-app .mpw-stepper button:last-child { border-radius: 0 7px 7px 0; }
.mall-product-app .mpw-stepper button span { display: none; }
body[data-app="mall-mobile"] .mall-product-app .mpw-stepper input { width: 12ch; min-width: 12ch; height: 36px; margin: 0; padding: 0 2px; border: 1px solid #eceef2; border-left: 0; border-right: 0; border-radius: 0; background: white; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; appearance: textfield; }
.mall-product-app .mpw-stepper input::-webkit-inner-spin-button { appearance: none; }
.mall-product-app .product-quantity-rules { margin: 8px 0; font-size: 10px; line-height: 1.7; color: #929aa6; }
.mall-product-app .mpw-sheet-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--mpw-line); color: #77818e; font-size: 12px; }
.mall-product-app .mpw-total { margin: 0; color: var(--mpw-accent); font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mall-product-app .mpw-sheet-actions { margin-top: 14px; }
body[data-app="mall-mobile"] .mall-product-app .mpw-sheet-actions button { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 45px; padding: 10px 16px; border: 0; border-radius: 24px; background: linear-gradient(110deg,color-mix(in srgb,var(--mpw-accent) 80%,#ffc443),var(--mpw-accent)); color: white; font-size: 14px; font-weight: 600; }
.mall-product-app .mpw-sheet-actions button svg { width: 18px; height: 18px; }
@keyframes mpwSheetIn { from { opacity: .7; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (max-width: 359px) {
  body[data-app="mall-mobile"] .mall-product-app .mqm-bar { gap: 5px; padding-left: 9px; padding-right: 9px; }
  .mall-product-app :is(.mqm-bar-link,.mpw-favorite-host) { min-width: 30px; }
  .mall-product-app .mpw-bar-actions button { font-size: 12px; padding: 0 6px; }
  .mall-product-app .mpw-sheet { padding-left: 15px; padding-right: 15px; }
  .mall-product-app .mpw-sheet-price { font-size: 23px; }
  .mall-product-app .mpw-price-value { font-size: 26px; }
}
@media (max-height: 450px) and (orientation: landscape) { .mall-product-app .mpw-sheet { max-height: calc(100dvh - 12px); } }
@media (prefers-reduced-motion: reduce) { .mall-product-app .mpw-sheet { animation: none; } }
