/* ============================================
   CARDÁPIO ONLINE - Estilo Instagram
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Remover highlight azul de toque em TODOS os elementos interativos (mobile) */
a, button, input, select, textarea, label,
[onclick], [role="button"],
.modal-acao, .modal-acao-group,
.categoria-bubble, .story-item,
.variacao-chip, .modal-chip-add,
.btn-curtir, .btn-favoritar,
.card-produto, .produto-card {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fafafa;
    color: #262626;
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
}

/* ===== SETA INDICADORA DE SCROLL ===== */
.scroll-arrow {
    position: fixed;
    bottom: 62px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.scroll-arrow.hidden {
    opacity: 0;
}

/* Seta dentro de painéis/modais (posição absoluta) */
.scroll-arrow-inner {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.scroll-arrow-inner.hidden {
    opacity: 0;
}

/* Arrow inside a scroll container (sticky instead of absolute) */
#scroll-arrow-modal-produto {
    position: sticky;
    bottom: 70px;
    align-self: center;
    left: auto;
    transform: none;
}

.scroll-arrow-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Esconder scrollbar globalmente em overlays dinâmicos */
#monte-pizza-overlay,
#monte-pizza-overlay *,
#mp-seletor,
#mp-seletor * {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#monte-pizza-overlay::-webkit-scrollbar,
#monte-pizza-overlay *::-webkit-scrollbar,
#mp-seletor::-webkit-scrollbar,
#mp-seletor *::-webkit-scrollbar {
    display: none;
}

/* ===== HEADER DA LOJA (perfil) ===== */
.cardapio-header {
    background: white;
    padding: 24px 16px 16px;
    border-bottom: 1px solid #dbdbdb;
    position: relative;
}

/* Botão voltar para lojas */
.btn-voltar-lojas {
    display: none !important;
}

.loja-perfil {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.loja-avatar {
    width: 96px;
    height: 96px;
    min-width: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s ease;
    margin-bottom: 4px;
}

.loja-avatar.loja-online {
    background: linear-gradient(135deg, #22c55e, #16a34a, #15803d);
}

.loja-avatar.loja-offline {
    background: linear-gradient(135deg, #9ca3af, #6b7280, #4b5563);
}

.loja-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: white;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.loja-avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.loja-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: 700;
}

.loja-info {
    flex: 1;
}

.loja-nome {
    font-size: 20px;
    font-weight: 700;
    color: #262626;
    text-align: center;
}

.loja-cidade {
    font-size: 13px;
    color: #8e8e8e;
    text-align: center;
}

.loja-horario {
    font-size: 12px;
    color: #8e8e8e;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.loja-horario .aberto {
    color: #22c55e;
    font-weight: 600;
}

.loja-horario .fechado {
    color: #ef4444;
    font-weight: 600;
}

/* Ícones de contato */
.loja-icones {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.loja-icone {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}

.loja-icone:active {
    transform: scale(0.9);
}

.loja-icone.whatsapp {
    color: #25d366;
}

.loja-icone.instagram {
    color: #e1306c;
}

/* ===== TRACKER DE PEDIDO (barra de progresso) ===== */
.pedido-tracker {
    background: #fff;
    border-bottom: 1px solid #efefef;
    padding: 12px 16px 14px;
    animation: trackerSlideDown 0.4s ease;
}

@keyframes trackerSlideDown {
    from { max-height: 0; opacity: 0; padding: 0 16px; overflow: hidden; }
    to { max-height: 120px; opacity: 1; padding: 12px 16px 14px; }
}

.pedido-tracker.tracker-hide {
    animation: trackerSlideUp 0.4s ease forwards;
}

@keyframes trackerSlideUp {
    from { max-height: 120px; opacity: 1; padding: 12px 16px 14px; }
    to { max-height: 0; opacity: 0; padding: 0 16px; overflow: hidden; }
}

.tracker-inner {
    max-width: 600px;
    margin: 0 auto;
}

.tracker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.tracker-titulo {
    font-size: 13px;
    color: #555;
}

.tracker-titulo strong {
    color: #222;
    font-weight: 700;
}

.tracker-status-texto {
    font-size: 12px;
    font-weight: 600;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tracker-status-texto.status-verde {
    color: #22c55e;
}

.tracker-status-texto.status-laranja {
    color: #f59e0b;
}

.tracker-steps {
    display: flex;
    align-items: center;
    gap: 0;
}

.tracker-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    gap: 4px;
    min-width: 48px;
}

.tracker-step span {
    font-size: 9px;
    color: #bbb;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.tracker-step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.4s ease;
    position: relative;
}

/* Step ativo (já passou) */
.tracker-step.done .tracker-step-icon {
    background: #22c55e;
    color: #fff;
    box-shadow: 0 2px 8px rgba(34,197,94,0.3);
}

.tracker-step.done span {
    color: #22c55e;
    font-weight: 600;
}

/* Step atual (em andamento) */
.tracker-step.active .tracker-step-icon {
    background: #f59e0b;
    color: #fff;
    box-shadow: 0 2px 8px rgba(245,158,11,0.3);
    animation: trackerPulse 1.5s ease-in-out infinite;
}

.tracker-step.active span {
    color: #f59e0b;
    font-weight: 700;
}

@keyframes trackerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

/* Linha de conexão */
.tracker-line {
    flex: 1;
    height: 3px;
    background: #eee;
    border-radius: 2px;
    position: relative;
    margin: 0 2px;
    margin-bottom: 16px;
}

.tracker-line-fill {
    height: 100%;
    background: #22c55e;
    border-radius: 2px;
    width: 0%;
    transition: width 0.6s ease;
}

.tracker-line.done .tracker-line-fill {
    width: 100%;
}

.tracker-line.active .tracker-line-fill {
    width: 50%;
    background: #f59e0b;
}

/* Step finalizado total (entregue) */
.tracker-step.entregue-done .tracker-step-icon {
    background: #22c55e;
    color: #fff;
    animation: none;
    box-shadow: 0 2px 12px rgba(34,197,94,0.4);
}

/* Warning caixa offline */
.tracker-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin-top: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #991b1b;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    animation: trackerWarningIn 0.4s ease;
}

.tracker-warning i.fa-triangle-exclamation {
    color: #dc2626;
    font-size: 16px;
    flex-shrink: 0;
}

.tracker-warning a {
    color: #25d366;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.tracker-warning a:hover {
    text-decoration: underline;
}

.tracker-warning a i.fa-whatsapp {
    margin-right: 2px;
}

@keyframes trackerWarningIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== CATEGORIAS (stories) ===== */
.cardapio-categorias {
    background: white;
    border-bottom: 1px solid #dbdbdb;
    padding: 12px 0;
}

.categorias-scroll {
    overflow-x: auto;
    padding: 0 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categorias-scroll::-webkit-scrollbar {
    display: none;
}

.categorias-inner {
    display: flex;
    gap: 16px;
    width: fit-content;
    margin: 0 auto;
}

.categoria-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    min-width: 64px;
    transition: transform 0.2s;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    user-select: none;
}

.categoria-bubble:active {
    transform: scale(0.95);
}

/* Badge NOVO na categoria */
.cat-novo-badge {
    position: absolute;
    top: -2px;
    right: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.5);
    z-index: 2;
    pointer-events: none;
    animation: pulseNovoCat 2s ease-in-out infinite;
}

@keyframes pulseNovoCat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.categoria-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #dbdbdb;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    font-size: 18px;
    font-weight: 700;
    color: #8e8e8e;
    transition: all 0.2s;
}

.categoria-bubble.active .categoria-circle {
    border-color: #262626;
    color: #262626;
    background: #fafafa;
}

.categoria-nome {
    font-size: 11px;
    color: #8e8e8e;
    text-align: center;
    max-width: 64px;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 500;
    position: relative;
}

.categoria-nome .cat-nome-texto {
    display: inline-block;
    white-space: nowrap;
    position: relative;
}

/* Scroll marquee só quando o texto excede o container */
.categoria-nome .cat-nome-texto.cat-marquee {
    animation: catMarquee 2s linear infinite alternate;
    animation-delay: 1s;
}

@keyframes catMarquee {
    0%, 15% { transform: translateX(0); }
    85%, 100% { transform: translateX(var(--marquee-offset)); }
}

.categoria-bubble.active .categoria-nome {
    color: #262626;
    font-weight: 600;
}

/* ===== GRID DE PRODUTOS (cards instagramáveis) ===== */
.cardapio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding: 2px;
    background: white;
}

/* Quando tem grupos de categoria, o grid vira coluna de grupos */
.cardapio-grid.com-barras {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

/* Grupo: barra horizontal em cima + grid de produtos */
.categoria-grupo {
    display: flex;
    flex-direction: column;
}

/* === SEÇÃO SALVOS (favoritos) === */
.categoria-salvos {
    margin-bottom: 4px;
}

.salvos-barra {
    background: transparent !important;
    border-bottom: 2px solid #262626;
    border-radius: 0 !important;
}

.salvos-barra .categoria-barra-nome {
    color: #262626;
    text-shadow: none;
}

/* Barra salvos no estilo vertical */
.estilo-barra-vertical .salvos-barra {
    border-bottom: none;
    border-right: 2px solid #262626;
}

.categoria-barra {
    width: 100%;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    margin: 4px 4px 0;
    width: calc(100% - 8px);
}

.categoria-barra-nome {
    color: white;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    white-space: nowrap;
}

/* ===== ESTILO BARRA: VERTICAL (barra na lateral esquerda) ===== */
.estilo-barra-vertical .categoria-grupo {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}
.estilo-barra-vertical .categoria-barra {
    writing-mode: vertical-lr;
    text-orientation: mixed;
    width: auto;
    min-width: 28px;
    max-width: 32px;
    padding: 6px 4px;
    margin: 4px 0 4px 4px;
    border-radius: 8px;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-start;
    display: flex;
    flex-direction: row;
    gap: 0;
}
.estilo-barra-vertical .categoria-barra-nome {
    font-size: 10px;
    letter-spacing: 2px;
    white-space: nowrap;
}
.estilo-barra-vertical .cat-barra-actions {
    writing-mode: horizontal-tb;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    order: -1;
    margin-bottom: 6px;
}
.estilo-barra-vertical .cat-barra-actions .cat-sort-btns {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-left: 0;
}
.estilo-barra-vertical .cat-barra-actions .cat-sort-btn {
    padding: 3px;
    font-size: 10px;
    border-radius: 4px;
    width: 22px;
    height: 22px;
    justify-content: center;
    border: none;
    background: rgba(255,255,255,0.3);
    color: white;
}
.estilo-barra-vertical .cat-barra-actions .cat-sort-btn:active {
    background: rgba(255,255,255,0.6);
}
.estilo-barra-vertical .cat-barra-actions .cat-cor-barra-btn {
    width: 22px;
    height: 22px;
    font-size: 10px;
}
.estilo-barra-vertical .categoria-grupo-grid {
    flex: 1;
}

/* ===== ESTILO BARRA: TEXTO (sem fundo, só nome) ===== */
.estilo-barra-texto .categoria-barra {
    background: transparent !important;
    padding: 8px 12px 4px;
    margin: 8px 4px 0;
    border-radius: 0;
    border-bottom: 2px solid var(--cor-barra-texto, #d4a017);
}
.estilo-barra-texto .categoria-barra-nome {
    color: var(--cor-barra-texto, #d4a017);
    text-shadow: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.categoria-grupo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding: 2px;
}

.produto-thumb {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    cursor: pointer;
    background: #efefef;
}

.produto-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s;
}

.produto-thumb:active img {
    opacity: 0.7;
}

.produto-thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
    background: linear-gradient(rgba(0,0,0,0.45) 0%, transparent 40%, transparent 60%, rgba(0,0,0,0.5) 100%);
    color: white;
    pointer-events: none;
}

.produto-thumb-nome {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    align-self: flex-start;
}

.produto-thumb-preco {
    font-size: 11px;
    font-weight: 600;
    align-self: flex-end;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.produto-thumb-preco .thumb-apartir {
    font-size: 9px;
    font-weight: 400;
    opacity: 0.85;
}

.produto-thumb-preco .thumb-pizza-badge {
    font-size: 10px;
    font-weight: 600;
    background: rgba(245, 158, 11, 0.85);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.produto-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #c7c7c7;
    font-size: 28px;
    background: #f5f5f5;
}

/* ===== MODAL DETALHE DO PRODUTO ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.65);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
    animation: fadeInModal 0.2s ease;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-produto {
    background: white;
    width: 100%;
    max-width: 480px;
    max-height: 95vh;
    border-radius: 20px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 8px;
}

.modal-produto::-webkit-scrollbar {
    display: none;
}

.modal-produto.modal-entrada {
    animation: slideUpModal 0.3s ease;
}

@keyframes slideUpModal {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-produto-img {
    width: 100%;
    aspect-ratio: 1/1;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.modal-produto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-produto-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c7c7c7;
    font-size: 48px;
}

.modal-produto-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: background 0.2s;
}

.modal-produto-close:hover {
    background: rgba(0,0,0,0.7);
}

.modal-produto-body {
    padding: 6px 20px 24px;
}

.modal-produto-categoria {
    font-size: 12px;
    color: #8e8e8e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.modal-produto-nome {
    font-size: 24px;
    font-weight: 700;
    color: #262626;
    margin-bottom: 10px;
}

.modal-produto-preco {
    font-size: 22px;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 20px;
}

.modal-produto-preco .preco-apartir {
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
}

.modal-produto-preco .modal-preco-riscado {
    text-decoration: line-through;
    color: #dc2626;
    font-size: 16px;
    font-weight: 500;
    opacity: 0.7;
    margin-right: 4px;
}

/* Variações (seletor de tamanho) */
.modal-variacoes {
    margin-bottom: 20px;
}

.modal-variacoes-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.modal-variacoes-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.variacao-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 8px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 0;
    width: calc(33.333% - 7px);
    box-sizing: border-box;
    flex-shrink: 0;
    flex-grow: 0;
}

/* Pizza tamanhos: grid 2 colunas */
.modal-variacoes-chips.pizza-tamanhos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.modal-variacoes-chips.pizza-tamanhos .variacao-chip {
    width: 100%;
}

.variacao-chip:hover:not(.disabled) {
    border-color: #93c5fd;
}

.variacao-chip.active {
    border-color: #22c55e;
    background: #fff;
    box-shadow: none;
}

.variacao-chip.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

.variacao-chip-nome {
    font-size: 15px;
    font-weight: 700;
    color: #262626;
}

.variacao-chip.active .variacao-chip-nome {
    color: #262626;
}

.variacao-chip-preco {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

.variacao-chip.active .variacao-chip-preco {
    color: #16a34a;
    font-weight: 600;
}

/* Ingredientes */
.modal-ingredientes {
    margin-bottom: 20px;
}

.modal-ingredientes-title {
    font-size: 13px;
    font-weight: 700;
    color: #262626;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.modal-ingredientes-lista {
    font-size: 14px;
    color: #525252;
    line-height: 1.6;
}

/* Ingredientes interativos (checkboxes) */
.modal-ingredientes-itens {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-ingrediente-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid #d4edda;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #f0fdf4;
}

.modal-ingrediente-item:active {
    transform: scale(0.98);
}

.modal-ingrediente-item.essencial {
    cursor: default;
    opacity: 0.7;
    background: #f8f9fa;
    border-color: #e9ecef;
}

.modal-ingrediente-item.removido {
    background: #fef2f2;
    border-color: #fecaca;
}

.modal-ingrediente-item.removido .modal-ingrediente-nome {
    text-decoration: line-through;
    color: #9ca3af;
}

.modal-ingrediente-item.removido .modal-ingrediente-check {
    background: #fecaca;
    border-color: #fca5a5;
    color: transparent;
}

.modal-ingrediente-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-ingrediente-check {
    width: 20px;
    height: 20px;
    border: 2px solid #86efac;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: white;
    background: #22c55e;
    transition: all 0.2s;
}

.modal-ingrediente-nome {
    font-size: 14px;
    font-weight: 500;
    color: #262626;
    transition: all 0.2s;
}

.modal-ingrediente-tag {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #e5e7eb;
    color: #6b7280;
}

.modal-ingrediente-tag.removivel {
    background: #dbeafe;
    color: #3b82f6;
}

/* Opcionais / Adicionais */
.modal-opcionais {
    margin-bottom: 20px;
}

/* Chips de adicionais */
.modal-chips-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 4px 0;
}
.modal-chip-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.modal-chip-add i {
    font-size: 10px;
    color: #22c55e;
    transition: color .15s;
}
.modal-chip-add:active {
    transform: scale(.96);
}
.modal-chip-sel {
    border-color: #22c55e;
    background: #dcfce7;
}
.modal-chip-sel span {
    color: #15803d;
    font-weight: 600;
}
.modal-chip-sel i {
    color: #22c55e;
}
.modal-chip-preco {
    font-size: 11px;
    color: #16a34a;
    font-weight: 600;
    margin-left: 2px;
}
.modal-chip-indisponivel {
    border-color: #fecaca;
    background: #fef2f2;
    opacity: .6;
    cursor: not-allowed;
}
.modal-chip-indisponivel span {
    text-decoration: line-through;
    color: #9ca3af;
}
.modal-chip-indisponivel i {
    color: #ef4444;
}

/* Seções colapsáveis com toggle */
.modal-secao-toggle {
    margin-bottom: 12px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}
.modal-secao-toggle:last-child {
    margin-bottom: 0;
}
.modal-secao-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #f8fafc;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.modal-secao-header:active {
    background: #f1f5f9;
}
.modal-secao-titulo {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.modal-secao-regra {
    font-size: 11px;
    color: #6b7280;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.modal-secao-seta {
    font-size: 12px;
    color: #9ca3b8;
    transition: transform .2s;
    flex-shrink: 0;
}
.modal-secao-fechada .modal-secao-seta {
    transform: rotate(-90deg);
}
.modal-secao-body {
    padding: 10px 14px 14px;
    transition: all .2s;
}
.modal-secao-fechada .modal-secao-body {
    display: none;
}

/* Chips de remover ingredientes */
.modal-chip-rem {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.modal-chip-rem i {
    font-size: 10px;
    color: #cbd5e1;
    transition: color .15s;
}
.modal-chip-base {
    cursor: default;
    opacity: .55;
    border-style: dashed;
}
.modal-chip-base i {
    font-size: 9px;
    color: #a0aec0;
}
.modal-chip-rem:active:not(.modal-chip-base) {
    transform: scale(.96);
}
.modal-chip-rem-ativo {
    border-color: #fca5a5;
    background: #fef2f2;
}
.modal-chip-rem-ativo span {
    text-decoration: line-through;
    color: #9ca3af;
}
.modal-chip-rem-ativo i {
    color: #ef4444;
}

.grupo-opc-obrig {
    background: #fef3c7;
    color: #d97706;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Contador de seleção do grupo */
.grupo-sel-contador {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 10px;
    transition: all .3s;
}
.grupo-sel-contador.grupo-sel-completo {
    color: #fff;
    background: #22c55e;
}

/* Destaque ao navegar para próximo grupo (pulse verde) */
.grupo-destaque-pulse {
    animation: grupoPulse 1.2s ease;
}
@keyframes grupoPulse {
    0%   { border-color: #f0f0f0; box-shadow: none; }
    20%  { border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
    100% { border-color: #f0f0f0; box-shadow: none; }
}

/* Destaque de erro ao grupo incompleto */
.grupo-destaque-erro {
    animation: grupoErro 2s ease;
}
@keyframes grupoErro {
    0%   { border-color: #f0f0f0; box-shadow: none; }
    15%  { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.18); }
    30%  { border-color: #f0f0f0; box-shadow: none; }
    45%  { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.18); }
    60%  { border-color: #f0f0f0; box-shadow: none; }
    100% { border-color: #f0f0f0; box-shadow: none; }
}

/* Observações */
.modal-obs {
    margin-bottom: 20px;
}

.modal-obs label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #262626;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.modal-obs textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 60px;
    transition: border-color 0.2s;
}

.modal-obs textarea:focus {
    outline: none;
    border-color: #262626;
}

/* Observação por unidade (quando qtd > 1) */
.modal-obs-unit {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 50px;
    transition: border-color 0.2s;
}

.modal-obs-unit:focus {
    outline: none;
    border-color: #262626;
}

.modal-obs-unit-group {
    margin-bottom: 10px;
}

.modal-obs-unit-group:last-child {
    margin-bottom: 0;
}

.modal-obs-unit-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #8e8e8e;
    margin-bottom: 4px;
}

/* Quantidade + Adicionar */
.modal-produto-footer {
    padding: 18px 20px;
    border-top: 1px solid #efefef;
    background: white;
    position: sticky;
    bottom: 0;
}

.modal-footer-row-principal {
    display: flex;
    align-items: center;
    gap: 14px;
}

.modal-qty {
    display: flex;
    align-items: center;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    overflow: hidden;
}

.modal-qty button {
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: #262626;
    transition: background 0.2s;
}

.modal-qty button:hover {
    background: #fafafa;
}

.modal-qty span {
    width: 40px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #262626;
}

.modal-btn-adicionar {
    flex: 1;
    padding: 10px 16px;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.modal-btn-adicionar:hover {
    background: #16a34a;
}

.modal-btn-adicionar.btn-loja-fechada {
    background: #9ca3af;
    cursor: not-allowed;
    font-size: 14px;
    gap: 8px;
    width: 100%;
}

.modal-btn-adicionar.btn-loja-fechada:hover {
    background: #9ca3af;
}

/* ===== MODAL ADICIONAIS (segundo modal) ===== */
.modal-adicionais {
    background: white;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.modal-adicionais-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px 14px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-adicionais-titulo {
    font-size: 18px;
    font-weight: 700;
    color: #262626;
}

.modal-adicionais-body {
    padding: 12px 16px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-adicionais-body::-webkit-scrollbar {
    display: none;
}

.modal-adicionais-footer {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.modal-btn-sem-adicional {
    flex: 1;
    padding: 12px 16px;
    background: white;
    color: #262626;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.modal-btn-sem-adicional:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.modal-btn-com-adicional {
    flex: 1;
    padding: 12px 16px;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.modal-btn-com-adicional .modal-btn-total {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.9;
}

.modal-btn-com-adicional:hover {
    background: #16a34a;
}

/* ===== CARRINHO NA NAV ===== */
#nav-carrinho {
    position: relative;
}

#nav-carrinho.has-items {
    color: #262626;
}

.nav-carrinho-badge {
    position: absolute;
    top: 0px;
    right: 50%;
    transform: translateX(14px);
    background: #ef4444;
    color: white !important;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

.nav-carrinho-label-vazio {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ===== MODAL CARRINHO ===== */
#modal-carrinho-overlay.modal-overlay {
    z-index: 4000;
    align-items: center;
}

.modal-carrinho {
    background: white;
    width: 100%;
    max-width: 480px;
    max-height: 95vh;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    animation: slideUpModal 0.3s ease;
    margin: 8px;
}

.modal-carrinho-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #efefef;
}

.modal-carrinho-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #262626;
}

.modal-carrinho-header button {
    background: none;
    border: none;
    font-size: 20px;
    color: #8e8e8e;
    cursor: pointer;
}

.carrinho-itens {
    flex: 1;
    overflow-y: auto;
    padding: 8px 16px;
}

.carrinho-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #efefef;
}

.carrinho-item-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #f5f5f5;
    overflow: hidden;
    flex-shrink: 0;
}

.carrinho-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carrinho-item-info {
    flex: 1;
    min-width: 0;
}

.carrinho-item-nome {
    font-size: 14px;
    font-weight: 600;
    color: #262626;
}

.carrinho-item-extras {
    font-size: 11px;
    color: #8e8e8e;
    margin-top: 2px;
}

/* Pizza obs formatada no carrinho */
.carrinho-pizza-obs {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.5;
    color: #64748b;
    border-left: 3px solid #f59e0b;
    padding-left: 8px;
}
.cpo-titulo {
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}
.cpo-sabor {
    font-weight: 600;
    color: #334155;
    margin-top: 3px;
}
.cpo-mod {
    padding-left: 10px;
    font-size: 10px;
}
.cpo-rem {
    color: #ef4444;
}
.cpo-add {
    color: #16a34a;
}
.cpo-grupo {
    font-weight: 600;
    color: #92400e;
    margin-top: 3px;
    font-size: 10px;
    text-transform: uppercase;
}
.cpo-user-obs {
    font-style: italic;
    color: #6b7280;
    margin-top: 2px;
}

.carrinho-item-preco {
    font-size: 14px;
    font-weight: 700;
    color: #262626;
    white-space: nowrap;
}

.carrinho-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 100%;
}

.carrinho-item-remover {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all .15s;
}

.carrinho-item-remover:hover,
.carrinho-item-remover:active {
    color: #dc2626;
    background: #fef2f2;
}

.carrinho-item-qty {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.carrinho-item-qty button {
    width: 24px;
    height: 24px;
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrinho-item-qty span {
    font-size: 13px;
    font-weight: 600;
    width: 24px;
    text-align: center;
}

.modal-carrinho-footer {
    padding: 16px;
    border-top: 1px solid #efefef;
}

.carrinho-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    color: #262626;
    margin-bottom: 12px;
}

.btn-finalizar {
    width: 100%;
    padding: 14px;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-finalizar:hover {
    background: #16a34a;
}

.btn-finalizar:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* ===== BANNER LOJA FECHADA ===== */
.banner-fechado {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fef3c7;
    border-bottom: 1px solid #fde68a;
    color: #92400e;
    font-size: 13px;
    font-weight: 600;
    max-width: 600px;
    margin: 0 auto;
}

.banner-fechado i {
    font-size: 18px;
    flex-shrink: 0;
}

/* ===== MODAL IDENTIFICAÇÃO ===== */

.modal-identificar {
    background: #fff;
    border-radius: 18px 18px 0 0;
    width: 100%;
    max-width: 500px;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideUpIdentificar 0.3s ease;
    z-index: 1002;
    box-shadow: 0 -4px 30px rgba(0,0,0,.12);
}

@keyframes slideUpIdentificar {
    from { transform: translateX(-50%) translateY(100%); }
    to { transform: translateX(-50%) translateY(0); }
}

.modal-identificar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-identificar-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.modal-identificar-header button {
    background: #f5f5f5;
    border: none;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    padding: 6px 9px;
    border-radius: 50%;
    transition: background 0.2s;
}

.modal-identificar-header button:hover {
    background: #e8e8e8;
}

.modal-identificar-body {
    padding: 20px;
    overflow-y: auto;
}

.identificar-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 18px;
    line-height: 1.5;
}

/* Campo de telefone com ícone WhatsApp */
.identificar-telefone-campo {
    display: flex;
    align-items: center;
    border: 1.5px solid #ddd;
    border-radius: 12px;
    background: #fff;
    padding: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.identificar-telefone-campo:focus-within {
    border-color: #0095f6;
    box-shadow: 0 0 0 3px rgba(0,149,246,.12);
}

.identificar-telefone-wpp {
    font-size: 22px;
    color: #25D366;
    padding: 0 4px 0 14px;
    flex-shrink: 0;
}

.identificar-telefone-campo input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    padding: 14px 14px 14px 10px;
    outline: none;
    letter-spacing: 0.3px;
}

.identificar-telefone-campo input::placeholder {
    color: #bbb;
    font-weight: 400;
}

.identificar-erro {
    color: #ef4444;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    padding: 0 2px;
}

.btn-identificar-avancar {
    width: 100%;
    padding: 14px;
    border: 1.5px solid #1a1a1a;
    border-radius: 12px;
    background: #fff;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-identificar-avancar:hover {
    background: #1a1a1a;
    color: #fff;
}

.btn-identificar-avancar:active {
    background: #333;
    color: #fff;
}

.btn-identificar-avancar:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #fff;
    color: #1a1a1a;
}

/* ===== CHECKOUT FLOW ===== */

.checkout-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-btn-voltar {
    background: none;
    border: none;
    font-size: 18px;
    color: #262626;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

/* Steps indicator */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    gap: 0;
    border-bottom: 1px solid #efefef;
}

.checkout-step {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s;
}

.checkout-step.active {
    background: #2563eb;
    color: white;
}

.checkout-step.current {
    background: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.checkout-step-line {
    width: 40px;
    height: 2px;
    background: #e5e7eb;
    margin: 0 4px;
}

/* Checkout content */
.checkout-conteudo {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.checkout-step-content {
    display: none;
    padding: 0;
}

.checkout-step-content.active {
    display: block;
}

.checkout-section {
    padding: 20px 16px;
}

.checkout-section h4 {
    font-size: 16px;
    font-weight: 700;
    color: #262626;
    margin-bottom: 16px;
}

/* Modalidade cards */
.modalidade-opcoes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modalidade-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.modalidade-card:active {
    transform: scale(0.98);
}

.modalidade-card.selected {
    border-color: #2563eb;
    background: #eff6ff;
}

.modalidade-card i {
    font-size: 24px;
    color: #9ca3af;
    width: 32px;
    text-align: center;
    transition: color 0.2s;
}

.modalidade-card.selected i {
    color: #3b82f6;
}

.modalidade-card strong {
    font-size: 15px;
    color: #262626;
    display: block;
}

.modalidade-card span {
    font-size: 12px;
    color: #8e8e8e;
}

/* Checkout form */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-campo {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkout-campo label {
    font-size: 12px;
    font-weight: 600;
    color: #8e8e8e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-campo input {
    padding: 12px;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #262626;
    outline: none;
    transition: border-color 0.2s;
    background: white;
    text-transform: capitalize;
}

.checkout-campo input:focus {
    border-color: #0095f6;
}

.checkout-campo-row {
    display: flex;
    gap: 8px;
}

.checkout-campo-row .checkout-campo {
    flex: 1;
}

.checkout-tel-row {
    display: flex;
    gap: 8px;
}

.checkout-tel-row input {
    flex: 1;
    padding: 12px;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #262626;
    outline: none;
}

.checkout-tel-row input:focus {
    border-color: #22c55e;
}

.checkout-btn-buscar {
    padding: 0 16px;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.checkout-btn-buscar:hover {
    background: #16a34a;
}

/* Formas de pagamento */
.checkout-formas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.forma-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.forma-card:active {
    transform: scale(0.96);
}

.forma-card.selected {
    border-color: #2563eb;
    background: #eff6ff;
}

.forma-card i {
    font-size: 24px;
    color: #9ca3af;
    transition: color 0.2s;
}

.forma-card.selected i {
    color: #3b82f6;
}

.forma-card span {
    font-size: 13px;
    font-weight: 600;
    color: #262626;
    text-align: center;
}

/* Resumo de confirmação */
.checkout-resumo {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.resumo-secao {
    padding-bottom: 12px;
    border-bottom: 1px solid #efefef;
}

.resumo-label {
    font-size: 13px;
    font-weight: 700;
    color: #262626;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.resumo-label i {
    color: #3b82f6;
    font-size: 14px;
}

.resumo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
    color: #555;
}

.resumo-item small {
    color: #999;
}

.resumo-item strong {
    color: #262626;
    font-weight: 600;
}

.resumo-totais {
    padding-top: 4px;
}

.resumo-total {
    font-size: 16px !important;
    padding-top: 8px !important;
    margin-top: 4px;
    border-top: 1px solid #efefef;
}

.resumo-total span,
.resumo-total strong {
    font-weight: 700 !important;
    color: #262626 !important;
    font-size: 16px !important;
}

/* Sucesso */
.checkout-sucesso {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    gap: 8px;
}

.checkout-sucesso-icon {
    font-size: 64px;
    color: #22c55e;
    margin-bottom: 8px;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.checkout-sucesso h3 {
    font-size: 22px;
    font-weight: 800;
    color: #262626;
}

.checkout-sucesso p {
    font-size: 15px;
    color: #555;
}

.checkout-sucesso-sub {
    font-size: 13px !important;
    color: #999 !important;
    margin-bottom: 16px;
}

.checkout-sucesso .btn-finalizar {
    max-width: 280px;
}

/* ===== SWIPE / NAVEGAÇÃO ENTRE PRODUTOS ===== */
/* Row that combines dots + social actions on the same line */
.modal-acoes-row {
    position: relative;
    background: white;
}

.modal-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.modal-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #dbdbdb;
    transition: all 0.3s;
}

.modal-dot.active {
    background: #3897f0;
}

.modal-dot.small {
    width: 4px;
    height: 4px;
    opacity: 0.5;
}

/* Badge de favorito na thumb do produto */
.produto-thumb-fav {
    position: absolute;
    top: 6px;
    right: 6px;
    color: white;
    font-size: 14px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
    z-index: 1;
    pointer-events: none;
}

/* Badge NOVO na thumb do produto */
.produto-thumb-novo {
    position: absolute;
    top: 6px;
    left: 6px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 7px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.4);
    z-index: 2;
    pointer-events: none;
    animation: pulseNovo 2s ease-in-out infinite;
}

.produto-thumb-novo i {
    font-size: 8px;
}

@keyframes pulseNovo {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Ícone de promoção no canto superior direito do card */
.produto-thumb-promo-icon {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 14px;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
    line-height: 1;
}

/* Variação chip com promoção */
.variacao-chip.variacao-promo {
    border-color: #f59e0b;
    background: #fff;
}

.variacao-chip-preco-riscado {
    text-decoration: line-through;
    color: #dc2626 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    opacity: 0.7;
}

.variacao-chip-preco-promo {
    color: #d97706 !important;
    font-weight: 700 !important;
    font-size: 13px !important;
}

.variacao-chip.active .variacao-chip-preco-promo {
    color: #16a34a !important;
}

.variacao-chip.active .variacao-chip-preco-riscado {
    color: #dc2626 !important;
}

/* ===== AÇÕES SOCIAIS (curtir na foto, favoritar) ===== */

/* Coração no canto superior esquerdo da foto */
.modal-curtir-overlay {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    z-index: 5;
}

.modal-curtir-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(6px);
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.modal-curtir-btn:active {
    transform: scale(0.85);
}

.modal-curtir-btn.curtido {
    color: #ed4956;
    background: rgba(0,0,0,.45);
}

.modal-curtir-btn.curtido i,
.modal-curtir-btn.animando i {
    animation: heartPop 0.4s ease;
}

.modal-curtir-count {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

.modal-acoes {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 14px;
    background: transparent;
    position: relative;
    z-index: 1;
}

.modal-acoes-left {
    display: flex;
    align-items: center;
}

.modal-acoes-right {
    display: flex;
    align-items: center;
}

.modal-curtidas-text {
    font-size: 12px;
    font-weight: 600;
    color: #262626;
}

.modal-acao {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    font-size: 22px;
    color: #262626;
    transition: transform 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-acao:active {
    transform: scale(0.85);
}

.modal-acao.favoritado {
    color: #262626;
}

.modal-acao.favoritado.animando i {
    animation: heartPop 0.4s ease;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* ===== DUPLO TOQUE CORAÇÃO (INSTAGRAM) ===== */
.modal-produto-img {
    position: relative;
}

.dbl-heart-anim {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 80px;
    color: #fff;
    pointer-events: none;
    z-index: 10;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
    opacity: 0;
    transition: none;
}

.dbl-heart-anim.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    animation: dblHeartBounce 0.4s ease-out forwards;
}

.dbl-heart-anim.fade {
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes dblHeartBounce {
    0%   { transform: translate(-50%, -50%) scale(0); }
    50%  { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}




.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    border: none;
    color: #262626;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    transition: opacity 0.2s;
}

.modal-nav-btn:active {
    opacity: 0.7;
}

.modal-nav-btn.prev {
    left: 8px;
}

.modal-nav-btn.next {
    right: 8px;
}

/* Animações de slide */
.modal-produto.slide-out-left {
    animation: slideOutLeft 0.15s ease forwards;
}
.modal-produto.slide-out-right {
    animation: slideOutRight 0.15s ease forwards;
}
.modal-produto.slide-in-right {
    animation: slideInRight 0.3s ease forwards;
}
.modal-produto.slide-in-left {
    animation: slideInLeft 0.3s ease forwards;
}

@keyframes slideOutLeft {
    to { opacity: 0; transform: translateX(-30px); }
}
@keyframes slideOutRight {
    to { opacity: 0; transform: translateX(30px); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Garantir position relative no modal para setas */
.modal-produto {
    position: relative;
}

/* ===== EMPTY / LOADING ===== */
.cardapio-loading {
    text-align: center;
    padding: 60px 20px;
    color: #8e8e8e;
}

.cardapio-loading i {
    font-size: 32px;
    margin-bottom: 12px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cardapio-empty {
    text-align: center;
    padding: 60px 20px;
    color: #8e8e8e;
}

.cardapio-empty i {
    font-size: 40px;
    margin-bottom: 8px;
    color: #dbdbdb;
}

.cardapio-empty p {
    font-size: 14px;
}

/* ===== LOJA NÃO ENCONTRADA ===== */
.loja-nao-encontrada {
    text-align: center;
    padding: 80px 20px;
    color: #8e8e8e;
}

.loja-nao-encontrada i {
    font-size: 48px;
    margin-bottom: 12px;
    color: #dbdbdb;
}

.loja-nao-encontrada h2 {
    color: #262626;
    margin-bottom: 8px;
}

/* ============================================
   MODO EDITOR - Barra + elementos editáveis
   ============================================ */

/* Barra de edição fixa no topo */
.edit-bar {
    background: #1a1a1a;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 8px 16px;
}

.edit-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.edit-bar-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.edit-bar-btn:hover {
    background: rgba(255,255,255,0.3);
}

.edit-bar-btn.active {
    background: white;
    color: #1a1a1a;
}

.edit-bar-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Seletor de skins na barra de edição */
.edit-bar-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
}
.edit-bar-skins {
    display: flex;
    gap: 2px;
    background: rgba(0,0,0,0.2);
    border-radius: 20px;
    padding: 2px;
    flex-shrink: 1;
    min-width: 0;
}
.edit-skin-btn {
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.65);
    padding: 4px 10px;
    border-radius: 18px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}
.edit-skin-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.edit-skin-btn.active {
    background: #fff;
    color: #1a1a1a;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
@media (max-width: 500px) {
    .edit-skin-btn span { display: none; }
    .edit-skin-btn { padding: 6px 12px; font-size: 14px; }
    .edit-bar-label { font-size: 11px; }
    .edit-bar-btn { padding: 6px 10px; font-size: 12px; gap: 4px; }
}
@media (max-width: 380px) {
    .edit-skin-btn { padding: 5px 10px; font-size: 13px; }
    .edit-bar-btn { padding: 5px 8px; font-size: 11px; }
}

/* ===== SELETOR ESTILO DE BARRA (dentro da área de categorias) ===== */
.estilo-barra-selector {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 0 12px 8px;
}
.estilo-barra-selector-inner {
    display: flex;
    gap: 8px;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}
.estilo-barra-item {
    flex: 1;
    cursor: pointer;
    text-align: center;
    padding: 6px 4px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.2s;
    background: rgba(37, 99, 235, 0.08);
}
.estilo-barra-item:hover {
    background: rgba(37, 99, 235, 0.15);
}
.estilo-barra-item.active {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.15);
}
.estilo-barra-item span {
    font-size: 9px;
    font-weight: 700;
    color: #2563eb;
    display: block;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* Mini previews */
.estilo-mini-preview {
    background: rgba(37, 99, 235, 0.1);
    border-radius: 5px;
    padding: 5px;
    min-height: 36px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.mini-barra-texto {
    height: 6px;
    border-bottom: 2px solid #d4a017;
    width: 50%;
}
.mini-cards {
    display: flex;
    gap: 2px;
}
.mini-cards span {
    flex: 1;
    height: 16px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 2px;
    display: block;
    margin: 0;
    font-size: 0;
}
.mini-preview-vertical {
    flex-direction: row !important;
    align-items: stretch;
}
.mini-barra-vertical {
    width: 6px;
    background: #d4a017;
    border-radius: 2px;
    flex-shrink: 0;
}
.mini-cards-v {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    flex: 1;
}
.mini-cards-v span {
    height: 16px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 2px;
    display: block;
    margin: 0;
    font-size: 0;
}

/* Ícone de edição inline (caneta pequena) */
.edit-icon-inline {
    font-size: 10px;
    color: #2563eb;
    margin-left: 4px;
    opacity: 0.7;
}

/* Elementos editáveis (modo ativo) */
.editavel {
    cursor: pointer !important;
    position: relative;
    transition: all 0.2s;
    border-radius: 6px;
}

.editavel:hover {
    background: rgba(37, 99, 235, 0.08);
}

/* Overlay de câmera no avatar (logo) */
.loja-avatar.editavel {
    cursor: pointer;
}

.edit-overlay-avatar {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    border: 2px solid white;
    z-index: 2;
}

.loja-avatar.editavel {
    position: relative;
}

/* Badge de "+" para ícones sem valor */
.edit-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 8px;
    background: #2563eb;
    color: white;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loja-icone.editavel {
    position: relative;
    cursor: pointer;
}

/* Overlay de câmera nos produtos */
.edit-overlay-produto {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
    z-index: 3;
    border-radius: 4px;
}

.edit-mode-active .produto-thumb:hover .edit-overlay-produto,
.edit-mode-active .produto-thumb .edit-overlay-produto {
    opacity: 1;
}

.edit-mode-active .produto-thumb .edit-overlay-produto {
    opacity: 0.6;
}

.edit-mode-active .produto-thumb:hover .edit-overlay-produto {
    opacity: 1;
}

/* ===== MODAL UPLOAD ===== */
.modal-upload {
    background: white;
    border-radius: 16px 16px 0 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.modal-upload-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #eee;
}

.modal-upload-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.modal-upload-header button {
    background: none;
    border: none;
    font-size: 20px;
    color: #8e8e8e;
    cursor: pointer;
    padding: 4px;
}

.modal-upload-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}

.upload-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: #8e8e8e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.upload-tab.active {
    color: #262626;
    border-bottom-color: #262626;
}

.modal-upload-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.upload-tab-content {
    display: none;
    padding: 16px;
}

.upload-tab-content.active {
    display: block;
}

/* Banco de imagens grid */
.banco-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.banco-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.banco-item:hover,
.banco-item:active {
    border-color: #2563eb;
    transform: scale(0.97);
}

.banco-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.banco-item span {
    display: block;
    font-size: 11px;
    text-align: center;
    padding: 4px 2px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.banco-empty {
    text-align: center;
    padding: 40px 20px;
    color: #8e8e8e;
    grid-column: 1 / -1;
}

.banco-empty i {
    font-size: 36px;
    margin-bottom: 8px;
    color: #ddd;
}

.banco-empty span {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    color: #bbb;
}

/* Área de upload (minha foto) */
.upload-area {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-area:hover,
.upload-area:active {
    border-color: #2563eb;
    background: rgba(37,99,235,0.03);
}

.upload-area i {
    font-size: 36px;
    color: #ccc;
    margin-bottom: 8px;
}

.upload-area p {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.upload-area span {
    font-size: 12px;
    color: #999;
}

/* Preview do upload */
.upload-preview-area {
    text-align: center;
}

.upload-preview-area img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    margin-bottom: 16px;
    object-fit: contain;
}

.upload-preview-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.upload-btn-trocar {
    background: #f0f0f0;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.upload-btn-salvar {
    background: #2563eb;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.upload-btn-salvar:hover {
    background: #1d4ed8;
}

/* ===== MODAL EDITAR CAMPO ===== */
.modal-edit-field {
    background: white;
    border-radius: 16px 16px 0 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    animation: slideUp 0.3s ease;
}

.modal-edit-field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #eee;
}

.modal-edit-field-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.modal-edit-field-header button {
    background: none;
    border: none;
    font-size: 20px;
    color: #8e8e8e;
    cursor: pointer;
}

.modal-edit-field-body {
    padding: 20px;
}

.edit-field-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.edit-field-input:focus {
    border-color: #2563eb;
}

.modal-edit-field-footer {
    display: flex;
    gap: 12px;
    padding: 12px 20px 24px;
    justify-content: flex-end;
}

.edit-field-cancel {
    background: #f0f0f0;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
}

.edit-field-save {
    background: #2563eb;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
}

.edit-field-save:hover {
    background: #1d4ed8;
}

/* ===== TOAST ===== */
.edit-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1e293b;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.edit-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.edit-toast.sucesso i { color: #22c55e; }
.edit-toast.erro i { color: #ef4444; }
.edit-toast.loading i { color: #60a5fa; }
.edit-toast.info { background: #2563eb; }
.edit-toast.info i { color: #fff; }

/* ===== EDIT OVERLAY CATEGORIAS ===== */
.categoria-circle {
    position: relative;
    overflow: hidden;
}

.cat-has-foto {
    padding: 0;
    border: none;
}

.cat-circle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.edit-overlay-cat {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s;
    cursor: pointer;
    z-index: 2;
}
.edit-overlay-cat i {
    color: #fff;
    font-size: 14px;
}
.edit-mode .edit-overlay-cat {
    opacity: 1;
}
.categoria-bubble:hover .edit-overlay-cat {
    opacity: 1;
    background: rgba(0,0,0,0.55);
}

/* ===== MODAL PERSONALIZAR CATEGORIA ===== */
.modal-icone {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.modal-overlay:not(.active) .modal-icone {
    transform: translateX(-50%) translateY(100%);
}

.modal-icone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #eee;
}
.modal-icone-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}
.modal-icone-header button {
    background: none;
    border: none;
    color: #666;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
}

/* Tabs */
.cat-edit-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}
.cat-edit-tab {
    flex: 1;
    padding: 12px 8px;
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-bottom: 2px solid transparent;
}
.cat-edit-tab i {
    font-size: 14px;
}
.cat-edit-tab.active {
    color: #ef4444;
    border-bottom-color: #ef4444;
    background: #fff;
}
.cat-edit-tab:hover:not(.active) {
    color: #666;
    background: #f5f5f5;
}

.cat-tab-content {
    display: none;
}
.cat-tab-content.active {
    display: block;
}

.modal-icone-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

/* Grid de Ícones */
.icone-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.icone-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 4px;
    border-radius: 12px;
    border: 2px solid transparent;
    background: #f5f5f5;
    cursor: pointer;
    transition: all .15s;
}
.icone-item i {
    font-size: 22px;
    color: #1a1a1a;
}
.icone-item span {
    font-size: 10px;
    color: #666;
    text-align: center;
    line-height: 1.2;
}
.icone-item:hover {
    background: rgba(239,68,68,0.1);
    border-color: #ef4444;
}
.icone-item.selected {
    background: rgba(239,68,68,0.1);
    border-color: #ef4444;
}
.icone-item.selected i {
    color: #ef4444;
}

/* Grid de Cores */
.cor-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    padding: 8px 0;
}
.cor-item {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all .15s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.cor-item:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.cor-item.selected {
    border-color: #1a1a1a;
    transform: scale(1.15);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1a1a1a;
}

/* Preview de cor */
.cat-cor-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 16px 0;
}
.cat-cor-preview p {
    font-size: 12px;
    color: #999;
}
.categoria-circle-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid #dbdbdb;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    font-size: 24px;
    font-weight: 700;
    color: #8e8e8e;
    transition: all .3s;
    overflow: hidden;
}

/* Tab Foto */
.cat-foto-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 16px 0;
}
.cat-foto-preview p {
    font-size: 12px;
    color: #999;
}
.cat-foto-circle {
    padding: 0;
    border: none;
}
.cat-foto-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.cat-foto-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 12px 0;
}

/* Footer */
.modal-icone-footer {
    padding: 12px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
}
.modal-icone-footer .edit-field-cancel {
    width: auto;
    padding: 8px 24px;
    font-size: 13px;
}

/* ============================================
   EDITOR: TOOLBAR DE ORDENAÇÃO
   ============================================ */

.editor-toolbar {
    padding: 10px 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    margin: 8px 12px;
}

.editor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.editor-grid-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 6px;
    background: white;
    border: 1.5px solid #bfdbfe;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.editor-grid-btn i {
    font-size: 16px;
    color: #2563eb;
}

.editor-grid-btn span {
    font-size: 11px;
    font-weight: 600;
    color: #1a1a1a;
}

.editor-grid-btn:active {
    background: #2563eb;
    border-color: #2563eb;
    transform: scale(0.95);
}

.editor-grid-btn:active i,
.editor-grid-btn:active span {
    color: white;
}

.editor-toolbar-label {
    font-size: 12px;
    font-weight: 600;
    color: #2563eb;
}

.cat-sort-btns {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.cat-sort-btn {
    background: white;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}

.cat-sort-btn:active {
    background: #2563eb;
    color: white;
    transform: scale(0.95);
}

/* ============================================
   EDITOR: DRAG HANDLE PRODUTOS
   ============================================ */

.drag-handle {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 5;
    background: rgba(0,0,0,0.55);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: grab;
    opacity: 0.8;
    transition: opacity 0.2s;
    touch-action: none;
}

.drag-handle:active {
    cursor: grabbing;
    opacity: 1;
}

.produto-thumb.draggable {
    position: relative;
    transition: transform 0.15s, opacity 0.15s;
}

.produto-thumb.dragging {
    opacity: 0.4;
    transform: scale(0.92);
    outline: 2px dashed #2563eb;
    outline-offset: 2px;
}

/* ============================================
   MODAL: REORDENAR CATEGORIAS
   ============================================ */

.modal-reordenar-cats {
    background: white;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 600px;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    z-index: 1100;
    animation: slideUpCentered 0.3s ease;
}

@keyframes slideUpCentered {
    from { transform: translateX(-50%) translateY(100%); }
    to { transform: translateX(-50%) translateY(0); }
}

.modal-reordenar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 8px;
}

.modal-reordenar-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #262626;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-reordenar-header button {
    background: none;
    border: none;
    font-size: 20px;
    color: #8e8e8e;
    cursor: pointer;
    padding: 4px;
}

.modal-reordenar-hint {
    font-size: 12px;
    color: #8e8e8e;
    padding: 0 20px 8px;
}

.reordenar-lista {
    flex: 1;
    overflow-y: auto;
    padding: 0 12px;
}

.reordenar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 6px;
    cursor: grab;
    transition: transform 0.15s, box-shadow 0.15s;
    touch-action: none;
    user-select: none;
}

.reordenar-item:active {
    cursor: grabbing;
}

.reordenar-item.dragging {
    opacity: 0.5;
    transform: scale(0.96);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    background: #f0f4ff;
}

.reordenar-drag {
    color: #c0c0c0;
    font-size: 16px;
    flex-shrink: 0;
}

.reordenar-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.reordenar-pos {
    background: #2563eb;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.reordenar-nome {
    font-size: 14px;
    font-weight: 600;
    color: #262626;
}

.modal-reordenar-footer {
    padding: 12px 20px;
    border-top: 1px solid #eee;
}

.btn-reordenar-salvar {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-reordenar-salvar:active {
    background: #1d4ed8;
}

.editor-tool-btn {
    background: white;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.editor-tool-btn:active {
    background: #2563eb;
    color: white;
    transform: scale(0.95);
}

/* ===== COR DA BARRA + ACTIONS ===== */

.cat-barra-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cat-cor-barra-btn {
    background: rgba(255,255,255,0.25);
    border: none;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.cat-cor-barra-btn:active {
    background: rgba(255,255,255,0.5);
}

/* Paleta visível no estilo texto (fundo transparente) */
.estilo-barra-texto .cat-cor-barra-btn {
    background: rgba(0,0,0,0.08);
    color: #2563eb;
}
.estilo-barra-texto .cat-cor-barra-btn:active {
    background: rgba(0,0,0,0.15);
}

.cor-barra-picker {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin: 4px 4px 0;
    padding: 10px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.cor-barra-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cor-barra-picker-header span {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.cor-barra-picker-header button {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 14px;
    cursor: pointer;
    padding: 2px;
}

.cor-barra-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cor-barra-item {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    transition: transform 0.15s, border-color 0.15s;
}

.cor-barra-item:active {
    transform: scale(0.9);
}

.cor-barra-item.active {
    border-color: #262626;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #262626;
}

.cor-barra-item i {
    color: white;
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ==========================================
   BOTTOM NAV BAR
   ========================================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: 52px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    z-index: 3000;
    border-top: 1.5px solid #e5e5e5;
    padding-bottom: env(safe-area-inset-bottom, 0);
    transition: transform .2s ease, opacity .2s ease;
}

/* Esconder bottom-nav quando qualquer modal está aberto */
body.modal-aberto .bottom-nav {
    transform: translateX(-50%) translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.bottom-nav-inner {
    display: flex;
    align-items: center;
    gap: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 28px;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    background: none;
    border: none;
    font-family: inherit;
}

.bottom-nav-item i {
    font-size: 18px;
    transition: color 0.2s;
}

.bottom-nav-item span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.bottom-nav-item.active {
    color: #262626;
}

.bottom-nav-item.active i {
    color: #262626;
}

/* Separadores entre itens */
.bottom-nav-sep {
    width: 1px;
    height: 24px;
    background: #e5e5e5;
}

/* Ajustar conteúdo principal pra não ficar escondido pela nav */
html {
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
html::-webkit-scrollbar {
    display: none;
}

#cardapio-app {
    padding-bottom: 64px;
}

#cardapio-app.tab-hidden {
    visibility: hidden;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    max-height: 100vh;
}

/* ==========================================
   TELA PERFIL
   ========================================== */

.tela-secundaria {
    position: fixed;
    top: 0;
    bottom: 52px; /* acima da nav */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    background: #f5f5f5;
    z-index: 2500;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: none;
    animation: telaSlideUp 0.25s ease;
}

.tela-secundaria::-webkit-scrollbar {
    display: none;
}

.tela-secundaria.show {
    display: block;
}

@keyframes telaSlideUp {
    from { transform: translateX(-50%) translateY(30px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.tela-header {
    background: #262626;
    color: white;
    padding: 18px 20px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tela-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.tela-header i {
    font-size: 20px;
}

.perfil-container {
    padding: 16px;
}

.perfil-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0 10px;
}

.perfil-avatar-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #262626;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.perfil-avatar-nome {
    font-size: 14px;
    font-weight: 700;
    color: #262626;
}

.perfil-avatar-tel {
    font-size: 12px;
    color: #888;
    margin-top: 1px;
}

.perfil-row {
    display: flex;
    gap: 0;
}

.perfil-row .perfil-field {
    flex: 1;
}

.perfil-row .perfil-field:first-child {
    border-right: 1px solid #f0f0f0;
}

.perfil-section {
    background: white;
    border-radius: 12px;
    padding: 4px 0;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.perfil-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #aaa;
    padding: 12px 16px 4px;
    letter-spacing: 0.5px;
}

.perfil-field {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
}

.perfil-field:last-child {
    border-bottom: none;
}

.perfil-field-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
    flex-shrink: 0;
}

.perfil-field-info {
    flex: 1;
    min-width: 0;
}

.perfil-field-label {
    font-size: 11px;
    color: #aaa;
    font-weight: 600;
}

.perfil-field-value {
    font-size: 14px;
    color: #262626;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.perfil-field-value.vazio {
    color: #ccc;
    font-style: italic;
}

.perfil-field input {
    width: 100%;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #262626;
    outline: none;
    padding: 0;
    font-family: inherit;
    background: transparent;
}

.perfil-field-edit {
    color: #aaa;
    font-size: 13px;
    cursor: pointer;
    padding: 4px;
}

.perfil-btn-salvar {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #262626;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    margin-top: 8px;
    transition: opacity 0.2s;
}

.perfil-btn-salvar:active {
    opacity: 0.8;
}

.perfil-btn-salvar:disabled {
    opacity: 0.4;
    cursor: default;
}

.perfil-nao-identificado {
    text-align: center;
    padding: 48px 24px;
}

.perfil-nao-identificado i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
}

.perfil-nao-identificado h3 {
    font-size: 18px;
    font-weight: 700;
    color: #262626;
    margin: 0 0 8px;
}

.perfil-nao-identificado p {
    color: #888;
    font-size: 14px;
    margin: 0 0 20px;
}

.perfil-btn-identificar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: none;
    color: #1a1a1a;
    border: 1.5px solid #2563eb;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* ===== LOGOUT ===== */
.perfil-btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    margin-top: 16px;
    background: none;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.perfil-btn-logout:active {
    background: #fde8e8;
}

/* ===== ENDEREÇOS NO PERFIL ===== */
.perfil-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.perfil-btn-add-endereco {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #2563eb;
    color: #2563eb;
    background: none;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.perfil-endereco-vazio {
    padding: 20px;
    text-align: center;
    color: #aaa;
    font-size: 13px;
}
.perfil-endereco-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}
.perfil-endereco-card.principal {
    border-color: #f59e0b;
    background: #fffbeb;
}
.endereco-card-apelido {
    font-weight: 700;
    font-size: 14px;
    color: #262626;
    margin-bottom: 2px;
}
.endereco-badge-principal {
    display: inline-block;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 6px;
    background: #f59e0b;
    color: #fff;
    margin-left: 6px;
    vertical-align: middle;
}
.endereco-card-rua {
    font-size: 13px;
    color: #666;
}
.endereco-ref {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}
.endereco-card-acoes {
    display: flex;
    gap: 6px;
}
.endereco-card-acoes button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #f5f5f5;
    color: #888;
    font-size: 13px;
    cursor: pointer;
}
.endereco-card-acoes button:active {
    background: #e5e5e5;
}
.perfil-endereco-form-btns {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.perfil-btn-cancelar-end {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    color: #666;
}
.perfil-btn-salvar-end {
    flex: 2;
    padding: 12px;
    border: none;
    background: #2563eb;
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* ===== VERIFICAÇÃO WHATSAPP ===== */
.verificacao-icone {
    text-align: center;
    margin-bottom: 16px;
}
.verificacao-icone i {
    font-size: 48px;
    color: #25d366;
}
.verificacao-codigo-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}
.codigo-digit {
    width: 56px;
    height: 64px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    border: 2px solid #ddd;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s;
    color: #262626;
    background: #fafafa;
}
.codigo-digit:focus {
    border-color: #2563eb;
    background: #fff;
}
.verificacao-timer-row {
    text-align: center;
    margin-bottom: 16px;
    color: #888;
    font-size: 13px;
}
.verificacao-timer-row b {
    color: #e74c3c;
    font-size: 15px;
}
.btn-reenviar-codigo {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 14px;
    color: #2563eb;
    cursor: pointer;
    text-align: center;
}

/* ===== HISTÓRICO — FAVORITAR PEDIDO ===== */
.historico-card-acoes {
    display: flex;
    gap: 8px;
    align-items: center;
}
.historico-btn-fav {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid #e0e0e0;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    padding: 7px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}
.historico-btn-fav i {
    font-size: 14px;
}
.historico-btn-fav.favoritado {
    color: #d97706;
    background: #fffbeb;
    border-color: #f59e0b;
    font-weight: 600;
}
.historico-btn-fav:active {
    transform: scale(0.95);
}
.historico-card.historico-fav {
    border-left: 3px solid #f59e0b;
}

/* ==========================================
   TELA HISTÓRICO / PEDIDOS
   ========================================== */

.historico-container {
    padding: 16px;
}

.historico-vazio {
    text-align: center;
    padding: 48px 24px;
}

.historico-vazio i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
}

.historico-vazio h3 {
    font-size: 18px;
    font-weight: 700;
    color: #262626;
    margin: 0 0 8px;
}

.historico-vazio p {
    color: #888;
    font-size: 14px;
    margin: 0;
}

.historico-card {
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    overflow: hidden;
}

.historico-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f0f0f0;
}

.historico-card-numero {
    font-size: 15px;
    font-weight: 700;
    color: #262626;
}

.historico-card-data {
    font-size: 12px;
    color: #aaa;
}

.historico-card-status {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.historico-status-finalizado {
    background: #dcfce7;
    color: #16a34a;
}

.historico-status-cancelado {
    background: #fee2e2;
    color: #dc2626;
}

.historico-status-ativo {
    background: #fef3c7;
    color: #d97706;
}

.historico-card-itens {
    padding: 10px 16px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.historico-card-item {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
}

.historico-card-item-nome {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: #262626;
}

.historico-card-item-detalhe {
    font-size: 12px;
    padding: 1px 0 1px 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.historico-card-item-detalhe.adicional {
    color: #16a34a;
}

.historico-card-item-detalhe.adicional i {
    font-size: 9px;
}

.historico-card-item-detalhe.removido {
    color: #dc2626;
}

.historico-card-item-detalhe.removido i {
    font-size: 9px;
}

.historico-card-item-detalhe.obs {
    color: #888;
    font-style: italic;
}

.historico-card-item-detalhe.obs i {
    font-size: 10px;
}

.historico-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 14px;
    border-top: 1px solid #f0f0f0;
    gap: 8px;
    flex-wrap: wrap;
}

.historico-card-total {
    font-size: 16px;
    font-weight: 700;
    color: #262626;
}

.historico-card-modalidade {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

.historico-btn-repetir {
    border: none;
    background: #262626;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}

.historico-btn-repetir:active {
    opacity: 0.7;
}

.historico-loading {
    text-align: center;
    padding: 32px;
    color: #aaa;
}

.historico-loading i {
    font-size: 24px;
    margin-bottom: 8px;
}

/* ============ Badges de status no histórico ============ */
.historico-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}
.historico-badge.removido {
    background: #FEE2E2;
    color: #DC2626;
}
.historico-badge.indisponivel {
    background: #FEF3C7;
    color: #D97706;
}
.historico-badge.sem-estoque {
    background: #FEF3C7;
    color: #D97706;
}

/* ============ Modal de Alerta – Revisão ============ */
.alerta-revisao-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
    padding: 20px;
}
.alerta-revisao-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.alerta-revisao-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 380px;
    width: 100%;
    padding: 28px 24px 24px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: alertaRevisaoIn .35s ease;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}
@keyframes alertaRevisaoIn {
    from { transform: scale(0.85) translateY(30px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}
.alerta-revisao-icone {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #FEF3C7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: #D97706;
}
.alerta-revisao-titulo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
}
.alerta-revisao-subtitulo {
    font-size: 0.88rem;
    color: #666;
    margin: 0 0 16px;
    line-height: 1.4;
}
.alerta-revisao-lista {
    text-align: left;
    overflow-y: auto;
    flex: 1;
    margin-bottom: 16px;
}
.alerta-revisao-produto {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
}
.alerta-revisao-produto:last-child { margin-bottom: 0; }
.alerta-revisao-produto-nome {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a1a1a;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.alerta-revisao-produto-nome i { color: #9CA3AF; font-size: 0.8rem; }
.alerta-revisao-detalhe {
    font-size: 0.82rem;
    padding: 4px 0 4px 22px;
    position: relative;
    line-height: 1.4;
}
.alerta-revisao-detalhe i {
    position: absolute;
    left: 2px;
    top: 6px;
    font-size: 0.75rem;
}
.alerta-revisao-detalhe.erro { color: #DC2626; }
.alerta-revisao-detalhe.erro i { color: #DC2626; }
.alerta-revisao-detalhe.aviso { color: #D97706; }
.alerta-revisao-detalhe.aviso i { color: #D97706; }
.alerta-revisao-nota {
    font-size: 0.82rem;
    color: #9CA3AF;
    margin: 0 0 16px;
    font-style: italic;
}
.alerta-revisao-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: var(--cor-primaria, #22c55e);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
}
.alerta-revisao-btn:active { opacity: .85; }

/* ── Erros de Estoque ── */
.estoque-erros-lista {
    text-align: left;
    margin-bottom: 16px;
}
.estoque-erro-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border: 1px solid #fde8e8;
    background: #fff5f5;
    border-radius: 10px;
    margin-bottom: 6px;
}
.estoque-erro-nome {
    font-weight: 700;
    font-size: 14px;
    color: #c0392b;
    display: flex;
    align-items: center;
    gap: 6px;
}
.estoque-erro-info {
    font-size: 13px;
    color: #555;
    padding-left: 22px;
}

/* ============ Modal de Revisão (Repetir Pedido) ============ */
.revisao-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}
.revisao-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.revisao-modal {
    background: #fff;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform .3s ease;
}
.revisao-overlay.active .revisao-modal {
    transform: translateY(0);
}
.revisao-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
}
.revisao-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.revisao-close {
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 4px;
}
.revisao-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}
.revisao-itens {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.revisao-item {
    background: #FAFAFA;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid #f0f0f0;
}
.revisao-item.indisponivel {
    opacity: 0.5;
    background: #FFF5F5;
    border-color: #FED7D7;
}
.revisao-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.revisao-item-nome {
    font-weight: 700;
    font-size: 14px;
    flex: 1;
    min-width: 0;
}
.revisao-item-preco {
    font-weight: 700;
    font-size: 14px;
    color: #16A34A;
    white-space: nowrap;
}
.revisao-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}
.revisao-badge.removido { background: #FEE2E2; color: #DC2626; }
.revisao-badge.indisponivel { background: #FEF3C7; color: #D97706; }
.revisao-badge.sem-estoque { background: #FEF3C7; color: #D97706; }

.revisao-badge-mini {
    font-size: 9px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 4px;
}
.revisao-badge-mini.removido { background: #FEE2E2; color: #DC2626; }
.revisao-badge-mini.indisponivel { background: #FEF3C7; color: #D97706; }
.revisao-badge-mini.sem-estoque { background: #FEF3C7; color: #D97706; }

.revisao-adic, .revisao-rem, .revisao-obs {
    font-size: 12px;
    padding: 2px 0;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}
.revisao-adic { color: #16A34A; }
.revisao-adic.indisponivel { color: #999; text-decoration: line-through; }
.revisao-adic-preco { font-weight: 600; margin-left: auto; }
.revisao-rem { color: #DC2626; }
.revisao-obs { color: #888; font-style: italic; }
.revisao-falta {
    color: #D97706;
    font-weight: 600;
    background: #FFFBEB;
    border-radius: 6px;
    padding: 4px 8px;
    margin-top: 4px;
}

.revisao-btn-add-adic {
    border: 1px dashed #ccc;
    background: none;
    color: #666;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
    transition: all .2s;
}
.revisao-btn-add-adic:active {
    background: #f5f5f5;
}

/* Seções: endereço, pagamento */
.revisao-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.revisao-endereco {
    background: #F8FAFC;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid #E2E8F0;
}
.revisao-endereco p { margin: 0; font-size: 13px; color: #555; }
.revisao-endereco.aviso { border-color: #FED7AA; background: #FFFBEB; }
.revisao-aviso { color: #D97706 !important; font-weight: 600; }
.revisao-aviso i { margin-right: 4px; }

.revisao-pagamento {
    margin-bottom: 12px;
}
.revisao-formas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.revisao-forma-btn {
    border: 2px solid #E5E7EB;
    background: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    transition: all .2s;
    color: #555;
}
.revisao-forma-btn.selected {
    border-color: #2563EB;
    background: #EFF6FF;
    color: #2563EB;
}
.revisao-forma-btn:active { opacity: 0.7; }

.revisao-taxa {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #888;
    padding: 8px 0;
    border-top: 1px solid #f0f0f0;
}

.revisao-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 800;
    padding: 12px 0 0;
    border-top: 1px solid #f0f0f0;
    color: #111;
}

.revisao-footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}
.revisao-btn-carrinho,
.revisao-btn-enviar {
    flex: 1;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
    transition: opacity .2s;
}
.revisao-btn-carrinho {
    background: #F3F4F6;
    color: #374151;
}
.revisao-btn-enviar {
    background: #16A34A;
    color: #fff;
}
.revisao-btn-carrinho:active,
.revisao-btn-enviar:active {
    opacity: 0.7;
}
.revisao-btn-carrinho:disabled,
.revisao-btn-enviar:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Popup de adicionais na revisão */
.revisao-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.revisao-popup-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.revisao-popup {
    background: #fff;
    width: 90%;
    max-width: 380px;
    border-radius: 16px;
    overflow: hidden;
}
.revisao-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.revisao-popup-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}
.revisao-popup-header button {
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
}
.revisao-popup-body {
    padding: 12px 16px;
    max-height: 50vh;
    overflow-y: auto;
}
.revisao-opc-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #f8f8f8;
    font-size: 13px;
    cursor: pointer;
}
.revisao-opc-item.indisponivel {
    opacity: 0.4;
    cursor: not-allowed;
}
.revisao-opc-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #16A34A;
}
.revisao-opc-item span:nth-child(2) { flex: 1; }
.revisao-opc-preco {
    font-weight: 600;
    color: #16A34A;
}
.revisao-popup-confirmar {
    width: 100%;
    border: none;
    background: #2563EB;
    color: #fff;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.revisao-popup-confirmar:active { opacity: 0.8; }

/* ── Botão Alterar Item (substituir indisponível) ── */
.revisao-btn-alterar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 14px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.revisao-btn-alterar:active { opacity: 0.85; }

/* ── Popup Substituto ── */
.substituto-popup {
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}
.substituto-busca-row {
    padding: 0 16px 12px;
}
.substituto-busca-input-wrap {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 0 12px;
    gap: 8px;
}
.substituto-busca-input-wrap i {
    color: #aaa;
    font-size: 14px;
}
.substituto-busca-input-wrap input {
    flex: 1;
    border: none;
    background: none;
    padding: 10px 0;
    font-size: 14px;
    outline: none;
    font-family: inherit;
}
.substituto-categoria-label {
    padding: 6px 16px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.substituto-lista {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px;
    max-height: 45vh;
}
.substituto-grupo-label {
    font-size: 11px;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 0 6px;
    border-top: 1px solid #f0f0f0;
}
.substituto-grupo-label:first-child {
    border-top: none;
    padding-top: 0;
}
.substituto-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 4px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
.substituto-item:active {
    background: #e8f0fe;
    border-color: #2563eb;
}
.substituto-nome {
    font-size: 14px;
    font-weight: 500;
    color: #262626;
    text-align: left;
}
.substituto-preco {
    font-size: 13px;
    font-weight: 700;
    color: #16a34a;
    white-space: nowrap;
    margin-left: 12px;
}
.substituto-vazio {
    text-align: center;
    padding: 24px 16px;
    color: #aaa;
    font-size: 13px;
}
.substituto-loading {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 13px;
}
.substituto-btn-remover {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: calc(100% - 32px);
    margin: 12px 16px 16px;
    padding: 12px;
    background: none;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}
.substituto-btn-remover:active { background: #fde8e8; }

.revisao-loading-formas {
    text-align: center;
    padding: 16px;
    color: #999;
    font-size: 13px;
}

/* =============================================
   STORIES OFERTAS - Anel do Avatar
   ============================================= */

/* Quando tem ofertas: anel gradiente girando estilo Instagram */
.loja-avatar.tem-ofertas {
    background: conic-gradient(from 0deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888, #f09433);
    animation: anelGirando 3s linear infinite;
    cursor: pointer;
    position: relative;
}

@keyframes anelGirando {
    from { background: conic-gradient(from 0deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888, #f09433); }
    to { background: conic-gradient(from 360deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888, #f09433); }
}

/* Shimmer flash periódico */
.loja-avatar.tem-ofertas::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, transparent 70%, rgba(255,255,255,0.5) 80%, transparent 90%, transparent 100%);
    animation: shimmerFlash 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmerFlash {
    0%, 70%, 100% { opacity: 0; }
    80%, 90% { opacity: 1; }
}

/* Quando tem ofertas NOVAS: adicionar pulso extra */
.loja-avatar.tem-ofertas-novas {
    animation: anelGirando 2.5s linear infinite, pulsarOfertas 1.5s ease-in-out infinite;
}

@keyframes pulsarOfertas {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

/* Badge "🔥 Ofertas" */
.ofertas-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
    animation: badgePulsar 2s ease-in-out infinite;
    z-index: 2;
    letter-spacing: 0.3px;
}

.ofertas-badge-novas {
    animation: badgePulsar 1s ease-in-out infinite;
}

@keyframes badgePulsar {
    0%, 100% { transform: translateX(-50%) scale(1); box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4); }
    50% { transform: translateX(-50%) scale(1.08); box-shadow: 0 3px 10px rgba(239, 68, 68, 0.6); }
}

/* Quando já viu todas: anel gira suave mas sem pulso */
.loja-avatar.tem-ofertas.ofertas-vistas {
    animation: anelGirando 4s linear infinite;
}
.loja-avatar.tem-ofertas.ofertas-vistas::after {
    display: none;
}

/* =============================================
   STORIES FULLSCREEN
   ============================================= */
.stories-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stories-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 480px;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Barras de progresso no topo */
.stories-progress {
    display: flex;
    gap: 4px;
    padding: 12px 12px 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.stories-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
}

.stories-progress-fill {
    height: 100%;
    background: white;
    border-radius: 2px;
    width: 0%;
    transition: none;
}

.stories-progress-bar.completed .stories-progress-fill {
    width: 100%;
}

.stories-progress-bar.active .stories-progress-fill {
    animation: storyProgress 6s linear forwards;
}

@keyframes storyProgress {
    from { width: 0%; }
    to { width: 100%; }
}

/* Header */
.stories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 12px 8px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
    padding-top: 28px;
}

.stories-loja {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stories-loja-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid white;
    overflow: hidden;
    background: #333;
}

.stories-loja-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stories-loja-nome {
    color: white;
    font-size: 13px;
    font-weight: 600;
}

.stories-loja-tipo {
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    display: block;
}

.stories-close {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    padding: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Conteúdo do story */
.stories-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.story-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-slide.active {
    opacity: 1;
}

.story-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.story-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.55) 0%,
        rgba(0,0,0,0.1) 20%,
        transparent 35%,
        transparent 42%,
        rgba(0,0,0,0.15) 55%,
        rgba(0,0,0,0.65) 70%,
        rgba(0,0,0,0.92) 100%
    );
    z-index: 1;
}

/* Nome destaque no topo */
.story-nome-topo {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 10px 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.story-nome-topo .story-nome {
    font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
    font-size: 38px;
    font-weight: 400;
    color: white;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 
        0 2px 20px rgba(0,0,0,0.7),
        0 1px 4px rgba(0,0,0,0.5),
        0 0 40px rgba(0,0,0,0.3);
    margin: 0;
}

.story-nome-topo .story-timer {
    margin-bottom: 2px;
}

.story-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 16px 96px;
    z-index: 2;
    color: white;
}

.story-info-grid {
    display: flex;
    align-items: center;
    gap: 12px;
}

.story-info-esquerda {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.story-info-direita {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.story-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.story-badge.combo {
    background: rgba(59, 130, 246, 0.8);
}

.story-badge.promo {
    background: rgba(239, 68, 68, 0.8);
}

.story-nome {
    font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 6px;
    line-height: 1.1;
    letter-spacing: 1px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.story-descricao {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 8px;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: 0.1px;
    text-align: center;
    width: 100%;
}

.story-itens {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin-bottom: 4px;
}

.story-item-tag {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255,255,255,0.95);
    padding: 5px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255,255,255,0.1);
}

.story-precos {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 4px;
    align-items: flex-end;
}

.story-precos-linha {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.story-preco-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.story-preco-original {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.story-preco-combo {
    font-family: 'Poppins', sans-serif;
    font-size: 34px;
    font-weight: 800;
    color: #4ade80;
    text-shadow: 
        0 0 20px rgba(74, 222, 128, 0.3),
        0 2px 10px rgba(0,0,0,0.3);
    line-height: 1;
    letter-spacing: -0.5px;
}

.story-economia {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #111;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    padding: 3px 10px;
    border-radius: 6px;
    margin-top: 6px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    align-self: flex-end;
}

/* Timer de urgência */
.story-timer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #fbbf24;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 6px;
    border: 1px solid rgba(251, 191, 36, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    animation: timerPulse 2s ease-in-out infinite;
}

.story-timer i {
    animation: timerShake 2s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

@keyframes timerShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

/* Footer CTA */
.stories-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 10;
    display: flex;
    justify-content: center;
}

.story-btn-carrinho {
    width: auto;
    min-width: 200px;
    max-width: 280px;
    padding: 12px 28px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 
        0 4px 15px rgba(34, 197, 94, 0.4),
        0 1px 3px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.15);
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.story-btn-carrinho::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.story-btn-carrinho:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.story-btn-carrinho .story-btn-preco {
    font-family: 'Poppins', sans-serif;
    background: rgba(0,0,0,0.2);
    padding: 3px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

/* Áreas de toque */
.stories-touch-left,
.stories-touch-right {
    position: absolute;
    top: 60px;
    bottom: 80px;
    z-index: 5;
    cursor: pointer;
}

.stories-touch-left {
    left: 0;
    width: 30%;
}

.stories-touch-right {
    right: 0;
    width: 70%;
}

/* Desktop: setas laterais */
@media (min-width: 600px) {
    .stories-container {
        border-radius: 14px;
        max-height: 90vh;
    }
}

/* Animações de entrada do story */
.story-slide.active .story-nome-topo {
    animation: storyFadeDown 0.5s ease-out both;
}

.story-slide.active .story-info {
    animation: storyFadeUp 0.5s ease-out 0.15s both;
}

.story-slide.active .story-item-tag {
    animation: storyFadeUp 0.4s ease-out both;
}

.story-slide.active .story-item-tag:nth-child(1) { animation-delay: 0.2s; }
.story-slide.active .story-item-tag:nth-child(2) { animation-delay: 0.25s; }
.story-slide.active .story-item-tag:nth-child(3) { animation-delay: 0.3s; }
.story-slide.active .story-item-tag:nth-child(4) { animation-delay: 0.35s; }
.story-slide.active .story-item-tag:nth-child(5) { animation-delay: 0.4s; }

.story-slide.active .story-preco-combo {
    animation: storyPriceIn 0.5s ease-out 0.3s both;
}

@keyframes storyFadeDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes storyFadeUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes storyPriceIn {
    from { opacity: 0; transform: scale(0.7); }
    to { opacity: 1; transform: scale(1); }
}

/* ===== CUPONS SORTEIO ===== */

/* Botão no header */
.cupom-sorteio-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    color: #2563eb;
    border: 1.5px solid #2563eb;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    transition: transform 0.2s;
    z-index: 5;
}

.cupom-sorteio-btn:active {
    transform: scale(0.95);
}

.cupom-sorteio-btn i {
    font-size: 12px;
    color: #2563eb;
}

.cupom-sorteio-count {
    background: none;
    border: none;
    color: #2563eb;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

/* Linha do cupom no histórico */
.historico-card-cupom {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #1e3a5f;
    background: #e8f0fe;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
}

.historico-card-cupom i {
    font-size: 10px;
}

/* Saldo de créditos no header */
.saldo-creditos-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #065f46, #059669);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
    z-index: 5;
    pointer-events: none;
}
.saldo-creditos-btn i {
    font-size: 11px;
    opacity: 0.85;
}

/* Créditos no checkout */
.forma-creditos {
    background: white !important;
    color: #262626 !important;
    border: 2px solid #3b82f6 !important;
}
.forma-creditos.selected {
    border-color: #22c55e !important;
    background: #f0fdf4 !important;
}
.forma-creditos i {
    color: #3b82f6 !important;
}
.forma-creditos.selected i {
    color: #22c55e !important;
}

.creditos-info-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 8px;
    margin-bottom: 12px;
}
.creditos-info-linha {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
    color: #475569;
}
.creditos-info-linha strong {
    font-weight: 700;
    color: #0f172a;
}
.creditos-info-linha.uso {
    color: #16a34a;
}
.creditos-info-linha.uso strong {
    color: #16a34a;
}
.creditos-info-linha.restante {
    border-top: 1px solid #e2e8f0;
    margin-top: 4px;
    padding-top: 8px;
    font-weight: 600;
}
.creditos-info-linha.restante strong {
    color: #334155;
}
.creditos-info-aviso {
    font-size: 11px;
    color: #64748b;
    margin-top: 8px;
    padding: 8px 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}
.creditos-info-aviso i {
    color: #f59e0b;
    margin-top: 1px;
    flex-shrink: 0;
}

.creditos-parcial-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
}
.creditos-parcial-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}
.creditos-parcial-label input[type="checkbox"] {
    accent-color: #3b82f6;
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.creditos-parcial-label i {
    color: #3b82f6;
    font-size: 16px;
}
.creditos-parcial-info {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
}
.creditos-parcial-info strong {
    color: #0f172a;
}

/* Modal de cupons */
.modal-cupons-inner {
    background: white;
    border-radius: 20px;
    max-width: 420px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInModal 0.25s ease;
}

.modal-cupons-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 6px;
}

.modal-cupons-titulo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: #1e3a5f;
}

.modal-cupons-titulo i {
    font-size: 15px;
}

.modal-cupons-fechar {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 4px;
}

.modal-cupons-subtitulo {
    font-size: 12px;
    color: #999;
    padding: 2px 20px 14px;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

.modal-cupons-lista {
    overflow-y: auto;
    padding: 8px 12px 16px;
    flex: 1;
}

.cupom-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafd;
    margin-bottom: 6px;
    transition: background 0.2s;
}

.cupom-item:hover {
    background: #eef3fa;
}

.cupom-participando {
    background: #e8f0fe;
    border-left: 3px solid #1e3a5f;
}

.cupom-item-numero {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1e3a5f;
    letter-spacing: 1px;
    font-family: 'Inter', monospace;
}

.cupom-item-numero i {
    font-size: 13px;
    opacity: 0.6;
}

.cupom-item-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cupom-item-data {
    font-size: 12px;
    color: #aaa;
}

.cupom-item-status {
    font-size: 10px;
    font-weight: 700;
    color: #1e3a5f;
    background: rgba(30, 58, 95, 0.1);
    padding: 2px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cupons-vazio {
    text-align: center;
    padding: 40px 20px;
    color: #ccc;
}

.cupons-vazio i {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
}

.cupons-vazio h3 {
    font-size: 15px;
    color: #999;
    margin: 0 0 6px;
    font-weight: 600;
}

.cupons-vazio p {
    font-size: 12px;
    color: #bbb;
    margin: 0;
}

/* ==========================================
   TELA HOME — Lojas Seguidas
   ========================================== */

.home-content {
    padding: 16px;
    padding-bottom: 80px;
}

/* Buscador */
.home-search {
    margin-bottom: 16px;
}
.home-search-wrapper {
    background: #fff;
    border: 2px solid #0095f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 10px;
}
.home-search-wrapper i { color: #8e8e8e; font-size: 14px; }
.home-search-wrapper input {
    flex: 1;
    background: none;
    border: none;
    color: #262626;
    font-size: 14px;
    padding: 12px 0;
    font-family: 'Inter', sans-serif;
    outline: none;
}
.home-search-wrapper input::placeholder { color: #8e8e8e; }
.home-search-wrapper button {
    background: none;
    border: none;
    color: #8e8e8e;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
}

/* Card da loja atual */
.home-loja-atual-card {
    background: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.home-loja-atual-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: #f2f2f2;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.home-loja-atual-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-loja-atual-avatar .placeholder-icon {
    font-size: 22px;
    color: #ccc;
}
.home-loja-atual-info {
    flex: 1;
    min-width: 0;
}
.home-loja-atual-nome {
    font-size: 15px;
    font-weight: 700;
    color: #262626;
    margin-bottom: 2px;
}
.home-loja-atual-sub {
    font-size: 12px;
    color: #8e8e8e;
    display: flex;
    align-items: center;
    gap: 5px;
}
.home-loja-atual-sub i { font-size: 10px; }
.home-btn-seguir-atual {
    background: #0095f6;
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    flex-shrink: 0;
}
.home-btn-seguir-atual:hover { background: #1877f2; }
.home-btn-seguir-atual.seguindo {
    background: #efefef;
    color: #262626;
}
.home-loja-atual-label {
    font-size: 11px;
    font-weight: 600;
    color: #8e8e8e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* Seção título */
.home-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #262626;
    margin-bottom: 14px;
}

/* Grid de lojas */
.home-lojas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (min-width: 500px) {
    .home-lojas-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.home-loja-card {
    background: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}
.home-loja-card:active {
    transform: scale(0.97);
}
.home-loja-card-img {
    height: 100px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.home-loja-card-img img {
    max-height: 70px;
    max-width: 85%;
    object-fit: contain;
}
.home-loja-card-img .placeholder-icon {
    font-size: 32px;
    color: #ccc;
}
.home-loja-promo-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: linear-gradient(135deg, #f09433, #dc2743);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 3px;
    text-transform: uppercase;
}
.home-loja-card-body {
    padding: 10px 12px;
}
.home-loja-card-name {
    font-size: 13px;
    font-weight: 700;
    color: #262626;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-loja-card-info {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #8e8e8e;
}
.home-loja-card-info i {
    font-size: 10px;
}
.home-loja-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-top: 1px solid #efefef;
}
.home-loja-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
}
.home-loja-status.aberta { color: #00c853; }
.home-loja-status.fechada { color: #ff3040; }
.home-loja-status .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}
.home-btn-seguir {
    background: #0095f6;
    border: none;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}
.home-btn-seguir:hover { background: #1877f2; }
.home-btn-seguir.seguindo {
    background: #efefef;
    color: #262626;
}

/* Estado vazio */
.home-vazio {
    text-align: center;
    padding: 40px 20px;
    color: #8e8e8e;
}
.home-vazio i {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
    opacity: 0.5;
}
.home-vazio h3 {
    font-size: 16px;
    font-weight: 700;
    color: #262626;
    margin: 0 0 8px;
}
.home-vazio p {
    font-size: 13px;
    margin: 0 0 16px;
    line-height: 1.4;
}
.home-btn-buscar {
    background: none;
    border: none;
    color: #262626;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 0;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.home-btn-buscar i {
    font-size: 22px;
    color: #666;
}
.home-btn-buscar:hover {
    color: #0095f6;
}
.home-btn-buscar:hover i {
    color: #0095f6;
}

/* Botão flutuante voltar ao cardápio */
.fab-voltar-cardapio {
    position: fixed;
    bottom: 68px;
    right: 16px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
    cursor: pointer;
    z-index: 3000;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    animation: fabBounceIn 0.35s ease;
}
.fab-voltar-cardapio:active {
    transform: scale(0.9);
}
@keyframes fabBounceIn {
    0% { transform: scale(0) translateY(20px); opacity: 0; }
    60% { transform: scale(1.1) translateY(0); opacity: 1; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}
.fab-voltar-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f2f2;
}
.fab-voltar-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fab-voltar-logo i {
    font-size: 16px;
    color: #8e8e8e;
}
.fab-voltar-pulse {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid #0095f6;
    animation: fabPulse 2s ease-in-out infinite;
}
@keyframes fabPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0; transform: scale(1.15); }
}

/* Toast (reutiliza o existente) */
