:root {
    --catalog-brand: #b70e26;
    --catalog-brand-dark: #8b0b1d;
    --catalog-ink: #24272d;
    --catalog-muted: #68707a;
    --catalog-line: #dfe3e8;
    --catalog-soft: #f4f5f7;
    --catalog-white: #fff;
    --catalog-shadow: 0 14px 34px rgba(24, 29, 36, 0.1);
}

.product-page,
.product-page * {
    letter-spacing: normal !important;
}

.product-page {
    margin: 0;
    color: var(--catalog-ink);
    background: var(--catalog-white);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.product-page a {
    text-decoration: none;
}

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

.catalog-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    margin-top: 0;
    gap: 20px;
}

.catalog-topbar__left,
.catalog-topbar__right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.catalog-topbar a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e67e22;
}

.catalog-topbar a:hover {
    color: var(--catalog-brand);
}

.catalog-topbar a img {
    flex: 0 0 auto;
}

.catalog-main-nav {
    margin-top: 40px;
}

.catalog-main-nav > li > a,
.catalog-main-nav > li > .header-search-toggle {
    padding-right: 14px;
    padding-left: 14px;
}

.header-search-toggle {
    display: block;
    padding: 9px 20px;
    border: 0;
    outline: 0;
    color: #929292;
    background: transparent;
    font: inherit;
    line-height: 20px;
    text-transform: uppercase;
}

.header-search-toggle .glyphicon {
    margin-right: 4px;
}

.header-search-toggle:hover,
.header-search-toggle[aria-expanded="true"] {
    color: #fff;
    background: #075190;
}

.header-search-panel {
    position: relative;
    z-index: 4500;
    max-height: 0;
    border-top: 0 solid var(--catalog-line);
    background: #f5f6f7;
    box-shadow: 0 14px 24px rgba(23, 28, 34, 0);
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: max-height 220ms ease, opacity 180ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.header-search-panel.is-open {
    max-height: 430px;
    border-top-width: 1px;
    box-shadow: 0 14px 24px rgba(23, 28, 34, 0.12);
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.header-search-panel__inner {
    padding-top: 22px;
    padding-bottom: 22px;
}

.product-search {
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) minmax(210px, 0.8fr) auto auto;
    align-items: end;
    gap: 12px;
    margin: 0;
}

.field {
    min-width: 0;
}

.field label {
    display: block;
    margin: 0 0 6px;
    color: #474e57;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.field input,
.field select {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #cfd5dc;
    border-radius: 0;
    outline: 0;
    color: var(--catalog-ink);
    background: #fff;
    font: inherit;
}

.field input:focus,
.field select:focus {
    border-color: var(--catalog-brand);
    box-shadow: 0 0 0 2px rgba(183, 14, 38, 0.14);
}

.autocomplete {
    position: relative;
}

.autocomplete-results {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    left: 0;
    z-index: 6000;
    max-height: 350px;
    border: 1px solid #d6dbe1;
    background: #fff;
    box-shadow: var(--catalog-shadow);
    overflow-y: auto;
}

.autocomplete-results[hidden] {
    display: none;
}

.autocomplete-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 16px;
    padding: 11px 13px;
    border-bottom: 1px solid #eceef1;
    color: var(--catalog-ink);
}

.autocomplete-option:last-child {
    border-bottom: 0;
}

.autocomplete-option:hover,
.autocomplete-option.is-active {
    color: var(--catalog-ink);
    background: #fff4f5;
}

.autocomplete-option__name {
    min-width: 0;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.autocomplete-option__code {
    grid-row: 1 / span 2;
    grid-column: 2;
    align-self: center;
    color: var(--catalog-brand-dark);
    font-family: "Courier New", monospace;
    font-weight: 700;
}

.autocomplete-option__meta,
.autocomplete-message {
    color: var(--catalog-muted);
    font-size: 12px;
}

.autocomplete-message {
    margin: 0;
    padding: 13px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    white-space: nowrap;
    transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.button .glyphicon {
    margin-right: 6px;
}

.button--primary {
    color: #fff;
    background: var(--catalog-brand);
}

.button--primary:hover,
.button--primary:focus {
    color: #fff;
    background: var(--catalog-brand-dark);
}

.button--ghost {
    border-color: #b8bec6;
    color: #414750;
    background: #fff;
}

.button--ghost:hover,
.button--ghost:focus {
    border-color: var(--catalog-brand);
    color: var(--catalog-brand);
}

.button--light {
    color: var(--catalog-ink);
    background: #fff;
}

.button--outline-light {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
    background: transparent;
}

.button--block {
    width: 100%;
    margin-top: 10px;
}

.catalog-hero {
    position: relative;
    color: #fff;
    background: linear-gradient(120deg, #20242b 0%, #30353d 70%, #72101f 100%);
    overflow: hidden;
}

.catalog-hero__inner {
    position: relative;
    z-index: 1;
    padding: 40px 0 44px;
}

.catalog-hero--compact .catalog-hero__inner {
    padding: 32px 0 36px;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--catalog-brand);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.catalog-hero .eyebrow {
    color: #ffb5bf;
}

.catalog-hero h1 {
    width: 100%;
    max-width: none;
    margin: 0 0 9px;
    color: #fff;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.15;
}

.catalog-hero__inner > p:not(.eyebrow) {
    width: 100%;
    max-width: none;
    margin: 0;
    color: rgba(255, 255, 255, 0.77);
    font-size: 16px;
}

.catalog {
    min-height: 450px;
    padding: 48px 0 72px;
    background: var(--catalog-soft);
}

.catalog__heading,
.detail-card__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 20px;
}

.catalog h2,
.detail-card h2,
.contact-card h2 {
    margin: 0;
    color: var(--catalog-ink);
    font-size: 27px;
    font-weight: 700;
    line-height: 1.25;
}

.result-count {
    margin: 0;
    color: var(--catalog-muted);
    font-size: 14px;
}

.table-wrap {
    border: 1px solid var(--catalog-line);
    background: #fff;
    box-shadow: var(--catalog-shadow);
    overflow: hidden;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
}

.product-table th,
.product-table td {
    padding: 14px 17px;
    border-bottom: 1px solid var(--catalog-line);
    text-align: left;
    vertical-align: middle;
}

.product-table th {
    color: #555d68;
    background: #f9fafb;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-table td {
    color: #343941;
    font-size: 14px;
}

.product-table tbody tr:last-child td {
    border-bottom: 0;
}

.product-table tbody tr:hover {
    background: #fff8f9;
}

.product-table td:first-child {
    width: 32%;
}

.part-code {
    color: var(--catalog-brand-dark);
    font-family: "Courier New", monospace;
    font-weight: 700;
}

a.part-code:hover,
.table-action a:hover {
    text-decoration: underline;
}

.table-action {
    text-align: right !important;
}

.table-action a {
    color: var(--catalog-brand);
    font-weight: 700;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 28px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--catalog-line);
    color: #4b515b;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
}

.pagination a:hover,
.pagination a[aria-current="page"] {
    border-color: var(--catalog-brand);
    color: #fff;
    background: var(--catalog-brand);
}

.empty-state {
    padding: 56px 30px;
    border: 1px solid var(--catalog-line);
    background: #fff;
    text-align: center;
    box-shadow: var(--catalog-shadow);
}

.empty-state h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.empty-state p {
    max-width: 620px;
    margin: 0 auto 24px;
    color: var(--catalog-muted);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    color: rgba(255, 255, 255, 0.66);
    background: transparent;
    font-size: 13px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.78);
}

.breadcrumb a:hover {
    color: #fff;
}

.detail-code {
    font-family: "Courier New", monospace;
    font-size: clamp(32px, 5vw, 46px) !important;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 28px;
}

.detail-card,
.contact-card {
    padding: 27px;
    border: 1px solid var(--catalog-line);
    background: #fff;
    box-shadow: var(--catalog-shadow);
}

.detail-card .table-wrap {
    box-shadow: none;
}

.product-table--detail td:first-child {
    width: 34%;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 11px;
    color: var(--catalog-brand-dark);
    background: #fbe8eb;
    font-size: 12px;
    font-weight: 800;
}

.contact-card {
    position: sticky;
    top: 24px;
}

.contact-card > p:not(.eyebrow) {
    margin: 12px 0 18px;
    color: var(--catalog-muted);
}

.contact-code {
    margin: 18px 0;
    padding: 15px;
    background: var(--catalog-soft);
}

.contact-code span {
    display: block;
    color: var(--catalog-muted);
    font-size: 12px;
}

.contact-code strong {
    display: block;
    margin-top: 3px;
    color: var(--catalog-brand-dark);
    font-family: "Courier New", monospace;
    overflow-wrap: anywhere;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--catalog-muted);
    font-size: 14px;
    font-weight: 700;
}

.back-link:hover {
    color: var(--catalog-brand);
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.product-page .templatemo-footer {
    margin-top: 0;
}

@media (max-width: 1199px) {
    .catalog-main-nav > li > a,
    .catalog-main-nav > li > .header-search-toggle {
        padding-right: 9px;
        padding-left: 9px;
        font-size: 12px;
    }
}

@media (max-width: 991px) {
    .product-search {
        grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.8fr) auto;
    }

    .product-search .button--ghost {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        position: static;
    }
}

@media (max-width: 767px) {
    .catalog-shell {
        width: min(100% - 28px, 1180px);
    }

    .catalog-topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 8px 0;
        gap: 7px;
    }

    .catalog-topbar__left,
    .catalog-topbar__right {
        flex-wrap: wrap;
        gap: 8px 14px;
    }

    .catalog-topbar__right > img {
        display: none;
    }

    .catalog-main-nav {
        margin-top: 0;
    }

    .catalog-main-nav > li > a,
    .catalog-main-nav > li > .header-search-toggle,
    .header-search-toggle {
        width: 100%;
        padding: 10px 20px;
        text-align: left;
    }

    .header-search-panel.is-open {
        max-height: 680px;
    }

    .product-search {
        grid-template-columns: 1fr;
    }

    .product-search .button--ghost {
        width: 100%;
    }

    .autocomplete-option {
        grid-template-columns: minmax(0, 1fr);
    }

    .autocomplete-option__code {
        grid-row: auto;
        grid-column: auto;
    }

    .catalog-hero__inner,
    .catalog-hero--compact .catalog-hero__inner {
        padding: 30px 0 34px;
    }

    .catalog-hero h1 {
        font-size: 29px;
    }

    .catalog {
        padding: 36px 0 54px;
    }

    .catalog__heading,
    .detail-card__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .table-wrap {
        border: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .product-table,
    .product-table tbody,
    .product-table tr,
    .product-table td {
        display: block;
        width: 100% !important;
    }

    .product-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .product-table tr {
        margin-bottom: 13px;
        padding: 12px 15px;
        border: 1px solid var(--catalog-line);
        background: #fff;
        box-shadow: 0 6px 16px rgba(24, 29, 36, 0.06);
    }

    .product-table td {
        position: relative;
        min-height: 31px;
        padding: 6px 0 6px 42%;
        border: 0;
        text-align: left !important;
    }

    .product-table td::before {
        position: absolute;
        top: 6px;
        left: 0;
        width: 38%;
        color: var(--catalog-muted);
        content: attr(data-label);
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .product-table .table-action {
        padding-left: 0;
        text-align: right !important;
    }

    .product-table .table-action::before {
        display: none;
    }

    .detail-card,
    .contact-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .catalog-topbar__left a:nth-child(2),
    .catalog-topbar__right a:first-child {
        display: none;
    }

    .product-table td {
        padding-left: 0;
    }

    .product-table td::before {
        position: static;
        display: block;
        width: auto;
        margin-bottom: 2px;
    }
}
