/* 
   SPS - Luxury Corporate Theme (Bartarin Sho Edition)
   Primary Color: #e61e25 (Logo Red)
   Secondary Color: #2d2d2d (Logo Dark Grey)
*/

:root {
    --sps-red: #e61e25;
    --sps-red-hover: #c41219;
    --sps-dark: #1a1a1b;
    --sps-dark-light: #2d2d2d;
    --sps-bg: #f1f1f1;
    --sps-white: #ffffff;
    --sps-border: #e0e0e0;
    --sps-shadow: 0 10px 30px rgba(0,0,0,0.1);
    --sps-radius: 12px;
}

/* پایه و فونت */
.wrap, .sps-form-container, .sps-full-dashboard {
    direction: rtl;
    font-family: 'Tahoma', 'Arial', sans-serif !important;
}

/* هدر اختصاصی در تمام صفحات */
.sps-header {
    background: linear-gradient(135deg, var(--sps-dark), #000);
    border-radius: var(--sps-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border-bottom: 4px solid var(--sps-red);
}

.sps-header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sps-header-logo {
    background: var(--sps-white);
    padding: 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(230, 30, 37, 0.2);
}

.sps-header-logo img {
    height: 50px;
    width: auto;
}

.sps-header-text h2 {
    color: var(--sps-white) !important;
    margin: 0 !important;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.sps-header-text span {
    color: #999;
    font-size: 13px;
    display: block;
    margin-top: 5px;
}

/* کانتینر اصلی محتوا */
.sps-form-container, .sps-full-dashboard {
    background: var(--sps-white);
    border-radius: var(--sps-radius);
    padding: 30px;
    box-shadow: var(--sps-shadow);
    border: 1px solid var(--sps-border);
}

/* المان‌های فرم */
.sps-form-container label {
    font-weight: 700;
    color: var(--sps-dark);
    margin-bottom: 8px;
    display: block;
}

.sps-form-container input[type="text"],
.sps-form-container input[type="number"],
.sps-form-container select,
.sps-form-container textarea {
    border: 2px solid #eee !important;
    border-radius: 8px !important;
    padding: 12px !important;
    transition: all 0.3s ease !important;
}

.sps-form-container input:focus,
.sps-form-container textarea:focus {
    border-color: var(--sps-red) !important;
    box-shadow: 0 0 0 4px rgba(230, 30, 37, 0.1) !important;
    outline: none;
}

/* دکمه‌های لوکس */
.sps-form-container button,
.sps-form-container input[type="submit"],
.sps-action-btn {
    background: var(--sps-red) !important;
    color: var(--sps-white) !important;
    padding: 14px 28px !important;
    border-radius: 10px !important;
    border: none !important;
    font-weight: bold !important;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s all ease;
    box-shadow: 0 5px 15px rgba(230, 30, 37, 0.3) !important;
}

.sps-form-container button:hover,
.sps-action-btn:hover {
    background: var(--sps-red-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 30, 37, 0.4) !important;
}

/* دکمه‌های ثانویه */
.sps-action-btn.secondary, #add-product {
    background: var(--sps-dark) !important;
}

/* جداول شرکتی */
.sps-table-container {
    margin-top: 25px;
    border-radius: 10px;
    border: 1px solid var(--sps-border);
    background: #fff;
}


.sps-table {
    width: 100%;
    border-collapse: collapse;
}

.sps-table th {
    background: var(--sps-dark-light);
    color: var(--sps-white);
    padding: 18px;
    text-align: right;
    font-weight: 600;
}

.sps-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    font-size: 13px;
}

.sps-table tr:hover td {
    background: #fffafa;
}

/* کارت‌های آمار پیشخوان */
.sps-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.sps-dashboard-stats .card {
    background: var(--sps-white);
    padding: 30px;
    border-radius: var(--sps-radius);
    text-align: center;
    border-bottom: 5px solid var(--sps-red);
    box-shadow: var(--sps-shadow);
    transition: 0.3s;
}

.sps-dashboard-stats .card:hover {
    transform: translateY(-5px);
}

.sps-dashboard-stats .card h3 {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.sps-dashboard-stats .card strong {
    font-size: 38px;
    color: var(--sps-dark);
    display: block;
    margin-top: 10px;
}

/* استایل محصول متغیر */
.product-item {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-right: 5px solid var(--sps-red);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* دکمه‌های عملیاتی کوچک */
.view-product-btn {
    background: var(--sps-dark);
    color: white !important;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    text-decoration: none;
    transition: 0.2s;
}

.view-product-btn:hover {
    background: var(--sps-red);
}

/* صفحه‌بندی */
.sps-pagination .page-numbers {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--sps-border);
    border-radius: 8px;
    margin: 0 3px;
    color: var(--sps-dark);
    text-decoration: none;
}

.sps-pagination .current {
    background: var(--sps-red);
    color: #fff;
    border-color: var(--sps-red);
}

/* موبایل */
@media (max-width: 768px) {
    .sps-header-inner {
        flex-direction: column;
        text-align: center;
    }
}
/* --- بخش اصلاحی نهایی: برندینگ و مهار جدول --- */

/* ۱. کنترل لوگوها */
.sps-header img, .sps-dashboard-brand img, .sps-header-logo img {
    max-height: 42px !important;
    width: auto !important;
    object-fit: contain;
}

/* ۲. کانتینر اصلی داشبورد (فیت کردن باکس سفید) */
.sps-full-dashboard, .sps-form-container {
    position: relative !important;
    background: linear-gradient(135deg,#ffffff 0%,#f7f7f7 100%) !important;
    border-radius: 14px !important;
    padding: 25px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08) !important;
    
    /* مهار باکس در موبایل */
    width: 100% !important;
    max-width: 100% !important;
    margin: 15px 0 !important;
    overflow: hidden !important; /* این خط حیاتی است */
    box-sizing: border-box !important;
}

/* افکت‌های نوری (محدود شده به داخل کادر) */
.sps-full-dashboard::before, .sps-form-container::before {
    content: ""; position: absolute; top: -70px; right: -70px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(230,30,37,0.1), transparent 70%);
    z-index: 0; pointer-events: none;
}

/* ۳. قاب اصلی جدول (دیوار مرزی) */
.sps-table-container {
    margin-top: 25px !important;
    background: #fff !important;
    border: 1px solid var(--sps-border) !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important; /* جلوگیری از خروج محتوا */
    box-sizing: border-box !important;
}/* ۴. لایه اسکرول (موتور حرکت جدول) */
.sps-table-scrollable {
    display: block !important;
    width: 100% !important;
    overflow-x: scroll !important; /* تغییر از auto به scroll برای اجبار به نمایش */
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch; /* حرکت نرم در موبایل */
    padding-bottom: 10px; /* فضا برای دیده شدن نوار اسکرول */
}

/* ۵. مهار خودِ جدول (اجبار به عریض بودن) */
.sps-table-scrollable .sps-table {
    display: table !important;
    width: 100% !important;
    min-width: 1100px !important; /* افزایش عرض برای اطمینان از ایجاد اسکرول */
    border-collapse: collapse !important;
    margin: 0 !important;
    table-layout: fixed !important; /* برای فیکس کردن عرض ستون‌ها */
}

/* ۶. نوار اسکرول شیک و کاملاً واضح (Luxury Scrollbar) */
.sps-table-scrollable::-webkit-scrollbar {
    height: 10px !important; /* ضخامت بیشتر برای دیده شدن */
    display: block !important;
}

.sps-table-scrollable::-webkit-scrollbar-thumb {
    background: var(--sps-red) !important; /* رنگ قرمز برند شما */
    border-radius: 20px !important;
    border: 2px solid #fff; /* حاشیه برای جذابیت */
}

.sps-table-scrollable::-webkit-scrollbar-track {
    background: #eeeeee !important; /* رنگ پس‌زمینه نوار */
    border-radius: 20px !important;
}
/* تنظیمات نهایی برای فیت شدن در موبایل */
@media screen and (max-width: 768px) {
    .sps-full-dashboard {
        width: 100% !important;
        max-width: 100% !important;
        padding: 5px !important; /* یک فاصله خیلی کم برای اینکه به لبه نچسبد */
        margin: 0 auto !important;
    }

    .sps-form-container, .sps-table-container {
        width: 98% !important; /* تقریباً کل عرض را می‌گیرد */
        max-width: 98% !important;
        margin: 10px auto !important; /* باکس را دقیقاً وسط قرار می‌دهد */
        padding: 15px !important; /* فاصله داخلی باکس سفید */
        box-sizing: border-box;
    }

    /* اگر می‌خواهی جدول تا لبه‌های باکس سفید بیاید */
    .sps-table-scrollable {
        width: 100% !important;
        margin: 0 !important;
    }
}
/* ۱. باز کردن محدودیت عرض قالب در صفحه افزونه */
@media screen and (max-width: 768px) {
    /* حذف حاشیه از بدنه اصلی سایت برای این صفحه خاص */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* هدف قرار دادن ظرف‌های احتمالی قالب (مثل Astra, Elementor, OceanWP) */
    .site-content, .container, .ast-container, .elementor-section, .entry-content {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* ۲. ترفند "شکستن کانتینر" برای داشبورد افزونه */
    .sps-full-dashboard {
        width: 100vw !important; /* دقیقا به اندازه عرض صفحه موبایل */
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        padding: 10px !important; /* کمی فاصله از لبه برای قشنگی */
        box-sizing: border-box !important;
    }

    /* ۳. فیت کردن باکس‌های سفید داخلی */
    .sps-form-container, .sps-table-container {
        width: 95% !important;
        margin: 15px auto !important; /* این باعث می‌شود باکس‌های سفید دقیقاً در وسط قرار بگیرند */
        display: block !important;
        box-sizing: border-box !important;
    }
}
/* ============================= */
/* SPS Search + Section Title UI */
/* ============================= */

.sps-section-title{
    font-size:20px;
    font-weight:800;
    color:var(--sps-dark);
    margin:25px 0 15px 0;
    position:relative;
}

.sps-section-title::after{
    content:"";
    width:60px;
    height:3px;
    background:var(--sps-red);
    display:block;
    margin-top:6px;
    border-radius:4px;
}

/* فرم جستجو */
.sps-search-form{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:20px;
}

.sps-search-form input[type="text"]{
    border:2px solid #eee !important;
    border-radius:8px !important;
    padding:10px 12px !important;
    transition:all .3s ease;
    font-size:13px;
}

.sps-search-form input[type="text"]:focus{
    border-color:var(--sps-red) !important;
    box-shadow:0 0 0 3px rgba(230,30,37,0.1);
}

.sps-search-form button{
    background:var(--sps-red);
    color:#fff;
    border:none;
    border-radius:8px;
    padding:10px 18px;
    font-weight:bold;
    cursor:pointer;
    transition:all .25s ease;
}

.sps-search-form button:hover{
    background:var(--sps-red-hover);
    transform:translateY(-1px);
}

/* موبایل */@media (max-width:768px){

.sps-section-title{
    text-align:center;
}

.sps-section-title::after{
    margin-left:auto;
    margin-right:auto;
}

/* فرم جستجو در یک خط بماند */
.sps-search-form{
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:8px;
}

/* فیلد جستجو بزرگتر */
.sps-search-form input[type="text"]{
    flex:1;
}

/* دکمه اندازه طبیعی */
.sps-search-form button{
    width:auto;
    padding:10px 16px;
}

}
/* ================================== */
/* SPS Product Submit Form - Pro Layout */
/* ================================== */

/* کانتینر اصلی فرم */
#sps-submit-product-form {
    max-width: 1000px;
    margin: 20px auto;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    direction: rtl;
}

/* گروه‌بندی فیلدها */
.sps-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: calc(50% - 13px); /* دو ستونه کردن */
}

/* فیلد توضیحات (تمام عرض یا ستون بزرگتر) */
.sps-form-group.full-width, 
.sps-form-group:has(textarea) {
    width: 100%;
}

/* استایل لیبل‌ها */
.sps-form-group label {
    font-weight: 700;
    color: var(--sps-dark);
    font-size: 14px;
    margin-bottom: 2px;
}

/* استایل اینپوت‌ها و تسکت‌اریا */
.sps-form-group input[type="text"],
.sps-form-group input[type="number"],
.sps-form-group textarea,
.sps-form-group select {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1.5px solid #e1e1e1 !important;
    border-radius: 10px !important;
    background: #f9f9f9 !important;
    transition: all 0.3s ease;
    font-size: 14px;
}

.sps-form-group input:focus,
.sps-form-group textarea:focus {
    border-color: var(--sps-red) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(230, 30, 37, 0.05);
    outline: none;
}

/* مخصوص چک‌باکس */
.sps-checkbox-group {
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* بخش تصاویر */
.sps-image-upload-section {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: #fcfcfc;
    padding: 20px;
    border-radius: 12px;
    border: 1px dashed #ddd;
}

/* دکمه‌های پایین فرم */
.sps-form-actions {
    width: 100%;
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.sps-form-actions button {
    flex: 1;
    height: 50px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
    .sps-form-group {
        width: 100% !important;
    }
    
    .sps-image-upload-section {
        grid-template-columns: 1fr;
    }

    .sps-form-actions {
        flex-direction: column;
    }
}
/* تنظیمات چیدمان لوکس فرم SPS */
.product-item {
    display: grid;
    grid-template-columns: 1fr 1fr; /* دو ستون مساوی */
    gap: 30px;
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #eee;
    margin-bottom: 30px;
    direction: rtl;
}

/* گروه‌بندی لیبل و اینپوت */
.sps-field-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.sps-field-group label {
    font-weight: 700;
    margin-bottom: 8px;
    color: #444;
    font-size: 14px;
	margin-top: 23px;
}
.woocommerce-ordering{
	direction: ltr !important;
    margin-bottom: 10px;
}
/* استایل اینپوت‌ها */
.sps-field-group input[type="text"],
.sps-field-group input[type="number"],
.sps-field-group textarea {
    border: 2px solid #f0f0f0 !important;
    border-radius: 10px !important;
    padding: 12px !important;
    transition: all 0.3s;
}

.sps-field-group textarea {
    height: 180px; /* قد توضیحات */
    resize: none;
}



/* بخش تمام عرض (ویژگی‌ها و تصاویر) */
.sps-full-width-fields {
    grid-column: span 2; /* کل دو ستون را بگیرد */
    border-top: 1px solid #f5f5f5;
    padding-top: 20px;
}

.sps-upload-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* موبایل ریسپانسیو */
@media (max-width: 900px) {
    .product-item, .sps-upload-section {
        grid-template-columns: 1fr; /* در موبایل همه زیر هم */
    }
    .sps-full-width-fields {
        grid-column: span 1;
    }
}

/* استایل چک‌باکس متغیر */
.sps-checkbox-wrapper {
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
}
/* اصلاح استایل ادیتور وردپرس */
.wp-editor-wrap button,
.wp-editor-wrap .button,
.wp-editor-wrap input {
    width: auto !important;
    height: auto !important;
    padding: 4px 8px !important;
    line-height: normal !important;
}

.wp-editor-wrap .mce-toolbar button {
    min-width: auto !important;
}

/* جلوگیری از استایل فرم روی ادیتور */
.wp-editor-container textarea {
    width: 100% !important;
}
/* حل مشکل تداخل منوی مدیریت با ادیتور در حالت تمام‌صفحه */
.mce-fullscreen {
    z-index: 150000 !important; /* مقدار بسیار بالا برای قرار گرفتن روی تمام عناصر وردپرس */
}

/* اگر نوار مدیریت (Admin Bar) در حالت تمام‌صفحه همچنان دیده می‌شد */
body.mce-fullscreen #wpadminbar {
    display: none !important;
}

/* اصلاح موقعیت ادیتور در حالت تمام‌صفحه */
div.mce-fullscreen {
    top: 0 !important;
    left: 0 !important;
}
.sps-dashbort-logo{
    width:70px;
    height:70px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
    padding:8px;
}

/* باکس لوگو در داشبورد */
.sps-dashboard-logo{
    width:110px;
    height:110px;
    background:#ffffff; /* رنگ زمینه – اگر رنگ دیگر خواستی بگو */
    border-radius:20px;
    padding:15px;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 8px 22px rgba(0,0,0,0.10);
    overflow:hidden;
}

/* خود تصویر لوگو */
.sps-dashboard-logo img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}
.sps-dashboard-header{
    background:linear-gradient(135deg,#ffffff,#f6f7f9,#eef0f3);
    padding:25px 35px;
    border-radius:22px;
    margin-bottom:35px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    box-shadow:0 10px 28px rgba(0,0,0,0.07);
}


/* ===== Dark Dashboard ===== */

body.toplevel_page_sps-dashboard-full #wpbody-content{
    background:#0f172a;
}

.sps-dashboard-header{
    background:linear-gradient(135deg,#111827,#1f2937);
    padding:25px 35px;
    border-radius:20px;
    margin-bottom:30px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    box-shadow:0 10px 30px rgba(0,0,0,0.4);
}

.sps-dashboard-title h1{
    color:#ffffff;
    font-weight:600;
}

.sps-dashboard-stats .card{
    background:#1f2937;
    border-radius:16px;
    padding:25px;
    color:#fff;
    box-shadow:0 8px 24px rgba(0,0,0,0.35);
    transition:0.25s;
}

.sps-dashboard-stats .card:hover{
    transform:translateY(-5px);
    background:#273244;
}

.sps-dashboard-links a{
    display:inline-block;
    background:#1f2937;
    padding:14px 24px;
    border-radius:12px;
    margin:0 10px;
    text-decoration:none;
    color:#ffffff;
    transition:0.25s;
    box-shadow:0 6px 18px rgba(0,0,0,0.35);
}

.sps-dashboard-links a:hover{
    background:#334155;
    transform:translateY(-3px);
}

.sps-dashboard-logo{
    width:100px;
    height:100px;
    background:#111827;
    border-radius:20px;
    padding:15px;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 10px 30px rgba(0,0,0,0.5);
}
/* متن‌های عمومی داخل داشبورد */
body.toplevel_page_sps-dashboard-full 
.sps-full-dashboard,
body.toplevel_page_sps-dashboard-full 
.sps-full-dashboard p,
body.toplevel_page_sps-dashboard-full 
.sps-full-dashboard span,
body.toplevel_page_sps-dashboard-full 
.sps-full-dashboard div{
    color:#e5e7eb;
}

/* تیترها */
body.toplevel_page_sps-dashboard-full 
.sps-full-dashboard h1,
body.toplevel_page_sps-dashboard-full 
.sps-full-dashboard h2,
body.toplevel_page_sps-dashboard-full 
.sps-full-dashboard h3,
body.toplevel_page_sps-dashboard-full 
.sps-full-dashboard h4{
    color:#ffffff;
}

/* متن داخل کارت‌ها */
.sps-dashboard-stats .card{
    color:#f1f5f9;
}

/* لینک‌ها */
.sps-full-dashboard a{
    color:#60a5fa;
}

.sps-full-dashboard a:hover{
    color:#93c5fd;
}
.sps-dashboard-stats .card strong,
.sps-dashboard-stats .card b,
.sps-dashboard-stats .card span{
    color:#ffffff !important;
}
.sps-dashboard-logo{
    background:#ffffff !important;
}
/* فاصله بین عنوان کارت و عدد */
.sps-dashboard-stats .card h3{
    margin-bottom:12px;
}

/* استایل عدد بزرگ */
.sps-dashboard-stats .card strong{
    display:block;
    font-size:21px;
    margin-top:6px;
}
#products-wrapper .product-item {
    border-right: 4px solid #e60023;
    padding: 20px 20px 20px 15px;
    margin-bottom: 25px;
    background: #fff;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

#products-wrapper .product-item + .product-item {
    margin-top: 20px;
}
/* ===== Pricing Cards ===== */

.sps-pricing-wrapper{
    display:flex;
    gap:25px;
    justify-content:center;
    flex-wrap:wrap;
}

.sps-pricing-card{
    background:var(--sps-white);
    border-radius:var(--sps-radius);
    padding:30px;
    width:280px;
    text-align:center;
    box-shadow:var(--sps-shadow);
    border:1px solid var(--sps-border);
    transition:0.3s;
    position:relative;
}

.sps-pricing-card:hover{
    transform:translateY(-6px);
}

.sps-pricing-card h3{
    margin-bottom:15px;
    color:var(--sps-dark);
}

.sps-price{
    font-size:20px;
    font-weight:700;
    margin-bottom:10px;
}

.sps-amount{
    font-size:18px;
    color:var(--sps-red);
    margin-bottom:20px;
    font-weight:bold;
}

.sps-pricing-card ul{
    list-style:none;
    padding:0;
    margin:0 0 20px 0;
}

.sps-pricing-card ul li{
    margin-bottom:8px;
    font-size:13px;
    color:#555;
}

/* پلن ویژه */
.sps-pricing-card.featured{
    border:2px solid var(--sps-red);
    transform:scale(1.05);
}

.sps-pricing-card .badge{
    position:absolute;
    top:-12px;
    right:20px;
    background:var(--sps-red);
    color:#fff;
    padding:5px 12px;
    font-size:11px;
    border-radius:20px;
}

/* موبایل */
@media(max-width:768px){
    .sps-pricing-wrapper{
        flex-direction:column;
        align-items:center;
    }

    .sps-pricing-card{
        width:100%;
        max-width:350px;
    }

    .sps-pricing-card.featured{
        transform:none;
    }
}
.remove-product-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff5252;
    color: #fff;
    border: none;
    border-radius: 50%;
    height: 25px;
    cursor: pointer;
    font-size: 16px;
    line-height: 0px;
    text-align: center;
    z-index: 10;
}

/* مخفی کردن دکمه حذف در اولین محصول */
.product-item:first-child .remove-product-btn {
    display: none;
}

.product-item {
    position: relative; /* برای اینکه دکمه ضربدر نسبت به هر باکس تنظیم شود */
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
	 margin-top:20px;
}
@media (max-width:768px){

.sps-dashboard-header{
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
text-align:center;
gap:10px;
}

.sps-dashboard-logo,
.sps-dashboard-title,
.sps-dashboard-user{
width:100%;
text-align:center;
}

.sps-dashboard-links a{
display:block;
margin-bottom:10px;
}
}

.sps-dashboard-logout{
margin-top:6px;
}

.sps-logout-btn{
display:inline-block;
background:#dc3545;
color:#fff;
padding:5px 12px;
border-radius:6px;
font-size:13px;
text-decoration:none;
}

.sps-logout-btn:hover{
background:#b02a37;
}
/* حذف کامل بخش انتخاب زبان */

.language-switcher{
display:none !important;
}
/* موبایل – چیدمان تضمینی ردیف متغیر */
@media screen and (max-width: 600px) {
    .variation-row {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center;
        gap: 5px !important;
    }

    /* شکستن خط اجباری برای دکمه‌ها */
    .variation-row::after {
        content: "";
        flex-basis: 100% !important;
        order: 1;
        height: 0;
        visibility: hidden;
    }

    /* انتخاب‌گر (ویژگی) */
    .variation-row select.attr-name {
        flex: 0 0 70px !important;
        min-width: 70px !important;
        width: 45px !important;
        font-size: 11px;
        padding: 3px;
        order: 0;
    }

    /* فیلد مقدار */
    .variation-row input.attr-value {
        flex: 1 1 0% !important;  /* تا جایی که می‌تواند بزرگ و کوچک شود */
        min-width: 0 !important;  /* جلوگیری از بزرگ‌شدن بیش از حد محتوا */
        font-size: 11px;
        padding: 3px 5px;
        order: 0;
    }

    /* فیلد قیمت */
    .variation-row input.attr-price {
        flex: 0 0 100px !important;
        min-width: 100px !important;
        width: 45px !important;
        font-size: 11px;
        padding: 3px 5px !important;
        order: 0;
    }

    /* دکمه‌های + و - */
    .variation-row .add-row,
    .variation-row .remove-row {
        flex: 1 1 0% !important;
        order: 2;
        height: 30px;
        font-size: 20px;
        line-height: 26px;
        padding: 0 !important;
        min-width: 0;
        text-align: center;
    }
}
/* نمایش تیک چک‌باکس به صورت پیش‌فرض */
.sps-checkbox-wrapper input[type="checkbox"] {
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: checkbox !important;
    opacity: 1 !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 0 0 0;
    vertical-align: middle;
    position: static;
    clip: auto;
    clip-path: none;
    pointer-events: auto;
    background: none !important;
    border: initial;
}
/* فاصله مناسب لیبل از چک‌باکس */
.sps-checkbox-wrapper label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.sps-categories-field-wrap {
    width: 100%;
}

.sps-categories-scroll-box {
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background: #fff;
    padding: 12px;
    margin-top: 8px;
}

.sps-category-item {
    margin-bottom: 8px;
    line-height: 1.8;
}

.sps-category-item:last-child {
    margin-bottom: 0;
}

.sps-category-item label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.sps-category-item input[type="checkbox"] {
    flex: 0 0 auto;
}
/* ======================================= */
/* Torob Merge Requests - Mobile Card View */
/* ======================================= */
/* ======================================= */
/* Torob Merge Requests - Mobile Card View */
/* ======================================= */

@media screen and (max-width: 768px) {

    /* حذف اسکرول افقی برای این جدول در موبایل */
    .sps-table-scrollable {
        overflow-x: visible !important;
        overflow-y: visible !important;
        padding-bottom: 0 !important;
    }

    /* تبدیل ساختار جدول به کارت */
    .sps-table-scrollable .sps-table,
    .sps-table-scrollable .sps-table tbody,
    .sps-table-scrollable .sps-table tr,
    .sps-table-scrollable .sps-table td {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* مخفی کردن هدر جدول */
    .sps-table-scrollable .sps-table thead {
        display: none !important;
    }

    /* خود جدول */
    .sps-table-scrollable .sps-table {
        min-width: 0 !important;
        table-layout: auto !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
        background: transparent !important;
    }

    /* هر ردیف = یک کارت */
    .sps-table-scrollable .sps-table tr {
        background: #ffffff !important;
        border: 1px solid #e5e5e5 !important;
        border-radius: 14px !important;
        margin-bottom: 16px !important;
        padding: 14px !important;
        box-shadow: 0 8px 22px rgba(0,0,0,0.08) !important;
        overflow: hidden !important;
    }

    /* سلول‌های کارت */
    .sps-table-scrollable .sps-table td {
        padding: 10px 0 !important;
        border-bottom: 1px solid #f1f1f1 !important;
        text-align: right !important;
        font-size: 13px !important;
        line-height: 1.8 !important;
        color: #333 !important;
        word-break: break-word !important;
        white-space: normal !important;
    }

    /* آخرین سلول خط نداشته باشد */
    .sps-table-scrollable .sps-table td:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }

    /* عنوان هر بخش از data-label خوانده شود */
    .sps-table-scrollable .sps-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        color: #666;
        font-size: 12px;
        margin-bottom: 6px;
        text-align: right;
    }

    /* دکمه مشاهده */
    .view-product-btn {
        display: inline-block !important;
        width: auto !important;
        min-width: 130px;
        text-align: center;
    }

    /* گروه انتخاب درخواست */
    .sps-field-group {
        display: block !important;
        width: 100% !important;
        margin-bottom: 12px !important;
    }

    .sps-field-group label {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 8px 0 !important;
        font-size: 14px !important;
        line-height: 1.8 !important;
    }

    /* دکمه‌ها */
    .add-request,
    .remove-request,
    .submit-request {
        display: block !important;
        width: 100% !important;
        margin: 10px 0 !important;
        text-align: center !important;
    }

    /* باکس درخواست */
    .request-box {
        margin-top: 12px !important;
        padding: 12px !important;
        background: #fcfcfc !important;
        border: 1px dashed #ddd !important;
        border-radius: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* ورودی لینک */
    .request-box input[type="text"],
    .request-box input[type="url"] {
        width: 100% !important;
        margin-bottom: 10px !important;
        box-sizing: border-box !important;
    }
}
/* ===============================
زیباتر شدن کارت‌های وضعیت درخواست‌ها در موبایل
=============================== */
@media screen and (max-width:768px){

/* کارت هر درخواست */
.sps-table-scrollable .sps-table tr{
background:#ffffff;
border-radius:16px;
padding:14px;
margin-bottom:18px;
box-shadow:0 6px 20px rgba(0,0,0,0.08);
border:1px solid #eee;
}

/* فاصله بهتر بین فیلدها */
.sps-table-scrollable .sps-table td{
padding:12px 0 !important;
font-size:13px;
line-height:1.9;
}

/* عنوان هر فیلد */
.sps-table-scrollable .sps-table td::before{
font-size:12px;
color:#888;
font-weight:700;
margin-bottom:4px;
}

/* لینک مشاهده */
.sps-table-scrollable .view-product-btn{
display:inline-block;
padding:7px 14px;
border-radius:8px;
font-size:12px;
background:#2271b1;
color:#fff;
border:none;
}

/* وضعیت‌ها */
.sps-table-scrollable td[data-label="وضعیت"] span{
display:inline-block;
padding:5px 10px;
border-radius:20px;
font-size:12px;
}

/* وضعیت انجام شد */
.sps-table-scrollable td[data-label="وضعیت"] span[style*="green"]{
background:#e8f7ee;
color:#1c7c45;
}

/* وضعیت در انتظار */
.sps-table-scrollable td[data-label="وضعیت"] span[style*="orange"]{
background:#fff4e5;
color:#cc7a00;
}

/* وضعیت رد شده */
.sps-table-scrollable td[data-label="وضعیت"] span[style*="red"]{
background:#ffeaea;
color:#c62828;
}

/* لینک ترب طولانی نشود */
.sps-table-scrollable td[data-label="لینک در ترب"]{
word-break:break-word;
}

/* آی دی کوچک‌تر */
.sps-table-scrollable td[data-label="ID"]{
font-size:12px;
color:#777;
}

}
/* ستون عملیات */
.sps-table .torob-actions-cell {
    min-width: 175px;
    width: 175px;
    vertical-align: middle;
}

.sps-table .torob-actions-cell form {
    margin: 0;
}

/* همه دکمه‌های عملیات کوچک و مناسب جدول */
.sps-table .torob-actions-cell .button,
.sps-table .torob-actions-cell summary.button {
    min-height: 26px;
    padding: 2px 6px;
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
}

/* شماره درخواست و ذخیره در یک خط */
.torob-number-form {
    display: flex;
    align-items: center;
    gap: 3px;
}

.torob-number-form input[type="text"] {
    width: 78px;
    min-width: 0;
    height: 26px;
    margin: 0;
    padding: 2px 5px;
    font-size: 11px;
    text-align: left;
    direction: ltr;
}

/* انجام شد و رد کنار هم */
.torob-status-actions {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 4px;
}

/* حذف فلش پیش‌فرض details */
.torob-action-details summary,
.torob-reject-details summary {
    display: inline-block;
    list-style: none;
    cursor: pointer;
}

.torob-action-details summary::-webkit-details-marker,
.torob-reject-details summary::-webkit-details-marker {
    display: none;
}

/*
 * پنل بازشونده داخل سلول باقی می‌ماند.
 * بنابراین دیگر از چپ جدول خارج نمی‌شود.
 */
.torob-details-content {
    position: static;
    width: 100%;
    box-sizing: border-box;
    margin-top: 5px;
    padding: 6px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 3px;
}

/* فرم واگذاری */
.torob-admin-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 5px;
}

.torob-link-row {
    display: flex;
    align-items: center;
    gap: 3px;
}

.torob-link-row input[type="url"] {
    flex: 1;
    min-width: 0;
    height: 26px;
    margin: 0;
    padding: 2px 5px;
    font-size: 11px;
    direction: ltr;
}

.torob-send-button {
    width: 100%;
}

/* فرم رد */
.torob-reject-form textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    margin: 0 0 5px;
    padding: 4px 5px;
    font-size: 11px;
    line-height: 1.4;
    resize: vertical;
}

.torob-reject-confirm {
    width: 100%;
    color: #b32d2e !important;
    border-color: #b32d2e !important;
}

.torob-reject-summary {
    color: #b32d2e !important;
    border-color: #b32d2e !important;
    background: #fff !important;
}
/* ستون علت رد */
.sps-table .torob-reason-cell {
    min-width: 145px;
    width: 145px;
    vertical-align: middle;
}

/* دکمه رد کوچک و متناسب با جدول */
.sps-table .torob-reason-cell .button,
.sps-table .torob-reason-cell summary.button {
    min-height: 26px;
    padding: 2px 6px;
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
}

/* حذف فلش پیش‌فرض details */
.torob-reject-details summary {
    display: inline-block;
    cursor: pointer;
    list-style: none;
}

.torob-reject-details summary::-webkit-details-marker {
    display: none;
}

/* فرم رد داخل ستون علت رد */
.torob-reject-content {
    box-sizing: border-box;
    width: 100%;
    margin-top: 5px;
    padding: 6px;
    background: #fff8f8;
    border: 1px solid #f0b7b7;
    border-radius: 3px;
}

.torob-reject-form {
    margin: 0;
}

.torob-reject-form textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    margin: 0 0 5px;
    padding: 4px 5px;
    font-size: 11px;
    line-height: 1.4;
    resize: vertical;
}

/* دکمه رد */
.torob-reject-summary,
.torob-reject-confirm {
    color: #b32d2e !important;
    border-color: #b32d2e !important;
    background: #fff !important;
}

.torob-reject-confirm {
    width: 100%;
}
/* ستون شماره درخواست ترب */
.sps-table .torob-request-number-cell {
    min-width: 170px;
    vertical-align: middle;
}

/* فرم شماره + ذخیره */
.sps-table .torob-number-form {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

.sps-table .torob-number-form input[type="text"] {
    box-sizing: border-box;
    width: 105px;
    min-width: 0;
    height: 30px;
    padding: 3px 6px;
    text-align: left;
}

.sps-table .torob-number-form .button {
	height: 54px;
    padding: 0 7px;
    white-space: nowrap;
    font-size: 11px;
}
/* =========================================================
   جدول مدیریت درخواست‌های ترب
========================================================= */

.sps-table {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
}

.sps-table th,
.sps-table td {
    vertical-align: middle;
    text-align: center;
    padding: 10px 8px;
}

/* جلوگیری از شکستن بد دکمه‌ها */
.sps-table .button,
.sps-table .view-product-btn {
    white-space: nowrap;
}


/* =========================================================
   ستون شماره درخواست
========================================================= */

.sps-table th:nth-child(2),
.sps-table .torob-request-number-cell {
    min-width: 165px;
    width: 165px;
}

.sps-table .torob-request-number-cell input[type="text"] {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 165px;
    height: 32px;
    margin: 0 auto;
    padding: 4px 8px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background: #fff;
    font-size: 12px;
    text-align: left;
    direction: ltr;
}

.sps-table .torob-request-number-cell input[type="text"]:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}


/* =========================================================
   ستون عملیات
========================================================= */

.sps-table th:nth-child(8),
.sps-table .torob-actions-cell {
    min-width: 180px;
    width: 180px;
}

/* فرم‌های عملیات */
.sps-table .torob-inline-form,
.sps-table .torob-outsourced-form {
    margin: 0;
}

/* details نباید تمام عرض عجیب بگیرد */
.sps-table .torob-action-details {
    display: inline-block;
    width: 100%;
    max-width: 260px;
    text-align: right;
}

.sps-table .torob-action-details summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 32px;
    padding: 5px 8px;
    cursor: pointer;
    list-style: none;
    font-size: 12px;
    line-height: 1.4;
}

/* حذف فلش پیش‌فرض details */
.sps-table .torob-action-details summary::-webkit-details-marker {
    display: none;
}

.sps-table .torob-action-details summary::marker {
    display: none;
    content: "";
}

/* محتوای بازشونده انتخاب لینک */
.sps-table .torob-details-content {
    box-sizing: border-box;
    width: 100%;
    margin-top: 6px;
    padding: 8px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
}

/* تنها ورودی لینک هر ردیف */
.sps-table .torob-single-admin-link {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 33px;
    margin: 0 0 7px;
    padding: 4px 7px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background: #fff;
    direction: ltr;
    text-align: left;
    font-size: 12px;
}

.sps-table .torob-single-admin-link:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

/* دکمه ثبت و ارسال در حالت واگذاری */
.sps-table .torob-send-button {
    box-sizing: border-box;
    width: 100%;
    min-height: 32px;
    padding: 4px 8px;
    font-size: 12px;
    line-height: 1.4;
}

/* دکمه ارسال عادی و انجام شد */
.sps-table .torob-inline-form .button,
.sps-table .torob-status-actions .button {
    min-height: 32px;
    padding: 4px 10px;
    font-size: 12px;
}


/* =========================================================
   ستون علت رد
========================================================= */

.sps-table th:nth-child(9),
.sps-table .torob-reason-cell {
    min-width: 145px;
    width: 145px;
    vertical-align: middle;
}

.sps-table .torob-reject-details {
    display: inline-block;
    width: 100%;
    max-width: 180px;
    text-align: right;
}

.sps-table .torob-reject-details summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 32px;
    padding: 4px 8px;
    cursor: pointer;
    list-style: none;
    color: #b32d2e;
    border-color: #b32d2e;
    background: #fff;
    font-size: 12px;
}

.sps-table .torob-reject-details summary::-webkit-details-marker {
    display: none;
}

.sps-table .torob-reject-details summary::marker {
    display: none;
    content: "";
}

.sps-table .torob-reject-content {
    box-sizing: border-box;
    width: 100%;
    margin-top: 6px;
    padding: 7px;
    background: #fff8f8;
    border: 1px solid #f0b7b7;
    border-radius: 4px;
}

.sps-table .torob-reject-form {
    margin: 0;
}

.sps-table .torob-reject-form textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 54px;
    margin: 0 0 6px;
    padding: 5px 6px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.5;
    resize: vertical;
}

.sps-table .torob-reject-confirm {
    box-sizing: border-box;
    width: 100%;
    min-height: 30px;
    color: #b32d2e !important;
    border-color: #b32d2e !important;
    background: #fff !important;
}


/* =========================================================
   نمایش در موبایل
========================================================= */

@media (max-width: 782px) {

    .sps-table th,
    .sps-table td {
        padding: 8px 6px;
    }

    .sps-table .torob-request-number-cell,
    .sps-table .torob-actions-cell,
    .sps-table .torob-reason-cell {
        width: auto;
        min-width: 0;
    }

    .sps-table .torob-request-number-cell input[type="text"] {
        max-width: none;
    }

    .sps-table .torob-action-details,
    .sps-table .torob-reject-details {
        max-width: none;
    }
}
/* =========================================================
   ستون شماره درخواست: ثبت و ویرایش بازشونده
========================================================= */

.sps-table .torob-request-number-cell {
    width: 165px;
    min-width: 165px;
}

.sps-table .torob-current-request-number {
    display: block;
    margin: 0 0 6px;
    color: #1d2327;
    font-size: 13px;
    text-align: center;
    direction: ltr;
}

.sps-table .torob-request-number-details {
    display: inline-block;
    width: 100%;
    max-width: 165px;
    text-align: right;
}

.sps-table .torob-request-number-summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 31px;
    padding: 4px 8px;
    cursor: pointer;
    list-style: none;
    font-size: 12px;
    line-height: 1.4;
}

/* حذف فلش پیش‌فرض details */
.sps-table .torob-request-number-summary::-webkit-details-marker {
    display: none;
}

.sps-table .torob-request-number-summary::marker {
    display: none;
    content: "";
}

.sps-table .torob-request-number-content {
    box-sizing: border-box;
    width: 100%;
    margin-top: 6px;
    padding: 8px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
}

.sps-table .torob-request-number-form {
    margin: 0;
}

.sps-table .torob-request-number-input {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 32px;
    margin: 0 0 7px;
    padding: 4px 7px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background: #fff;
    color: #1d2327;
    font-size: 12px;
    text-align: left;
    direction: ltr;
}

.sps-table .torob-request-number-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.sps-table .torob-request-number-save {
    box-sizing: border-box;
    width: 100%;
    min-height: 31px;
    padding: 4px 8px;
    font-size: 12px;
    line-height: 1.4;
}

/* فرم فیلتر جدول مدیرکل ترب */
.torob-admin-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 12px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 6px;
}

.torob-admin-filter-form input {
    box-sizing: border-box;
    width: 190px;
    height: 34px;
    margin: 0;
    padding: 5px 8px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background: #fff;
}

.torob-admin-filter-form input[name="admin_request_number"] {
    direction: ltr;
    text-align: left;
}

.torob-admin-filter-form .button {
    min-height: 34px;
    margin: 0;
}

@media (max-width: 782px) {
    .torob-admin-filter-form {
        align-items: stretch;
    }

    .torob-admin-filter-form input,
    .torob-admin-filter-form .button {
        width: 100%;
    }
}
/* محصولی که درخواست ادغام فعال دارد */
.torob-active-request-message {
    display: inline-block;
    box-sizing: border-box;
    max-width: 360px;
    padding: 9px 12px;
    color: #996800;
    background: #fff8e5;
    border: 1px solid #dba617;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.7;
}
/* پاپ‌آپ تصویر محصول در صفحه درخواست ادغام ترب */
.torob-image-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.torob-image-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    cursor: pointer;
}

.torob-image-modal-box {
    position: relative;
    z-index: 2;
    width: min(720px, 95vw);
    max-height: 90vh;
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
    direction: rtl;
    animation: torobImageModalFadeIn 0.18s ease-out;
}

.torob-image-modal-box h3 {
    margin: 0 0 14px;
    padding-left: 40px;
    color: #1d2327;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.8;
}

.torob-image-modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    border: none;
    border-radius: 50%;
    background: #f0f0f1;
    color: #1d2327;
    font-size: 24px;
    line-height: 30px;
    cursor: pointer;
    transition: 0.2s;
}

.torob-image-modal-close:hover {
    background: #d63638;
    color: #fff;
}

.torob-image-modal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    max-height: calc(90vh - 90px);
    background: #f6f7f7;
    border-radius: 10px;
    padding: 12px;
}

.torob-image-modal-content img {
    display: block;
    max-width: 100%;
    max-height: 72vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

body.torob-image-modal-open {
    overflow: hidden;
}

@keyframes torobImageModalFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 782px) {
    .torob-image-modal {
        padding: 12px;
    }

    .torob-image-modal-box {
        width: 96vw;
        padding: 14px;
        border-radius: 12px;
    }

    .torob-image-modal-box h3 {
        font-size: 14px;
    }

    .torob-image-modal-content img {
        max-height: 68vh;
    }
}
