/* CORRECAO_TOUCH_ESPACOS_CATALOGO_MOBILE_20260815 */

/* 1, 2, 3 e 4 mais compactas */
.store-topbar,
.site-topbar,
.header-topbar{
    margin:0!important;
    padding:0!important;
}
.store-topbar__inner{
    min-height:22px!important;
    padding-top:1px!important;
    padding-bottom:1px!important;
    line-height:1.05!important;
}

.site-header{
    margin:0!important;
    padding:0!important;
}
.header-main{
    padding-top:0!important;
    padding-bottom:1px!important;
    margin-top:0!important;
    margin-bottom:0!important;
    gap:10px!important;
    align-items:center!important;
    min-height:0!important;
}

/* Logo estável e sem exagero */
.header-main > a.brand.brand-official,
a.brand.brand-official{
    width:200px!important;
    min-width:200px!important;
    max-width:200px!important;
    flex:0 0 200px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    overflow:visible!important;
    margin:0!important;
    padding:0!important;
}
.header-main > a.brand.brand-official > img.brand-official-logo,
a.brand.brand-official > img.brand-official-logo,
img.brand-official-logo[src*="logo-oficial-minhavitrine"]{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:auto!important;
    max-height:none!important;
    object-fit:contain!important;
    transform:none!important;
    margin:0!important;
    padding:0!important;
}
.search-form{
    flex:1 1 580px!important;
    min-width:310px!important;
    max-width:800px!important;
    margin:0!important;
}
.top-actions{
    margin:0!important;
    align-items:center!important;
}

/* Parte 3 próxima da parte 2 */
.main-nav{
    padding-top:0!important;
    padding-bottom:0!important;
    margin-top:0!important;
    margin-bottom:0!important;
    min-height:0!important;
}
.main-nav a{
    padding-top:6px!important;
    padding-bottom:6px!important;
    margin-top:0!important;
    margin-bottom:0!important;
}

/* Parte 4 próxima da parte 3 */
.circle-menu-porto{
    margin-top:0!important;
    margin-bottom:0!important;
    padding-top:0!important;
    padding-bottom:0!important;
}
.circle-menu-shell{
    padding-top:0!important;
    padding-bottom:2px!important;
    margin-top:0!important;
    margin-bottom:0!important;
    gap:6px!important;
}
.circle-menu-hint{
    display:none!important;
}

/* Carrossel infinito com suporte a dedo/arraste */
.circle-menu-track.mv-circle-touch-ready{
    overflow:hidden!important;
    scroll-behavior:auto!important;
    scrollbar-width:none!important;
    padding-top:1px!important;
    padding-bottom:1px!important;
    cursor:grab!important;
    touch-action:pan-y!important;
    user-select:none!important;
}
.circle-menu-track.mv-circle-touch-ready:active{
    cursor:grabbing!important;
}
.circle-menu-track.mv-circle-touch-ready::-webkit-scrollbar{
    display:none!important;
}
.mv-circle-touch-inner{
    display:flex!important;
    align-items:stretch!important;
    gap:18px!important;
    will-change:transform!important;
    transform:translate3d(0,0,0);
}
.mv-circle-touch-set{
    display:flex!important;
    align-items:stretch!important;
    gap:18px!important;
    flex:0 0 auto!important;
}
.mv-circle-touch-set .circle-menu-card{
    flex:0 0 auto!important;
}
.circle-menu-card:hover .circle-menu-card__image{
    transform:translateY(-4px) scale(1.03)!important;
}
.circle-nav-button{
    width:38px!important;
    height:54px!important;
    border-radius:14px!important;
    flex:0 0 38px!important;
    z-index:3!important;
}
.circle-nav-button.is-active-direction{
    background:#111827!important;
    color:#fff!important;
}

/* WhatsApp no canto inferior */
.floating-whatsapp,
.mv-floating-whatsapp-icon{
    position:fixed!important;
    right:4px!important;
    bottom:4px!important;
    z-index:95!important;
    width:52px!important;
    height:52px!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    border-radius:999px!important;
    background:transparent!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-shadow:none!important;
    opacity:.56!important;
    transition:opacity .18s ease, transform .18s ease!important;
    overflow:visible!important;
}
.floating-whatsapp:hover,
.mv-floating-whatsapp-icon:hover{
    opacity:1!important;
    transform:translateY(-1px)!important;
}
.floating-whatsapp::before,
.floating-whatsapp::after,
.floating-whatsapp span,
.mv-floating-whatsapp-icon::before,
.mv-floating-whatsapp-icon::after,
.mv-floating-whatsapp-icon span{
    display:none!important;
    content:none!important;
}
.floating-whatsapp img,
.mv-floating-whatsapp-icon img{
    display:block!important;
    width:52px!important;
    height:52px!important;
    object-fit:contain!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
}

/* Catálogo: tablet 3 colunas */
@media (min-width:701px) and (max-width:1024px){
    #produtos .products-grid,
    #produtos .product-grid,
    #produtos .catalog-grid,
    #produtos .grid-products,
    .products-grid,
    .product-grid{
        grid-template-columns:repeat(3,minmax(0,1fr))!important;
        gap:12px!important;
    }

    #produtos .product-card,
    #produtos .card-product,
    #produtos article.product{
        padding:10px!important;
        border-radius:14px!important;
    }

    #produtos .product-card img,
    #produtos .card-product img,
    #produtos article.product img{
        max-height:150px!important;
        object-fit:cover!important;
    }

    #produtos .product-card h3,
    #produtos .card-product h3,
    #produtos article.product h3{
        font-size:14px!important;
        line-height:1.2!important;
    }
}

/* Catálogo: celular 2 colunas */
@media (max-width:700px){
    .store-topbar__inner{
        min-height:20px!important;
        padding-top:1px!important;
        padding-bottom:1px!important;
    }

    .header-main{
        padding-top:0!important;
        padding-bottom:1px!important;
        gap:8px!important;
    }

    .header-main > a.brand.brand-official,
    a.brand.brand-official{
        width:170px!important;
        min-width:170px!important;
        max-width:170px!important;
        flex-basis:170px!important;
        justify-content:center!important;
    }

    .search-form{
        order:2!important;
        width:100%!important;
        flex:1 1 100%!important;
        max-width:100%!important;
        min-width:100%!important;
    }

    .top-actions{
        order:3!important;
    }

    .main-nav{
        padding-top:0!important;
        padding-bottom:0!important;
    }

    .main-nav a{
        padding-top:5px!important;
        padding-bottom:5px!important;
    }

    .circle-menu-shell{
        padding-top:0!important;
        padding-bottom:2px!important;
    }

    #produtos.section{
        padding-top:14px!important;
    }

    #produtos .products-grid,
    #produtos .product-grid,
    #produtos .catalog-grid,
    #produtos .grid-products,
    .products-grid,
    .product-grid{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        gap:9px!important;
    }

    #produtos .product-card,
    #produtos .card-product,
    #produtos article.product{
        padding:8px!important;
        border-radius:12px!important;
    }

    #produtos .product-card img,
    #produtos .card-product img,
    #produtos article.product img{
        max-height:118px!important;
        object-fit:cover!important;
    }

    #produtos .product-card h3,
    #produtos .card-product h3,
    #produtos article.product h3{
        font-size:12.5px!important;
        line-height:1.18!important;
        margin-bottom:5px!important;
    }

    #produtos .price,
    #produtos .product-price{
        font-size:13px!important;
    }

    #produtos .btn,
    #produtos button,
    #produtos .product-card a.btn{
        font-size:11px!important;
        padding:7px 8px!important;
        border-radius:9px!important;
    }

    .floating-whatsapp,
    .mv-floating-whatsapp-icon{
        width:48px!important;
        height:48px!important;
        right:3px!important;
        bottom:3px!important;
    }
    .floating-whatsapp img,
    .mv-floating-whatsapp-icon img{
        width:48px!important;
        height:48px!important;
    }
}

/* PWA standalone recebe o mesmo comportamento compacto */
@media (display-mode:standalone){
    .store-topbar__inner{
        min-height:20px!important;
        padding-top:1px!important;
        padding-bottom:1px!important;
    }
    .header-main{
        padding-top:0!important;
        padding-bottom:1px!important;
    }
}
