/* Haroop Search Container */
.haroop-search-container {
    width: 100%;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
}

.haroop-search-container * {
    box-sizing: border-box;
}

/* Search Bar Styling */
.hs-search-bar-wrapper {
    position: relative;
    margin-bottom: 10px;
}

.hs-search-input-box {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.hs-search-input {
    width: 100%;
    height: 50px;
    border: 2px solid #000 !important;
    border-radius: 50px !important;
    padding: 0 50px 0 20px !important;
    font-size: 14px !important;
    color: #000 !important;
    background-color: #fff !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

.hs-search-input:focus {
    border-color: #333 !important;
}

/* Icons (SVG Handling) */
.hs-search-icon {
    position: absolute;
    right: 20px;
    color: #000;
    width: 18px;
    height: 18px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hs-search-icon svg {
    width: 100%;
    height: 100%;
}

.hs-clear-btn {
    position: absolute;
    right: 50px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    padding: 0; /* Reset padding */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}
.hs-clear-btn svg {
    width: 12px;
    height: 12px;
}

/* Loading Spinner Animation */
.hs-loading-spinner {
    position: absolute;
    right: 50px;
    color: #000;
    width: 20px;
    height: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: hs-spin 1s linear infinite;
}
.hs-loading-spinner svg {
    width: 100%;
    height: 100%;
}

@keyframes hs-spin {
    100% { transform: rotate(360deg); }
}


/* Recommended Keywords */
.hs-recommended-keywords {
    margin-top: 10px;
    padding: 0 10px;
}

.hs-rec-label {
    font-size: 12px;
    color: #666;
    margin-right: 8px;
    font-weight: bold;
}

.hs-rec-tag {
    display: inline-block;
    background: #f1f1f1;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: #333;
    margin-right: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.hs-rec-tag:hover {
    background: #e0e0e0;
}

/* Results Container (Overlay Style) */
.hs-results-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 99999;
    margin-top: 8px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    max-height: 450px;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 0; /* Removed padding for cleaner full-width list items */
}

/* Scrollbar Styling */
.hs-results-container::-webkit-scrollbar {
    width: 6px;
}
.hs-results-container::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 0 12px 12px 0;
}
.hs-results-container::-webkit-scrollbar-thumb {
    background: #d1d1d1; 
    border-radius: 3px;
}

/* --- Themes --- */

/* Mimodream Style (Prodecure Guide Style) - Refined High Quality */
.hs-result-item.theme-mimodream {
    display: block;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    padding: 10px 12px; /* Reduced padding for compact look */
}

.hs-result-item.theme-mimodream:last-child {
    border-bottom: none;
}

.hs-result-item.theme-mimodream:hover {
    background-color: #f9f9f9;
}

.hs-result-item.theme-mimodream .post-item {
    text-align: left;
}

.hs-result-item.theme-mimodream .post-title {
    color: #000; /* Pure black for max contrast */
    font-size: 16px; /* Increased from 15px */
    font-weight: 900; /* Extra Bold */
    margin: 0 0 3px 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hs-result-item.theme-mimodream .summary {
    font-size: 12px; /* Increased from 11px */
    color: #666;
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Show up to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hs-result-item.theme-mimodream .price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.hs-result-item.theme-mimodream .price {
    font-size: 16px; /* Increased from 15px */
    color: darkred;
    font-weight: 900; /* Extra Bold */
}

.hs-result-item.theme-mimodream .sale-price {
    font-size: 12px; /* Increased from 11px */
    color: #bbb;
    text-decoration: line-through;
}

/* Default Style */
.hs-result-item.theme-default {
    display: block;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    transition: background 0.2s;
}
.hs-result-item.theme-default:hover {
    background: #fafafa;
}
.hs-result-item.theme-default:last-child {
    border-bottom: none;
}
.hs-result-item.theme-default .hs-cat {
    font-size: 10px;
    color: #0073aa;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2px;
    display: block;
    letter-spacing: 0.5px;
}
.hs-result-item.theme-default .hs-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}
.hs-result-item.theme-default .hs-excerpt {
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}

/* No Results */
.hs-no-results {
    padding: 20px;
    text-align: center;
    color: #777;
    font-size: 13px;
}
.hs-did-you-mean {
    margin-top: 8px;
    font-size: 12px;
    color: #555;
}
.hs-suggestion-link {
    color: #0073aa;
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
    margin-left: 4px;
}
