/* IEROS MOBILE RESPONSIVE OVERRIDES */
/* Este arquivo deve ser carregado APÓS style.css */

@media (max-width: 768px) {

    /* --- Typography & Global --- */
    :root {
        --container-width: 100%;
    }

    .container {
        padding: 0 1.5rem;
    }

    h1,
    .hero-title {
        font-size: 3rem !important;
        /* Reduz de 5rem */
    }

    h2 {
        font-size: 2rem !important;
    }

    /* --- Navbar --- */
    .nav-links {
        display: none !important;
        /* Esconde menu desktop */
    }

    .hamburger-menu {
        display: flex !important;
        /* Garante que aparece */
    }

    .nav-content {
        height: 60px;
    }

    /* --- Hero Section --- */
    .hero {
        align-items: center;
        /* Centraliza melhor */
        background-position: center;
        background-attachment: scroll;
        /* Fix parallax on mobile */
    }

    /* --- Product Grid (Homepage & Category) --- */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        /* 2 colunas no celular (padrão moderno) */
        gap: 1rem !important;
    }

    /* Ajustes finos para cards pequenos */
    .product-card {
        min-height: auto;
    }

    .card-info {
        padding: 0.8rem;
    }

    .product-name {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .card-color-dot {
        width: 10px;
        height: 10px;
    }

    .wishlist-btn {
        width: 32px;
        height: 32px;
        padding: 6px;
    }

    /* --- Product Detail Page --- */
    .product-detail {
        flex-direction: column !important;
        /* Empilha foto e info */
        padding-top: 2rem;
    }

    .product-gallery {
        width: 100% !important;
        margin-bottom: 2rem;
    }

    .product-info {
        width: 100% !important;
        padding-left: 0 !important;
    }

    .main-image {
        height: 50vh !important;
        /* Imagem destaque menor */
    }

    .buy-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #000;
        padding: 1rem;
        z-index: 99;
        border-top: 1px solid #333;
        margin: 0 !important;
    }

    .btn-buy {
        width: 100%;
        padding: 1rem;
    }

    /* --- Cart Page --- */
    .cart-grid {
        grid-template-columns: 1fr !important;
    }

    .cart-item {
        grid-template-columns: 80px 1fr !important;
        position: relative;
        padding-bottom: 1rem;
    }

    .item-total {
        position: absolute;
        bottom: 1rem;
        right: 0;
    }

    .remove-btn {
        position: absolute;
        top: 0;
        right: 0;
    }

    /* --- Modals & Drawers --- */
    .side-menu {
        width: 80%;
    }

    .quick-add-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        padding: 1.5rem;
    }

    .search-modal-content {
        width: 90%;
    }

    /* Reviews */
    .reviews-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {

    /* Telas muito pequenas */
    .product-grid {
        grid-template-columns: 1fr !important;
        /* 1 coluna se for muito pequeno */
    }
}