/* KHIZAI mobile v1: storefront only */
html{scroll-padding-top:16px}body{overflow-wrap:break-word}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b99a62;outline-offset:3px}
button:disabled{cursor:not-allowed}
#modal .photo img{object-fit:contain;background:#fff}
#modalbg,#kh-checkout-v13,.kh-contract-dialog,.cartpanel{overscroll-behavior:contain}
#modal,.kh-checkout-box,.cartpanel{max-height:calc(100dvh - 24px)}
.cartpanel{height:100dvh;max-height:100dvh}
#cartRows{min-height:60px;overscroll-behavior:contain}
#modal .close,#closeCart{width:44px;height:44px;display:grid;place-items:center;background:#fff;border-radius:50%;z-index:2;line-height:1}
.kh-contract-dialog{max-height:calc(100dvh - 24px)}
@media(max-width:760px){
 .head{gap:12px;justify-content:space-between}.logo{font-size:25px}
 .head .cartbtn{min-height:44px;padding:8px 4px}
 .search{min-width:0}.search input{font-size:16px;min-height:48px;padding:12px 4px}.search button{min-width:44px}
 #nav{gap:8px;padding:8px 12px;scroll-padding-inline:12px;-webkit-overflow-scrolling:touch}
 #nav button{min-height:44px;padding:10px 12px;flex-shrink:0}
 .filters{gap:8px}.chip{min-height:44px;padding:10px 14px}
 .choice button{min-width:44px;min-height:44px;font-size:16px}
 .btn,#kh-whatsapp-result{min-height:48px;line-height:1.5;white-space:normal}
 .cartqty button,.cartrow button{min-width:44px;min-height:44px;font-size:16px}
 .cartrow{align-items:flex-start;overflow-wrap:anywhere}.cartrow>div{min-width:0}
 .kh-checkout-box input:not([type=checkbox]),.kh-checkout-box select,.kh-checkout-box textarea{font-size:16px;min-height:48px}
 .kh-checkout-actions button,.kh-contract-box button,.kh-contract-dialog button{font-size:14px;min-height:48px;line-height:1.5;white-space:normal}
 .kh-contract-box label{padding-block:8px;cursor:pointer}
 .kh-contract-dialog{padding:18px}.kh-contract-dialog h2{font-size:20px;padding-right:4px}
 .kh-contract-dialog pre{max-height:55dvh;font-size:15px;line-height:1.7;overscroll-behavior:contain}
 .kh-contract-dialog button{margin-right:6px}
 .toast{max-width:calc(100vw - 24px);width:max-content;bottom:calc(16px + env(safe-area-inset-bottom));text-align:center}
 .foot{padding:28px 16px}.foot nav a{padding:8px 4px;line-height:1.5}
}
@media(max-width:580px){
 main{padding:14px 12px}.top{font-size:10px;letter-spacing:1px;line-height:1.5}
 .grid{gap:10px}.photo{height:auto;aspect-ratio:3/4}.photo img{object-fit:contain;background:white}
 .name{font-size:13px;min-height:0}.cat{overflow-wrap:anywhere}.price{font-size:16px}.pinfo{padding:10px 8px}
 .hero-copy{padding:28px 20px}.hero h1{font-size:36px;letter-spacing:-1px}.hero p{font-size:14px}
 .hero-img{min-width:0}.hero-img img{max-width:100%;object-fit:contain}
 #modalbg,#kh-checkout-v13{padding:8px;padding-top:max(8px,env(safe-area-inset-top));padding-bottom:max(8px,env(safe-area-inset-bottom))}
 #modal{padding:52px 16px 20px;gap:16px;max-height:calc(100dvh - 24px)}
 #modal .photo{height:250px;aspect-ratio:auto}#modal h2{font-size:20px}#addCart{width:100%}
 .kh-checkout-box{padding:20px 16px;padding-bottom:max(20px,env(safe-area-inset-bottom));max-height:calc(100dvh - 24px)}
 .kh-checkout-box h2{font-size:22px}.kh-contract-box{padding:12px}
 .cartpanel{padding:52px 16px max(16px,env(safe-area-inset-bottom));width:100%;max-width:420px}
 .cartpanel h2{margin-top:0;font-size:22px}.kh-order-summary{overflow-wrap:anywhere}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
