/* AJAX Search Styles */
.ajax-search-container {
    position: relative;
}

.ajax-search-input {
    border: 3px solid #ed174f !important;
    border-radius: 8px !important;
}

.ajax-search-input:focus {
    outline: none;
    box-shadow: 0 2px 8px rgba(237, 23, 79, 0.3) !important;
    border-color: #ed174f !important;
}

.ajax-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #dfe1e5;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    margin-top: 8px;
    width: 100%;
    max-width: 100%;
}

.ajax-search-results.active {
    display: block;
}

.search-loading,
.search-error,
.search-no-results {
    padding: 20px;
    text-align: center;
    color: #5f6368;
    font-size: 14px;
}

.search-section {
    padding: 4px 0;
}

.search-section-title {
    font-size: 10px;
    font-weight: 500;
    color: #5f6368;
    padding: 6px 12px 2px;
    text-transform: none;
}

.search-item {
    display: block;
    padding: 6px 12px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background 0.1s;
}

.search-item:hover {
    background: #f8f9fa;
}

.search-item-title {
    font-size: 13px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 2px;
}

.search-coupon-count {
    font-size: 11px;
    color: #666;
    font-weight: 400;
    margin-right: 6px;
}

.search-item-title .highlight {
    font-weight: 700;
}

.search-item-meta {
    font-size: 11px;
    color: #1a73e8;
}

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

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

/* Mobile responsive */
@media (max-width: 960px) {
    .ajax-search-results {
        max-height: 300px;
    }
}
