/* Loaded without Vite. Tailwind v4's dev CSS pipeline can drop @layer components. */
.catalog-header {
    box-shadow: inset 0 0 20px #071525;
}

.catalog-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    background: #ffffff;
}

.catalog-icon {
    display: inline-flex;
    width: 23px;
    height: 23px;
    overflow: hidden;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.catalog-icon img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.catalog-icon-sm {
    width: 20px;
    height: 20px;
}

.catalog-chevron-toggle {
    width: 15px;
    height: 8px;
}

.catalog-intro {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.catalog-intro-icon {
    display: flex;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
    background: rgb(23 105 255 / 0.1);
}

.catalog-intro-icon img {
    display: block;
    width: 16px;
    height: 17px;
    object-fit: contain;
}

.catalog-intro-title {
    max-width: 160px;
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    line-height: 20px;
    color: #111827;
}

.catalog-intro-copy {
    max-width: 240px;
    margin: 12px 0 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    color: rgb(17 24 39 / 0.75);
}

.catalog-intro-copy span {
    color: #1769ff;
}

.catalog-kicker {
    margin: 20px 0 0;
    font-size: 22px;
    font-weight: 800;
    line-height: 34px;
    color: #1769ff;
}

.catalog-filter-toggle {
    display: flex;
    width: 100%;
    height: 30px;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    font-size: 18px;
    font-weight: 800;
    line-height: 30px;
    color: inherit;
    cursor: pointer;
}

.catalog-chevron {
    display: inline-flex;
    width: 13px;
    height: 8px;
    overflow: hidden;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.catalog-chevron img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.catalog-search {
    height: 60px;
    min-width: 0;
    background: #ffffff;
    transition: box-shadow 0.15s ease;
}

.catalog-search:focus-within {
    box-shadow: 0 0 0 4px rgb(23 105 255 / 0.12);
}

.catalog-search input,
.catalog-search input:focus,
.catalog-search input:focus-visible {
    border: 0;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.catalog-search-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    min-width: 0;
}

.catalog-brand-row {
    display: flex;
    min-height: 36px;
    max-width: 100%;
    align-items: center;
    gap: 14px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 8px;
    color: #6b7280;
}

.catalog-brand-row:not(.is-active) .catalog-chevron img {
    filter: grayscale(1) brightness(0.55) opacity(0.7);
}

.catalog-filter-toggle[aria-expanded="false"] .catalog-chevron-toggle {
    transform: rotate(-90deg);
}

.catalog-brand-row:hover {
    background: rgb(23 105 255 / 0.06);
}

.catalog-brand-row.is-active {
    background: rgb(23 105 255 / 0.12);
    color: #1769ff;
}

.catalog-row-label {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 500;
    color: rgb(17 24 39 / 0.8);
}

.catalog-brand-row.is-active .catalog-row-label {
    font-weight: 700;
    color: #1769ff;
}

.catalog-svg {
    display: inline-flex;
    width: 24px;
    height: 22px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.catalog-svg svg,
.catalog-brand-logo svg {
    width: 100%;
    height: 100%;
}

.catalog-svg img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.catalog-brand-row .catalog-svg {
    color: #5b6475;
}

.catalog-brand-row:not(.is-active) .catalog-svg img {
    filter: grayscale(1);
}

.catalog-brand-row.is-active .catalog-svg {
    color: #1769ff;
}

.catalog-svg-toggle {
    width: 22px;
    height: 22px;
    color: #111827;
}

.catalog-brand-logo {
    display: inline-flex;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.catalog-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.catalog-brand-logo svg {
    width: 20px;
}

.catalog-tanya {
    display: inline-flex;
    height: 60px;
    width: 100%;
    flex-shrink: 0;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 10px;
    background: #1769ff;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
    color: #f7f9fc;
    padding: 0 16px;
    white-space: nowrap;
}

.catalog-tanya-label {
    display: block;
    line-height: 1.15;
}

.catalog-tanya-icon {
    width: 18px;
    height: 18px;
}

.catalog-tanya-icon img {
    filter: brightness(0) invert(1);
}

.catalog-main {
    min-width: 0;
    flex: 1 1 0;
}

.catalog-grid {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

.catalog-card {
    display: flex;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: auto;
    flex-direction: column;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgb(23 105 255 / 0.5);
    background: #f7f9fc;
}

.catalog-card-cover {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 287 / 404;
    height: auto;
    overflow: hidden;
    background: #d9e0e8;
}

.catalog-card-cover img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

.catalog-card-title {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    color: #f7f9fc;
    font-size: clamp(14px, 1.25vw, 18px);
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 1px 10px rgb(0 0 0 / 0.55);
    pointer-events: none;
}

.catalog-card-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 12px 13px;
}

.catalog-card-btn {
    display: inline-flex;
    height: 40px;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: clamp(13px, 1.05vw, 15px);
    font-weight: 700;
    padding: 0 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .catalog-header {
        height: 150px;
    }

    .catalog-header-inner {
        padding-left: 75px;
        padding-right: 75px;
    }

    .catalog-logo {
        height: 107px;
        width: 120px;
    }

    .catalog-nav {
        gap: 72px;
    }

    .catalog-shell {
        flex-direction: row;
        align-items: stretch;
        min-height: 690px;
    }

    /* Figma ~420/1410 sidebar — fit container, not fixed 400px */
    .catalog-sidebar {
        flex: 0 0 33%;
        width: 33%;
        max-width: 440px;
        min-width: 300px;
    }

    .catalog-divider {
        flex: 0 0 1px;
        align-self: stretch;
        width: 1px;
        background: rgb(17 24 39 / 0.2);
    }

    .catalog-search-row {
        flex-direction: row;
        align-items: stretch;
        gap: clamp(16px, 2vw, 30px);
    }

    .catalog-search-row .catalog-tanya {
        width: 140px;
        padding: 0 14px;
        white-space: normal;
        gap: 12px;
    }

    .catalog-search-row .catalog-tanya-label {
        max-width: 4.6em;
        text-align: center;
    }

    /* Figma 3×287 + 2×30 gap in 921 — fit width with equal columns */
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-content: stretch;
        gap: clamp(16px, 2.1vw, 30px);
    }
}

#catalog-results {
    transition: opacity 0.15s ease;
}

#catalog-results[aria-busy="true"] {
    opacity: 0.5;
    pointer-events: none;
}
