/* Keep the document within the mobile viewport; galleries can scroll internally. */
html,body{max-width:100%;overflow-x:hidden;overflow-x:clip;overscroll-behavior-x:none}
@media(max-width:900px){
body{width:100%;min-width:0}
main,header,footer,section,.header-row,.header-actions{min-width:0;max-width:100%}
main>*,section>*,footer>*{min-width:0}
.v2-trust{grid-template-columns:repeat(2,minmax(0,1fr))}
.v2-trust blockquote{grid-column:1/-1}
.v2-category-grid,.v2-work-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.v2-review-grid{grid-template-columns:minmax(0,1fr)}
.v2-hero,.v2-season,.v2-about{min-width:0}
.v2-hero-copy,.v2-season-copy,.v2-about-copy{min-width:0}
footer p,footer a,.shop-cart-name,.miwa-privacy-document{overflow-wrap:anywhere}
input:not([type=checkbox]):not([type=radio]),textarea,select{font-size:16px!important}
img,video,canvas{max-width:100%}
}

@media(max-width:900px){
.site-header.shop-header .header-row{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:0 16px!important;gap:10px!important;width:100%;box-sizing:border-box}
.site-header.shop-header .header-spacer,.site-header.shop-header .search,.site-header.shop-header .message-link{display:none!important}
.site-header.shop-header .brand,.site-header.shop-header .minimal-brand{position:static!important;transform:none!important;flex:0 0 96px!important;width:96px!important;min-width:0!important;margin:0!important}
.site-header.shop-header .brand img,.site-header.shop-header .minimal-brand img{display:block!important;width:96px!important;max-width:100%!important;height:58px!important;object-fit:contain!important;margin:0!important}
.site-header.shop-header .header-actions{position:static!important;flex:0 0 auto!important;width:auto!important;max-width:none!important;min-width:0!important;padding:0!important;gap:8px!important;align-items:center!important}
.site-header.shop-header .header-actions>*,.site-header.shop-header .shop-header-icons{flex-shrink:0}
.site-header.shop-header .menu-toggle{display:grid!important;place-items:center;width:44px!important;height:44px!important;padding:10px!important}
.site-header.shop-header .shop-header-icons{gap:8px!important}
.site-header.shop-header .shop-header-icons button{width:44px!important;height:44px!important;padding:10px!important}
.site-header.shop-header .language-picker{position:relative!important;inset:auto!important;margin:0!important}
.site-header.shop-header .language-picker summary{min-width:62px!important;height:40px!important;padding:0 8px!important}
}
@media(max-width:350px){.site-header.shop-header .brand,.site-header.shop-header .minimal-brand{width:80px!important;flex-basis:80px!important}.site-header.shop-header .header-row{padding:0 12px!important;gap:6px!important}.site-header.shop-header .header-actions{gap:4px!important}}

/* Modal windows own scrolling until the last window has closed. */
html.miwa-scroll-locked{overflow:hidden!important;overscroll-behavior:none!important}
html.miwa-scroll-locked body{position:fixed!important;top:var(--miwa-modal-scroll-top)!important;left:var(--miwa-modal-scroll-left)!important;width:100%!important;overflow:hidden!important;overscroll-behavior:none!important}
dialog[open],#advent-modal{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}

/* More breathing room around compact icons; keep generous touch targets. */
@media(max-width:900px){
.site-header.shop-header .menu-toggle svg,.site-header.shop-header .shop-header-icons svg{width:21px!important;height:21px!important;stroke-width:1.5}
.site-header.shop-header .shop-header-icons span{right:0;top:1px}
.site-header.shop-header .lang-globe{width:17px!important;height:17px!important}
}
@media(max-width:350px){
.site-header.shop-header .header-actions{gap:6px!important}
.site-header.shop-header .shop-header-icons{gap:6px!important}
.site-header.shop-header .menu-toggle,.site-header.shop-header .shop-header-icons button{width:40px!important;height:44px!important;padding:9px!important}
.site-header.shop-header .language-picker summary{min-width:56px!important;padding:0 6px!important}
}
