.product-title-icon, .mobile-product-panel-heading, .mobile-product-panel-summary, .mobile-product-notice, .mobile-product-selection, .mobile-product-bottom, .mobile-product-backdrop, .product-panel-cart-icon { display: none; }
.product-title-copy { min-width: 0; }
.product-purchase-panel, .product-purchase-panel-options, .product-panel-notice { display: contents; }

@media (max-width: 800px) {
    body.product-detail-page { padding-bottom: 0; }
    body.product-detail-page.mobile-product-enhanced { padding-bottom: var(--mobile-storefront-bottom-height, calc(64px + env(safe-area-inset-bottom))); }
    body.mobile-product-panel-open { overflow: hidden; overscroll-behavior: none; }
    .product-main { padding-bottom: 28px; }
    .product-main > .container { width: 100%; max-width: none; }
    .product-breadcrumbs { display: none; }
    .product-overview { width: 100%; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; }
    .mobile-product-enhanced .product-overview { min-height: calc(100svh - var(--mobile-storefront-header-height, 56px) - var(--mobile-storefront-bottom-height, 64px) - 1px); grid-template-rows: minmax(auto, 1fr) auto; align-items: stretch; }
    .product-gallery { position: relative; }
    .product-gallery .product-media { width: 100%; max-width: none; border: 0; border-radius: 0; }
    .product-gallery:not(.has-gallery) .product-media { aspect-ratio: auto; height: min(calc(66.6667vw + 72px), 330px); max-height: none; }
    .mobile-product-enhanced .product-gallery:not(.has-gallery) .product-media { height: 100%; min-height: min(calc(66.6667vw + 72px), 330px); }
    .product-gallery.has-gallery .product-media { aspect-ratio: 4 / 3; }
    .product-image { padding: 12px 0 72px; }
    .product-cover { width: auto; max-width: calc(100% - 32px); max-height: 100%; }
    .product-gallery-pagination { position: absolute; bottom: 8px; margin: 0; padding: 0 7px; border-radius: 20px; background: #ffffffd9; }
    .product-gallery-arrow { width: 28px; height: 40px; }
    .product-purchase { display: flex; flex-direction: column; padding: 0 16px; }
    .product-purchase > .purchase-summary { order: 0; margin: 16px 0 0; }
    .product-purchase > .purchase-summary.has-promotion { margin: 0 -16px; border-radius: 0; }
    .product-purchase .promotion-banner { gap: 4px 8px; padding: 8px 16px; }
    .product-purchase .promotion-banner > [data-promotion-label] { font-size: 14px; line-height: 22px; }
    .product-purchase .promotion-timing { font-size: 12px; }
    .product-purchase .promotion-countdown { gap: 4px; }
    .product-purchase > .product-title-row { order: 1; display: flex; align-items: flex-start; gap: 12px; padding: 18px 0; }
    .product-title-icon { display: block; flex: 0 0 56px; width: 56px; height: 56px; object-fit: contain; border-radius: 12px; }
    .product-title-row h1 { font-size: 19px; line-height: 26px; }
    .product-intro { margin-top: 4px; font-size: 13px; line-height: 20px; }
    .product-purchase > .product-service-facts { order: 2; gap: 10px; margin: 0; padding: 14px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 22px; }
    .product-purchase > .mobile-product-selection { order: 3; }
    .mobile-product-selection:not([hidden]) { display: grid; grid-template-columns: 68px minmax(0, 1fr) 16px; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 15px 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; color: var(--ink); text-align: left; font-size: 14px; line-height: 22px; }
    .mobile-product-selection-label { color: var(--muted); }
    .mobile-product-selection-value { display: flex; align-items: center; gap: 10px; min-width: 0; }
    .mobile-product-selection-value > [data-sku-name] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .mobile-product-selection-value > span:last-child { flex-shrink: 0; color: var(--muted); white-space: nowrap; }
    .mobile-product-selection > svg { color: var(--faint); }
    .mobile-product-selection:disabled { color: var(--muted); }
    .mobile-product-enhanced .mobile-product-notice { display: block; }
    .mobile-product-notice:has(.product-purchase-notice) { margin: 14px 16px 0; }
    .mobile-product-notice .product-purchase-notice { margin-top: 0; padding: 16px 14px; }
    .mobile-product-notice .product-purchase-notice ul { padding-left: 15px; font-size: 13px; line-height: 24px; }
    .product-purchase > .sku-form { order: 5; margin-top: 18px; }
    .mobile-product-enhanced .product-purchase > .sku-form { display: contents; }
    .product-content-layout { display: block; margin-top: 24px; padding: 0 16px; }
    .product-sidebar { display: none; }
    .product-detail-page .product-content .detail-nav { position: sticky; top: var(--mobile-storefront-header-height, 56px); z-index: 20; display: flex; flex-wrap: nowrap; width: calc(100% + 32px); max-width: none; gap: 8px; margin-inline: -16px; padding: 0 12px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
    .product-detail-page .product-content .detail-nav::-webkit-scrollbar { display: none; }
    .product-detail-page .product-content .detail-nav a { display: flex; flex: 0 0 auto; align-items: center; min-height: 48px; padding: 10px 8px; border-bottom: 2px solid transparent; border-radius: 0; font-size: 14px; line-height: 24px; }
    .product-detail-page .product-content .detail-nav a.is-active { border-bottom-color: var(--blue); background: transparent; color: var(--blue); }
    .product-detail-page .detail-section { scroll-margin-top: 48px; }
    .product-detail-page .detail-section-heading h2 { font-size: 19px; line-height: 28px; }
    .mobile-product-bottom:not([hidden]) { position: fixed; inset: auto 0 0; z-index: 50; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: var(--mobile-storefront-bottom-height, calc(64px + env(safe-area-inset-bottom))); padding: 9px 16px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -3px 14px #10182808; }
    .mobile-product-bottom-price { display: flex; align-items: baseline; gap: 3px; min-width: 0; color: #ff3b3b; font-size: 23px; line-height: 30px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
    .mobile-product-bottom-price > small { font-size: 14px; }
    .mobile-product-bottom-actions { display: flex; gap: 10px; align-items: center; }
    .mobile-product-cart { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid #c9e9ff; border-radius: 7px; background: #f4faff; color: var(--blue); }
    .mobile-product-bottom .purchase-button { flex: none; width: auto; min-width: 112px; height: 44px; margin: 0; padding: 8px 16px; border-radius: 7px; font-size: 15px; line-height: 24px; }
    .mobile-product-cart:disabled { border-color: var(--line); color: var(--faint); background: #f9fafb; }
    .mobile-product-backdrop:not([hidden]) { position: fixed; inset: 0; z-index: 100; display: block; background: #10182866; }
    .product-purchase-panel { display: block; }
    .mobile-product-enhanced .product-purchase-panel:not([hidden]) { position: fixed; inset: auto 0 0; z-index: 110; display: flex; flex-direction: column; height: auto; max-height: min(80dvh, calc(100dvh - 72px)); margin: 0; border-radius: 16px 16px 0 0; background: #fff; outline: 0; overflow: hidden; }
    .product-purchase-panel[hidden] { display: none; }
    .mobile-product-enhanced .mobile-product-panel-heading { position: absolute; top: 12px; right: 10px; z-index: 1; display: block; }
    .mobile-product-panel-heading h2 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .mobile-product-panel-heading > button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 6px; color: var(--muted); background: transparent; }
    .mobile-product-enhanced .mobile-product-panel-summary { display: flex; flex: 0 0 auto; align-items: center; gap: 16px; min-height: 100px; padding: 18px 48px 18px 16px; border-bottom: 1px solid var(--line); }
    .mobile-product-panel-icon { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; object-fit: contain; }
    .mobile-product-panel-summary > div { min-width: 0; }
    .mobile-product-panel-summary p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
    .mobile-product-panel-summary .detail-price strong { font-size: 25px; line-height: 32px; }
    .mobile-product-enhanced .product-purchase-panel-options { display: block; flex: 0 1 auto; min-height: 0; padding: 18px 16px 24px; overflow-y: auto; overscroll-behavior: contain; }
    .product-purchase-panel .sku-selection-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .product-purchase-panel .sku-label { padding-top: 0; font-size: 16px; line-height: 24px; font-weight: 600; }
    .product-purchase-panel .sku-fieldset { gap: 24px; }
    .product-purchase-panel .sku-options { gap: 10px; }
    .product-purchase-panel .sku-option-content { min-height: 40px; padding: 8px 12px; font-size: 14px; line-height: 22px; }
    .mobile-product-enhanced .product-panel-notice { display: none; }
    .product-detail-page .product-purchase-panel .product-purchase-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 20px; }
    .mobile-product-enhanced .product-purchase-panel .product-purchase-controls { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 12px; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
    .product-purchase-panel .product-quantity-control { justify-self: start; height: 40px; }
    .product-purchase-panel .product-quantity-value > input { height: 38px; font-size: 16px; }
    .product-detail-page .product-purchase-panel .product-action-bar { position: static; display: block; width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
    .product-purchase-panel .product-action-summary { display: none; }
    .product-purchase-panel .product-action-buttons { width: 100%; }
    .product-purchase-panel .product-action-buttons > button { min-height: 44px; margin: 0; padding: 9px 12px; font-size: 15px; line-height: 24px; }
    .mobile-product-enhanced .product-purchase-panel .product-action-bar { flex: 0 0 auto; width: auto; }
    .mobile-product-enhanced .product-purchase-panel .product-action-buttons { width: auto; }
    .mobile-product-enhanced .product-purchase-panel .product-action-buttons > button { min-height: 40px; padding: 8px 14px; font-size: 15px; line-height: 22px; }
    .mobile-product-enhanced .product-purchase-panel .product-action-buttons > .add-cart-button { display: inline-flex; flex: 0 0 48px; align-items: center; justify-content: center; width: 48px; padding: 8px 10px; border-color: #d0d5dd; color: var(--ink); }
    .mobile-product-enhanced .product-panel-cart-label { display: none; }
    .mobile-product-enhanced .product-panel-cart-icon { display: block; }
    .mobile-product-selection:focus-visible, .mobile-product-cart:focus-visible, .mobile-product-panel-heading > button:focus-visible { outline: 3px solid #80caff; outline-offset: 2px; }
}

@media (max-width: 360px) {
    .mobile-product-bottom { gap: 8px; padding-inline: 12px; }
    .mobile-product-bottom-actions { gap: 8px; }
    .mobile-product-bottom .purchase-button { min-width: 100px; padding-inline: 12px; }
    .mobile-product-bottom-price { font-size: 21px; }
    .mobile-product-selection:not([hidden]) { grid-template-columns: 62px minmax(0, 1fr) 16px; gap: 8px; }
}
