:root {
    --brand-color: #116112;
    --brand-color-light: #f0f8f0;
    --brand-color-alt: #fdc040;
    --text-heading: #253d4e;
    --text-body: #7e7e7e;
    --border-color: #ececec;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    max-height: 480px;
    overflow-y: auto;
    margin-top: -1px;
    /* Align with search bar */
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-section-title {
    padding: 12px 20px;
    background: #f7f8f9;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brand-color);
    border-bottom: 1px solid var(--border-color);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f2f2f2;
    text-decoration: none;
    color: var(--text-heading);
    transition: all 0.2s ease-in-out;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--brand-color-light);
    padding-left: 25px;
    /* Subtle slide effect */
}

.search-result-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.search-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.search-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 2px;
}

.search-price {
    font-size: 13px;
    color: var(--brand-color);
    font-weight: 600;
}

.category-item i {
    color: var(--brand-color);
    font-size: 18px;
    width: 30px;
    text-align: center;
}

/* Mobile Search Overlay */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 61, 78, 0.98);
    /* Deep brand color */
    z-index: 10000;
    display: none;
    padding: 30px 20px;
    backdrop-filter: blur(8px);
}

.mobile-search-content {
    max-width: 600px;
    margin: 50px auto;
    position: relative;
    /* Fixed: Provide context for absolute results */
    width: 100%;
}

.mobile-search-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

#mobile-search-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 28px;
    padding: 10px 0;
    font-weight: 300;
    transition: border-color 0.3s;
}

#mobile-search-input:focus {
    outline: none;
    border-color: #fff;
}

.close-mobile-search {
    position: absolute;
    top: 40px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s;
}

.close-mobile-search:hover {
    transform: rotate(90deg);
}

#mobile-search-results {
    background: #fff;
    border-radius: 12px;
    max-height: 65vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    width: 100%;
    /* Fixed: Ensure full width */
    left: 0;
    top: 100%;
    /* Fixed: Position right below input */
}

/* Custom Scrollbar for dropdown */
.search-results-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-results-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.search-results-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--brand-color);
}