/* Patch 43 — ajustements mobile/tablette sans refonte de l'identité visuelle. */
:where(html,body){max-width:100%;min-width:0}
:where(.storefront,.storefront main,.storefront section,.storefront article,.storefront aside,.app,.page-wrap,.admin-layout,.menu-layout,.menu-grid,.shop-header){min-width:0}
:where(.storefront img,.storefront video,.storefront svg){max-width:100%}
:where(.storefront p,.storefront h1,.storefront h2,.storefront h3,.storefront label,.storefront button){overflow-wrap:anywhere}
:where(input,select,textarea){max-width:100%;min-width:0}
:where(button,a,[role="button"]){touch-action:manipulation}
@media(max-width:900px){
 .storefront main{max-width:100%;padding-inline:clamp(12px,3vw,22px)}
 .storefront .menu-layout,.storefront .menu-grid{min-width:0}
 .storefront .checkout-panel{position:static;max-width:100%}
 .storefront .shop-header{max-width:calc(100% - 24px);width:calc(100% - 24px)}
 .storefront .store-cart,.storefront .checkout-panel{min-width:0}
}
@media(max-width:640px){
 html{-webkit-text-size-adjust:100%}
 .storefront .shop-header{width:calc(100% - 20px);padding-inline:12px;height:auto;min-height:58px;gap:8px}
 .storefront main{padding:15px 12px 40px}
 .storefront .hero-content{width:calc(100% - 30px)}
 .storefront .hero-content h1 em{white-space:normal;letter-spacing:-1px}
 .storefront .hero-actions{flex-wrap:wrap}
 .storefront .hero-benefits{flex-wrap:wrap;gap:8px}
 .storefront .category-ribbon{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .storefront .menu-grid,.storefront .feature-grid{grid-template-columns:1fr}
 .storefront .menu-focus-card,.storefront .checkout-panel{padding:14px;border-radius:15px}
 .storefront .menu-layout{display:flex;flex-direction:column;gap:16px}
 .storefront .checkout-panel{width:100%;order:2}
 .storefront :is(input,select,textarea){font-size:16px}
 .storefront :is(button,.button){max-width:100%;min-height:44px;white-space:normal}
 .admin-product-list,.kp-fields,.owner-guide-grid{grid-template-columns:minmax(0,1fr)!important}
 .admin-catalog-filters,.photo-editor-layout{grid-template-columns:minmax(0,1fr)!important}
 .admin-product-item,.admin-product-editor,.kp-agent-config{max-width:100%;min-width:0}
 .kp-actions{display:flex;flex-direction:column}
 .kp-actions button{width:100%}
 #app :is(input,select,textarea){font-size:16px}
 #app :is(button,.button){min-height:44px}
 #app table{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
}
@media(max-width:380px){
 .storefront main{padding-inline:9px}
 .storefront .shop-header{width:calc(100% - 12px);padding-inline:8px}
 .storefront .category-ribbon{gap:6px}
 .storefront .menu-focus-card,.storefront .checkout-panel{padding:11px}
}
@media(prefers-reduced-motion:reduce){.storefront *{scroll-behavior:auto}}
