/* Photo-led storefront, scoped to the product template. */
[data-story-tone] { --pdp-accent: #4a6e9e; --pdp-accent-2: #41618c; --pdp-accent-3: #7895b8; }
[data-story-tone] .hmpc-product-hero { position: relative; isolation: isolate; }
.hmpc-story-bleed { display: none; }
[data-story-tone="cinema"] .hmpc-product-hero {
    color: #f6f8ff; border-radius: 0; background: #0a101b;
    background: radial-gradient(ellipse at 10% 98%,color-mix(in srgb,var(--pdp-accent) 34%,#080d16),transparent 46%),
        radial-gradient(ellipse at 96% 30%,color-mix(in srgb,var(--pdp-accent-2) 32%,#070a13),transparent 51%),#090d16;
}
[data-story-tone="cinema"] .hmpc-story-bleed { display: block; position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events:none; }
.hmpc-story-bleed img { width:100%; height:100%; object-fit:cover; opacity:.39; filter: blur(20px); transform:scale(1.18); }
.hmpc-story-bleed::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,transparent 0%,rgb(7 10 18 / .14) 36%,rgb(7 10 18 / .94) 62%,rgb(7 10 18 / .78)); }
[data-story-tone="cinema"] .hmpc-product-gallery, [data-story-tone="cinema"] .hmpc-product-offer { background: transparent !important; }
[data-story-tone="cinema"] .hmpc-product-gallery__stage { background: transparent; overflow: hidden; border-radius: 0; }
[data-story-tone="cinema"][data-poster-surface="studio"] .hmpc-product-gallery__stage { background:#f8f9fc; border-radius:5px; }
[data-story-tone="cinema"] .hmpc-product-gallery__thumbs { border: 0; }
[data-story-tone="cinema"] .hmpc-product-gallery__thumb { background:#141b28; color:#e7ebf4; border-color:#3d4657; }
[data-story-tone="cinema"] .hmpc-product-gallery__thumb img { background: #151a23; }
[data-story-tone="cinema"] .hmpc-product-gallery__thumb.is-active { color: #fff; border-color:#86a5ff; box-shadow: inset 0 -3px #628bff; }
[data-story-tone="cinema"] .hmpc-product-gallery__note { color: #d1d7e1; }
[data-story-tone="cinema"] .hmpc-product-hero :is(.hmpc-product-intro h1,.hmpc-product-price,.hmpc-product-highlights strong,.hmpc-product-variants__label,.hmpc-product-metadata b) { color:#fff; }
[data-story-tone="cinema"] .hmpc-product-hero :is(.hmpc-product-category,.hmpc-product-title-detail,.hmpc-product-price-label,.hmpc-product-price-row del,.hmpc-product-metadata,.hmpc-product-highlights li span) { color:#c9d2e2; }
[data-story-tone="cinema"] .hmpc-product-hero :is(.hmpc-product-spec-shortcut,.hmpc-product-brand-name,.hmpc-product-staff summary) { color:#bbceff; }
[data-story-tone="cinema"] .hmpc-product-brand-logo { background:#fff; padding:2px 5px; border-radius:3px; }
[data-story-tone="cinema"] .hmpc-product-hero :is(.hmpc-product-price-panel,.hmpc-product-highlights li,.hmpc-product-channels,.hmpc-product-staff) { border-color:rgb(204 218 245 / .25); }
[data-story-tone="cinema"] .hmpc-product-action--secondary { background:#121b2c; border-color:#adbed7; color:white; }
[data-story-tone="cinema"] .hmpc-product-hero :is(.hmpc-product-action--primary,.hmpc-product-action--buy) { color:#fff; }
[data-story-tone="cinema"] .hmpc-product-channels :is(button,a) { color:#d9e4f7; }
[data-story-tone="cinema"] .hmpc-product-metadata > a,[data-story-tone="cinema"] .hmpc-product-fullname summary { color:#c7d7ff; }
[data-story-tone="cinema"] .hmpc-product-services { color:var(--product-text); border-radius:0; }
[data-story-tone="studio"] .hmpc-product-gallery { background:linear-gradient(130deg,#f3f5f8 0%,#fff 40%,#eef1f4 100%); }
[data-story-tone="studio"] .hmpc-product-gallery__stage { background:transparent; }
.hmpc-product-fullname { font-size:13px; font-weight:600; color:inherit; max-width:100%; }
.hmpc-product-fullname summary { cursor:pointer; color:#465c74; min-height:32px; display:list-item; align-content:center; }
.hmpc-product-fullname[open] p { margin:2px 0 8px; line-height:1.55; }
.hmpc-story-anchor { display:block; scroll-margin-top:var(--product-scroll-offset,100px); }
.hmpc-product-toc nav { max-width:min(360px,85vw); max-height:min(52vh,390px); overflow-y:auto; }
.hmpc-product-toc nav a { white-space:normal; overflow-wrap:anywhere; line-height:1.45; }
#mo-ta .hmpc-product-richtext p { line-height:1.72; }
@media (max-width:850px) {
    [data-story-tone="cinema"] .hmpc-product-hero { background-color:#0b1019; }
    [data-story-tone="cinema"] .hmpc-product-hero :is(.hmpc-product-intro,.hmpc-product-price-panel,.hmpc-product-buybox,.hmpc-product-highlights,.hmpc-product-metadata) { background:transparent; }
    .hmpc-story-bleed::after { background:linear-gradient(180deg,rgb(5 9 17 / .9),rgb(5 9 17 / .12) 37%,rgb(5 9 17 / .92) 76%); }
    .hmpc-product-fullname summary { min-height:44px; }
}
@media print { .hmpc-story-bleed,.hmpc-product-fullname { display:none; } }
/* Let the photograph/light reach both screen edges, keeping controls on their reading grid. */
.hmpc-product-page[data-story-tone="cinema"] { overflow-x:clip; }
[data-story-tone="cinema"] .hmpc-product-hero::before {
    content:"";position:absolute;inset-block:0;inset-inline:calc(50% - 50vw);z-index:-2;pointer-events:none;
    background:inherit;
}
[data-story-tone="cinema"] .hmpc-story-bleed { inset-inline:calc(50% - 50vw); }

.hmpc-product-gallery__thumb .hmpc-product-gallery__thumb-placeholder { display:grid; place-items:center; height:42px; font-size:15px; color:inherit; opacity:.83; }
.hmpc-product-gallery__thumb-placeholder svg { width:18px; height:18px; }
@media(max-width:700px) { .hmpc-product-gallery__thumb .hmpc-product-gallery__thumb-placeholder { height:37px; } }

[data-story-tone="cinema"] .hmpc-product-gallery__thumb [data-gallery-angle] { color:#e2eaf6; }
[data-story-tone="cinema"] .hmpc-product-gallery__thumb.is-active [data-gallery-angle] { color:#fff; }

.hmpc-product-page .hmpc-cable-direction { display:inline-flex; align-items:center; min-height:44px; padding:4px 12px; margin:8px 0; font-size:clamp(16px,1.5vw,21px); line-height:1.25; font-weight:750; color:#1047bd; background:#eaf0fe; border-radius:6px; text-decoration:none; }
.hmpc-product-page .hmpc-case-contents { display:flex; gap:6px; align-items:center; margin:5px 0; font-size:13px; font-weight:700; }

/* Reveal the photographed display artwork at the margins; keep the purchase column dark. */
.hmpc-story-bleed .hmpc-panel-edges { position:absolute; inset:0; width:100%; height:100%; z-index:1; object-fit:cover; object-position:50% 37%; transform:none; opacity:.78; filter:blur(3px); }
@supports (mask-image:linear-gradient(black,transparent)) {
    .hmpc-story-bleed .hmpc-panel-edges { object-position:center; object-fit:cover; mask-image:linear-gradient(90deg,#000 0%,#0009 4%,transparent 15%,transparent 87%,#0008 96%,#000 100%); }
}
@supports not (mask-image:linear-gradient(black,transparent)) { .hmpc-story-bleed .hmpc-panel-edges { display:none; } }
@media(max-width:850px) { .hmpc-story-bleed .hmpc-panel-edges { display:none; } }

/* Actual panel pixels from the curated cover, clear of bezels and printed badges. */
.hmpc-panel-texture { display:none; }
@supports (mask-image:linear-gradient(black,transparent)) {
    @media(min-width:851px) {
        .hmpc-story-bleed .hmpc-panel-texture { display:block; position:absolute; inset-block:0; overflow:hidden; width:min(23vw,320px); z-index:1; opacity:.76; mask-image:linear-gradient(to right,#000 0%,#000c 20%,transparent 96%); }
        .hmpc-story-bleed .hmpc-panel-texture--left { left:0; }
        .hmpc-story-bleed .hmpc-panel-texture--right { right:0; width:min(14vw,210px); opacity:.50; mask-image:linear-gradient(to left,#000 0%,#000b 19%,transparent 92%); }
        .hmpc-story-bleed .hmpc-panel-texture img { position:absolute; max-width:none; width:440%; height:350%; object-fit:fill; opacity:1; filter:blur(2px); transform:none; inset:auto; left:-45%; top:-69%; }
        .hmpc-story-bleed .hmpc-panel-texture--right img { left:-268%; top:-104%; }
    }
}

/* Preserve the photographed stage and angle labels when a remote image is unavailable. */
.hmpc-photo-unavailable, .hmpc-thumb-unavailable { visibility:hidden; }
.hmpc-product-gallery__thumb:has(.hmpc-thumb-unavailable) [data-gallery-angle] { position:absolute; inset:0; display:grid; place-content:center; }
.hmpc-photo-recovery { position:absolute; z-index:2; top:50%; left:50%; transform:translate(-50%,-50%); width:max-content; max-width:calc(100% - 108px); display:grid; justify-items:center; gap:6px; padding:8px 12px; background:#fff; color:#283a51; border-radius:7px; font-size:14px; font-weight:650; text-align:center; }
.hmpc-product-page .hmpc-photo-recovery button { position:static; transform:none; width:auto; min-width:44px; height:auto; min-height:44px; padding:4px 14px; background:#ecf2ff; color:#1644ad; border:1px solid #bdcfef; border-radius:5px; font:inherit; font-weight:750; cursor:pointer; }
.hmpc-photo-recovery button[aria-disabled="true"] { opacity:.7; cursor:progress; }
