.btn-favorite{display:none!important}
.btn-favorite i{display:none!important}
:root {
    --dark: #0a0a0f;
    --section-spacing: 10px;
    --container-max-width: 100%;
    --container-padding: clamp(0.4rem, 2vw, 2rem);
    --banner-width: 100%;
    --banner-height: clamp(200px, 30vw, 450px);
    --header-height: 178px;
}
@media (min-width: 1920px) { :root { --container-padding: 3rem; } }
@media (max-width: 1200px) { :root { --header-height: 168px; } }
@media (max-width: 768px) { :root { --section-spacing: 8px; --header-height: 105px; } }
@media (max-width: 480px) { :root { --section-spacing: 6px; } }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: #fff; color: #1a1a1a; overflow-x: hidden; overflow-x: clip; }
body.home-page { overflow-anchor: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 100%; margin: 0 auto; padding: 0 var(--container-padding); }
@media (min-width: 769px) {
.site-header-shell { box-shadow: none; }
.mega-nav, .mega-nav-inner, .mega-nav-inner .header-categories-nav, .site-announcement-bar { border: none !important; border-top: none !important; border-bottom: none !important; box-shadow: none !important; outline: none !important; }
}
.home-trust-bar, .home-trust-bar-inner { display: none !important; }
.header-quick-icons { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
@media (min-width: 769px) {
body:not(.home-page) .header-content { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem 2rem; }
body:not(.home-page) .header-main-cluster { grid-column: 2; justify-self: center; }
body:not(.home-page) .header-nav { grid-column: 3; justify-self: end; margin-left: 0; flex-shrink: 0; justify-content: flex-end; }
.header-cep-slot { display: flex; }
.search-bar { max-width: 630px; min-width: 300px; }
body.home-page .header-content--desktop .header-search-group { justify-content: flex-start; width: 100%; }
body.home-page .header-row-cep-slot { display: flex; flex-shrink: 0; }
}
body.has-site-header-shell .header-cep-slot .header-location-pin,
body.has-site-header-shell #headerCepBtnDesktop .header-location-pin {
    color: var(--site-header-fg) !important;
    -webkit-text-fill-color: var(--site-header-fg) !important;
}
.cart-badge { position: absolute; top: -2px; right: -2px; background: #ef4444; color: #fff; font-size: 0.6rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
body.search-dropdown-active .mega-nav,
body.user-dropdown-active .mega-nav,
body.search-dropdown-active .home-header-menu-bar,
body.user-dropdown-active .home-header-menu-bar { pointer-events: none !important; }
@media (max-width: 768px) {
    .search-bar { display: none; }
    .search-bar-mobile { display: flex; }
    .header-content--desktop { display: none !important; }
    .header-content--mobile { display: flex !important; }
}
@media (min-width: 769px) {
    .header-content--mobile { display: none !important; }
}
.main-content > [data-section-id]:last-child { margin-bottom: 0 !important; }
.main-content:has(> [data-section-id]:last-child.home-banner-fullwidth) { padding-bottom: 0; }
.departments-carousel-wrapper { position: relative; overflow: visible; width: 100%; }
.departments-carousel { display: grid; grid-template-rows: auto; grid-auto-flow: column; grid-auto-columns: 199px; gap: 1.5rem 1rem; padding: 0.4rem 0.4rem 0.75rem; width: max-content; max-width: 100%; overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; }
.department-image-container { width: 199px; height: 199px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 0.75rem; border: none; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.department-name { font-size: 0.82rem; font-weight: 700; color: #103070; text-align: center; text-transform: uppercase; letter-spacing: 0.3px; line-height: 1.2; max-width: 120px; word-wrap: break-word; padding: 0.3rem 0.4rem; border: none; border-radius: 25px; transition: all 0.3s ease; background: transparent; }
.banner-carousel-viewport { overflow: hidden; width: 100%; cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.banner-carousel-viewport.is-dragging { cursor: grabbing; }
.banner-carousel-track { display: flex; width: 100%; will-change: transform; transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
.banner-carousel-slide { flex: 0 0 100%; width: 100%; min-width: 0; }
.banner-carousel-slide > a,
.banner-carousel-slide > div { display: block; width: 100%; margin: 0; padding: 0; }
.banner-carousel .hero-nav-btn { opacity: 0; pointer-events: none; transition: opacity 0.25s ease, background 0.3s ease, box-shadow 0.3s ease; }
.banner-carousel:hover .hero-nav-btn,
.banner-carousel:focus-within .hero-nav-btn { opacity: 1; pointer-events: auto; }
.products-section.category-section .category-section-title,
.products-section.category-section .category-section-view-all {
    display: none !important;
}
.products-section.category-section .category-section-head {
    display: none !important;
}
.products-carousel-wrapper { position: relative; overflow: visible; width: 100%; container-type: inline-size; --carousel-visible: 4; --carousel-gap: 1rem; }
@supports not (width: 100cqi) {
    .category-section .products-carousel .product-card { flex: 0 0 calc(25% - 0.8rem); width: calc(25% - 0.8rem); max-width: calc(25% - 0.8rem); }
}
.carousel-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10; color: #1a1a1a; font-size: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.carousel-nav-btn:hover { background: #1a1a1a; color: #fff; }
.carousel-nav-btn.prev { left: -48px; }
.carousel-nav-btn.next { right: -48px; }
@media (min-width: 1101px) {
    .category-section .products-carousel-wrapper { --carousel-visible: 4; }
}
.whatsapp-float { position: fixed; bottom: 2rem; right: 2rem; width: 60px; height: 60px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2rem; box-shadow: 0 4px 20px rgba(37,211,102,0.4); cursor: pointer; z-index: 1000; transition: all 0.3s ease; text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.4); }
@media (max-width: 768px) { .whatsapp-float { bottom: 1rem; right: 1rem; width: 50px; height: 50px; font-size: 1.5rem; } }

/* ==========================================================================
   Seções ocultas pelo admin (/admin/paginaprincipal). Precisa de !important:
   loadDepartments()/loadBrands() setam style.display='block' de forma
   assíncrona e sobrescreviam o display inline aplicado pela config.
   ========================================================================== */
.hp-section-off { display: none !important; }

/* ==========================================================================
   Card de departamento unificado — nome DENTRO do card, mesmo padrão dos
   cards de produto (.product-card): fundo branco, borda, sombra, hover.
   ========================================================================== */
.departments-carousel .department-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--ap-r-btn, 8px);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding-bottom: 0.6rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.departments-carousel .department-card:hover {
    border-color: #ddd;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}
.departments-carousel .department-image-container {
    width: 100% !important;
    height: 190px !important;
    background: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
}
.departments-carousel .department-card:hover .department-image-container {
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}
.departments-carousel .department-name {
    display: block;
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 0.5rem 0.5rem 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
@media (max-width: 768px) {
    .departments-carousel .department-image-container { height: 110px !important; }
    .departments-carousel .department-name {
        font-size: 10px;
        padding: 0.4rem 0.35rem 0 !important;
    }
}

/* Marcas parceiras — os logos ficavam num item de 200px de altura, sobrando
   uma faixa branca enorme acima e abaixo. Altura enxuta no padrão do site. */
.brands-section { padding: clamp(0.75rem, 1.5vw, 1.25rem) clamp(1rem, 2vw, 2rem); }
.brand-item { height: 92px; padding: 0.5rem; }
@media (max-width: 1024px) { .brand-item { height: 80px; } }
@media (max-width: 640px) { .brand-item { height: 64px; } }
