.soj-front {
    --soj-a: #fd6564;
    --soj-a-dark: #d94846;
    --soj-b: #5787f2;
    --soj-b-dark: #3a63d0;
    --soj-ink: #1f2430;
    --soj-mute: #6b7280;
    --soj-line: #e6e9f2;
    direction: rtl;
    text-align: right;
    font-family: inherit;
    color: var(--soj-ink);
    background: #fff;
    border: 1px solid var(--soj-line);
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--soj-a), var(--soj-b)) 1;
    border-radius: 0;
    box-shadow: 0 8px 30px rgba(31, 36, 48, .06);
    margin: 40px 0;
    padding: 24px 22px 22px;
    box-sizing: border-box;
}
.soj-front *, .soj-front *::before, .soj-front *::after { box-sizing: border-box; }
.soj-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.soj-front__head { margin-bottom: 14px; }
.soj-front__title { margin: 0 0 6px; font-size: 22px; line-height: 1.5; font-weight: 800; color: var(--soj-ink); }
.soj-front__title::before { content: ""; display: inline-block; width: 6px; height: 22px; border-radius: 3px; background: linear-gradient(180deg, var(--soj-a), var(--soj-b)); margin-left: 10px; vertical-align: -4px; }
.soj-front__sub { margin: 0; color: var(--soj-mute); font-size: 13.5px; line-height: 1.9; }

.soj-front__tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 16px 0 12px; }
.soj-front__lbl { font-size: 13px; color: var(--soj-mute); }
.soj-front__count { margin-right: auto; font-size: 13px; color: var(--soj-mute); }
.soj-sort { font: inherit; font-size: 13px; cursor: pointer; border: 1px solid var(--soj-line); background: #f7f8fc; color: var(--soj-ink); padding: 6px 14px; border-radius: 999px; transition: .15s; line-height: 1.6; }
.soj-sort:hover { border-color: var(--soj-b); color: var(--soj-b-dark); }
.soj-sort[aria-pressed="true"] { background: var(--soj-b-dark); border-color: var(--soj-b-dark); color: #fff; }
.soj-sort i { font-style: normal; font-size: 10px; margin-right: 2px; }
.soj-sort[data-dir="asc"] i::after { content: "▲"; }
.soj-sort[data-dir="desc"] i::after { content: "▼"; }
.soj-sort:focus-visible, .soj-more:focus-visible { outline: 2px solid var(--soj-b); outline-offset: 2px; }

.soj-front__wrap { overflow-x: auto; border: 1px solid var(--soj-line); border-radius: 10px; }
.soj-front__table { width: 100%; border-collapse: collapse; margin: 0; font-size: 14px; min-width: 760px; background: #fff; }
.soj-front__table th, .soj-front__table td { padding: 12px 12px; text-align: center; border: 0; border-bottom: 1px solid var(--soj-line); vertical-align: middle; line-height: 1.7; }
.soj-front__table thead th { background: #f3f6ff; color: var(--soj-ink); font-weight: 700; font-size: 13.5px; white-space: nowrap; border-bottom: 2px solid #dde5fb; }
.soj-front__table thead th[aria-sort="ascending"], .soj-front__table thead th[aria-sort="descending"] { color: var(--soj-b-dark); }
.soj-front__table thead th[aria-sort="ascending"]::after { content: " ▲"; font-size: 10px; }
.soj-front__table thead th[aria-sort="descending"]::after { content: " ▼"; font-size: 10px; }
.soj-front__table tbody tr:nth-child(even) { background: #fafbfe; }
.soj-front__table tbody tr:hover { background: #f1f5ff; }
.soj-front__table tbody tr:last-child > * { border-bottom: 0; }
.soj-c-n { width: 54px; color: var(--soj-mute); }
.soj-front__table th.soj-c-model { text-align: right; font-weight: 700; color: var(--soj-ink); background: transparent; min-width: 190px; }
.soj-c-price { font-weight: 800; color: var(--soj-a-dark); white-space: nowrap; }
.soj-c-price.soj-call { color: var(--soj-mute); font-weight: 500; }
.soj-front__table abbr { text-decoration: none; cursor: help; }

.soj-front__more { text-align: center; margin-top: 18px; }
.soj-front__more[hidden] { display: none; }
.soj-more { font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; padding: 10px 34px; border-radius: 999px; background: #fff; color: var(--soj-b-dark); border: 2px solid var(--soj-b); transition: .15s; }
.soj-more:hover { background: var(--soj-b); color: #fff; }
.soj-more:disabled { opacity: .6; cursor: wait; }
.soj-front.is-loading .soj-front__wrap { opacity: .55; transition: opacity .15s; }

@media (max-width: 760px) {
    .soj-front { padding: 18px 12px; margin: 28px 0; }
    .soj-front__title { font-size: 19px; }
    .soj-front__count { margin-right: 0; width: 100%; }
    .soj-front__wrap { border: 0; overflow: visible; }
    .soj-front__table { min-width: 0; font-size: 13.5px; background: transparent; }
    .soj-front__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .soj-front__table, .soj-front__table tbody, .soj-front__table tr { display: block; }
    .soj-front__table tbody tr { border: 1px solid var(--soj-line); border-radius: 12px; margin-bottom: 12px; padding: 6px 12px; background: #fff !important; box-shadow: 0 2px 8px rgba(31, 36, 48, .04); }
    .soj-front__table td, .soj-front__table th.soj-c-model { display: flex; justify-content: space-between; gap: 14px; text-align: left; padding: 8px 0; border-bottom: 1px dashed var(--soj-line); min-width: 0; }
    .soj-front__table tbody tr > *:last-child { border-bottom: 0; }
    .soj-front__table td::before, .soj-front__table th.soj-c-model::before { content: attr(data-label); color: var(--soj-mute); font-weight: 500; text-align: right; flex: none; }
    .soj-front__table th.soj-c-model { font-size: 15px; }
    .soj-c-n { display: none !important; }
}

/* رنگ‌های تیره‌تر بر اساس رنگ‌های انتخابی در تنظیمات */
@supports (color: color-mix(in srgb, red, blue)) {
    .soj-front {
        --soj-a-dark: color-mix(in srgb, var(--soj-a) 80%, #000);
        --soj-b-dark: color-mix(in srgb, var(--soj-b) 80%, #000);
    }
}
.soj-ok { color: #1a8a43; font-weight: 800; }

/* گرید */
.soj-grade { display: inline-block; min-width: 46px; padding: 2px 10px; border-radius: 999px; font-weight: 800; font-size: 12.5px; line-height: 1.7; direction: ltr; border: 1px solid transparent; }
.soj-g1 { background: #eef1f8; color: #3f4a66; border-color: #dbe1ef; }
.soj-g2 { background: #e8f6ee; color: #17703c; border-color: #c6e8d3; }
.soj-g3 { background: #e8f0ff; color: #2a4fb5; border-color: #c9d9fb; }
.soj-g4 { background: linear-gradient(135deg, #ffe7a3, #ffc9a3); color: #7a3b00; border-color: #f4d08a; }

/* دکمه‌ی دیوار */
.soj-divar { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: transform .15s; border-radius: 8px; }
.soj-divar:hover { transform: translateY(-1px); }
.soj-divar:focus-visible { outline: 2px solid var(--soj-b); outline-offset: 3px; }
.soj-divar__img { display: block; height: 28px; width: auto; max-width: 96px; }
.soj-divar__badge { display: inline-flex; align-items: center; gap: 6px; background: #a62626; color: #fff; font-weight: 800; font-size: 12.5px; line-height: 1.5; padding: 5px 12px 5px 10px; border-radius: 8px; }
.soj-divar__badge::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: #fff; box-shadow: 3px 3px 0 -1px rgba(255, 255, 255, .55); }
.soj-divar:hover .soj-divar__badge { background: #8f1f1f; }
