.sc-home-reviews {
    --cr-bg-page: #101114;
    --cr-bg-section: #1c1e22;
    --cr-bg-frame: #25272d;
    --cr-bg-frame2: #3c4049;
    --cr-border: #30343b;
    --cr-text-primary: #ffffff;
    --cr-text-secondary: #8f96a3;
    --cr-text-muted: #c4c8cf;
    --cr-primary: #1081df;
    --cr-radius-card: 8px;
    --cr-radius-badge: 4px;
    --cr-font: 'Vazir', 'Vazir', 'Tahoma', sans-serif;
    --cr-transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

    width: min(1640px, calc(100% - 32px));
    margin: 64px auto 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
    direction: rtl;
    font-family: var(--cr-font);
    background: transparent;
    min-height: 0;
}

.sc-home-reviews__header {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
    align-items: center;
    gap: 24px;
    width: 100%;
    position: relative;
    direction: ltr;
}

.sc-home-reviews__all-link,
.sc-home-reviews__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 8px 12px;
    border: 0;
    border-radius: 4px;
    background-color: var(--cr-bg-frame);
    color: var(--cr-text-primary);
    font-family: var(--cr-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.22s ease, transform 0.22s ease, opacity 0.22s ease;
}

.sc-home-reviews__all-link {
    justify-self: start;
}

.sc-home-reviews__all-link:hover,
.sc-home-reviews__more:hover:not(:disabled) {
    background-color: var(--cr-bg-frame2);
    color: #ffffff;
    transform: translateY(-1px);
}

.sc-home-reviews__tabs {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    height: 40px;
}

.sc-home-reviews__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 8px 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--cr-text-secondary);
    font-family: var(--cr-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: color var(--cr-transition), border-color var(--cr-transition), background-color var(--cr-transition);
}

.sc-home-reviews__tab:hover,
.sc-home-reviews__tab--active {
    color: var(--cr-text-primary);
}

.sc-home-reviews__tab--active {
    border-bottom-color: #f03900;
}

.sc-home-reviews__title-wrap {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.sc-home-reviews__title {
    margin: 0;
    color: var(--cr-text-primary);
    font-family: var(--cr-font);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}

.sc-home-reviews__title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
}

.sc-home-reviews__title-icon img {
    display: block;
    width: 32px;
    height: 32px;
    filter: brightness(0) saturate(100%) invert(43%) sepia(100%) saturate(4282%) hue-rotate(5deg) brightness(100%) contrast(105%);
}

.sc-home-reviews__grid.cat-review-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-content: center;
    align-items: start;
    column-gap: 24px;
    row-gap: 32px;
    width: 100%;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.sc-home-reviews .cat-review-card {
    width: 100%;
    max-width: none;
    min-width: 0;
}

.sc-home-reviews .cat-review-card__image-wrap {
    height: 184px;
}

.sc-home-reviews .cat-review-card__body {
    min-height: 176px;
}

.sc-home-reviews .cat-review-card__badge {
    background-color: #f03900 !important;
}

.sc-home-reviews__footer {
    display: flex;
    justify-content: center;
    width: 100%;
}

.sc-home-reviews__more {
    min-width: 92px;
}

.sc-home-reviews__more:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.sc-home-reviews__more[hidden] {
    display: none;
}

.sc-home-reviews__card--new {
    animation: sc-home-reviews-card-in 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes sc-home-reviews-card-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1656px) {
    .sc-home-reviews__grid.cat-review-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .sc-home-reviews__header {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .sc-home-reviews__all-link,
    .sc-home-reviews__title-wrap,
    .sc-home-reviews__tabs {
        justify-self: center;
    }

    .sc-home-reviews__grid.cat-review-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .sc-home-reviews {
        width: min(392px, calc(100% - 32px));
        gap: 32px;
    }

    .sc-home-reviews__tabs {
        gap: 4px;
        max-width: 100%;
        overflow-x: auto;
    }

    .sc-home-reviews__tab {
        font-size: 14px;
        padding-inline: 10px;
    }

    .sc-home-reviews__grid.cat-review-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
