/*
|--------------------------------------------------------------------------
| Produtos relacionados
|--------------------------------------------------------------------------
*/

.wolf-related-products {
    --wolf-shop-red: #ef233c;
    --wolf-shop-red-dark: #d90429;
    --wolf-shop-dark: #181818;
    --wolf-shop-text: #272727;
    --wolf-shop-muted: #858585;
    --wolf-shop-border: #ececec;
    --wolf-shop-soft: #f7f7f7;
    --wolf-shop-green: #347a52;
    --wolf-shop-green-soft: #e0ffee;

    width: 100%;
    color: var(--wolf-shop-text);
    font-family: "Montserrat", sans-serif;
}

.wolf-related-products,
.wolf-related-products * {
    box-sizing: border-box;
}

.wolf-related-products__inner {
    width: 100%;
    margin: 0 auto;
    padding: 36px 0 16px;
}

/*
|--------------------------------------------------------------------------
| Cabeçalho
|--------------------------------------------------------------------------
*/

.wolf-related-products__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 27px;
    padding-bottom: 19px;
    border-bottom: 1px solid
        var(--wolf-shop-border);
}

.wolf-related-products__heading {
    min-width: 0;
    max-width: 720px;
}

.wolf-related-products__eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--wolf-shop-red);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.wolf-related-products__heading h2 {
    margin: 0 0 8px !important;
    color: #222 !important;
    font-family: inherit !important;
    font-size: clamp(
        23px,
        2.7vw,
        32px
    ) !important;
    font-weight: 750 !important;
    line-height: 1.18 !important;
    letter-spacing: -.028em;
    text-transform: none !important;
}

.wolf-related-products__heading p {
    max-width: 620px;
    margin: 0 !important;
    color: #777;
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.65;
}

.wolf-related-products__view-all {
    display: inline-flex;
    min-width: max-content;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 15px;
    color: #292929 !important;
    font-size: 11px;
    font-weight: 650;
    text-decoration: none !important;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 999px;
    transition:
        color .2s ease,
        background-color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.wolf-related-products__view-all svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease;
}

.wolf-related-products__view-all:hover {
    color: #fff !important;
    background: var(--wolf-shop-red);
    border-color: var(--wolf-shop-red);
    transform: translateY(-1px);
}

.wolf-related-products__view-all:hover svg {
    transform: translateX(2px);
}

/*
|--------------------------------------------------------------------------
| Grade
|--------------------------------------------------------------------------
*/

.wolf-related-products__grid {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}

/*
 * Mantém os cards iguais aos cards da loja.
 */
.wolf-related-products
.wolf-shop-card {
    width: 100%;
}

/*
|--------------------------------------------------------------------------
| Estado vazio
|--------------------------------------------------------------------------
*/

.wolf-related-products__empty {
    display: flex;
    min-height: 280px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 38px 20px;
    text-align: center;
    background: #fffafa;
    border: 1px solid #f0e3e5;
    border-radius: 18px;
}

.wolf-related-products__empty-icon {
    display: grid;
    width: 55px;
    height: 55px;
    place-items: center;
    margin-bottom: 15px;
    color: var(--wolf-shop-red);
    background: #fff;
    border: 1px solid #f0d8dc;
    border-radius: 50%;
}

.wolf-related-products__empty-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wolf-related-products__empty h3 {
    margin: 0 0 7px !important;
    color: #252525 !important;
    font-family: inherit !important;
    font-size: 19px !important;
    font-weight: 750 !important;
    text-transform: none !important;
}

.wolf-related-products__empty p {
    margin: 0 !important;
    color: #777;
    font-size: 12px;
    line-height: 1.6;
}

/*
|--------------------------------------------------------------------------
| Fallback
|--------------------------------------------------------------------------
*/

.wolf-related-products__fallback {
    overflow: hidden;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 14px;
}

.wolf-related-products__fallback a {
    display: block;
    color: #242424;
    text-decoration: none;
}

.wolf-related-products__fallback img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #f5f5f5;
}

.wolf-related-products__fallback strong {
    display: block;
    padding: 13px;
    font-size: 13px;
    line-height: 1.45;
}

/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 1180px) {
    .wolf-related-products__grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 980px) {
    .wolf-related-products__inner {
        padding-top: 27px;
    }

    .wolf-related-products__header {
        align-items: flex-start;
        margin-bottom: 17px;
        padding-bottom: 16px;
    }

    .wolf-related-products__heading h2 {
        font-size: 22px !important;
    }

    .wolf-related-products__heading p {
        font-size: 11px;
    }

    .wolf-related-products__view-all {
        min-height: 34px;
        padding: 7px 12px;
        font-size: 10px;
    }

    .wolf-related-products__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 10px 8px;
    }
}

@media (max-width: 520px) {
    .wolf-related-products__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .wolf-related-products__view-all {
        align-self: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wolf-related-products__view-all,
    .wolf-related-products__view-all svg {
        transition: none;
    }
}