/* Além dos 90 · auditoria mobile 4.3.19
 * Escopo intencional: telas pequenas. Não altera imagens nem valores do catálogo.
 */
@media (max-width: 767px) {
  html,body {max-width:100%;overflow-x:clip;}
  body.mbd-store { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
  body.mbd-store :where(img,svg,video,iframe){max-width:100%;}
  body.mbd-store :where(button,a,input,select,textarea){touch-action:manipulation;}
  body.mbd-store :where(button,a,input,select,textarea):focus-visible {outline:3px solid #e7ad2d!important;outline-offset:2px!important;}
  body.mbd-store :where(input,select,textarea){font-size:16px;max-width:100%;}
  body.mbd-store :where(.mbd-container,.lm-container,.woocommerce,.a90-page){min-width:0;max-width:100%;}
  body.mbd-store :where(.mbd-header-inner,.mbd-actions,.mbd-main-menu,.mbd-main-menu li){min-width:0;}
  body.mbd-store :where(.mbd-menu-toggle,.mbd-actions>a,.mbd-cart-count){touch-action:manipulation;}
  body.mbd-store .mbd-menu-toggle {min-width:44px;min-height:44px;}
  body.mbd-store .mbd-header-search{min-width:0;max-width:100%;}
  body.mbd-store .mbd-header-search input{min-width:0;}
  body.mbd-store :where(.mbd-hero,.a90-page .a90-hero){overflow:hidden;}
  body.mbd-store :where(.mbd-hero-media,.a90-hero video){object-fit:cover;}
  body.mbd-store :where(.mbd-hero-copy,.a90-hero-copy){max-width:calc(100% - 24px);}
  body.mbd-store :where(.mbd-products-carousel,.lm-products,.a90-product-carousel){min-width:0;}
  body.mbd-store .a90-featured [data-a90-carousel]>.lm-products>.lm-product {flex:0 0 min(76vw,290px)!important;min-width:0!important;max-width:290px!important;}
  body.mbd-store .a90-featured [data-a90-carousel]>.lm-products{overscroll-behavior-x:contain;scroll-padding-inline:12px;}
  body.mbd-store .a90-featured .a90-carousel-nav button{min-width:44px;min-height:44px;}
  body.single-product div.product {max-width:100%;min-width:0;}
  body.single-product div.product :where(.images,.summary){min-width:0;max-width:100%;}
  body.single-product div.product .summary .product_title{font-size:clamp(23px,6.2vw,32px)!important;line-height:1.16!important;overflow-wrap:anywhere;letter-spacing:-.02em;}
  body.single-product .woocommerce-product-gallery img{display:block;max-width:100%;height:auto;}
  body.single-product :where(.ad90-custom,.ad90-open-designer){max-width:100%;}
  body.single-product .ad90-open-designer{min-height:50px;line-height:1.35;font-size:15px;white-space:normal;}
  body.single-product .ad90-size-option>span{min-width:44px;min-height:44px;display:grid;place-items:center;}
  body.single-product .single_add_to_cart_button{min-height:48px;}
  body.mbd-store .mbd-floating-whatsapp{right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));min-height:48px;max-width:calc(100vw - 24px);}
  /* Fullscreen mobile editor: canvas first, controls below, fixed safe-area footer */
  body.ad90-design-open .mbd-floating-whatsapp {display:none!important;}
  body .ad90-designer.open {width:100%!important;height:100svh!important;height:100dvh!important;inset:0!important;overflow:hidden!important;}
  .ad90-designer-body {min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;scrollbar-gutter:stable;}
  .ad90-designer-head{padding-left:max(10px,env(safe-area-inset-left))!important;padding-right:max(10px,env(safe-area-inset-right))!important;}
  .ad90-designer-stage{padding:8px 8px 10px!important;}
  .ad90-shirt{width:min(90vw, min(340px, 46dvh))!important;max-height:46dvh!important;aspect-ratio:420/500!important;flex:none!important;}
  .ad90-designer-switch button{min-height:44px!important;min-width:96px!important;}
  .ad90-designer-tools nav {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;}
  .ad90-designer-tools nav button {min-height:48px!important;min-width:0!important;white-space:normal!important;font-size:12px!important;}
  .ad90-designer-choices :where(label,output){line-height:1.4;}
  .ad90-designer-choices :where(select,input:not([type=range]),button){min-height:44px!important;}
  .ad90-designer-choices :where(select,input[type=text]){font-size:16px!important;}
  .ad90-designer-choices input[type=range]{height:42px!important;touch-action:pan-y;}
  .ad90-designer-footer{flex:0 0 auto!important;position:relative!important;min-height:58px!important;padding:8px max(10px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-left))!important;}
  .ad90-designer-footer button{min-height:48px!important;font-size:13px!important;}
  .ad90-designer-footer span{font-size:11px!important;}
  .ad90-design-layer{touch-action:none;}
}
@media (max-width:380px){
  .ad90-designer-footer span{display:none!important;}
  .ad90-designer-footer button{width:100%!important;flex-basis:100%!important;}
  .ad90-designer-head b{font-size:13px!important;}
  .ad90-shirt{width:min(88vw,290px,42dvh)!important;}
}
@media (max-width:767px) and (orientation:landscape){
  .ad90-shirt{width:min(45vw, 52dvh)!important;max-height:52dvh!important;}
}
@media (prefers-reduced-motion: reduce){
  body.mbd-store *, .ad90-designer *{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;}
}
