/* =========================================================
   PRODUTOS RELACIONADOS — OMG TÊXTIL
========================================================= */

.linha-relacionados {
    padding: 55px 0 75px;
    background: #f7f9fc;
}


/* =========================================================
   CABEÇALHO
========================================================= */

.linha-relacionados-header {
    max-width: 700px;
    margin-bottom: 28px;
}

.linha-relacionados-header h2 {
    margin: 10px 0 8px;

    color: #061e45;

    font-size: 34px;
    font-weight: 900;
    line-height: 1.1;
}

.linha-relacionados-header p {
    margin: 0;

    color: #687385;

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   GRID
========================================================= */

.linha-relacionados-grid {
    display: grid !important;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;

    width: 100%;
}


/* =========================================================
   CARD
========================================================= */

.linha-relacionado-card {
    display: flex !important;

    min-width: 0;

    flex-direction: column;

    overflow: hidden;

    border: 1px solid #e1e6ed;
    border-radius: 18px;

    background: #ffffff;

    color: inherit;

    text-decoration: none;

    box-shadow:
        0 8px 24px
        rgba(15, 23, 42, 0.05);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.linha-relacionado-card:hover {
    border-color: #cbd7e7;

    transform: translateY(-4px);

    box-shadow:
        0 14px 32px
        rgba(15, 23, 42, 0.09);
}


/* =========================================================
   IMAGEM
========================================================= */

.linha-relacionado-imagem {
    position: relative;

    width: 100%;
    height: 210px;

    overflow: hidden;

    background: #eef1f5;
}

.linha-relacionado-imagem img {
    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    object-fit: cover;

    transition:
        transform 0.35s ease;
}

.linha-relacionado-card:hover
.linha-relacionado-imagem img {
    transform: scale(1.035);
}


/* =========================================================
   SEM IMAGEM
========================================================= */

.linha-relacionado-sem-imagem {
    display: flex;

    width: 100%;
    height: 100%;

    align-items: center;
    justify-content: center;

    color: #8c96a5;

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
}


/* =========================================================
   CONTEÚDO DO CARD
========================================================= */

.linha-relacionado-conteudo {
    display: flex;

    min-height: 150px;

    flex: 1;
    flex-direction: column;

    padding: 18px;
}

.linha-relacionado-conteudo > span {
    display: block;

    margin-bottom: 7px;

    color: #1558be;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 0.7px;

    text-transform: uppercase;
}

.linha-relacionado-conteudo h3 {
    margin: 0 0 18px;

    color: #061e45;

    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
}

.linha-relacionado-conteudo strong {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    margin-top: auto;

    color: #1558be;

    font-size: 12px;
    font-weight: 900;
}

.linha-relacionado-conteudo strong i {
    font-style: normal;
}


/* =========================================================
   REMOVE ESTILOS HERDADOS DO WORDPRESS/TEMA
========================================================= */

.linha-relacionados a {
    text-decoration: none !important;
}

.linha-relacionados img {
    margin: 0 !important;
}

.linha-relacionados h3,
.linha-relacionados p,
.linha-relacionados span,
.linha-relacionados strong {
    text-decoration: none !important;
}


/* =========================================================
   NOTEBOOK
========================================================= */

@media (max-width: 1200px) {

    .linha-relacionados-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .linha-relacionado-imagem {
        height: 200px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .linha-relacionados-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .linha-relacionado-imagem {
        height: 220px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .linha-relacionados {
        padding: 42px 0 55px;
    }

    .linha-relacionados-header h2 {
        font-size: 28px;
    }

    .linha-relacionados-grid {
        display: flex !important;

        gap: 14px;

        padding-right: 14%;

        overflow-x: auto;

        scroll-snap-type: x mandatory;

        scrollbar-width: none;
    }

    .linha-relacionados-grid::-webkit-scrollbar {
        display: none;
    }

    .linha-relacionado-card {
        flex: 0 0 82%;

        scroll-snap-align: start;
    }

    .linha-relacionado-imagem {
        height: 230px;
    }

}