/* --- PALETA DE CORES E FONTES --- */
:root {
    --bg-pure: #ffffff;
    --text-dark: #2c221a; 
    --text-light: #6e6a64;
    --gold-dark: #bc9463;
    --gold-light: #c8b075;
    --gold-very-light: rgba(200, 176, 117, 0.12);
    --font-title: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --header-height: 220px; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { 
    font-family: var(--font-body); 
    background: linear-gradient(rgba(31, 25, 20, 0.93), rgba(18, 14, 11, 0.97)), url('imagens/paesnamesa.jpg') center/cover fixed;
    color: var(--bg-pure); 
    padding-bottom: 90px; 
    -webkit-font-smoothing: antialiased;
}

/* --- TOPO FIXO (HEADER) --- */
.top-bar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(24, 19, 15, 0.90); backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.header-brand-title {
    display: flex; flex-direction: column; align-items: center; padding: 22px 20px 12px;
    border-bottom: 1px solid rgba(188, 148, 99, 0.15);
}

.header-logo { height: 85px; object-fit: contain; margin-bottom: 10px; transition: transform 0.3s; }
.header-logo:hover { transform: scale(1.03); }

.header-main-title {
    font-family: var(--font-title); font-size: 1.9rem; color: var(--gold-light);
    font-weight: 700; text-align: center; letter-spacing: 0.5px;
}

/* NAVEGAÇÃO DE CATEGORIAS */
.category-nav {
    display: flex; overflow-x: auto; gap: 10px; padding: 15px 20px;
    scrollbar-width: none; justify-content: center;
}
.category-nav::-webkit-scrollbar { display: none; }

.cat-link {
    flex-shrink: 0; padding: 6px 18px; border-radius: 30px;
    font-size: 0.8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5); text-decoration: none; border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); white-space: nowrap;
}
.cat-link:hover { color: var(--gold-light); }
.cat-link.active { 
    color: var(--gold-light); 
    border-color: rgba(200, 176, 117, 0.6); 
    font-weight: 600;
    background: rgba(200, 176, 117, 0.05);
}

/* --- CONTEÚDO PRINCIPAL --- */
.main-content { max-width: 850px; margin: 0 auto; padding: 20px; margin-top: var(--header-height); }
.menu-section { margin-bottom: 60px; scroll-margin-top: calc(var(--header-height) + 20px); }

.section-title {
    font-family: var(--font-title); font-size: 2.4rem; color: var(--gold-light);
    margin-bottom: 25px; border-bottom: 1px solid rgba(200, 176, 117, 0.2);
    padding-bottom: 12px; display: block; font-weight: 700;
}
.section-note { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); font-style: italic; margin-top: -15px; margin-bottom: 25px; display: block; }

/* --- CARDS DOS PRODUTOS E ANIMAÇÕES --- */
.item-card {
    background: rgba(255, 255, 255, 0.98); border-radius: 20px; padding: 16px;
    display: flex; gap: 20px; margin-bottom: 18px; align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.7);
    
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
}

.item-card.revealed { opacity: 1 !important; transform: translateY(0) !important; }

@media (min-width: 769px) {
    .item-card:hover { 
        transform: translateY(-5px) scale(1.01) !important; 
        box-shadow: 0 15px 35px rgba(188, 148, 99, 0.3) !important; 
        border-color: var(--gold-light) !important;
    }
}

.img-container {
    width: 95px; height: 95px; border-radius: 14px; flex-shrink: 0;
    overflow: hidden; background-color: var(--gold-very-light);
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); position: relative;
}

.item-img-real { 
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.item-card:hover .item-img-real { transform: scale(1.15); }

.fallback-icon-box {
    width: 100%; height: 100%; display: flex; justify-content: center; 
    align-items: center; background: linear-gradient(135deg, #fdfbf7, #f5ecd8);
    color: var(--gold-dark); font-size: 2rem; animation: pulseGlow 2s infinite alternate;
}
@keyframes pulseGlow { from { opacity: 0.8; } to { opacity: 1; } }

.item-info { flex-grow: 1; }
.item-name { font-weight: 700; font-size: 1.2rem; color: var(--text-dark); margin-bottom: 4px; }
.item-desc { font-size: 0.88rem; color: var(--text-light); line-height: 1.4; margin-bottom: 8px; font-weight: 400; }
.item-price { font-weight: 700; color: var(--gold-dark); font-size: 1.25rem; display: flex; align-items: baseline; }
.price-unit { font-size: 0.85rem; color: var(--text-light); font-weight: 400; margin-left: 5px; text-transform: lowercase; }

/* 🟢 NOVO CONTROLE DE QUANTIDADE (+ e - BLINDADOS) 🟢 */
.quantity-control {
    display: flex;
    align-items: center;
    background: #faf6f0;
    border: 1px solid rgba(188, 148, 99, 0.25);
    border-radius: 30px;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.quantity-control.active {
    background: #fdfaf7; 
    border-color: var(--gold-dark);
    box-shadow: 0 4px 10px rgba(188, 148, 99, 0.2);
}

.btn-qty {
    background: transparent;
    border: none;
    color: var(--gold-dark);
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem; /* Aumentado para o símbolo aparecer bem claro */
    font-weight: bold; /* Símbolo mais gordinho */
    font-family: monospace; /* Fonte padrão perfeita para símbolos matemáticos */
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    padding-bottom: 2px; /* Ajuste visual pro + e - ficarem perfeitos no meio */
}

.btn-qty:hover {
    background: var(--gold-dark);
    color: white;
}

.qty-display {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
    min-width: 26px;
    text-align: center;
    user-select: none;
}

/* --- TOAST (NOTIFICAÇÕES) & FAB (WHATSAPP) --- */
.toast-notification {
    position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(50px);
    background: rgba(22, 17, 13, 0.98); color: white; padding: 14px 28px;
    border-radius: 30px; font-size: 0.92rem; font-weight: 500; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.5); border: 1px solid var(--gold-dark);
    opacity: 0; visibility: hidden; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1050; text-align: center; white-space: normal; width: auto; max-width: 90%;
}
.toast-notification.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.fab-whatsapp {
    position: fixed; bottom: 25px; right: 25px; z-index: 1000;
    background-color: var(--gold-dark); color: white; padding: 15px 26px;
    border-radius: 40px; text-decoration: none; display: flex; align-items: center; gap: 10px;
    font-weight: 600; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4); 
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); border: 1px solid rgba(255,255,255,0.1);
}
.fab-whatsapp:hover { transform: translateY(-4px); background-color: #a67f51; box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5); }

/* --- ADAPTAÇÃO PARA CELULAR --- */
@media (max-width: 768px) {
    :root { --header-height: 185px; }
    .header-logo { height: 62px; }
    .header-main-title { font-size: 1.45rem; }
    .section-title { font-size: 1.65rem; margin-bottom: 15px; }
    .section-note { font-size: 0.8rem; margin-bottom: 20px; }
    .category-nav { justify-content: flex-start; padding: 12px 15px; gap: 8px; }
    .cat-link { padding: 5px 14px; font-size: 0.78rem; }
    .main-content { padding: 12px; }
    .item-card { padding: 12px; gap: 14px; border-radius: 16px; }
    .img-container { width: 80px; height: 80px; border-radius: 10px; }
    .item-name { font-size: 1.05rem; }
    .item-desc { font-size: 0.82rem; }
    .item-price { font-size: 1.15rem; }
    
    /* Ajuste fino dos botões de quantidade no celular */
    .quantity-control { transform: scale(0.9); transform-origin: right; }
    
    .toast-notification { bottom: 85px; font-size: 0.85rem; width: 88%; padding: 12px 20px; line-height: 1.4; border-radius: 16px; }
    .fab-whatsapp { bottom: 20px; right: 20px; padding: 12px 22px; font-size: 0.9rem; }
}