/* Predictable panels and instant navigation, including small iPhone viewports. */
html{scroll-behavior:auto;scroll-padding-top:var(--header-height)}
.collection{scroll-margin-top:0}
dialog{scroll-behavior:auto;overscroll-behavior:contain}
button,a,summary,label{-webkit-tap-highlight-color:transparent}
[tabindex="-1"]:focus{outline:none}
.shop-drawer[open],#basket[open]{animation:none}
.shop-drawer,#basket,#detail,#delivery-details{max-width:100%;box-sizing:border-box}
#information{max-width:100%;width:min(720px,100%);border-radius:0;padding:0;overflow:hidden;background:var(--paper)}
#information[open]{display:flex;flex-direction:column}
#information .dialog-head{flex:none;flex-wrap:nowrap;min-height:68px;padding:12px 24px;gap:12px;background:var(--paper);border-bottom:1px solid var(--line)}
#information .dialog-head button{white-space:nowrap;min-height:44px;padding:8px 0}
#information .detail-brand{font-size:12px;text-align:right}
#information .information-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none;padding:28px 24px max(28px,env(safe-area-inset-bottom));scroll-behavior:auto}
.help-question{padding:0;border-bottom:1px solid var(--line)}
.help-question summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:56px;padding:16px 0;font:500 1.375rem/1.3 var(--font-heading);color:var(--ink)}
.help-question summary::-webkit-details-marker{display:none}
.help-question summary::after{content:'+';flex:none;font:400 20px/1 var(--font-body);color:#806239}
.help-question[open] summary::after{content:'−'}
.help-question p{margin:0 0 18px}
.help-contact{padding-bottom:12px;border-bottom:1px solid var(--line)}
#filter-form .sort-options{margin-bottom:0}
#filter-form fieldset label{padding-block:9px}
.filter-actions{margin-top:20px;padding-top:16px;padding-bottom:env(safe-area-inset-bottom);bottom:-26px}
.basket-destination{display:block;border:0;margin:0 0 14px;padding:0;min-width:0}
.basket-destination legend{font-size:14px;padding:0;margin-bottom:9px}
.destination-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.destination-options label{position:relative;min-width:0;white-space:normal;cursor:pointer}
.destination-options input{position:absolute;opacity:0;width:1px;height:1px}
.destination-options span{display:flex;justify-content:center;align-items:center;min-height:44px;padding:8px;border:1px solid #c8beb0;font-size:14px;line-height:1.3;text-align:center}
.destination-options input:checked+span{background:var(--ink);border-color:var(--ink);color:#fff}
.destination-options input:focus-visible+span{outline:2px solid #806239;outline-offset:3px}
#delivery-details{scroll-padding-top:0}
#delivery-details .delivery-header{position:sticky;top:0;z-index:2;background:var(--paper)}
#delivery-form .delivery-note{font-size:14px}
.delivery-header .detail-brand{font-size:12px}
@media(max-width:760px){
 #information{position:fixed;inset:0;margin:0;width:100%;height:100dvh;max-height:100dvh}
 #information .dialog-head{padding:10px 20px}
 #information .information-content{padding:24px 20px max(28px,env(safe-area-inset-bottom))}
 #detail .dialog-head{border-radius:0}
 #detail{border-radius:0}
}

[data-input-mode="pointer"] :is(button,a,summary):focus-visible{outline:none}
#filter-form fieldset,.filter-actions{flex-shrink:0}

/* A quiet scent colour carries through the story and notes, with shared typography. */
#detail details.scent-section.story-details{padding:20px;background:linear-gradient(125deg,var(--scent-wash,#eee7da),#faf8f4);border:1px solid var(--line);margin:8px 0 8px}
#detail details.scent-section.story-details summary{padding:0;min-height:44px}
#detail .story-details .scent-story{color:#4c453c}
#detail .gallery-slide #poster{background:linear-gradient(145deg,var(--scent-wash,#eee7da),#faf8f4 70%)}
#detail .note-highlights{gap:8px}
#detail .note-highlights span{background:var(--scent-wash,#eee7da);color:#4c453c;padding:7px 10px;font-size:14px;line-height:1.5}
#detail .note-highlights span+span::before{content:none}
.delivery-address-heading,#selected-address{background:linear-gradient(125deg,#f0e8dc,#faf8f4)}
#information .information-content{background:linear-gradient(150deg,#f1eade 0, var(--paper) 260px)}
.scent-comparison tbody tr:nth-child(odd){background:#f3eee6}
@media(max-width:760px){#detail details.scent-section.story-details{padding:18px}}

/* One scroll area keeps every basket item and its controls reachable. */
#basket[open]{display:block;overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none}
#basket .basket-head{position:sticky;top:0;z-index:4;background:var(--paper)}
#basket-body{overflow:visible;min-height:0}
#basket-summary{max-height:none;overflow:visible}
#basket-close{display:grid;place-items:center;text-align:center;flex:none;color:var(--ink)}
.basket-item-copy .item-price-note{font-size:13px}
.remove-item{min-height:44px;font-size:14px}
.basket-primary:disabled{background:#4c453c;color:#fff;opacity:1}

/* Keep back controls, tabs and separators consistent across panels. */
#detail .dialog-head{display:grid;grid-template-columns:minmax(58px,1fr) auto minmax(66px,1fr);gap:12px}
#detail .dialog-head #close{justify-self:start;font-size:14px}
#detail .dialog-head #detail-basket{justify-self:end;font-size:14px}
#detail .dialog-head .detail-brand{font-size:clamp(12px,3.15vw,18px);letter-spacing:.025em;text-align:center}
button.return-link::before{width:18px;height:18px;flex-basis:18px;opacity:1}
#detail .media-tabs button,#detail .pager button{font-size:14px}
#detail details.scent-section{border-top:0;border-bottom:1px solid var(--line)}
#detail .pager{border-top:0}
.comparison-table{border:0}
.comparison-table table{table-layout:fixed}
.comparison-table th,.comparison-table td{min-width:0;padding:14px 10px;overflow-wrap:break-word}
.comparison-table tbody tr:last-child>*{border-bottom:0}
.filter-actions{bottom:0}
#delivery-details{border-radius:0}
.delivery-header .detail-brand,#information .detail-brand{font-size:12px;letter-spacing:.025em}
@media(max-width:360px){#detail .dialog-head{padding-inline:12px;gap:8px;grid-template-columns:54px minmax(0,1fr) 64px}}
