/* Product detail: bestseller / related products section */
.product-related-products {
    padding: 0 0 1.5rem;
}

.product-related-products > .container {
    margin-top: 0;
    margin-bottom: 0;
}

.product-related-products .block--list_posts > .head {
    margin-bottom: 0;
    text-align: center;
}

.product-related-products .block--list_posts > .head .title {
    margin: 0;
    padding: .18rem .75rem .28rem;
    border-radius: .5rem .5rem 0 0;
    background: var(--header-gold);
    color: #715200;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.product-related-products .posts-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
}

.right .product-related-products .posts-list {
    grid-template-columns: minmax(0, 1fr);
    gap: .9rem;
}

.product-related-products .post-item {
    min-width: 0;
    padding: .5rem;
    border: 1px solid #e7e7e7;
    border-top: 0;
    background: #fff;
}

.product-related-products .post-item > a:first-child {
    display: block;
}

.product-related-products .post-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 0;
    background: #fff;
}

.product-related-products .post-item h3 {
    margin: .5rem 0 .45rem;
    color: #111;
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.25;
}

.right .product-related-products .block--list_posts > .head {
    text-align: center;
}

.right .product-related-products .block--list_posts > .head .title {
    font-size: 14px !important;
}

.product-related-products .pw-related-product-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: .35rem;
    color: #111;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.2;
}

.product-related-products .pw-related-product-meta__item {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    min-width: 0;
    white-space: nowrap;
}

.product-related-products .pw-related-product-meta__item::before {
    color: #111;
    font-size: 16px;
    line-height: 1;
}

.product-related-products .pw-related-product-meta__item--custom::before { content: "↔"; }
.product-related-products .pw-related-product-meta__item--material::before { content: "▰"; }
.product-related-products .pw-related-product-meta__item--speed::before { content: "▣"; }

.right .product-related-products .pw-related-product-meta {
    grid-template-columns: repeat(3, max-content);
    justify-content: space-between;
    gap: .25rem;
}

@media (max-width: 900px) {
    .product-related-products .posts-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .9rem .75rem;
    }

    .right .product-related-products .posts-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .right .product-related-products .block--list_posts > .head {
        text-align: center;
    }

    .product-related-products .block--list_posts > .head .title {
        font-size: 14px !important;
    }

    .right .product-related-products .pw-related-product-meta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-content: stretch;
    }
}

@media (max-width: 480px) {
    .product-related-products .pw-related-product-meta__item {
        justify-content: center;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: center;
    }
}
