.wpsp-dropdown {
    position: absolute;
    width: 650px;
    background: #fff;
    border: 1px solid #e6e8ea;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 999999;
    display: none;
    direction: rtl;
    font-family: inherit;
}

.ls-wrapper {
    display: flex;
    height: 480px;
}

.ls-list {
    width: 60%;
    border-left: 1px solid #eee;
    overflow-y: auto;
}

.ls-details {
    width: 40%;
    background: #fdfbff;
    padding: 20px;
    text-align: center;
    overflow-y: auto;
}

.ls-head {
    background: #f8f9fa;
    padding: 6px 15px;
    font-size: 11px;
    font-weight: bold;
    color: #818a96;
}

.ls-cat-item,
.ls-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #515962;
    border-bottom: 1px solid #fafafa;
    cursor: pointer;
}

.ls-item {
    flex-wrap: wrap;
}

.ls-item:hover {
    background: #f3bafd22;
}

.ls-item img {
    width: 45px;
    height: 45px;
    border-radius: 4px;
    object-fit: cover;
    margin-left: 12px;
}

.ls-price {
    color: #d004d4;
    font-weight: bold;
    font-size: 13px;
}

.ls-info {
    flex: 1;
    min-width: 0;
}

.ls-sku {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.ls-loading {
    padding: 15px;
    text-align: center;
    color: #818a96;
    font-size: 13px;
}

/* Details Panel */
.ls-det-in img,
.ls-details img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
}

.ls-p {
    color: #d004d4;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.ls-detail-sku {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.ls-detail-actions {
    margin-top: 12px;
}

.ls-detail-actions .ls-btn {
    margin-bottom: 8px;
}

.ls-detail-qty {
    justify-content: center;
    margin-bottom: 8px;
}

/* Add to Cart */
.ls-cart-area {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 6px;
    flex-wrap: wrap;
}

.ls-add-to-cart {
    display: inline-block;
    background: #d004d4;
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.ls-add-to-cart:hover {
    opacity: 0.9;
}

.ls-add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ls-add-to-cart.ls-added {
    background: #46b450;
}

.ls-select-options {
    display: inline-block;
    background: #d004d4;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.ls-select-options:hover {
    opacity: 0.9;
    color: #fff;
}

/* Quantity Selector */
.ls-qty-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    width: fit-content;
}

.ls-qty-btn {
    width: 28px;
    height: 28px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    padding: 0;
}

.ls-qty-btn:hover {
    background: #e6e8ea;
}

.ls-qty-input {
    width: 36px;
    height: 28px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 12px;
    padding: 0;
    -moz-appearance: textfield;
}

.ls-qty-input::-webkit-inner-spin-button,
.ls-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* General */
.ls-btn {
    display: block;
    background: #d004d4;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
}

.ls-btn:hover {
    opacity: 0.9;
    color: #fff;
}

.ls-no-results {
    padding: 30px 15px;
    text-align: center;
    color: #818a96;
}

.ls-see-all {
    display: block;
    padding: 12px 15px;
    text-align: center;
    color: #d004d4;
    font-weight: bold;
    text-decoration: none;
    border-top: 1px solid #eee;
}

.ls-see-all:hover {
    background: #f8f9fa;
}

/* Shortcode Search Form */
.wpsp-search-form {
    position: relative;
    max-width: 600px;
    width: 100%;
}

.wpsp-search-form form {
    display: flex;
    align-items: center;
    border: 2px solid #e6e8ea;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.3s;
}

.wpsp-search-form form:focus-within {
    border-color: #d004d4;
}

.wpsp-search-input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 15px;
    outline: none;
    background: transparent;
}

.wpsp-search-submit {
    background: #d004d4;
    border: none;
    color: #fff;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.wpsp-search-submit:hover {
    background: #b003b0;
}

/* Mobile Overlay */
.wpsp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
}

.wpsp-overlay-active #live-search-box {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 80vh;
    border-radius: 16px 16px 0 0;
    z-index: 999999;
}

@media (max-width: 1024px) {
    .wpsp-dropdown {
        width: 550px;
    }
}

@media (max-width: 767px) {
    .wpsp-dropdown {
        width: 95vw !important;
        left: 2.5vw !important;
    }

    .ls-details {
        display: none;
    }

    .ls-list {
        width: 100% !important;
    }

    .ls-item {
        flex-wrap: wrap;
    }

    .ls-cart-area {
        flex-direction: row;
        flex-wrap: wrap;
    }
}