:root {
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-muted: #6c757d;
    --primary-color: #ff6600;
    --border-color: #e5e5e5;
    --shadow-color: rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding-bottom: 90px; /* Espaço para o rodapé fixo */
}

/* Header / Topo */
header {
    background-color: var(--card-bg);
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    margin-bottom: 12px;
    text-align: center;
}

.logo-container img {
    height: 45px;
    object-fit: contain;
}

/* Barra de Pesquisa */
.search-container {
    width: 100%;
    max-width: 650px;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 10px 18px;
    width: 100%;
}

.search-box i {
    color: var(--text-muted);
    margin-right: 10px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 15px;
    color: var(--text-color);
}

/* Conteúdo Principal */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* Banner Promocional */
.banner-container {
    width: 100%;
    margin-bottom: 25px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 240px;
    object-fit: cover;
}

/* Seção de Categorias */
.section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #222;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.category-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 6px var(--shadow-color);
    transition: transform 0.2s, border-color 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.category-icon-box {
    width: 60px;
    height: 60px;
    background-color: #fffaf5;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.category-icon-box i {
    font-size: 26px;
    color: var(--primary-color);
}

.category-card span {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* Seção de Destaques / Produtos */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px 0 15px 0;
}

.section-header a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.product-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 6px var(--shadow-color);
    position: relative;
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-3px);
}

.product-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #f1f1f1;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
}

.product-price {
    font-size: 17px;
    font-weight: bold;
    color: var(--primary-color);
}

/* Rodapé Fixo (Estilo App / Agrupado e Centralizado no Desktop) */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center; /* Centraliza no desktop */
    gap: 40px; /* Espaçamento controlado entre os ícones */
    padding: 12px 20px;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.04);
}

.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 12px;
    transition: color 0.2s;
    min-width: 60px;
}

.footer-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.footer-item.active, .footer-item:hover {
    color: var(--primary-color);
}

/* Responsividade Desktop */
@media (min-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 15px 40px;
    }
    .logo-container {
        margin-bottom: 0;
    }
    .search-container {
        max-width: 450px;
    }
}