/* Digi Sanat Catalog Route 0.3.1-rc2 */

.ds-route-journey.ds-catalog-journey {
    position: static;
    display: block;
    inset: auto;
    margin-block: 20px 52px;
    padding: 10px;
    overflow-x: auto;
    color: #dce8ee;
    background: var(--ds-night, #06131f);
    border: 1px solid #1f3a4d;
    border-radius: 14px;
    box-shadow: 0 24px 55px rgba(6, 19, 31, 0.14);
}

.admin-bar .ds-route-journey.ds-catalog-journey { inset-block-start: auto; }

.ds-route-journey ol {
    display: grid;
    min-width: 720px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ds-route-journey .ds-catalog-journey__step {
    display: grid;
    min-width: 0;
    min-height: 64px;
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: inherit;
    border: 1px solid transparent;
    border-radius: 9px;
}

.ds-route-journey a.ds-catalog-journey__step:hover,
.ds-route-journey a.ds-catalog-journey__step:focus-visible {
    color: #fff;
    background: #102638;
    border-color: #2d4c60;
}

.ds-route-journey .is-current .ds-catalog-journey__step {
    color: #fff;
    background: #1a3042;
    border-color: #2d4b5e;
}

.ds-route-journey .is-complete .ds-catalog-journey__step { color: #b8d2df; }
.ds-route-journey .is-next .ds-catalog-journey__step { color: #738b99; }

.ds-route-journey .ds-catalog-journey__number {
    grid-row: auto;
    color: var(--ds-copper, #d88958);
    font-family: var(--ds-font-technical, monospace);
    font-size: 12px;
    font-weight: 900;
}

.ds-route-journey .ds-catalog-journey__icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: 0.88;
}

.ds-route-journey .ds-catalog-journey__icon svg { width: 16px; height: 16px; }
.ds-route-journey .ds-catalog-journey__copy { display: grid; min-width: 0; line-height: 1.45; }
.ds-route-journey .ds-catalog-journey__copy strong,
.ds-route-journey .ds-catalog-journey__copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-route-journey .ds-catalog-journey__copy strong { font-size: 13px; }
.ds-route-journey .ds-catalog-journey__copy small { color: currentColor; font-size: 12px; opacity: 0.66; }

.ds-family-gateway { margin-block: 56px 20px; }
.ds-family-gateway__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-block-start: 30px;
}

.ds-family-gateway__card {
    position: relative;
    display: grid;
    min-height: 260px;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: start;
    gap: 20px 16px;
    padding: 25px;
    overflow: hidden;
    color: inherit;
    background: var(--ds-white, #fff);
    border: 1px solid var(--ds-line, #dfe3e4);
    border-radius: 8px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ds-family-gateway__card::after {
    position: absolute;
    inset-block-end: 0;
    inset-inline: 0;
    height: 3px;
    background: var(--ds-copper, #d88958);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.ds-family-gateway__card:hover,
.ds-family-gateway__card:focus-visible {
    border-color: var(--ds-line-dark, #a9b3b8);
    box-shadow: var(--ds-shadow, 0 18px 50px rgba(6, 19, 31, 0.12));
    transform: translateY(-2px);
}

.ds-family-gateway__card:hover::after,
.ds-family-gateway__card:focus-visible::after { transform: scaleX(1); }
.ds-family-gateway__number { color: var(--ds-copper-deep, #a85c34); font-family: var(--ds-font-technical, monospace); font-size: 12px; font-weight: 900; }
.ds-family-gateway__icon { display: grid; width: 48px; height: 48px; grid-column: 2; grid-row: 1; justify-self: end; place-items: center; color: var(--ds-blue-deep, #174c69); background: #edf3f6; border: 1px solid #d6e2e8; border-radius: 50%; }
.ds-family-gateway__icon svg { width: 24px; height: 24px; }
.ds-family-gateway__copy { display: grid; grid-column: 1 / -1; gap: 8px; }
.ds-family-gateway__copy strong { color: var(--ds-night, #06131f); font-size: 20px; line-height: 1.5; }
.ds-family-gateway__copy small { color: var(--ds-muted, #65757f); font-size: 13px; line-height: 1.8; }
.ds-family-gateway__meta { align-self: end; color: var(--ds-muted, #65757f); font-family: var(--ds-font-technical, monospace); font-size: 12px; }
.ds-family-gateway__action { align-self: end; justify-self: end; color: var(--ds-blue-deep, #174c69); font-size: 13px; font-weight: 850; }

.ds-family-search {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 28px 42px;
    align-items: end;
    margin-block: 50px 26px;
    padding: 30px;
    background: var(--ds-white, #fff);
    border: 1px solid var(--ds-line, #dfe3e4);
    border-radius: 8px;
}

.ds-family-search__heading { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }
.ds-family-search__icon { display: grid; width: 46px; height: 46px; place-items: center; color: var(--ds-blue-deep, #174c69); background: #eaf2f6; border-radius: 50%; }
.ds-family-search__icon svg { width: 22px; height: 22px; }
.ds-family-search h2 { margin: 0; color: var(--ds-night, #06131f); font-size: clamp(22px, 2.6vw, 32px); }
.ds-family-search__heading p:last-child { margin: 8px 0 0; color: var(--ds-muted, #65757f); font-size: 13px; }
.ds-family-search__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.ds-family-search__form input { min-width: 0; min-height: 52px; padding: 10px 16px; color: var(--ds-night, #06131f); background: #fafbf9; border: 1px solid var(--ds-line-dark, #a9b3b8); border-radius: 4px; font-family: var(--ds-font-technical, monospace); font-size: 15px; font-weight: 750; text-align: left; }
.ds-family-search__boundary { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 16px; padding-block-start: 16px; color: var(--ds-muted, #65757f); border-block-start: 1px solid var(--ds-line, #dfe3e4); font-size: 12px; }
.ds-family-search__boundary span { font-family: var(--ds-font-technical, monospace); font-weight: 800; }
.ds-family-search__boundary a { color: var(--ds-blue-deep, #174c69); font-weight: 800; }

.ds-code-guide { margin-block: 26px 62px; scroll-margin-top: 120px; }
.ds-code-guide__heading { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 34px; align-items: end; margin-block-end: 24px; }
.ds-code-guide__heading h2 { max-width: 650px; margin: 0; color: var(--ds-night, #06131f); font-size: clamp(30px, 4vw, 52px); line-height: 1.35; }
.ds-code-guide__heading > p { margin: 0; color: var(--ds-muted, #65757f); font-size: 13px; }
.ds-code-guide__panel { display: grid; grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr); gap: 44px; min-height: 360px; padding: 40px; color: #dce7ed; background: linear-gradient(145deg, var(--ds-night, #06131f), #0b2232); border: 1px solid #213f53; border-radius: 14px; box-shadow: 0 24px 55px rgba(6, 19, 31, 0.16); }
.ds-code-guide__example { align-self: center; }
.ds-code-guide__example > span { display: block; color: #7f9cac; font-family: var(--ds-font-technical, monospace); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; }
.ds-code-guide__example > code { display: block; margin-block: 18px 24px; color: #ff9b68; font-family: var(--ds-font-technical, monospace); font-size: clamp(27px, 4vw, 45px); font-weight: 900; line-height: 1.2; overflow-wrap: anywhere; }
.ds-code-guide__example > p { margin: 0; padding-block-start: 20px; color: #91a9b6; border-block-start: 1px solid #294457; font-size: 13px; }
.ds-code-guide__segments { display: grid; gap: 10px; margin: 0; }
.ds-code-guide__segments > div { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 16px; align-items: center; padding: 15px 18px; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(202, 220, 229, 0.12); border-radius: 8px; }
.ds-code-guide__segments dt { color: #fff; font-size: 13px; font-weight: 850; }
.ds-code-guide__segments dd { display: grid; grid-column: 1 / -1; grid-row: 1; grid-template-columns: minmax(0, 1fr) 120px; gap: 16px; align-items: center; margin: 0; }
.ds-code-guide__segments dd span { grid-column: 1; grid-row: 1; color: #8ca4b2; font-size: 12px; }
.ds-code-guide__segments dd code { grid-column: 2; grid-row: 1; justify-self: end; color: #ff9b68; font-family: var(--ds-font-technical, monospace); font-size: 16px; font-weight: 900; }
.ds-code-guide__pending { display: flex; align-self: center; gap: 16px; padding: 24px; color: #e2edf2; background: rgba(164, 91, 55, 0.12); border: 1px solid rgba(224, 143, 96, 0.35); border-radius: 8px; }
.ds-code-guide__pending > svg { width: 30px; height: 30px; flex: none; color: #f09b6b; }
.ds-code-guide__pending strong { font-size: 16px; }
.ds-code-guide__pending p { margin: 8px 0 0; color: #9eb1bc; font-size: 13px; }

.ds-family-catalog { scroll-margin-top: 120px; }
.ds-family-catalog__heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-block: 0 22px; }
.ds-family-catalog__heading h2 { margin: 0; color: var(--ds-night, #06131f); font-size: clamp(26px, 3.4vw, 42px); }
.ds-family-catalog__heading > p { display: grid; margin: 0; color: var(--ds-muted, #65757f); text-align: left; }
.ds-family-catalog__heading > p strong { color: var(--ds-copper-deep, #a85c34); font-family: var(--ds-font-technical, monospace); font-size: 24px; }
.ds-family-catalog__heading > p span { font-size: 12px; }
.ds-catalog-table-wrap { width: 100%; overflow-x: auto; background: #fff; border: 1px solid var(--ds-line, #dfe3e4); border-radius: 8px; }
.ds-catalog-table { width: 100%; min-width: 1050px; border-collapse: collapse; }
.ds-catalog-table thead { color: #d9e5eb; background: var(--ds-night, #06131f); }
.ds-catalog-table th,
.ds-catalog-table td { padding: 15px 14px; text-align: right; vertical-align: middle; border-block-end: 1px solid var(--ds-line, #dfe3e4); }
.ds-catalog-table thead th { font-size: 12px; font-weight: 800; white-space: nowrap; }
.ds-catalog-table tbody tr:last-child > * { border-block-end: 0; }
.ds-catalog-table tbody tr:hover { background: #fafbf9; }
.ds-catalog-row__select { width: 90px; }
.ds-compare-choice { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; color: var(--ds-blue-deep, #174c69); cursor: pointer; font-size: 12px; font-weight: 800; }
.ds-compare-choice input { width: 19px; height: 19px; margin: 0; accent-color: var(--ds-copper-deep, #a85c34); }
.ds-catalog-row__identity { width: 280px; }
.ds-catalog-row__identity > a { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; align-items: center; }
.ds-catalog-row__thumb { display: grid; width: 62px; aspect-ratio: 1; place-items: center; overflow: hidden; color: var(--ds-blue-deep, #174c69); background: var(--ds-paper, #f4f2ec); border: 1px solid var(--ds-line, #dfe3e4); border-radius: 4px; }
.ds-catalog-row__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ds-catalog-row__thumb svg { width: 29px; height: 29px; }
.ds-catalog-row__identity small,
.ds-catalog-row__identity strong { display: block; }
.ds-catalog-row__identity small { color: var(--ds-blue-deep, #174c69); font-family: var(--ds-font-technical, monospace); font-size: 12px; }
.ds-catalog-row__identity strong { margin-block-start: 3px; color: var(--ds-night, #06131f); font-size: 13px; line-height: 1.55; }
.ds-catalog-row__mpn { width: 180px; }
.ds-catalog-row__mpn code { color: var(--ds-night, #06131f); font-family: var(--ds-font-technical, monospace); font-size: 14px; font-weight: 900; white-space: nowrap; }
.ds-catalog-row__specs { min-width: 285px; }
.ds-catalog-row__specs dl { display: grid; gap: 4px; margin: 0; }
.ds-catalog-row__specs dl > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.ds-catalog-row__specs dt,
.ds-catalog-row__specs dd { font-size: 12px; }
.ds-catalog-row__specs dt { color: var(--ds-muted, #65757f); }
.ds-catalog-row__specs dd { margin: 0; color: var(--ds-night, #06131f); font-family: var(--ds-font-technical, monospace); font-weight: 750; }
.ds-catalog-row__unknown { color: var(--ds-warning, #8a571d); font-size: 12px; }
.ds-catalog-row__state { width: 170px; }
.ds-catalog-row__action { width: 150px; }

.ds-context-empty { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-block: 26px; padding: 28px; background: #fff; border: 1px solid var(--ds-line, #dfe3e4); border-inline-start: 4px solid var(--ds-copper, #d88958); border-radius: 7px; }
.ds-context-empty > svg { width: 36px; height: 36px; color: var(--ds-copper-deep, #a85c34); }
.ds-context-empty h2 { margin: 0; font-size: 20px; }
.ds-context-empty p { margin: 6px 0 0; color: var(--ds-muted, #65757f); font-size: 13px; }
.ds-context-empty__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ds-compare-interface noscript .ds-context-empty { display: block; margin-block: 16px; color: var(--ds-muted, #65757f); font-size: 13px; }

.ds-compare-tray { position: fixed; z-index: 1100; inset-block-end: 18px; left: 50%; display: flex; width: min(820px, calc(100% - 30px)); align-items: center; justify-content: space-between; gap: 20px; padding: 13px 15px; color: #fff; background: rgba(6, 19, 31, 0.97); border: 1px solid #355064; border-radius: 11px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32); backdrop-filter: blur(14px); transform: translateX(-50%); }
.ds-compare-tray[hidden] { display: none; }
.ds-compare-tray__identity,
.ds-compare-tray__actions { display: flex; align-items: center; gap: 11px; }
.ds-compare-tray__identity > svg { width: 28px; height: 28px; color: #f29b6b; }
.ds-compare-tray__identity p { display: grid; margin: 0; }
.ds-compare-tray__identity strong { font-size: 13px; }
.ds-compare-tray__identity small { color: #91a8b5; font-size: 12px; }
.ds-compare-tray .ds-button--outline { color: #fff !important; border-color: #597183; }
.ds-compare-tray .ds-button:disabled { cursor: not-allowed; opacity: 0.48; transform: none; }
.ds-compare-dialog { width: min(980px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 34px; overflow: auto; color: var(--ds-ink, #17242d); background: var(--ds-paper, #f4f2ec); border: 1px solid var(--ds-line-dark, #a9b3b8); border-radius: 12px; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.4); }
.ds-compare-dialog::backdrop { background: rgba(3, 14, 23, 0.74); backdrop-filter: blur(5px); }
.ds-compare-dialog__close { position: absolute; inset-block-start: 16px; inset-inline-end: 16px; display: grid; width: 44px; height: 44px; place-items: center; color: var(--ds-night, #06131f); background: #fff; border: 1px solid var(--ds-line-dark, #a9b3b8); border-radius: 50%; cursor: pointer; font-size: 26px; }
.ds-compare-dialog header { padding-inline-end: 55px; }
.ds-compare-dialog header h2 { margin: 0; font-size: clamp(25px, 3vw, 36px); }
.ds-compare-dialog header > p:last-child { max-width: 720px; margin: 8px 0 0; color: var(--ds-muted, #65757f); font-size: 13px; }
.ds-compare-dialog__scroll { margin-block-start: 26px; overflow-x: auto; background: #fff; border: 1px solid var(--ds-line, #dfe3e4); }
.ds-compare-dialog table { width: 100%; min-width: 720px; border-collapse: collapse; }
.ds-compare-dialog th,
.ds-compare-dialog td { min-width: 170px; padding: 13px 15px; text-align: right; border: 1px solid var(--ds-line, #dfe3e4); font-size: 12px; }
.ds-compare-dialog thead th { color: #fff; background: var(--ds-night, #06131f); }
.ds-compare-dialog tbody th { color: var(--ds-muted, #65757f); background: #f7f7f4; }
.ds-compare-dialog thead a { color: #ffae82; font-family: var(--ds-font-technical, monospace); font-weight: 850; }
.ds-compare-dialog__note { display: flex; gap: 9px; margin: 20px 0 0; padding: 13px; color: #744628; background: #fff2e9; border: 1px solid #edc7ae; border-radius: 6px; font-size: 12px; }
.ds-compare-dialog__note svg { width: 20px; height: 20px; flex: none; }

.ds-product-catalog-context__path a { color: inherit; text-decoration: underline; text-decoration-color: rgba(232, 165, 121, 0.58); text-underline-offset: 4px; }
.ds-product-catalog-context__path a:hover,
.ds-product-catalog-context__path a:focus-visible { color: #efb18a; }

@media (max-width: 1000px) {
    .ds-family-gateway__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ds-family-search,
    .ds-code-guide__heading { grid-template-columns: 1fr; }
    .ds-family-search__boundary { grid-column: 1; }
    .ds-code-guide__panel { grid-template-columns: 1fr; min-height: 0; }
}

@media (max-width: 760px) {
    .ds-route-journey.ds-catalog-journey { margin-block: 14px 34px; overflow: visible; padding: 7px; }
    .ds-route-journey ol { min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .ds-route-journey .ds-catalog-journey__step { min-height: 58px; gap: 7px; padding: 8px; }
    .ds-family-gateway__grid { grid-template-columns: 1fr; }
    .ds-family-gateway__card { min-height: 235px; }
    .ds-family-search,
    .ds-code-guide__panel { padding: 22px; }
    .ds-family-search__form { grid-template-columns: 1fr; }
    .ds-family-search__form .ds-button { width: 100%; }
    .ds-family-search__boundary,
    .ds-family-catalog__heading { align-items: flex-start; flex-direction: column; }
    .ds-code-guide__heading h2 { font-size: 32px; }
    .ds-code-guide__segments > div,
    .ds-code-guide__segments dd { grid-template-columns: 1fr; }
    .ds-code-guide__segments dt,
    .ds-code-guide__segments dd,
    .ds-code-guide__segments dd span,
    .ds-code-guide__segments dd code { grid-column: 1; grid-row: auto; justify-self: start; }
    .ds-catalog-table-wrap { overflow: visible; background: transparent; border: 0; }
    .ds-catalog-table,
    .ds-catalog-table tbody,
    .ds-catalog-table tr,
    .ds-catalog-table th,
    .ds-catalog-table td { display: block; width: 100%; min-width: 0; }
    .ds-catalog-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
    .ds-catalog-table tbody { display: grid; gap: 14px; }
    .ds-catalog-table tbody tr { padding: 16px; background: #fff; border: 1px solid var(--ds-line, #dfe3e4); border-radius: 8px; }
    .ds-catalog-table tbody tr > * { display: grid; grid-template-columns: minmax(110px, 0.4fr) minmax(0, 0.6fr); gap: 12px; align-items: start; padding: 11px 0; border-block-end: 1px solid var(--ds-line, #dfe3e4); }
    .ds-catalog-table tbody tr > *::before { color: var(--ds-muted, #65757f); content: attr(data-label); font-size: 12px; font-weight: 800; }
    .ds-catalog-table tbody tr > *:last-child { border-block-end: 0; }
    .ds-catalog-row__identity > a { grid-template-columns: 52px minmax(0, 1fr); }
    .ds-catalog-row__thumb { width: 52px; }
    .ds-catalog-row__action .ds-button { width: 100%; }
    .ds-context-empty { grid-template-columns: 1fr; }
    .ds-context-empty__actions { display: grid; }
    .ds-compare-tray { align-items: stretch; flex-direction: column; }
    .ds-compare-tray__actions .ds-button { flex: 1; }
    .ds-compare-dialog { padding: 26px 16px; }
}

@media (max-width: 470px) {
    .ds-family-search__heading { grid-template-columns: 1fr; }
    .ds-family-search__boundary { align-items: flex-start; flex-direction: column; }
    .ds-catalog-table tbody tr > * { grid-template-columns: 1fr; }
    .ds-compare-tray__actions { display: grid; grid-template-columns: 0.75fr 1.25fr; }
}

@media (prefers-reduced-motion: reduce) {
    .ds-family-gateway__card,
    .ds-family-gateway__card::after { transition-duration: 0.01ms !important; }
}

/* Digi Sanat catalog NSK-style responsive table — 2026-08-18 */
@media (max-width: 820px) {
  .ds-family-catalog .ds-catalog-table-wrap {
    position: relative;
    display: block;
    inline-size: 100%;
    max-inline-size: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    background: #fff;
    border: 1px solid var(--ds-line, #dfe3e4);
    border-radius: 8px;
    direction: rtl;
  }

  .ds-family-catalog .ds-catalog-table-wrap::before {
    position: sticky;
    inset-inline-start: 12px;
    z-index: 30;
    display: block;
    inline-size: max-content;
    max-inline-size: calc(100vw - 64px);
    margin-block: 10px 8px;
    margin-inline-start: 12px;
    padding: 6px 9px;
    color: var(--ds-muted, #65757f);
    content: "برای مشاهده ستون‌های بیشتر، جدول را افقی بکشید";
    font-size: 11px;
    font-weight: 700;
    line-height: 1.7;
    white-space: normal;
    background: var(--ds-paper, #f4f2ec);
    border-radius: 5px;
  }

  .ds-family-catalog table.ds-catalog-table {
    display: table;
    inline-size: max-content;
    min-inline-size: 1120px !important;
    max-inline-size: none;
    margin: 0;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
  }

  .ds-family-catalog .ds-catalog-table thead {
    position: static !important;
    display: table-header-group;
    inline-size: auto !important;
    block-size: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: normal !important;
  }

  .ds-family-catalog .ds-catalog-table tbody { display: table-row-group; }
  .ds-family-catalog .ds-catalog-table tr { display: table-row; }
  .ds-family-catalog .ds-catalog-table th,
  .ds-family-catalog .ds-catalog-table td {
    display: table-cell;
    inline-size: auto;
    min-inline-size: 78px !important;
    max-inline-size: none;
    padding: 9px 10px;
    vertical-align: middle;
    white-space: nowrap;
    border: 0;
    border-block-end: 1px solid var(--ds-line, #dfe3e4);
    text-align: center;
  }

  .ds-family-catalog .ds-catalog-table tbody tr {
    padding: 0;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .ds-family-catalog .ds-catalog-table tbody tr > *::before { display: none; }

  .ds-family-catalog .ds-catalog-table thead th {
    position: sticky;
    inset-block-start: 0;
    z-index: 8;
    color: var(--ds-ink, #18252d);
    background: var(--ds-paper, #f4f2ec);
    white-space: normal;
  }

  .ds-family-catalog .ds-catalog-table thead tr:nth-child(2) th { inset-block-start: 47px; }

  .ds-family-catalog .ds-catalog-table tbody td.ds-catalog-row__select {
    position: relative;
    inset-inline-start: auto;
    z-index: 1;
    inline-size: 82px;
    min-inline-size: 82px !important;
    background: #fff;
    box-shadow: none;
  }

  .ds-family-catalog .ds-catalog-table thead tr:first-child > th:first-child {
    position: sticky;
    inset-inline-start: 0;
    z-index: 17;
    inline-size: 196px;
    min-inline-size: 196px !important;
    max-inline-size: 196px;
    color: #fff;
    background: #082f43;
  }

  .ds-family-catalog .ds-catalog-table tbody td.ds-catalog-row__identity {
    position: sticky;
    inset-inline-start: 0;
    z-index: 12;
    inline-size: 196px;
    min-inline-size: 196px !important;
    max-inline-size: 196px;
    background: #fff;
    box-shadow: -1px 0 0 var(--ds-line, #dfe3e4);
    text-align: start;
  }

  .ds-family-catalog .ds-catalog-table thead tr:first-child > th:last-child {
    position: relative;
    inset-inline-start: auto;
    z-index: 8;
    inline-size: 82px;
    min-inline-size: 82px !important;
    color: #fff;
    background: #082f43;
    text-align: center;
  }

  .ds-family-catalog .ds-catalog-row__identity > a {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    min-inline-size: 0;
  }

  .ds-family-catalog .ds-catalog-row__thumb { inline-size: 46px; }
  .ds-family-catalog .ds-catalog-row__identity strong,
  .ds-family-catalog .ds-catalog-row__identity code {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .ds-family-catalog .ds-catalog-row__action .ds-button,
  .ds-family-catalog .ds-compare-choice { min-block-size: 44px; }

  .ds-family-catalog .ds-catalog-table-wrap:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ds-accent, #087ea4) 45%, transparent);
    outline-offset: 3px;
  }
}

@media (max-width: 420px) {
  .ds-family-catalog table.ds-catalog-table { min-inline-size: 1060px !important; }
  .ds-family-catalog .ds-catalog-table thead tr:first-child > th:first-child,
  .ds-family-catalog .ds-catalog-table tbody td.ds-catalog-row__identity {
    inline-size: 178px;
    min-inline-size: 178px !important;
    max-inline-size: 178px;
  }
}

/* DS PRODUCT PILOT 6205-2RSH — SKF-informed decision surface — START */
body.postid-3098 .ds-product-page {
  padding-block-start: 22px;
}

body.postid-3098 .ds-product-identity {
  margin-block-end: 26px;
  padding-block-end: 0;
  border-block-end: 0;
}

body.postid-3098 .ds-product-identity__signals {
  margin-block-end: 16px;
}

body.postid-3098 .ds-product-identity h1 {
  max-inline-size: 780px;
  font-size: clamp(2.65rem, 4.2vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

body.postid-3098 .ds-product-identity__summary {
  max-inline-size: 64ch;
  margin-block-start: 14px;
  color: var(--ds-ink-soft, #3f4f59);
  font-size: 15.5px;
  line-height: 1.9;
}

body.postid-3098 .ds-product-code {
  padding: 13px 16px;
  border-inline-start-width: 3px;
}

body.postid-3098 .ds-product-code > span {
  font-size: 10px;
}

body.postid-3098 .ds-product-code > code {
  margin-block: 2px;
  font-size: clamp(1.12rem, 1.75vw, 1.45rem);
}

body.postid-3098 .ds-product-code > :is(strong, small) {
  font-size: 10.5px;
  line-height: 1.65;
}

body.postid-3098 .ds-product-overview {
  margin-block-end: 56px;
}

body.postid-3098 .ds-product-overview .ds-key-specs {
  margin: 0;
}

body.postid-3098 .ds-key-specs .ds-section-heading {
  margin-block-end: 14px;
}

body.postid-3098 .ds-key-specs .ds-section-heading h2 {
  font-size: clamp(1.45rem, 2vw, 1.85rem);
}

body.postid-3098 .ds-key-specs__grid > div {
  min-block-size: 86px;
  padding: 14px 16px;
}

body.postid-3098 .ds-key-specs__grid dt {
  font-size: 10.5px;
  line-height: 1.55;
}

body.postid-3098 .ds-key-specs__grid dd {
  margin-block-start: 7px;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.3;
}

body.postid-3098 .ds-product-overview__action {
  margin-block-start: 14px;
  padding: 16px;
}

body.postid-3098 .ds-product-overview__action .ds-button {
  min-block-size: 48px;
}

body.postid-3098 .ds-product-overview__action .ds-text-link {
  margin-block-start: 12px;
}

body.postid-3098 .ds-product-catalog-context {
  margin-block: 34px 0;
  border-radius: 0;
  box-shadow: none;
}

body.postid-3098 :is(
  .ds-full-specs,
  .ds-evidence,
  .ds-product-guidance,
  .ds-relationships
) {
  margin-block: 72px 0;
}

body.postid-3098 .ds-section-heading {
  margin-block-end: 20px;
}

body.postid-3098 .ds-section-heading h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.55rem);
  line-height: 1.25;
}

body.postid-3098 .ds-section-heading > p {
  max-inline-size: 470px;
  line-height: 1.8;
}

body.postid-3098 .ds-spec-table {
  border-color: var(--ds-line, #dfe3e4);
  box-shadow: none;
}

body.postid-3098 .ds-spec-table :is(th, td) {
  padding: 13px 16px;
}

body.postid-3098 .ds-spec-table th {
  color: var(--ds-muted, #65757f);
  background: #f8f7f3;
}

body.postid-3098 .ds-spec-table td {
  background: #fff;
}

body.postid-3098 .ds-evidence {
  padding: clamp(26px, 4vw, 44px);
  border-block-start: 4px solid var(--ds-blue, #087ea4);
  box-shadow: none;
}

body.postid-3098 .ds-product-guidance .ds-prose {
  font-size: 15px;
  line-height: 1.95;
}

body.postid-3098 .ds-guidance-block {
  background: #fff;
}

body.postid-3098 .ds-guidance-block > :first-child {
  margin-block-start: 0;
  color: var(--ds-night, #06131f);
}

body.postid-3098 .ds-product-caution {
  margin-block: 64px 0;
  border-radius: 0;
}

body.postid-3098 .ds-product-rfq {
  margin-block-start: 76px;
  border-radius: 0;
}

@media (min-width: 901px) {
  body.postid-3098 article.ds-product-decision > .ds-shell {
    display: grid;
    grid-template-columns: minmax(390px, 0.92fr) minmax(0, 1.08fr);
    column-gap: clamp(36px, 4.7vw, 68px);
    row-gap: 14px;
    align-items: start;
    direction: ltr;
  }

  body.postid-3098 article.ds-product-decision > .ds-shell > * {
    min-inline-size: 0;
    direction: rtl;
  }

  body.postid-3098 article.ds-product-decision > .ds-shell > .ds-breadcrumbs {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-block-end: 14px;
  }

  body.postid-3098 article.ds-product-decision > .ds-shell > :is(
    .ds-product-identity,
    .ds-product-overview
  ),
  body.postid-3098 .ds-product-identity__grid,
  body.postid-3098 .ds-product-overview__decision {
    display: contents;
  }

  body.postid-3098 .ds-product-identity__signals {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    margin: 0;
  }

  body.postid-3098 .ds-product-identity__grid > :first-child {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
  }

  body.postid-3098 .ds-product-identity__grid > .ds-product-code {
    grid-column: 2;
    grid-row: 4;
    align-self: start;
  }

  body.postid-3098 .ds-product-overview > .ds-product-media {
    grid-column: 1;
    grid-row: 2 / 7;
    align-self: stretch;
    min-block-size: 100%;
  }

  body.postid-3098 .ds-product-media__primary,
  body.postid-3098 .ds-product-media__missing {
    block-size: 100%;
    min-block-size: 650px;
    padding: clamp(28px, 4vw, 48px);
    background: #fff;
    border-color: #d8dfe2;
  }

  body.postid-3098 .ds-product-media__primary img {
    max-block-size: 560px;
  }

  body.postid-3098 .ds-product-overview__decision > .ds-key-specs {
    grid-column: 2;
    grid-row: 5;
    align-self: start;
  }

  body.postid-3098 .ds-product-overview__decision > .ds-product-overview__action {
    grid-column: 2;
    grid-row: 6;
    align-self: start;
    display: grid;
    grid-template-columns: minmax(210px, 0.82fr) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin: 0;
  }

  body.postid-3098 .ds-product-overview__action .ds-button {
    inline-size: 100%;
  }

  body.postid-3098 .ds-product-overview__action .ds-text-link {
    justify-content: flex-start;
    margin: 0;
    text-align: start;
  }

  body.postid-3098 article.ds-product-decision > .ds-shell > .ds-product-catalog-context {
    grid-column: 1 / -1;
    grid-row: 7;
  }

  body.postid-3098 article.ds-product-decision > .ds-shell > :is(
    .ds-full-specs,
    .ds-evidence,
    .ds-product-guidance,
    .ds-product-caution,
    .ds-relationships,
    .ds-product-rfq
  ) {
    grid-column: 1 / -1;
  }

  body.postid-3098 .ds-spec-table {
    overflow: visible;
  }

  body.postid-3098 .ds-spec-table table,
  body.postid-3098 .ds-spec-table tbody {
    display: block;
    inline-size: 100%;
  }

  body.postid-3098 .ds-spec-table tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.postid-3098 .ds-spec-table tr {
    display: grid;
    grid-template-columns: minmax(150px, 0.9fr) minmax(0, 1.1fr);
    min-block-size: 58px;
    border-block-end: 1px solid var(--ds-line, #dfe3e4);
  }

  body.postid-3098 .ds-spec-table tr:nth-child(odd) {
    border-inline-end: 1px solid var(--ds-line, #dfe3e4);
  }

  body.postid-3098 .ds-spec-table :is(th, td) {
    display: flex;
    align-items: center;
    border-block-end: 0;
  }

  body.postid-3098 .ds-product-guidance .ds-prose {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    background: var(--ds-line, #dfe3e4);
    border: 1px solid var(--ds-line, #dfe3e4);
  }

  body.postid-3098 .ds-guidance-block {
    min-inline-size: 0;
    padding: 26px 28px;
  }

  body.postid-3098 .ds-guidance-block:is(:first-child, :nth-child(5)) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(210px, 0.32fr) minmax(0, 1fr);
    column-gap: clamp(28px, 4vw, 54px);
  }

  body.postid-3098 .ds-guidance-block:is(:first-child, :nth-child(5)) > :first-child {
    grid-column: 1;
    grid-row: 1 / span 20;
    align-self: start;
    margin: 0;
    padding-inline-end: 18px;
    border-inline-end: 3px solid var(--ds-copper, #d77b48);
  }

  body.postid-3098 .ds-guidance-block:is(:first-child, :nth-child(5)) > :not(:first-child) {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  body.postid-3098 .ds-product-page {
    padding-block-start: 16px;
  }

  body.postid-3098 .ds-product-identity {
    margin-block-end: 24px;
  }

  body.postid-3098 .ds-product-identity__grid {
    gap: 18px;
  }

  body.postid-3098 .ds-product-identity h1 {
    font-size: clamp(2.15rem, 8vw, 3.25rem);
  }

  body.postid-3098 .ds-product-identity__summary {
    font-size: 14.5px;
  }

  body.postid-3098 .ds-product-code {
    margin-block-start: 2px;
  }

  body.postid-3098 .ds-product-overview {
    gap: 18px;
    margin-block-end: 48px;
  }

  body.postid-3098 .ds-product-media__primary,
  body.postid-3098 .ds-product-media__missing {
    min-block-size: clamp(320px, 72vw, 440px);
    padding: 20px;
    background: #fff;
  }

  body.postid-3098 .ds-key-specs__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.postid-3098 .ds-product-overview__action {
    margin-block-start: 12px;
  }

  body.postid-3098 :is(
    .ds-full-specs,
    .ds-evidence,
    .ds-product-guidance,
    .ds-relationships
  ) {
    margin-block-start: 56px;
  }

  body.postid-3098 .ds-product-guidance .ds-prose {
    font-size: 14.5px;
  }

  body.postid-3098 .ds-guidance-block {
    padding: 22px 0;
    border-block-end: 1px solid var(--ds-line, #dfe3e4);
  }
}

@media (max-width: 380px) {
  body.postid-3098 .ds-product-identity__signals {
    gap: 6px;
  }

  body.postid-3098 .ds-product-identity h1 {
    font-size: clamp(1.95rem, 10vw, 2.65rem);
    line-height: 1.18;
  }

  body.postid-3098 .ds-product-code {
    padding: 12px 14px;
  }

  body.postid-3098 .ds-key-specs__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.postid-3098 .ds-key-specs__grid > div {
    min-block-size: 76px;
  }

  body.postid-3098 .ds-product-overview__action {
    padding: 14px;
  }

  body.postid-3098 .ds-section-heading h2 {
    font-size: 1.65rem;
  }

  body.postid-3098 .ds-spec-table :is(th, td) {
    padding: 12px;
  }

  body.postid-3098 .ds-spec-table th {
    inline-size: 46%;
  }

  body.postid-3098 .ds-product-catalog-context {
    margin-block-start: 24px;
  }
}
/* DS PRODUCT PILOT 6205-2RSH — SKF-informed decision surface — END */

/* AJAX family catalog filters — SKF-inspired, Digi Sanat-owned */
.ds-catalog-filter {
    position: relative;
    margin-block: 26px 34px;
    padding: clamp(24px, 3vw, 38px);
    overflow: hidden;
    background: #eef1f1;
    border: 1px solid var(--ds-line, #dfe3e4);
    border-radius: 10px;
}

.ds-catalog-filter[aria-busy="true"]::before {
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--ds-copper, #d88958), transparent);
    content: "";
    animation: ds-filter-progress 1.1s ease-in-out infinite;
}

.ds-catalog-filter__heading {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.2fr);
    gap: 24px 48px;
    align-items: end;
    margin-block-end: 26px;
}

.ds-catalog-filter__heading h2 {
    margin: 0;
    color: var(--ds-night, #06131f);
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.35;
}

.ds-catalog-filter__heading > p {
    max-width: 680px;
    margin: 0;
    color: var(--ds-muted, #65757f);
    font-size: 13px;
    line-height: 1.9;
}

.ds-catalog-filter__form,
.ds-catalog-filter__grid,
.ds-catalog-filter__more {
    display: grid;
    gap: 12px;
}

.ds-catalog-filter__grid,
.ds-catalog-filter__more {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ds-catalog-filter__more {
    margin-block-start: 12px;
    padding-block-start: 12px;
    border-block-start: 1px solid rgba(9, 35, 51, 0.12);
}

.ds-catalog-filter [hidden] {
    display: none !important;
}

.ds-catalog-filter__field {
    display: grid;
    min-width: 0;
    gap: 7px;
    color: var(--ds-night, #06131f);
    font-size: 12px;
    font-weight: 800;
}

.ds-catalog-filter__field :is(input, select) {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 10px 14px;
    color: var(--ds-ink, #17242d);
    background-color: var(--ds-white, #fff);
    border: 1px solid #bcc8cd;
    border-radius: 3px;
    font-family: var(--ds-font-body, inherit);
    font-size: 14px;
    font-weight: 600;
}

.ds-catalog-filter__field input[type="search"] {
    direction: ltr;
    font-family: var(--ds-font-technical, monospace);
    text-align: left;
}

.ds-catalog-filter__field :is(input, select):hover {
    border-color: var(--ds-line-dark, #899aa2);
}

.ds-catalog-filter__field :is(input, select):focus-visible {
    border-color: var(--ds-blue-deep, #174c69);
    outline: 3px solid rgba(23, 76, 105, 0.16);
    outline-offset: 1px;
}

.ds-catalog-filter__field :is(input, select):disabled {
    cursor: wait;
    opacity: 0.6;
}

.ds-catalog-filter__footer {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    gap: 14px 24px;
    align-items: center;
    margin-block-start: 22px;
    padding-block-start: 18px;
    border-block-start: 1px solid rgba(9, 35, 51, 0.14);
}

.ds-catalog-filter__actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.ds-catalog-filter__toggle,
.ds-catalog-filter__reset {
    padding: 5px 0;
    color: var(--ds-blue-deep, #174c69);
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
}

.ds-catalog-filter__reset {
    color: var(--ds-copper-deep, #a85c34);
}

.ds-catalog-filter__toggle:hover,
.ds-catalog-filter__toggle:focus-visible,
.ds-catalog-filter__reset:hover,
.ds-catalog-filter__reset:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ds-catalog-filter__reset:disabled {
    cursor: default;
    opacity: 0.42;
    text-decoration: none;
}

.ds-catalog-filter__status,
.ds-catalog-filter__order {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
}

.ds-catalog-filter__status {
    color: var(--ds-muted, #65757f);
}

.ds-catalog-filter.has-error .ds-catalog-filter__status {
    color: #9b3e2d;
    font-weight: 800;
}

.ds-catalog-filter__order {
    padding: 7px 10px;
    color: #345164;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(9, 35, 51, 0.12);
    border-radius: 999px;
    white-space: nowrap;
}

.ds-main.ds-filter-ready .ds-family-search,
.ds-main.ds-filter-ready .woocommerce-ordering {
    display: none;
}

.ds-family-catalog.is-filtering .ds-catalog-table-wrap {
    opacity: 0.5;
    pointer-events: none;
}

.ds-filter-empty-row td {
    padding: 52px 24px !important;
    text-align: center !important;
    white-space: normal !important;
}

.ds-filter-empty-row strong,
.ds-filter-empty-row span {
    display: block;
}

.ds-filter-empty-row strong {
    color: var(--ds-night, #06131f);
    font-size: 18px;
}

.ds-filter-empty-row span {
    margin-block-start: 8px;
    color: var(--ds-muted, #65757f);
    font-size: 13px;
}

.ds-filter-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}

.ds-filter-pagination button {
    min-width: 42px;
    min-height: 42px;
    padding: 7px 11px;
    color: var(--ds-blue-deep, #174c69);
    background: #fff;
    border: 1px solid var(--ds-line, #dfe3e4);
    border-radius: 5px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
}

.ds-filter-pagination button:hover,
.ds-filter-pagination button:focus-visible,
.ds-filter-pagination button[aria-current="page"] {
    color: #fff;
    background: var(--ds-blue-deep, #174c69);
    border-color: var(--ds-blue-deep, #174c69);
}

.ds-filter-pagination button:disabled {
    cursor: default;
    opacity: 0.42;
}

@keyframes ds-filter-progress {
    from { transform: translateX(-70%); }
    to { transform: translateX(70%); }
}

@media (max-width: 1000px) {
    .ds-catalog-filter__heading,
    .ds-catalog-filter__footer {
        grid-template-columns: minmax(0, 1fr);
    }

    .ds-catalog-filter__grid,
    .ds-catalog-filter__more {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ds-catalog-filter__order {
        width: fit-content;
    }
}

@media (max-width: 620px) {
    .ds-catalog-filter {
        margin-block: 20px 26px;
        padding: 22px 16px;
        border-radius: 8px;
    }

    .ds-catalog-filter__grid,
    .ds-catalog-filter__more {
        grid-template-columns: minmax(0, 1fr);
    }

    .ds-catalog-filter__footer,
    .ds-catalog-filter__actions {
        align-items: flex-start;
    }

    .ds-catalog-filter__actions {
        justify-content: space-between;
    }

    .ds-catalog-filter__order {
        width: 100%;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ds-catalog-filter[aria-busy="true"]::before {
        animation-duration: 0.01ms;
    }
}
