.cs-related-products {
    padding: 100px 0;
    background-color: #fafafa;
}

.cs-related-products__title {
    color: #27272c;
    font-family: var(--font-aeonik);
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 50px;
    text-align: center;
}

.cs-related-products__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cs-related-products__card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    justify-content: flex-end;
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    text-decoration: none;
    color: #fff;
    border-radius: 16px;
    overflow: hidden;
    background: #27272c;
}

.cs-related-products__card-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.cs-related-products__card-image-overlay {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(0, 0, 0, 0.505) 55.08%,
        rgba(0, 0, 0, 0.7) 69.76%,
        rgba(0, 0, 0, 0.85)
    );
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.cs-related-products__card-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cs-related-products__card-placeholder {
    width: 100%;
    height: 100%;
    background: #e8e8e8;
}

.cs-related-products__card-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    justify-content: flex-end;
    z-index: 3;
    position: relative;
    padding: 2rem;
}

.cs-related-products__card-content-title-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
}

.cs-related-products__card-content-title-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.cs-related-products__card-title {
    color: #fff;
    font-family: var(--font-aeonik);
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.3;
    text-wrap: balance;
    margin: 0;
    text-decoration: none;
}

.cs-related-products__card-title-line {
    display: inline;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    background-position: left bottom;
    background-repeat: no-repeat;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

@media (max-width: 992px) {
    .cs-related-products__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cs-related-products {
        padding: 60px 0;
    }

    .cs-related-products__title {
        font-size: 2rem;
        margin-bottom: 32px;
    }

    .cs-related-products__grid {
        grid-template-columns: 1fr;
    }

    .cs-related-products__card-title {
        font-size: 1.25rem;
    }
}
