/* CSL Search Styles */
.csl-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    /* Optional cap */
    font-family: inherit;
}

.csl-search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

/* Rounded Input */
.csl-search-input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    /* Padding-right for icon space */
    border: 1px solid #ddd;
    border-radius: 50px;
    /* Fully rounded corners */
    font-size: 16px;
    outline: none;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.csl-search-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

/* Icon on the Right */
.csl-search-icon {
    position: absolute;
    right: 20px;
    color: #999;
    font-size: 18px;
    pointer-events: none;
}

/* Results Dropdown */
.csl-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 9999;
    overflow: hidden;
}

.csl-search-results.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.csl-search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f1;
    text-decoration: none;
    transition: background 0.1s;
    gap: 15px;
}

.csl-search-result-item:last-child {
    border-bottom: none;
}

.csl-search-result-item:hover {
    background: #f9f9f9;
}

.csl-search-thumb {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.csl-search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.csl-search-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.csl-search-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.3;
}

.csl-search-category {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.csl-search-price {
    font-size: 14px;
    font-weight: 600;
    margin-left: auto;
    /* Push to right */
    white-space: nowrap;
}

.csl-no-results {
    padding: 15px;
    text-align: center;
    color: #999;
    font-size: 14px;
}