/* Custom Woo Product Search */
*{
    font-family: "Poppins", Sans-serif;
}
.cwps-wrap {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    z-index: 9999;
}

.cwps-form {
    width: 100%;
    height: 45px;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    padding: 0 0px 0 16px;
    box-shadow: 0 3px 14px rgba(0,0,0,.08);
    box-sizing: border-box;
}

.cwps-input-wrap {
    position: relative;
    min-width: 0;
    flex: 1 1 auto;
    height: 100%;
    display: flex;
    align-items: center;
}

.cwps-icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    margin-right: 10px;
}

.cwps-input {
    width: 100%;
    height: 100%;
    min-width: 0;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 36px 0 0;
    margin: 0 !important;
    font-size: 16px;
    line-height: 1;
    color: #222;
}

.cwps-input::placeholder {
    color: #9a9a9a;
    opacity: 1;
    font-size: 13px;
}

.cwps-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: #f1f1f1;
    color: #555;
    font-size: 18px;
    line-height: 24px;
    cursor: pointer;
    padding: 0;
}

.cwps-submit {
    flex: 0 0 auto;
    height: 44px;
    min-width: 50px;
    padding: 3px 15px;
    border: 0 !important;
    border-radius: 10px;
    background: #000 !important;
    color: #fff !important;
    font-size: 16px;
    line-height: 46px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.cwps-submit:hover {
    background: #1d1d1d !important;
}

.cwps-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0,0,0,.13);
    overflow: hidden;
    box-sizing: border-box;
}

.cwps-results {
    max-height: 430px;
    overflow-y: auto;
}

.cwps-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 78px;
    padding: 10px 14px;
    text-decoration: none !important;
    color: inherit !important;
    border-bottom: 1px solid #f0f0f0;
    box-sizing: border-box;
    transition: background .15s ease;
}

.cwps-item:hover {
    background: #f8f8f8;
}

.cwps-item-image {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border-radius: 8px;
    overflow: hidden;
}

.cwps-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cwps-item-content {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cwps-item-title {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    color: #202020;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cwps-item-meta {
    font-size: 12px;
    color: #888;
}

.cwps-item-price {
    font-size: 13px;
    font-weight: 600;
    color: #1f8f3a;
}

.cwps-item-price del {
    color: #999;
    font-weight: 400;
    margin-right: 4px;
}

.cwps-arrow {
    flex: 0 0 auto;
    color: #999;
    font-size: 18px;
}

.cwps-loading,
.cwps-no-results {
    display: none;
    padding: 18px;
    text-align: center;
    font-size: 14px;
    color: #777;
}

.cwps-wrap.is-loading .cwps-loading {
    display: block;
}

.cwps-wrap.is-empty .cwps-no-results {
    display: block;
}

@media (max-width: 600px) {
    .cwps-form {
        height: 50px;
        padding-left: 13px;
    }

    .cwps-submit {
        min-width: 92px;
        height: 42px;
        padding: 0 18px;
        font-size: 14px;
        line-height: 42px;
    }

    .cwps-input {
        font-size: 14px;
    }

    .cwps-dropdown {
        top: calc(100% + 6px);
    }
}
