:root {
    --bg-primary: #1E060D;
    --bg-secondary: #2B0812;
    --card-bg: rgba(43, 8, 18, 0.85);
    --card-hover: rgba(61, 14, 26, 0.95);
    --accent-gold: #E6C594;
    --text-light: #F4EBE8;
    --text-muted: #D1B8C0;
    --whatsapp-green: #25D366;
    --whatsapp-hover: #1EBE5D;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-light);
    padding-top: 80px;
    overflow-x: hidden;
    width: 100%;
}

/* NAVBAR FIXA E RESPONSIVA */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(20, 4, 8, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    z-index: 1000;
    border-bottom: 1px solid rgba(230, 197, 148, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.brand {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent-gold);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-item {
    color: var(--text-light);
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-item:hover,
.nav-item.active {
    color: var(--accent-gold);
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

/* BOTÃO HAMBÚRGUER MOBILE */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--accent-gold);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* SEÇÕES */
.page-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 1. HERO COM BACKGROUND DE FUNDO */
#home {
    background: linear-gradient(rgba(30, 6, 12, 0.7), rgba(30, 6, 12, 0.85)),
        url('https://images.unsplash.com/photo-1578985545062-69928b1d9587?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    border-radius: 20px;
    margin: 20px auto;
    max-width: 1200px;
    padding: 80px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(230, 197, 148, 0.2);
}

.hero {
    max-width: 650px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero h1 {
    font-size: 3rem;
    color: var(--accent-gold);
    line-height: 1.2;
}

.hero p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.btn-hero {
    display: inline-block;
    background: var(--whatsapp-green);
    color: #FFF;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    width: fit-content;
    touch-action: manipulation;
}

.btn-hero:hover {
    background: var(--whatsapp-hover);
    transform: translateY(-2px);
}

/* 2. CARDÁPIO & SUB-ABAS */
h2 {
    font-size: 2.2rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    text-align: center;
}

.sub-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 25px 0 35px 0;
    flex-wrap: wrap;
}

.sub-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(230, 197, 148, 0.2);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    touch-action: manipulation;
}

.sub-tab-btn:hover,
.sub-tab-btn.active {
    background: var(--accent-gold);
    color: var(--bg-primary);
    font-weight: 600;
}

.category-grid {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.category-grid.active {
    display: grid;
}

/* CARD DE PRODUTO */
.product-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.product-card:hover {
    background: var(--card-hover);
    transform: translateY(-5px);
    border-color: rgba(230, 197, 148, 0.3);
}

.product-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.product-img:hover {
    transform: scale(1.02);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
    justify-content: space-between;
}

.product-card h3 {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.desc {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.adicionais {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
}

.adicionais label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 2px 0;
}

.adicionais input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    flex-shrink: 0;
    accent-color: var(--accent-gold);
}

.total-price {
    font-size: 1.1rem;
}

.calc-price {
    font-weight: 700;
    color: var(--accent-gold);
}

.btn-order {
    background: var(--whatsapp-green);
    color: #FFF;
    border: none;
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
    font-size: 1rem;
    touch-action: manipulation;
}

.btn-order:hover {
    background: var(--whatsapp-hover);
}

/* 3. DELIVERY */
.coming-soon-container {
    background: linear-gradient(rgba(30, 6, 12, 0.85), rgba(30, 6, 12, 0.9)),
        url('https://images.unsplash.com/photo-1526367790999-0150786686a2?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    text-align: center;
    padding: 90px 20px;
    border-radius: 20px;
    border: 1px solid rgba(230, 197, 148, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.badge-soon {
    background: #E74C3C;
    color: #FFF;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

/* 4. ENCOMENDAS */
#encomendas {
    background: linear-gradient(rgba(30, 6, 12, 0.85), rgba(30, 6, 12, 0.95)),
        url('https://images.unsplash.com/photo-1535141192574-5d4897c13136?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    border-radius: 20px;
    padding: 60px 40px;
    border: 1px solid rgba(230, 197, 148, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 1200px;
    margin: 0 auto;
}

.encomenda-form {
    background: var(--card-bg);
    border: 1px solid rgba(230, 197, 148, 0.2);
    padding: 35px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 650px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 18px;
    border-radius: 10px;
    gap: 10px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
}

.party-item {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-gold);
}

.party-qty {
    width: 65px;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #FFF;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
}

.party-total {
    font-size: 1.4rem;
    color: var(--accent-gold);
    font-weight: 700;
    text-align: right;
}

/* MODAL DE CONFIRMAÇÃO */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--accent-gold);
    padding: 25px;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(230, 197, 148, 0.2);
    padding-bottom: 10px;
}

.modal-header h3 {
    color: var(--accent-gold);
    font-size: 1.4rem;
    margin: 0;
}

.close-modal {
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: #FFF;
}

.modal-details-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.modal-item-title {
    font-size: 1.05rem;
    color: var(--text-light);
}

.modal-addons-title {
    margin-top: 8px;
    font-size: 0.88rem;
    color: var(--accent-gold);
}

.modal-addons-list {
    margin-left: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.modal-total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(230, 197, 148, 0.3);
    font-size: 1.2rem;
    color: var(--text-light);
}

.modal-total-price strong {
    color: var(--whatsapp-green);
}

.modal-inputs {
    margin-top: 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-inputs label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--accent-gold);
    font-weight: 500;
}

.modal-inputs label .required {
    color: #E74C3C;
}

.modal-inputs input[type="text"] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(230, 197, 148, 0.4);
    background: rgba(0, 0, 0, 0.5);
    color: #FFF;
    font-size: 0.95rem;
    margin-bottom: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.modal-inputs input[type="text"]:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 8px rgba(230, 197, 148, 0.3);
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    flex: 1;
    font-size: 0.95rem;
}

/* ZOOM DE IMAGEM */
#img-zoom-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#img-zoom-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    cursor: default;
}

/* BOTÃO WHATSAPP FLUTUANTE */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--whatsapp-green);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* BLOCO DE RECHEIOS */
.recheios-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 10px;
    margin: 10px 0;
    text-align: left;
}

.recheios-box .adicionais-titulo {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #e2e2e2;
    margin-bottom: 6px;
}

.recheios-box label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #ccc;
    margin-right: 10px;
    margin-bottom: 4px;
    cursor: pointer;
}

.recheios-box input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    flex-shrink: 0;
    accent-color: var(--whatsapp-green);
}

/* MEDIA QUERIES PARA ADAPTAÇÃO RESPONSIVA */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-container {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(20, 4, 8, 0.98);
        backdrop-filter: blur(15px);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
    }

    .nav-container.open {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 35px;
    }

    .nav-item {
        font-size: 1.3rem;
    }

    .page-section {
        padding: 40px 15px;
    }

    #home {
        padding: 50px 20px;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .encomenda-form {
        padding: 20px;
    }

    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .party-qty {
        width: 100%;
        padding: 10px;
    }

    .party-total {
        text-align: center;
        font-size: 1.2rem;
    }

    .modal-actions {
        flex-direction: column;
    }
}

button,
a,
input {
    touch-action: manipulation;
}