/* ARQUIVO: Tastti/loja/css/varejo_moderno.css */

/* Fonte Inter (clean estilo iFood / Delivery Much) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

html {
    background-color: var(--bg-pagina);
    overscroll-behavior-y: contain;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    letter-spacing: -0.005em;
    -webkit-font-smoothing: antialiased;
    background-color: var(--bg-pagina) !important;
    color: #1e293b;
    overscroll-behavior-y: contain;
}

/* Loader Inicial */
#main-content { opacity: 0; transition: opacity 0.5s ease-in; }
.loaded #main-content { opacity: 1; }

/* Scroll de Categorias Invisível */
.category-scroll::-webkit-scrollbar { display: none; }
.category-scroll { 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
    
    /* Permite rolagem suave e toque nativo no celular */
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    
    /* Garante que o conteúdo não quebre linha */
    display: flex;
    flex-wrap: nowrap;
}

/* Ajuste nos botões para a sombra não cortar */
.btn-categoria {
    flex-shrink: 0; /* Impede que o botão encolha */
    white-space: nowrap; /* Texto sempre em uma linha */
    
    /* Melhoria visual */
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #f1f5f9;
}
.btn-categoria.active {
    background-color: var(--cor-tema);
    color: white;
    border-color: var(--cor-tema);
    box-shadow: 0 4px 12px -2px rgba(var(--cor-tema-rgb), 0.3);
    transform: scale(1.05);
}

/* Card de Produto */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
}
.product-card:active { transform: scale(0.98); }

.image-container img {
    transition: transform 0.6s ease;
}
.product-card:hover .image-container img {
    transform: scale(1.05);
}

/* Botão de Adicionar (+) */
.btn-add {
    background: var(--cor-tema);
    box-shadow: 0 4px 12px rgba(var(--cor-tema-rgb), 0.2);
    transition: all 0.2s ease;
}
.btn-add:active { transform: translateY(2px); box-shadow: none; }

/* Barra do Carrinho (Checkout) */
.cart-bar {
    transform: translateY(150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}
.cart-bar.active { transform: translateY(0); }

/* Badge do Carrinho */
.cart-badge {
    background-color: var(--cor-tema);
    color: white;
}

/* Inputs de Pesquisa com cor do tema no foco */
.input-search:focus {
    border-color: var(--cor-tema);
    box-shadow: 0 0 0 4px rgba(var(--cor-tema-rgb), 0.1);
}

/* Modal do Carrinho (Estilo Drawer) */
.modal-drawer-bg {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}
.modal-drawer {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-drawer.open {
    transform: translateY(0);
}

/* =========================================
   REDESIGN — iFood / Delivery Much style
   ========================================= */

/* Banner removido */
.store-info-card {
    position: relative;
    margin: 0;
    background: #fff;
    border-radius: 0 0 24px 24px;
    padding: 20px 20px 6px;
    box-shadow:
        0 10px 28px -14px rgba(15, 23, 42, 0.14),
        0 2px 8px -2px rgba(15, 23, 42, 0.04);
    border: none;
    z-index: 2;
}

/* Topo: Logo + Identidade + Nota */
.store-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}
.store-logo {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 16px -6px rgba(var(--cor-tema-rgb), 0.4), 0 0 0 1px rgba(15,23,42,0.06);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    padding: 2px;
}
.store-logo:empty,
.store-logo:not(:has(img)) {
    background: var(--cor-tema);
}
.store-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 11px; }

.store-id {
    flex: 1;
    min-width: 0;
}
.store-name {
    font-size: 1.1rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.15;
    letter-spacing: -0.015em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.store-subtitulo {
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    margin-top: 4px;
    line-height: 1.25;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.store-subtitulo .sep { color: #cbd5e1; }
.status-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: 12px;
}
.status-inline.open { color: #15803d; }
.status-inline.closed { color: #b91c1c; }
.status-inline .pulse-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: pulseDot 1.6s infinite;
}

/* Nota com estrela à direita */
.store-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    align-self: flex-start;
    padding-top: 2px;
}
.store-rating i { color: #f59e0b; font-size: 14px; }
.store-rating #store-nota {
    color: #f59e0b;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: -0.01em;
}
.store-rating .rating-count {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    margin-left: 2px;
}

/* Badge status — inline ao lado do nome */
.store-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.store-name-row .store-name {
    min-width: 0;
    flex: 0 1 auto;
}
.store-badge-status {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 9px; font-weight: 900;
    padding: 3px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex-shrink: 0;
    line-height: 1;
}
.store-badge-status.open { background: #dcfce7; color: #15803d; }
.store-badge-status.closed { background: #fee2e2; color: #b91c1c; }

/* Grid 3 colunas: Entrega | Retirada | Mínimo */
.store-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 12px 0 10px;
}
.store-grid-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 6px;
    position: relative;
    text-align: center;
}
.store-grid-col + .store-grid-col::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: #f1f5f9;
}
.store-grid-col i {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 2px;
}
.store-grid-col .valor {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    line-height: 1.2;
    white-space: nowrap;
}
.store-grid-col .valor .sep {
    color: #cbd5e1;
    margin: 0 2px;
    font-weight: 500;
}
.store-grid-col .valor .destaque {
    font-weight: 900;
    color: #0f172a;
}
.store-grid-col .valor .text-green-600 {
    color: #16a34a;
}
.store-badge-status .pulse-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: pulseDot 1.6s infinite;
}
@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.55); }
    70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* Search */
.search-wrap {
    background: var(--bg-pagina);
    padding: 18px 16px 4px;
}
.search-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    outline: none;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04);
    transition: all 0.2s ease;
}
.search-input::placeholder { color: #94a3b8; font-weight: 500; }
.search-input:focus {
    border-color: var(--cor-tema);
    box-shadow: 0 0 0 4px rgba(var(--cor-tema-rgb), 0.12);
}

/* Barra de categorias — sticky no topo ao scrollar */
.categorias-sticky {
    position: sticky;
    top: 62px;
    z-index: 30;
    background: var(--bg-pagina);
    padding: 6px 0 10px;
    margin-top: 0;
}
.categorias-sticky::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
    background: linear-gradient(180deg, var(--bg-pagina) 0%, transparent 100%);
    pointer-events: none;
}
.categorias-sticky .category-scroll {
    padding: 4px 16px 6px;
    gap: 6px;
}
.btn-categoria {
    flex-shrink: 0;
    white-space: nowrap;
    background: transparent;
    color: #64748b;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    border: none;
    box-shadow: none;
    transition: color 0.18s ease, background 0.18s ease;
    display: inline-flex; align-items: center;
    line-height: 1;
}
.btn-categoria:hover { color: #0f172a; }
.btn-categoria.active {
    background: var(--cor-tema);
    color: var(--cor-botao-texto, #fff);
    font-weight: 800;
    box-shadow: none;
    transform: none;
}

/* Section heading */
.section-heading {
    display: flex; align-items: center; gap: 8px;
    font-size: 18px; font-weight: 900;
    color: #0f172a;
    margin: 8px 0 14px;
    letter-spacing: -0.01em;
}
.section-heading .accent {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--cor-tema);
    animation: pulseAccent 1.8s infinite;
}
@keyframes pulseAccent {
    0%,100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Card de Produto — flat (iFood/DM style) */
.product-card {
    background: #fff;
    border-radius: 0;
    padding: 14px 4px;
    display: flex;
    gap: 14px;
    align-items: stretch;
    position: relative;
    overflow: hidden;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    box-shadow: none;
    transition: background 0.15s ease;
}
.product-card:hover { background: #fafbfc; }
.product-card:active { background: #f5f7fa; }

.product-card .image-container {
    width: 84px; height: 84px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8fafc;
    position: relative;
}
.product-card .image-container img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.product-card .body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 2px 0; }
.product-card .nome {
    font-size: 14px; font-weight: 800; color: #0f172a;
    line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
.product-card .desc {
    font-size: 12px; color: #64748b; font-weight: 500;
    line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}
.product-card .preco-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-card .preco-atual { color: var(--cor-tema); font-weight: 900; font-size: 16px; letter-spacing: -0.01em; }
.product-card .preco-antigo { color: #94a3b8; font-size: 11px; font-weight: 700; text-decoration: line-through; margin-right: 8px; }

.product-card .btn-add {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--cor-tema);
    color: #fff !important;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 14px -4px rgba(var(--cor-tema-rgb), 0.5);
    border: none; cursor: pointer;
    transition: all 0.18s ease;
}
.product-card .btn-add svg,
.product-card .btn-add i { color: #fff !important; stroke: #fff !important; }
.product-card .btn-add:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -4px rgba(var(--cor-tema-rgb), 0.6); }
.product-card .btn-add:active { transform: translateY(1px); box-shadow: none; }

/* Tag de promoção — pílula discreta no canto superior */
.tag-faixa {
    position: absolute;
    top: 6px; left: 6px;
    transform: none;
    width: auto;
    text-align: center;
    padding: 3px 7px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 6px -1px rgba(0,0,0,0.18);
    z-index: 5;
}
.tag-faixa.oferta { background: #dc2626; }
.tag-faixa.novo { background: #2563eb; }
.tag-faixa.top { background: #d97706; }
.tag-faixa.tema { background: var(--cor-tema); }

.tag-promo-foto {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    text-align: center;
    padding: 3px;
    letter-spacing: 0.1em;
}

/* ============================================
   Cart bar fino, full-width premium (estilo DM)
   Fica ACIMA da bottom-nav
   ============================================ */
.cart-bar {
    position: fixed;
    left: 0; right: 0;
    bottom: calc(64px + env(safe-area-inset-bottom));
    z-index: 45;
    transform: translateY(120%);
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    pointer-events: none;
}
.cart-bar.active { transform: translateY(0); pointer-events: auto; }
.cart-bar-inner {
    background: var(--cor-tema);
    color: var(--cor-botao-texto, #fff);
    padding: 12px 18px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 -6px 18px -8px rgba(15,23,42,0.18);
    transition: filter 0.18s ease;
}
.cart-bar-inner:active { filter: brightness(0.95); }
.cart-bar-left {
    display: flex; align-items: center; gap: 10px;
    min-width: 0;
}
.cart-badge {
    min-width: 22px; height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.22);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    border: none;
}
.cart-bar-label {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.005em;
}
.cart-bar-right {
    display: inline-flex; align-items: center; gap: 8px;
    white-space: nowrap;
}
.cart-bar-total-v {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}
.cart-bar-right svg, .cart-bar-right i {
    color: #fff !important; stroke: #fff !important;
}

/* ============================================
   Bottom navigation (Início / Busca / Conta)
   ============================================ */
.bottom-nav {
    position: fixed;
    left: 0; right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    background: #fff;
    border-top: 1px solid #eef2f6;
    padding: 6px 4px env(safe-area-inset-bottom);
    height: calc(64px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 18px -10px rgba(15,23,42,0.10);
}
.bottom-nav-item {
    position: relative;
    flex: 1;
    background: transparent;
    border: none;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 3px;
    padding: 6px 2px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s ease;
    letter-spacing: -0.005em;
}
.bottom-nav-item svg { stroke: currentColor; }
.bottom-nav-item:active { transform: scale(0.96); }
.bottom-nav-item.active { color: var(--cor-tema); font-weight: 700; }
.bottom-nav-dot {
    position: absolute;
    top: 8px;
    right: calc(50% - 16px);
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #fff;
}

/* Animação dos cards */
.fade-in-up { animation: fadeInUp 0.5s ease-out forwards; opacity: 0; transform: translateY(20px); }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* Scrollbar do checkout */
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background-color: #e2e8f0; border-radius: 4px; }

/* ==========================================================
   ADIÇÕES UX (skeleton, badges auto, carrossel, filtros, login)
   ========================================================== */

/* Sticky busca + categorias junto */
.search-categorias-wrap {
    position: sticky;
    top: 62px;
    z-index: 35;
    background: var(--bg-pagina);
}
.search-categorias-wrap.scrolled {
    box-shadow: 0 8px 24px -16px rgba(15,23,42,0.18);
}
.search-categorias-wrap.scrolled .search-wrap { padding-top: 10px; padding-bottom: 4px; }

/* Histórico de pedidos com scroll (~3-4 cards visíveis) */
.historico-scroll {
    max-height: 380px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 4px;
    /* fade suave no final pra dar dica visual de scroll */
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 90%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 90%, transparent 100%);
}

/* Linha categorias + ícone de busca (estilo DM) */
.categorias-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.categorias-row .category-scroll {
    flex: 1;
    min-width: 0;
    padding: 4px 0 6px !important;
}
.btn-busca-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: transparent;
    border: none;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease;
    cursor: pointer;
    margin-right: 2px;
}
.btn-busca-icon:hover {
    color: var(--cor-tema);
    background: #f1f5f9;
}
.btn-busca-icon:active { transform: scale(0.94); }

/* Overlay de busca fullscreen */
.busca-overlay {
    position: fixed;
    inset: 0;
    z-index: 95;
    background: #fff;
    display: flex;
    flex-direction: column;
    animation: buscaOverlayIn 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.busca-overlay.hidden { display: none; }
@keyframes buscaOverlayIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.busca-overlay-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: max(env(safe-area-inset-top), 12px) 12px 12px;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}
.busca-overlay-back {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}
.busca-overlay-back:active { background: #e2e8f0; }
.busca-overlay-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f5f9;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 10px 14px;
    transition: all 0.15s;
}
.busca-overlay-field:focus-within {
    background: #fff;
    border-color: var(--cor-tema);
    box-shadow: 0 0 0 4px rgba(var(--cor-tema-rgb), 0.1);
}
.busca-overlay-field input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    min-width: 0;
}
.busca-overlay-field input::placeholder { color: #94a3b8; font-weight: 500; }
#busca-overlay-limpar {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #cbd5e1;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.busca-overlay-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-pagina);
}
.busca-overlay-empty {
    padding: 60px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Card de resultado compacto */
.busca-result-card {
    display: flex;
    gap: 12px;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    padding: 10px;
    align-items: center;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.busca-result-card:active { transform: scale(0.98); }
.busca-result-card .img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background: #f1f5f9 center/cover no-repeat;
    flex-shrink: 0;
}
.busca-result-card .info { flex: 1; min-width: 0; }
.busca-result-card .nome {
    font-weight: 800;
    font-size: 13px;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.busca-result-card .desc {
    font-size: 11px;
    color: #64748b;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.busca-result-card .preco {
    font-weight: 800;
    font-size: 13px;
    color: var(--cor-tema);
}
.busca-result-card .add {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--cor-tema);
    color: var(--cor-botao-texto);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px -2px rgba(var(--cor-tema-rgb), 0.3);
}

/* Skeleton loader */
.skeleton-card {
    background: #fff;
    border-radius: 20px;
    padding: 14px;
    display: flex; gap: 14px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}
.skeleton-card .sk-img {
    width: 104px; height: 104px;
    border-radius: 16px;
    flex-shrink: 0;
}
.skeleton-card .sk-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.skeleton-card .sk-line { height: 12px; border-radius: 6px; }
.skeleton-card .sk-line.w-70 { width: 70%; }
.skeleton-card .sk-line.w-90 { width: 90%; }
.skeleton-card .sk-line.w-40 { width: 40%; height: 18px; margin-top: auto; }
.sk-shimmer {
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Badge automática (%off, esgotado, mais pedido) — pequena e plana */
.badge-corner {
    position: absolute;
    top: 6px; left: 6px;
    z-index: 6;
    display: inline-flex; align-items: center; gap: 3px;
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 9px; font-weight: 900;
    letter-spacing: 0.04em;
    color: #fff;
    box-shadow: 0 2px 6px -1px rgba(0,0,0,0.18);
}
.badge-corner.discount { background: #dc2626; }
.badge-corner.top      { background: #d97706; }
.badge-corner.new      { background: #2563eb; }

/* Estado esgotado */
.product-card.sold-out { opacity: 0.55; filter: grayscale(0.6); pointer-events: none; }
.product-card.sold-out .btn-add { background: #94a3b8 !important; box-shadow: none !important; }
.sold-out-overlay {
    position: absolute; inset: 0;
    background: rgba(15,23,42,0.45);
    color: #fff; font-weight: 900; font-size: 11px;
    letter-spacing: 0.1em; text-transform: uppercase;
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px;
    z-index: 5;
}

/* Carrossel horizontal de destaques */
.destaques-wrap { margin: 4px 0 18px; }
.destaques-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 16px 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.destaques-scroll::-webkit-scrollbar { display: none; }
.destaque-card {
    flex-shrink: 0;
    width: 160px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 8px -2px rgba(15,23,42,0.06);
    scroll-snap-align: start;
    cursor: pointer;
    position: relative;
    transition: transform 0.18s ease;
}
.destaque-card:active { transform: scale(0.97); }
.destaque-card .img {
    width: 100%; height: 110px;
    background: #f1f5f9;
    background-size: cover; background-position: center;
    position: relative;
}
.destaque-card .body { padding: 10px 12px 12px; }
.destaque-card .nome {
    font-size: 12.5px; font-weight: 800; color: #0f172a;
    line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 32px;
}
.destaque-card .preco-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.destaque-card .preco { color: var(--cor-tema); font-weight: 900; font-size: 13.5px; }
.destaque-card .btn-mini {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--cor-tema);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    border: none; cursor: pointer;
}

/* Filtros rápidos (chips menores acima das categorias) */
.filtros-rapidos {
    display: flex; gap: 8px;
    overflow-x: auto;
    padding: 8px 16px 4px;
    scrollbar-width: none;
}
.filtros-rapidos::-webkit-scrollbar { display: none; }
.chip-filtro {
    flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 5px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 11px; font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.16s ease;
}
.chip-filtro i { font-size: 11px; color: #94a3b8; }
.chip-filtro:hover { border-color: #cbd5e1; }
.chip-filtro.active {
    background: var(--cor-tema);
    color: #fff;
    border-color: var(--cor-tema);
}
.chip-filtro.active i { color: #fff; }

/* Lazy fade-in nas imagens */
img.lazy-img { opacity: 0; transition: opacity 0.4s ease; }
img.lazy-img.loaded { opacity: 1; }

/* Botão de login/perfil no header */
/* Header actions container */
.header-actions {
    position: absolute;
    top: 16px; right: 16px;
    z-index: 50;
    display: flex; gap: 8px; align-items: center;
}

.btn-perfil {
    position: relative;
    width: 42px; height: 42px;
    background: #fff;
    border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #0f172a;
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 4px 14px -4px rgba(15,23,42,0.18);
    cursor: pointer;
    transition: transform 0.15s ease;
}
.btn-perfil:hover { transform: scale(1.04); }
.btn-perfil:active { transform: scale(0.94); }
.btn-perfil .dot {
    position: absolute; top: 6px; right: 6px;
    width: 8px; height: 8px; border-radius: 50%;
    background: #22c55e; border: 2px solid #fff;
}

/* Botões de ação na store card (Informações, Compartilhar) */
.store-action-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 10px;
    font-size: 10px; font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.store-action-btn:hover { background: #e2e8f0; color: #334155; }
.store-action-btn:active { transform: scale(0.95); }

/* Modal de avaliação (estrelas) */
.rating-stars { display: flex; gap: 6px; justify-content: center; margin: 16px 0; }
.rating-stars i { font-size: 32px; color: #e2e8f0; cursor: pointer; transition: color 0.15s, transform 0.15s; }
.rating-stars i:hover { transform: scale(1.15); }
.rating-stars i.active { color: #f59e0b; }

/* Reviews list */
.review-item {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 8px;
}
.review-item .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.review-item .nome { font-size: 12px; font-weight: 800; color: #0f172a; }
.review-item .data { font-size: 10px; color: #94a3b8; font-weight: 600; }
.review-item .stars { color: #f59e0b; font-size: 11px; }
.review-item .texto { font-size: 12px; color: #475569; line-height: 1.4; }

/* =========================================
   TABS: Cardápio | Informações | Avaliações
   ========================================= */
.store-tabs-sticky {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--bg-pagina);
    padding: 10px 16px 6px;
}
.store-tabs {
    display: flex;
    gap: 4px;
    padding: 5px;
    margin: 0;
    background: #f1f5f9;
    border-radius: 14px;
}
.store-tab {
    flex: 1;
    padding: 9px 12px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}
.store-tab:hover { color: #334155; }
.store-tab.active {
    background: #fff;
    color: var(--cor-tema);
    box-shadow: 0 2px 6px -1px rgba(15,23,42,0.08);
}

.tab-content { display: block; }
.tab-content.hidden { display: none; }

/* Botões do header (ícones brancos com sombra) */
.btn-header-icon {
    position: relative;
    width: 40px; height: 40px;
    background: #fff;
    border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #0f172a;
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 4px 12px -4px rgba(15,23,42,0.2);
    cursor: pointer;
    transition: transform 0.15s ease;
}
.btn-header-icon:hover { transform: scale(1.04); }
.btn-header-icon:active { transform: scale(0.94); }
.btn-header-icon .dot {
    position: absolute; top: 4px; right: 4px;
    width: 8px; height: 8px; border-radius: 50%;
    background: #22c55e; border: 2px solid #fff;
}

/* Tab Informações — blocos */
.info-block {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 10px;
}
.info-heading {
    font-size: 10px; font-weight: 900;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.horario-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid transparent;
}
.horario-row.hoje {
    background: rgba(var(--cor-tema-rgb), 0.06);
    border-color: rgba(var(--cor-tema-rgb), 0.2);
}
.horario-row .dia { font-size: 12px; font-weight: 700; color: #475569; }
.horario-row.hoje .dia { color: var(--cor-tema); }
.horario-row .badge-hoje {
    font-size: 9px; font-weight: 900;
    text-transform: uppercase;
    background: var(--cor-tema);
    color: var(--cor-botao-texto);
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 4px;
}
.horario-row .hora { font-size: 12px; font-weight: 700; color: #1e293b; }
.horario-row .hora.fechado { color: #f43f5e; }
.info-tile {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
}
.info-tile i { color: var(--cor-tema); font-size: 18px; margin-bottom: 4px; display: block; }
.info-tile .valor { font-size: 13px; font-weight: 800; color: #0f172a; }
.info-tile .label { font-size: 10px; color: #94a3b8; font-weight: 600; margin-top: 2px; }

/* Tab Avaliações — resumo */
.avaliacoes-resumo {
    display: flex; align-items: center; gap: 14px;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 16px;
}
.avaliacoes-resumo .resumo-nota {
    display: flex; align-items: center; gap: 4px;
    background: rgba(245,158,11,0.1);
    padding: 10px 14px;
    border-radius: 12px;
}
.avaliacoes-resumo .resumo-nota .num { font-size: 22px; font-weight: 900; color: #f59e0b; line-height: 1; }
.avaliacoes-resumo .resumo-nota i { color: #f59e0b; font-size: 14px; }
.avaliacoes-resumo .resumo-info .total { font-size: 14px; font-weight: 800; color: #0f172a; }

/* =================================================================
   MODAL PRODUTO FULLSCREEN — premium (estilo DeliveryMuch)
   ================================================================= */
.modal-produto {
    position: fixed; inset: 0; z-index: 70;
    background: #fff;
    display: flex; flex-direction: column;
    transform: translateY(100%);
    transition: transform .28s cubic-bezier(.22,.61,.36,1);
    will-change: transform;
}
.modal-produto.is-open { transform: translateY(0); }
.modal-produto.hidden { display: none; }
.modal-produto-inner {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    max-width: 560px; margin: 0 auto;
    background: #fff;
    position: relative;
}
@media (min-width: 1024px) {
    .modal-produto {
        background: rgba(15,23,42,.55);
        backdrop-filter: blur(4px);
        align-items: center; justify-content: center;
        padding: 24px;
    }
    .modal-produto-inner {
        height: min(92vh, 880px);
        border-radius: 28px;
        overflow: hidden;
        box-shadow: 0 24px 64px -12px rgba(0,0,0,.45);
    }
}

/* HERO */
.pp-hero {
    position: relative;
    height: 160px;
    background: #e2e8f0 center/cover no-repeat;
    flex-shrink: 0;
}
@media (min-width: 1024px) {
    .pp-hero { height: 200px; }
}
.pp-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0) 75%, rgba(255,255,255,.95) 100%);
}
.pp-btn-voltar {
    position: absolute; top: 12px; left: 12px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    color: #0f172a;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px -4px rgba(0,0,0,.18);
    transition: transform .15s, background .15s;
    border: none;
}
.pp-btn-voltar:hover { background: #fff; }
.pp-btn-voltar:active { transform: scale(.92); }
.pp-hero-badges {
    position: absolute; bottom: 12px; left: 12px;
    display: flex; gap: 6px;
}
.pp-badge-promo {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
    display: inline-flex; align-items: center; gap: 4px;
    box-shadow: 0 6px 16px -6px rgba(239,68,68,.55);
}

/* SCROLL BODY */
.pp-scroll {
    flex: 1;
    overflow-y: auto;
    margin-top: -18px;
    background: #fff;
    border-radius: 20px 20px 0 0;
    position: relative;
    z-index: 2;
    padding: 2px 0 0;
}
.pp-scroll-spacer { height: 8px; }

/* INFO */
.pp-info {
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f1f5f9;
}
.pp-nome {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -.01em;
    margin: 0 0 4px;
}
.pp-preco-wrap { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.pp-preco {
    font-size: 17px;
    font-weight: 900;
    color: var(--cor-tema);
    letter-spacing: -.01em;
}
.pp-preco-antigo {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 600;
}
.pp-descricao {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.45;
    margin: 0;
}
.pp-meta {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-top: 10px;
}
.pp-meta-chip {
    display: inline-flex; align-items: center; gap: 5px;
    background: #f1f5f9;
    color: #475569;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

/* GRUPOS */
.pp-grupos { display: flex; flex-direction: column; }
.pp-grupo {
    padding: 12px 16px;
    border-bottom: 5px solid #f8fafc;
}
.pp-grupo:last-child { border-bottom: none; }
.pp-grupo-header {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
    margin-bottom: 10px;
}
.pp-grupo-titulo {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 1px;
    line-height: 1.25;
}
.pp-grupo-subtitulo {
    font-size: 11px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.35;
}
.pp-badge-obrig {
    background: #0f172a;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: .06em;
    flex-shrink: 0;
}
.pp-grupo-itens { display: flex; flex-direction: column; gap: 6px; }
.pp-gratis { color: #16a34a; font-weight: 800; }

/* ITEM RADIO */
.pp-item-radio {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all .15s;
}
.pp-item-radio:hover { border-color: var(--cor-tema); background: #fafbfc; }
.pp-item-radio input[type="radio"] { display: none; }
.pp-radio-dot {
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    position: relative;
    transition: border-color .15s;
}
.pp-item-radio input:checked ~ .pp-radio-dot { border-color: var(--cor-tema); }
.pp-item-radio input:checked ~ .pp-radio-dot::after {
    content: '';
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 8px; height: 8px;
    background: var(--cor-tema);
    border-radius: 50%;
}
.pp-item-radio:has(input:checked) {
    border-color: var(--cor-tema);
    background: rgba(var(--cor-tema-rgb), .04);
}
.pp-item-nome { flex: 1; font-size: 13px; font-weight: 600; color: #334155; }
.pp-item-preco { font-size: 12px; color: #64748b; font-weight: 600; }

/* ITEM STEPPER */
.pp-item-stepper {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    transition: all .15s;
}
.pp-item-stepper.is-active {
    border-color: var(--cor-tema);
    background: rgba(var(--cor-tema-rgb), .04);
}
.pp-item-stepper-info { display: flex; flex-direction: column; gap: 1px; }
.pp-item-stepper-info .pp-item-nome { font-size: 13px; }

.pp-stepper { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pp-stepper button {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    color: #64748b;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
    cursor: pointer;
}
.pp-stepper button:hover { border-color: var(--cor-tema); color: var(--cor-tema); }
.pp-stepper button:active { transform: scale(.9); }
.pp-stepper-qtd {
    min-width: 20px; text-align: center;
    font-size: 14px; font-weight: 800; color: #0f172a;
}
.pp-stepper-lg button { width: 32px; height: 32px; }
.pp-stepper-lg .pp-stepper-qtd { min-width: 24px; font-size: 16px; }

/* ITEM CHECK (remover) */
.pp-item-check {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all .15s;
}
.pp-item-check:hover { border-color: #cbd5e1; }
.pp-item-check input[type="checkbox"] { display: none; }
.pp-check-box {
    width: 18px; height: 18px;
    border-radius: 5px;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    transition: all .15s;
}
.pp-check-box i { opacity: 0; transition: opacity .15s; }
.pp-item-check input:checked ~ .pp-check-box {
    background: var(--cor-tema);
    border-color: var(--cor-tema);
}
.pp-item-check input:checked ~ .pp-check-box i { opacity: 1; }
.pp-item-check:has(input:checked) {
    border-color: var(--cor-tema);
    background: rgba(var(--cor-tema-rgb), .04);
}

/* CHIPS */
.pp-chips-wrap { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pp-chip {
    background: #f1f5f9;
    color: #475569;
    border: 1.5px solid transparent;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}
.pp-chip:hover { background: #e2e8f0; }
.pp-chip.is-on {
    background: rgba(var(--cor-tema-rgb), .08);
    border-color: var(--cor-tema);
    color: var(--cor-tema);
}

/* TEXTAREA */
.pp-textarea-wrap { position: relative; }
.pp-textarea-wrap textarea {
    width: 100%;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px 20px;
    font-size: 13px;
    color: #0f172a;
    resize: none;
    font-family: inherit;
    transition: border-color .15s, background .15s;
}
.pp-textarea-wrap textarea:focus {
    outline: none;
    border-color: var(--cor-tema);
    background: #fff;
}
.pp-obs-contador {
    position: absolute; right: 10px; bottom: 8px;
    font-size: 10px; color: #94a3b8; font-weight: 600;
    pointer-events: none;
}

/* QTD GROUP */
.pp-grupo-qtd { padding: 12px 16px; }
.pp-grupo-qtd .pp-grupo-header { align-items: center; margin-bottom: 0; }

/* FOOTER */
.pp-footer {
    flex-shrink: 0;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #f1f5f9;
    box-shadow: 0 -6px 18px -8px rgba(15,23,42,.08);
}
.pp-resumo { display: flex; flex-direction: column; gap: 1px; margin-bottom: 6px; }
.pp-resumo-linha {
    display: flex; justify-content: space-between;
    font-size: 11px; color: #64748b; font-weight: 600;
}
.pp-resumo-linha.pp-resumo-total {
    font-size: 12px; color: #0f172a; font-weight: 800;
}
/* botão fino e elegante */
.pp-cta {
    width: 100%;
    padding: 9px 14px;
    border-radius: 10px;
    background: var(--cor-tema);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 6px 16px -8px rgba(var(--cor-tema-rgb), .5);
    transition: transform .12s;
    border: none; cursor: pointer;
    letter-spacing: .01em;
    min-height: 40px;
}
.pp-cta:active { transform: scale(.985); }
.pp-cta-preco {
    background: rgba(0,0,0,.18);
    padding: 3px 9px;
    border-radius: 7px;
    font-weight: 800;
    font-size: 12px;
}
.avaliacoes-resumo .resumo-info .legenda { font-size: 11px; font-weight: 600; color: #94a3b8; margin-top: 2px; }
/* ===== Pizza meia-a-meia (cardapio) — classes novas, aditivas ===== */
.pz-secao { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.4px; margin: 10px 0 2px; }
.pz-sabor-desc { color: #94a3b8; font-weight: 500; }
.pz-sabor-row.pz-bloqueado { opacity: 0.4; }
.pz-aviso { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 8px 10px; background: #f8fafc; border-radius: 10px; font-size: 11px; color: #64748b; line-height: 1.4; }
.pz-aviso.hidden { display: none; }
.pz-aviso i { flex-shrink: 0; }

.pz-input { display: none !important; }

/* ===== Rodape Tastti (cross-promo marketplace) ===== */
.cd-footer { padding: 24px 16px 12px; text-align: center; }
.cd-footer-link { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; }
.cd-footer-logo { font-weight: 700; font-size: 13px; color: #f97316; letter-spacing: -0.01em; }
.cd-footer-txt { font-size: 11px; color: #94a3b8; font-weight: 500; }

/* Miniatura de foto do sabor de pizza (opcional) */
.pz-sabor-foto { width: 38px; height: 38px; border-radius: 999px; background-size: cover; background-position: center; background-color: #f1f5f9; flex-shrink: 0; }
