/* ============================= */
/* PLUGIN WRAPPER */
/* ============================= */
.wcls-plugin {
    width: 100%;
}

/* ============================= */
/* SEARCH WRAPPER */
/* ============================= */
.wcls-plugin .wc-search-wrapper {
    max-width: 600px;
    width: 100%;
    margin: 10px 0;
    position: relative;
}

/* ============================= */
/* SEARCH FIELD */
/* ============================= */
.wcls-plugin .wc-search-field {
    display: flex;
    align-items: center;
    height: 38px; /* ✅ FINAL HEIGHT */

    background: #222222;

    border-radius: 6px !important;
    overflow: hidden !important;
}

/* ============================= */
/* INPUT */
/* ============================= */
.wcls-plugin .wc-search-input {
    flex: 1;
    height: 100%;
    padding: 0 10px;

    border: none !important;
    background: transparent !important;

    font-size: 13px;
    outline: none;
    color: #ffffff;
}

.wcls-plugin .wc-search-input::placeholder {
    color: #b8b8b8;
}

/* ============================= */
/* CLEAR BUTTON */
/* ============================= */
.wcls-plugin .wc-search-clear {
    width: 30px;
    height: 100%;

    display: none;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.wcls-plugin .wc-search-clear.show {
    display: flex !important;
}

.wcls-plugin .wc-search-clear i {
    color: #000;
    font-size: 13px;
}

/* ============================= */
/* SEARCH BUTTON */
/* ============================= */
.wcls-plugin .wc-search-icon {
    width: 42px;
    height: 100%;

    background: linear-gradient(135deg, #2f0249, #1A0129);
    color: #fff;

    border: none !important;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

/* ============================= */
/* DROPDOWN */
/* ============================= */
.wcls-plugin .wc-search-results {
    display: none;

    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;

    max-height: 320px;
    overflow-y: auto;

    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);

    z-index: 99999;
}

/* ============================= */
/* ITEM */
/* ============================= */
.wcls-plugin .wc-search-item {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 12px;

    text-decoration: none;
    color: #000;

    border-bottom: 1px solid #f2f2f2;
    transition: background 0.2s ease;
}

.wcls-plugin .wc-search-item:last-child {
    border-bottom: none;
}

.wcls-plugin .wc-search-item:hover {
    background: #f7f7f7;
}

/* ============================= */
/* IMAGE */
/* ============================= */
.wcls-plugin .wc-search-item img {
    width: 44px;
    height: 44px;
    object-fit: cover;

    border-radius: 6px;
    flex-shrink: 0;
}

/* ============================= */
/* INFO */
/* ============================= */
.wcls-plugin .wc-search-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wcls-plugin .wc-search-info .title {
    font-size: 13px;
    font-weight: 500;
    color: #222;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wcls-plugin .wc-search-info .price {
    font-size: 12px;
    color: #777;
}

/* ============================= */
/* STATES */
/* ============================= */
.wcls-plugin .loading,
.wcls-plugin .no-results,
.wcls-plugin .error {
    padding: 12px;
    font-size: 13px;
    text-align: center;
    color: #666;
}

/* ============================= */
/* SCROLLBAR */
/* ============================= */
.wcls-plugin .wc-search-results::-webkit-scrollbar {
    width: 5px;
}

.wcls-plugin .wc-search-results::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* ============================= */
/* MOBILE */
/* ============================= */
@media (max-width: 768px) {

    .wcls-plugin .wc-search-field {
        height: 38px; /* ✅ keep SAME height */
    }

    .wcls-plugin .wc-search-input {
        font-size: 14px;
    }

    .wcls-plugin .wc-search-icon {
        width: 44px;
    }

    .wcls-plugin .wc-search-results {
        max-height: 260px;
        border-radius: 6px;
    }
}