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

.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 .sub-category-item.wrapper {
    float: none;
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    margin: 0 0 23px;
    padding: 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-category-link {
    text-decoration: none;
}

.amsearch-result-section .uss-hello-retail-dropdown-category-name {
    display: block;
}

.amsearch-result-section .uss-hello-retail-dropdown-category-path,
.amsearch-result-section .uss-hello-retail-dropdown-category-arrow {
    display: none;
}

.amsearch-result-section .uss-hello-retail-dropdown-categories .uss-hello-retail-dropdown-category-image {
    display: none;
}

.amsearch-result-section .uss-hello-retail-dropdown-categories .custom-sub-category-title.uss-hello-retail-dropdown-category-link {
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 0;
    padding: 0;
    margin: 0;
    background: none;
    text-transform: none;
    column-gap: 12px;
}

.amsearch-result-section .uss-hello-retail-dropdown-categories .custom-sub-category-title.uss-hello-retail-dropdown-category-link:hover,
.amsearch-result-section .uss-hello-retail-dropdown-categories .custom-sub-category-title.uss-hello-retail-dropdown-category-link:active {
    background: none;
    color: #111;
}

.amsearch-result-section .uss-hello-retail-dropdown-categories .custom-sub-category-title.uss-hello-retail-dropdown-category-link .cat-button-txt {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.amsearch-result-section .uss-hello-retail-dropdown-category-name {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
    text-transform: uppercase;
}

.amsearch-result-section .uss-hello-retail-dropdown-category-path {
    display: block;
    font-size: 11px;
    line-height: 1.2;
    color: #999;
    text-transform: none;
}

.amsearch-result-section .uss-hello-retail-dropdown-category-arrow {
    display: block;
    font-size: 14px;
    line-height: 0.7;
    font-weight: 300;
    color: #999;
}

.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;
}

.amsearch-result-section .uss-hello-retail-products-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 20px;
    margin-top: 18px;
    width: 100%;
}

.amsearch-result-section .uss-hello-retail-products-header-row .amsearch-block-header{
    width: auto;
}

.amsearch-result-section .uss-hello-retail-products-header-row .uss-hello-retail-products-header {
    margin-top: 0;
    padding: 0;
}

.amsearch-result-section .uss-hello-retail-products-header-row .uss-hello-retail-see-all-products {
    color: #111;
    font-size: 14px;
    text-decoration: underline;
}

.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 .cat-button-txt {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.catalogsearch-result-index .uss-hello-retail-categories .sub-category-item .uss-hello-retail-search-category-name {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalogsearch-result-index .uss-hello-retail-categories .sub-category-item .uss-hello-retail-search-category-path {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.2;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: none;
}

.catalogsearch-result-index .uss-hello-retail-categories .sub-category-item .uss-hello-retail-search-category-arrow {
    display: none;
}

.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 (min-width: 768px) {
    .catalogsearch-result-index .uss-hello-retail-categories .sub-category-item .custom-sub-category-title {
        min-height: 60px;
        box-sizing: border-box;
        width: calc(100% - 18px);
    }
}

@media (max-width: 1024px) {
    .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 .cat-button-row-txt {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin: 0;
    }

    .catalogsearch-result-index .uss-hello-retail-categories .cat-button-row-txt .sub-category-item.wrapper {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin: 0;
        padding: 0;
    }

    .catalogsearch-result-index .uss-hello-retail-categories .sub-category-item .uss-hello-retail-search-category-image {
        display: none;
    }

    .catalogsearch-result-index .uss-hello-retail-categories .sub-category-item .uss-hello-retail-search-category-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 0;
        padding: 0;
        margin: 0;
        background: none;
        text-transform: none;
        column-gap: 12px;
    }

    .catalogsearch-result-index .uss-hello-retail-categories .sub-category-item .uss-hello-retail-search-category-link .cat-button-txt {
        display: flex;
        flex-direction: column;
        gap: 4px;
        flex: 1 1 auto;
        min-width: 0;
    }

    .catalogsearch-result-index .uss-hello-retail-categories .sub-category-item .uss-hello-retail-search-category-name {
        font-size: 14px;
        line-height: 1.2;
        font-weight: 500;
        text-transform: uppercase;
    }

    .catalogsearch-result-index .uss-hello-retail-categories .sub-category-item .uss-hello-retail-search-category-path {
        margin-top: 0;
        font-size: 11px;
    }

    .catalogsearch-result-index .uss-hello-retail-categories .sub-category-item .uss-hello-retail-search-category-arrow {
        display: block;
        flex: 0 0 auto;
        margin-left: 12px;
        font-size: 14px;
        line-height: 0.7;
        font-weight: 300;
        color: #999;
    }

    .catalogsearch-result-index .uss-hello-retail-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-tabs .amsearch-products-tab {
        padding: 0!important;
        border: none!important;
    }

    .amsearch-result-section .uss-hello-retail-products-header-row .uss-hello-retail-see-all-products {
        display: none;
    }
}
