.amsearch-result-section .uss-hello-retail-dropdown-categories {
    padding: 0 20px;
    margin: 0;
}

.amsearch-result-section .uss-hello-retail-categories-title {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.amsearch-result-section .uss-hello-retail-dropdown-categories .cat-button-row-txt {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.amsearch-result-section .uss-hello-retail-dropdown-categories .sub-category-item.wrapper {
    flex: 0 0 calc((100% - 24px) / 4);
    max-width: calc((100% - 24px) / 4);
    padding: 0;
    margin: 0;
}

.amsearch-result-section .uss-hello-retail-dropdown-categories .custom-sub-category-title {
    min-height: 30px;
    margin-bottom: 0;
}

.amsearch-result-section .uss-hello-retail-dropdown-categories .cat-button-txt,
.amsearch-result-section .uss-hello-retail-dropdown-categories .cat-button-txt a {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.amsearch-result-section .uss-hello-retail-dropdown-categories .cat-button-txt a {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amsearch-result-section .uss-hello-retail-dropdown-categories .custom-sub-category-title .image {
    width: 28px;
    min-width: 28px;
}

.amsearch-result-section .uss-hello-retail-dropdown-categories .custom-sub-category-title .image img {
    width: 100%;
    max-height: 28px;
    object-fit: contain;
}

.amsearch-result-section .uss-hello-retail-products-header {
    margin-top: 18px;
}

.search-header .amsearch-result-section .amsearch-items-section,
.search-header .amsearch-result-section .amsearch-items-section .amsearch-products-section {
    padding: 0;
}

.search-header .amsearch-products-section .amsearch-item:hover {
    background: none;
}

.amsearch-result-section .uss-hello-retail-product-cards-wrapper {
    margin: 0;
    padding: 0 20px 20px;
}

.amsearch-result-section .uss-hello-retail-product-cards-wrapper .uss-hello-retail-product-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

.amsearch-result-section .uss-hello-retail-product-cards-wrapper .uss-hello-retail-product-cards .product-item {
    box-sizing: border-box;
    flex: 0 0 calc((100% - 48px) / 4) !important;
    max-width: calc((100% - 48px) / 4) !important;
    width: calc((100% - 48px) / 4) !important;
    margin: 0;
    padding: 0;
}

.amsearch-result-section .uss-hello-retail-product-cards-wrapper .product-item-wrapper,
.amsearch-result-section .uss-hello-retail-product-cards-wrapper .product-item-info {
    height: 100%;
    width: 100%;
}

.amsearch-result-section .uss-hello-retail-product-cards-wrapper .product.photo.product-item-photo {
    display: block;
    position: relative;
}

.amsearch-result-section .uss-hello-retail-product-cards-wrapper .product-image-container,
.amsearch-result-section .uss-hello-retail-product-cards-wrapper .product-image-wrapper {
    display: block;
}

.amsearch-result-section .uss-hello-retail-product-cards-wrapper .product-item-details {
    text-align: center;
}

.amsearch-result-section .uss-hello-retail-product-cards-wrapper .product-item-name {
    min-height: 56px;
    margin-bottom: 6px;
}

.amsearch-result-section .uss-hello-retail-product-cards-wrapper .product-item-link {
    display: block;
}

.amsearch-result-section .uss-hello-retail-product-cards-wrapper .product-item-actions {
    margin-top: 8px;
}

.amsearch-result-section .uss-hello-retail-product-cards-wrapper .tp-widget.product-score {
    justify-content: center;
}

.amsearch-result-tabs.product.data.items>.item.content {
    border: none;
    margin-top: 0;
    padding: 0;
}

.main .amsearch-result-tabs .data.item.title {
    display: none;
}

.amsearch-products-tab .uss-hello-retail-categories {
    margin-top: 0;
}

.catalogsearch-result-index .uss-hello-retail-categories .sub-category-item .custom-sub-category-title {
    margin-bottom: 10px;
}

.catalogsearch-result-index .uss-hello-retail-categories .sub-category-item .custom-sub-category-title .image {
    width: 50px;
    min-width: 50px;
    height: 50px;
    max-width: 50px;
}

.catalogsearch-result-index .uss-hello-retail-categories .sub-category-item .custom-sub-category-title .image a {
    display: block;
    width: 100%;
    height: 100%;
}

.catalogsearch-result-index .uss-hello-retail-categories .sub-category-item .custom-sub-category-title .image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .amsearch-result-section .uss-hello-retail-dropdown-categories .sub-category-item.wrapper {
        flex: 0 0 calc((100% - 8px) / 2);
        max-width: calc((100% - 8px) / 2);
    }

    .amsearch-result-section .uss-hello-retail-product-cards-wrapper .uss-hello-retail-product-cards {
        gap: 12px;
    }

    .amsearch-result-section .uss-hello-retail-product-cards-wrapper .uss-hello-retail-product-cards .product-item {
        flex: 0 0 calc((100% - 12px) / 2) !important;
        max-width: calc((100% - 12px) / 2) !important;
        width: calc((100% - 12px) / 2) !important;
    }
}

@media (max-width: 767px) {
    .catalogsearch-result-index .uss-hello-retail-categories .sub-category-item .custom-sub-category-title {
        min-height: 44px;
    }

    .catalogsearch-result-index .uss-hello-retail-categories .sub-category-item .custom-sub-category-title .image {
        width: 32px;
        min-width: 32px;
        height: 32px;
        max-width: 32px;
    }

    .catalogsearch-result-index .uss-hello-retail-categories .sub-category-item.wrapper:nth-child(n+5) {
        display: none;
    }

    .amsearch-result-section .uss-hello-retail-dropdown-categories .sub-category-item.wrapper:nth-child(n+5) {
        display: none;
    }

    .amsearch-result-section .uss-hello-retail-product-cards-wrapper .uss-hello-retail-product-cards .product-item:nth-child(n+3) {
        display: none;
    }

    .amsearch-result-section .uss-hello-retail-dropdown-categories .custom-sub-category-title {
        width: calc(100% - 20px);
    }

    .amsearch-result-tabs .amsearch-products-tab {
        padding: 0!important;
        border: none!important;
    }
}
