/* ====== TÍTULO (Usando cores Folia) ====== */
h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem; /* Um pouco maior no desktop */
    text-align: center;
    color: #C70039; /* Cor de destaque (Magenta) */
    margin-top: 60px;
    margin-bottom: 50px;
    font-weight: 800; /* Mais peso */
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

h2::after {
    content: "";
    display: block;
    width: 100px;
    height: 6px;
    /* Gradiente vibrante */
    background: linear-gradient(90deg, #FF5733, #FFC300);
    margin: 15px auto 0;
    border-radius: 3px;
}

/* ====== CARDS DE PRODUTO (Refinados) ====== */
.card {
    border-radius: 18px; /* Ligeiramente mais suave */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border: 1px solid #f0f0f0; /* Borda suave */
    background: #fff;
}

.card:hover {
    transform: translateY(-6px); /* Movimento mais subtil */
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.card-img-top {
    height: 250px; /* Um pouco mais alto para melhor visualização no desktop */
    object-fit: contain;
    padding: 20px;
    background: #fcfcfc; /* Fundo muito claro */
}

.card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem; /* Ligeiramente menor para caber melhor */
    font-weight: 700;
    margin-bottom: 0.5rem; /* Menos margem */
    color: #1a1a1a;
    /* Limitar a duas linhas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-transform: capitalize;
}

.price {
    font-weight: 800;
    font-size: 1.6rem; /* Preço maior */
    color: #FF5733; /* Cor principal (Laranja) */
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

/* ====== BOTÃO ADICIONAR AO CARRINHO (Festivo) ====== */
button.add-to-cart {
    /* Usando cores Folia para o gradiente do botão */
    background: linear-gradient(45deg, #C70039, #FF5733); 
    border: none;
    color: white;
    padding: 0.7rem 1.4rem;
    border-radius: 30px; /* Mais arredondado */
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(199, 0, 57, 0.4);
}

button.add-to-cart:hover {
    background: linear-gradient(45deg, #FF5733, #FFC300); /* Muda o gradiente ao pairar */
    transform: scale(1.05); /* Mais subtil */
    box-shadow: 0 6px 15px rgba(255, 87, 51, 0.6);
}

.notification {
    background-color: #4caf50;
    color: white;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.2em;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* ======================================= */
/* ====== MEDIA QUERIES (RESPONSIVIDADE OTIMIZADA) ====== */
/* ======================================= */

/* Para Tablets (até 768px) */
@media (max-width: 768px) {
    h2 {
        font-size: 2.5rem;
        margin: 40px 0 30px;
    }

    h2::after {
        width: 80px;
        height: 5px;
    }
    
    /* Os produtos ficam em 2 colunas no Bootstrap (col-sm-6) - Ótimo */
    .col-sm-6 {
        padding: 0 8px; /* Aperta o espaçamento entre colunas */
    }

    .card-img-top {
        height: 180px; /* Ajusta a altura da imagem */
        padding: 15px;
    }

    .card-title {
        font-size: 1.1rem;
        font-weight: 600;
    }

    .price {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    button.add-to-cart {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
        border-radius: 25px;
    }
}

/* Para Smartphones (até 576px - Substitui o antigo 480px) */
/* Aqui forçamos a duas colunas compactas, mesmo que o HTML use col-sm-6, garantindo o layout */
@media (max-width: 576px) {
    .container {
        padding: 0 10px; /* Reduz o padding lateral do container */
    }

    .row {
        margin-left: -5px;
        margin-right: -5px;
    }

    .col-sm-6 {
        width: 50%;
        padding-left: 5px;
        padding-right: 5px;
    }

    h2 {
        font-size: 2rem;
        margin: 30px 0 20px;
    }

    .card {
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        margin-bottom: 10px; /* Espaço entre as linhas */
    }
    
    .card:hover {
        transform: none; /* Desativa a animação de subir no mobile */
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .card-img-top {
        height: 120px; /* Imagem mais compacta */
        padding: 10px;
    }

    .card-body {
        padding: 10px 5px;
    }

    .card-title {
        font-size: 0.9rem; /* Título pequeno */
        font-weight: 700;
    }

    .price {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    button.add-to-cart {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        border-radius: 20px;
    }
}

.pagination .page-item .page-link {
    color: #FF5733; /* Cor dos números (Laranja Folia) */
    border: 1px solid #FFC300; /* Borda da cor do tema */
    margin: 0 3px;
    border-radius: 5px;
    transition: all 0.2s;
    font-weight: 600;
}

.pagination .page-item .page-link:hover {
    background-color: #FFF3E0; /* Fundo suave ao pairar */
    border-color: #FF5733;
}

.pagination .page-item.active .page-link {
    /* Gradiente festivo para o link ativo */
    background: linear-gradient(45deg, #C70039, #FF5733);
    border-color: #C70039;
    color: white; /* Texto branco no ativo */
    box-shadow: 0 4px 10px rgba(199, 0, 57, 0.4);
}

.pagination .page-item.disabled .page-link {
    color: #aaa;
    border-color: #eee;
    background-color: #f8f8f8;
}

/* Mobile: Ajustes no espaçamento */
@media (max-width: 576px) {
    .pagination {
        padding: 0 5px;
        margin-bottom: 20px !important;
    }
    
    .pagination .page-item .page-link {
        padding: 6px 10px;
        font-size: 0.8rem;
        margin: 0 2px;
    }
}

.btn.btn-opcoes {
   background: linear-gradient(45deg, #C70039, #FF5733); 
    border: none;
    color: white;
    padding: 0.7rem 1.4rem;
    border-radius: 30px; /* Mais arredondado */
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(199, 0, 57, 0.4);
}

.btn.btn-opcoes:hover {
    /* Inverte as cores ao pairar */
    background: #C70039;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(199, 0, 57, 0.3); /* Sombra subtil */
}

/* Ajustes Mobile para o botão de opções */
@media (max-width: 768px) {
    .btn.btn-opcoes {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
        max-width: 180px;
    }
}

@media (max-width: 576px) {
    .btn.btn-opcoes {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        max-width: 100%;
    }
}
/* ====== FILTROS INTUITIVOS ====== */
.filtro-container {
    gap: 10px;
    padding: 0 10px;
}

.btn-filtro {
    /* Estilo de contorno suave */
    background: white;
    border: 1px solid #FFC300; /* Borda Amarela */
    color: #C70039; /* Texto Magenta */
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-bottom: 5px;
    list-style: none !important; 
    text-decoration: none !important;
}

.btn-filtro:hover,
.btn-filtro:focus {
    background-color: #FFF3E0;
    border-color: #FF5733;
    color: #C70039;
    box-shadow: none !important;
}

.btn-filtro.active {
    /* Estado Ativo - Gradiente Folia */
    background: linear-gradient(45deg, #C70039, #FF5733);
    color: white;
    border-color: #C70039;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(199, 0, 57, 0.4);
}

@media (max-width: 576px) {
    .btn-filtro {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}

/* Esconder artigos filtrados - GERE PELA CLASSE 'hidden' */
.filter-item.hidden {
    display: none !important;
}