/* ==================== SEARCH WRAPPER ==================== */

.search-wrapper {
    position: relative;
    width: 100%;
}

/* ==================== SEARCH OVERLAY ==================== */

.search-overlay {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.search-overlay-content {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
}

/* ==================== SEARCH RESULT ITEM ==================== */

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #F9FAFB;
}

/* Image */
.search-result-image {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

/* Content */
.search-result-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

/* Row with service name, dot, and price */
.search-result-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.search-result-service-name {
    font-size: 0.75rem;
    font-weight: 400;
    color: #0F0F0F;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'PlusJakartaSans', sans-serif;
}

/* Dot separator */
.search-result-dot {
    width: 2px;
    height: 2px;
    background-color: #9CA3AF;
    border-radius: 50%;
    flex-shrink: 0;
}

.search-result-price {
    font-size: 0.625rem;
    font-weight: 400;
    color: #6B7280;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'PlusJakartaSans', sans-serif;
}

/* Variant name */
.search-result-variant {
    font-size: 0.625rem;
    font-weight: 400;
    color: #6B7280;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'PlusJakartaSans', sans-serif;
}

/* ==================== RESPONSIVE STYLES ==================== */

/* Tablet */
@media (max-width: 991px) {
    .search-overlay {
        max-height: 350px;
    }

    .search-result-item {
        gap: 0.625rem;
        padding: 0.625rem;
    }

    .search-result-image {
        width: 2.25rem;
        height: 2.25rem;
    }

    .search-result-service-name {
        font-size: 0.6875rem;
    }

    .search-result-price,
    .search-result-variant {
        font-size: 0.5625rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .search-overlay {
        max-height: 300px;
        border-radius: 0.375rem;
    }

    .search-overlay-content {
        padding: 0.375rem;
    }

    .search-result-item {
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .search-result-image {
        width: 2rem;
        height: 2rem;
        border-radius: 0.375rem;
    }

    .search-result-content {
        gap: 0.1875rem;
    }

    .search-result-service-name {
        font-size: 0.625rem;
    }

    .search-result-price,
    .search-result-variant {
        font-size: 0.5rem;
    }

    .search-result-dot {
        width: 1.5px;
        height: 1.5px;
    }
}

/* Mobile Small */
@media (max-width: 479px) {
    .search-overlay {
        max-height: 250px;
    }

    .search-result-item {
        padding: 0.375rem;
    }

    .search-result-image {
        width: 1.75rem;
        height: 1.75rem;
    }
}

/* Scrollbar styling for overlay */
.search-overlay::-webkit-scrollbar {
    width: 6px;
}

.search-overlay::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 0.25rem;
}

.search-overlay::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 0.25rem;
}

.search-overlay::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}
