/* CONNECT Loja Virtual Inteligente — individual storefront 0.7.1-beta premium UX.
   Independent store theme assets; no approved main-site logo or carousel touched. */
html{scroll-padding-top:96px}
#main,#produtos,.page{scroll-margin-top:105px}
.store-header nav a,.categories a,.theme-switcher a{min-height:40px;display:inline-flex;align-items:center;justify-content:center}
.store-header nav a[aria-current="page"],.categories a[aria-current="page"],
.theme-switcher a[aria-current="page"]{text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:2px}
.theme-switcher .wrap{min-width:0}
.store-header .header-inner{min-width:0}
.store-header nav{min-width:0}
.catalog-top,.catalog-sort,.catalog-sort .stock-only,.store-pagination{min-width:0}
.catalog-sort{row-gap:12px}
.catalog-sort input:not([type=hidden]):not([type=checkbox]){min-height:44px}
.catalog-sort .stock-only{padding:5px 3px;line-height:1.35}
.catalog-sort .stock-only input{flex:0 0 auto}
.catalog-sort .clear-catalog{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:7px 10px}
.store-pagination a{min-height:44px;display:inline-flex;align-items:center}
.product{display:flex;flex-direction:column}
.product-picture{flex:0 0 auto}
.product-body{display:flex;flex-direction:column;align-items:stretch;flex:1}
.product-body .price{margin-top:auto}
.product-body form{margin-top:9px}
.product-body form button{min-height:44px}
.product-body .unavailable{margin-top:10px}
.cart-line,.cart-line div,.cart-line form,.product-detail>div{min-width:0}
.cart-line form input[type=number]{max-width:88px;min-height:42px}
.cart-line button{min-height:42px}
.grid-two>.panel{min-width:0}
.panel{min-width:0}
.panel .tablewrap{max-width:100%;overscroll-behavior-x:contain;scrollbar-width:thin}
.tablewrap:focus-visible{outline:3px solid #37b8ff;outline-offset:3px}
.demo-panel-nav .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px}
.demo-panel-nav .wrap span[style]{float:none!important}
.demo-p-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.demo-p-grid>*,.demo-p-kpi{min-width:0;overflow-wrap:anywhere}
.store-footer .footer-policies a{display:inline-flex;align-items:center;min-height:38px}
.connect-store-offline{background:#fff5e2;border-bottom:1px solid #f6dda8;color:#775119;text-align:center;font:650 12px/1.5 system-ui;padding:11px}
.connect-store-offline[hidden],.connect-store-back-top[hidden]{display:none!important}
.connect-store-back-top{position:fixed;z-index:47;right:15px;bottom:calc(15px + env(safe-area-inset-bottom,0px));width:46px;height:46px;border-radius:50%;box-shadow:0 7px 26px #071d3f50;background:#075cf0;color:#fff;font-size:24px;min-height:44px}
.connect-store-back-top:focus-visible{outline:3px solid #37b8ff;outline-offset:2px}
@media(max-width:760px){
 html{scroll-padding-top:130px}
 #main,#produtos,.page{scroll-margin-top:130px}
 .header-inner{flex-wrap:wrap}
 .store-header nav{justify-content:flex-start;gap:8px 13px}
 .grid-two{grid-template-columns:minmax(0,1fr)}
 .demo-p-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .catalog-sort{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}
 .catalog-sort label:not(.stock-only){grid-column:1/-1}
 .catalog-sort select,.catalog-sort button,.catalog-sort .clear-catalog{min-width:0;width:100%}
}
@media(max-width:430px){
 .header-inner{flex-direction:column;align-items:stretch;padding-block:12px}
 .store-logo{min-width:0;overflow-wrap:anywhere}
 .store-header nav{display:flex;gap:6px;justify-content:space-between}
 .store-header nav a{font-size:11px;padding:6px 3px;min-height:44px;white-space:normal}
 .theme-switcher a{min-height:43px}
 .catalog-sort{grid-template-columns:minmax(0,1fr)}
 .catalog-sort .stock-only{white-space:normal}
 .demo-p-grid{grid-template-columns:minmax(0,1fr)}
 .store-hero h1{font-size:clamp(30px,9vw,40px)}
 .grid-two>.panel{padding:15px}
 .connect-store-back-top{width:44px;height:44px;right:11px;bottom:calc(11px + env(safe-area-inset-bottom,0px))}
}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto}
 .connect-store-back-top{transition:none}
}
