.ns-related-wrap {
    width: calc(90% - 6px);
}

.ns-related-wrap .ns-related-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 216px), 1fr));
    grid-auto-rows: 1fr;
    gap: clamp(10px, 1.45vw, 22px);
}

#page .ns-related-grid > .ns-related-card {
    border-color: #ebebeb;
    border-radius: 8px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

#page .ns-related-grid .product_list {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: none;
    margin: 0;
}

#page .ns-related-grid .product_list > div {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#page .ns-related-grid .product_data {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    width: 100%;
    min-width: 0;
    column-gap: .35em;
}

#page .ns-related-grid .product_data > :first-child {
    flex: 1 0 100%;
    min-width: 0;
}

#page .ns-related-grid .product_data > br {
    display: none;
}

#page .ns-related-grid .product_data a {
    overflow-wrap: anywhere;
    min-block-size: 2.76em;
}

#page .ns-related-grid > .ns-related-card:focus-within {
    border-color: #aa8959;
    box-shadow: inset 0 0 0 1px #aa8959;
}

@media (hover: hover) {
    #page .ns-related-grid > .ns-related-card:hover {
        border-color: #c6a16c;
        box-shadow: 0 10px 25px rgb(42 33 23 / 15%);
    }
}

@media (min-width: 1100px) {
    .ns-related-wrap .ns-related-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ns-related-wrap {
        width: calc(95% - 6px);
    }

    .ns-related-wrap .ns-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    #page .ns-related-grid > .ns-related-card {
        transition: none;
    }
}
