/* * TEMA: Premium Delivery Açaí - Padrão Mobile App
 * ARQUIVO: assets/css/style.css
 */

:root {
    --primary: #2d0a31;
    --secondary: #4b0d4b;
    --accent: #ffce00;
    --bg: #f8f5f9;
    --white: #ffffff;
    --text-dark: #1d1d1f;
    --radius-lg: 28px;
    --radius-md: 20px;
    --shadow: 0 10px 30px rgba(45, 10, 49, 0.12);
    --glass: rgba(255, 255, 255, 0.8);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg); 
    color: var(--text-dark); 
    padding-bottom: 100px; /* Espaço para a nav inferior */
    line-height: 1.5;
}

.container { max-width: 480px; margin: 0 auto; padding: 0 20px; }

/* HEADER & BANNER */
header { 
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); 
    color: white; 
    padding: 40px 20px 80px; 
    border-radius: 0 0 40px 40px;
    text-align: center;
}

.logo { 
    width: 85px; height: 85px; border-radius: 22px; 
    border: 3px solid var(--accent); margin-bottom: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

header h1 { font-size: 24px; font-weight: 800; }
header p { font-size: 14px; opacity: 0.9; margin-top: 5px; }

/* BANNER DESTAQUE (HERO) */
.hero-banner {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: -50px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-text h3 { font-size: 18px; color: var(--primary); font-weight: 800; margin-bottom: 8px; }
.btn-destaque {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 12px;
    text-decoration: none;
    text-transform: uppercase;
}

/* SEÇÕES E CARDS */
.section-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    margin: 25px 0 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::after {
    content: ''; flex: 1; height: 1px; background: rgba(0,0,0,0.05);
}

.item-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid transparent;
    transition: 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.item-card:has(input:checked) {
    border-color: var(--secondary);
    background: #fdf5ff;
}

.img-prod {
    width: 80px; height: 80px; border-radius: 15px; object-fit: cover;
}

.info-prod { flex: 1; }
.info-prod b { display: block; font-size: 16px; color: var(--primary); }
.info-prod span { color: #8e24aa; font-weight: 700; font-size: 14px; }

/* NAVEGAÇÃO INFERIOR (ESTILO APP) */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--white);
    height: 75px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.08);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    text-align: center; color: #a1a1a1; text-decoration: none; font-size: 11px;
    font-weight: 600;
}

.nav-item.active { color: var(--secondary); }

.nav-item i { display: block; font-size: 22px; margin-bottom: 4px; }

/* BOTÃO FLUTUANTE DE VALOR */
.floating-total {
    position: fixed;
    bottom: 90px; right: 20px;
    background: var(--primary);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 999;
}

/* CHECKOUT */
.checkout-box {
    background: var(--primary);
    color: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-top: 30px;
}

.input-box {
    width: 100%; padding: 15px; border-radius: 15px; border: none;
    background: rgba(255,255,255,0.1); color: white; margin-bottom: 12px;
}

.btn-finalizar {
    width: 100%; background: var(--accent); color: var(--primary);
    padding: 20px; border-radius: 18px; border: none; font-weight: 900;
    font-size: 16px; cursor: pointer; text-transform: uppercase;
}

/* --- NOVAS FUNCIONALIDADES (CATEGORIAS E OFERTAS) --- */

.search-bar {
    width: 100%;
    padding: 15px 20px;
    border-radius: 15px;
    border: 1px solid rgba(0,0,0,0.1);
    background: var(--white);
    margin-bottom: 20px;
    font-size: 14px;
}

.category-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.category-item {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 800;
    color: var(--primary);
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: 0.2s;
}

.category-item:active { transform: scale(0.95); background: var(--secondary); color: white; }

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--primary);
    opacity: 0.6;
}