:root {
    --primary: #e8440a;
    --primary-dark: #c43508;
    --primary-light: #fff0eb;
    --secondary: #1e1e1e;
    --accent: #f5a623;
    --bg: #f2f2f7;
    --white: #ffffff;
    --gray-light: #f0f0f0;
    --gray: #999;
    --text: #333;
    --text-light: #666;
    --whatsapp: #25D366;
    --whatsapp-dark: #1da851;
    --border: #e0e0e0;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    --radius: 14px;
    --radius-sm: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
}

/* ─── Hero Header ─────────────────────────────────────────── */
header {
    background: linear-gradient(135deg, #c43508 0%, #e8440a 55%, #f5a623 100%);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-overlay {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 20px;
    max-width: 640px;
    margin: 0 auto;
}

.hero-overlay img {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.hero-text {
    color: white;
}

.hero-text h1 {
    font-size: 1.75rem;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 0.9rem;
    opacity: 0.88;
    margin: 5px 0 12px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.78rem;
    color: white;
    font-weight: 500;
    line-height: 1.7;
    text-align: center;
}

.hero-badge-horario {
    font-size: 0.72rem;
    opacity: 0.88;
}

/* ─── Steps Bar ───────────────────────────────────────────── */
.steps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 12px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 20;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gray-light);
    color: var(--gray);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.step.active .step-num {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(232, 68, 10, 0.4);
}

.step.done .step-num {
    background: var(--whatsapp);
    color: white;
}

.step-label {
    font-size: 0.68rem;
    color: var(--gray);
    font-weight: 500;
}

.step.active .step-label,
.step.done .step-label {
    color: var(--text);
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 8px 14px;
    max-width: 60px;
    transition: background 0.3s ease;
}

.step-line.done {
    background: var(--whatsapp);
}

/* ─── Container ───────────────────────────────────────────── */
.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 16px 16px 90px;
}

/* ─── Sections ────────────────────────────────────────────── */
section {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 14px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.section-icon {
    font-size: 1.6rem;
    background: var(--primary-light);
    padding: 10px;
    border-radius: var(--radius-sm);
    line-height: 1;
    flex-shrink: 0;
}

.section-header h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--secondary);
}

.section-sub {
    font-size: 0.78rem;
    color: var(--gray);
    margin-top: 2px;
}

/* ─── Cardápio Radio Cards ────────────────────────────────── */
.cardapio-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    background: white;
}

.radio-card input[type="radio"] {
    display: none;
}

.radio-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.radio-card:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
}

.radio-card-body {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--secondary);
}

/* Itens do cardápio em linhas separadas */
#label-opcao1,
#label-opcao2 {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cardapio-titulo {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 4px;
}

.cardapio-linha {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.7;
}

.cardapio-linha::before {
    content: '• ';
    color: var(--primary);
    font-weight: 700;
}

.radio-icon {
    font-size: 1.3rem;
}

.radio-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.radio-card:has(input:checked) .radio-check {
    border-color: var(--primary);
    background: var(--primary);
}

.radio-card:has(input:checked) .radio-check::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    display: block;
}

/* ─── Marmitas ────────────────────────────────────────────── */
.marmita-opcoes {
    display: flex;
    gap: 12px;
}

.marmita {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 18px 10px 14px;
    background: var(--gray-light);
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.marmita:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(232, 68, 10, 0.15);
}

.marmita.destaque {
    background: var(--primary-light);
    border-color: var(--primary);
}

.badge-popular {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 0.62rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.marmita-icon {
    font-size: 2rem;
    margin-bottom: 6px;
}

.marmita h3 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 4px;
}

.preco {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

/* ─── Contador ────────────────────────────────────────────── */
.contador {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.contador button {
    background: var(--primary);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.15s ease;
    font-weight: 500;
    flex-shrink: 0;
}

.contador button:hover {
    background: var(--primary-dark);
    transform: scale(1.12);
}

.contador button:active {
    transform: scale(0.92);
}

.contador span {
    font-size: 1.1rem;
    font-weight: 700;
    width: 28px;
    text-align: center;
    color: var(--secondary);
    transition: transform 0.15s ease;
}

.contador span.bump {
    animation: bump 0.2s ease;
}

@keyframes bump {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); }
}

/* ─── Bebidas ─────────────────────────────────────────────── */
.bebidas-opcoes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bebida {
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: border 0.2s ease, transform 0.2s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bebida:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Área da imagem do produto */
.bebida-header {
    width: 100%;
    padding: 16px 12px 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fafafa;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.bebida-logo-area {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bebida-logo-area img {
    height: 100%;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
    transition: transform 0.2s ease;
}

.bebida:hover .bebida-logo-area img {
    transform: scale(1.06);
}

.bebida-can-icon {
    font-size: 3rem;
    line-height: 1;
}

/* Rodapé com nome, preço e contador */
.bebida-footer {
    padding: 10px 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    background: white;
}

.bebida-nome {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    text-align: center;
    margin-top: 2px;
}

.bebida-vol {
    font-size: 0.72rem;
    color: var(--gray);
    font-weight: 400;
    margin-bottom: 4px;
}

.bebida-preco {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

/* ─── Botão Continuar ─────────────────────────────────────── */
.continuar-wrapper {
    margin-bottom: 14px;
}

#continuar-pedido-button {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(232, 68, 10, 0.3);
}

#continuar-pedido-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(232, 68, 10, 0.4);
}

#total-parcial-btn {
    font-size: 0.88rem;
    opacity: 0.9;
    font-weight: 500;
}

/* ─── Formulário ──────────────────────────────────────────── */
.form-section {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 14px;
    animation: slideUp 0.35s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.93rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 68, 10, 0.1);
}

.form-group input.valid {
    border-color: var(--whatsapp);
}

.form-group input.invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 12px;
}

fieldset {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 16px;
}

fieldset legend {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-light);
    padding: 0 6px;
}

.troco-container {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 6px 0;
}

.troco-container label {
    font-size: 0.9rem;
    margin-right: 4px;
}

/* ─── Resumo do Pedido ────────────────────────────────────── */
.resumo-pedido {
    background: var(--primary-light);
    border: 1.5px solid rgba(232, 68, 10, 0.2);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 16px;
}

.resumo-pedido h3 {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary);
}

#resumo-itens {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

#resumo-itens p {
    padding: 4px 0;
    border-bottom: 1px dashed rgba(232, 68, 10, 0.15);
}

#resumo-itens p:last-child {
    border-bottom: none;
}

.resumo-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1rem;
    color: var(--secondary);
    padding-top: 10px;
    border-top: 1.5px solid rgba(232, 68, 10, 0.2);
    margin-top: 6px;
}

.aviso-whatsapp {
    font-size: 0.78rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* ─── Botão WhatsApp ──────────────────────────────────────── */
.btn-whatsapp {
    width: 100%;
    background: var(--whatsapp);
    color: white;
    border: none;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    animation: pulse-whatsapp 2.5s infinite;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.4);
    animation: none;
}

@keyframes pulse-whatsapp {
    0%, 100% { box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3); }
    50%       { box-shadow: 0 4px 22px rgba(37, 211, 102, 0.55); }
}

/* ─── Sticky Bar ──────────────────────────────────────────── */
.sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-bar.hidden {
    transform: translateY(110%);
}

.sticky-bar-info {
    display: flex;
    flex-direction: column;
}

.sticky-bar-label {
    font-size: 0.75rem;
    color: var(--gray);
}

.sticky-bar-total {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
}

.sticky-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 11px 26px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(232, 68, 10, 0.3);
}

.sticky-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.04);
}

/* ─── Footer ──────────────────────────────────────────────── */
footer {
    text-align: center;
    padding: 32px 20px;
    background: var(--secondary);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.84rem;
    line-height: 2;
}

.footer-dev {
    font-size: 0.72rem;
    opacity: 0.4;
    margin-top: 8px;
    line-height: 1;
}

.footer-dev a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-dev a:hover {
    opacity: 0.8;
}

/* ─── Responsividade ──────────────────────────────────────── */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.4rem;
    }

    section {
        padding: 14px;
    }

    .marmita-opcoes {
        gap: 6px;
    }

    .marmita {
        padding: 16px 4px 10px;
    }

    .marmita h3 {
        font-size: 0.75rem;
    }

    .marmita-icon {
        font-size: 1.6rem;
    }

    .preco {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    /* Botões do contador dentro das marmitas menores no mobile */
    .marmita .contador {
        gap: 4px;
    }

    .marmita .contador button {
        width: 26px;
        height: 26px;
        font-size: 1rem;
    }

    .marmita .contador span {
        width: 18px;
        font-size: 0.88rem;
    }

    .badge-popular {
        font-size: 0.54rem;
        padding: 2px 7px;
        top: -9px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
