/* Phone layout: no new runtime, no blocked zoom, no extra image download. */
@media(max-width:900px){
 .andalux-public .shell{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
 .andalux-public .page-layout,.andalux-public .catalog-main,.andalux-public .dialog-info{min-width:0;max-width:100%;box-sizing:border-box}
 .andalux-public .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .andalux-public .mobile-search input{font-size:16px!important;min-width:0;width:100%}
 .andalux-public .mobile-search input::placeholder{font-size:12px}
 .andalux-public .category-nav{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 .andalux-public .category-button,.andalux-public .category-button.child{min-height:44px;touch-action:manipulation}
 .andalux-public #dialogVariants .variant-choice{min-height:36px!important;max-height:none!important;white-space:normal!important;overflow-wrap:anywhere;touch-action:manipulation}
 .andalux-public .dialog-order,.andalux-public .product-share{min-height:44px;min-width:44px;box-sizing:border-box;touch-action:manipulation}
 .andalux-public .dialog-quantity input{box-sizing:border-box;max-width:100%;font-size:16px!important;min-height:40px}
 .andalux-public .dialog-meta{flex-wrap:wrap;overflow-wrap:anywhere}
 .andalux-public .hero-content{max-width:90%;box-sizing:border-box}
 .andalux-public .catalog-hero{min-height:155px;height:auto}
 .andalux-public .hero-content{position:relative;top:auto;right:auto;transform:none;margin:20px 5%}
}
@media(max-width:359px){
 .andalux-public .product-grid{grid-template-columns:minmax(0,1fr)!important}
 .andalux-public .catalog-toolbar h2{font-size:19px}
}
/* Maintain usable outside areas on phones with display cutouts or home bars. */
@media(max-width:900px),(max-height:500px){
 .andalux-public .product-dialog[open]{max-height:calc(100dvh - max(48px,env(safe-area-inset-top)) - max(48px,env(safe-area-inset-bottom)))!important}
}

@media(max-width:900px){
 .inline-editor input:not([type="checkbox"]):not([type="file"]),.inline-editor textarea,.inline-editor select,.quick-price input:not([type="checkbox"]),.andalux-admin input:not([type="checkbox"]):not([type="file"]),.andalux-admin textarea,.andalux-admin select{font-size:16px!important}
 .inline-editor input::placeholder,.inline-editor textarea::placeholder,.andalux-admin input::placeholder{font-size:11px;font-weight:400}
}
