/* Mobile layout repair: loaded last to resolve conflicting legacy category rules. */
@media(max-width:700px){
 html,body{max-width:100%;overflow-x:clip}
 .site-header{gap:8px!important;padding:10px 12px!important;align-items:center!important}
 .site-header .brand img{width:94px!important;max-height:58px!important;object-fit:contain}
 .site-header .header-search{flex-basis:100%!important;min-width:0!important}
 .category-section .category-strip{display:block!important;overflow:visible!important;width:100%!important}
 .category-section .category-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;width:100%!important;overflow:visible!important;transform:none!important;touch-action:pan-y!important}
 .category-section .category-card{box-sizing:border-box!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;position:relative!important;min-width:0!important;max-width:100%!important;width:100%!important;height:170px!important;min-height:170px!important;aspect-ratio:auto!important;padding:12px!important;overflow:hidden!important;border-radius:16px!important;writing-mode:horizontal-tb!important}
 .category-section .category-card img{position:static!important;display:block!important;flex:0 1 auto!important;width:100px!important;height:100px!important;max-width:90%!important;max-height:100px!important;object-fit:contain!important;margin:0 auto 8px!important;transform:none!important}
 .category-section .category-card .category-label{position:static!important;display:block!important;flex:none!important;width:100%!important;max-width:100%!important;padding:7px 5px!important;margin:0!important;text-align:center!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;writing-mode:horizontal-tb!important;line-height:1.25!important;letter-spacing:0!important;font-size:12px!important;transform:none!important}
 .category-section .category-arrow{display:none!important}
 .catalog-section .product-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 .product-card{min-width:0!important;overflow:hidden!important}
 .product-info{min-width:0!important;padding:10px!important}
 .product-info h3{overflow-wrap:anywhere!important}
 .product-image{height:155px!important;overflow:hidden!important}
 .product-image img{width:100%!important;height:100%!important;object-fit:contain!important}
 .product-actions{min-width:0!important;gap:7px!important}
 .product-actions .add-button{min-width:0!important;white-space:normal!important;line-height:1.2!important}
 .qty-picker{max-width:100%!important}
 .sale-ribbon{max-width:75%!important;right:7px!important;top:7px!important;padding:5px 8px!important;font-size:9px!important}
 .theme-toggle{right:10px!important;bottom:calc(72px + env(safe-area-inset-bottom))!important;min-height:38px!important;padding:0 10px!important;font-size:11px!important;opacity:.94}
 .footer .client-title,.footer .client-grid,.footer .client-grid *{opacity:1!important;visibility:visible!important}
 .hero-content h1{font-size:clamp(25px,7vw,36px)!important;line-height:1.08!important;overflow-wrap:normal!important}
 .hero-content{max-width:90%!important}
}
@media(max-width:390px){.category-section .category-card{height:155px!important;min-height:155px!important}.category-section .category-card img{height:85px!important;width:85px!important}.category-section .category-card .category-label{font-size:11px!important}.product-image{height:130px!important}}
