/* --- START: Live Search Professional Full-Width Styling (No Button) --- */

.global-search-container {
    padding-top: 0px;
    padding-bottom: 0px;
}




/* Individual Result Item (Link) */
.result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px; 
    text-decoration: none;
    color: var(--heading-color);
    border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 95%); 
    transition: background-color 0.2s;
}

.result-item:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.result-item:last-child {
    border-bottom: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.result-item:hover {
    background-color: color-mix(in srgb, var(--accent-color), transparent 95%); 
    color: var(--heading-color);
}

/* Image Styling */
.result-image {
    width: 50px; 
    height: 50px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    flex-shrink: 0; 
}

/* Title Styling */
.result-title {
    font-weight: 600;
    font-size: 12px;
    color: #223a58;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* No Results Message */
.no-results {
    padding: 15px;
    text-align: center;
    color: #223a58;
    font-style: italic;
    font-size: 15px;
}
/* --- Additional CSS for Internal Search Icon --- */



/* 2. Style the internal icon */
.search-icon-internal {
    position: absolute;
    right: 15px;
    font-size: 16px;
    color: #223a58;
    z-index: 2;
    pointer-events: none;
    transition: color 0.3s;
}


@media(max-width:1199px){
    header#header {
        margin-bottom: 65px;
    }
    .container.global-search-container{
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        margin: auto;
        max-width: 100%;
    }
}
/* --- END: Live Search Professional Full-Width Styling (No Button) --- */


/* --- START: Live Search Professional Full-Width Styling (Amazon Style with Arrow) --- */

.global-search-container {
    padding-top: 0px;
    padding-bottom: 0px;
}

/* 1. Ensure the wrapper uses flexbox for alignment */
.search-form-wrapper {
    position: relative;
    display: flex; 
    align-items: center; 
    width: 100%; 
    max-width: 100%;
    box-sizing: border-box;
    
    border: none;
    border-radius: 10px; 
    box-shadow: none; 
    transition: all 0.3s;
    background-color: transparent; 
}

/* --- NEW: Wrapper for Select and Icon --- */
.select-wrapper {
    position: relative; /* For absolute positioning of the arrow */
    height: 40px; /* Match the height of the input/select */
    flex-shrink: 0;
    width: 50px; /* Keep the width control here */
}

/* 2. NEW: Style for the Arrow Icon */
.select-arrow {
    position: absolute;
    top: 50%;
    right: 8px; /* Position inside the select box */
    transform: translateY(-50%);
    font-size: 10px; /* Small icon size */
    color: #555555;
    pointer-events: none; /* Allows clicks to pass through to the select */
    z-index: 5;
}

/* --- Style for the Select Element (The Category Dropdown) --- */
.static-select {
    /* Match the wrapper's dimensions */
    width: 100%; 
    height: 100%; 
    
    background-color: #f3f3f3; 
    
    /* --- Styles for text/padding/font --- */
    /* INCREASED RIGHT PADDING to prevent text overlap with the arrow icon */
    padding: 10px 25px 10px 10px; 
    font-size: 13px;
    font-family: var(--default-font);
    color: #555555; 

    /* --- Border & Radius Management for Integrated Look --- */
    border: 1px solid #cccccc; 
    
    /* Apply rounded corners only on the LEFT side */
    border-top-left-radius: 8px; 
    border-bottom-left-radius: 8px;
    
    /* Remove border on the right to align flush with the input */
    border-right: none; 
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
    
    /* CRUCIAL: Remove default browser arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}



/* Search Input Field (The main search area) */
#live-search-input {
    width: 100%;
    flex-grow: 1; 
    height: 40px; /* Match the height of the select box */
    
    padding: 10px 10px; 
    font-size: 13px;
    font-family: var(--default-font);
    color: #223a58;
    background-color: var(--surface-color); 
    
    border: 1px solid #cccccc; 
    
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    
    border-top-right-radius: 8px; 
    border-bottom-right-radius: 8px;
    
    box-sizing: border-box;
    outline: none; 
    
    box-shadow: inset 0 1px 2px rgba(0,0,0,.08);
}




/* Results Dropdown Container */
.results-dropdown {
    position: absolute;
    top: 100%; 
    left: 0; 
    right: 0;

    border-radius: 10px; 
    background-color: var(--surface-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); 
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

/* ... (Remaining styles for results-dropdown items are unchanged) ... */


/* --- Additional CSS for Internal Search Icon --- */


/* 3. Adjust Input Padding */
#live-search-input {
    padding-right: 45px !important; 
    flex-grow: 1;
}


/* --- END: Live Search Professional Full-Width Styling (Amazon Style with Arrow) --- */



