/* Mobile layout, scoped to the existing storefront and admin. No order/payment changes. */
html{max-width:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:90px}
.storefront-body,.admin-body{min-width:0}
.storefront-body .container,.storefront-body .product-detail-grid>*,.storefront-body .cart-grid>*,.storefront-body .checkout-grid>*,.storefront-body .contact-grid>*,.storefront-body .product-card,.admin-main,.admin-content{min-width:0}
.storefront-body p,.storefront-body .product-name,.storefront-body .cat-name,.storefront-body .footer-contact,.storefront-body .breadcrumb{overflow-wrap:anywhere}
.storefront-body img,.storefront-body video,.storefront-body iframe{max-width:100%}
.am-nav-title,.am-nav-close,.am-admin-nav-close{display:none}
.storefront-body .am-public-search{min-width:0;max-width:100%}
.storefront-body .am-public-search input{width:0;min-width:0;flex:1 1 0}
.storefront-body .am-public-search .btn{flex:0 0 auto}
@media(max-width:1100px){
 .storefront-body{padding-top:68px}
 .storefront-body .site-header{height:68px;z-index:1200;backdrop-filter:none;-webkit-backdrop-filter:none}
 .storefront-body .header-inner{height:68px;padding:10px 16px;gap:12px;min-width:0}
 .storefront-body .header-logo{min-width:0;max-width:calc(100% - 112px)}
 .storefront-body .header-logo img{height:44px;max-width:100%;object-fit:contain}
 .storefront-body .header-actions{flex:0 0 auto;gap:10px}
 .storefront-body .header-social{display:none}
 .storefront-body .cart-btn{width:44px;height:44px;flex-shrink:0}
 .storefront-body .hamburger{display:flex;width:44px;height:44px;justify-content:center;align-items:center;flex-shrink:0}
 .storefront-body .header-nav{position:fixed;top:0;right:0;bottom:0;left:auto;width:min(320px,calc(100vw - 56px));max-width:100%;height:100vh;height:100dvh;padding:80px 16px max(24px,env(safe-area-inset-bottom));background:#fff;z-index:1202;display:block;overflow-y:auto;overscroll-behavior:contain;transform:translateX(110%);visibility:hidden;pointer-events:none;transition:transform .25s ease,visibility .25s;box-shadow:-8px 0 30px #0002}
 .storefront-body .header-nav.open{right:0;transform:translateX(0);visibility:visible;pointer-events:auto}
 .storefront-body .header-nav ul{display:flex;flex-direction:column;align-items:stretch;gap:5px;width:100%}
 .storefront-body .header-nav li{width:100%}
 .storefront-body .header-nav a{display:flex;align-items:center;min-height:48px;width:100%;padding:12px 14px;font-size:16px;white-space:normal}
 .storefront-body .am-nav-title{display:block;position:absolute;right:24px;top:24px;font-weight:800;font-size:18px}
 .storefront-body .am-nav-close{display:flex;position:absolute;left:14px;top:16px;width:44px;height:44px;align-items:center;justify-content:center;border:1px solid #ddd;background:#fff;border-radius:10px;font-size:28px;cursor:pointer;color:#222}
 .storefront-body .nav-overlay{z-index:1100;touch-action:none}
}
@media(min-width:1101px){.storefront-body .header-nav{transform:none;visibility:visible;pointer-events:auto}}
@media(max-width:900px){
 .storefront-body .product-detail-grid,.storefront-body .cart-grid,.storefront-body .checkout-grid,.storefront-body .contact-grid,.storefront-body .about-grid{grid-template-columns:minmax(0,1fr)!important;gap:24px!important}
 .storefront-body .cart-summary{position:static!important;top:auto!important;min-width:0}
 .storefront-body .product-detail-actions{position:static;margin:16px 0 0;padding:12px 0;background:white;border-top:1px solid #eee;gap:10px}
 .storefront-body .product-detail-actions>.btn{flex:1 1 45%;justify-content:center;min-height:48px;white-space:normal}
 .storefront-body .product-detail-actions>.btn-whatsapp{flex-basis:100%}
 .admin-body{padding-top:0!important}
 .admin-layout,.admin-main{width:100%;min-width:0;max-width:100%}
 .admin-content{padding:16px;min-width:0;max-width:100%}
 .admin-header{min-height:62px;height:auto;padding:10px 12px;gap:10px}
 .admin-header>div:first-child{min-width:0}
 .admin-header h1{overflow-wrap:anywhere;font-size:14px!important}
 .admin-header>div:last-child{flex-shrink:0;gap:10px!important}
 .admin-sidebar{top:0;right:0;bottom:0;height:100vh;height:100dvh;max-width:calc(100vw - 54px);z-index:1502!important;overscroll-behavior:contain}
 .admin-sidebar-overlay{z-index:1501!important;touch-action:none}
 .admin-sidebar .sidebar-logo{padding-top:64px}
 .am-admin-nav-close{display:flex;position:absolute;top:12px;left:12px;align-items:center;justify-content:center;width:44px;height:44px;background:#333;color:#fff;border:1px solid #666;border-radius:8px;font-size:28px;cursor:pointer}
 .admin-content [style*="grid-template-columns"]{grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
 .admin-content .admin-card,.admin-content form,.admin-content .form-control{min-width:0;max-width:100%}
 .admin-content .table-wrap{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
 .admin-content .admin-table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
 .admin-content .table-wrap .admin-table{display:table;min-width:540px;max-width:none;overflow:visible}
 .admin-content .filters-bar{flex-wrap:wrap;gap:10px}
 .admin-content .filters-bar .search-input-wrap{min-width:0;flex:1 1 100%}
 .admin-content .filters-bar .filter-select{max-width:100%;flex:1 1 140px}
 .admin-content .am-line{align-items:stretch!important;gap:12px!important}
 .admin-content .am-line>.am-search-picker{flex-basis:100%;max-width:100%}
 .admin-content .am-line>select:disabled{max-width:100%!important;width:100%}
 .admin-content .am-line>div{max-width:100%}
 .admin-body .am-global-search form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
 .admin-body .am-global-search input{grid-column:1/-1;min-width:0;width:100%}
 .admin-body .am-global-search select{max-width:100%;width:100%;min-width:0}
 .admin-content .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:600px){
 html{scroll-padding-top:78px}
 .storefront-body .container{width:100%;padding-left:14px;padding-right:14px}
 .storefront-body .section-pad{padding:32px 0}
 .storefront-body .page-hero{padding:24px 0}
 .storefront-body .page-hero h1,.storefront-body .section-title{font-size:24px;line-height:1.5}
 .storefront-body .section-subtitle{font-size:14px;margin-bottom:22px}
 .storefront-body .hero-section{min-height:0;padding:44px 0}
 .storefront-body .hero-content{width:100%;max-width:100%;padding:0 16px}
 .storefront-body .hero-title{font-size:clamp(27px,7.5vw,38px);line-height:1.5}
 .storefront-body .hero-desc{font-size:15px;margin-bottom:24px}
 .storefront-body .hero-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;width:100%}
 .storefront-body [style*="grid-template-columns"]{grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
 .storefront-body [style*="minmax(200px"]{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
 .storefront-body .products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .storefront-body .product-card{width:100%;max-width:100%;min-width:0}
 .storefront-body .product-info{padding:10px 9px}
 .storefront-body .product-name{font-size:13px;line-height:1.7;min-height:44px;white-space:normal}
 .storefront-body .product-price-wrap{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center}
 .storefront-body .product-price{font-size:16px;min-width:0;max-width:100%;overflow-wrap:anywhere}
 .storefront-body .product-old-price{font-size:12px}
 .storefront-body .product-footer{display:grid;grid-template-columns:minmax(0,1fr) 40px;gap:7px;padding:0 8px 10px}
 .storefront-body .product-footer .buy-now{grid-column:1/-1;order:0}
 .storefront-body .product-footer .btn{font-size:12px;line-height:1.5;padding:8px 5px;min-height:42px;justify-content:center;white-space:normal;gap:4px;min-width:0}
 .storefront-body .product-footer .add-to-cart{grid-column:1}
 .storefront-body .product-footer .btn-outline{grid-column:2}
 .storefront-body .categories-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
 .storefront-body .cat-card{min-width:0;padding:16px 8px!important}
 .storefront-body .cat-name{font-size:12px!important;line-height:1.6}
 .storefront-body .cat-icon{width:46px!important;height:46px!important}
 .storefront-body .filters-bar{display:flex;flex-wrap:wrap;gap:10px;padding:14px}
 .storefront-body .filters-bar .search-input-wrap{flex:1 1 100%;min-width:0}
 .storefront-body .filters-bar .am-search-picker{min-width:0;flex:1 1 100%}
 .storefront-body .filters-bar .filter-select{flex:1 1 130px;min-width:0;max-width:100%}
 .storefront-body .am-search-picker{min-width:0;max-width:100%}
 .storefront-body .am-public-search{gap:8px;padding:12px 0}
 .storefront-body .am-public-search .btn,.storefront-body .am-section-search .btn{padding:10px 12px;font-size:14px;min-height:46px}
 .storefront-body .am-public-search input,.storefront-body .am-section-search input{font-size:16px}
 .storefront-body .am-section-search{min-width:0;gap:8px}
 .storefront-body .am-section-search input{min-width:0;width:0;flex:1 1 0}
 .storefront-body .product-gallery-main{aspect-ratio:1;max-height:460px}
 .storefront-body .product-gallery-main img{width:100%;height:100%;object-fit:contain}
 .storefront-body .product-gallery-thumbs{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding:4px 0 10px;gap:8px;overscroll-behavior-x:contain}
 .storefront-body .thumb{width:62px;height:62px;flex:0 0 62px}
 .storefront-body .product-detail-info h1{font-size:23px;line-height:1.6;overflow-wrap:anywhere}
 .storefront-body .product-detail-price{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
 .storefront-body .cart-item{grid-template-columns:68px minmax(0,1fr) 38px;gap:10px;padding:14px 12px;align-items:start}
 .storefront-body .cart-item-img{grid-column:1;grid-row:1/3;width:68px;height:68px}
 .storefront-body .cart-item>div:nth-child(2){grid-column:2;grid-row:1;min-width:0}
 .storefront-body .cart-item .qty-input{grid-column:2;grid-row:2;justify-self:start;max-width:100%}
 .storefront-body .cart-item-price{grid-column:2;grid-row:3;font-size:15px;overflow-wrap:anywhere}
 .storefront-body .cart-remove{grid-column:3;grid-row:1;width:38px;min-height:38px}
 .storefront-body .cart-item-name{font-size:14px;line-height:1.7;overflow-wrap:anywhere}
 .storefront-body .cart-table>div:first-child{padding:14px 12px!important;gap:10px;flex-wrap:wrap}
 .storefront-body .cart-summary{padding:18px;max-width:100%}
 .storefront-body .summary-row{gap:12px;flex-wrap:wrap;font-size:15px}
 .storefront-body .form-section{padding:18px 14px}
 .storefront-body input:not([type=radio]):not([type=checkbox]),.storefront-body select,.storefront-body textarea,.admin-body input:not([type=radio]):not([type=checkbox]),.admin-body select,.admin-body textarea{font-size:16px!important}
 .storefront-body .btn-lg{font-size:16px;padding:13px 18px;white-space:normal;justify-content:center}
 .storefront-body .payment-option{min-width:0;align-items:flex-start;padding:14px}
 .storefront-body .contact-grid{gap:24px!important}
 .storefront-body .thankyou-box{margin:16px auto;padding:28px 18px}
 .storefront-body .footer-grid{grid-template-columns:minmax(0,1fr);gap:24px}
 .storefront-body .footer-bottom .container{gap:8px}
 .storefront-body .whatsapp-float{width:48px;height:48px;bottom:max(18px,env(safe-area-inset-bottom));left:14px;font-size:24px}
 .storefront-body .pagination{flex-wrap:wrap;gap:6px}
 .storefront-body .breadcrumb ul{flex-wrap:wrap}
 .storefront-body .reviews-grid{grid-template-columns:minmax(0,1fr)}
 .admin-content>.btn,.admin-content form>.btn{white-space:normal}
 .admin-content .admin-card{padding:16px}
 .admin-content .image-preview-box{max-width:100%}
}
@media(max-width:359px){.storefront-body .products-grid{grid-template-columns:minmax(0,1fr)}.storefront-body .product-footer{grid-template-columns:minmax(0,1fr) 46px}.storefront-body .categories-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.storefront-body .header-nav{transition:none}.storefront-body .hero-bg-word,.storefront-body .hero-bg-icon{animation:none}}
