/* ==========================================================================
   DESIGN SYSTEM & VARIÁVEIS GLOBAIS
   ========================================================================== */
:root {
    /* Cores Principais */
    --bg-color: #f7f3ee;
    --header-bg: #4a2818;
    --card-bg: #ffffff;
    --card-border: #eae3d9;

    /* Destaques e Ações */
    --primary: #c83232;
    --primary-hover: #b02626;
    --primary-light: #fff5f5;
    --whatsapp-green: #25d366;
    --whatsapp-hover: #1da851;

    /* Tipografia */
    --text-main: #222222;
    --text-muted: #666666;
    --font-heading: 'Georgia', serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Bordas e Sombras */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(74, 40, 24, 0.08);
}

/* ==========================================================================
   RESET BASE
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding-bottom: 120px;
}

#app {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   HEADER & BARRA DE NAVEGAÇÃO
   ========================================================================== */
header, .main-header, .header-pizzaria {
    width: 100%;
    background-color: var(--header-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 16px 28px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.logo img, .logo-img {
    max-width: 180px;
    height: auto;
    margin-bottom: 16px;
}

.header-desc {
    font-size: 14px;
    color: #e2d7ce;
    max-width: 520px;
    margin: 0 auto 14px auto;
    line-height: 1.5;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
}

.status-dot-off {
    width: 8px;
    height: 8px;
    background-color: #991515;
    border-radius: 50%;
    box-shadow: 0 0 8px #ee2121;
}

.header-container {
    width: 100%;
    max-width: 1100px;
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.main-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap-reverse;
    justify-content: space-around;
}

.nav-item {
    color: #e3d5ca;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 6px 12px;
    position: relative;
    white-space: nowrap;
    display: inline-block;
}

.nav-item:hover, .nav-item.active {
    color: #ffffff;
    background: transparent !important;
    border: none !important;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #c83232;
}

.header-actions {
    display: flex;
    align-items: center;
}

.cart-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
    position: relative;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.cart-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Títulos das Seções */
.titulo-secao-principal {
    margin-bottom: 24px;
    text-align: left;
}

.titulo-secao-principal h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
}

.titulo-secao-principal h1 span {
    font-style: italic;
    color: var(--primary);
    font-weight: 400;
}

.subtitulo-secao {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.section-title {
    font-size: 0.75rem;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin: 28px 0 12px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
}

/* ==========================================================================
   BARRA FLUTUANTE UNIFICADA (Cardápio Tradicional e Monte sua Pizza)
   ========================================================================== */
.checkout-bar,
.footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid var(--card-border);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    padding: 14px 24px;
    z-index: 1000;
    animation: slideUpFooter 0.3s ease-out;
}

.checkout-content,
.footer-content {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.selected-summary,
.info-resumo-footer {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.summary-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.summary-details,
.resumo-detalhe {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.summary-price,
.resumo-valor {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-left: 6px;
}

/* Botões Padronizados das Barras */
.btn-whatsapp,
.btn-submit {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 12px rgba(200, 50, 50, 0.2);
}

.btn-whatsapp:hover,
.btn-submit:hover:not(:disabled) {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-submit:disabled {
    background-color: #e0e0e0;
    color: #999999;
    cursor: not-allowed;
    box-shadow: none;
}

@keyframes slideUpFooter {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .checkout-bar,
    .footer-fixed {
        padding: 10px 16px;
    }
    .summary-details, .resumo-detalhe {
        font-size: 0.85rem;
    }
    .summary-price, .resumo-valor {
        font-size: 1.1rem;
    }
    .btn-whatsapp, .btn-submit {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

.whatsapp-redirect {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

.whatsapp-redirect:hover {
    transform: scale(1.2);
}