/* Loja com cara de aplicativo no celular: menu embaixo e janelas que sobem. */

.sz-menu, .sz-folha { --s-papel: var(--mz-papel, #fff); --s-texto: var(--mz-texto, #1b1b1f); --s-apagado: var(--mz-apagado, #5b606b); --s-linha: var(--mz-linha, #dcdee3); --s-cor: var(--mz-cor, var(--sz-cor, #15803a)); --s-sobre: var(--mz-sobre-cor, var(--sz-sobre-cor, #fff)); --s-tinta: var(--mz-tinta, var(--sz-tinta, #15803a)); font-family: Poppins, sans-serif; }
html[data-tema="escuro"] body:not(.mz) :is(.sz-menu, .sz-folha) { --s-papel: #1c1c21; --s-texto: #f4f4f6; --s-apagado: #b3b3bd; --s-linha: #3a3a43; }
.sz-menu { display: none; }
:is(.sz-menu, .sz-folha) svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sz-folha { width: 100%; max-width: 520px; max-height: 86vh; margin: auto auto 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; border: 0; border-radius: 20px 20px 0 0; background: var(--s-papel); color: var(--s-texto); }
.sz-folha::backdrop { background: rgba(0, 0, 0, .5); }
.sz-folha > div { padding: 20px 20px max(20px, env(safe-area-inset-bottom)); }
.sz-folha header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sz-folha h2 { margin: 0; color: var(--s-texto); font-family: inherit; font-size: 20px; font-weight: 600; line-height: 1.3; }
.sz-folha header button { display: grid; width: 44px; height: 44px; margin: -6px -10px -6px 0; padding: 0; place-items: center; border: 0; background: none; color: var(--s-texto); }
.sz-folha ul { margin: 0; padding: 0; list-style: none; }
.sz-folha li a { display: flex; min-height: 50px; align-items: center; border-bottom: 1px solid var(--s-linha); color: var(--s-texto); font-size: 16px; }
.sz-folha li:last-child a { border-bottom: 0; }
.sz-folha form { display: grid; gap: 12px; margin: 12px 0 0; }
.sz-folha input { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--s-linha); border-radius: 12px; background: transparent; color: var(--s-texto); font-size: 16px; }
.sz-botao { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: center; padding: 10px 18px; border: 0; border-radius: 12px; background: var(--s-cor); color: var(--s-sobre) !important; font-size: 16px; font-weight: 600; text-decoration: none !important; }
:is(.sz-folha, .sz-menu) [hidden] { display: none !important; }

.sz-app > div { text-align: center; outline: 0 !important; }
.sz-app img { width: 76px; height: 76px; margin: 4px auto 14px; border-radius: 18px; object-fit: cover; }
.sz-app p { margin: 6px 0 20px; color: var(--s-apagado); font-size: 15px; line-height: 1.5; }
.sz-app ol { display: grid; gap: 12px; margin: 0 0 8px; padding: 16px 16px 16px 36px; border: 1px solid var(--s-linha); border-radius: 14px; text-align: left; font-size: 15px; line-height: 1.5; list-style: decimal; }
.sz-app ol svg { display: inline-block; width: 21px; height: 21px; vertical-align: -4px; color: var(--s-tinta); }
.sz-agora-nao { width: 100%; min-height: 48px; margin-top: 8px; padding: 0; border: 0; background: none; color: var(--s-apagado); font-size: 15px; }

@media (max-width: 991px) {
    body { -webkit-tap-highlight-color: transparent; }
    .sz-menu { position: fixed; right: 0; bottom: 0; left: 0; z-index: 35; display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--s-linha); background: var(--s-papel); }
    .sz-menu > :is(a, button) { position: relative; display: flex; float: none; width: auto; min-width: 0; height: 60px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; margin: 0; padding: 0; border: 0; background: none; color: var(--s-apagado); text-decoration: none; touch-action: manipulation; }
    .sz-menu > :is(a, button):active { color: var(--s-texto); }
    .sz-menu [aria-current] { color: var(--s-tinta); }
    .sz-menu span { width: auto; color: inherit; font-size: 11.5px; font-weight: 500; line-height: 1.2; }
    .sz-menu .shop-bag .counter { position: absolute; top: 5px; right: auto; left: calc(50% + 5px); display: grid; min-width: 19px; width: auto; height: 19px; margin: 0; padding: 0 5px; place-items: center; border-radius: 10px; background: var(--s-cor); color: var(--s-sobre); font-size: 11.5px; font-weight: 600; line-height: 1; }
    /* o rodapé cresce só o que o menu e a barra da sacola ocupam */
    body:has(.sz-menu) .copyright { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    body.mz.mz-com-sacola:has(.sz-menu) .copyright { padding-bottom: calc(138px + env(safe-area-inset-bottom)); }
    body.mz:has(.sz-menu) .mz-barra-sacola { bottom: calc(70px + env(safe-area-inset-bottom)); }
}

@media (max-width: 991px) and (prefers-reduced-motion: no-preference) {
    /* troca de página suave, sem piscar, nos navegadores que já sabem fazer */
    @view-transition { navigation: auto; }
    ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .16s; }
    .sz-folha[open] { animation: sz-sobe .24s ease-out; }
    @keyframes sz-sobe { from { transform: translateY(60%); opacity: .4; } }
}
