/* Product-page recommendations. Kept separate from the shared shop cards. */
.sl-related {
    --sl-accent: #972c3a;
    padding: clamp(2.5rem, 5vw, 5rem) 0;
    background: #f7f7f6;
    border-block: 1px solid #e9e7e5;
    color: #272321;
}

.sl-related__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.sl-related__eyebrow {
    margin: 0 0 .75rem;
    color: var(--sl-accent);
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.sl-related__title {
    margin: 0 0 .75rem;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.15;
}

.sl-related__intro,
.sl-shopping-help__heading p {
    margin: 0;
    color: #625c57;
    font-size: 1rem;
    line-height: 1.65;
}

.sl-related__shop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .65rem 1.25rem;
    border: 1px solid var(--sl-accent);
    border-radius: .375rem;
    color: var(--sl-accent);
    font-size: .9375rem;
    font-weight: 600;
    text-decoration: none;
}

.sl-related__shop:hover {
    background: var(--sl-accent);
    color: #fff;
}

.sl-related__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.sl-related-card {
    min-width: 0;
    border: 1px solid #e5e1de;
    border-radius: .75rem;
    background: #fff;
    transition: box-shadow .2s ease, border-color .2s ease;
}

.sl-related-card:hover,
.sl-related-card:focus-within {
    border-color: #cdb9b8;
    box-shadow: 0 10px 28px #39242610;
}

.sl-related-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: inherit;
    color: inherit;
    text-decoration: none;
}

.sl-related-card__link:hover {
    color: inherit;
}

.sl-related-card__media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: .75rem .75rem 0 0;
    background: #f1f0ee;
}

.sl-related-card__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    transition: transform .35s ease;
}

.sl-related-card__link:hover .sl-related-card__image {
    transform: scale(1.035);
}

.sl-related-card__stock {
    position: absolute;
    top: .75rem;
    left: .75rem;
    max-width: calc(100% - 1.5rem);
    padding: .35rem .65rem;
    border: 1px solid #d5e6db;
    border-radius: .25rem;
    background: #fff;
    color: #285d3e;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.4;
}

.sl-related-card__stock--out {
    border-color: #e2dcd6;
    color: #66584c;
}

.sl-related-card__placeholder {
    display: grid;
    justify-items: center;
    gap: .5rem;
    padding: 1rem;
    color: #625c57;
    font-size: .875rem;
    text-align: center;
}

.sl-related-card__placeholder i {
    font-size: 2rem;
}

.sl-related-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem;
    overflow-wrap: anywhere;
}

.sl-related-card__material {
    margin: 0 0 .5rem;
    color: #6e625c;
    font-size: .875rem;
    line-height: 1.5;
}

.sl-related-card__title {
    margin: 0 0 1.25rem;
    color: #272321;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.55;
}

.sl-related-card__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #efedeb;
}

.sl-related-card__price {
    margin: 0;
    color: var(--sl-accent);
    font-size: 1.125rem;
    font-weight: 600;
}

.sl-related-card__price span {
    color: #625c57;
    font-size: .875rem;
    font-weight: 400;
}

.sl-related-card__cta {
    color: #443b36;
    font-size: .875rem;
    text-decoration: underline;
    text-underline-offset: .25em;
}

.sl-shopping-help {
    padding: 2.5rem 0 3rem;
    background: #fff;
    color: #272321;
}

.sl-shopping-help__heading {
    margin-bottom: 1.5rem;
}

.sl-shopping-help__heading h2 {
    margin: 0 0 .5rem;
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.4;
}

.sl-shopping-help__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.sl-shopping-help__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
    padding: 1.5rem;
    border: 1px solid #e5e1de;
    border-radius: .625rem;
    color: inherit;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.sl-shopping-help__item:hover {
    border-color: #972c3a;
    color: inherit;
}

.sl-shopping-help__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: #f6edef;
    color: #972c3a;
    font-size: 1.25rem;
}

.sl-shopping-help__label,
.sl-shopping-help__copy,
.sl-shopping-help__cta {
    display: block;
}

.sl-shopping-help__label {
    margin-bottom: .5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

.sl-shopping-help__copy {
    color: #625c57;
    font-size: .9375rem;
    line-height: 1.65;
}

.sl-shopping-help__cta {
    margin-top: .75rem;
    color: #972c3a;
    font-size: .875rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: .25em;
}

.sl-related a:focus-visible,
.sl-shopping-help a:focus-visible {
    outline: 3px solid #972c3a;
    outline-offset: 4px;
}

@media (max-width: 991.98px) {
    .sl-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sl-shopping-help__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .sl-related__grid {
        gap: .75rem;
    }

    .sl-related-card__body {
        padding: .875rem;
    }

    .sl-related-card__stock {
        top: .5rem;
        left: .5rem;
        max-width: calc(100% - 1rem);
        padding: .25rem .5rem;
    }

    .sl-shopping-help__item {
        padding: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sl-related-card,
    .sl-related-card__image {
        transition: none;
    }

    .sl-related-card__link:hover .sl-related-card__image {
        transform: none;
    }
}
