.page-products {
    background:
        radial-gradient(circle at 12% 16%, rgba(87, 144, 176, 0.18) 0%, transparent 26%),
        radial-gradient(circle at 86% 18%, rgba(213, 137, 78, 0.12) 0%, transparent 24%),
        radial-gradient(circle at 78% 62%, rgba(91, 126, 151, 0.14) 0%, transparent 30%),
        linear-gradient(180deg, #d9e6ea 0%, #d6e2e7 34%, #cfdbdf 68%, #d5e0e4 100%);
    background-attachment: fixed;
}

.page-products .about-hero {
    position: relative;
}

.page-products .about-hero::after {
    content: "";
    position: absolute;
    left: clamp(20px, 4vw, 56px);
    right: clamp(20px, 4vw, 56px);
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(20, 84, 118, 0) 0%, rgba(20, 84, 118, 0.34) 20%, rgba(214, 128, 57, 0.28) 50%, rgba(20, 84, 118, 0.34) 80%, rgba(20, 84, 118, 0) 100%);
    pointer-events: none;
}

.catalog-hero {
    position: relative;
    padding: 140px 0 60px;
    background:
        radial-gradient(circle at 16% 22%, rgba(222, 236, 240, 0.78) 0%, transparent 30%),
        radial-gradient(circle at 82% 20%, rgba(197, 178, 165, 0.22) 0%, transparent 24%),
        linear-gradient(155deg, rgba(218, 229, 233, 0.94) 0%, rgba(211, 223, 228, 0.9) 44%, rgba(204, 214, 219, 0.88) 100%);
}

.catalog-hero::before,
.catalog-hero::after {
    content: "";
    position: absolute;
    inset: auto;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(18px);
    opacity: 0.7;
}

.catalog-hero::before {
    width: 260px;
    height: 260px;
    top: 34px;
    left: -78px;
    background: radial-gradient(circle, rgba(21, 92, 132, 0.18) 0%, rgba(21, 92, 132, 0.06) 54%, transparent 76%);
}

.catalog-hero::after {
    width: 240px;
    height: 240px;
    right: -64px;
    bottom: 18px;
    background: radial-gradient(circle, rgba(214, 130, 53, 0.16) 0%, rgba(214, 130, 53, 0.05) 52%, transparent 74%);
}

.catalog-section-header {
    margin-bottom: 28px;
}

.catalog-hero .section-title {
    margin-bottom: 12px;
}

.catalog-layout {
    display: grid;
    grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-bottom: 80px;
}

.catalog-filters {
    position: sticky;
    top: 92px;
    background: rgba(242, 247, 249, 0.82);
    border: 1px solid rgba(146, 170, 184, 0.32);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 44px rgba(17, 43, 88, 0.1);
    backdrop-filter: blur(14px);
}

.catalog-filter-title {
    margin: 0 0 16px;
    font-size: 18px;
    color: #0e2a55;
}

.catalog-field {
    margin-bottom: 14px;
}

.catalog-field:last-child {
    margin-bottom: 0;
}

.catalog-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #34527d;
}

.catalog-field input:not([type="checkbox"]),
.catalog-field select {
    width: 100%;
    border: 1px solid #d6e1f3;
    border-radius: 12px;
    padding: 11px 12px;
    font-size: 14px;
    color: #0e2a55;
    background: #fff;
}

.catalog-field input:not([type="checkbox"]):focus,
.catalog-field select:focus {
    outline: none;
    border-color: #1f6fe5;
    box-shadow: 0 0 0 4px rgba(31, 111, 229, 0.12);
}

.catalog-field select:focus {
    border-radius: 12px;
}

.search-control {
    position: relative;
}

.search-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #6a7f9e;
    line-height: 1.4;
}

/* ── Autocomplete dropdown ── */
.search-suggestions {
    position: fixed;
    background: #fff;
    border: 1px solid #cfe0ff;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(17, 43, 88, 0.14);
    z-index: 9000;
    overflow: hidden;
    display: none;
}

.search-suggestions.is-open {
    display: block;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: #0e2a55;
    cursor: pointer;
    transition: background 0.15s;
}

.search-suggestion-item:hover,
.search-suggestion-item.is-highlighted {
    background: #eaf2ff;
}

.search-suggestion-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggestion-label mark {
    background: none;
    color: #1f6fe5;
    font-weight: 700;
}

.search-suggestion-type {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    color: #7a99c4;
    background: #f0f6ff;
    border-radius: 999px;
    padding: 2px 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.catalog-check {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #244165;
}

.catalog-check span {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.catalog-check input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #1f6fe5;
    transform: translateY(2px);
}

.catalog-actions {
    display: flex;
    margin-top: 16px;
    flex-wrap: wrap;
}

.catalog-actions .btn {
    flex: 1;
    justify-content: center;
}

.catalog-actions-joined {
    align-items: stretch;
}

.catalog-actions-joined .btn {
    min-height: 44px;
    border-radius: 0;
}

.catalog-actions-joined .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.catalog-actions-joined .btn-primary:hover {
    transform: scaleX(1.03);
    transform-origin: center left;
}

.catalog-actions-joined .btn-secondary {
    position: relative;
    isolation: isolate;
    color: var(--color-accent);
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transform: translateX(-2px);
    background: transparent;
}

.catalog-actions-joined .btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 90%;
    z-index: 1;
    border-radius: 23px;
    border: solid 2px var(--color-accent);
    background-color: var(--color-gray-100);
}

.catalog-actions-joined .btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    transform: scaleX(-1);
    transform-origin: center;
    background: var(--color-accent);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24.05' preserveAspectRatio='none'%3E%3Cpath d='M114 7c-2.82-1.65-3.06-4.36-6-6a9.06 9.06 0 0 0-5-1H12A12.22 12.22 0 0 0 0 12 12.19 12.19 0 0 0 11 24h92a8.89 8.89 0 0 0 5-1c2.94-1.63 3.18-4.35 6-6a9.4 9.4 0 0 1 6-1V8a9.27 9.27 0 0 1-6-1Z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: 100% 100%;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24.05' preserveAspectRatio='none'%3E%3Cpath d='M114 7c-2.82-1.65-3.06-4.36-6-6a9.06 9.06 0 0 0-5-1H12A12.22 12.22 0 0 0 0 12 12.19 12.19 0 0 0 11 24h92a8.89 8.89 0 0 0 5-1c2.94-1.63 3.18-4.35 6-6a9.4 9.4 0 0 1 6-1V8a9.27 9.27 0 0 1-6-1Z'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: 100% 100%;
}

.catalog-actions-joined .btn-secondary > * {
    position: relative;
    z-index: 2;
}

.catalog-actions-joined .btn-secondary:hover {
    transform: scaleX(1.06);
    transform-origin: center left;
}

.catalog-actions-joined .btn svg {
    flex-shrink: 0;
}

.catalog-content {
    min-width: 0;
    position: relative;
}

.catalog-content::before {
    content: "";
    position: absolute;
    inset: -16px -18px auto;
    height: 180px;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(238, 245, 247, 0.52) 0%, rgba(238, 245, 247, 0) 100%);
    pointer-events: none;
    z-index: 0;
}

.catalog-content > * {
    position: relative;
    z-index: 1;
}

.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.catalog-count {
    color: #31527c;
    font-weight: 600;
}

.catalog-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.catalog-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 7px 11px;
    background: #eaf2ff;
    color: #19417d;
    font-size: 13px;
    border: 1px solid #cfe0ff;
    text-decoration: none;
}

.catalog-chip-remove {
    font-size: 16px;
    line-height: 1;
    color: #19417d;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 16px;
    align-items: stretch;
}

.catalog-grid .featured-product-card {
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-width: none;
}

@media (min-width: 1200px) {
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 981px) {
    .catalog-grid:has(> .featured-product-card:only-child) {
        grid-template-columns: minmax(260px, 380px);
        justify-content: start;
    }

    .catalog-grid:has(> .featured-product-card:first-child:nth-last-child(2)) {
        grid-template-columns: repeat(2, minmax(260px, 380px));
        justify-content: start;
    }
}

.catalog-empty {
    border: 1px dashed #c7d8f0;
    border-radius: 16px;
    padding: 28px 22px;
    text-align: center;
    color: #30537c;
    background: rgba(241, 246, 248, 0.78);
    backdrop-filter: blur(10px);
}

.catalog-empty[hidden] {
    display: none;
}

.catalog-badge-count {
    font-size: 12px;
    font-weight: 700;
    color: #5f7ca6;
    margin-left: auto;
}

.catalog-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.catalog-page-link,
.catalog-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--color-accent);
    background: rgba(243, 248, 249, 0.88);
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}

.catalog-page-link.is-active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.catalog-page-ellipsis {
    border-style: dashed;
}

@media (max-width: 980px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-filters {
        position: static;
    }

}