/* css/produtos.css */

/* Base Styles (Duplicated) */
* {
    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 (Duplicated) */
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;
}

/* Section Titles (Duplicated) */
.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;
}

.section-title-small { /* For related products, etc. */
    text-align: center;
    margin: 3rem 0 2rem;
    color: #4a90e2;
    font-size: 1.8rem;
    position: relative;
}

.section-title-small::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background-color: #7ed321;
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Product Card (Duplicated) */
.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);
}

/* Form Elements (Duplicated - not used on this page, but included for consistency) */
.form-wrapper {
    background-color: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    max-width: 700px;
    margin: 0 auto;
}

.form-wrapper p {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #666;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #4a90e2;
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.2rem;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-submit:hover {
    background-color: #3a7bd5;
    transform: translateY(-2px);
}

/* Footer (Duplicated) */
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 (Duplicated) */

/* 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;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin: 2.5rem 0 1.8rem;
    }

    .section-title-small {
        font-size: 1.5rem;
        margin: 2rem 0 1.5rem;
    }
    
    .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;
    }
    
    .form-wrapper {
        padding: 1.5rem;
    }

    .form-wrapper p {
        font-size: 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    .btn-submit {
        padding: 0.8rem;
        font-size: 1rem;
    }

    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;
    }
    
    .section-title {
        font-size: 2.2rem;
    }

    .section-title-small {
        font-size: 1.6rem;
    }
    
    .produtos-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 2rem;
    }

    .produto-card img {
        height: 240px;
    }
}

/* Specific Styles for Produtos Page */
.produtos-catalogo {
    padding: 3rem 0;
}