/* ساختار کلی کانتینر دکمه‌ها در صفحه محصول */
.scr-product-buttons-wrapper {
    margin-top: 15px;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    clear: both;
}

/* ساختار پایه دکمه‌های پرو */
.scr-pro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    line-height: 1;
}

/* استایل‌های مربوط به آیکون داخل دکمه */
.scr-pro-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scr-pro-btn:hover .dashicons {
    transform: scale(1.15);
}
.scr-btn-loading {
    opacity: 0.8 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}
.scr-btn-success {
    background-color: #2ecc71 !important;
    border-color: #2ecc71 !important;
    color: #ffffff !important;
    cursor: default !important;
    pointer-events: none;
}

.scr-btn-success .dashicons,
.scr-btn-success svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* انیمیشن چرخش آیکون لودینگ */
@keyframes spin {
    100% { transform: rotate(-360deg); }
}

/* کلاس مخصوص دکمه‌ها در صفحات آرشیو (فروشگاه) */
.scr-archive-btn-wrapper {
    margin-top: 10px;
    width: 100%;
    display: block;
}

.scr-archive-loop-btn {
    text-align: center;
}

/* پیام راهنما یا خطا در پایین دکمه‌ها */
#scr-product-page-message {
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    width: 100%;
}

/* ========================================================
   پاپ‌آپ (Modal) محصولات متغیر در صفحه فروشگاه (آرشیو)
======================================================== */
#scr-variable-modal.scr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

#scr-variable-modal .scr-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: scr-fade-up 0.3s ease forwards;
}

#scr-variable-modal .scr-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    line-height: 1;
    padding: 0;
}

html[dir="rtl"] #scr-variable-modal .scr-modal-close {
    right: auto;
    left: 15px;
}

#scr-variable-modal .scr-modal-close:hover {
    color: #e74c3c;
}

@keyframes scr-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}