.catalog-search-shell {
    position: relative;
    overflow: visible !important;
}

.search-area,
.catalog-search-form {
    overflow: visible !important;
}

.catalog-search-legacy-panel,
.autocomplete-suggestions {
    display: none !important;
}

.catalog-search-suggestions {
    position: absolute;
    z-index: 5000;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    max-height: 430px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(20, 35, 55, .18);
    text-align: left;
}

.catalog-search-group-title {
    padding: 10px 13px 6px;
    color: #7a8491;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-top: 1px solid #edf0f4;
}

.catalog-search-group:first-child .catalog-search-group-title {
    border-top: 0;
}

.catalog-search-option {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 48px;
    padding: 8px 13px;
    color: #2f3542;
    text-decoration: none;
}

.catalog-search-option:hover,
.catalog-search-option.is-active {
    background: #edf5ff;
    color: #146fd1;
    text-decoration: none;
}

.catalog-search-thumb {
    flex: 0 0 36px;
    width: 36px;
    height: 44px;
    object-fit: cover;
    border: 1px solid #e5e9ee;
    border-radius: 3px;
    background: #f4f6f8;
}

.catalog-search-option-copy {
    min-width: 0;
}

.catalog-search-option-label,
.catalog-search-option-meta {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-search-option-label {
    font-weight: 600;
}

.catalog-search-option-meta {
    margin-top: 2px;
    color: #858d98;
    font-size: 11px;
}

.catalog-search-status {
    padding: 16px;
    color: #747e8b;
    text-align: center;
}

.mobile-search .catalog-search-suggestions {
    right: -12px;
    left: -12px;
}

.mobile-search .catalog-search-form {
    margin: 0;
}

.catalog-filter-bar {
    display: grid;
    grid-template-columns: minmax(180px, 1.3fr) repeat(5, minmax(130px, 1fr)) repeat(2, minmax(95px, .7fr)) auto;
    gap: 10px;
    align-items: end;
    margin: 0 0 20px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 6px;
    box-shadow: 0 2px 9px rgba(29, 45, 65, .05);
}

.ebook-list-result .ebook-card .ebook-content,
.ebook-list-result .ebook-card .ebook-content .ebook-name,
.ebook-list-result .ebook-card .ebook-content .ebook-authors,
.ebook-list-result .ebook-card .ebook-content .ebook-title-link {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}

.ebook-list-result .ebook-card .more-details-wrapper,
.ebook-list-result .ebook-card .more-details-wrapper .ebook-rating,
.ebook-list-result .ebook-card-price {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
}

.ebook-list-result .ebook-card-price {
    margin-right: auto !important;
    margin-left: auto !important;
}

.catalog-filter-field {
    min-width: 0;
}

.catalog-filter-field label {
    display: block;
    margin: 0 0 5px;
    color: #687280;
    font-size: 11px;
    font-weight: 700;
}

.catalog-filter-field select,
.catalog-filter-field input {
    width: 100%;
    height: 39px;
    padding: 7px 9px;
    border: 1px solid #d9e0e8;
    border-radius: 4px;
    background: #fff;
    color: #333;
}

.catalog-filter-actions {
    display: flex;
    gap: 6px;
}

.catalog-filter-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 39px;
}

.catalog-filter-reset {
    width: 39px;
    padding: 0;
    border: 1px solid #d9e0e8;
    background: #fff;
    color: #606b78;
}

@media (max-width: 1400px) {
    .catalog-filter-bar {
        grid-template-columns: repeat(4, minmax(145px, 1fr));
    }
}

@media (max-width: 767px) {
    .catalog-filter-bar {
        grid-template-columns: 1fr 1fr;
    }

    .catalog-filter-category,
    .catalog-filter-actions {
        grid-column: 1 / -1;
    }

    .catalog-filter-actions .btn-primary {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .catalog-filter-bar {
        grid-template-columns: 1fr;
    }

    .catalog-filter-category,
    .catalog-filter-actions {
        grid-column: auto;
    }
}
