/* Header controls must wrap as complete groups; never shrink into neighbours. */
body.storefront-v9 .main-head{flex-wrap:wrap;gap:12px 16px}
body.storefront-v9 .main-head>.global-search{flex:1 1 240px;min-width:220px}
body.storefront-v9 .main-head>.reader-tools{flex:0 0 auto;width:auto;max-width:100%;flex-wrap:wrap;gap:8px}
body.storefront-v9 .main-head>.reader-tools>*{flex-shrink:0}
body.storefront-v9 .main-head>.v9-account,body.storefront-v9 .main-head>#cart-open,body.storefront-v9 .main-head>.commerce-realm-tools{flex-shrink:0}
body.storefront-v9 .main-head>.commerce-realm-tools{max-width:100%;flex-wrap:wrap;gap:6px}
body.storefront-v9 .main-head .m21-locale-control{display:flex;align-items:center;gap:6px}
body.storefront-v9 .main-head .m21-locale-control>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:700px){
 body.storefront-v9 .main-head{gap:8px;padding:12px}
 body.storefront-v9 .main-head>.reader-tools{width:100%;display:flex;justify-content:space-between}
 body.storefront-v9 .main-head>.global-search{min-width:0;flex-basis:100%}
 body.storefront-v9 .main-head>.commerce-realm-tools{width:100%}
 body.storefront-v9 .main-head .commerce-realm-tools a{flex:1;min-width:0}
}
body.storefront-v9 .header-account-cart{display:flex;align-items:center;gap:12px;margin-left:auto;flex:0 1 auto;min-width:0;max-width:100%}
body.storefront-v9 .header-account-cart .v9-account{order:0;max-width:180px;white-space:normal;overflow-wrap:anywhere;font-size:13px}
body.storefront-v9 .header-account-cart #cart-open{display:flex;flex-wrap:wrap;gap:8px;min-height:44px;max-width:100%}
body.storefront-v9 .v9-main-left>.global-search{display:block;width:100%;min-width:0;margin:16px 0;scroll-margin-top:170px}
body.storefront-v9 .v9-main-left>.global-search .search-control{min-height:48px}
body.storefront-v9 .v9-main-left>.global-search input{min-width:0;width:100%;font-size:16px}
@media(max-width:700px){
 body.storefront-v9 .header-account-cart{width:100%;justify-content:space-between;gap:8px}
 body.storefront-v9 .main-head .header-account-cart .v9-account{font-size:13px;flex:1;max-width:45%;text-align:left;justify-content:flex-start}
 body.storefront-v9 .header-account-cart .v9-account:before{display:none}
 body.storefront-v9 .header-account-cart #cart-open{font-size:12px;padding:8px}
 body.storefront-v9 .header-account-cart .v9-header-total{font-size:12px}
}
body.storefront-v9 .main-head{display:flex!important}

/* Remove the obsolete demo information strip without affecting ordering. */
body.storefront-v9 .featurebar{display:none!important}
/* A restrained frame for the featured-products section. */
body.storefront-v9 .v9-featured{border:1px solid #cdbd9f;border-radius:16px;box-shadow:0 2px 8px #46371e08;background:var(--tdf-surface,#fffefa);padding:20px;min-width:0}
@media(max-width:700px){body.storefront-v9 .v9-featured{padding:14px;border-radius:12px}}
