.recipe-search-wrap {
    position: relative;
    max-width: 700px;
    width: 100%;
}

/* Wrapper to hold input and cross icon together */
.input-container-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.recipe-search-input {
    width: 100%;
    height: 55px;
    padding: 0 40px 0 20px; /* Right padding badhayi taaki text cross ke peeche na chhupey */
    font-size: 16px;
    border: none;
    outline: none;
}

form.search-form-wrap .recipe-search-input {
    background: #f9f8f7;
    padding: 10px 40px 10px 15px;
    height: 45px;
}

/* Cross (Clear) Icon Styling */
.recipe-search-clear {
    position: absolute;
    right: 12px;
    font-size: 28px;
    color: #000;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
    z-index: 10;
    font-weight: 600;
}

.recipe-search-clear:hover {
    color: #333;
}

form.search-form-wrap {
    height: 47px;
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: visible; /* Clear button proper layer ke liye visible kiya */
}

.recipe-search-btn {
    color: #000 !important;
    background: #f9ab10;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
}

.recipe-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 9999;
    display: none;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    scrollbar-width: thin;
    scrollbar-color: #f9ab10 #f1f1f1;
}

/* Chrome, Edge, Safari Scrollbar */
.recipe-search-results::-webkit-scrollbar {
    width: 8px;
}
.recipe-search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.recipe-search-results::-webkit-scrollbar-thumb {
    background: #ff6600;
    border-radius: 10px;
}
.recipe-search-results::-webkit-scrollbar-thumb:hover {
    background: #e65c00;
}

.ajax-product-title {
    padding: 12px 15px;
    font-size: 13px;
    font-weight: 700;
    background: #f6f6f6;
    color: #777;
}

.ajax-category-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}
.ajax-category-item a {
    text-decoration: none;
    color: #222;
    display: block;
}

.ajax-product-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}
.ajax-product-image img {
    height: 60px !important;
    object-fit: contain;
    width: 60px;
}

.ajax-product-content {
    flex: 1;
}
.ajax-product-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}
.ajax-product-name a {
    text-decoration: none;
    color: #222;
}
.ajax-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #003366;
}

.ajax-view-btn {
    display: inline-block;
    background: #efefef;
    padding: 8px 18px;
    border-radius: 25px;
    text-decoration: none;
    color: #222;
    font-weight: 600;
}

.ajax-view-all {
    padding: 15px;
    background: #fafafa;
}
.ajax-view-all a {
    text-decoration: none;
    font-weight: 600;
}

.loading {
    padding: 20px;
}

/* Keyboard Hover/Selection Indicator Styles */
.ajax-category-item a.selected-item,
.ajax-view-all a.selected-item {
    background-color: #f1f1f1 !important;
    outline: none;
}
.ajax-product-item.selected-item {
    background-color: #f6a910 !important;
    border-left: 4px solid #f9ab10;
    outline: none;
}