:root {
    --primary: #c0392b;
    --dark: #1e1e1e;
    --bg-body: #f5f6fa;
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }
body { background: var(--bg-body); color: #333; scroll-behavior: smooth; }

.content-wrapper, .nav-container, .footer-container {
    width: 95%; max-width: 1100px; margin: 0 auto;
}

/* NAVBAR SÓLIDA */
.navbar { background: var(--primary); padding: 12px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo { height: 55px; width: 55px; border-radius: 50%; object-fit: cover; border: 2px solid white; }
.brand-text h1 { color: white; font-size: 1.3rem; }
.brand-text small { color: #5effa2; font-weight: bold; }

.nav-cart { 
    display: flex; align-items: center; gap: 8px; color: white; 
    cursor: pointer; background: rgba(0,0,0,0.2); padding: 8px 15px; border-radius: 50px;
}
#cart-count { background: white; color: var(--primary); padding: 2px 7px; border-radius: 50%; font-size: 0.8rem; font-weight: bold; }

/* CARROSSEL (CORRIGIDO) */
.hero-carousel { 
    height: 300px; border-radius: 15px; overflow: hidden; 
    margin: 20px 0; position: relative; box-shadow: var(--shadow);
}
.slide { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    opacity: 0; transition: opacity 1s ease-in-out; z-index: 1;
}
.slide.active { opacity: 1; z-index: 2; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

/* BUSCA */
.search-section { margin: 20px 0; }
.search-field { display: flex; align-items: center; background: white; padding: 15px; border-radius: 12px; box-shadow: var(--shadow); }
.search-field input { border: none; outline: none; width: 100%; margin-left: 10px; font-size: 1rem; }

/* GRID MENU */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; margin-bottom: 40px; }
.category-title { grid-column: 1 / -1; margin: 35px 0 15px; font-size: 1.8rem; font-weight: 800; border-left: 6px solid var(--primary); padding-left: 15px; }

/* BOTÕES PADRONIZADOS */
.btn-add, .btn-confirm {
    background: var(--primary); color: white; border: none; padding: 14px; 
    border-radius: 12px; font-weight: 700; cursor: pointer; transition: 0.3s; width: 100%;
}
.btn-add:hover, .btn-confirm:hover { background: var(--dark); transform: scale(1.02); }

.btn-clear { background: transparent; color: white; border: 1px solid white; padding: 5px 12px; border-radius: 8px; cursor: pointer; font-size: 0.8rem; }
.checkout-header .btn-clear { color: var(--primary); border-color: var(--primary); }

/* CHECKOUT LADO A LADO */
.checkout-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 25px; margin: 40px 0; }
.checkout-card { background: white; border-radius: 15px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.checkout-header { padding: 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.checkout-items { padding: 20px; flex-grow: 1; min-height: 100px; }
.delivery-form { padding: 20px; background: #fafafa; }
.form-group { margin-bottom: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; }
input, select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; outline-color: var(--primary); }
.total-row { padding: 20px; background: #eee; display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 800; }

/* RODAPÉ (CORRIGIDO) */
.main-footer { background: var(--dark); color: white; padding: 50px 0 20px; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer-map iframe { width: 100%; height: 200px; border-radius: 15px; border: none; }
.footer-brand img { height: 60px; margin-bottom: 15px; }
.footer-social { display: flex; justify-content: center; gap: 20px; font-size: 1.5rem; margin: 20px 0; }
.footer-social a { color: white; }
.copyright { text-align: center; font-size: 0.8rem; opacity: 0.5; padding-top: 20px; border-top: 1px solid #333; }

@media (max-width: 900px) {
    .checkout-wrapper { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .form-grid { grid-template-columns: 1fr; }
}
