
/* Search dropdown */
/* ─────────────────────────────────────────────────────────
   search/style.css — Dropdown de Pesquisa
   Cellebra Festas — versão 1.0
   ───────────────────────────────────────────────────────── */

/* ── Dropdown container ────────────────────────────────── */
.search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.14);
    z-index: 800;
    overflow: hidden;
    max-height: 480px;
    display: flex;
    flex-direction: column;
}

.search-dropdown[hidden] {
    display: none;
}

/* ── Lista de resultados ───────────────────────────────── */
.search-results-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    overflow-y: auto;
    max-height: 420px;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.search-results-list::-webkit-scrollbar { width: 4px; }
.search-results-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

/* ── Item de resultado ─────────────────────────────────── */
.search-item {
    cursor: pointer;
    transition: background .12s;
}

.search-item:hover,
.search-item--active {
    background: #fff8f5;
}

.search-item-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: inherit;
    position: relative;
}

/* ── Imagem ────────────────────────────────────────────── */
.search-item-img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    flex-shrink: 0;
    background: #f5f5f5;
}

.search-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Info do produto ───────────────────────────────────── */
.search-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search-item-name {
    font-size: .88rem;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item-category {
    font-size: .73rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.search-item-price {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.search-price-old {
    font-size: .75rem;
    color: #bbb;
    text-decoration: line-through;
}

.search-price-current {
    font-size: .88rem;
    font-weight: 700;
    color: #D9026D;
}

/* ── Badge no canto ────────────────────────────────────── */
.search-item-badge {
    position: absolute;
    top: 8px;
    right: 14px;
    background: #D9026D;
    color: #fff;
    font-size: .62rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: .3px;
}

/* ── Destaque do termo buscado ─────────────────────────── */
.search-highlight {
    background: #FFF4CC;
    color: #1a1a2e;
    border-radius: 2px;
    font-style: normal;
}

/* ── Estado vazio ──────────────────────────────────────── */
.search-no-results {
    padding: 18px 20px;
    font-size: .85rem;
    color: #888;
    text-align: center;
}

/* ── Loading ───────────────────────────────────────────── */
.search-loading {
    padding: 16px 20px;
    font-size: .85rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #eee;
    border-top-color: #D9026D;
    border-radius: 50%;
    animation: search-spin .7s linear infinite;
    flex-shrink: 0;
}

@keyframes search-spin {
    to { transform: rotate(360deg); }
}

/* ── Footer "ver todos" ────────────────────────────────── */
.search-results-footer {
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.search-see-all {
    display: block;
    padding: 10px 16px;
    font-size: .82rem;
    color: #D9026D;
    text-decoration: none;
    transition: background .15s;
}

.search-see-all:hover {
    background: #FFF0F7;
}

/* ── Responsivo ────────────────────────────────────────── */
@media (max-width: 600px) {
    .search-dropdown {
        border-radius: 0 0 12px 12px;
        max-height: 70vh;
        top: calc(100% + 4px);
    }

    .search-item-img {
        width: 42px;
        height: 42px;
    }

    .search-item-link {
        padding: 10px 12px;
        gap: 10px;
    }

    .search-item-name {
        font-size: .82rem;
    }
}



/* Store banner */
/* ═══════════════════════════════════════════════════════════════
   site-banner.css — Banner superior configurável
   Suporta variantes: .banner--static (padrão) e .banner--marquee
   ═══════════════════════════════════════════════════════════════ */

/* Base — estilos herdados do CSS da home foram mantidos compatíveis.
   As cores são controladas via CSS custom properties que o JS injeta
   com os valores vindos da tabela `site_banners`. */
.banner {
    background: var(--banner-bg, linear-gradient(90deg, #D9026D 0%, #E02078 100%));
    color: var(--banner-fg, #fff);
    padding: clamp(8px, 1.2vw, 12px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner p,
.banner .banner-text {
    font-size: clamp(11px, 1.1vw, 13px);
    color: var(--banner-fg, #fff);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.3;
}

/* Banner clicável */
.banner a.banner-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.banner a.banner-link:hover .banner-text {
    opacity: .9;
}

/* ── Variante: estático ────────────────────────────────────── */
.banner--static { /* comportamento padrão, nada a fazer */ }

/* ── Variante: marquee (letreiro rolando) ──────────────────── */
.banner--marquee {
    padding: clamp(6px, 1vw, 10px) 0;
    white-space: nowrap;
}

.banner--marquee .banner-marquee-track {
    display: inline-flex;
    gap: 80px;
    padding-left: 100%;
    animation: banner-marquee-scroll var(--banner-marquee-speed, 30s) linear infinite;
    will-change: transform;
}

.banner--marquee .banner-marquee-track span {
    font-size: 13px;
    color: var(--banner-fg, #fff);
    font-weight: 500;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

@keyframes banner-marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Pausar animação ao passar mouse (melhora legibilidade) */
.banner--marquee:hover .banner-marquee-track {
    animation-play-state: paused;
}

/* Acessibilidade — respeita "reduzir movimento" do sistema */
@media (prefers-reduced-motion: reduce) {
    .banner--marquee .banner-marquee-track {
        animation: none;
        padding-left: 0;
        justify-content: center;
        width: 100%;
    }
}



/* Storefront shell */
body:not(.body-password) .modal-overlay,
body:not(.body-password) .cart-overlay {
    z-index: 40000;
}

body:not(.body-password) .modal {
    z-index: 40010;
}

body:not(.body-password) .modal-overlay.modal-zindex-top {
    z-index: 40020;
}

body:not(.body-password) .modal.modal-zindex-top {
    z-index: 40030;
}
body:not(.body-password) {
    background-color: #f5f5f5;
    overflow-x: hidden;
    width: 100%;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #E02078 #FFE8F3;
    overflow-x: hidden;
    width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

html::-webkit-scrollbar {
    width: 12px;
}

html::-webkit-scrollbar-track {
    background: #FFE8F3;
}

html::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #D9026D 0%, #E02078 100%);
    border-radius: 999px;
    border: 2px solid #FFE8F3;
}

html::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #B6025B 0%, #E02078 100%);
}

body:not(.body-password) .product-link {
    text-decoration: none;
    color: inherit;
}

body:not(.body-password) .js-notification-cookie-banner {
    background: linear-gradient(90deg, #1a1a2e 0%, #40212F 100%);
    color: #fff;
}

body:not(.body-password) .js-notification-cookie-banner .btn-link {
    color: #F2B705;
    font-weight: 700;
}

body:not(.body-password) .footer-bottom-links {
    display: flex;
    gap: 20px;
}

.banner {
    background: linear-gradient(90deg, #D9026D 0%, #E02078 100%);
    padding: clamp(8px, 1.2vw, 12px);
    text-align: center;
    overflow: hidden;
}

.banner p {
    font-size: clamp(11px, 1.1vw, 13px);
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.3;
}

.whatsapp-button {
    position: fixed;
    bottom: max(10px, env(safe-area-inset-bottom, 10px));
    right: max(10px, env(safe-area-inset-right, 10px));
    width: clamp(50px, 5vw, 70px);
    height: clamp(50px, 5vw, 70px);
    z-index: 9999;
}

.whatsapp-button img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: transform 0.2s;
}

.whatsapp-button img:hover {
    transform: scale(1.1);
}

.header {
    background-color: #fff;
    padding: clamp(10px, 1.2vw, 16px) 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    z-index: 20000;
    overflow: visible;
}

body.template-home .header {
    position: fixed;
    top: var(--home-fixed-banner-height, 38px);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

body.template-home {
    padding-top: 0;
}

body.template-home .banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9001;
}

.js-head-logo-row {
    width: 100%;
}

.js-nav-logo-bar {
    width: 100%;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(12px, 2vw, 20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, 2vw, 30px);
}

.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #FFE8F3;
    color: #D9026D;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.logo {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.logo img {
    height: clamp(50px, 6vw, 80px);
    width: auto;
}

@media (min-width: 769px) {
    .header .logo img {
        height: clamp(44px, 4vw, 52px);
        margin-bottom: -8px;
    }
}

.home-search-container {
    flex: 1 1 auto;
    max-width: min(400px, 100%);
    display: flex;
    align-items: center;
    background-color: #FFE8F3;
    border-radius: 30px;
    padding: clamp(6px, 0.7vw, 10px) clamp(12px, 1.5vw, 18px);
    gap: 8px;
    min-width: 0;
    box-sizing: border-box;
    position: relative;
}

.header .home-search-container--instant {
    z-index: 20020;
}

.header .home-search-container--instant .search-dropdown {
    background: #fff;
    background-color: #fff;
    color: #1a1a2e;
    opacity: 1;
    z-index: 20040;
}

.home-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #666;
    outline: none;
    min-width: 0;
    width: 100%;
    line-height: 1.4;
}

.home-search-input::placeholder {
    color: #C8A3B5;
    font-size: 14px;
}

body:not(.body-password) .header .home-search-container {
    width: auto;
    max-width: min(400px, 100%);
    min-height: 44px;
}

body:not(.body-password) .header .home-search-input,
body:not(.body-password) .header .home-search-input::placeholder {
    font-size: 14px;
    line-height: 1.4;
}

.home-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #D9026D;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.home-search-btn img {
    width: clamp(16px, 1.5vw, 20px);
    height: clamp(16px, 1.5vw, 20px);
    display: block;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.5vw, 30px);
    flex-shrink: 0;
}

.js-utility-col.header-icons {
    justify-content: flex-end;
}

.icon-item {
    display: flex;
    align-items: center;
    gap: clamp(6px, 0.8vw, 10px);
}

.icon-btn {
    width: clamp(34px, 3vw, 40px);
    height: clamp(34px, 3vw, 40px);
    background-color: #D9026D;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    text-decoration: none;
    flex-shrink: 0;
}

.icon-btn img {
    width: clamp(16px, 1.5vw, 20px);
    height: clamp(16px, 1.5vw, 20px);
    margin: 0;
    filter: brightness(0) invert(1);
}

.icon-btn .user-icon-img {
    width: clamp(22px, 2vw, 25px);
    height: clamp(22px, 2vw, 25px);
    fill: #fff;
    stroke: none;
}

.icon-btn svg {
    fill: #fff;
    stroke: #fff;
}

.icon-btn:hover {
    transform: scale(1.1);
    background-color: #B6025B;
}

.icon-text {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    line-height: 1.2;
}

.icon-text a {
    text-decoration: none;
}

.icon-title {
    font-weight: 600;
    color: #1a1a1a;
}

.icon-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.icon-subtitle {
    color: #666;
}

.icon-text .login-link:hover,
.icon-text .signup-link:hover {
    color: #D9026D;
    text-decoration: underline;
    filter: brightness(1.2);
}

.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #F2B705;
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navbar — wrapper visível + faixa interna com scroll horizontal */
.navbar {
    max-width: 1200px;
    margin: clamp(8px, 1.2vw, 16px) auto 0;
    padding: 0 clamp(12px, 2vw, 20px);
    border-top: 1px solid #f0f0f0;
    overflow: visible;
    position: relative;
    z-index: 20010;
}

.navbar-track {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(16px, 3vw, 40px);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    min-height: 42px;
    padding-top: clamp(10px, 1.2vw, 16px);
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
}

.navbar-track::-webkit-scrollbar {
    display: none;
}

.js-head-main.position-sticky,
.js-head-main.position-sticky-md,
.js-head-main.position-relative-md {
    z-index: 1040;
}

.nav-link {
    text-decoration: none;
    color: #1a1a1a;
    font-size: clamp(12px, 1.1vw, 14px);
    font-weight: 500;
    position: relative;
    transition: color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    line-height: 1.2;
}

.nav-link:hover,
.nav-link.active,
.menu-item:hover > .nav-link {
    color: #D9026D;
}

.nav-link.active::after,
.menu-item:hover > .nav-link::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #D9026D;
}

.menu-item {
    position: relative;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    flex-shrink: 0;
}

.menu-item::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: min(980px, calc(100vw - 80px));
    background: white;
    padding: 30px 40px;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 0;
    z-index: 20030;
    max-height: min(70vh, 640px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.navbar:has(.menu-item:hover) .mega-menu,
.navbar:has(.menu-item:focus-within) .mega-menu,
.mega-menu:hover {
    display: block;
}

body:not(.body-password) .header .mega-menu .mega-menu-grid {
    display: block;
    column-count: 4;
    column-gap: 28px;
    width: 100%;
}

body:not(.body-password) .header .mega-menu .mega-menu-cell {
    display: block;
    min-width: 0;
    margin: 0 0 16px;
    break-inside: avoid;
    page-break-inside: avoid;
}

body:not(.body-password) .header .mega-menu .mega-menu-category-group {
    align-self: start;
}

body:not(.body-password) .header .mega-menu .mega-menu-link,
body:not(.body-password) .header .mega-menu .mega-column a {
    display: block;
    width: 100%;
    padding: 8px 10px;
    margin: 0;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    line-height: 1.45;
    white-space: normal;
    border-radius: 8px;
    transition: color 0.2s, background-color 0.2s, transform 0.2s;
}

body:not(.body-password) .header .mega-menu .mega-menu-link--primary {
    color: #1a1a1a;
    font-weight: 700;
}

body:not(.body-password) .header .mega-menu .mega-menu-subcategories {
    margin: 2px 0 4px 10px;
    padding-left: 8px;
    border-left: 1px solid #f0d6e3;
}

body:not(.body-password) .header .mega-menu .mega-menu-link--sub {
    padding: 5px 8px 5px calc(8px + var(--category-indent, 0px));
    color: #666;
    font-size: 13px;
}

.mega-menu-link:hover,
body:not(.body-password) .header .mega-menu .mega-column a:hover {
    color: #D9026D;
    background-color: #FFF0F7;
    transform: translateX(2px);
}

body:not(.body-password) .header .mega-menu .mega-column {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body:not(.body-password) .mega-menu-link[href*="itens-em-destaque"],
body:not(.body-password) .mega-menu-link[href*="novidades"],
body:not(.body-password) .mega-menu-link[href*="mais-vendidos"],
body:not(.body-password) .mega-menu-link[href*="ofertas-especiais"] {
    display: none;
}

@media (max-width: 1024px) {
    .navbar-track {
        justify-content: flex-start;
    }

    .mega-menu {
        left: 20px;
        right: 20px;
        transform: none;
        width: auto;
        max-width: calc(100vw - 40px);
        padding: 24px;
    }

    body:not(.body-password) .header .mega-menu .mega-menu-grid {
        column-count: 2;
    }
}

@media (max-width: 640px) {
    .mega-menu {
        left: 12px;
        right: 12px;
        max-width: calc(100vw - 24px);
        padding: 18px;
    }

    body:not(.body-password) .header .mega-menu .mega-menu-grid {
        column-count: 1;
    }
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    z-index: 30000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(340px, 86vw);
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    z-index: 30010;
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
}

body.mobile-menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.mobile-menu-open .mobile-menu-sidebar {
    transform: translateX(0);
}

body.mobile-menu-open {
    overflow: hidden;
}

.mobile-menu-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: clamp(42px, 7vh, 58px);
    padding: 0 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #D9026D;
    font-weight: 800;
}

.mobile-menu-sidebar__close {
    width: clamp(30px, 5.8vh, 36px);
    height: clamp(30px, 5.8vh, 36px);
    border: 0;
    border-radius: 50%;
    background: #f5f5f5;
    color: #1a1a1a;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.mobile-menu-sidebar__nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(4px, 1vh, 10px) 16px clamp(5px, 1.2vh, 12px);
}

.mobile-menu-link,
.mobile-menu-categories a {
    display: block;
    padding: clamp(4px, 1vh, 9px) 0;
    color: #1a1a1a;
    text-decoration: none;
    font-size: clamp(11px, 1.55vh, 14px);
    font-weight: 700;
    line-height: 1.35;
    border-bottom: 1px solid #f3f3f3;
}

.mobile-menu-link.active,
.mobile-menu-link:hover,
.mobile-menu-categories a:hover {
    color: #D9026D;
}

.mobile-menu-link--section {
    color: #D9026D;
}

.mobile-menu-categories {
    display: block;
    column-count: 2;
    column-gap: 12px;
    padding: 0 0 clamp(2px, 0.6vh, 6px) 10px;
}

.mobile-menu-categories a {
    font-size: clamp(10px, 1.45vh, 12px);
    font-weight: 600;
    color: #555;
    padding: clamp(3px, 0.8vh, 7px) 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-menu-category-group {
    display: inline-block;
    width: 100%;
    min-width: 0;
    margin-bottom: 8px;
    vertical-align: top;
    break-inside: avoid;
    page-break-inside: avoid;
}

.mobile-menu-category-link--primary {
    color: #333 !important;
    font-weight: 700 !important;
}

.mobile-menu-subcategories {
    padding-left: 7px;
    border-left: 1px solid #f0d6e3;
}

.mobile-menu-categories .mobile-menu-category-link--sub {
    padding-left: var(--category-indent, 0px);
    color: #777;
    font-size: clamp(9px, 1.35vh, 11px);
    font-weight: 500;
}

.mobile-menu-sidebar__brand {
    flex-shrink: 0;
    padding: clamp(5px, 1vh, 10px) 16px clamp(6px, 1.2vh, 12px);
    border-top: 1px solid #f0f0f0;
    text-align: left;
}

.mobile-menu-sidebar__brand a {
    display: inline-flex;
    align-items: center;
}

.mobile-menu-sidebar__brand img {
    display: block;
    height: clamp(28px, 5.6vh, 46px);
    width: auto;
}

@media (max-height: 700px) {
    .mobile-menu-sidebar__header {
        min-height: 40px;
    }

    .mobile-menu-sidebar__nav {
        padding-top: 3px;
        padding-bottom: 4px;
    }

    .mobile-menu-link,
    .mobile-menu-categories a {
        padding-top: 3px;
        padding-bottom: 3px;
        line-height: 1.12;
    }

    .mobile-menu-sidebar__brand {
        padding-top: 4px;
        padding-bottom: 5px;
    }

    .mobile-menu-sidebar__brand img {
        height: 28px;
    }
}

@media (max-height: 560px) {
    .mobile-menu-sidebar__header {
        min-height: 34px;
        font-size: 13px;
    }

    .mobile-menu-sidebar__close {
        width: 28px;
        height: 28px;
        font-size: 22px;
    }

    .mobile-menu-link,
    .mobile-menu-categories a {
        padding-top: 2px;
        padding-bottom: 2px;
        font-size: 10px;
        line-height: 1.08;
    }

    .mobile-menu-sidebar__brand {
        padding-top: 3px;
        padding-bottom: 4px;
    }

    .mobile-menu-sidebar__brand img {
        height: 24px;
    }
}

.footer {
    background-color: #fff;
    padding: clamp(30px, 6vw, 80px) 0 clamp(20px, 3vw, 40px);
    border-top: 1px solid #f0f0f0;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(12px, 2vw, 20px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: clamp(24px, 3.5vw, 40px);
    margin-bottom: clamp(30px, 5vw, 60px);
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo img {
    width: min(260px, 100%);
    height: auto;
}

.footer-about {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 300px;
}

.footer-socials a {
    text-decoration: none;
    margin-right: 15px;
}

.footer-socials img {
    width: 20px;
    height: 20px;
}

.footer-links h3 {
    font-size: clamp(15px, 1.4vw, 18px);
    font-weight: 700;
    margin-bottom: clamp(16px, 2vw, 25px);
    color: #1a1a1a;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #D9026D;
}

.footer-payments {
    padding-top: clamp(8px, 1.4vw, 14px);
    padding-bottom: clamp(18px, 2.4vw, 28px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px 12px;
}

.footer-payments-title {
    margin: 0;
    color: #666;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    flex: 0 0 auto;
}

.footer-payment-methods {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.footer-payment-methods img,
.footer-payment-methods svg {
    display: block;
    width: auto;
    max-width: 46px;
    max-height: 18px;
    object-fit: contain;
    margin: 0;
}

.footer-bottom {
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 13px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: #D9026D;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-payments {
        align-items: center;
    }

    .footer-payment-methods {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 12px;
    }

    .whatsapp-button {
        width: 66px;
        height: 66px;
        bottom: max(14px, env(safe-area-inset-bottom, 14px));
        right: max(14px, env(safe-area-inset-right, 14px));
    }

    .mobile-menu-toggle {
        display: inline-flex;
        order: 0;
    }

    /* Logo centralizada */
    .logo-container-col {
        text-align: center;
    }

    .header .logo {
        order: 1;
    }

    .header .logo img {
        height: clamp(38px, 10vw, 46px);
        width: auto;
        margin-bottom: -6px;
    }

    .header .logo::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: -5px;
        width: 100%;
        height: 1px;
        background: #e6e6e6;
        pointer-events: none;
    }

    .header-icons {
        order: 2;
        margin-left: auto;
        gap: 8px;
    }

    /* Ocultar textos dos ícones no mobile */
    .icon-text {
        display: none;
    }

    .home-search-container {
        order: 3;
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        margin-top: 4px;
    }

    /* Navbar: scroll horizontal */
    .navbar {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .navbar-track {
        gap: 14px;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .mega-menu {
        left: 12px;
        right: 12px;
        transform: none;
        width: auto;
        max-width: calc(100vw - 24px);
        padding: 18px;
    }

    /* Seasonal = horizontal scroll */
    body.template-home .seasonal-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding-top: 8px;
        padding-bottom: 18px;
    }

    body.template-home .seasonal-grid::-webkit-scrollbar {
        display: none;
    }

    body.template-home .seasonal-grid > * {
        flex: 0 0 auto;
        width: 132px;
        scroll-snap-align: start;
    }

    /* Benefits = horizontal scroll */
    body.template-home .benefits-grid {
        display: flex;
        gap: 24px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding-bottom: 12px;
    }

    body.template-home .benefits-grid::-webkit-scrollbar {
        display: none;
    }

    body.template-home .benefits-grid > * {
        flex: 0 0 100%;
        width: 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-payments {
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
    }

    .footer-payment-methods {
        justify-content: flex-start;
        width: 100%;
        gap: 6px;
    }

    .footer-payment-methods img,
    .footer-payment-methods svg {
        max-width: 42px;
        max-height: 17px;
    }

    .footer-bottom {
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
        text-align: left;
    }

    .footer-bottom p {
        flex: 1 1 auto;
        margin: 0;
        text-align: left;
    }

    .footer-bottom-links {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
        flex: 0 0 auto;
        max-width: 45%;
        text-align: right;
    }

    .footer-bottom-links a {
        line-height: 1.35;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 480px) {
    body.template-home .seasonal-icon {
        width: 96px;
        height: 96px;
    }

    body.template-home .seasonal-icon img {
        width: 74%;
        max-width: 74%;
        height: auto;
    }

    body.template-home .seasonal-label {
        font-size: 11px;
    }
}



/* Product cards */
/* ── Esconde a notificação padrão de "adicionado ao carrinho" ──
   O feedback do carrinho usa o toast do bundle da loja. ─ */
body:not(.body-password) .notification.notification-primary.notification-cart,
body:not(.body-password) .js-alert-added-to-cart {
    display: none;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ── Wrapper do card ─────────────────────────────────────── */
.js-item-product .js-item-info-container.item,
.js-item-info-container.item {
    background-color: #ffffff;
    border-radius: 24px;
    overflow: visible; /* mantém a sombra visível para fora do card */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    padding: 5px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    height: calc(100% - 16px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Nenhum elemento interno pode ultrapassar a largura do card */
.js-item-info-container.item * {
    max-width: 100%;
}

.js-item-product .js-item-info-container.item:hover,
.js-item-info-container.item:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
    transform: translateY(-3px);
}

/* ── Área de imagem ──────────────────────────────────────── */
.js-item-info-container .item-image {
    border-radius: 18px;
    overflow: hidden;
    background-color: #f0f0f0;
    position: relative;
    width: 100%;
}

/* Container interno: padding-bottom 100% = quadrado */
body:not(.body-password) .js-item-info-container .item-image .js-item-image-padding {
    padding-bottom: 100%;
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
}

/* Imagem cobre o quadrado sem distorcer */
body:not(.body-password) .js-item-info-container .item-image img.img-absolute {
    height: 100%;
    object-fit: cover;
    object-position: center;
    left: 0;
    transform: none;
    -webkit-transform: none;
    top: 0;
    transition: transform 0.3s ease;
}

/* Zoom discreto na imagem principal, somente em dispositivos com mouse. */
@media (hover: hover) and (pointer: fine) {
    body:not(.body-password) .js-item-info-container .item-image:not(.item-image-slider):hover img.img-absolute,
    body:not(.body-password) .js-item-info-container .item-image-slider:hover .swiper-slide-active img.img-absolute {
        transform: scale(1.025);
        -webkit-transform: scale(1.025);
    }
}

/* ── Esconde TODOS os elementos que causam botão duplo ────── */
/* Formulário oculto de variações (quickshop interno) */
body:not(.body-password) .js-item-info-container .js-item-variants {
    display: none;
}
/* Placeholder do botão (botão fantasma de loading) */
body:not(.body-password) .js-item-info-container .js-addtocart-placeholder {
    display: none;
}

/* ── Badges / Etiquetas ──────────────────────────────────── */
.js-item-info-container .item-image .labels,
.js-item-info-container .item-image .js-labels-floating-group {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
}

body:not(.body-password) .js-item-info-container .label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
    white-space: nowrap;
}

body:not(.body-password) .js-item-info-container .label-accent {
    background-color: #F2B705;
    color: #000000;
}

body:not(.body-password) .js-item-info-container .label-default {
    background-color: rgba(0, 0, 0, 0.55);
    color: #ffffff;
}

/* ── Descrição (nome + categoria) ───────────────────────── */
body:not(.body-password) .js-item-info-container .item-description {
    padding: 14px 6px 8px 6px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
}

body:not(.body-password) .js-item-info-container .item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Nome do produto */
body:not(.body-password) .js-item-info-container .item-name,
body:not(.body-password) .js-item-info-container .js-item-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.25;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

/* Categoria do produto */
body:not(.body-password) .js-item-info-container .item-category {
    font-size: 14px;
    color: #B56D91;
    font-weight: 400;
    margin: 0 0 8px 0;
    padding: 0;
    line-height: 1.3;
    text-align: left;
}

/* ── Rodapé do card: preço esquerda + botão direita ─────── */
body:not(.body-password) .js-item-info-container .item-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Bloco de preço — pode encolher sem empurrar o botão para fora */
body:not(.body-password) .js-item-info-container .item-card-footer__price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
}

body:not(.body-password) .js-item-info-container .item-card-footer .item-price,
body:not(.body-password) .js-item-info-container .item-card-footer .js-price-display {
    font-size: 22px;
    font-weight: 700;
    color: #D9026D;
    line-height: 1;
    display: block;
}

body:not(.body-password) .js-item-info-container .item-card-footer .price-compare {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
    opacity: 1;
    margin-left: 0;
    display: block;
}

/* ── Botão "Add" (pill amarelo com ícone) ────────────────── */
.js-item-info-container .item-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* form vira transparente para não criar bloco que estica o botão */
body:not(.body-password) .js-item-info-container .item-actions form {
    margin: 0;
    padding: 0;
    display: contents;
}

/* O botão .item-add-btn — aplica estilo pill */
body:not(.body-password) .js-item-info-container .item-actions .item-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #F2B705;
    color: #000000;
    border: none;
    border-radius: 25px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    width: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    line-height: 1;
    -webkit-appearance: none;
    appearance: none;
    vertical-align: middle;
}

body:not(.body-password) .js-item-info-container .item-actions .item-add-btn:hover {
    transform: scale(1.05);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(242, 183, 5, 0.35);
}

body:not(.body-password) .js-item-info-container .item-actions .item-add-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ── Slider / carrossel ──────────────────────────────────── */
.js-item-slide .js-item-info-container.item {
    margin-bottom: 0;
    height: auto;
}

/* ── Home product card (.product-card no snipplet) ───────── */
.product-card {
    background-color: #ffffff;
    border-radius: 24px;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    padding: 12px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    box-sizing: border-box;
}

.product-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
    transform: translateY(-3px);
}

body:not(.body-password) .product-card .product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card .product-image {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #f0f0f0;
    aspect-ratio: 1 / 1;
    position: relative;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.product-card .product-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.25;
    margin: 14px 0 4px;
    padding: 0 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card .product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
}

.product-card .product-price {
    font-size: 22px;
    font-weight: 700;
    color: #D9026D;
    line-height: 1;
}

.product-card .add-to-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #F2B705;
    color: #000000;
    border: none;
    border-radius: 25px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1;
}

.product-card .add-to-cart:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(242, 183, 5, 0.35);
}

/* ── Botão "Add" mais compacto em grids com colunas menores (category/search) ── */
body.template-category .js-item-info-container .item-actions .item-add-btn,
body.template-search .js-item-info-container .item-actions .item-add-btn,
body.template-category .product-card .add-to-cart,
body.template-search .product-card .add-to-cart {
    padding: 10px 8px;
}

/* Garante que o footer (preço + botão) mantenha preço à esquerda e botão à direita
   também nas páginas de categoria/busca, igual à home */
body.template-category .js-item-info-container .item-card-footer,
body.template-search .js-item-info-container .item-card-footer,
body.template-category .product-card .product-price-row,
body.template-search .product-card .product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

/* ── Responsivo ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .js-item-info-container.item,
    .product-card {
        border-radius: 18px;
        padding: 12px;
    }

    .js-item-info-container .item-image .js-item-image-padding,
    .js-item-info-container .item-image {
        border-radius: 12px;
    }

    .product-card .product-image {
        border-radius: 12px;
    }

    body:not(.body-password) .js-item-info-container .item-name,
    body:not(.body-password) .js-item-info-container .js-item-name,
    body:not(.body-password) .product-card .product-name {
        font-size: 14px;
    }

    body:not(.body-password) .js-item-info-container .item-card-footer .item-price,
    body:not(.body-password) .js-item-info-container .item-card-footer .js-price-display,
    body:not(.body-password) .product-card .product-price {
        font-size: 18px;
    }

    body:not(.body-password) .js-item-info-container .item-actions .item-add-btn,
    body:not(.body-password) .product-card .add-to-cart {
        font-size: 12px;
        padding: 8px 12px;
    }

    body:is(.template-category, .template-search) .js-item-info-container.item {
        height: 100%;
        margin-bottom: 0;
        border-radius: 16px;
        padding: 8px;
    }

    body:is(.template-category, .template-search) .js-item-info-container .item-description {
        padding: 11px 3px 7px;
    }

    body:is(.template-category, .template-search) .js-item-info-container .item-category {
        display: none;
    }

    body:is(.template-category, .template-search) .js-item-info-container .item-card-footer {
        gap: 6px;
        padding-top: 6px;
    }

    body:is(.template-category, .template-search) .js-item-info-container .item-actions .item-add-btn {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    body:is(.template-category, .template-search) .js-item-info-container.item {
        padding: 8px;
        border-radius: 16px;
    }

    body:is(.template-category, .template-search) .js-item-info-container .item-name,
    body:is(.template-category, .template-search) .js-item-info-container .js-item-name {
        font-size: 14px;
    }

    body:is(.template-category, .template-search) .js-item-info-container .item-card-footer .item-price,
    body:is(.template-category, .template-search) .js-item-info-container .item-card-footer .js-price-display {
        font-size: 18px;
    }
}

/* Cart feedback */
.simple-cart-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    z-index: 99999;
    max-width: calc(100vw - 32px);
    padding: 12px 22px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    background: #1a1a1a;
    border-radius: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.simple-cart-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
    .simple-cart-toast {
        bottom: 16px;
        padding: 11px 18px;
        white-space: normal;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .simple-cart-toast {
        transition: none;
    }
}
