/* AYAZMA v8: structural overrides; use after all prior theme layers */
html,body{max-width:100%;overflow-x:clip}
.ayazma-home,.woocommerce-area,.ayazma-detail-page{min-width:0}
.ayazma-hero-layout{display:grid!important;grid-template-columns:minmax(205px,235px) minmax(0,1fr)!important;align-items:stretch!important;gap:18px!important}
.ayazma-hero-categories{display:block;min-width:0!important;width:auto!important}
.ayazma-hero-layout .hero-shell{min-width:0!important;width:100%!important;max-width:100%!important}
.ayazma-hero-layout .slider{width:100%!important;max-width:100%!important;min-width:0!important;min-height:390px}
.ayazma-hero-categories-title{display:flex!important;align-items:center;gap:10px}
.ayazma-hero-categories-title svg{display:inline-block!important;flex:none}
.ayazma-category-backdrop:not([hidden]){display:block!important}
body.ayazma-categories-open .ayazma-category-drawer{transform:translateX(0)!important;visibility:visible!important}
.ayazma-category-drawer{visibility:visible;box-sizing:border-box}
/* Footer: all descendants stay inside the viewport */
.ayazma-footer-v3{width:100%!important;max-width:100vw!important;overflow-x:clip!important}
.ayazma-footer-v3 *{box-sizing:border-box;min-width:0}
.ayazma-footer-v3 .container{max-width:min(1200px,100%)!important;width:100%!important;padding-inline:clamp(14px,3vw,28px)!important;margin-inline:auto!important}
.ayazma-footer-main{display:grid!important;grid-template-columns:minmax(0,1.25fr) repeat(2,minmax(0,1fr)) minmax(0,1.25fr)!important;gap:clamp(16px,3vw,38px)!important;align-items:start}
.ayazma-footer-main>div{width:100%!important;max-width:100%!important}
.ayazma-footer-about img{height:auto!important;max-width:145px!important;width:auto!important;object-fit:contain!important}
.ayazma-footer-main p,.ayazma-footer-main a{overflow-wrap:anywhere}
.ayazma-footer-features{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px}
/* Product tab panels, support arbitrary long HTML */
.ayazma-detail-page{width:100%!important;max-width:100%!important;overflow:visible!important}
.ayazma-detail-top{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:clamp(16px,4vw,48px)!important}
.ayazma-detail-top>*{width:100%!important;min-width:0!important;max-width:100%!important}
.ayazma-detail-lower,.ayazma-detail-related{min-width:0!important;width:100%!important;max-width:100%!important;clear:both!important}
.ayazma-detail-lower .woocommerce-tabs,.ayazma-detail-lower .woocommerce-Tabs-panel{box-sizing:border-box;min-width:0;max-width:100%}
.ayazma-detail-lower .woocommerce-tabs .tabs{overflow-x:auto}
.ayazma-detail-page .related ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important}
.ayazma-detail-page .related ul.products li.product{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important}
.ayazma-detail-page .related ul.products li.product img{width:100%!important}
/* Dynamic delivery banner */
.ayazma-dynamic-inner{box-sizing:border-box;max-width:100%!important;min-width:0!important}
.ayazma-dynamic-bar .ayazma-live-slot{white-space:normal!important;overflow-wrap:anywhere}
.ayazma-dynamic-bar .ayazma-bar-extra{white-space:normal!important}
@media(max-width:1000px) and (min-width:701px){.ayazma-hero-layout{grid-template-columns:minmax(180px,210px) minmax(0,1fr)!important}.ayazma-footer-main{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ayazma-footer-features{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){
 .ayazma-hero-layout{display:block!important;width:100%!important}.ayazma-hero-categories{display:none!important}
 .ayazma-home{padding-inline:14px!important}.ayazma-home .hero-shell{margin:0!important}
 .ayazma-hero-layout .slider{min-height:0!important;max-width:100%!important}
 .ayazma-sticky-shell,.ayazma-sticky-shell .header{position:sticky!important;top:0!important;z-index:900!important}
 .ayazma-sticky-shell .header-core{display:grid!important;grid-template-columns:88px minmax(0,1fr) 44px!important;gap:13px!important;padding-inline:12px!important;width:100%!important;max-width:100%!important}
 .ayazma-sticky-shell .header-core .brand{width:88px!important;max-width:88px!important;min-width:0!important}
 .ayazma-sticky-shell .header-core .brand img{max-width:100%!important;height:auto!important;max-height:46px!important;object-fit:contain!important}
 .ayazma-sticky-shell .header-core>.search-box{grid-column:2!important;display:flex!important;min-width:0!important;width:100%!important;padding-inline:9px!important}
 .ayazma-sticky-shell .head-actions{grid-column:3!important;display:flex!important;min-width:0!important;width:44px!important}
 .ayazma-dynamic-bar .ayazma-dynamic-inner{display:grid!important;grid-template-columns:20px minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;gap:7px 8px!important;padding:10px 14px!important}
 .ayazma-dynamic-bar .ayazma-bar-icon{grid-column:1!important;grid-row:1!important}
 .ayazma-dynamic-bar .ayazma-live-slot{grid-column:2 / 4!important;grid-row:1!important;font-size:11px!important;line-height:1.5!important;min-width:0!important}
 .ayazma-dynamic-bar .ayazma-bar-extra{grid-column:1 / 3!important;grid-row:2!important;font-size:10px!important;line-height:1.5!important}
 .ayazma-dynamic-bar .ayazma-top-address{grid-column:3!important;grid-row:2!important;justify-self:end!important;white-space:nowrap!important;font-size:10px!important;padding:8px!important}
 .ayazma-footer-v3{padding-bottom:calc(80px + env(safe-area-inset-bottom))!important}
 .ayazma-footer-v3 .container{width:100%!important;max-width:100%!important;padding-inline:16px!important}
 .ayazma-footer-features{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 .ayazma-footer-features>div{width:100%!important;min-width:0!important;gap:7px!important}
 .ayazma-footer-main{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:25px 14px!important;padding-block:25px!important}
 .ayazma-footer-main>.ayazma-footer-about,.ayazma-footer-main>.ayazma-footer-contact{grid-column:1/-1!important}
 .ayazma-footer-main>.ayazma-footer-links{grid-column:auto!important;min-width:0!important;max-width:100%!important}
 .ayazma-footer-about img{max-width:135px!important}
 .ayazma-footer-base .container{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:8px!important}
 .ayazma-detail-top{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:18px!important}
 .ayazma-detail-page .related ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 .ayazma-detail-page .related ul.products li.product{padding:9px!important}
 .ayazma-detail-lower{padding:16px!important;margin-top:22px!important}
 .ayazma-detail-lower .woocommerce-tabs ul.tabs{display:flex!important;flex-wrap:nowrap!important;max-width:100%!important;overflow-x:auto!important}
 .ayazma-detail-lower .woocommerce-tabs ul.tabs li{flex:none!important}
 .bottom-nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:stretch!important;box-sizing:border-box!important;width:100%!important;max-width:100vw!important}
 .bottom-nav>a{min-width:0!important;max-width:100%!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;overflow:visible!important}
 .bottom-nav>a small{display:block!important;max-width:100%!important;text-align:center!important;font-size:10px!important;white-space:nowrap!important}
}
