.product-detail-trigger { cursor: pointer; outline-offset: -3px; }
.product-detail-trigger:focus-visible { outline: 2px solid #5064ff; border-radius: 10px; }
.product-detail-link { border: 0; background: none; color: #727480; font: inherit; font-size: 11px; padding: 6px 0 6px 12px; min-height: 28px; cursor: pointer; margin-left: auto; }
.product-detail-link:hover { color: #455dff; background: transparent; }
.pd-dialog { --pd-accent: #eb623e; width: 90vw; height: 90vh; height: min(90dvh, calc(var(--app-height, 100dvh) * .9)); max-width: 1080px; max-height: 90dvh; margin: auto; padding: 0; border: 1px solid #ffffffa8; border-radius: 24px; color: #23242b; background: #f5f6f8; box-shadow: 0 24px 100px #10152040; overflow: hidden; font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; }
.pd-dialog[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; animation: pd-appear .2s ease-out; }
.pd-dialog::backdrop { background: rgb(15 20 30 / 32%); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.pd-dialog *, .pd-dialog *::before, .pd-dialog *::after { box-sizing: border-box; }
.pd-dialog button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pd-dialog button:focus-visible { outline: 2px solid #5265ff; outline-offset: -3px; }
.pd-dialog [hidden] { display: none !important; }
.pd-header { background: #ffffffed; border-bottom: 1px solid #ededf1; padding: 12px 20px 0; }
.pd-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.pd-heading h2 { font-size: 16px; letter-spacing: .02em; margin: 0; font-weight: 650; }
.pd-close { display: grid; place-items: center; width: 36px; height: 36px; min-height: 36px; padding: 0; border: none; border-radius: 50%; background: #f1f2f5; color: #555866; font-size: 24px !important; line-height: 1; }
.pd-tabs { display: flex; justify-content: center; gap: 30px; }
.pd-tabs button { color: #757887; border: 0; border-radius: 0; border-bottom: 2px solid transparent; background: transparent; padding: 9px 4px; min-height: 40px; font-size: 13px; }
.pd-tabs button[aria-current="true"] { color: #262a35; border-bottom-color: var(--pd-accent); font-weight: 650; }
.pd-scroll { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scroll-behavior: smooth; }
.pd-hero { background: white; }
.pd-gallery { position: relative; min-width: 0; aspect-ratio: 1; background: #f7f7f9; }
.pd-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; }
.pd-track::-webkit-scrollbar { display: none; }
.pd-track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.pd-slide { flex: 0 0 100%; width: 100%; height: 100%; position: relative; display: grid; place-items: center; scroll-snap-align: center; user-select: none; background: #f7f7f9; }
.pd-slide img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity .16s ease; opacity: 0; }
.pd-slide img.is-loaded { opacity: 1; }
.pd-photo-placeholder { color: #a0a2ad; font-size: 12px; display: grid; justify-items: center; gap: 8px; }
.pd-photo-placeholder::before { content: '▧'; font-size: 40px; font-weight: 300; color: #c4c6ce; }
.pd-counter { position: absolute; right: 15px; bottom: 15px; border-radius: 20px; padding: 3px 12px; color: white; background: #252a3869; backdrop-filter: blur(6px); font-size: 12px; pointer-events: none; }
.pd-arrow { position: absolute; top: calc(50% - 19px); width: 36px; height: 38px; min-height: 38px; padding: 0; border: 1px solid #ffffff80; border-radius: 50%; background: #ffffffbf; color: #404554; font-size: 23px !important; box-shadow: 0 2px 10px #171c3010; }
.pd-prev { left: 10px; } .pd-next { right: 10px; }
.pd-dots { position: absolute; bottom: 17px; left: 14px; display: flex; max-width: calc(100% - 85px); overflow: hidden; gap: 4px; }
.pd-dots button { width: 16px; height: 16px; min-height: 16px; padding: 0; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; }
.pd-dots button::before { content: ''; width: 5px; height: 5px; border-radius: 5px; background: #959aa875; }
.pd-dots button[aria-current="true"]::before { width: 10px; background: #343a4e; }
.pd-overview { padding: 21px 22px 24px; min-width: 0; }
.pd-platform { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 5px; background: #f1f2f5; color: #6d6f7a; margin-top: 14px; }
.pd-price-line { display: flex; align-items: flex-end; gap: 10px 18px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: linear-gradient(110deg,#fff1e8,#fffaf7); }
.pd-unit-price { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #faf6ef; color: #84623f; font-size: 13px; font-variant-numeric: tabular-nums; }
.pd-unit-price p { margin: 5px 0 0; color: #85808a; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.pd-primary-price { display: flex; flex-direction: column; gap: 3px; }
.pd-price { color: var(--pd-accent); font-size: 34px; font-weight: 750; line-height: 1.2; letter-spacing: -.03em; }
.pd-price small { font-size: 16px; margin-right: 3px; font-weight: 600; }
.pd-price-caption { color: #d35d38; font-size: 12px; font-weight: 600; }
.pd-original { color: #85838a; font-size: 12px; padding-bottom: 3px; }
.pd-title { font-size: 19px; line-height: 1.6; margin: 14px 0 12px; font-weight: 650; overflow-wrap: anywhere; }
.pd-coupon-summary { display: inline-block; border-radius: 5px; background: #fff1e9; color: #d75b30; padding: 3px 9px; font-size: 12px; }
.pd-coupon-summary.is-neutral { color: #828591; background: #f2f3f6; }
.pd-metrics { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 16px; color: #858896; font-size: 12px; }
.pd-shop { padding-top: 17px; margin-top: 17px; border-top: 1px solid #f0f0f3; display: flex; align-items: center; gap: 10px; }
.pd-shop-icon { border-radius: 10px; background: #f1f3fc; color: #6977a3; width: 36px; height: 36px; display: grid; place-items: center; flex-shrink: 0; }
.pd-shop-name { font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.pd-services { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pd-services span { font-size: 11px; padding: 2px 8px; border-radius: 5px; color: #6c7784; background: #f5f7f9; }
.pd-section { background: white; margin: 10px; border-radius: 14px; padding: 18px 20px; scroll-margin-top: 10px; }
.pd-section h3 { margin: 0 0 13px; font-size: 15px; font-weight: 650; }
.pd-section p { margin: 8px 0; color: #727582; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.pd-coupon-box { border: 1px solid #ffe0cf; background: linear-gradient(110deg,#fff3e9,#fffaf7); padding: 15px; border-radius: 11px; }
.pd-coupon-box strong { color: #e36938; font-size: 20px; }
.pd-coupon-box p { font-size: 12px; color: #ad785e; margin-bottom: 0; }
.pd-specs { margin: 0; display: grid; grid-template-columns: minmax(65px, 25%) minmax(0, 1fr); font-size: 12px; }
.pd-specs dt, .pd-specs dd { margin: 0; padding: 12px 8px; border-bottom: 1px solid #f0f1f4; overflow-wrap: anywhere; }
.pd-specs dt { color: #9396a0; padding-left: 0; } .pd-specs dd { color: #535763; }
.pd-detail-images { display: grid; gap: 6px; margin-top: 16px; }
.pd-detail-images img { display: block; width: 100%; height: auto; min-height: 64px; background: #f6f7f9; border-radius: 6px; }
.pd-banner { display: flex; align-items: center; gap: 9px; padding: 12px 18px; color: #86704f; background: #fff8e9; font-size: 12px; }
.pd-banner p { margin: 0; flex: 1; } .pd-retry { border: 1px solid #dfcfb7; border-radius: 16px; color: #8b7049; background: transparent; padding: 4px 12px; flex-shrink: 0; }
.pd-loading { color: #9699a5; font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; }
.pd-empty { color: #a0a3ac !important; font-size: 12px !important; }
.pd-footnote { margin: 0; padding: 7px 22px 20px; font-size: 11px; color: #a1a3ad; text-align: center; }
.pd-footer { background: #fffffff5; border-top: 1px solid #ececf0; padding: 10px 22px max(10px,env(safe-area-inset-bottom)); }
.pd-footer-actions { display: grid; grid-template-columns: 1fr; gap: 10px; min-width: 0; }
.pd-get-link { width: 100%; border: 0; border-radius: 24px; min-height: 46px; padding: 8px 10px; white-space: nowrap; font-size: 15px !important; font-weight: 650 !important; }
.pd-get-link { color: white; background: linear-gradient(110deg,#fb9e4b,#ec6945); box-shadow: 0 5px 14px #f0843420; }
.pd-get-link:hover { background: linear-gradient(110deg,#fb9e4b,#ec6945); filter: brightness(.98); }
.pd-get-link:active { filter: brightness(.96); }
.pd-footer-note { text-align: center; font-size: 10px; color: #a2a3ad; margin: 5px 0 0; }
.pd-toast { position: absolute; left: 50%; bottom: 99px; transform: translateX(-50%); max-width: 85%; padding: 9px 18px; border-radius: 22px; background: #272c3ceb; color: white; font-size: 12px; pointer-events: none; text-align: center; }
html.product-detail-open .messages-viewport { overflow: hidden !important; }
@media (min-width: 800px) { .pd-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .pd-overview { padding: 30px; align-self: center; } .pd-section { margin: 14px 20px; padding: 22px 26px; } .pd-detail-images { max-width: 680px; margin: 16px auto 0; } .pd-footer { display: grid; grid-template-columns: 1fr 400px; align-items: center; gap: 16px; } .pd-footer-actions { grid-column: 2; grid-row: 1; } .pd-footer-note { grid-column: 1; grid-row: 1; text-align: left; font-size: 12px; } }
@media (max-width: 799px) { .pd-gallery { aspect-ratio: auto; height: min(calc(90vw - 2px), calc(var(--app-height,100dvh) * .42)); } .pd-overview { padding-top: 12px; } }
@media (max-width: 400px) { .pd-dialog { border-radius: 18px; } .pd-header { padding: 9px 12px 0; } .pd-tabs { gap: 23px; } .pd-overview { padding: 12px 16px 16px; } .pd-title { font-size: 16px; } .pd-price { font-size: 29px; } .pd-section { padding: 16px 13px; margin: 8px; } .pd-footer { padding-left: 14px; padding-right: 14px; } .pd-footer-actions { gap: 8px; } .pd-get-link { font-size: 14px !important; } }
@keyframes pd-appear { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pd-dialog[open] { animation: none; } .pd-scroll { scroll-behavior: auto; } .pd-slide img { transition: none; } }

.pd-get-link:disabled { opacity: .55; cursor: not-allowed; }
.pl-dialog { width: min(420px, 88vw); max-width: 88vw; max-height: 76dvh; overflow-y: auto; margin: auto; padding: 22px; border: 1px solid #ffffffb0; border-radius: 22px; background: #fff; color: #292a32; box-shadow: 0 22px 80px #14162440; font: 14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif; box-sizing: border-box; }
.pl-dialog[open] { animation: pd-appear .18s ease-out; }
.pl-dialog::backdrop { background: rgb(15 20 30 / 26%); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.pl-dialog *, .pl-dialog *::before { box-sizing: border-box; }
.pl-dialog [hidden] { display: none !important; }
.pl-dialog button { font-family: inherit; cursor: pointer; }
.pl-dialog button:focus-visible, .pl-url:focus-visible { outline: 2px solid #eb623e; outline-offset: 2px; }
.pl-status { font-size: 13px; color: #85838c; margin: 18px 0 14px; overflow-wrap: anywhere; }
.pl-url { display: block; width: 100%; min-height: 110px; max-height: 28dvh; resize: none; padding: 12px; margin: 0 0 18px; border: 1px solid #eae7e4; border-radius: 12px; background: #faf8f6; color: #53515c; font-family: inherit; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; word-break: break-all; -webkit-user-select: text; user-select: text; }
.pl-copy, .pl-retry { width: 100%; min-height: 44px; border: 0; border-radius: 24px; padding: 9px 12px; font-size: 15px; font-weight: 650; }
.pl-copy, .pl-copy:hover { background: linear-gradient(110deg,#fb9e4b,#ec6945); color: white; }
.pl-copy:disabled { opacity: .45; cursor: default; }
.pl-retry, .pl-retry:hover { margin-top: 9px; color: #bd633c; background: #fff1e7; }
@media (max-width: 400px) { .pl-dialog { padding: 18px; border-radius: 18px; } }
@media (prefers-reduced-motion: reduce) { .pl-dialog[open] { animation: none; } }
.pd-exclusion-note { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: #f8f3ed; color: #8b6040; font-size: 13px; line-height: 1.6; }
