/* Price List Search Styles */

.price-list-search-container {
    max-width: 1400px;
    margin: 0 auto 40px auto;
    padding: 0px 20px 20px 20px;
}

.price-list-search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.price-list-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    padding: 22px 20px;
    margin: -39px;
    transition: all 0.3s ease;
}

.price-list-search-input-wrapper:focus-within {
    border-color: #a38c5c;
    box-shadow: 0 4px 12px rgba(163, 140, 92, 0.15);
}

.price-list-search-icon {
    color: #a38c5c;
    flex-shrink: 0;
    margin-right: 12px;
}

.price-list-search-input {
    flex: 1;
    border: none !important;
    outline: none;
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    color: #2c2c2c;
    background: transparent;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

/* Override global input styles for search input */
input[type=search].price-list-search-input {
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    width: auto !important;
}

.price-list-search-input::placeholder {
    color: #999;
}

.price-list-search-clear {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

.price-list-search-clear:hover {
    color: #2c2c2c;
}

/* Search Results Dropdown */
.price-list-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.price-list-search-result-item {
    padding: 16px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

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

.price-list-search-result-item:hover,
.price-list-search-result-item.active {
    background-color: #f8f8f8;
}

.price-list-search-result-main {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.price-list-search-result-name {
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #2c2c2c;
    flex: 1;
    padding-right: 15px;
}

.price-list-search-result-name mark {
    background-color: #ffe8a3;
    color: #2c2c2c;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 3px;
}

.price-list-search-result-price {
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #a38c5c;
    white-space: nowrap;
}

.price-list-search-result-category {
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.85rem;
    color: #999;
    margin-top: 4px;
}

.price-list-search-result-category mark {
    background-color: #ffe8a3;
    color: #2c2c2c;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 3px;
}

.price-list-search-no-results {
    padding: 20px;
    text-align: center;
    color: #999;
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Highlight Animation - Persistent until new search */
.price-list-highlight {
    background-color: #ffe8a3 !important;
    animation: highlightPulse 1.5s ease-in-out;
}

@keyframes highlightPulse {
    0% {
        background-color: #ffe8a3;
        transform: scale(1);
    }
    50% {
        background-color: #ffd966;
        transform: scale(1.01);
    }
    100% {
        background-color: #ffe8a3;
        transform: scale(1);
    }
}

/* Scrollbar Styling for Results */
.price-list-search-results::-webkit-scrollbar {
    width: 8px;
}

.price-list-search-results::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 0 12px 12px 0;
}

.price-list-search-results::-webkit-scrollbar-thumb {
    background: #a38c5c;
    border-radius: 4px;
}

.price-list-search-results::-webkit-scrollbar-thumb:hover {
    background: #8a7449;
}

/* Responsive Design */
@media (max-width: 768px) {
    .price-list-search-container {
        margin-bottom: 30px;
    }

    .price-list-search-wrapper {
        max-width: 100%;
    }

    .price-list-search-input-wrapper {
        padding: 10px 16px;
    }

    .price-list-search-input {
        font-size: 0.95rem;
    }

    .price-list-search-result-item {
        padding: 14px 16px;
    }

    .price-list-search-result-name {
        font-size: 0.95rem;
    }

    .price-list-search-result-price {
        font-size: 0.95rem;
    }

    .price-list-search-result-category {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .price-list-search-input-wrapper {
        padding: 8px 14px;
    }

    .price-list-search-icon {
        width: 18px;
        height: 18px;
        margin-right: 10px;
    }

    .price-list-search-input {
        font-size: 0.9rem;
    }

    .price-list-search-result-item {
        padding: 12px 14px;
    }

    .price-list-search-result-name {
        font-size: 0.9rem;
    }

    .price-list-search-result-price {
        font-size: 0.9rem;
    }
}
