/* SECURIX v4 — sitewide mobile viewport/header/overflow hardening. */
@media (max-width: 767px){
  html,body{width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:hidden!important}
  body{position:relative!important}
  *,*::before,*::after{box-sizing:border-box}
  img,svg,video,canvas,iframe{max-width:100%}
  #main-content,main,header,footer,[data-header],[data-sticky-row],[data-live-search]{min-width:0!important;max-width:100%!important}
  #main-content{width:100%!important;overflow-x:clip!important}
  [data-header]{padding-top:8px!important;overflow:visible!important}
  [data-header]>div{width:calc(100% - 16px)!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important}
  .sx-header-utility{display:none!important}
  .sx-header-main-row{display:grid!important;grid-template-columns:minmax(90px,1fr) auto!important;grid-template-rows:auto auto!important;gap:8px!important;width:100%!important;min-width:0!important;margin-top:0!important;padding:8px!important;border-radius:16px!important}
  .sx-header-logo{grid-column:1!important;grid-row:1!important;min-width:0!important;overflow:hidden!important}
  .sx-header-logo img{width:auto!important;height:28px!important;max-width:118px!important;object-fit:contain!important}
  .sx-header-actions{grid-column:2!important;grid-row:1!important;display:flex!important;gap:5px!important;min-width:0!important;justify-content:flex-end!important}
  .sx-header-actions>[data-mobile-open],.sx-header-actions>.sx-header-account,.sx-header-actions>.sx-header-wishlist,.sx-header-actions>[data-cart-open]{display:grid!important;width:36px!important;height:36px!important;min-width:36px!important;border-radius:10px!important}
  .sx-header-actions>div:last-child{display:none!important}
  .sx-live-search{grid-column:1/-1!important;grid-row:2!important;width:100%!important;min-width:0!important;margin:0!important}
  .sx-search-form{width:100%!important;min-width:0!important;height:42px!important}
  .sx-search-form input{min-width:0!important;width:1%!important;font-size:14px!important}
  .sx-search-panel{left:0!important;right:0!important;width:100%!important;max-width:100%!important}
  [class*="w-["],[class*="min-w-["],[style*="min-width"]{max-width:100%}
  .mx-auto{max-width:100%!important}
  table{max-width:100%}
  dialog{max-width:calc(100vw - 20px)!important;margin:auto!important}
  [role="dialog"],#cartDrawer,#mobileMenu{max-width:100vw!important}
  #mobileMenu aside{width:min(420px,92vw)!important;max-width:92vw!important}
  .sx-auth{width:100%!important;max-width:100%!important;min-width:0!important;padding:20px 10px 48px!important;overflow:hidden!important}
  .sx-auth-wrap{width:100%!important;max-width:560px!important;min-width:0!important;margin:0 auto!important;padding:0!important}
  .sx-auth-card{width:100%!important;min-width:0!important;max-width:100%!important}
  .sx-auth-form,.sx-auth-form label,.sx-auth-two{min-width:0!important;max-width:100%!important}
  .sx-auth-form input:not([type=checkbox]){min-width:0!important;max-width:100%!important}
}
@media (max-width: 390px){
  .sx-header-logo img{max-width:102px!important;height:26px!important}
  .sx-header-actions{gap:4px!important}
  .sx-header-actions>[data-mobile-open],.sx-header-actions>.sx-header-account,.sx-header-actions>.sx-header-wishlist,.sx-header-actions>[data-cart-open]{width:34px!important;height:34px!important;min-width:34px!important}
}
