/* 
* CAUCHO BORRACHAS - Estilos Responsivos
* Data: Junho/2025
*/

/* ===== MEDIA QUERIES ===== */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero-banner {
        height: 350px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .featured-news-card {
        flex-direction: column;
    }
    
    .featured-news-image {
        flex: 0 0 200px;
    }
    
    .featured-news-content {
        flex: 1;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text, .about-image {
        flex: 0 0 100%;
    }
    
    .about-image {
        order: -1;
        margin-bottom: var(--spacing-lg);
    }
    
    .newsletter-container {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .footer-content > div {
        flex: 0 0 100%;
        margin-bottom: var(--spacing-lg);
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-banner {
        height: 400px;
    }
    
    .featured-news-card {
        flex-direction: column;
    }
    
    .featured-news-image {
        flex: 0 0 250px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text, .about-image {
        flex: 0 0 100%;
    }
    
    .about-image {
        order: -1;
        margin-bottom: var(--spacing-lg);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-banner {
        height: 450px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Desktop styles already defined in main CSS */
}

/* ===== RESPONSIVE NAVIGATION ===== */
@media (max-width: 991.98px) {
    .header .container {
        flex-wrap: wrap;
    }
    
    .logo {
        flex: 0 0 auto;
    }
    
    .main-nav {
        flex: 1 0 100%;
        order: 3;
        margin-top: 1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 2;
    }
    
    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-list li {
        margin: 0;
    }
    
    .nav-list a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid #eee;
    }
    
    .nav-list a.active::after {
        display: none;
    }
    
    .nav-list a.active {
        background-color: rgba(230, 57, 70, 0.1);
    }
    
    .contact-button {
        margin-left: auto;
    }
}

/* ===== RESPONSIVE GRIDS ===== */
@media (max-width: 767.98px) {
    .products-grid,
    .catalog-grid,
    .catalogs-grid,
    .news-grid,
    .values-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .products-grid,
    .catalog-grid,
    .catalogs-grid,
    .news-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== RESPONSIVE FORMS ===== */
@media (max-width: 576px) {
    .search-container {
        flex-direction: column;
    }
    
    .newsletter-form form {
        flex-direction: column;
    }
    
    .form-group {
        width: 100%;
    }
}

/* ===== RESPONSIVE BUTTONS ===== */
@media (max-width: 576px) {
    .catalog-actions {
        flex-direction: column;
    }
    
    .filter-buttons {
        justify-content: center;
    }
}

/* ===== RESPONSIVE CATALOG CARDS ===== */
@media (max-width: 576px) {
    .catalog-card {
        padding: var(--spacing-sm);
    }
}

