/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f8f8; /* Light background */
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background-color: #4a90e2; /* A shade of blue for Anped */
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    color: white;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.5rem 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s;
}

nav a:hover, nav a.active {
    background-color: rgba(255,255,255,0.3);
}

.search-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    padding: 0 1rem;
}

.search-container input {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px 0 0 20px;
    width: 70%;
    max-width: 400px;
    outline: none;
}

.search-container button {
    padding: 0.5rem 1rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-container button:hover {
    background-color: #555;
}

/* Hero Banner */
.hero-banner {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                      url('images/hero-banner.jpg'); /* Placeholder image */
    background-size: cover;
    background-position: center;
    height: 65vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 0 1rem;
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.cta-button {
    display: inline-block;
    background-color: #7ed321; /* Green for CTA */
    color: white;
    padding: 0.9rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background-color: #6bbd1e;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin: 3.5rem 0 2.5rem;
    color: #4a90e2; /* Matching header color */
    font-size: 2.4rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 90px;
    height: 4px;
    background-color: #7ed321; /* Green underline */
    margin: 0.6rem auto 0;
    border-radius: 2px;
}

/* Product Grid */
.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2.5rem;
    margin-bottom: 5rem;
}

.produto-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.produto-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.produto-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.produto-card h3 {
    margin: 1.2rem 1rem 0.5rem;
    font-size: 1.3rem;
    color: #444;
    flex-grow: 1; /* Allows title to take available space */
}

.produto-card .preco {
    margin: 0 1rem 1.2rem;
    font-weight: bold;
    color: #4a90e2; /* Blue for price */
    font-size: 1.5rem;
}

.btn-comprar {
    display: block;
    width: calc(100% - 2rem);
    margin: 0 auto 1.2rem;
    padding: 0.9rem;
    background-color: #7ed321; /* Green buy button */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-comprar:hover {
    background-color: #6bbd1e;
    transform: translateY(-2px);
}

/* Newsletter */
.newsletter {
    background-color: #e6f2ff; /* Light blue background */
    padding: 3.5rem 0;
    text-align: center;
}

.newsletter h3 {
    margin-bottom: 1.5rem;
    color: #4a90e2;
    font-size: 1.8rem;
}

.newsletter form {
    display: flex;
    justify-content: center;
    max-width: 550px;
    margin: 0 auto;
}

.newsletter input {
    padding: 0.9rem 1.2rem;
    border: 1px solid #a0c4ff; /* Lighter blue border */
    border-radius: 30px 0 0 30px;
    width: 70%;
    font-size: 1.1rem;
    outline: none;
}

.newsletter button {
    padding: 0.9rem 1.8rem;
    background-color: #4a90e2; /* Blue button */
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.newsletter button:hover {
    background-color: #3a7bd5;
}

/* Footer */
footer {
    background-color: #2c3e50; /* Darker blue/grey for footer */
    color: white;
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 4rem;
    font-size: 0.95rem;
}

/* Responsive Design */

/* Breakpoint 1: Less than 550px */
@media (max-width: 550px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .search-container {
        flex-direction: column;
        align-items: center;
        padding: 0 0.5rem;
    }

    .search-container input {
        width: 90%;
        border-radius: 20px;
        margin-bottom: 0.8rem;
        text-align: center;
    }

    .search-container button {
        width: 90%;
        border-radius: 20px;
    }
    
    .hero-banner {
        height: 50vh;
        min-height: 350px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin: 2.5rem 0 1.8rem;
    }
    
    .produtos-grid {
        grid-template-columns: 1fr; /* Single column */
        max-width: 380px; /* Constrain width for better readability */
        margin: 0 auto 3rem;
        gap: 1.5rem;
    }

    .produto-card img {
        height: 220px;
    }
    
    .newsletter form {
        flex-direction: column;
        align-items: center;
        max-width: 90%;
    }
    
    .newsletter input {
        width: 100%;
        border-radius: 30px;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .newsletter button {
        width: 100%;
        border-radius: 30px;
    }

    footer {
        padding: 1.5rem 0;
    }
}

/* Breakpoint 2: Between 550px and 1100px */
@media (min-width: 551px) and (max-width: 1100px) {
    header h1 {
        font-size: 2rem;
    }

    nav ul {
        gap: 0.8rem;
    }

    .hero-banner {
        height: 55vh;
        min-height: 400px;
    }
    
    .hero-content h2 {
        font-size: 2.4rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .produtos-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 2rem;
    }

    .produto-card img {
        height: 240px;
    }

    .newsletter input {
        width: 60%;
    }
}

/* Breakpoint 3: Above 1100px (Desktop) - already handled by base styles and specific overrides */
@media (min-width: 1101px) {
    /* No specific overrides needed here if base styles are already for desktop */
}