:root {
    --hsp-catalog-blue: #082b50;
    --hsp-catalog-blue-2: #163a5f;
    --hsp-catalog-orange: #e7771b;
    --hsp-catalog-ink: #17212b;
    --hsp-catalog-muted: #65717f;
    --hsp-catalog-line: #d8e0e8;
    --hsp-catalog-surface: #f5f7f9;
}

body.page-id-13,
body.tax-htan_product_category {
    overflow-x: clip;
}

body.page-id-13 .hsp-standard-page,
body.tax-htan_product_category .hsp-product-category-page {
    padding-top: 0;
    padding-bottom: 0;
}

body.page-id-13 .hsp-standard-page > .htan-breadcrumbs,
body.tax-htan_product_category .hsp-product-category-page > .htan-breadcrumbs {
    width: min(1280px, calc(100% - 40px));
    padding: 18px 0;
    margin: 0 auto;
}

body.page-id-13 .hsp-standard-page > .wp-block-post-content,
body.page-id-13 .hsp-standard-page > .wp-block-post-content > .hsp-product-browser {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

.hsp-product-browser,
.hsp-product-browser * {
    box-sizing: border-box;
}

.hsp-product-browser {
    color: var(--hsp-catalog-ink);
}

.hsp-catalog-container {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
}

.hsp-catalog-intro {
    padding: 42px 0 38px;
    border-top: 1px solid var(--hsp-catalog-line);
    border-bottom: 1px solid var(--hsp-catalog-line);
    background: #fff;
}

.hsp-catalog-eyebrow {
    margin: 0 0 9px;
    color: var(--hsp-catalog-orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.hsp-catalog-intro h1 {
    max-width: 820px;
    margin: 0;
    color: var(--hsp-catalog-blue);
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.08;
}

.hsp-catalog-intro p:last-child {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--hsp-catalog-muted);
    font-size: 17px;
    line-height: 1.6;
}

.hsp-category-directory,
.hsp-catalog,
.hsp-category-guidance,
.hsp-category-related {
    padding: 48px 0;
}

.hsp-category-directory {
    display: block;
    grid-template-columns: none;
    gap: 0;
    border: 0;
    border-bottom: 1px solid var(--hsp-catalog-line);
    background: var(--hsp-catalog-surface);
}

.hsp-catalog-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.hsp-catalog-section-heading h2,
.hsp-category-guidance h2,
.hsp-category-related h2 {
    margin: 0;
    color: var(--hsp-catalog-blue);
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1.2;
}

.hsp-category-card-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.hsp-category-card {
    min-width: 0;
    border: 1px solid var(--hsp-catalog-line);
    border-radius: 5px;
    background: #fff;
}

.hsp-category-card > a {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.hsp-category-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    padding: 10px;
    border-bottom: 1px solid var(--hsp-catalog-line);
    background: #fff;
}

.hsp-category-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hsp-category-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
}

.hsp-category-card__body strong {
    color: var(--hsp-catalog-blue);
    font-size: 17px;
    line-height: 1.3;
}

.hsp-category-card__body small {
    margin-top: 7px;
    color: var(--hsp-catalog-muted);
    font-size: 12px;
}

.hsp-category-card__body > span:last-child {
    margin-top: 18px;
    color: var(--hsp-catalog-orange);
    font-size: 13px;
    font-weight: 800;
}

.hsp-category-card:hover,
.hsp-category-card:focus-within {
    border-color: #9fb6c9;
}

.hsp-category-card a:focus-visible,
.hsp-product-browser button:focus-visible,
.hsp-product-browser input:focus-visible,
.hsp-product-browser select:focus-visible,
.hsp-product-browser summary:focus-visible {
    outline: 3px solid rgba(22, 138, 203, .28);
    outline-offset: 2px;
}

.hsp-category-more {
    margin-top: 22px;
}

.hsp-category-more summary {
    width: fit-content;
    padding: 9px 0;
    color: var(--hsp-catalog-blue);
    font-weight: 800;
    cursor: pointer;
}

.hsp-category-more[open] summary {
    margin-bottom: 16px;
}

.hsp-category-guidance {
    border-bottom: 1px solid var(--hsp-catalog-line);
    background: #fff;
}

.hsp-category-guidance__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
    margin-top: 20px;
}

.hsp-category-guidance__grid p {
    margin: 0 0 12px;
    color: var(--hsp-catalog-muted);
    line-height: 1.7;
}

.hsp-catalog {
    background: #fff;
}

.hsp-catalog-search {
    max-width: 720px;
    margin-bottom: 24px;
}

.hsp-catalog-search > label {
    display: block;
    margin-bottom: 7px;
    color: var(--hsp-catalog-blue);
    font-size: 13px;
    font-weight: 800;
}

.hsp-catalog-search > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.hsp-catalog-search input,
.hsp-catalog-search button,
.hsp-catalog-sort select,
.hsp-filter-field select {
    min-height: 46px;
    border: 1px solid var(--hsp-catalog-line);
    border-radius: 4px;
    background: #fff;
    color: var(--hsp-catalog-ink);
    font: inherit;
}

.hsp-catalog-search input {
    min-width: 0;
    padding: 0 14px;
    border-radius: 4px 0 0 4px;
}

.hsp-catalog-search button {
    padding: 0 24px;
    border-color: var(--hsp-catalog-blue);
    border-radius: 0 4px 4px 0;
    background: var(--hsp-catalog-blue);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.hsp-catalog-toolbar {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-top: 1px solid var(--hsp-catalog-line);
    border-bottom: 1px solid var(--hsp-catalog-line);
}

.hsp-catalog-filter-toggle {
    display: none;
}

.hsp-catalog-count {
    margin: 0;
    color: var(--hsp-catalog-muted);
}

.hsp-catalog-count strong {
    color: var(--hsp-catalog-blue);
}

.hsp-catalog-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hsp-catalog-sort label {
    color: var(--hsp-catalog-muted);
    font-size: 13px;
    font-weight: 700;
}

.hsp-catalog-sort select {
    min-height: 40px;
    padding: 0 34px 0 12px;
}

.hsp-catalog-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    padding-top: 28px;
}

.hsp-catalog-layout--no-filters {
    grid-template-columns: minmax(0, 1fr);
}

.hsp-catalog-filters {
    position: sticky;
    top: calc(var(--hsp-header-height, 76px) + 18px);
    padding: 18px;
    border: 1px solid var(--hsp-catalog-line);
    border-radius: 5px;
    background: var(--hsp-catalog-surface);
}

.hsp-catalog-filters__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--hsp-catalog-line);
    color: var(--hsp-catalog-blue);
}

.hsp-catalog-filters__heading button {
    display: none;
}

.hsp-filter-field {
    display: block;
    margin-top: 17px;
}

.hsp-filter-field > span {
    display: block;
    margin-bottom: 7px;
    color: var(--hsp-catalog-blue-2);
    font-size: 13px;
    font-weight: 800;
}

.hsp-filter-field select {
    width: 100%;
    min-height: 42px;
    padding: 0 32px 0 10px;
    font-size: 14px;
}

.hsp-filter-actions {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.hsp-filter-actions button,
.hsp-filter-actions a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.hsp-filter-actions button {
    border: 1px solid var(--hsp-catalog-blue);
    background: var(--hsp-catalog-blue);
    color: #fff;
    cursor: pointer;
}

.hsp-filter-actions a {
    border: 1px solid var(--hsp-catalog-line);
    background: #fff;
    color: var(--hsp-catalog-blue);
}

.hsp-product-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hsp-catalog-product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--hsp-catalog-line);
    border-radius: 5px;
    background: #fff;
}

.hsp-catalog-product-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    padding: 14px;
    border-bottom: 1px solid var(--hsp-catalog-line);
    background: #fff;
}

.hsp-catalog-product-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hsp-catalog-product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
}

.hsp-catalog-product-card__category {
    margin-bottom: 9px;
    color: var(--hsp-catalog-orange);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-decoration: none;
    text-transform: uppercase;
}

.hsp-catalog-product-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.hsp-catalog-product-card h3 a {
    color: var(--hsp-catalog-blue);
    text-decoration: none;
}

.hsp-catalog-product-card__model {
    margin: 8px 0 0;
    color: var(--hsp-catalog-orange);
    font-size: 13px;
    font-weight: 800;
}

.hsp-catalog-product-card__specs {
    width: 100%;
    margin: 18px 0 0;
}

.hsp-catalog-product-card__specs > div {
    display: grid;
    grid-template-columns: minmax(70px, .8fr) minmax(0, 1.2fr);
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid #edf1f4;
    font-size: 12px;
}

.hsp-catalog-product-card__specs dt,
.hsp-catalog-product-card__specs dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.hsp-catalog-product-card__specs dt {
    color: var(--hsp-catalog-muted);
}

.hsp-catalog-product-card__specs dd {
    color: var(--hsp-catalog-blue);
    font-weight: 750;
}

.hsp-catalog-product-card__link {
    margin-top: auto;
    padding-top: 18px;
    color: var(--hsp-catalog-orange);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.hsp-catalog-product-card:hover,
.hsp-catalog-product-card:focus-within {
    border-color: #9fb6c9;
}

.hsp-catalog-pagination {
    margin-top: 34px;
}

.hsp-catalog-pagination ul {
    display: flex;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
}

.hsp-catalog-pagination a,
.hsp-catalog-pagination .current,
.hsp-catalog-pagination .dots {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid var(--hsp-catalog-line);
    border-radius: 4px;
    color: var(--hsp-catalog-blue);
    text-decoration: none;
}

.hsp-catalog-pagination .current {
    border-color: var(--hsp-catalog-blue);
    background: var(--hsp-catalog-blue);
    color: #fff;
}

.hsp-catalog-empty {
    padding: 44px 28px;
    border: 1px solid var(--hsp-catalog-line);
    border-radius: 5px;
    background: var(--hsp-catalog-surface);
    text-align: center;
}

.hsp-catalog-empty h3 {
    margin: 0;
    color: var(--hsp-catalog-blue);
}

.hsp-catalog-empty p {
    color: var(--hsp-catalog-muted);
}

.hsp-catalog-empty a {
    color: var(--hsp-catalog-orange);
    font-weight: 800;
}

.hsp-catalog-backdrop {
    display: none;
}

.hsp-category-related {
    border-top: 1px solid var(--hsp-catalog-line);
    background: var(--hsp-catalog-surface);
}

.hsp-category-related .hsp-catalog-container > div + div {
    margin-top: 38px;
}

.hsp-category-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.hsp-category-related__grid > a {
    display: flex;
    min-width: 0;
    min-height: 150px;
    flex-direction: column;
    padding: 22px;
    border: 1px solid var(--hsp-catalog-line);
    border-radius: 5px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.hsp-category-related__grid strong {
    color: var(--hsp-catalog-blue);
}

.hsp-category-related__grid span {
    margin-top: 8px;
    color: var(--hsp-catalog-muted);
    font-size: 14px;
    line-height: 1.5;
}

.hsp-category-related__grid small {
    margin-top: auto;
    padding-top: 16px;
    color: var(--hsp-catalog-orange);
    font-weight: 800;
}

.hsp-catalog-cta {
    padding: 38px 0;
    border-top: 1px solid #244c71;
    background: var(--hsp-catalog-blue);
    color: #fff;
}

.hsp-catalog-cta .hsp-catalog-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.hsp-catalog-cta h2 {
    margin: 0;
    color: #fff;
    font-size: 25px;
}

.hsp-catalog-cta p {
    max-width: 760px;
    margin: 8px 0 0;
    color: #dce8f2;
}

.hsp-catalog-cta a {
    display: inline-flex;
    min-height: 44px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid var(--hsp-catalog-orange);
    border-radius: 4px;
    background: var(--hsp-catalog-orange);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 1080px) {
    .hsp-category-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hsp-product-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .hsp-catalog-container,
    body.page-id-13 .hsp-standard-page > .htan-breadcrumbs,
    body.tax-htan_product_category .hsp-product-category-page > .htan-breadcrumbs {
        width: min(100% - 28px, 1280px);
    }

    .hsp-catalog-intro {
        padding: 34px 0 30px;
    }

    .hsp-category-directory,
    .hsp-catalog,
    .hsp-category-guidance,
    .hsp-category-related {
        padding: 38px 0;
    }

    .hsp-category-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hsp-catalog-toolbar {
        flex-wrap: wrap;
    }

    .hsp-catalog-filter-toggle {
        display: inline-flex;
        min-height: 40px;
        align-items: center;
        gap: 7px;
        padding: 0 14px;
        border: 1px solid var(--hsp-catalog-line);
        border-radius: 4px;
        background: #fff;
        color: var(--hsp-catalog-blue);
        font-weight: 800;
    }

    .hsp-catalog-filter-toggle span {
        display: inline-grid;
        min-width: 20px;
        min-height: 20px;
        place-items: center;
        border-radius: 50%;
        background: var(--hsp-catalog-orange);
        color: #fff;
        font-size: 11px;
    }

    .hsp-catalog-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .hsp-catalog-filters {
        position: fixed;
        z-index: 1400;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(88vw, 360px);
        padding: 22px;
        border: 0;
        border-radius: 0;
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform .2s ease;
    }

    .hsp-catalog-filters.is-open {
        transform: translateX(0);
    }

    .hsp-catalog-filters__heading button {
        display: inline-grid;
        width: 38px;
        height: 38px;
        place-items: center;
        border: 1px solid var(--hsp-catalog-line);
        border-radius: 4px;
        background: #fff;
        color: var(--hsp-catalog-blue);
        font-size: 25px;
    }

    .hsp-catalog-backdrop {
        position: fixed;
        z-index: 1390;
        inset: 0;
        display: block;
        border: 0;
        background: rgba(8, 43, 80, .52);
    }

    .hsp-catalog-backdrop[hidden] {
        display: none !important;
    }

    html.hsp-filter-open {
        overflow: hidden;
    }

    .hsp-category-guidance__grid,
    .hsp-category-related__grid {
        grid-template-columns: 1fr;
    }

    .hsp-catalog-cta .hsp-catalog-container {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .hsp-category-card-grid,
    .hsp-product-card-grid {
        grid-template-columns: 1fr;
    }

    .hsp-catalog-search > div {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hsp-catalog-search input,
    .hsp-catalog-search button {
        border-radius: 4px;
    }

    .hsp-catalog-toolbar {
        align-items: stretch;
    }

    .hsp-catalog-sort {
        width: 100%;
        justify-content: space-between;
    }

    .hsp-catalog-sort select {
        min-width: 0;
        flex: 1;
    }

    .hsp-catalog-product-card__media {
        aspect-ratio: 1 / 1;
    }
}
