/**
 * Ajax Add to Cart — Lotfi Store Kit
 * اقتباس‌شده و بهینه‌شده از استایل پاپ‌آپ سبد خرید.
 */

.single_add_to_cart_button.lsk-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.85 !important;
}

/* Cart Popup */
.lsk-cart-popup {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100000;
}

.lsk-cart-popup.is-open {
    display: flex;
}

.lsk-cart-popup__content {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: lsk-popup-fade-in 0.3s ease;
}

.lsk-cart-popup__close {
    position: absolute;
    top: 16px;
    left: 16px;
    background: transparent !important;
    border: none;
    cursor: pointer;
    padding: 5px;
    font-size: 20px;
    line-height: 1;
    color: #3C3D45;
}

.lsk-cart-popup__title {
    font-size: 16px;
    margin: 0 0 15px;
    text-align: right;
    font-weight: 600;
    color: #3B813D;
}

.lsk-cart-popup.lsk-is-error .lsk-cart-popup__title {
    color: #e02b2b;
}

.lsk-cart-popup.lsk-is-error .lsk-cart-popup__button {
    display: none;
}

.lsk-cart-popup__divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 15px 0;
}

.lsk-cart-popup__product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lsk-cart-popup__img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.lsk-cart-popup__img[src=""] {
    display: none;
}

.lsk-cart-popup__details {
    flex: 1;
}

.lsk-cart-popup__msg {
    display: block;
    font-size: 14px;
    color: #444;
    margin-bottom: 8px;
}

.lsk-cart-popup__product-title {
    font-size: 14px;
    margin: 0 0 10px;
    color: #666;
    font-weight: 600;
}

.lsk-cart-popup__price {
    font-size: 14px;
    color: #333;
}

.lsk-cart-popup__price del {
    font-size: 13px;
    color: #888;
}

.lsk-cart-popup__price ins {
    text-decoration: none;
}

.lsk-cart-popup__button {
    display: block;
    text-align: center;
    background: #EF4055;
    padding: 10.5px 24px;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.2s;
    margin-top: 16px;
    text-decoration: none;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
}

@keyframes lsk-popup-fade-in {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 480px) {
    .lsk-cart-popup__content { width: 95%; padding: 15px; }
    .lsk-cart-popup__img { width: 60px; height: 60px; }
}
