.catalog-page #produse {
    max-width: 1540px;
    width: 100%;
    padding: 3.5rem 2rem 4rem;
    scroll-margin-top: 90px;
}

.catalog-page #produse [hidden] {
    display: none !important;
}

.catalog-layout {
    width: 100%;
}

.catalog-ready .catalog-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 2rem;
}

.catalog-filter-panel {
    padding: 1.5rem;
    border: 1px solid #e1e8ef;
    border-radius: 22px;
    background: #fff;
    color: var(--main-blue);
    box-shadow: 0 4px 20px rgba(26, 54, 93, 0.035);
}

.catalog-filter-panel > summary {
    display: none;
    cursor: pointer;
    font-weight: 700;
}

.catalog-filter-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.catalog-filter-heading h2 {
    margin: 0;
    font-size: 1.05rem;
}

.catalog-reset {
    border: 0;
    padding: 0.5rem 0;
    background: none;
    color: #007b8d;
    font: inherit;
    font-size: 0.8rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.catalog-reset:disabled {
    color: #75818c;
    cursor: default;
    text-decoration: none;
}

.catalog-filter-group {
    border-top: 1px solid #eaf0f4;
    padding: 0.8rem 0;
}

.catalog-filter-group > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 32px;
    list-style: none;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.catalog-filter-group > summary::-webkit-details-marker {
    display: none;
}

.catalog-filter-group > summary::after {
    content: '+';
    color: #657386;
    font-weight: 400;
}

.catalog-filter-group[open] > summary::after {
    content: '−';
}

.catalog-filter-form fieldset {
    border: 0;
    padding: 0.5rem 0 0;
    min-width: 0;
}

.catalog-filter-form legend {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.catalog-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    clear: both;
    min-height: 40px;
    margin: 0.1rem -0.5rem;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    color: #485769;
    font-size: 0.8rem;
    cursor: pointer;
}

.catalog-option:hover, .catalog-option.is-selected {
    background: #edf9fb;
    color: #135165;
}

.catalog-option input {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    accent-color: #008a9e;
}

.catalog-option-count {
    margin-left: auto;
    color: #607184;
    font-size: 0.75rem;
}

.catalog-filter-note {
    color: #647387;
    font-size: 0.72rem;
    line-height: 1.6;
}

.catalog-results {
    min-width: 0;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    min-height: 50px;
    margin-bottom: 1.25rem;
    color: #526276;
    font-size: 0.85rem;
}

.catalog-toolbar [data-result-count] {
    text-align: right;
}

.catalog-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.catalog-chip {
    padding: 0.45rem 0.7rem;
    border: 1px solid #bee9ef;
    border-radius: 20px;
    background: #e8f8fb;
    color: #155467;
    font: inherit;
    font-size: 0.75rem;
    cursor: pointer;
}

.catalog-page .catalog-results .products-grid {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
    margin-top: 0;
}

.catalog-page .catalog-results .product-card {
    min-height: 0;
    padding: 1rem;
    border-radius: 22px;
    justify-content: flex-start;
}

.catalog-page .catalog-results .product-card:hover {
    transform: translateY(-4px);
}

.catalog-page .catalog-results .product-img {
    position: relative;
    flex: none;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-bottom: 1rem;
}

.catalog-page .catalog-results .product-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.catalog-page .catalog-results .product-title {
    font-size: 1.05rem;
}

.catalog-page .catalog-results .product-desc {
    font-size: 0.8rem;
}

.catalog-card-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin: auto 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9eff4;
    text-align: left;
}

.catalog-card-specs dt {
    color: #657386;
    font-size: 0.66rem;
}

.catalog-card-specs dd {
    color: var(--main-blue);
    font-size: 0.8rem;
    font-weight: 700;
}

.catalog-page .catalog-results .product-btn {
    margin-top: 0;
}

.catalog-empty-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    min-height: 190px;
    padding: 2rem;
    border-radius: 22px;
    background: linear-gradient(110deg, #fff, #effbfd 55%, #cef1f5);
    color: var(--main-blue);
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0, 188, 212, 0.07);
}

.catalog-empty-banner h3 {
    margin: 0.4rem 0;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: 1.35;
}

.catalog-empty-banner p {
    max-width: 32rem;
    color: #526276;
    font-size: 0.85rem;
}

.catalog-empty-eyebrow {
    color: #167082;
    font-size: 0.75rem;
}

.catalog-empty-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.7rem 1.2rem;
    border-radius: 24px;
    background: var(--accent);
    color: var(--main-blue);
    font-weight: 700;
    font-size: 0.8rem;
}

.catalog-empty-banner:hover .catalog-empty-cta {
    background: #4bd0e0;
}

.catalog-page #produse :is(a, button, input, summary):focus-visible {
    outline: 3px solid #00899d;
    outline-offset: 4px;
}

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

@media (max-width: 850px) {
    .catalog-page #produse {
        padding: 2.5rem 1rem;
    }

    .catalog-ready .catalog-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }

    .catalog-filter-panel {
        padding: 1rem 1.25rem;
    }

    .catalog-filter-panel > summary {
        display: list-item;
        list-style-position: inside;
    }

    .catalog-filter-heading {
        margin-top: 1rem;
    }

    .catalog-filter-form {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 1.5rem;
    }

    .catalog-toolbar {
        flex-wrap: wrap;
        font-size: 0.8rem;
    }
}

@media (max-width: 540px) {
    .catalog-page .catalog-results .products-grid {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .catalog-empty-banner {
        padding: 1.5rem;
    }
}
