 

.search-container {
    display: flex;
    align-items: flex-start; /* Align items to top */
    max-width: 700px;
    width: 100%;
    margin: 20px;
    position: relative;
}

.search-container form {
    width: 100%;
}

.search-bar {
    display: flex;
    width: 100%;
    background: white;
    border-radius: 50px;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); */
    align-items: center;
    height: 60px;
    position: relative;
    z-index: 1;
    border: 1px solid var(--color1);
}
.search-input {
    flex: 1;
    padding: 0 20px;
    border: none !important;
    font-size: 1rem;
    color: var(--graphite);
    outline: none;
    direction: rtl;
    min-width: 0;
    height: 100%;
    border-radius:0 50px 50px 0 !important;
}
.search-input::placeholder {
    color: #999;
    text-align: right;
}

.search-content input {
    width: 20em;
}

.search-button {
    background: var(--color1);
    color: white;
    border: none;
    border-radius: 30px;
    width: 80px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    position: absolute;
    top: 5px; /* Position on top of the bar */
    left: 5px; /* Position at the end (left side in RTL) */
    z-index: 2;
}
.search-button:hover {
    background: var(--tropical-teal);
    color: var(--cream);
    transform: scale(1.05);
}
.search-button i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .search-container {
        margin: 15px;
    }
    
    .search-bar {
        height: 55px;
    }
    
    .category-dropdown {
        min-width: 140px;
    }
    
    .category-select, .search-input {
        padding: 0 15px;
        font-size: 0.9rem;
    }
    
    .search-button {
        width: 70px;
        height: 70px;
        top: -8px;
        left: 8px;
    }
    
    .search-button i {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .category-dropdown {
        min-width: 120px;
    }
    
    .category-select, .search-input {
        padding: 0 12px;
        font-size: 0.85rem;
    }
    
    .search-button {
        width: 65px;
        height: 65px;
        top: -7px;
        left: 7px;
    }
}

/* AJAX DropDown */

.search-content {
    position: relative;
}
    
.search-content .search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
}

.search-result-item:hover {
    background: #f9f9f9;
}

.search-result-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 15px;
}

.search-result-info {
    flex: 1;
}

.search-result-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.search-result-price {
    color: #77a464;
    font-weight: bold;
}

.search-result-price del {
    color: #999;
    margin-right: 5px;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #999;
}

.search-loading {
    padding: 20px;
    text-align: center;
    color: #999;
}

/* Categories Filter */

.search-category-filter{
    border-left: 2px solid var(--color1);
    padding: 0 .5em 0 1em;
}

.search-bar .search-category-filter select {
    padding: 0 1em 0 1.2em;
    border: none;
    cursor: pointer;
    background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22currentColor%22%20class%3D%22bi%20bi-caret-down-fill%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cpath%20d%3D%22M7.247%2011.14%202.451%205.658C1.885%205.013%202.345%204%203.204%204h9.592a1%201%200%200%201%20.753%201.659l-4.796%205.48a1%201%200%200%201-1.506%200z%22%2F%3E%3C%2Fsvg%3E');
    background-position: 2% 50%;
}    


/* Header background */

.site-branding.ast-site-identity {
    z-index: 2;
}

header.ast-logo-title-inline .site-logo-img {
    padding-right: 0;
}

.ast-builder-layout-element.ast-flex.site-header-focus-item.ast-header-html-1:before {
    content: "";
    display: block;
    position: absolute;
    width: 80px;
    height: 50%;
    right: calc(50% - 30px);
    bottom: 0;
    background: var(--color1);
}

.ast-builder-layout-element.ast-flex.site-header-focus-item.ast-header-html-1:after {
    content: "";
    display: block;
    position: absolute;
    width: calc(100% - 115px);
    height: 100%;
    right: calc(50% + 50px);
    top: 0;
    border-radius: 0 35px 0 0;
    background: var(--color1);
}

.ast-header-html.inner-link-style-:before {
    content: "";
    display: block;
    position: absolute;
    width: 80px;
    height: 50%;
    background: var(--ast-global-color-6);
    bottom: 0;
    border-radius: 0 0 0 35px;
    right: calc(50% - 30px);
}

.ast-header-html-1{
    margin-right: 1em;
}

@media (min-width: 1024px) {
    .ast-builder-layout-element.ast-flex.site-header-focus-item.ast-header-html-1:before {
        right: 35px;
    }

    .ast-builder-layout-element.ast-flex.site-header-focus-item.ast-header-html-1:after {
        right: 115px;
    }

    .ast-header-html.inner-link-style-:before {
        right: 35px;
    }
}