/*==========================
VARIÁVEIS DE TEMAS
===========================*/

:root {
    /* TEMA PADRÃO (DARK / ESCURO) */
    --bg-body: #111111;
    --bg-header: rgba(15, 15, 15, 0.85);
    --bg-card: #1c1c1c;
    --bg-input: #242424;
    --bg-categoria: #222222;
    --bg-modal: #1c1c1c;
    --bg-footer: #181818;
    
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --text-muted: #bbbbbb;
    --border-color: rgba(255, 255, 255, 0.08);
    
    --primary-color: #ff7b00;
    --primary-gradient: linear-gradient(90deg, #ff6a00, #ff9500);
    --success-color: #1e9e4a;
    --whatsapp-color: #25d366;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-pill: 50px;
    
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 20px rgba(255, 123, 0, 0.35);
    --shadow-lg: 0 12px 35px rgba(0, 0, 0, 0.25);
}

/* TEMA CLARO AUTOMÁTICO (DO CELULAR/PC) */
@media (prefers-color-scheme: light) {
    :root {
        --bg-body: #f4f5f7;
        --bg-header: rgba(255, 255, 255, 0.9);
        --bg-card: #ffffff;
        --bg-input: #e9ecef;
        --bg-categoria: #e0e0e0;
        --bg-modal: #ffffff;
        --bg-footer: #eaeaea;
        
        --text-primary: #1f1f1f;
        --text-secondary: #555555;
        --text-muted: #666666;
        --border-color: rgba(0, 0, 0, 0.08);
    }
}

/*==========================
RESET & BASE
===========================*/

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    padding-top: 95px;
    transition: background 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Evita rolagem de fundo ao abrir modais ou carrinho */
body.carrinho-aberto,
body.modal-aberto {
    overflow: hidden;
}

/*==========================
HEADER
===========================*/

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
    z-index: 999;
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: padding 0.3s ease, background 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
}

.logo h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.logo span {
    color: var(--text-muted);
    font-size: 14px;
    display: block;
}

/* Header compacto ao rolar (Desktop) */
header.compacto {
    padding: 10px 8%;
}

header.compacto .logo img {
    width: 45px;
    height: 45px;
}

header.compacto .logo span {
    display: none;
}

header.compacto .logo h1 {
    font-size: 22px;
}

header.compacto .search-box {
    width: 420px;
}

/*==========================
PESQUISA
===========================*/

.search-box {
    width: 350px;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    border-radius: var(--radius-pill);
    padding: 12px 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1005;
    pointer-events: auto;
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 123, 0, 0.15);
}

.search-box input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    margin-left: 10px;
    font-size: 15px;
    -webkit-appearance: none;
    appearance: none;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box i {
    color: var(--primary-color);
    font-size: 18px;
}

/*==========================
BOTÃO CARRINHO (FLUTUANTE)
===========================*/

.cart-button {
    position: fixed;
    top: 20px;
    right: 25px;
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: #ffffff;
    cursor: pointer;
    font-size: 20px;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cart-button:hover {
    transform: scale(1.08);
    background: #ff6a00;
}

.cart-button span {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #ff3b30;
    color: #ffffff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid var(--bg-body);
}

body.carrinho-aberto .cart-button,
body.modal-aberto .cart-button {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: scale(0.8);
}

/*==========================
HERO
===========================*/

.hero {
    position: relative;
    height: calc(100vh - 95px);
    min-height: 450px;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.55) 50%,
        var(--bg-body) 100%
    );
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    max-width: 650px;
    color: #ffffff;
    z-index: 2;
}

.hero h2 {
    font-size: Clamp(32px, 5vw, 65px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
}

.hero p {
    font-size: Clamp(16px, 2vw, 22px);
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-info {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.hero-info span {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: var(--whatsapp-color);
    color: #ffffff;
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

/*==========================
CATEGORIAS
===========================*/

.categorias {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 40px 20px;
    flex-wrap: wrap;
}

.categoria {
    border: none;
    cursor: pointer;
    padding: 12px 26px;
    border-radius: var(--radius-pill);
    background: var(--bg-categoria);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.categoria:hover,
.categoria.ativo {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 123, 0, 0.25);
}

/*==========================
MAIN & PRODUTOS (DESKTOP)
===========================*/

main {
    margin-top: 40px;
}

.produtos {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding-bottom: 80px;
    transition: opacity 0.4s ease;
}

.produtos.fade-out {
    opacity: 0;
}

.produtos.fade-in {
    opacity: 1;
}

/* CARDS NO PC */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 123, 0, 0.4);
    box-shadow: var(--shadow-lg);
}

.imagem-produto {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 75%; /* Proporção 4:3 */
}

.card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover img {
    transform: scale(1.08);
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-gradient);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
}

.avaliacao {
    margin-bottom: 10px;
    color: #ffb300;
    font-weight: 600;
    font-size: 14px;
}

.precos {
    margin-top: auto;
}

.linha-preco {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0;
}

.linha-preco span {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
}

.linha-preco strong {
    color: var(--success-color);
    font-size: 20px;
}

.preco {
    font-size: 26px;
    color: var(--success-color);
    font-weight: 700;
}

.card button {
    width: 100%;
    margin-top: 18px;
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-md);
}

.card button:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 22px rgba(255, 123, 0, 0.45);
}

/*==========================
BANNER
===========================*/

#banner {
    transition: opacity 0.8s ease;
}

.fade {
    opacity: 0;
}

/*==========================
CARRINHO
===========================*/

.carrinho {
    position: fixed;
    right: -420px;
    top: 0;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 25px 25px 100px 25px !important; /* DÁ UMA FOLGA GRANDE DE 100px NO FINAL PARA O BOTÃO APARECER */
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    border-left: 1px solid var(--border-color);
    
    /* Garante que o painel role perfeitamente de cima a baixo */
    overflow-y: auto !important; 
    box-sizing: border-box;
}

.carrinho.ativo {
    right: 0;
}

.carrinho-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.carrinho-header h2 {
    font-size: 22px;
}

.fechar-carrinho {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.fechar-carrinho:hover {
    background: rgba(255, 123, 0, 0.15);
    color: var(--primary-color);
    transform: rotate(90deg);
}

#itens-carrinho {
    display: block;
    width: 100%;
}

.item-carrinho {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 15px;
}

.item-info {
    flex: 1;
}

.item-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.item-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

.item-acoes {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.item-preco {
    font-size: 18px;
    font-weight: 700;
    color: var(--success-color);
}

.remover-item {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 77, 79, 0.1);
    color: #ff4d4f;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.remover-item:hover {
    background: #ff4d4f;
    color: #ffffff;
    transform: scale(1.1);
}

/*==========================
MODAL E FORMULÁRIOS
===========================*/

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.modal.ativo {
    display: flex;
}

.modal-content {
    position: relative;
    background: var(--bg-modal);
    width: 440px;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius-lg);
    padding: 30px;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    animation: zoom 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-lg);
}

.fechar, .fechar-pagamento {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 22px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.fechar:hover, .fechar-pagamento:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: rotate(90deg);
}

@keyframes zoom {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.opcoes label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    margin: 10px 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    background: var(--bg-input);
    transition: border-color 0.2s ease;
}

.opcoes label:hover {
    border-color: var(--primary-color);
}

.controle {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.controle button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.controle button:active {
    transform: scale(0.9);
}

textarea {
    width: 100%;
    height: 90px;
    padding: 12px;
    margin-top: 10px;
    border-radius: var(--radius-md);
    resize: none;
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    outline: none;
    font-family: inherit;
    font-size: 14px;
}

textarea:focus {
    border-color: var(--primary-color);
}

#confirmar,
#btnWhatsapp,
#confirmarPagamento {
    width: 100%;
    margin-top: 25px;
    padding: 16px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#confirmarPagamento {
    margin-top: 30px;
}

#confirmar:hover,
#btnWhatsapp:hover,
#confirmarPagamento:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 123, 0, 0.45);
}

.preco-unico {
    font-size: 30px;
    font-weight: 700;
    color: var(--success-color);
    text-align: center;
    margin: 10px 0 20px;
}

#trocoArea {
    margin-top: 20px;
}

.troco-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.troco-box:hover {
    border-color: var(--primary-color);
}

.troco-box input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary-color);
}

.troco-box strong {
    display: block;
    font-size: 16px;
    color: var(--text-primary);
}

.troco-box small {
    display: block;
    color: var(--text-secondary);
    margin-top: 2px;
    font-size: 13px;
}

#valorTroco {
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-size: 15px;
    outline: none;
    display: none;
    transition: all 0.3s ease;
}

#valorTroco:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 123, 0, 0.15);
}

/*==========================
FOOTER
===========================*/

footer {
    background: var(--bg-footer);
    padding: 50px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-logo img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.footer-social {
    margin: 25px 0;
}

.footer-social a {
    color: var(--text-primary);
    font-size: 24px;
    margin: 0 10px;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-social a:hover {
    color: var(--primary-color);
}

/* ===================================================
   RESPONSIVO (MOBILE E TABLETS - MAX 768px)
=================================================== */

@media (max-width: 768px) {

    body {
        padding-top: 135px;
    }

    /* HEADER */
    header {
        padding: 12px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .logo {
        width: 100%;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 4px;
    }

    .logo img {
        width: 50px;
        height: 50px;
    }

    .logo h1 {
        font-size: 20px;
    }

    .logo span {
        font-size: 12px;
    }

    /* PESQUISA MOBILE */
    .search-box {
        width: 100%;
        padding: 10px 16px;
    }

    .search-box input {
        font-size: 16px !important; /* Previne zoom no iOS Safari */
    }

    /* BOTÃO CARRINHO FLUTUANTE (MOBILE) */
    .cart-button {
        top: auto !important;
        bottom: 20px !important;
        right: 20px !important;
        left: auto !important;
        width: 58px;
        height: 58px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }

    /* HEADER SCROLL MOBILE */
    header.header-scroll {
        padding: 8px 16px;
    }

    header.header-scroll .logo img,
    header.header-scroll .logo span {
        display: none;
    }

    header.header-scroll .logo h1 {
        font-size: 16px;
    }

    header.header-scroll .search-box {
        margin-top: 0;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* HERO */
    .hero {
        height: 55vh;
        min-height: 380px;
    }

    .hero-content {
        left: 16px;
        right: 16px;
        max-width: none;
        transform: translateY(-45%);
    }

    .hero-info {
        gap: 8px;
        flex-direction: column;
    }

    .hero-info span {
        width: fit-content;
        font-size: 12px;
        padding: 6px 12px;
    }

    .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }

    /* CATEGORIAS HORIZONTAIS */
    .categorias {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 15px 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .categorias::-webkit-scrollbar {
        display: none;
    }

    .categoria {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 10px 20px;
        font-size: 14px;
    }

    /* PRODUTOS MOBILE (ESTILO IFOOD LATERAL) */
    .produtos {
        width: 100%;
        padding: 0 16px 100px 16px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .card {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        background: var(--bg-card);
        border-radius: var(--radius-md);
        padding: 12px;
        box-shadow: var(--shadow-sm);
        border: 1px solid var(--border-color);
        position: relative;
        overflow: hidden;
    }

    .card:hover {
        transform: none;
    }

    .imagem-produto {
        width: 100px;
        height: 100px;
        padding-top: 0; /* Anula proporção desktop */
        flex-shrink: 0;
        border-radius: var(--radius-sm);
        position: relative;
    }

    .card img {
        position: static;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .card:hover img {
        transform: none;
    }

    .badge {
        top: 4px;
        left: 4px;
        font-size: 9px;
        padding: 3px 6px;
    }

    .card-body {
        padding: 0 0 0 12px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .card h3 {
        font-size: 15px;
        font-weight: 600;
        line-height: 1.2;
        margin-bottom: 2px;
    }

    .card p {
        font-size: 12px;
        margin: 0 0 6px 0;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2; /* Adicione esta linha */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .avaliacao {
        margin: 0 0 4px 0;
        font-size: 11px;
    }

    .precos {
        margin-top: auto;
    }

    .linha-preco {
        font-size: 12px;
        margin: 0;
    }

    .linha-preco span {
        font-size: 12px;
    }

    .linha-preco strong {
        font-size: 15px;
    }

    .preco {
        font-size: 16px;
    }

    .card button {
        width: auto;
        margin-top: 6px;
        padding: 8px 14px;
        border-radius: var(--radius-pill);
        font-size: 12px;
        align-self: flex-end;
    }

    .carrinho {
        width: 100%;
        right: -100%;
    }
}

/* ===================================================
   CONTAINER DO HERO (LINHA ÚNICA NO PC)
=================================================== */
.hero-info {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: nowrap; /* Mantém tudo na mesma linha no PC */
    align-items: center;
}

/* ===================================================
   ITENS DE INFORMAÇÃO (ENDEREÇO E TELEFONE)
=================================================== */
.hero-info > div, 
.hero-info a, 
.hero-info span {
    white-space: nowrap; /* Impede que o texto interno quebre linha */
    flex-shrink: 0;      /* Impede que os elementos encolham */
}

/* Garante tamanho estável para as caixas de endereço e telefone */
.hero-info .info-item, 
.hero-info .hero-badge {
    white-space: nowrap;
    min-width: 160px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
}

/* ===================================================
   INDICADOR DE STATUS DA LOJA (MESMA POSIÇÃO DO VERMELHO/VERDE)
=================================================== */
.status-loja {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    
    /* Largura fixa idêntica para o status no PC */
    width: 275px; 
    height: 42px;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Bolinha de status indicadora */
.status-loja::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* Estado: Aberto / Modo Teste Aberto */
.status-loja.aberto {
    color: #22c55e;
    background: rgba(30, 158, 74, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
}
.status-loja.aberto::before {
    background-color: #22c55e;
    box-shadow: 0 0 6px #22c55e;
}

/* Estado: Fechado / Fora de Expediente */
.status-loja.fechado {
    color: #ef4444;
    background: rgba(255, 77, 79, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}
.status-loja.fechado::before {
    background-color: #ef4444;
}

/* Oculta tag antiga span se houver */
.status-loja .status-ponto {
    display: none;
}

/* ===================================================
   AJUSTES RESPONSIVOS PARA CELULAR (TUDO À ESQUERDA)
=================================================== */
@media (max-width: 768px) {
    .hero-info {
        flex-wrap: wrap; 
        gap: 8px;
        justify-content: flex-start; /* Alinha tudo rigidamente à esquerda */
        align-items: flex-start;
    }

    .hero-info > div, 
    .hero-info a, 
    .hero-info span {
        white-space: normal; 
    }

    .status-loja {
        width: fit-content;
        min-width: auto;
        height: auto;
        font-size: 12px;
        padding: 6px 12px;
        gap: 6px;
        justify-content: flex-start;
    }
    
    .status-loja::before {
        width: 6px;
        height: 6px;
    }
}
/* Opções de Entrega no Carrinho */
.tipo-entrega-container {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.btn-tipo-entrega {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-tipo-entrega.ativo {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.select-bairro {
    width: 100%;
    padding: 12px;
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 15px;
    outline: none;
}

.resumo-totais {
    border-top: 1px dashed var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
}

.linha-resumo {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.linha-resumo.total {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 10px;
}

/* Seção do Histórico de Pedidos */
.historico-container {
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin: 30px auto;
    width: 90%;
    max-width: 1400px;
    border: 1px solid var(--border-color);
}

.historico-container h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.card-historico {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-input);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    gap: 10px;
}

.btn-repetir {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
}

/* Modal Pedido Confirmado */
.detalhes-confirmacao {
    text-align: center;
}

.detalhes-confirmacao i {
    font-size: 50px;
    color: var(--success-color);
    margin-bottom: 15px;
}

.comprovante-box {
    background: var(--bg-input);
    border-radius: var(--radius-md);
    padding: 15px;
    text-align: left;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.6;
}

/*==========================
CAMPOS DE FORMULÁRIO E ENDEREÇO
===========================*/

.campo-grupo {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.campo-grupo label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.campo-linha {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.campo-linha input:nth-child(1) { 
    flex: 1; 
}

.campo-linha input:nth-child(2) { 
    flex: 2; 
}

.campos-endereco input,
.campo-grupo input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.campos-endereco input::placeholder,
.campo-grupo input::placeholder {
    color: var(--text-muted);
}

.campos-endereco input:focus,
.campo-grupo input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 123, 0, 0.15);
}

/* ================= ESTILOS DO MENU ADMIN ================= */
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-menu-hamburguer {
    background: transparent;
    border: none;
    color: var(--text-color, #fff);
    font-size: 22px;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
}

.btn-menu-hamburguer:hover {
    background: rgba(255, 255, 255, 0.1);
}

.painel-admin {
    left: -100%;
    right: auto;
    transition: left 0.3s ease;
}

.painel-admin.ativo {
    left: 0;
}

.admin-body {
    padding: 15px;
    overflow-y: auto;
    max-height: calc(100vh - 70px);
}

.admin-boas-vindas {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card, #222);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.btn-sair {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.admin-abas {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.btn-aba {
    flex: 1;
    background: var(--bg-card, #2a2a2a);
    color: var(--text-secondary);
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
}

.btn-aba.ativo {
    background: var(--primary-color, #e67e22);
    color: white;
}

.btn-admin-acao {
    width: 100%;
    background: var(--success-color, #27ae60);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.lista-admin-scroll {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 62vh !important; /* Aumenta o campo de visão para mostrar mais produtos na tela */
    overflow-y: auto;
}

.item-admin-card {
    background: var(--bg-card, #222);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color, #333);
}

.item-admin-card h4 {
    font-size: 14px;
    margin-bottom: 6px;
}

.inputs-preco-flex {
    display: flex;
    gap: 8px;
    align-items: center;
}

.inputs-preco-flex input {
    padding: 6px;
    border-radius: 4px;
    border: 1px solid var(--border-color, #444);
    background: var(--bg-input, #111);
    color: var(--text-color, #fff);
    width: 100%;
}

/* ================= UPLOAD DE IMAGEM (DRAG & DROP) ================= */
.upload-drop-zone {
    border: 2px dashed var(--border-color, #444);
    background: var(--bg-card, #1a1a1a);
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-drop-zone.dragover {
    border-color: var(--primary-color, #e67e22);
    background: rgba(230, 126, 34, 0.05);
}

.upload-drop-zone p {
    margin: 0;
}

/* ================= BOTÃO DE REMOVER ITEM (ADMIN) ================= */
.btn-remover-item {
    background: transparent;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.btn-remover-item:hover {
    background: #e74c3c;
    color: white;
}

/* Garante que o painel admin se comporte como uma caixa flexível de altura total */
aside.painel-admin {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

/* O corpo interno do admin também deve ser flex para esticar até embaixo */
.admin-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    padding-bottom: 10px;
}

/* O painel de gerenciamento interno preenche o espaço e empurra o rodapé */
#painelGerenciamento {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    overflow: hidden;
}

/* ===================================================
   CORREÇÃO DEFINITIVA DA TELA E ROLAGEM DO PAINEL ADMIN (MOBILE)
=================================================== */
@media (max-width: 768px) {
    /* Garante que o painel admin ocupe a tela toda e permita scroll nativo */
    aside.painel-admin.ativo {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        z-index: 999999 !important;
        display: flex !important; /* Mantém flex para respeitar a lógica de esconder/mostrar do JS */
        flex-direction: column !important;
    }

    /* Corpo interno organizado para fluir de cima a baixo com folga no final */
    aside.painel-admin .admin-body {
        height: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
        padding: 15px 12px 140px 12px !important;
        flex: 1 !important;
    }

    /* Respeita o JavaScript: se o painel de gerenciamento estiver oculto (ex: na tela de login), continua oculto */
    #painelGerenciamento {
        height: auto !important;
        overflow: visible !important;
        /* O display original controlado pelo JS não é sobrescrito aqui para não bugar o login */
    }

    /* Abas individuais visíveis apenas quando ativas, com espaço seguro embaixo */
    #abaNovo, 
    #abaPrecos {
        height: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
        padding-bottom: 100px !important;
    }

    /* Lista de preços totalmente livre para rolar sem cortes */
    .lista-admin-scroll, 
    .container-lista-precos {
        max-height: none !important;
        overflow-y: visible !important;
    }

    /* Ajuste de inputs para evitar zoom indesejado no iOS */
    .inputs-preco-flex {
        flex-direction: column;
        gap: 6px;
    }

    .inputs-preco-flex div {
        width: 100%;
    }

    .inputs-preco-flex input,
    #abaNovo input, 
    #abaNovo select,
    #abaNovo textarea,
    .painel-admin input {
        font-size: 16px !important;
        padding: 12px;
    }

    .admin-abas {
        gap: 8px;
    }

    .btn-aba {
        padding: 10px;
        font-size: 14px;
    }
}
/* ===================================================
   COR CORRETA DOS TRÊS PAUZINHOS NO MODO CLARO
=================================================== */
@media (prefers-color-scheme: light) {
    /* Força a cor preta em qualquer elemento de botão de menu ou ícone */
    .menu-hamburguer, 
    .btn-menu-admin, 
    #btnAbrirAdmin,
    .icone-menu,
    .btn-menu-hamburguer,
    [class*="hamburguer"],
    [class*="menu-"],
    [id*="menu"] {
        color: #000000 !important;
        fill: #000000 !important;
        stroke: #000000 !important;
    }

    /* Se o ícone for desenhado com tags <span> (linhas do hambúrguer) */
    .menu-hamburguer span, 
    .btn-menu-admin span,
    #btnAbrirAdmin span,
    .btn-menu-hamburguer span,
    [class*="hamburguer"] span,
    [class*="menu"] span {
        background-color: #000000 !important;
    }

    /* Se o ícone for uma imagem SVG ou ícone em fonte */
    .menu-hamburguer i, 
    .btn-menu-admin i,
    #btnAbrirAdmin i,
    .btn-menu-hamburguer i,
    .menu-hamburguer svg,
    .btn-menu-hamburguer svg {
        color: #000000 !important;
        fill: #000000 !important;
    }
}

/* =0==================================================
   PADRONIZAÇÃO DOS INPUTS DE PREÇO (ALTERAR PREÇOS)
=================================================== */
.lista-admin-scroll input[type="text"],
.lista-admin-scroll input[type="number"],
.container-lista-precos input[type="text"],
.container-lista-precos input[type="number"],
.inputs-preco-flex input {
    width: 100% !important;
    padding: 12px 14px !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-color) !important;
    background: var(--bg-input) !important;
    color: var(--text-primary) !important;
    font-size: 14px !important;
    font-family: inherit !important;
    outline: none !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* Efeito de foco igual aos outros campos do site */
.lista-admin-scroll input:focus,
.container-lista-precos input:focus,
.inputs-preco-flex input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(255, 123, 0, 0.15) !important;
}

/* Previne zoom automático indesejado no iOS ao focar no celular */
@media (max-width: 768px) {
    .lista-admin-scroll input,
    .container-lista-precos input,
    .inputs-preco-flex input {
        font-size: 16px !important;
        padding: 12px !important;
    }
}


.search-box button {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Quando a classe 'impresso' for adicionada ao card, a barra lateral fica verde */
.card-pedido.impresso {
    border-left-color: #2e7d32 !important; /* Verde destacado */
}

.aviso-ilustrativo {
    text-align: center;
    width: 100%;
    display: block;
    color: #a0a0a0;
    font-size: 0.85rem;
    font-style: italic;
    margin: 20px auto 10px auto;
}