.catalog-toolbar {
    padding: 2.4rem 0 1.6rem;
}

@keyframes catalogFilterGlow {
    0% {
        transform: translateY(-50%) scaleX(1);
        opacity: 0.45;
    }
    100% {
        transform: translateY(-50%) scaleX(1.12);
        opacity: 0.05;
    }
}

.catalog-filter {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.8rem 2rem 2rem;
    border-radius: 22px;
    background: linear-gradient(155deg, rgba(248, 251, 255, 0.9), rgba(228, 235, 251, 0.82));
    border: 1px solid rgba(29, 78, 216, 0.12);
    box-shadow: 0 32px 80px -54px rgba(15, 51, 96, 0.42);
    overflow: visible;
}

.catalog-filter::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 46%);
    pointer-events: none;
}

.catalog-filter::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 36%;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.35), rgba(59, 130, 246, 0));
    filter: blur(64px);
    transform: translate(-50%, -48%);
    animation: catalogFilterGlow 8s ease-in-out infinite alternate;
}

.catalog-filter > * {
    position: relative;
}

.catalog-filter__intro {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(15, 31, 58, 0.78);
    margin: 0;
}

.catalog-filter__rows {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.catalog-filter__row {
    display: grid;
    gap: 1.1rem 1.4rem;
    align-items: end;
}

.catalog-filter__row--primary {
    grid-template-columns: minmax(0, 0.62fr) minmax(0, 0.38fr);
}

.catalog-filter__row--secondary {
    grid-template-columns: minmax(0, 0.52fr) minmax(0, 0.48fr);
}

.catalog-filter__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.catalog-filter__field label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(37, 99, 235, 0.85);
}

.catalog-filter__field input,
.catalog-filter__field select {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(15, 23, 42, 0.92);
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.catalog-filter__field input::placeholder {
    color: rgba(100, 116, 139, 0.68);
}

.catalog-filter__field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(37, 99, 235, 0.65) 50%),
        linear-gradient(135deg, rgba(37, 99, 235, 0.65) 50%, transparent 50%);
    background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
    background-size: 7px 7px, 7px 7px;
    background-repeat: no-repeat;
}

.catalog-filter__field input:focus,
.catalog-filter__field select:focus {
    outline: none;
    border-color: rgba(29, 112, 247, 0.55);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
    background: rgba(255, 255, 255, 1);
}

.catalog-filter__field--range {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.catalog-filter__range {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    min-width: 0;
}

.catalog-filter__range span {
    justify-self: center;
    color: rgba(148, 163, 184, 0.9);
    font-weight: 600;
}

.catalog-filter__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.catalog-filter__actions {
    display: flex;
    gap: 0.75rem;
}

.catalog-filter__actions .button.primary {
    padding-inline: 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 16px 40px -18px rgba(29, 112, 247, 0.55);
}

.catalog-filter__actions .button.ghost {
    border-radius: 999px;
    border-color: rgba(37, 99, 235, 0.35);
    color: rgba(37, 99, 235, 0.9);
}

.catalog-filter__actions .button.ghost:hover,
.catalog-filter__actions .button.ghost:focus-visible {
    border-color: rgba(37, 99, 235, 0.55);
    color: rgba(22, 78, 199, 1);
}

.catalog-filter__live {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.92rem;
    color: rgba(15, 31, 58, 0.78);
}

.catalog-filter__live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(29, 112, 247, 1), rgba(59, 130, 246, 0.7));
    animation: demo4Pulse 1.6s ease-in-out infinite;
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.18);
}

.catalog-filter__live strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(15, 51, 96, 0.95);
}

.catalog-filter__live.is-empty {
    color: #b91c1c;
}

.catalog-results {
    padding: 3.2rem 0 4.2rem;
}

.catalog-results__list,
.catalog-results__fallback-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.7rem;
    width: 100%;
}

.catalog-result-card {
    position: relative;
}

.catalog-result-card--promoted {
    border-color: rgba(59, 130, 246, 0.42);
    box-shadow: 0 32px 88px -54px rgba(29, 112, 247, 0.5);
}

.catalog-result-card--promoted .demo4-promoted-card__content {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(231, 240, 255, 0.94));
}

.catalog-result-card__metrics {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem;
    flex-wrap: wrap;
    font-size: 0.92rem;
    color: rgba(15, 31, 58, 0.7);
}

.catalog-results .demo4-promoted-card__views {
    white-space: normal;
}

.catalog-result-card__visibility {
    font-weight: 600;
    color: rgba(15, 31, 58, 0.78);
}

.catalog-result-card__seller {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.catalog-result-card__seller-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.catalog-result-card__seller-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.12);
    color: rgba(15, 51, 96, 0.85);
    font-weight: 700;
    font-size: 1rem;
    display: grid;
    place-items: center;
}

.catalog-result-card__seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.catalog-result-card__seller-initial {
    letter-spacing: 0.04em;
}

.catalog-result-card__seller-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.catalog-result-card__seller-name {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.92);
}

.catalog-result-card__location {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    color: rgba(30, 41, 59, 0.8);
}

.catalog-result-card__location svg {
    color: var(--primary-dark);
}

.catalog-result-card__attributes {
    margin-top: 1.1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.catalog-result-card__attributes span {
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    color: rgba(30, 41, 59, 0.78);
    font-size: 0.86rem;
    font-weight: 500;
}

.catalog-results__empty,
.catalog-results__fallback {
    margin-top: 2.2rem;
    background: rgba(29, 112, 247, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(29, 112, 247, 0.18);
    padding: 2rem;
    text-align: center;
}

.catalog-results__fallback-head {
    margin-bottom: 1.5rem;
    text-align: center;
}

@media (min-width: 992px) {
    .catalog-results__list .demo4-promoted-card > a,
    .catalog-results__fallback-list .demo4-promoted-card > a {
        display: grid;
        grid-template-columns: minmax(220px, 32%) 1fr;
        gap: 0;
        align-items: stretch;
    }

    .catalog-results__list .demo4-promoted-card__media,
    .catalog-results__fallback-list .demo4-promoted-card__media {
        aspect-ratio: auto;
        min-height: 230px;
    }

    .catalog-results__list .demo4-promoted-card__content,
    .catalog-results__fallback-list .demo4-promoted-card__content {
        padding: 1.35rem 1.7rem 1.75rem;
        gap: 0.85rem;
    }
}

@media (max-width: 768px) {
    .catalog-filter {
        padding: 1.35rem 1.4rem 1.55rem;
        gap: 1rem;
    }

    .catalog-toolbar {
        padding: 1.8rem 0 1rem;
    }

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

    .catalog-filter__footer {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 0.9rem;
        padding-top: 1.2rem;
    }

    .catalog-filter__actions {
        width: 100%;
    }

    .catalog-filter__actions .button {
        width: 100%;
        justify-content: center;
    }

    .catalog-filter__live {
        justify-content: flex-start;
    }

    .catalog-results .container {
        padding-inline: 0.9rem;
    }

    .catalog-results__list,
    .catalog-results__fallback-list {
        gap: 1.2rem;
    }

    .catalog-results__list .demo4-promoted-card,
    .catalog-results__fallback-list .demo4-promoted-card {
        background: transparent;
        border: none;
        box-shadow: none;
        overflow: visible;
    }

    .catalog-results__list .demo4-promoted-card > a,
    .catalog-results__fallback-list .demo4-promoted-card > a {
        display: block;
        background: var(--surface);
        border-radius: 24px;
        padding: 0;
        box-shadow: 0 18px 38px -30px rgba(15, 31, 58, 0.45);
        overflow: hidden;
    }

    .catalog-results__list .demo4-promoted-card__media,
    .catalog-results__fallback-list .demo4-promoted-card__media {
        border-radius: 24px 24px 0 0;
        width: 100%;
        min-height: 210px;
        margin: 0;
    }

    .catalog-results__list .demo4-promoted-card__content,
    .catalog-results__fallback-list .demo4-promoted-card__content {
        padding: 1rem 1rem 1.25rem;
        gap: 0.55rem;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .catalog-results__list .demo4-promoted-card > a,
    .catalog-results__fallback-list .demo4-promoted-card > a {
        flex-direction: row;
        align-items: stretch;
        gap: 0;
    }

    .catalog-results__list .demo4-promoted-card__media,
    .catalog-results__fallback-list .demo4-promoted-card__media {
        flex: 0 0 clamp(130px, 38vw, 170px);
        max-width: clamp(130px, 38vw, 170px);
        min-height: auto;
        height: auto;
        aspect-ratio: 4 / 3;
        border-radius: 16px 0 0 16px;
    }

    .catalog-results__list .demo4-promoted-card__content,
    .catalog-results__fallback-list .demo4-promoted-card__content {
        min-width: 0;
        padding: 1.1rem 1.15rem 1.3rem;
        gap: 0.65rem;
    }
}

@media (max-width: 640px) {
    .catalog-results {
        padding: 2.6rem 0 3.5rem;
    }

    .catalog-results__list .demo4-promoted-card > a,
    .catalog-results__fallback-list .demo4-promoted-card > a {
        border-radius: 22px;
    }

    .catalog-results__list .demo4-promoted-card__content,
    .catalog-results__fallback-list .demo4-promoted-card__content {
        padding: 0.85rem 0.85rem 1.1rem;
        gap: 0.45rem;
    }

    .catalog-results__list .demo4-promoted-card__media,
    .catalog-results__fallback-list .demo4-promoted-card__media {
        min-height: 190px;
    }

    .catalog-results__list,
    .catalog-results__fallback-list {
        max-width: 100%;
    }

    .catalog-result-card__metrics {
        flex: 1 1 auto;
        justify-content: flex-end;
        gap: 0.55rem;
        margin-top: 0;
    }

    .catalog-result-card__seller {
        margin-top: 0.4rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
    }

    .catalog-result-card__seller-info {
        width: 100%;
        gap: 0.45rem;
        font-size: 0.9rem;
    }

    .catalog-results__list .demo4-promoted-card__bottom,
    .catalog-results__fallback-list .demo4-promoted-card__bottom {
        margin-top: 0.45rem;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.35rem 0.75rem;
    }

    .catalog-result-card__attributes {
        display: none;
    }

    .catalog-result-card__seller-name,
    .catalog-result-card__seller-avatar {
        display: none;
    }
}

@media (max-width: 480px) {
    .catalog-results__list .demo4-promoted-card__media,
    .catalog-results__fallback-list .demo4-promoted-card__media {
        min-height: 170px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .catalog-filter__row--primary,
    .catalog-filter__row--secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .catalog-filter__actions {
        width: 100%;
    }
}
