/* PD_CARID_CATALOG_RESPONSIVE_8_COLUMN_GRID_V1_8_10 */

.pd-catalog-page {
    --pd-catalog-accent: #1f48c5;
    --pd-catalog-accent: oklch(46% .2 265);
    --pd-catalog-accent-soft: rgba(31, 72, 197, 0.10);
    --pd-catalog-accent-soft-2: rgba(31, 72, 197, 0.18);
    --pd-catalog-text: #111827;
    --pd-catalog-muted: #64748b;

    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 0 48px;
    color: var(--pd-catalog-text);
    overflow-x: clip;
}

@supports not (overflow: clip) {
    .pd-catalog-page {
        overflow-x: visible;
    }
}

.pd-catalog-page,
.pd-catalog-page * {
    box-sizing: border-box;
}

.pd-catalog-tabs-wrap {
    position: sticky;
    top: var(--pd-catalog-sticky-top, 0px);
    z-index: 8;
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-height: 98px;
    background: #fff;
    border-bottom: 1px solid #dbe4f0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.pd-catalog-tabs-wrap.is-stuck {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.10);
}

.pd-catalog-tabs-viewport {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

.pd-catalog-tabs-viewport::-webkit-scrollbar {
    display: none;
}

.pd-catalog-tabs {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: max-content;
    min-width: 100%;
    margin: 0 auto;
}

.pd-catalog-tabs-arrow {
    flex: 0 0 44px;
    width: 44px;
    min-height: 98px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #334155;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    transition: background-color .18s ease, color .18s ease, opacity .18s ease;
}

.pd-catalog-tabs-arrow:hover:not([disabled]) {
    background: #f8fbff;
    color: var(--pd-catalog-accent);
}

.pd-catalog-tabs-arrow:focus {
    outline: none;
    background: #fff;
    color: #334155;
    box-shadow: none;
}

.pd-catalog-tabs-arrow:focus-visible {
    background: #f8fbff;
    color: var(--pd-catalog-accent);
    box-shadow: inset 0 0 0 2px var(--pd-catalog-accent-soft-2);
}

.pd-catalog-tabs-arrow[disabled] {
    opacity: .35;
    cursor: default;
}

.pd-catalog-tab {
    position: relative;
    flex: 0 0 132px;
    width: 132px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 98px;
    padding: 11px 8px 12px;
    color: #334155;
    text-align: center;
    text-decoration: none;
    scroll-snap-align: center;
    transition: background-color .18s ease, color .18s ease;
}

.pd-catalog-tab::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--pd-catalog-accent);
    transform: scaleX(0);
    transform-origin: center;
    opacity: 0;
    transition: transform .2s ease, opacity .2s ease;
}

.pd-catalog-tab:hover {
    background: #f8fbff;
    text-decoration: none;
}

.pd-catalog-tab:hover .pd-catalog-tab-name {
    color: var(--pd-catalog-accent);
}

.pd-catalog-tab:hover::after,
.pd-catalog-tab.is-active::after {
    transform: scaleX(1);
    opacity: 1;
}

.pd-catalog-tab:focus {
    outline: none;
}

.pd-catalog-tab:focus-visible {
    background: #f8fbff;
    box-shadow: inset 0 0 0 2px var(--pd-catalog-accent-soft-2);
}

.pd-catalog-tab.is-active {
    background: #f8fbff;
    color: var(--pd-catalog-accent);
    text-decoration: none;
}

.pd-catalog-tab.is-active .pd-catalog-tab-name {
    color: var(--pd-catalog-accent);
}

.pd-catalog-tab-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 46px;
}

.pd-catalog-tab-image img {
    max-width: 64px;
    max-height: 46px;
    object-fit: contain;
    filter: none;
}

.pd-catalog-tab-name {
    display: block;
    max-width: 112px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
    color: #334155;
    word-break: normal;
    transition: color .18s ease;
}

.pd-catalog-toolbar {
    padding: 24px 16px 6px;
}

.pd-catalog-search {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.pd-catalog-search::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 17px;
    width: 12px;
    height: 12px;
    border: 2px solid #64748b;
    border-radius: 50%;
    transform: translateY(-58%);
    pointer-events: none;
}

.pd-catalog-search::after {
    content: "";
    position: absolute;
    top: 27px;
    left: 29px;
    width: 7px;
    height: 2px;
    border-radius: 2px;
    background: #64748b;
    transform: rotate(45deg);
    transform-origin: left center;
    pointer-events: none;
}

.pd-catalog-search-input {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 16px 0 44px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.pd-catalog-search-input::placeholder {
    color: #94a3b8;
}

.pd-catalog-search-input:focus {
    outline: none;
    border-color: var(--pd-catalog-accent);
    box-shadow: 0 0 0 3px var(--pd-catalog-accent-soft);
}

.pd-catalog-section {
    scroll-margin-top: 116px;
    margin: 0 0 44px;
    padding: 22px 16px 0;
}

.pd-catalog-section-heading {
    display: flex;
    justify-content: center;
    margin: 0 0 24px;
    text-align: center;
}

.pd-catalog-main-category {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 360px;
    padding: 0 12px 12px;
    border-bottom: 2px solid var(--pd-catalog-accent-soft-2);
    color: #0f172a;
    text-align: center;
    text-decoration: none;
    transition: border-color .18s ease, color .18s ease;
}

.pd-catalog-main-category:hover,
.pd-catalog-main-category:focus {
    border-bottom-color: var(--pd-catalog-accent);
    color: var(--pd-catalog-accent);
    text-decoration: none;
}

.pd-catalog-main-category:focus {
    outline: none;
}

.pd-catalog-main-category:focus-visible {
    border-radius: 6px;
    box-shadow: 0 0 0 3px var(--pd-catalog-accent-soft);
}

.pd-catalog-main-category-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 190px;
    height: 112px;
    margin: 0 0 8px;
    background: transparent;
    overflow: hidden;
}

.pd-catalog-main-category-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .2s ease;
}

.pd-catalog-main-category:hover .pd-catalog-main-category-image img,
.pd-catalog-main-category:focus .pd-catalog-main-category-image img {
    transform: translateY(-1px) scale(1.025);
}

.pd-catalog-main-category-title-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pd-catalog-main-category-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--pd-catalog-accent-soft);
    color: var(--pd-catalog-accent);
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pd-catalog-main-category h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    color: currentColor;
    transition: color .18s ease;
}

.pd-catalog-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 32px 14px;
}

.pd-catalog-card {
    display: block;
    color: #0f172a;
    text-align: center;
    text-decoration: none;
}

.pd-catalog-card:hover,
.pd-catalog-card:focus {
    color: #0f172a;
    text-decoration: none;
}

.pd-catalog-card:focus {
    outline: none;
}

.pd-catalog-card:focus-visible .pd-catalog-card-title {
    color: var(--pd-catalog-accent);
}

.pd-catalog-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1.55 / 1;
    margin-bottom: 14px;
    background: transparent;
    overflow: hidden;
}

.pd-catalog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .22s ease;
}

.pd-catalog-card:hover .pd-catalog-card-image img,
.pd-catalog-card:focus .pd-catalog-card-image img {
    transform: translateY(-2px) scale(1.03);
}

.pd-catalog-card-title {
    display: block;
    padding: 0 4px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 600;
    color: #1f2937;
    transition: color .18s ease;
}

.pd-catalog-card:hover .pd-catalog-card-title,
.pd-catalog-card:focus .pd-catalog-card-title {
    color: var(--pd-catalog-accent);
}

.pd-catalog-empty {
    margin: 24px 16px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    color: #475569;
}

.pd-catalog-search-empty {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.pd-catalog-section.is-hidden,
.pd-catalog-card.is-hidden,
.pd-catalog-tab.is-hidden {
    display: none !important;
}

@media (max-width: 1280px) {
    .pd-catalog-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .pd-catalog-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .pd-catalog-tabs-wrap {
        min-height: 92px;
    }

    .pd-catalog-tabs-arrow {
        flex-basis: 36px;
        width: 36px;
        min-height: 92px;
        font-size: 28px;
    }

    .pd-catalog-tab {
        flex-basis: 118px;
        width: 118px;
        min-height: 92px;
    }

    .pd-catalog-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 30px 14px;
    }
}


@media (max-width: 760px) {
    .pd-catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .pd-catalog-tabs-arrow {
        flex-basis: 30px;
        width: 30px;
    }

    .pd-catalog-tabs-wrap {
        margin-left: 0;
        margin-right: 0;
    }

    .pd-catalog-tab {
        flex-basis: 106px;
        width: 106px;
    }

    .pd-catalog-tab-image {
        width: 58px;
        height: 42px;
    }

    .pd-catalog-tab-image img {
        max-width: 58px;
        max-height: 42px;
    }

    .pd-catalog-tab-name {
        max-width: 94px;
        font-size: 12px;
    }

    .pd-catalog-section {
        padding-top: 18px;
    }

    .pd-catalog-main-category {
        max-width: 300px;
        padding: 0 10px 10px;
    }

    .pd-catalog-main-category-image {
        width: 170px;
        height: 100px;
        margin-bottom: 7px;
    }

    .pd-catalog-main-category-title-row {
        gap: 6px;
    }

    .pd-catalog-main-category h2 {
        font-size: 23px;
    }

    .pd-catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 26px 12px;
    }

    .pd-catalog-card-title {
        font-size: 14px;
    }

    .pd-catalog-toolbar {
        padding-top: 18px;
    }
}


@media (max-width: 420px) {
    .pd-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
