/* Stage 2 — internal pages REFRESH, Concept 02 v2, batch 05. */

.th-listing-breadcrumbs {
    flex-wrap: wrap;
}

.th-listing-breadcrumbs a,
.th-listing-breadcrumbs span {
    color: var(--th-muted);
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
}

.th-listing-layout {
    display: block;
}

.th-listing-layout--filters {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 20px;
}

.th-listing-results {
    min-width: 0;
}

.th-listing-layout--filters .th-catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.th-category-description {
    margin: 0 0 18px;
    padding: 24px 26px;
    color: #46505D;
    background: #fff;
    border: 1px solid var(--th-line);
    border-radius: 14px;
    box-shadow: var(--th-shadow-sm);
    font-size: 15px;
    line-height: 1.7;
}

.th-category-description,
.th-category-description * {
    max-width: 100%;
    font-family: "Segoe UI", Arial, sans-serif !important;
}

.th-category-description img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
}

.th-category-grid--nested {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 20px;
}

.th-category-grid--nested .th-category-copy {
    padding: 14px;
}

.th-category-grid--nested .th-category-copy h2 {
    font-size: 16px;
}

.th-filter-panel {
    position: sticky;
    top: 16px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--th-line);
    border-radius: 14px;
    box-shadow: var(--th-shadow-sm);
}

.th-filter-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 15px;
    padding-bottom: 13px;
    color: var(--th-ink);
    border-bottom: 1px solid var(--th-line);
    font-size: 16px;
    font-weight: 500;
}

.th-filter-title i {
    color: var(--th-orange-hover);
}

.th-filter-panel #frmFilter,
.th-filter-panel #frmFilter * {
    font-family: "Segoe UI", Arial, sans-serif;
}

.th-filter-panel #frmFilter > ul,
.th-filter-panel #frmFilter ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.th-filter-panel #frmFilter > ul > li {
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid var(--th-line);
}

.th-filter-panel #frmFilter > ul > li:last-child {
    border-bottom: 0;
}

.th-filter-panel #frmFilter h2 {
    margin: 0 0 10px;
    padding: 0;
    color: var(--th-ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.th-filter-panel #frmFilter li li {
    margin: 8px 0;
    color: #515B68;
    font-size: 13px;
    line-height: 1.4;
}

.th-filter-panel #frmFilter label {
    margin: 0;
    color: inherit;
    font-weight: 400;
}

.th-filter-panel #frmFilter input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0 7px 0 0;
    vertical-align: -3px;
    accent-color: var(--th-orange);
}

.th-filter-panel #frmFilter .from-to-input {
    width: 78px;
    min-height: 38px;
    padding: 7px 8px;
    border: 1px solid #DDE1E7;
    border-radius: 8px;
}

.th-filter-panel #frmFilter .btnShowAllOptions,
.th-filter-panel #btnShowAllFilters {
    margin-top: 9px;
    padding: 7px 10px;
    color: var(--th-orange-hover);
    background: var(--th-orange-soft);
    border: 0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 400;
}

.th-filter-trigger {
    display: none;
}

.th-filter-panel[hidden] {
    display: none !important;
}

.th-catalog-empty {
    padding: 42px 20px;
    color: var(--th-muted);
    text-align: center;
    background: #fff;
    border: 1px solid var(--th-line);
    border-radius: 14px;
    box-shadow: var(--th-shadow-sm);
}

@media (max-width: 1120px) {
    .th-listing-layout--filters {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    .th-listing-layout--filters .th-catalog-grid,
    .th-category-grid--nested {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .th-listing-breadcrumbs a,
    .th-listing-breadcrumbs span {
        font-size: 12px;
    }

    .th-filter-trigger {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        min-height: 44px;
        margin: 0 0 10px;
        color: var(--th-ink);
        background: #fff;
        border: 1px solid var(--th-line);
        border-radius: 11px;
        box-shadow: var(--th-shadow-sm);
        font-size: 14px;
        font-weight: 400;
    }

    .th-listing-layout,
    .th-listing-layout--filters {
        display: block;
    }

    .th-filter-panel {
        position: static;
        margin: 0 0 12px;
        padding: 16px;
    }

    .th-filter-title {
        display: none;
    }

    .th-listing-layout--filters .th-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .th-category-description {
        padding: 18px;
        font-size: 14px;
    }

    .th-category-grid--nested {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
