.toppc-related {
    margin-top: clamp(2rem, 4vw, 3.5rem);
}

.toppc-related--products {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 14px;
    background: rgba(15, 23, 42, .38);
}

.toppc-related--articles {
    background: var(--fs-surface, #0f172a);
    padding-top: 0;
}

.toppc-related--articles .fs-container {
    max-width: 980px;
}

.toppc-related__header {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    margin-bottom: 1.2rem;
}

.toppc-related__eyebrow {
    color: var(--fs-green, #22c55e);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.toppc-related__header h2 {
    margin: 0;
    font-size: clamp(1.2rem, 2.8vw, 1.55rem);
    line-height: 1.2;
}

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

.toppc-related__grid--articles {
    grid-template-columns: 1fr;
    gap: .8rem;
}

.toppc-related-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 12px;
    background: rgba(2, 6, 23, .48);
}

.toppc-related-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: rgba(15, 23, 42, .88);
    text-decoration: none;
}

.toppc-related-article {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    min-height: 116px;
}

.toppc-related-article .toppc-related-card__media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 116px;
}

.toppc-related-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .75rem;
}

.toppc-related-article .toppc-related-card__media img {
    object-fit: cover;
    padding: 0;
}

.toppc-related-card__placeholder {
    color: rgba(226, 232, 240, .72);
    font-size: .9rem;
    font-weight: 800;
}

.toppc-related-card__body {
    padding: 1rem;
}

.toppc-related-article .toppc-related-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: .9rem 1rem;
}

.toppc-related-card__meta {
    display: block;
    margin-bottom: .42rem;
    color: var(--fs-green, #22c55e);
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.toppc-related-card h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.32;
}

.toppc-related-article h3 {
    font-size: .98rem;
    line-height: 1.28;
}

.toppc-related-card h3 a {
    color: inherit;
    text-decoration: none;
}

.toppc-related-card h3 a:hover {
    color: var(--fs-purple, #3b82f6);
}

.toppc-related-card p {
    margin: .55rem 0 0;
    color: var(--fs-text-muted, #94a3b8);
    font-size: .88rem;
    line-height: 1.5;
}

.toppc-related-article p {
    margin-top: .4rem;
    font-size: .82rem;
    line-height: 1.42;
}

.toppc-related-card__price {
    margin-top: .8rem;
    color: var(--fs-green, #22c55e);
    font-size: 1.1rem;
    font-weight: 900;
}

@media (max-width: 780px) {
    .toppc-related__grid {
        grid-template-columns: 1fr;
    }

    .toppc-related--products .toppc-related-card {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .toppc-related--products .toppc-related-card__media {
        aspect-ratio: auto;
        min-height: 100%;
    }

    .toppc-related-card__body {
        padding: .9rem;
    }

    .toppc-related-article {
        grid-template-columns: 116px minmax(0, 1fr);
        min-height: 104px;
    }

    .toppc-related-article .toppc-related-card__media {
        min-height: 104px;
    }
}

@media (max-width: 420px) {
    .toppc-related--products .toppc-related-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .toppc-related-card h3 {
        font-size: .92rem;
    }

    .toppc-related--products .toppc-related-card p {
        display: none;
    }

    .toppc-related-article {
        grid-template-columns: 92px minmax(0, 1fr);
        min-height: 92px;
    }

    .toppc-related-article .toppc-related-card__media {
        min-height: 92px;
    }

    .toppc-related-article .toppc-related-card__body {
        padding: .72rem;
    }

    .toppc-related-article .toppc-related-card__meta {
        margin-bottom: .28rem;
        font-size: .68rem;
    }

    .toppc-related-article h3 {
        font-size: .84rem;
    }

    .toppc-related-article p {
        display: none;
    }
}

:root[data-theme="light"] .toppc-related--products,
:root[data-theme="light"] .toppc-related-card {
    background: #fff;
    border-color: rgba(15, 23, 42, .12);
}

:root[data-theme="light"] .toppc-related-card__media {
    background: #f8fafc;
}
