/* PDP-only five-view gallery and mobile purchase closeout. */
.pdp-gallery-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
body.pdp-viewer-open{overflow:hidden}
.pdp-gallery-frame{position:relative}
.pdp-gallery-track{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x pan-y pinch-zoom}
.pdp-gallery-track::-webkit-scrollbar{display:none}
.pdp-slide{flex:0 0 100%;min-width:0;aspect-ratio:3/2;scroll-snap-align:start;scroll-snap-stop:always;overflow:hidden}
.pdp-slide>img{display:block;width:100%;height:100%;object-fit:contain}
.pdp-gallery-card{box-sizing:border-box;height:100%;padding:7% 8%;background:#f1f1e7;display:flex;flex-direction:column;justify-content:center}
.pdp-gallery-card .eyebrow{font:10px/1.4 var(--sans);letter-spacing:.13em;color:var(--green);margin:0 0 18px}
.pdp-gallery-card ul{padding:0;margin:0;list-style:none;display:grid;gap:16px}
.pdp-gallery-card li{font:clamp(20px,2vw,29px)/1.18 var(--serif);letter-spacing:-.02em}
.pdp-gallery-card li+li{padding-top:13px;border-top:1px solid var(--line)}
.pdp-gallery-card h2{font:clamp(25px,3vw,40px)/1.1 var(--serif);margin:0 0 14px;letter-spacing:-.03em}
.pdp-gallery-card p:not(.eyebrow){font:14px/1.5 var(--sans);color:var(--muted);margin:0}
.pdp-fit-card dl{margin:0;display:grid;gap:12px}
.pdp-fit-card dl>div{display:flex;align-items:baseline;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line);padding-bottom:9px}
.pdp-fit-card dt{font:12px/1.4 var(--sans);color:var(--muted)}
.pdp-fit-card dd{font:20px/1.2 var(--serif);margin:0;white-space:nowrap}
.pdp-expand{position:absolute;right:8px;bottom:8px;width:44px;height:44px;border:0;background:rgba(251,251,244,.86);color:var(--carbon);display:grid;place-items:center;cursor:pointer}
.pdp-expand svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.4}
.pdp-expand[hidden],.pdp-coffee[hidden],[data-viewer-zoom][hidden]{display:none}
.pdp-views{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;border:0;margin:0}
.pdp-views button{min-width:0;min-height:44px;white-space:nowrap;padding:10px 0;font:13px/1.3 var(--sans);color:var(--muted)}
.pdp-value-copy{display:flex;flex-direction:column;gap:2px}
.pdp-value-offer-static,.pdp-coffee{font:12px/1.4 var(--sans);color:var(--muted)}
.pdp-buy .pdp-fit-short{border-top:1px solid var(--line);padding-top:16px;margin-top:18px}
.pdp-image-dialog{box-sizing:border-box;width:min(1100px,96vw);max-width:96vw;max-height:94dvh;padding:0;border:0;overflow:auto}
.pdp-viewer-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:4px 8px 4px 20px;font:12px/1.4 var(--sans);color:var(--muted)}
.pdp-viewer-close{border:0;background:transparent;width:48px;height:48px;font:32px/1 var(--sans);color:var(--carbon);padding:0;cursor:pointer}
.pdp-viewer-content .pdp-slide{aspect-ratio:3/2;max-height:70dvh}
.pdp-viewer-content .pdp-gallery-card{padding:5% 8%}
.pdp-viewer-content .pdp-slide.is-zoomed{overflow:auto;touch-action:pan-x pan-y pinch-zoom}
.pdp-viewer-content .pdp-slide.is-zoomed img{width:200%;height:200%;max-width:none;max-height:none;object-fit:contain}
.pdp-viewer-controls{display:flex;justify-content:space-between;align-items:center;padding:4px 12px}
.pdp-viewer-controls button{min-width:48px;min-height:44px;border:0;background:transparent;font:14px var(--sans);color:var(--green);cursor:pointer}
.pdp-viewer-controls button:disabled{opacity:.3;cursor:default}
.pdp-viewer-close:focus:not(:focus-visible){outline:none;box-shadow:none}
.pdp-viewer-close:focus-visible,.pdp-expand:focus-visible,.pdp-views button:focus-visible,.pdp-viewer-controls button:focus-visible,.pdp-gallery-track:focus-visible{outline:2px solid var(--green);outline-offset:-3px}
@media(max-width:900px){
 .pdp-gallery{margin-top:10px}
 .pdp-slide{aspect-ratio:auto;height:clamp(220px,60vw,280px)}
 .pdp-gallery-card{padding:18px 20px}
 .pdp-gallery-card .eyebrow{font-size:9px;margin-bottom:14px}
 .pdp-gallery-card li{font-size:23px}
 .pdp-gallery-card ul{gap:10px}
 .pdp-gallery-card li+li{padding-top:10px}
 .pdp-fit-card dl{gap:9px}
 .pdp-fit-card dl>div{gap:8px;padding-bottom:8px}
 .pdp-fit-card dt{font-size:11px}
 .pdp-fit-card dd{font-size:18px}
 .pdp-gallery-card h2{font-size:30px}
 .pdp-gallery-card p:not(.eyebrow){font-size:13px}
 .pdp-views{gap:5px}
 .pdp-views button{min-width:0;font-size:12px}
 .pdp-buy{grid-template-columns:minmax(0,1fr) 116px}
 .pdp-formats{grid-row:1;margin:5px 0 9px}
 .pdp-value{grid-row:2;grid-column:1;gap:0}
 .pdp-actions .quantity-control{grid-row:2}
 .pdp-actions>.button{grid-row:3;margin:8px 0 4px}
 .pdp-buy>.footnote:first-of-type{grid-row:4;padding:0;min-height:0;margin:5px 0;font-size:11px}
 .pdp-buy>[data-selection]{display:none}
 .pdp-shipping{grid-row:5;margin:3px 0}
 .pdp-tax{grid-row:6;margin:0!important;font-size:11px!important}
 .pdp-delivery-link{grid-row:7;justify-self:start;font-size:12px}
 .pdp-buy .pdp-fit-short{grid-row:8;margin:10px 0 0;padding-top:16px}
 .pdp-fit-short p{padding-right:0;min-height:0}
 .pdp-value-copy{gap:1px}
 .pdp-coffee{font-size:12px;max-width:22ch}
 .pdp-value .text-link{font-size:11px;min-height:44px}
 .pdp-section-nav-mobile{padding-right:0}
 body[data-page="daily-cream"]{--pdp-dock-bottom:max(12px,env(safe-area-inset-bottom,0px))}
 body[data-page="daily-cream"] .source-orb{width:56px;height:56px;right:16px;bottom:calc(var(--pdp-dock-bottom) + 4px);transition:none;transform:none}
 .pdp-rail{position:fixed;left:6vw;right:88px;bottom:var(--pdp-dock-bottom);margin:0;min-height:64px;height:64px;box-sizing:border-box;padding:6px 0;grid-template-columns:minmax(0,1fr) 146px;gap:8px}
 .pdp-final .pdp-rail>.button{width:146px;height:50px;min-height:50px}
 .pdp-v3~.foundation{padding-bottom:110px}
 .pdp-viewer-content .pdp-slide{height:min(65dvh,520px);max-height:none;aspect-ratio:auto}
 .pdp-viewer-content .pdp-gallery-card{padding:25px}
 .pdp-image-dialog{width:96vw}
}
@media(max-width:370px){
 .pdp-gallery-card{padding:16px}
 .pdp-gallery-card li{font-size:21px}
 .pdp-fit-card dd{font-size:16px}
 .pdp-fit-card dt{font-size:10px}
 .pdp-views button{font-size:11px}
 .pdp-rail{grid-template-columns:minmax(0,1fr) 118px;gap:6px}
 .pdp-final .pdp-rail>.button{width:118px}
}
@media(prefers-reduced-motion:reduce){.pdp-gallery-track{scroll-behavior:auto}}

/* V74: whole-frame activation, readable information views and bounded page end. */
html:has(body[data-page="daily-cream"]),body[data-page="daily-cream"]{overscroll-behavior-y:none}
body[data-page="daily-cream"] dialog:not([open]){display:none}
#pdp-gallery-track{cursor:zoom-in}
.pdp-image-dialog.pointer-open .pdp-viewer-close:focus{outline:none;box-shadow:none}
.pdp-rail>.button{min-height:50px}
@media(max-width:900px){
 .pdp-v3{overflow:visible}
 .pdp-v3~.foundation{padding-bottom:88px}
 .pdp-gallery-card .eyebrow{font-size:11px;letter-spacing:.08em;color:#245d50;margin-bottom:14px}
 .pdp-gallery-card li{font-size:25px;line-height:1.15}
 .pdp-fit-card dl{grid-template-columns:1fr 1fr;gap:14px 12px}
 .pdp-fit-card dl>div{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding-bottom:9px}
 .pdp-fit-card dt{font-size:13px;line-height:1.3;color:#45483f}
 .pdp-fit-card dd{font-size:22px;line-height:1.12;white-space:normal}
 .pdp-fit-card dl>div:nth-child(3) dd{font-size:20px}
 .pdp-viewer-content .pdp-slide{height:clamp(280px,85vw,400px);max-height:65dvh}
 .pdp-viewer-content .pdp-gallery-card{padding:22px}
 .pdp-rail>.button{width:146px;height:50px;min-height:50px;padding:12px 8px;font-size:12px}
}
@media(max-width:370px){
 .pdp-gallery-card li{font-size:23px}
 .pdp-fit-card dd{font-size:20px}
 .pdp-fit-card dl>div:nth-child(3) dd{font-size:18px}
 .pdp-rail>.button{width:118px}
}

.pdp-expand{top:8px;bottom:auto}
.pdp-gallery-card .eyebrow{max-width:calc(100% - 30px)}
@media(max-width:900px){.pdp-fit-card dl>div{justify-content:flex-start}.pdp-fit-card dt{min-height:34px}}
@media(max-width:370px){.pdp-fit-card dd{font-size:18px}}

/* V75: bounded mobile direct-buy refinement; desktop gallery unchanged. */
.pdp-use-photo{display:none}
@media(max-width:900px){
 #pdp-gallery-track>.pdp-slide{height:244px}
 .pdp-use-photo{display:block;width:100%;height:100%}
 .pdp-use-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:43% 48%}
 .pdp-use-photo+.pdp-use-card{display:none}
 .pdp-expand{top:auto;bottom:6px;right:6px;width:34px;height:34px;background:rgba(251,251,244,.78)}
 .pdp-expand svg{width:17px;height:17px}
 .pdp-gallery-card{padding:16px 18px 40px}
 .pdp-gallery-card .eyebrow{max-width:none;margin-bottom:12px}
 .pdp-gallery-card li{font-size:25px}
 .pdp-fit-card dl{gap:10px 12px}
 .pdp-fit-card dl>div{padding-bottom:7px}
 .pdp-fit-card dt{min-height:0;font-size:13px}
 .pdp-fit-card dd{font-size:22px}
 .pdp-viewer-content .pdp-use-photo img{object-fit:contain}
 .pdp-viewer-content .is-zoomed .pdp-use-photo{width:200%;height:200%}
 .pdp-viewer-content .is-zoomed .pdp-use-photo img{width:100%;height:100%}
}
@media(max-width:370px){
 .pdp-gallery-card li{font-size:23px}
 .pdp-fit-card dd,.pdp-fit-card dl>div:nth-child(3) dd{font-size:18px}
 .pdp-fit-card dt{font-size:12px}
}

/* V76: mobile spacing-only purchase compaction. */
@media(max-width:900px){
 .pdp-formats{margin:3px 0 4px}
 .pdp-formats legend{margin-bottom:6px}
 .pdp-formats label{padding:6px 10px;margin-bottom:6px}
 .pdp-formats label:last-child{margin-bottom:0}
 .pdp-formats small{margin-top:2px}
 .pdp-formats .pdp-save{margin-top:3px}
 .pdp-value-copy{gap:0}
 .pdp-actions>.button{margin-top:3px}
 .pdp-use-photo img{object-position:42% 45%}
 .pdp-expand{width:44px;height:44px;background:transparent}
 .pdp-expand::before{content:"";position:absolute;width:26px;height:26px;background:rgba(251,251,244,.82);z-index:-1}
 .pdp-expand{isolation:isolate}
}

/* Same approved Use photograph in both gallery layouts. */
.pdp-use-photo{display:block;width:100%;height:100%}
.pdp-use-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:42% 45%}
.pdp-use-photo+.pdp-use-card{display:none}
.pdp-viewer-content .pdp-use-photo img{object-fit:contain}
.pdp-viewer-content .is-zoomed .pdp-use-photo{width:200%;height:200%}
.pdp-viewer-content .is-zoomed .pdp-use-photo img{width:100%;height:100%}

/* Closeout: one persistent PACKS label; mobile keeps its existing grid row. */
.pdp-actions .pdp-packs-label{font:11px/1.4 var(--sans);letter-spacing:.12em;color:var(--muted);text-align:center}
@media(min-width:901px){
 .pdp-actions .quantity-control{position:relative}
 .pdp-actions .pdp-packs-label{position:absolute;top:-18px;left:0;width:100%}
}
