/* HEADER */
.header {
  width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 3px;
  color: #222;
}

.header-right i {
  font-size: 18px;
  margin-left: 20px;
  color: #222;
  cursor: pointer;
}

/* MENU */
nav.menu {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 18px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

nav.menu a {
  text-decoration: none;
  color: #222;
  font-size: 15px;
  opacity: .9;
}

nav.menu a:hover {
  color: #d6a300;
  opacity: 1;
}

/* ================================
   GERAL — TEMA BRANCO / MERCADO LIVRE
================================ */

.catalogo-container {
    padding-top: 100px;
    padding-bottom: 50px;
    background: #f5f5f5;
    min-height: 100vh;
    font-family: "Poppins", sans-serif;
}

.catalogo-container h1 {
    color: #222;
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 8px;
    font-weight: 700;
}

.catalogo-subtitulo {
    text-align: center;
    color: #555;
    font-size: 1rem;
    margin-bottom: 40px;
}

/* ================================
   GRID DE PRODUTOS
================================ */

.lista-produtos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 25px;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 10px;
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    color: #222;
    border: 1px solid #e3e3e3;
    text-align: center;
    transition: .25s ease;
    cursor: pointer;
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

.card img {
    width: 100%;
    height: 210px;
    object-fit: contain;
    margin-bottom: 10px;
    transition: .2s;
}

.card img:hover {
    transform: scale(1.02);
}

/* Preços */

.precos-container {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.price-original {
    text-decoration: line-through;
    color: #888;
}

.price-desconto {
    color: #00a650;
    font-weight: 700;
    font-size: 1.2rem;
}

.btn-comprar {
    background: #3483fa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: .25s ease;
}

.btn-comprar:hover {
    background: #1a73e8;
}

/* Produto Esgotado */
.card.esgotado {
    opacity: 0.45;
    filter: grayscale(100%);
    pointer-events: none;
}

.selo-esgotado {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #444;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: .8rem;
}

/* ================================
   FILTROS — ESTILO MERCADO LIVRE
================================ */

.filtros-container {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px 25px;
    max-width: 1100px;
    margin: 20px auto 40px auto;
    border: 1px solid #e3e3e3;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.filtros {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 25px;
}

/* Barra de pesquisa */
.barra-pesquisa {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
    flex-wrap: wrap;
}

.barra-pesquisa input {
    flex: 1;
    min-width: 270px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    background: #fff;
    transition: .25s;
}

.barra-pesquisa input:focus {
    border-color: #3483fa;
    box-shadow: 0 0 5px rgba(52,131,250,.4);
}

/* Grupos de filtros */
.filtro-marca,
.filtro-sexoCor,
.filtro-preco {
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filtros label {
    font-size: .95rem;
    color: #222;
    font-weight: 500;
}

.filtros input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 6px;
}

/* Filtro de preço */
.filtro-preco input {
    width: 130px;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
    transition: .25s;
}

.filtro-preco input:focus {
    border-color: #3483fa;
}

/* Botão filtrar */
#btnFiltrar {
    margin-top: 12px;
    padding: 10px 18px;
    background: #3483fa;
    color: #fff;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: .25s ease;
}

#btnFiltrar:hover {
    background: #1a73e8;
}

/* ================================
   PAGINAÇÃO — ESTILO ML
================================ */

.paginacao {
    display: flex;
    justify-content: center;
    margin: 50px auto;
    gap: 10px;
}

.paginacao button {
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: .25s ease;
}

.paginacao button:hover {
    background: #3483fa;
    color: #fff;
    border-color: #3483fa;
}

.paginacao button.active {
    background: #3483fa;
    color: #fff;
    border-color: #1a73e8;
}

.paginacao button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* ================================
   RESPONSIVIDADE
================================ */

@media (max-width: 768px) {

    .filtros {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .lista-produtos {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .card img {
        height: 180px;
    }
}

@media (max-width: 500px) {
    .catalogo-container h1 {
        font-size: 1.8rem;
    }
}
