/* =========================================================
   PÁGINA DE CATEGORIA
   RESPONSIVO
========================================================= */


/* =========================================================
   VARIÁVEIS
========================================================= */

:root {

    --preto: #111111;
    --preto-suave: #1c1c1c;

    --cinza-escuro: #333333;
    --cinza: #666666;
    --cinza-medio: #888888;
    --cinza-claro: #dddddd;

    --cinza-fundo: #f5f5f5;

    --branco: #ffffff;

    --borda: #e5e5e5;

}


/* =========================================================
   BODY
========================================================= */

body {

    background: var(--cinza-fundo);

}


/* =========================================================
   PÁGINA PRINCIPAL
========================================================= */

.pagina-produtos {

    width: 90%;

    max-width: 1400px;

    margin: 40px auto;

    display: flex;

    align-items: flex-start;

    gap: 30px;

}


/* =========================================================
   FILTRO LATERAL
========================================================= */

.filtro-lateral {

    width: 280px;

    flex: 0 0 280px;

    background: var(--branco);

    padding: 25px;

    border-radius: 15px;

    border: 1px solid var(--borda);

    box-shadow:
        0 5px 20px rgba(0, 0, 0, .08);

    box-sizing: border-box;

}


.filtro-lateral h2 {

    font-size: 22px;

    line-height: 1.2;

    margin: 0 0 25px;

    color: var(--preto);

}


/* =========================================================
   ITEM DO FILTRO
========================================================= */

.filtro-item {

    margin-bottom: 20px;

}


.filtro-item label {

    display: block;

    font-weight: 700;

    font-size: 15px;

    margin-bottom: 8px;

    color: var(--preto);

}


/* =========================================================
   INPUTS / SELECTS
========================================================= */

.filtro-item select,
.filtro-item input {

    width: 100%;

    min-width: 0;

    height: 40px;

    padding: 0 12px;

    border: 1px solid var(--cinza-claro);

    border-radius: 8px;

    margin-bottom: 10px;

    background: var(--branco);

    color: var(--preto);

    font-size: 14px;

    outline: none;

    box-sizing: border-box;

}


.filtro-item select:focus,
.filtro-item input:focus {

    border-color: var(--preto);

}


/* =========================================================
   BOTÃO FILTRAR
========================================================= */

.btn-filtrar {

    width: 100%;

    min-height: 44px;

    padding: 12px;

    background: var(--preto);

    color: var(--branco);

    border: none;

    border-radius: 8px;

    cursor: pointer;

    font-size: 15px;

    transition:
        background .2s,
        transform .2s;

}


.btn-filtrar:hover {

    background: var(--cinza-escuro);

}


.btn-filtrar:active {

    transform: scale(.98);

}


/* =========================================================
   LISTA DE PRODUTOS
========================================================= */

.lista-produtos {

    flex: 1;

    min-width: 0;

}


/* =========================================================
   TÍTULO
========================================================= */

.lista-produtos h1 {

    margin: 0 0 30px;

    text-align: left;

    font-size: 32px;

    line-height: 1.2;

    color: var(--preto);

}


/* =========================================================
   GRID
========================================================= */

.lista-produtos .produtos-container {

    width: 100%;

    max-width: none;

    margin: 0;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;

    box-sizing: border-box;

}


/* =========================================================
   CARD PRODUTO
========================================================= */

.lista-produtos .produto-card {

    width: 100%;

    min-width: 0;

    max-width: 100%;

    height: 520px;

    background: var(--branco);

    border-radius: 15px;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    border: 1px solid var(--borda);

    box-shadow:
        0 5px 20px rgba(0, 0, 0, .08);

    transition:
        transform .3s ease,
        box-shadow .3s ease;

    box-sizing: border-box;

}


.lista-produtos .produto-card:hover {

    transform: translateY(-6px);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .14);

}


/* =========================================================
   IMAGEM
========================================================= */

.lista-produtos .imagem-produto {

    width: 100%;

    height: 230px;

    min-height: 230px;

    flex: 0 0 230px;

    background: #eeeeee;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

}


.lista-produtos .imagem-produto img {

    display: block;

    width: 100%;

    height: 100%;

    max-width: 100%;

    object-fit: contain;

}


/* =========================================================
   INFORMAÇÕES
========================================================= */

.lista-produtos .produto-info {

    width: 100%;

    min-width: 0;

    flex: 1;

    padding: 18px;

    display: flex;

    flex-direction: column;

    box-sizing: border-box;

}


/* =========================================================
   NOME DO PRODUTO
========================================================= */

.lista-produtos .produto-info h2 {

    width: 100%;

    min-width: 0;

    height: 48px;

    margin: 0 0 12px;

    font-size: 17px;

    line-height: 24px;

    font-weight: 600;

    color: var(--preto);

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;

    text-overflow: ellipsis;

}


/* =========================================================
   ÁREA DO PREÇO
========================================================= */

.lista-produtos .area-preco {

    min-height: 75px;

    height: 75px;

    display: flex;

    flex-direction: column;

    justify-content: center;

}


/* =========================================================
   PREÇO
========================================================= */

.lista-produtos .preco {

    font-size: 21px;

    line-height: 1.2;

    font-weight: 700;

    color: var(--preto);

    margin: 0 0 8px;

}


.lista-produtos .preco-antigo {

    margin: 0;

    font-size: 14px;

    line-height: 18px;

    color: var(--cinza-medio);

    text-decoration: line-through;

}


.lista-produtos .promocional {

    color: var(--preto);

}


.lista-produtos .desconto {

    display: block;

    margin-top: 3px;

    font-size: 13px;

    line-height: 17px;

    color: var(--cinza-escuro);

    font-weight: 700;

}


/* =========================================================
   AÇÕES
========================================================= */

.lista-produtos .acoes-produto {

    width: 100%;

    margin-top: auto;

    display: flex;

    flex-direction: column;

    gap: 9px;

}


/* =========================================================
   BOTÃO CARRINHO
========================================================= */

.lista-produtos .btn-carrinho {

    width: 100%;

    min-height: 46px;

    padding: 10px;

    border: none;

    border-radius: 8px;

    background: var(--preto);

    color: var(--branco);

    font-size: 14px;

    line-height: 18px;

    cursor: pointer;

    text-align: center;

    transition:
        background .2s,
        transform .2s;

    box-sizing: border-box;

}


.lista-produtos .btn-carrinho:hover {

    background: var(--cinza-escuro);

}


.lista-produtos .btn-carrinho:active {

    transform: scale(.98);

}


.lista-produtos .btn-carrinho i {

    margin-right: 7px;

}


/* =========================================================
   BOTÃO DETALHES
========================================================= */

.lista-produtos .btn-detalhes {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    min-height: 42px;

    padding: 10px;

    background: var(--cinza-escuro);

    color: var(--branco);

    border-radius: 8px;

    text-decoration: none;

    font-size: 14px;

    line-height: 18px;

    box-sizing: border-box;

    transition: background .2s;

}


.lista-produtos .btn-detalhes:hover {

    background: var(--preto);

}


/* =========================================================
   SEM PRODUTOS
========================================================= */

.sem-produtos {

    width: 100%;

    padding: 40px 25px;

    background: var(--branco);

    border: 1px solid var(--borda);

    border-radius: 15px;

    text-align: center;

    box-sizing: border-box;

}


.sem-produtos p {

    margin: 0;

    color: var(--cinza);

}


/* =========================================================
   TABLET GRANDE
   1001px — 1100px

   O filtro passa para cima.
   3 produtos por linha.
========================================================= */

@media (max-width: 1100px) {

    .pagina-produtos {

        width: 94%;

        flex-direction: column;

        gap: 25px;

    }


    .filtro-lateral {

        width: 100%;

        flex: none;

    }


    .lista-produtos {

        width: 100%;

    }


    .lista-produtos h1 {

        text-align: left;

    }


    .lista-produtos .produtos-container {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 18px;

    }


    .lista-produtos .produto-card {

        height: 500px;

    }


    .lista-produtos .imagem-produto {

        height: 220px;

        min-height: 220px;

        flex-basis: 220px;

    }

}


/* =========================================================
   TABLET
   769px — 900px

   2 produtos por linha.
========================================================= */

@media (max-width: 900px) {

    .pagina-produtos {

        width: 94%;

        margin-top: 30px;

    }


    .lista-produtos .produtos-container {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 18px;

    }


    .lista-produtos .produto-card {

        height: 490px;

    }


    .lista-produtos .imagem-produto {

        height: 210px;

        min-height: 210px;

        flex-basis: 210px;

    }


    .lista-produtos .produto-info {

        padding: 16px;

    }


    .lista-produtos .produto-info h2 {

        font-size: 16px;

        line-height: 22px;

        height: 44px;

    }


    .lista-produtos .preco {

        font-size: 20px;

    }

}


/* =========================================================
   TABLET PEQUENO
   601px — 768px

   Continua com 2 produtos.
========================================================= */

@media (max-width: 768px) {

    .pagina-produtos {

        width: 94%;

        margin: 25px auto;

        gap: 20px;

    }


    .filtro-lateral {

        padding: 20px;

        border-radius: 13px;

    }


    .filtro-lateral h2 {

        font-size: 20px;

        margin-bottom: 20px;

    }


    .lista-produtos h1 {

        font-size: 27px;

        margin-bottom: 22px;

        text-align: center;

    }


    .lista-produtos .produtos-container {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 15px;

    }


    .lista-produtos .produto-card {

        height: 450px;

        border-radius: 13px;

    }


    .lista-produtos .imagem-produto {

        height: 185px;

        min-height: 185px;

        flex-basis: 185px;

    }


    .lista-produtos .produto-info {

        padding: 14px;

    }


    .lista-produtos .produto-info h2 {

        font-size: 15px;

        line-height: 20px;

        height: 40px;

        margin-bottom: 8px;

    }


    .lista-produtos .area-preco {

        height: 65px;

        min-height: 65px;

    }


    .lista-produtos .preco {

        font-size: 18px;

    }


    .lista-produtos .preco-antigo {

        font-size: 13px;

    }


    .lista-produtos .desconto {

        font-size: 12px;

    }


    .lista-produtos .btn-carrinho {

        min-height: 42px;

        padding: 9px 7px;

        font-size: 13px;

    }


    .lista-produtos .btn-detalhes {

        min-height: 40px;

        padding: 8px;

        font-size: 13px;

    }

}


/* =========================================================
   TELEMÓVEL
   ATÉ 600px

   IMPORTANTE:
   APENAS 1 CARD POR LINHA.
========================================================= */

@media (max-width: 600px) {

    .pagina-produtos {

        width: 92%;

        margin: 20px auto 30px;

        display: flex;

        flex-direction: column;

        gap: 20px;

    }


    /* -----------------------------------------
       FILTRO
    ----------------------------------------- */

    .filtro-lateral {

        width: 100%;

        padding: 18px;

        border-radius: 13px;

    }


    .filtro-lateral h2 {

        font-size: 19px;

        margin-bottom: 18px;

    }


    .filtro-item {

        margin-bottom: 16px;

    }


    .filtro-item label {

        font-size: 14px;

    }


    .filtro-item select,
    .filtro-item input {

        height: 42px;

        font-size: 14px;

    }


    .btn-filtrar {

        min-height: 44px;

        font-size: 14px;

    }


    /* -----------------------------------------
       LISTA
    ----------------------------------------- */

    .lista-produtos {

        width: 100%;

        min-width: 0;

    }


    .lista-produtos h1 {

        width: 100%;

        font-size: 25px;

        line-height: 1.2;

        margin: 5px 0 20px;

        text-align: center;

    }


    /* -----------------------------------------
       GRID

       UMA ÚNICA COLUNA
    ----------------------------------------- */

    .lista-produtos .produtos-container {

        width: 100%;

        display: grid;

        grid-template-columns: minmax(0, 1fr);

        gap: 18px;

    }


    /* -----------------------------------------
       CARD

       OCUPA QUASE TODA A LARGURA
    ----------------------------------------- */

    .lista-produtos .produto-card {

        width: 100%;

        max-width: none;

        min-width: 0;

        height: 450px;

        border-radius: 14px;

    }


    /* -----------------------------------------
       IMAGEM
    ----------------------------------------- */

    .lista-produtos .imagem-produto {

        width: 100%;

        height: 220px;

        min-height: 220px;

        flex-basis: 220px;

    }


    /* -----------------------------------------
       INFORMAÇÕES
    ----------------------------------------- */

    .lista-produtos .produto-info {

        width: 100%;

        min-width: 0;

        padding: 16px;

    }


    .lista-produtos .produto-info h2 {

        width: 100%;

        height: auto;

        min-height: 44px;

        max-height: 44px;

        margin-bottom: 10px;

        font-size: 17px;

        line-height: 22px;

    }


    /* -----------------------------------------
       PREÇO
    ----------------------------------------- */

    .lista-produtos .area-preco {

        height: 65px;

        min-height: 65px;

    }


    .lista-produtos .preco {

        font-size: 21px;

    }


    .lista-produtos .preco-antigo {

        font-size: 13px;

    }


    .lista-produtos .desconto {

        font-size: 12px;

    }


    /* -----------------------------------------
       BOTÕES
    ----------------------------------------- */

    .lista-produtos .acoes-produto {

        gap: 8px;

    }


    .lista-produtos .btn-carrinho {

        min-height: 45px;

        padding: 10px;

        font-size: 14px;

    }


    .lista-produtos .btn-detalhes {

        min-height: 42px;

        padding: 9px;

        font-size: 14px;

    }

}


/* =========================================================
   TELEMÓVEL PEQUENO
   ATÉ 450px
========================================================= */

@media (max-width: 450px) {

    .pagina-produtos {

        width: 94%;

        margin-top: 15px;

    }


    .filtro-lateral {

        padding: 16px;

    }


    .lista-produtos h1 {

        font-size: 23px;

        margin-bottom: 17px;

    }


    .lista-produtos .produtos-container {

        grid-template-columns: 1fr;

        gap: 15px;

    }


    .lista-produtos .produto-card {

        width: 100%;

        height: 425px;

    }


    .lista-produtos .imagem-produto {

        height: 200px;

        min-height: 200px;

        flex-basis: 200px;

    }


    .lista-produtos .produto-info {

        padding: 14px;

    }


    .lista-produtos .produto-info h2 {

        font-size: 16px;

        line-height: 21px;

    }


    .lista-produtos .preco {

        font-size: 20px;

    }

}


/* =========================================================
   TELEMÓVEL MUITO PEQUENO
   ATÉ 360px
========================================================= */

@media (max-width: 360px) {

    .pagina-produtos {

        width: 94%;

        margin-top: 12px;

    }


    .filtro-lateral {

        padding: 14px;

        border-radius: 12px;

    }


    .filtro-lateral h2 {

        font-size: 18px;

    }


    .lista-produtos h1 {

        font-size: 21px;

    }


    .lista-produtos .produto-card {

        height: 405px;

        border-radius: 12px;

    }


    .lista-produtos .imagem-produto {

        height: 185px;

        min-height: 185px;

        flex-basis: 185px;

    }


    .lista-produtos .produto-info {

        padding: 12px;

    }


    .lista-produtos .produto-info h2 {

        font-size: 15px;

        line-height: 20px;

    }


    .lista-produtos .preco {

        font-size: 19px;

    }


    .lista-produtos .btn-carrinho {

        min-height: 42px;

        font-size: 13px;

    }


    .lista-produtos .btn-detalhes {

        min-height: 40px;

        font-size: 13px;

    }

}


/* =========================================================
   EVITAR OVERFLOW
========================================================= */

.pagina-produtos,
.lista-produtos,
.lista-produtos .produtos-container,
.lista-produtos .produto-card,
.lista-produtos .produto-info {

    min-width: 0;

    box-sizing: border-box;

}


/* =========================================================
   ACESSIBILIDADE
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .lista-produtos .produto-card {

        transition: none;

    }

}