/* =======================================================
   1. استایل‌های انتخابگر تعداد و دکمه افزودن به سبد خرید
   ======================================================= */

.rps-product-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 15px;
}

.cart-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f5f7;
    border-radius: 7px;
    padding: 6px;
    width: 100%;
    box-sizing: border-box;
}

.cart-counter button {
    background: #1e40af; /* آبی پررنگ */
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    margin: 0;
}

.cart-counter button:hover {
    background: #1e3a8a;
}

.cart-counter .quantity,
.cart-counter .quantity-input {
    margin: 0 15px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    min-width: 40px;
    color: #333;
}

.cart-counter .quantity-input {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
    width: 60px;
}

.add-to-cart {
    background: #1e40af; /* آبی پررنگ */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 7px;
    cursor: pointer;
    width: 100%;
    font-size: 15px;
    font-weight: bold;
    transition: background 0.2s ease;
    margin: 0;
}

.add-to-cart:hover {
    background: #1e3a8a;
}

/* =======================================================
   2. استایل‌های پاپ‌آپ (مودال) موفقیت
   ======================================================= */

#rps-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* پس‌زمینه تاریک‌تر برای جلوه بهتر */
    display: none; /* این خط حیاتی است تا با JS باز شود */
    z-index: 99999;
    overflow: auto;
}

#rps-success-modal .rps-modal-content {
    background: #fff;
    margin: 15% auto;
    padding: 25px 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

#rps-success-modal h3 {
    margin-top: 0;
    color: #15803d; /* رنگ سبز برای پیام موفقیت */
}

/* دکمه‌های داخل مودال */
.rps-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.rps-modal-actions .button {
    padding: 10px 15px;
    border-radius: 7px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s ease;
}

.rps-modal-actions .payment-button {
    background: #1e40af; /* هماهنگ با دکمه‌های اصلی */
    color: #fff;
}

.rps-modal-actions .payment-button:hover {
    background: #1e3a8a;
}

.rps-modal-actions .continue-shopping-button {
    background: #f3f4f6;
    color: #374151;
}

.rps-modal-actions .continue-shopping-button:hover {
    background: #e5e7eb;
}
