@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-body: #FEEFD2;      /* Tua cor de fundo creme */
    --primary: #EB1414;      /* Vermelho Principal (Menu, Footer, Preços) */
    --secondary: #8C0000;    /* Vermelho Escuro (Botões) */
    --text-dark: #202435;
    --text-gray: #71778e;
    --white: #ffffff;
    --border: #edeeef;
    --radius: 8px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    font-size: 14px;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; }

/* --- HEADER (3 Linhas igual a imagem) --- */
.header-top {
    background: var(--bg-body); /* Fundo claro no topo */
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 8px 0;
    font-size: 12px;
    color: var(--text-gray);
}

.header-middle {
    padding: 20px 0;
    background: var(--bg-body);
}

.header-bottom {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky; /* Sticky apenas no menu */
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* Logo & Search */
.logo { font-size: 28px; font-weight: 800; color: var(--text-dark); letter-spacing: -1px; }
.logo span { color: var(--text-gray); font-size: 12px; font-weight: 400; display: block; letter-spacing: 0; }

.search-area {
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    width: 50%;
    padding: 2px;
}
.search-area input { border: none; outline: none; padding: 10px; width: 100%; }
.search-area button { background: none; border: none; cursor: pointer; color: var(--text-dark); padding: 0 15px; }

.user-actions { display: flex; gap: 20px; align-items: center; }
.price-total { font-weight: bold; color: var(--primary); background: #fff0f0; padding: 5px 10px; border-radius: 50px; }
.cart-icon-wrap { position: relative; font-size: 18px; }
.badge { position: absolute; top: -8px; right: -8px; background: var(--primary); color: white; font-size: 10px; padding: 2px 5px; border-radius: 50%; }

/* --- MENU CATEGORIAS (Estilo Botão Azul da imagem -> Agora Vermelho) --- */
.nav-wrapper { display: flex; gap: 30px; align-items: center; height: 60px; }

.all-categories-btn {
    background: var(--primary);
    color: white;
    padding: 0 25px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    border-radius: var(--radius) var(--radius) 0 0; /* Arredondado só em cima para conectar com sidebar */
    cursor: pointer;
    min-width: 260px;
}

.main-menu a { font-weight: 600; color: var(--text-dark); font-size: 13px; text-transform: uppercase; margin-right: 20px; }
.main-menu a:hover { color: var(--primary); }

/* --- LAYOUT GRID PRINCIPAL --- */
.site-layout {
    display: grid;
    grid-template-columns: 260px 1fr; /* Coluna Sidebar fixa 260px, resto flexível */
    gap: 30px;
    margin-top: 0; /* Colado no menu */
    align-items: start;
}

/* Sidebar Esquerda */
.sidebar-sticky {
    position: sticky;
    top: 80px; /* Ajuste conforme altura do header */
}

.category-dropdown {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: none; /* Conecta com botão */
    border-radius: 0 0 var(--radius) var(--radius);
}

.category-dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-bottom: 1px solid #f4f5f9;
    color: var(--text-gray);
    font-size: 14px;
}
.category-dropdown li a:hover { color: var(--primary); background: #f9f9f9; }

/* Banners Laterais (Abaixo do menu) */
.sidebar-banner {
    margin-top: 30px;
    padding: 30px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}
.sidebar-banner h4 { font-size: 20px; margin: 0 0 10px; color: var(--text-dark); line-height: 1.3; }
.sidebar-banner .price-tag { color: var(--primary); font-weight: 800; font-size: 22px; display: block; margin-top: 10px; }

/* Conteúdo Principal (Direita) */
.hero-slider {
    height: 450px;
    background: #f0f2f5; /* Placeholder */
    border-radius: var(--radius);
    margin-bottom: 40px;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding-left: 60px;
}

.hero-content h1 { font-size: 48px; color: var(--text-dark); margin: 10px 0; line-height: 1.1; }
.hero-content .subtitle { color: var(--text-gray); text-transform: uppercase; letter-spacing: 1px; }
.hero-content .price-hero { font-size: 30px; color: var(--primary); font-weight: bold; margin: 20px 0; display: block;}
.btn-shop { background: var(--secondary); color: white; padding: 12px 30px; border-radius: 30px; font-weight: 600; display: inline-block; }

/* Grid de Produtos */
.section-header { display: flex; justify-content: space-between; margin-bottom: 20px; align-items: center; }
.section-header h3 { font-size: 18px; margin: 0; text-transform: uppercase; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px;
    transition: 0.3s;
    position: relative;
}
.product-card:hover { border-color: var(--primary); box-shadow: 0 5px 20px rgba(0,0,0,0.05); }

.discount-tag {
    background: #2bbef9; /* Azul padrão do tema bacola, podes mudar para vermelho se quiseres */
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    position: absolute;
    top: 15px; left: 15px;
}

.prod-img { width: 100%; height: 160px; object-fit: contain; margin-bottom: 15px; }
.prod-title { font-size: 14px; font-weight: 600; margin: 0 0 5px; color: var(--text-dark); line-height: 1.4; height: 40px; overflow: hidden; }
.prod-meta { color: #00b853; font-size: 11px; margin-bottom: 10px; font-weight: 600; text-transform: uppercase; }
.prod-price { font-size: 16px; color: var(--text-gray); text-decoration: line-through; margin-right: 5px; }
.prod-price-new { font-size: 18px; color: var(--primary); font-weight: 700; }

/* Botão Adicionar (Teu pedido específico) */
.btn-add-cart {
    width: 100%;
    background: var(--secondary); /* Tua cor secundária */
    color: white;
    border: none;
    padding: 10px;
    border-radius: 30px;
    font-weight: 600;
    margin-top: 15px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-add-cart:hover { background: var(--primary); }

/* Banner Covid / Aviso */
.alert-banner {
    background: #f8f8f8;
    border-radius: var(--radius);
    padding: 30px;
    margin: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid var(--primary);
}

/* Oferta da Semana (Hot Product) */
.week-deal {
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
    background: white;
}
.countdown-box span { background: #f0f0f0; padding: 5px 10px; border-radius: 5px; font-weight: bold; font-size: 18px; margin-right: 5px; }

@media (max-width: 991px) {
    .header-middle .container { display: flex !important; flex-wrap: wrap; justify-content: space-between; align-items: center; }
    .logo { order: 2; flex: 1; text-align: center; }
    .mobile-toggle { order: 1; }
    .user-actions { order: 3; }
    .search-area { order: 4; width: 100% !important; margin-top: 15px; }
    .user-profile-area { display: none; }
    .price-total { display: none; }
}