.no-scroll {
    overflow: hidden !important;
    height: 100%;
}

.amsearch-wrapper-block {
    display: none;
}

.custom-search {
    position: relative;
    display: inline-block;
    width: calc(100% - 570px);
    margin: 0 auto;
    text-align: center;
    /* z-index: 101; */
}

.custom-search.active {
    top: -80px;
    max-width: 100%;
    width: 100%;
}  

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 100;
    display: none;
    transition: opacity 0.3s ease-in-out;
}

.search-overlay.active {
    display: block;
    opacity: 1;
}

.search-overlay-bg {
    width: 100%;
    max-height: 85vh;
    min-height: 85vh;
    background: #FFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 20px;
}

.search-overlay-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 106;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    transition: background-color .3s ease-in-out;
}

.search-overlay-close:hover {
    background-color: #f0f0f0;
}

.custom-results-wrapper {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: auto;
    max-height: 70vh;
    min-height: 70vh;
    display: none;
    z-index: 102;
    background: #FFF;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    padding: 20px 20px 40px;
    opacity: 0; 
}

.custom-results-wrapper.active {
    display: block;
    opacity: 1;
    overflow-y: auto;
}

.custom-categories, .categories-blog-section, .custom-search-results {
    padding: 0 10px;
    background: #ffffff;
    overflow-y: auto;
    text-align: left;
}

.search-result-sku {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #7d7d7d !important;
}

.description-title {
    font-size: 1.42rem;
    color: #7d7d7d;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: left;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 5px;
    margin: 10px 0;
    background: #ffffff;
    border: 1px solid #fac9cd;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.search-result-item:hover {
    background-color: #f9f9f9;
    transform: translateY(-2px);
}

.search-result-table {
    width: 100%;
    border-radius: 15px !important;
    min-height: 116px;
}

.search-result-table {
	width: 100%;
	border-radius: 15px;
	min-height: 116px;
}

.search-result-table td {
	vertical-align: middle;
	padding: 10px;
}

.search-result-image {
    width: 120px;
    padding: 5px;
}

.search-result-image img {
    object-fit: cover;
    border-radius: 5px;
    max-width: 120px;
    height: auto;
    margin-right: 15px; 
    display: block;
}

.search-result-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    display: block;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    max-width: 100%;
    margin-bottom: 5px;
}

.search-result-category {
    font-size: 1.2rem;
    color: #7d7d7d;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.custom-price {
    font-weight: 600;
    font-size: 1.8rem;
    color: #f15758;
}

.custom-price.excl-tax {
    font-size: 1.6rem;
    font-weight: 400;
}   

.custom-category-item {
    font-size: 1.4rem;
    color: #333;
}

.custom-menu-item {
    font-size: 1.4rem;
    color: #333;
    font-weight: normal !important;
}

.custom-results-box {
    position: relative;
    width: 100%;
    height: auto;
    display: none;
    flex-direction: column;
}

.custom-results-box.active {
    display: flex;
}

.results-sections {
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: hidden;
}

.categories-blog-section {
    display: flex;
    flex-direction: column;
    width: 60%;
    overflow-y: auto;
    max-height: 65vh;
}

.results-section {
    width: 100%;
    overflow-y: auto;
}

.custom-search-results {
    overflow-y: auto;
    max-height: 60vh;
}

.show-all-button-start {
    display: none;
    justify-content: center;
    width: 100%;
    margin: 10px 0 10px !important;
    font-size: 1rem !important;
}

.show-all-button {
    position: absolute;
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0;
    top: 75vh;
    z-index: 103;
    background: #FFF;
}

.show-all-btn {
    border-radius: 25px;
    padding: 10px 20px;
    margin-top: 10px;
    background: #f05658;
    border-color: #f05658;
    cursor: pointer;
    color: #fff !important;
    margin-bottom: 20px;
    font-size: 1.4rem !important;
    font-weight: 500;
}

.show-all-btn:hover {
  background: #fff;
  border-color: #f05658;
  color: #f05658 !important;
  text-decoration: none;
}

.custom-input-search {
    position: absolute;
    top: 0;
    width: 400px;
    /* z-index: 101; */
    display: inline;
    background: transparent;
    box-shadow: none;
}

.custom-input-search.active {
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    z-index: 101;
    align-items: center;
    background: transparent;
    box-shadow: none;
}

.custom-search-input {
    width: 100% !important;
    padding: 5px 38px 5px 10px !important;
    border: 1px solid #b3b3b3 !important;
    border-radius: 15px !important;
    outline: none !important;
    background: #fff !important;
    transition: border 0.3s, width 0.3s cubic-bezier(.4,0,.2,1) !important;
}

.custom-search-input:focus {
    border: 1px solid #f05658 !important;
    box-shadow: none !important;
}

.search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    pointer-events: none;
}
.search-icon img {
    display: block;
    width: 20px;
    height: 20px;
}

.custom-input-search.active .search-icon {
    right: 20px;
    top: 50%;
}

.recent-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.recent-chip {
    display: inline-block;
    background: #f6f6f6;
    color: #f05658;
    border-radius: 16px;
    padding: 6px 16px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 6px;
}
.recent-chip:hover {
    background: #ffeaea;
}

@media (max-width: 992px) {
    .search-overlay-bg {
        max-height: 100% !important;
        min-height: 100% !important;
    }
    .custom-results-wrapper {
        width: 95%;
        top: 95px;
        max-height: 75vh;
        min-height: 75vh;
    }

    .custom-search.active {
        top: -88px;
        /* top: -88px !important; */
    }

    .custom-input-search {
        width: calc(400px - 80px);
        max-width: 400px;
    }

    .custom-input-search.active {
        top: 30px;
        right: 10px;
        max-width: 95%;
    }
    
    .custom-results-wrapper.active {
        overflow-y: auto;
        top: 115px !important
    }

    .search-result-title {
        font-size: 1.2rem;
        -webkit-line-clamp: 3;
    }

    .search-result-category {
        font-size: 1.1rem;
        -webkit-line-clamp: 2;
    }

    .search-result-image {
        width: 100px;
    }

    .search-result-image img {
        max-width: 100px;
    }

    .results-sections {
        flex-direction: column;
    }

    .custom-search-results {
        max-height: 100%;
        overflow-y: hidden;
    }

    .results-section, .categories-blog-section {
        max-height: 100%;
        overflow-y: hidden;
    }

    .results-section, .categories-blog-section {
        flex: 1;
        width: 100%;
        margin-right: 20px;
    }

    .results-section {
        order: 1;
    }

    .categories-blog-section {
        order: 2;
        margin-top: 20px;
    }

    .custom-categories:first-child {
        order: 3;
    }

    .custom-categories:last-child {
        order: 4;
    }

    .show-all-button {
        margin: 10px 0;
        order: 5;
    }

    .show-all-button-start {
        display: flex  !important;
        margin-top: 35px !important;
        z-index: 104;
    }

    .show-all-button {
        margin: 10px 0 10px;
        display: none !important;
    }

    .search-overlay-close {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .sticky-header-takoy .custom-search.active {
        top: -110px !important;
    }

    .custom-results-wrapper {
        padding: 10px 10px 20px;
    }

    .custom-search {
        /*display: flex;*/
        display: none;
        justify-content: center;
        width: 101%;
        padding: 1.5rem;
        margin: auto;
    }

    .custom-search .search-icon {
        display: none;
    }

    .custom-search .show-search .custom-search-input {
        border: 1px solid #f15758 !important;
    }

    .custom-search.show-search {
        display: flex;
        position: absolute;
        bottom: -38px;
        z-index: 999999;
        left: -10px;
        right: -10px;
        padding: 0;
    }

    .custom-search.show-search.active {
        bottom: 0;
        position: relative;
        left: 0;
        right: 0;
    }

    .no-scroll .custom-search.active {
        top: -72px;
        width: calc(100% - 40px);
        max-width: 100%;
        display: block;
    }

    .custom-input-search {
        width: 100%;
        max-width: 540px;
        top: 0;
        position: relative;
    }

    .custom-input-search.active {
        top: 5px !important;
        right: 5px;
        position: relative !important;
    }

    .custom-results-wrapper.active {
        overflow-y: auto;
        top: 115px !important
    }

    .custom-search-results {
        max-height: 100% !important;
        overflow-y: hidden;
        padding: 0;
    }

    .show-all-button-start {
        display: flex !important;
        margin-top: 5px !important;
    }

    .search-result-category {
        font-size: 1rem;
        -webkit-line-clamp: 2;
    }

    .search-result-image {
        width: 80px;
    }

    .search-result-image img {
        max-width: 80px;
    }

    .show-all-btn {
        font-size: 1.4rem !important;
    }
}

/* @media (max-width: 465px) {
    .no-scroll .custom-search.active {
        top: -120px !important;
    }
} */
