/* Configurações Globais e Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9fafb;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Imagens globais fluidas */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Cabeçalho Responsivo */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-img {
    height: 28px;
    width: auto;
    display: block;
}

.search-bar-container {
    flex: 1;
    max-width: 400px;
    min-width: 200px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: #2b6cb0;
}

/* Banner Hero Responsivo */
.hero-slider {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #3182ce, #63b3ed);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
    position: relative;
    overflow: hidden;
}

/* Garante que o fundo do banner renderize a imagem em qualquer tela */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background: white;
    color: #2b6cb0;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

/* Seções e Grids Responsivos */
.main-content {
    padding: 2rem 0;
}

.section-block {
    margin-bottom: 3rem;
}

.section-block h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.category-card {
    background: white;
    padding: 1.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    color: #4a5568;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #edf2f7;
    transition: all 0.2s;
}

.category-card:hover {
    border-color: #3182ce;
    color: #3182ce;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.site-footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Media Queries para Ajustes em Celulares */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .logo-img {
        height: 24px;
        margin: 0 auto;
    }

    .search-bar-container {
        max-width: 100%;
        margin: 0.25rem 0;
    }

    .main-nav {
        justify-content: center;
        gap: 0.75rem;
    }

    .hero-slider {
        height: 320px;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}