/*
 * E-REON Technical Catalog
 * Page-specific presentation for /catalog/.
 *
 * Shared cards, header, footer and brand foundations remain
 * in /style.css.
 */

/* ---------- Catalog shell ---------- */

.catalog-page .catalog-page-content {
    padding-bottom: 64px;
}

.catalog-page .catalog-breadcrumbs {
    padding-top: 20px;
}

.catalog-page .catalog-breadcrumbs .crumbs {
    padding-top: 0;
}

.catalog-page [hidden] {
    display: none !important;
}



/* ---------- Compact catalog introduction ---------- */

.catalog-page .catalog-header {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    margin-top: 26px;
    padding: 34px 38px 32px;

    color: #fff;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius2);

    background:
        radial-gradient(560px 230px at 86% 10%,
            rgba(8, 144, 204, 0.32),
            transparent 72%),
        repeating-linear-gradient(90deg,
            rgba(255, 255, 255, 0.025) 0,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px,
            transparent 72px),
        linear-gradient(135deg,
            #071725 0%,
            #083653 58%,
            #05648e 100%);

    box-shadow: var(--shadowSoft);
}

.catalog-page .catalog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 10px;

    color: rgba(255, 255, 255, 0.88);

    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.catalog-page .catalog-eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--accent);
}

.catalog-page .catalog-header h1 {
    max-width: 20ch;
    margin: 0;

    color: #fff;

    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 950;
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.catalog-page .catalog-introduction {
    max-width: 68ch;
    margin: 14px 0 0;

    color: rgba(255, 255, 255, 0.88);

    font-size: 1rem;
    line-height: 1.6;
}

/* ---------- Search inside the introduction ---------- */

.catalog-page .catalog-search {
    margin-top: 22px;
    padding: 0;

    color: #fff;

    border: 0;
    background: transparent;
    box-shadow: none;
}

.catalog-page .catalog-search label {
    display: block;
    margin-bottom: 8px;

    color: rgba(255, 255, 255, 0.86);

    font-size: 0.84rem;
    font-weight: 800;
}

.catalog-page .catalog-search input[type="search"] {
    width: 100%;
    min-height: 52px;

    padding: 12px 16px;

    color: var(--text);

    font: inherit;
    font-size: 1rem;

    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.97);
    box-shadow:
        0 12px 26px rgba(0, 0, 0, 0.16),
        inset 0 1px 2px rgba(15, 23, 42, 0.04);

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.catalog-page .catalog-search input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);

    box-shadow:
        0 0 0 4px rgba(8, 144, 204, 0.22),
        0 12px 26px rgba(0, 0, 0, 0.18);
}

.catalog-page #catalog-results-status {
    min-height: 1.4em;
    margin: 8px 0 0;

    color: rgba(255, 255, 255, 0.78);

    font-size: 0.84rem;
    font-weight: 750;
}

/* ---------- Shared catalog sections ---------- */

.catalog-page .catalog-categories,
.catalog-page .catalog-results {
    margin: 0;
    padding: 44px 0 0;
}

.catalog-page .catalog-categories>.section-head,
.catalog-page .catalog-results>.section-head {
    display: block;
    margin-bottom: 22px;
}

.catalog-page .catalog-categories>.section-head p,
.catalog-page .catalog-results>.section-head p {
    max-width: 68ch;
    margin-top: 8px;
}

/* ---------- Category cards ---------- */

/*
 * Three desktop columns matches the main category presentation.
 * The same entry-card component and 16:10 image rule are retained.
 */

.catalog-page .category-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.catalog-page .category-card-grid .featured-card {
    height: 100%;
}

/* ---------- Available material ---------- */

.catalog-page .catalog-results {
    margin-top: 44px;
    padding-top: 42px;
    border-top: 1px solid var(--line);
}

/* ---------- Two-dimensional filter bar ---------- */

.catalog-page .catalog-filter-bar {
    display: grid;
    gap: 12px;

    margin: 0 0 26px;
    padding: 14px 16px;

    border: 1px solid var(--line);
    border-radius: 16px;

    background: rgba(246, 251, 255, 0.9);
}

.catalog-page .catalog-filter-group {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.catalog-page .catalog-filter-label {
    color: var(--muted);

    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.catalog-page .catalog-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.catalog-page .catalog-filter-options button {
    min-height: 38px;
    padding: 7px 13px;

    color: var(--muted);

    font: inherit;
    font-size: 0.87rem;
    font-weight: 850;

    cursor: pointer;

    border: 1px solid transparent;
    border-radius: 999px;

    background: transparent;

    transition:
        color 0.15s ease,
        background-color 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.catalog-page .catalog-filter-options button:hover {
    color: var(--accent2);
    border-color: rgba(8, 144, 204, 0.28);
    background: #fff;
}

.catalog-page .catalog-filter-options button:focus-visible {
    outline: 3px solid rgba(8, 144, 204, 0.22);
    outline-offset: 2px;
}

.catalog-page .catalog-filter-options button[aria-pressed="true"] {
    color: #fff;
    border-color: var(--accent2);

    background:
        linear-gradient(180deg,
            var(--accent),
            var(--accent2));

    box-shadow: 0 7px 16px rgba(5, 100, 142, 0.2);
}

/* ---------- Flat result grid ---------- */

/*
 * Four desktop columns matches product and product-group cards
 * elsewhere in the portfolio.
 */

.catalog-page .entry-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.catalog-page .catalog-entry {
    min-width: 0;
}

.catalog-page .catalog-entry .featured-card {
    height: 100%;
}

.catalog-page .catalog-no-results,
.catalog-page .catalog-empty {
    padding: 22px 24px;
}

.catalog-page .catalog-no-results p,
.catalog-page .catalog-empty p {
    margin: 0;
}

/* ---------- Contextual catalog CTA ---------- */

.catalog-page .catalog-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;

    margin-top: 48px;
    padding: 26px 28px;
}

.catalog-page .catalog-cta h2 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
}

.catalog-page .catalog-cta p {
    max-width: 72ch;
    margin: 8px 0 0;
}

.catalog-page .catalog-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

/* ---------- Responsive catalog ---------- */

@media (max-width: 980px) {
    .catalog-page .category-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-page .entry-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .catalog-page .catalog-header {
        padding: 30px 28px;
    }

    .catalog-page .catalog-filter-group {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .catalog-page .entry-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-page .catalog-cta {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .catalog-page .catalog-cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .catalog-page .catalog-page-content {
        padding-bottom: 44px;
    }

    .catalog-page .catalog-header {
        margin-top: 20px;
        padding: 26px 20px;
        border-radius: 18px;
    }

    .catalog-page .catalog-header h1 {
        font-size: clamp(1.9rem, 10vw, 2.45rem);
    }

    .catalog-page .catalog-introduction {
        font-size: 0.96rem;
    }

    .catalog-page .catalog-search {
        margin-top: 18px;
    }

    .catalog-page .catalog-categories,
    .catalog-page .catalog-results {
        padding-top: 36px;
    }

    .catalog-page .catalog-results {
        margin-top: 36px;
    }

    .catalog-page .category-card-grid,
    .catalog-page .entry-card-grid {
        grid-template-columns: 1fr;
    }

    .catalog-page .catalog-filter-bar {
        padding: 12px;
    }

    .catalog-page .catalog-filter-options {
        flex-wrap: nowrap;
        overflow-x: auto;

        padding-bottom: 3px;

        scrollbar-width: thin;
    }

    .catalog-page .catalog-filter-options button {
        flex: 0 0 auto;
    }

    .catalog-page .catalog-cta {
        margin-top: 38px;
        padding: 22px 20px;
    }
}