/* =========================================================
   LINHAS DE PRODUTOS
========================================================= */

.produtos {
    position: relative;

    padding: 82px 0 100px;

    overflow: hidden;

    background: #FFF8F6;
}

.produtos .container {
    position: relative;
}


/* =========================================================
   GRID
========================================================= */

.produtos-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}


/* =========================================================
   CARDS
========================================================= */

.produto-card {
    display: flex;

    min-width: 0;
    min-height: 100%;

    flex-direction: column;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 26px;

    background: #ffffff;

    box-shadow: var(--shadow-sm);

    color: inherit;

    transform: translateZ(0);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.produto-card:hover {
    border-color:
        rgba(13, 79, 179, 0.22);

    box-shadow: var(--shadow-md);

    transform: translateY(-7px);
}

.produto-card a {
    color: inherit;

    text-decoration: none;
}

.produto-card a:focus-visible {
    border-radius: 8px;

    outline:
        3px solid
        rgba(13, 79, 179, 0.28);

    outline-offset: 4px;
}


/* =========================================================
   IMAGEM
========================================================= */

.produto-img {
    position: relative;

    display: block;

    width: 100%;
    height: 250px;

    flex-shrink: 0;

    overflow: hidden;

    background: #e9edf3;

    cursor: pointer;
}

.produto-img img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    pointer-events: none;

    transition:
        transform 0.45s ease;
}

.produto-card:hover .produto-img img {
    transform: scale(1.05);
}


/* =========================================================
   CONTEÚDO CENTRALIZADO
========================================================= */

.produto-content {
    display: flex;

    min-width: 0;

    flex: 1;
    flex-direction: column;

    align-items: center;

    padding: 28px;

    text-align: center;
}


/* TAG */

.produto-content > span,
.produto-todos-content > span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 7px 12px;
    margin-bottom: 16px;

    border-radius: 999px;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 10px;
    font-weight: 900;
    line-height: 1;

    letter-spacing: 1.5px;
}


/* TÍTULOS */

.produto-content h3,
.produto-todos-content h3 {
    width: 100%;

    margin: 0 0 13px;

    color: var(--black);

    font-size: 27px;
    line-height: 1.1;

    text-align: center;
}

.produto-content h3 a,
.produto-todos-content h3 a {
    display: inline;

    color: inherit;

    text-decoration: none;

    transition:
        color 0.2s ease;
}

.produto-content h3 a:hover {
    color: var(--primary);
}


/* TEXTOS */

.produto-content p,
.produto-todos-content p {
    width: 100%;

    margin: 0 0 22px;

    color: var(--text);

    font-size: 14px;
    line-height: 1.65;

    text-align: center;
}


/* LINK */

.produto-link {
    display: inline-flex;

    width: fit-content;

    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: auto;

    color: var(--primary) !important;

    font-size: 14px;
    font-weight: 900;
    line-height: 1.3;
}

.produto-link i {
    font-style: normal;

    transition:
        transform 0.25s ease;
}

.produto-link:hover i,
.produto-card:hover .produto-link i {
    transform: translateX(5px);
}


/* =========================================================
   CARD CATÁLOGO COMPLETO
========================================================= */

.produto-card-todos {
    justify-content: center;

    min-height: 100%;

    border-color: transparent;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );
}

.produto-todos-content {
    display: flex;

    min-height: 100%;

    flex: 1;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 38px;

    text-align: center;
}

.produto-todos-content > span {
    background:
        rgba(255, 255, 255, 0.15);

    color: #ffffff;
}

.produto-todos-content h3 {
    color: #ffffff;

    font-size: 34px;
}

.produto-todos-content h3 a {
    color: #ffffff;
}

.produto-todos-content h3 a:hover {
    color:
        rgba(255, 255, 255, 0.84);
}

.produto-todos-content p {
    color:
        rgba(255, 255, 255, 0.82);
}

.produto-todos-content .produto-link {
    color: #ffffff !important;
}

.produto-link-todos {
    margin-top: auto;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .produtos {
        padding:
            72px
            0
            82px;
    }

    .produtos-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 18px;
    }

    .produto-img {
        height: 240px;
    }

    .produto-content {
        padding: 26px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .produtos {
        padding:
            52px
            0
            58px;

        overflow: hidden;
    }

    .produtos .container {
        width: 92%;

        overflow: visible;
    }

    .produtos-grid {
        display: flex;

        width: 100%;
        max-width: 100%;

        gap: 14px;

        margin: 0;

        padding:
            3px
            16%
            16px
            2px;

        overflow-x: auto;
        overflow-y: visible;

        scroll-behavior: smooth;

        scroll-padding-left: 2px;

        scroll-snap-type: x mandatory;

        overscroll-behavior-x: contain;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
    }

    .produtos-grid::-webkit-scrollbar {
        display: none;
    }

    .produtos-grid > .produto-card {
        width: auto;

        min-width: 0;
        min-height: 445px;

        flex: 0 0 84%;

        margin: 0;

        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .produto-card:hover,
    .produto-card:active {
        transform: none;
    }

    .produto-img {
        width: 100%;
        height: 215px;

        min-height: 215px;

        touch-action: pan-x;
    }

    .produto-card:hover .produto-img img {
        transform: none;
    }

    .produto-content {
        min-height: 230px;

        align-items: center;

        padding:
            23px
            22px
            25px;

        text-align: center;
    }

    .produto-content > span,
    .produto-todos-content > span {
        margin-bottom: 14px;

        font-size: 9px;
    }

    .produto-content h3 {
        margin-bottom: 11px;

        font-size: 24px;
    }

    .produto-content p {
        margin-bottom: 18px;

        font-size: 14px;
        line-height: 1.6;
    }

    .produto-link {
        justify-content: center;

        margin-right: auto;
        margin-left: auto;

        font-size: 13px;
    }

    .produto-card-todos {
        min-height: 445px;
    }

    .produto-todos-content {
        min-height: 100%;

        align-items: center;
        justify-content: center;

        padding:
            30px
            26px;

        text-align: center;
    }

    .produto-todos-content h3 {
        font-size: 30px;
        line-height: 1.08;
    }

    .produto-todos-content p {
        font-size: 14px;
        line-height: 1.65;
    }

    .produto-todos-content .produto-link {
        margin-top: 6px;
        margin-right: auto;
        margin-left: auto;
    }
}


/* =========================================================
   CELULARES PEQUENOS
========================================================= */

@media (max-width: 430px) {

    .produtos {
        padding:
            46px
            0
            52px;
    }

    .produtos-grid {
        gap: 12px;

        padding-right: 12%;
        padding-bottom: 14px;
    }

    .produtos-grid > .produto-card {
        min-height: 430px;

        flex-basis: 88%;
    }

    .produto-img {
        height: 205px;

        min-height: 205px;
    }

    .produto-content {
        min-height: 225px;

        padding:
            21px
            20px
            23px;
    }

    .produto-content h3 {
        font-size: 23px;
    }

    .produto-card-todos {
        min-height: 430px;
    }

    .produto-todos-content {
        padding:
            27px
            23px;
    }

    .produto-todos-content h3 {
        font-size: 28px;
    }
}


/* =========================================================
   ACESSIBILIDADE
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .produto-card,
    .produto-img img,
    .produto-link i {
        transition: none;
    }

    .produtos-grid {
        scroll-behavior: auto;
    }
}
/* =========================================================
   REMOVER CABEÇALHO DA SEÇÃO DE PRODUTOS
========================================================= */

.produtos .section-title {
    display: none !important;
}
.produtos {
    padding-top: 55px !important;
}
/* =========================================================
   PÁGINA PRODUTOS — CABEÇALHO CENTRALIZADO
========================================================= */

.produtos-page-header,
.produtos-header,
.catalogo-header,
.produtos-intro-header {
    display: flex !important;

    width: 100% !important;
    max-width: 900px !important;

    flex-direction: column !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 18px !important;

    margin:
        0
        auto
        48px !important;

    text-align: center !important;
}


/* BLOCO DA TAG + TÍTULO */

.produtos-page-header > div,
.produtos-header > div,
.catalogo-header > div,
.produtos-intro-header > div {
    display: flex !important;

    width: 100% !important;

    flex-direction: column !important;

    align-items: center !important;
    justify-content: center !important;

    text-align: center !important;
}


/* TAG */

.produtos-page-header .section-tag,
.produtos-header .section-tag,
.catalogo-header .section-tag,
.produtos-intro-header .section-tag {
    width: fit-content !important;

    margin-right: auto !important;
    margin-left: auto !important;

    text-align: center !important;
}


/* TÍTULO */

.produtos-page-header h1,
.produtos-page-header h2,
.produtos-header h1,
.produtos-header h2,
.catalogo-header h1,
.catalogo-header h2,
.produtos-intro-header h1,
.produtos-intro-header h2 {
    width: 100% !important;
    max-width: 800px !important;

    margin:
        18px
        auto
        0 !important;

    text-align: center !important;
}


/* TEXTO EXPLICATIVO */

.produtos-page-header > p,
.produtos-header > p,
.catalogo-header > p,
.produtos-intro-header > p {
    width: 100% !important;
    max-width: 650px !important;

    margin:
        0
        auto !important;

    text-align: center !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .produtos-page-header,
    .produtos-header,
    .catalogo-header,
    .produtos-intro-header {
        max-width: 100% !important;

        gap: 14px !important;

        margin-bottom: 34px !important;
    }

    .produtos-page-header h1,
    .produtos-page-header h2,
    .produtos-header h1,
    .produtos-header h2,
    .catalogo-header h1,
    .catalogo-header h2,
    .produtos-intro-header h1,
    .produtos-intro-header h2 {
        max-width: 100% !important;

        text-align: center !important;
    }

    .produtos-page-header > p,
    .produtos-header > p,
    .catalogo-header > p,
    .produtos-intro-header > p {
        max-width: 100% !important;

        text-align: center !important;
    }
}