:root {
    --primary: #FF4500; /* Laranja Pizza */
    --dark: #1A1A1A;
    --light: #F9F9F9;
    --gray: #888;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body { background-color: var(--light); padding-bottom: 80px; /* Espaço para o carrinho */ }

/* Hero Section */
.hero {
    background-image: url('https://images.unsplash.com/photo-1513104890138-7c749659a591?q=80&w=1000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    height: 300px;
    position: relative;
}

.overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.container { width: 92%; max-width: 1000px; margin: 0 auto; }

.header-content { color: white; padding-bottom: 20px; }
.header-content h1 { font-size: 1.8rem; margin-bottom: 5px; }
.header-content p { font-size: 0.9rem; opacity: 0.9; margin-bottom: 10px; }

.status-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(0,0,0,0.6); padding: 4px 10px; border-radius: 20px;
    font-size: 0.8rem; margin-bottom: 10px; backdrop-filter: blur(4px);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background-color: #00ff00; }
.closed .dot { background-color: red; }

.btn-cta {
    background: var(--primary); color: white; padding: 8px 16px;
    text-decoration: none; border-radius: 6px; font-weight: 500; font-size: 0.9rem;
}

/* Navegação Sticky */
.sticky-nav {
    position: sticky; top: 0; background: white; z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); padding: 10px 0;
    overflow-x: auto; white-space: nowrap;
}

.sticky-nav ul {
    display: flex; gap: 15px; padding: 0 15px; list-style: none;
}

.sticky-nav li {
    padding: 8px 16px; border-radius: 20px; background: #eee;
    font-size: 0.9rem; color: var(--dark); cursor: pointer; transition: 0.3s;
}

.sticky-nav li.active { background: var(--dark); color: white; }

/* --- Botão Especial Meia a Meia (NOVO) --- */
.special-btn-area {
    margin-top: 20px;
    margin-bottom: 10px;
    display: none; /* Controlado via JS */
}

.btn-half {
    width: 100%;
    background: linear-gradient(135deg, #FF4500, #ff7b00);
    border: none;
    padding: 15px;
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
    transition: transform 0.2s;
    text-align: left;
}
.btn-half:active { transform: scale(0.98); }
.btn-half .icon { font-size: 1.5rem; margin-right: 15px; }
.btn-half div { flex: 1; }
.btn-half strong { display: block; font-size: 1rem; }
.btn-half small { font-size: 0.8rem; opacity: 0.9; }


/* Grid de Produtos */
.products-grid {
    display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px;
}
@media (min-width: 768px) { .products-grid { grid-template-columns: 1fr 1fr; } }

.product-card {
    background: white; border-radius: 12px; padding: 12px;
    display: flex; gap: 15px; box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.product-card:active { transform: scale(0.98); }

.product-img {
    width: 100px; height: 100px; border-radius: 8px; object-fit: cover;
}

.product-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.product-info h3 { font-size: 1rem; color: var(--dark); }
.product-info p { font-size: 0.8rem; color: var(--gray); margin: 4px 0; line-height: 1.2; }

.price-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.price { font-weight: 700; color: var(--dark); }

.btn-add {
    background: white; border: 1px solid var(--primary); color: var(--primary);
    width: 30px; height: 30px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; cursor: pointer; font-weight: bold;
}
.btn-add:hover { background: var(--primary); color: white; }

/* Carrinho Flutuante */
.cart-bar {
    position: fixed; bottom: 15px; left: 50%; transform: translateX(-50%);
    width: 92%; max-width: 600px; background: var(--dark); color: white;
    padding: 15px 20px; border-radius: 50px; display: flex;
    justify-content: space-between; align-items: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3); cursor: pointer; z-index: 100;
}

.cart-total { display: flex; align-items: center; gap: 8px; font-weight: 700; }

/* Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 200; display: none;
    align-items: flex-end; /* Mobile bottom sheet look */
}
.modal-overlay.open { display: flex; }

.modal-content {
    background: white; width: 100%; max-width: 600px; margin: 0 auto;
    border-radius: 20px 20px 0 0; padding: 25px; max-height: 80vh; overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-header button { background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* --- Item do Carrinho (REFORMULADO) --- */
.cart-item {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    margin-bottom: 10px; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 10px; 
}
.item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}
.qty-badge {
    background: var(--dark);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}
.cart-item-title { font-size: 0.9rem; font-weight: 600; line-height: 1.2; }

.item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}
.cart-item-price { font-size: 0.9rem; color: var(--gray); }

.qty-controls {
    display: flex;
    gap: 5px;
}
.qty-controls button {
    background: #eee;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
}
.qty-controls button:hover { background: #ddd; }

/* --- Inputs e Botão Finalizar --- */
.input-group { margin-bottom: 15px; }
.input-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; }
.input-group input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; background: #f9f9f9; }

/* === BOTÃO WHATSAPP CORRIGIDO === */
.btn-whatsapp {
    /* Estrutura Flexbox */
    width: 100%;
    display: flex;
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center;     /* Centraliza verticalmente */
    gap: 10px;               /* Espaço exato entre ícone e texto */
    
    /* Visual */
    background: #25D366;
    color: white;
    padding: 18px 22px;
    border: none;
    border-radius: 10px;
    min-height: 56px;
    
    /* Texto */
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.3);
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;
}

/* Garante que o ícone não empurre o texto */
.btn-whatsapp i {
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

/* Garante que o texto fique alinhado */
.btn-whatsapp span {
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

.btn-whatsapp { white-space: nowrap; }

/* Força o texto centralizado independentemente do ícone */
.btn-whatsapp {
    position: relative;
}

.btn-whatsapp span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-block;
}

.btn-whatsapp i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.btn-whatsapp:hover {
    background-color: #1ebc57;
    transform: translateY(-2px);
}

.btn-whatsapp:active {
    transform: scale(0.98);
}

.btn-whatsapp:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* --- SEÇÃO QUEM SOMOS --- */
.about-section {
    display: none; /* Começa escondido */
    padding: 60px 0;
    margin-top: 40px;
    background-color: white;
    border-top: 1px solid #eee;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text { flex: 1; }
.about-text small {
    color: var(--primary); font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; font-size: 0.8rem;
}
.about-text h2 {
    font-size: 2rem; color: var(--dark); margin: 10px 0 20px; line-height: 1.2;
}
.about-text p { color: var(--gray); margin-bottom: 15px; line-height: 1.6; }

.features { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 20px; }
.features span {
    background: #FFF0E6; color: var(--primary); padding: 5px 12px;
    border-radius: 20px; font-size: 0.85rem; font-weight: 600;
}

.about-image { flex: 1; }
.about-image img {
    width: 100%; border-radius: 20px; box-shadow: var(--shadow);
    transform: rotate(2deg); border: 4px solid white;
}

/* --- Estilos do Modal de Meia a Meia (NOVO) --- */
.select-group { margin-bottom: 10px; }
.select-group select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    font-size: 1rem;
    appearance: none; /* Remove estilo padrão do browser */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
}

.half-price-preview {
    background: #eee;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    color: var(--dark);
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Footer */
.footer {
    text-align: center; padding: 30px; color: #999;
    font-size: 0.8rem; background: var(--light);
}

/* Responsividade para Celular */
@media (max-width: 768px) {
    .about-content { flex-direction: column-reverse; text-align: center; }
    .features { justify-content: center; }
    .about-image img { transform: rotate(0deg); max-width: 80%; }
}