/* ========================================================
   JadoogarWP - Single Product Styles
   اختصاصی برای صفحه تکی محصول
======================================================== */

/* ریست پدینگ نامتقارن پوسته‌های پیش‌فرض وردپرس و تعریف کانتینر اصولی */
body.single-product .has-global-padding {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 30px !important;
}

body.single-product main#main,
body.single-product .site-main,
body.single-product .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

/* کانتینر اصلی صفحه محصول - هماهنگ با عرض هدر (1320px) و پدینگ متقارن 20px در دسکتاپ */
body.single-product .jscm-single-product-wrapper {
    width: 100% !important;
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

/* بردکرامب صفحه محصول - تراز متقارن با کانتینر */
body.single-product nav.woocommerce-breadcrumb {
    width: 100% !important;
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin-top: 1rem !important;
    margin-bottom: 10px !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    color: #808d9b !important;
    direction: rtl !important;
    box-sizing: border-box !important;
}

body.single-product nav.woocommerce-breadcrumb a {
    color: #808d9b !important;
    text-decoration: none !important;
}

body.single-product nav.woocommerce-breadcrumb a:hover {
    color: #2b3445 !important;
}

.woocommerce div.product .product_title {
    clear: none !important;
    margin-top: 0 !important;
    padding: 0 !important;
    margin-bottom: 5px !important;
}

/* =============================================================
   استایل نهایی و فوق مینی‌مال معماری لوکس (اصلاح‌شده Ver 3.6)
============================================================= */
.jscm-digi-layout { display: flex !important; flex-direction: row !important; gap: 20px !important; margin-top:20px !important; align-items: flex-start !important; }
.jscm-digi-content { flex: 1 !important; min-width: 0 !important; }

/* سکشن‌های بدون خط مینی‌مال محتوا */
.jscm-content-section { background: #ffffff !important; border: 1px solid #e5e7eb; border-radius: 16px !important; padding: 16px 20px !important; margin-bottom: 16px !important; }

.jscm-specs-table-section[hidden] {
    display: none !important;
}

.jscm-specs-table-section.is-visible {
    scroll-margin-top: 100px;
}
.jscm-sec-title { 
    font-size: 0.92rem !important; 
    font-weight: 600 !important; 
    color: #0b1c3d !important; 
    padding-bottom: 5px !important; 
    margin-top: 0 !important;
    margin-bottom: 10px !important; 
    border-bottom: 2px solid #00a84e !important; 
    display: inline-block !important; 
}

.jscm-readmore-container {
    margin-top: 0 !important;
    width: 100% !important;
}

.jscm-readmore-inner p {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

.jscm-readmore-inner > *:first-child {
    margin-top: 0 !important;
}

div#jscm-content-p-intro {
    padding: 0px ! IMPORTANT;
}


@media (max-width: 768px) {
.jscm-digi-content {
    flex: 1 !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
}


/* قفل دقیق متن روی ارتفاع ۲.۵ خط */
.jscm-readmore-wrap { position: relative !important; max-height: 80px !important; overflow: hidden !important; transition: max-height 0.4s ease !important; }
.jscm-readmore-wrap.expanded { max-height: 5000px !important; }
.jscm-readmore-wrap.no-truncate { max-height: none !important; }
.jscm-readmore-inner { font-size: 0.875rem !important; line-height: 2.1 !important; color: #334155 !important; text-align: justify !important; }
.jscm-readmore-gradient { position: absolute !important; bottom: 0 !important; left: 0 !important; width: 100% !important; height: 45px !important; background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1)) !important; pointer-events: none !important; transition: opacity 0.3s !important; }
.jscm-readmore-wrap.expanded .jscm-readmore-gradient, .jscm-readmore-wrap.no-truncate .jscm-readmore-gradient { opacity: 0 !important; }
.jscm-readmore-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start;
    gap: 4px !important;
    background: none !important;
    border: none !important;
    color: #00843d !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin-top: 10px !important;
    padding: 0 !important;
    width: 100% !important;
}


/* ========================================================
   دیزاین شبکه‌ای و دو رنگ جدول مشخصات در پاپ‌آپ
======================================================== */
.jscm-full-specs-table { 
    width: 100% !important; 
    border-collapse: separate !important; 
    border-spacing: 0 !important;
    margin: 0 0 20px 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

.jscm-full-specs-table tr { 
    display: table-row !important;
    transition: background-color 0.15s ease !important;
}

.jscm-full-specs-table td.label { 
    display: table-cell !important;
    width: 32% !important; 
    font-size: 0.8125rem !important; 
    color: #475569 !important;
    text-align: right !important; 
    padding: 12px 16px !important;
    font-weight: 600 !important; 
    user-select: none !important;
    background-color: #f8fafc !important;
    border-left: 1px solid #f1f5f9 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: middle !important;
    line-height: 1.6 !important;
}

.jscm-full-specs-table td.value { 
    display: table-cell !important;
    width: 68% !important; 
    font-size: 0.8125rem !important; 
    color: #0b1c3d !important;
    font-weight: 500 !important; 
    text-align: right !important; 
    padding: 12px 16px !important; 
    background-color: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: middle !important;
    line-height: 1.7 !important;
}

.jscm-full-specs-table tr:last-child td { 
    border-bottom: none !important; 
}

.jscm-full-specs-table tr:hover td.value { 
    background-color: #f8fafc !important; 
}

.jscm-full-specs-table td.empty-notice {
    display: table-cell !important;
    text-align: center !important;
    padding: 40px 20px !important;
    color: #64748b !important;
    font-size: 14px !important;
}

@media (max-width: 640px) {
    .jscm-full-specs-table td.label { 
        width: 38% !important; 
        padding: 10px 12px !important;
        font-size: 12px !important;
    }
    .jscm-full-specs-table td.value { 
        width: 62% !important; 
        padding: 10px 12px !important;
        font-size: 12px !important;
    }
}



/* ========================================================
   دیزاین دکمه اختصاصی «مشاهده بیشتر / بستن» جدول
======================================================== */
.jscm-table-btn-wrapper {
    text-align: center !important;
    width: 100% !important;
    margin-top: 12px !important;
    position: relative !important;
    z-index: 3 !important;
}

.jscm-table-readmore-btn {
    background: transparent !important;
    border: 1px solid #00843d !important;
    color: #00843d !important;
    padding: 7px 20px !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: 0.2s !important;

}

/* افکت هاور دکمه در دسکتاپ */
@media (hover: hover) {
    .jscm-table-readmore-btn:hover {
        color: #ffffff !important;
        background: #0b1c3d !important; /* سوییچ به سرمه‌ای */
        border-color: #0b1c3d !important;
        box-shadow: 0 4px 12px rgba(11, 28, 61, 0.12) !important;
    }
    .jscm-table-readmore-btn:hover svg {
        stroke: #ffffff !important;
    }
}

.jscm-table-readmore-btn svg {
    stroke: #00843d !important; /* آیکون طلایی برند */
    transition: transform 0.3s ease !important;
        margin-bottom: -3px;
}



/* مخفی کردن کامل جدول انتخاب متغیرها در سایدبار */
.jscm-sidebar-cart-wrapper table.variations {
    display: none !important;
}

/* دیزاین قیمت، تعداد و دکمه در سایدبار */
.jscm-sidebar-cart-wrapper .woocommerce-variation-price {
    margin-bottom: 15px !important;
    text-align: right !important;
}

.jscm-sidebar-cart-wrapper .woocommerce-variation-add-to-cart {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

/* تمام عرض کردن دکمه سبد خرید در سایدبار */
.jscm-sidebar-cart-wrapper .single_add_to_cart_button {
    width: 100% !important;
    padding: 14px !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
    background: #00843d !important;
    color: #ffffff !important;
    border: none !important;
}


/* =============================================================
   رندرسازی فیکس نوار سبد خرید موبایل (چسبیده به پایین)
============================================================= */
    body.single-product div.product form.cart .jscm-discount-badge {
        background-color: #ef4444 !important;
        color: #ffffff !important;
        font-size: 0.625rem !important;
        font-weight: 600 !important;
        padding: 2px 6px !important;
        border-radius: 8px 8px 8px 0px !important;
        margin-left: 8px !important;
        box-shadow: 0 4px 8px rgba(239, 68, 68, 0.2) !important;
    }

@media (max-width: 768px) {
 

    body.single-product div.product form.cart.variations_form .woocommerce-variation-add-to-cart,
    body.single-product div.product form.cart:not(.variations_form) {
        position: fixed !important; bottom: 0 !important; left: 0 !important; right: 0 !important;
        background: #ffffff !important; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)) 12px !important;
        box-shadow: 0 -10px 30px rgba(11, 28, 61, 0.08) !important; z-index: 999 !important; margin: 0 !important;
        border-radius: 24px 24px 0 0 !important; display: flex !important; flex-wrap: wrap !important; flex-direction: row !important;
        justify-content: space-between !important; align-items: center !important; border-top: 1px solid #f1f5f9 !important;
    }

    body.single-product div.product form.cart .jscm-top-row { display: flex !important; flex: 0 0 100% !important; order: 1 !important; justify-content: space-between !important; align-items: center !important; margin: 0 0 10px 0 !important; padding: 6px 12px !important; background: #f8fafc !important; border-radius: 12px !important; border: 1px solid #f1f5f9 !important; box-sizing: border-box !important; }
    body.single-product div.product form.cart .jscm-product-info { flex: 1 !important; max-width: 65% !important; overflow: hidden !important; }
    body.single-product div.product form.cart .jscm-var-link { font-size: 0.75rem !important; color: #334155 !important; text-decoration: none !important; font-weight: 600 !important; display: block !important; height: 24px !important; overflow: hidden !important; }
    body.single-product div.product form.cart .jscm-price-wrap { display: flex !important; align-items: center !important; flex-direction: row !important; justify-content: flex-end !important; flex-shrink: 0 !important; }

    body.single-product div.product form.cart .jscm-price-wrap,
    body.single-product div.product form.cart .jscm-price-wrap * { 
        font-family: 'yekan', sans-serif !important; 
        letter-spacing: normal !important;
        font-feature-settings: normal !important;
        font-variant-numeric: normal !important;
    }
    body.single-product div.product form.cart .jscm-price-current { display: flex !important; flex-direction: column !important; align-items: flex-end !important; justify-content: center !important; border-right: 1px dashed #cbd5e1 !important; padding-right: 8px !important; white-space: nowrap !important; font-family: 'yekan', sans-serif !important; }
    body.single-product div.product form.cart .jscm-price-current .price { display: flex !important; flex-direction: column !important; align-items: flex-end !important; justify-content: center !important; font-size: inherit !important; font-weight: inherit !important; color: inherit !important; font-family: 'yekan', sans-serif !important; line-height: inherit !important; background: transparent !important; border: none !important; padding: 0 !important; margin: 0 !important; }
    body.single-product div.product form.cart .jscm-price-current del, body.single-product div.product form.cart .jscm-price-current del * { display: block !important; font-size: 0.6875rem !important; color: #94a3b8 !important; text-decoration: line-through !important; line-height: 1.1 !important; white-space: nowrap !important; margin-bottom: 1px !important; font-weight: 400 !important; font-family: 'yekan', sans-serif !important; }
    body.single-product div.product form.cart .jscm-price-current del .woocommerce-Price-currencySymbol { display: none !important; }
    body.single-product div.product form.cart .jscm-price-current ins, body.single-product div.product form.cart .jscm-price-current bdi, body.single-product div.product form.cart .jscm-price-current .amount, body.single-product div.product form.cart .jscm-price-current .woocommerce-Price-currencySymbol, body.single-product div.product form.cart .jscm-price-current ins * { font-size: 0.875rem !important; color: #00843d !important; font-weight: 700 !important; white-space: nowrap !important; line-height: 1.2 !important; text-decoration: none !important; font-family: 'yekan', sans-serif !important; }

    body.single-product div.product form.cart button[type="submit"] { flex: 1 !important; order: 2 !important; margin: 0 0 0 10px !important; background: #00843d !important; color: #ffffff !important; border-radius: 12px !important; font-size: 0.8125rem !important; font-weight: 700 !important; height: 42px !important; border: none !important; }
    body.single-product div.product form.cart .quantity { width: 105px !important; min-width: 105px !important; flex: 0 0 105px !important; order: 3 !important; height: 42px !important; background: #f8fafc !important; border-radius: 12px !important; display: flex !important; justify-content: space-between !important; align-items: center !important; border: 1.5px solid #e2e8f0 !important; margin: 0 !important; padding: 0 2px !important; box-sizing: border-box !important; transition: border-color 0.2s ease !important; }
    body.single-product div.product form.cart .quantity:hover, body.single-product div.product form.cart .quantity:focus-within { border-color: #00843d !important; }
    body.single-product div.product form.cart .jscm-qty-btn { background: transparent !important; border: none !important; width: 32px !important; height: 38px !important; font-size: 18px !important; font-weight: 700 !important; color: #00843d !important; display: flex !important; align-items: center !important; justify-content: center !important; cursor: pointer !important; border-radius: 8px !important; transition: background 0.15s ease, color 0.15s ease !important; user-select: none !important; }
    body.single-product div.product form.cart .jscm-qty-btn:hover { background: rgba(0, 132, 61, 0.08) !important; color: #00843d !important; }
    body.single-product div.product form.cart .quantity input.qty { width: 38px !important; text-align: center !important; border: none !important; background: transparent !important; font-weight: 700 !important; font-size: 0.9375rem !important; color: #161616 !important; height: 34px !important; margin: 0 !important; padding: 0 !important; box-shadow: none !important; outline: none !important; }
    
    /* ساختار اصولی و پدینگ کاملاً متقارن راست و چپ در حالت موبایل */
    body.single-product .jscm-single-product-wrapper,
    body.single-product div.product,
    body.single-product div.product.jscm-single-product-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        box-sizing: border-box !important;
    }

    body.single-product nav.woocommerce-breadcrumb {
        padding-left: 14px !important;
        padding-right: 14px !important;
        margin-top: 8px !important;
        margin-bottom: 8px !important;
        box-sizing: border-box !important;
    }

    body.single-product main#main,
    body.single-product .site-main {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow-x: hidden !important;
    }

    .single-product .jscm-product-gallery-col,
    .single-product .jscm-product-info-col {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 480px) {
    body.single-product .jscm-single-product-wrapper,
    body.single-product div.product,
    body.single-product div.product.jscm-single-product-wrapper {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    body.single-product nav.woocommerce-breadcrumb {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* =============================================================
   استایل سایدبار چسبان جدید دسکتاپ و چیدمان لوکس ۲ ستونه
============================================================= */
@media (min-width: 769px) {
    .jscm-product-main-row { display: flex !important; flex-direction: row-reverse !important; gap: 25px !important; align-items: flex-start !important; width: 100% !important; box-sizing: border-box !important; }
    .jscm-product-gallery-col { flex: 0 0 40% !important; max-width: 40% !important; position: sticky !important; top: 140px !important; box-sizing: border-box !important; }
    .jscm-product-info-col { flex: 1 !important; min-width: 0 !important; display: flex !important; flex-direction: column !important; gap: 5px !important; text-align: right !important; box-sizing: border-box !important; }
    
    .jscm-product-info-col bdi {
    font-size: 1rem;
}

    .jscm-digi-sidebar { width: 400px !important; flex-shrink: 0 !important; position: sticky !important; top: 140px !important; }
    .jscm-sticky-buy-box { background: #ffffff !important; border: 1px solid #e5e7eb !important; border-radius: 16px !important; padding: 24px !important; position: sticky !important; top: 140px !important; }
    .jscm-sbb-img { width: 100% !important; margin-bottom: 15px !important; border-radius: 12px !important; overflow: hidden !important; display: flex !important; justify-content: center !important; align-items: center !important; }
    .jscm-sbb-img img { max-width: 100% !important; max-height: 100% !important; object-fit: contain !important; border-radius:12px; }
    .jscm-sbb-title {font-weight: 600 !important; color: #0b1c3d !important; text-align: center !important;margin-bottom: 0px !important; }
    .jscm-sbb-nav { display: flex !important; justify-content: space-between !important; margin-top: 15px !important; padding-top: 15px !important; border-top: 1px solid #f1f5f9 !important; margin-bottom: 20px !important; }
    .jscm-sbb-nav-link, .jscm-sbb-nav a { font-size: 0.75rem !important; color: #64748b !important; text-decoration: none !important; font-weight: 600 !important; }
    .jscm-sbb-price-display { display: flex !important; justify-content: space-between !important; align-items: center !important; margin-bottom: 15px !important; background: #f8fafc !important; padding: 10px 12px !important; border-radius: 12px !important; border: 1px solid #f1f5f9 !important; }
    .jscm-sbb-label { font-size: 0.8125rem !important; color: #64748b !important; font-weight: 600 !important; }
    .jscm-sbb-price-val bdi, .jscm-sbb-price-val .amount, .jscm-sbb-price-val .woocommerce-Price-currencySymbol { font-size: 1.05rem !important; font-weight: 700 !important; color: #00843d !important; }
    .jscm-sbb-price-val del { display: none !important; }
    .jscm-sbb-scroll-up-btn { width: 100% !important; background: linear-gradient(to top, #00843d 0%, #00a84e 100%) !important; color: #0b1c3d !important; border: none !important; border-radius: 12px !important; height: 44px !important; font-weight: 700 !important; cursor: pointer !important; box-shadow: 0 4px 12px rgba(0, 132, 61,0.15) !important; }
    .jscm-sticky-buy-box form.cart { display: flex !important; flex-direction: column !important; gap: 5px !important; }
    .jscm-sticky-buy-box .single_add_to_cart_button { background: #00843d !important; color: #ffffff !important; border-radius: 12px !important; height: 48px !important; font-weight: 700 !important; border: none !important; }
}

/* =============================================================
   انیمیشن‌های متحرک Ticker در دکمه خرید
============================================================= */
.jscm-ticker-wrapper { display: flex !important; flex-direction: column !important; }
.jscm-ticker-item { height: 24px !important; display: flex !important; align-items: center !important; gap: 6px !important; font-size: 0.78rem !important; font-weight: 500 !important; color: #334155 !important; white-space: nowrap !important; padding-right: 4px !important; }
/* --- تغییر سایز فونت تیکر در دسکتاپ --- */
@media (min-width: 769px) {
    .jscm-ticker-item {
        font-size: 0.85rem !important; /* ابعاد هماهنگ و خوانا برای دسکتاپ */
    }
}

.jscm-ticker-item b { color: #E5A910 !important; font-weight: 700 !important; margin: 0 3px !important; }
.jscm-ticker-wrapper[data-count="5"] { animation: text-slide-5 15s infinite cubic-bezier(0.87, 0, 0.13, 1); }
@keyframes text-slide-5 { 0%, 12% { transform: translateY(0); } 20%, 32% { transform: translateY(-24px); } 40%, 52% { transform: translateY(-48px); } 60%, 72% { transform: translateY(-72px); } 80%, 92% { transform: translateY(-96px); } 100% { transform: translateY(0); } }
.jscm-ticker-wrapper[data-count="4"] { animation: text-slide-4 12s infinite cubic-bezier(0.87, 0, 0.13, 1); }
@keyframes text-slide-4 { 0%, 15% { transform: translateY(0); } 25%, 40% { transform: translateY(-24px); } 50%, 65% { transform: translateY(-48px); } 75%, 90% { transform: translateY(-72px); } 100% { transform: translateY(0); } }
.jscm-ticker-wrapper[data-count="3"] { animation: text-slide-3 9s infinite cubic-bezier(0.87, 0, 0.13, 1); }
@keyframes text-slide-3 { 0%, 20% { transform: translateY(0); } 33%, 53% { transform: translateY(-24px); } 66%, 86% { transform: translateY(-48px); } 100% { transform: translateY(0); } }
.jscm-ticker-wrapper[data-count="2"] { animation: text-slide-2 6s infinite cubic-bezier(0.87, 0, 0.13, 1); }
@keyframes text-slide-2 { 0%, 35% { transform: translateY(0); } 50%, 85% { transform: translateY(-24px); } 100% { transform: translateY(0); } }
.jscm-ticker-wrapper[data-count="1"] { animation: none !important; }



/* =============================================================
   باکس مشخصات افقی و مینی (Mini Specs)
============================================================= */
.jscm-mini-specs-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px 0px 10px;
    border-top: 1px solid #0b1c3d12;
}
.jscm-specs-header { display: flex; justify-content: space-between; align-items: flex-end; }
.jscm-specs-title { font-size: 16px; font-weight: 500; color:#0c1c3d ; }
.jscm-specs-view-all { display: flex !important; align-items: center!important; gap: 2px!important; background: transparent!important; border: none!important; color: #041a3a8f!important; font-size: 12px!important; font-weight: 500!important; cursor: pointer!important; padding: 0!important; margin-left:10px; }
.jscm-specs-horizontal-list { display: flex; justify-content: flex-start; gap: 8px; overflow-x: auto; padding:0px; margin: 0; list-style: none; scroll-snap-type: x mandatory; direction: rtl; }
.jscm-specs-horizontal-list.hide-scrollbar::-webkit-scrollbar { display: none; }
.jscm-specs-horizontal-list.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.jscm-spec-pill { scroll-snap-align: start; padding: 5px 12px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; min-width: 15%; flex-shrink: 0; }
/* --- استایل اختصاصی ویژگی‌های کالا در دسکتاپ --- */
@media (min-width: 769px) {
    .jscm-spec-pill {
        min-width: 15% !important; /* یا بدون !important اگر اولویت کدهای دیگر بالاتر نباشد */
    }
    /* عنوان ویژگی (مثل: برند، شکل فیزیکی) */
    .jscm-spec-label {
        font-size: 0.8rem !important; /* تبدیل از 11px به حدود 13px */
        font-weight: 500 !important;
    }

    /* مقدار ویژگی (مثل: رایمون، مایع) */
    .jscm-spec-value {
        font-size: 0.875rem !important; /* تبدیل از 12px به 14px استاندارد دسکتاپ */
        max-width: 100% !important; /* باز کردن محدودیت عرض در دسکتاپ برای جلوگیری از سه نقطه‌ای شدن بی‌پایه */
    }
}
.jscm-spec-pill-inner { display: flex; flex-direction: column; gap: 5px; }
.jscm-spec-label { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #6b7280; font-weight: 400; }
.jscm-spec-label svg { color: #9ca3af; }
.jscm-spec-value { font-size: 12px; font-weight: 500; color: var(--wp--preset--color--heading-link-blue); max-width: 130px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.jscm-product-bottom-row {
    margin-top: 0px ! IMPORTANT;
}


/* =============================================================
   پاپ‌آپ نیم‌صفحه مشخصات و بررسی کالا (Half-Screen Bottom Sheet)
============================================================= */
#jscmSpecsSheet.jscm-fullscreen-specs-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(11, 28, 61, 0.5) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 9999999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: center !important;
    direction: rtl !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

#jscmSpecsSheet.jscm-fullscreen-specs-modal.show {
    opacity: 1 !important;
    visibility: visible !important;
}

/* کانتینر نیم‌صفحه شیت */
.jscm-fullscreen-specs-container {
    width: 100% !important;
    max-width: 800px !important;
    height: 55vh !important;
    max-height: 60vh !important;
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border-radius: 22px 22px 0 0 !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25) !important;
    overflow: hidden !important;
    margin: 0 auto !important;
    padding: 0 !important;
    transform: translateY(100%) !important;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    cursor: default !important;
}

#jscmSpecsSheet.jscm-fullscreen-specs-modal.show .jscm-fullscreen-specs-container {
    transform: translateY(0) !important;
}

/* هندل بالای شیت */
.jscm-sheet-handle {
    width: 38px !important;
    height: 4px !important;
    background: #cbd5e1 !important;
    border-radius: 4px !important;
    margin: 8px auto 2px !important;
    flex-shrink: 0 !important;
}

/* هدر مودال */
.jscm-specs-modal-header {
    flex-shrink: 0 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 10px 18px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 20 !important;
}

@media (min-width: 769px) {
    .jscm-specs-modal-header {
        padding: 12px 24px !important;
    }
}

.jscm-specs-header-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    min-width: 0 !important;
    flex: 1 !important;
    padding-left: 12px !important;
}

.jscm-specs-modal-badge {
    font-size: 10px !important;
    font-weight: 600 !important;
    color: #00843d !important;
    background: rgba(0, 132, 61, 0.08) !important;
    padding: 2px 7px !important;
    border-radius: 5px !important;
    display: inline-block !important;
    width: fit-content !important;
}

.jscm-specs-modal-title {
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0b1c3d !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.4 !important;
}

@media (min-width: 769px) {
    .jscm-specs-modal-title {
        font-size: 16px !important;
    }
}

/* دکمه بستن */
.jscm-specs-modal-close {
    background: #f1f5f9 !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 6px 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    color: #334155 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.jscm-specs-modal-close:hover {
    background: #e2e8f0 !important;
    color: #0b1c3d !important;
}

.jscm-specs-modal-close svg {
    color: #64748b !important;
}

/* نوار تب‌ها */
.jscm-specs-tabs-bar {
    flex-shrink: 0 !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 0 16px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.jscm-specs-tabs-inner {
    display: flex !important;
    gap: 6px !important;
    width: 100%;
}

.jscm-specs-tabs-bar .jscm-tab {
    background: transparent !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    border-radius: 0 !important;
}

.jscm-specs-tabs-bar .jscm-tab:hover {
    color: #0b1c3d !important;
}

.jscm-specs-tabs-bar .jscm-tab.active {
    color: #00843d !important;
    border-bottom-color: #00843d !important;
    background: transparent !important;
}

.jscm-specs-tabs-bar .jscm-tab svg {
    stroke-width: 2 !important;
}

/* بدنه اسکرول‌خور شیت */
.jscm-specs-modal-body {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    background: #ffffff !important;
    padding: 15px 16px 30px !important;
}

@media (min-width: 769px) {
    .jscm-specs-modal-body {
        padding: 18px 24px 35px !important;
    }
}

.jscm-specs-body-inner {
    width: 100% !important;
}

/* محتوای متنی تب‌ها */
.jscm-specs-text-content {
    font-size: 14px !important;
    line-height: 2.2 !important;
    color: #1e293b !important;
    text-align: justify !important;
    padding: 10px 0 !important;
}

.jscm-specs-text-content p {
    margin-bottom: 16px !important;
    color: #334155 !important;
    font-size: 14px !important;
    line-height: 2.2 !important;
}

/* =============================================================
   گالری تصاویر و لایت‌باکس پاپ‌آپ (موبایل و دسکتاپ)
============================================================= */
.jscm-gallery-container { width: 100%; margin-bottom: 20px; direction: rtl; }
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.jscm-open-lightbox { cursor: pointer; }

.jscm-mobile-gallery { display: block; position: relative; width: 100%; }
.jscm-gallery-wrapper { width: 100%; overflow: hidden; position: relative; }
.jscm-gallery-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; padding-right: 0px; -webkit-overflow-scrolling: touch; }
.jscm-gallery-group { display: flex; gap: 12px; flex-shrink: 0; }
.jscm-gallery-large { width: 300px; height: 300px; min-width: 300px; min-height: 300px; flex-shrink: 0; background-color: #f8fafc; border: 1px solid #e5e7eb; border-radius: 12px; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.jscm-gallery-small-col { display: flex; flex-direction: column; gap: 12px; height: 300px; }
.jscm-gallery-small { width: 144px; height: 144px; min-width: 144px; min-height: 144px; flex-shrink: 0; background-color: #f8fafc; border: 1px solid #e5e7eb; border-radius: 12px; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.jscm-gal-img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; display: block; }
.jscm-gallery-badge { position: absolute; bottom: 25px; left: 15px; right: auto; background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(4px); border-radius: 14px; display: flex; align-items: center; gap: 6px; padding: 0px 8px; color: #fff; z-index: 10; font-size: 0.75rem !important; font-weight: 500 !important; direction: rtl; }
.jscm-badge-divider { width: 1px; height: 12px; background: rgba(255,255,255,0.3); }
.jscm-badge-icon { display: flex; align-items: center; justify-content: center; }
.jscm-scroll-track { width: 40px; height: 3px; background: rgba(255,255,255,0.2); border-radius: 4px; position: relative; overflow: hidden; }
.jscm-scroll-thumb { width: 12px; height: 100%; background: #fff; border-radius: 4px; position: absolute; right: 0; transition: transform 0.1s ease-out; }
span.jscm-badge-count { font-size: 0.75rem !important; font-weight: 600 !important; }

/* دسکتاپ گالری */
.jscm-desktop-gallery { display: none; width: 100%; max-width: 100%; margin: 0 auto; }
.jscm-desktop-main-image { width: 100% !important; aspect-ratio: 1 / 1 !important; background: #f8fafc !important; border: 1px solid #e2e8f0 !important; border-radius: 16px !important; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important; transition: border-color 0.3s; margin-bottom: 15px; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.jscm-desktop-main-image:hover { border-color: #00843d !important; }
.jscm-desktop-main-img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.jscm-desktop-thumbnails { display: flex; gap: 12px !important; justify-content: flex-start !important; overflow-x: auto; padding-bottom: 5px; margin-top: 16px !important; }
.jscm-desktop-thumb { width: 80px !important; height: 80px !important; min-width: 80px !important; border-radius: 12px !important; border: 1px solid #e2e8f0 !important; transition: all 0.2s ease !important; background: #f8fafc; overflow: hidden; }
.jscm-desktop-thumb:hover { border-color: #00843d !important; transform: translateY(-2px); }
.jscm-desktop-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; display: block; }
@media (min-width: 768px) { .jscm-mobile-gallery { display: none; } .jscm-desktop-gallery { display: block; } }

/* لایت‌باکس */
.jscm-lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(4px); z-index: 999999 !important; display: flex; align-items: flex-end; opacity: 0; visibility: hidden; transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1); direction: rtl; will-change: opacity, visibility; }
.jscm-lightbox-overlay.show { opacity: 1; visibility: visible; }
.jscm-lightbox-box { width: 100%; background: #ffffff; border-radius: 24px 24px 0 0; padding: 16px; box-sizing: border-box; display: flex; flex-direction: column; transform: translate3d(0, 100%, 0); transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); height: 70vh !important; max-height: 70vh !important; will-change: transform; }
.jscm-lightbox-overlay.show .jscm-lightbox-box { transform: translate3d(0, 0, 0); }
.jscm-lightbox-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid #f1f5f9; flex-shrink: 0; }
.jscm-lightbox-title { font-size: 0.875rem !important; font-weight: 600 !important; color: #0f172a; }
.jscm-lightbox-close { background: #f1f5f9; border: none; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.jscm-lightbox-main-area { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 12px 0; touch-action: pan-y; }
.jscm-lightbox-main-area img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply;border-radius: 12px !important; }
.jscm-lightbox-thumbs-track { height: 64px !important; min-height: 64px !important; display: flex !important; gap: 10px !important; padding: 6px 0 !important; overflow-x: auto !important; overflow-y: hidden !important; background: #f8fafc !important; border-top: 1px solid #f1f5f9 !important; border-radius: 12px !important; margin-top: 4px !important; margin-bottom: 12px !important; flex-shrink: 0 !important; }
.jscm-lb-thumb { width: 48px !important; height: 48px !important; flex-shrink: 0 !important; border: 2px solid transparent !important; border-radius: 8px !important; overflow: hidden !important; cursor: pointer !important; opacity: 0.4; transition: all 0.2s ease; background: #ffffff !important; display: flex !important; justify-content: center !important; align-items: center !important; box-sizing: border-box !important; }
.jscm-lb-thumb.active { opacity: 1; border-color: #00843d !important; box-shadow: 0 4px 10px rgba(0, 132, 61, 0.15); }
.jscm-lb-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.jscm-lightbox-btn-close-bottom { width: 100% !important; height: 40px !important; min-height: 40px !important; background: #f1f5f9 !important; color: #334155 !important; border: none !important; border-radius: 12px !important; font-size: 0.8125rem !important; font-weight: 600 !important; cursor: pointer !important; display: flex !important; align-items: center !important; justify-content: center !important; flex-shrink: 0 !important; transition: background 0.2s; }
.jscm-lightbox-btn-close-bottom:hover { background: #e2e8f0 !important; }

table.variations label {
    margin-bottom: 15px;
    font-size: 15px;
    color: #0b1c3d;
    font-weight: 500 !important;
    margin-top: 15px;
}

form.variations_form table.variations label {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ========================================================
   فرم افزودن به سبد خرید و متغیرها (دیزاین کپسولی)
======================================================== */
body.single-product button.single_add_to_cart_button,
body.single-product div.product form.cart button[type="submit"] {
    background: #00843d !important;
    color: #ffffff !important;
    border: none !important;
}
.woocommerce div.product form.cart { margin-bottom: 10px; z-index: 0 !important; }
.woocommerce-variation-add-to-cart { display: flex !important; flex-wrap: wrap !important; justify-content: space-between !important; align-items: center !important; background: #ffffff !important; padding: 16px !important; border-radius: 16px !important; border: 1px solid #f1f5f9 !important; box-shadow: 0 4px 20px rgba(0,0,0,0.03) !important; margin-top: 15px !important; width: 100% !important; box-sizing: border-box !important; }
.woocommerce-variation-add-to-cart .jscm-top-row { flex: 0 0 100% !important; display: flex !important; justify-content: space-between !important; align-items: center !important; background: #f8fafc !important; padding: 12px !important; border-radius: 12px !important; border: 1px solid #e2e8f0 !important; margin-bottom: 16px !important; box-sizing: border-box !important; }
.woocommerce-variation-add-to-cart .woocommerce-variation-price { display: none !important; }
.jscm-price-wrap { display: flex !important; align-items: center !important; gap: 8px !important; }

.woocommerce-variation-add-to-cart .jscm-price-current del { display: block !important; }
.woocommerce-variation-add-to-cart button.single_add_to_cart_button { flex: 1 !important; margin-right: 15px !important; background: #00843d !important; color: #ffffff !important; border: none !important; border-radius: 12px !important; height: 48px !important; font-size: 1rem !important; font-weight: 600 !important; box-shadow: 0 4px 12px rgba(0, 132, 61, 0.25) !important; cursor: pointer !important; display: flex !important; justify-content: center !important; align-items: center !important; }
.woocommerce-variation-add-to-cart .quantity { width: 120px !important; flex: 0 0 120px !important; height: 48px !important; background: #f8fafc !important; border-radius: 12px !important; display: flex !important; justify-content: space-between !important; align-items: center !important; border: 1.5px solid #e2e8f0 !important; margin: 0 !important; padding: 0 4px !important; box-sizing: border-box !important; transition: border-color 0.2s ease !important; }
.woocommerce-variation-add-to-cart .quantity:hover, .woocommerce-variation-add-to-cart .quantity:focus-within { border-color: #00843d !important; }
.woocommerce-variation-add-to-cart .quantity input.qty { width: 44px !important; height: 40px !important; text-align: center !important; background: transparent !important; color: #161616 !important; border: none !important; font-weight: 700 !important; font-size: 1.05rem !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; outline: none !important; }
.woocommerce-variation-add-to-cart .quantity .jscm-qty-btn { background: transparent !important; border: none !important; color: #00843d !important; font-size: 1.3rem !important; font-weight: 700 !important; width: 34px !important; height: 40px !important; cursor: pointer !important; display: flex !important; justify-content: center !important; align-items: center !important; border-radius: 8px !important; transition: background 0.15s ease, color 0.15s ease !important; user-select: none !important; }
.woocommerce-variation-add-to-cart .quantity .jscm-qty-btn:hover { background: rgba(0, 132, 61, 0.08) !important; color: #00843d !important; }

/* ایجاد یک پنجره با ارتفاع ثابت برای مخفی کردن آیتم‌های اضافی */
.jscm-ticker-mask {
    height: 24px !important; 
    overflow: hidden !important; 
    position: relative !important;
    width: 100% !important;
    display: block !important;
}

/* قفل اسپینر و حالت دکمه */
form.cart button[type="submit"]:disabled, form.cart button[type="submit"].loading, form.cart button[type="submit"]:hover:disabled { color: #ffffff !important; background: #00843d !important; opacity: 0.85 !important; }
form.cart button[type="submit"] .jscm-btn-spinner { stroke: #ffffff !important; width: 18px !important; height: 18px !important; display: inline-block !important; vertical-align: middle !important; margin-left: 8px !important; animation: jscm-btn-spin 0.8s linear infinite !important; }
@keyframes jscm-btn-spin { to { transform: rotate(360deg); } }
.jscm-mobile-only { display: none; }
/* ========================================================
   استایل دسکتاپ فرم خرید محصول ساده و متغیر در ستون اصلی و سایدبار
======================================================== */
@media (min-width: 769px) {
    /* فرم خرید محصول ساده در ستون اصلی دسکتاپ - هماهنگ و یکپارچه با متغیرها */
    body.single-product div.product .jscm-product-info-col form.cart:not(.variations_form) {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        background: #ffffff !important;
        padding: 16px !important;
        border-radius: 16px !important;
        border: 1px solid #f1f5f9 !important;
        box-shadow: none !important;
        margin-top: 15px !important;
        margin-bottom: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        position: static !important;
    }

    body.single-product div.product .jscm-product-info-col form.cart:not(.variations_form) .jscm-top-row {
        flex: 0 0 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        background: #f8fafc !important;
        padding: 12px !important;
        border-radius: 12px !important;
        border: 1px solid #e2e8f0 !important;
        margin-bottom: 16px !important;
        box-sizing: border-box !important;
    }

    body.single-product div.product .jscm-product-info-col form.cart:not(.variations_form) .hospa-size-guide-btn-wrap {
        flex: 0 0 100% !important;
        margin: 0 0 12px 0 !important;
    }

    body.single-product div.product .jscm-product-info-col form.cart:not(.variations_form) button.single_add_to_cart_button {
        flex: 1 !important;
        margin-right: 15px !important;
        margin-left: 0 !important;
        background: #00843d !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 12px !important;
        height: 48px !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        box-shadow: 0 4px 12px rgba(0, 132, 61, 0.25) !important;
        cursor: pointer !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        transition: background 0.2s ease, transform 0.15s ease !important;
    }

    body.single-product div.product .jscm-product-info-col form.cart:not(.variations_form) button.single_add_to_cart_button:hover {
        background: #006b31 !important;
    }

    body.single-product div.product .jscm-product-info-col form.cart:not(.variations_form) .quantity {
        width: 120px !important;
        flex: 0 0 120px !important;
        height: 48px !important;
        background: #f8fafc !important;
        border-radius: 12px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border: 1.5px solid #e2e8f0 !important;
        margin: 0 !important;
        padding: 0 4px !important;
        box-sizing: border-box !important;
        transition: border-color 0.2s ease !important;
    }

    body.single-product div.product .jscm-product-info-col form.cart:not(.variations_form) .quantity:hover,
    body.single-product div.product .jscm-product-info-col form.cart:not(.variations_form) .quantity:focus-within {
        border-color: #00843d !important;
    }

    body.single-product div.product .jscm-product-info-col form.cart:not(.variations_form) .quantity input.qty {
        width: 44px !important;
        height: 40px !important;
        text-align: center !important;
        background: transparent !important;
        color: #161616 !important;
        border: none !important;
        font-weight: 700 !important;
        font-size: 1.05rem !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        outline: none !important;
    }

    body.single-product div.product .jscm-product-info-col form.cart:not(.variations_form) .quantity .jscm-qty-btn,
    body.single-product div.product form.cart .jscm-qty-btn {
        background: transparent !important;
        border: none !important;
        color: #00843d !important;
        font-size: 1.3rem !important;
        font-weight: 700 !important;
        width: 34px !important;
        height: 40px !important;
        cursor: pointer !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        border-radius: 8px !important;
        transition: background 0.15s ease, color 0.15s ease !important;
        user-select: none !important;
    }

    body.single-product div.product .jscm-product-info-col form.cart:not(.variations_form) .quantity .jscm-qty-btn:hover {
        background: rgba(0, 132, 61, 0.08) !important;
        color: #00843d !important;
    }

    /* فرم خرید محصول ساده در سایدبار چسبان دسکتاپ */
    .jscm-sidebar-cart-wrapper form.cart:not(.variations_form) {
        display: flex !important;
        flex-wrap: wrap !important;
        flex-direction: row !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin-top: 15px !important;
        margin-bottom: 0 !important;
        background: transparent !important;
        border: none !important;
        padding: 0px !important;
        box-shadow: none !important;
        width: 100% !important;
        box-sizing: border-box !important;
        position: static !important;
    }

    .jscm-sidebar-cart-wrapper form.cart:not(.variations_form) .jscm-top-row {
        flex: 0 0 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        background: #f8fafc !important;
        padding: 10px 12px !important;
        border-radius: 12px !important;
        border: 1px solid #e2e8f0 !important;
        margin-bottom: 6px !important;
        box-sizing: border-box !important;
    }

    /* دکمه راهنمای سایز محصول ساده فقط در ستون اصلی نمایش داده شود (نه سایدبار) */
    .jscm-sidebar-cart-wrapper > .hospa-size-guide-btn-wrap {
        display: none !important;
    }

    .jscm-sidebar-cart-wrapper form.cart:not(.variations_form) .quantity {
        margin: 0 !important;
        width: 110px !important;
        min-width: 110px !important;
        flex: 0 0 110px !important;
        height: 48px !important;
        background: #f8fafc !important;
        border-radius: 12px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border: 1.5px solid #e2e8f0 !important;
        padding: 0 4px !important;
        box-sizing: border-box !important;
        transition: border-color 0.2s ease !important;
    }

    .jscm-sidebar-cart-wrapper form.cart:not(.variations_form) .quantity:hover,
    .jscm-sidebar-cart-wrapper form.cart:not(.variations_form) .quantity:focus-within {
        border-color: #00843d !important;
    }

    .jscm-sidebar-cart-wrapper form.cart:not(.variations_form) .quantity input.qty {
        width: 38px !important;
        height: 40px !important;
        text-align: center !important;
        background: transparent !important;
        color: #161616 !important;
        border: none !important;
        font-weight: 700 !important;
        font-size: 1rem !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        outline: none !important;
    }

    .jscm-sidebar-cart-wrapper form.cart:not(.variations_form) .quantity .jscm-qty-btn {
        background: transparent !important;
        border: none !important;
        color: #00843d !important;
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        width: 32px !important;
        height: 40px !important;
        cursor: pointer !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        border-radius: 8px !important;
        transition: background 0.15s ease, color 0.15s ease !important;
        user-select: none !important;
    }

    .jscm-sidebar-cart-wrapper form.cart:not(.variations_form) .quantity .jscm-qty-btn:hover {
        background: rgba(0, 132, 61, 0.08) !important;
        color: #00843d !important;
    }

    .jscm-sidebar-cart-wrapper form.cart:not(.variations_form) button.single_add_to_cart_button {
        flex: 1 !important;
        width: auto !important;
        margin: 0 !important;
        background: #00843d !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 12px !important;
        height: 48px !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        box-shadow: 0 4px 12px rgba(0, 132, 61, 0.25) !important;
        cursor: pointer !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
        transition: background 0.2s ease, transform 0.15s ease !important;
    }

    .jscm-sidebar-cart-wrapper form.cart:not(.variations_form) button.single_add_to_cart_button:hover {
        background: #006b31 !important;
    }
}


/* ==========================================
   ۱. دیزاین اختصاصی و مینی‌مال متغیرها (Swatches) - نسخه ظریف
========================================== */

/* نابود کردن هرگونه استایل، بک‌گراند و کادر پیش‌فرض قالب */
form.variations_form table.variations,
form.variations_form table.variations tbody,
form.variations_form table.variations tr,
form.variations_form table.variations th,
form.variations_form table.variations td {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    width: 100% !important;
    text-align: right !important;
}


form.variations_form table.variations {
    margin-top: 18px !important;
    padding-top: 0 !important;
    width: 100% !important;
}

/* فاصله عنوان تا لیست کشویی */
form.variations_form table.variations th.label,
form.variations_form table.variations td.label {
    margin-bottom: 8px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* عنوان ویژگی — هم‌تراز با ابتدای select */
form.variations_form table.variations th.label label,
form.variations_form table.variations td.label label {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    color: #0c1c3d !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1.4 !important;
}

form.variations_form table.variations th.label label::after,
form.variations_form table.variations td.label label::after {
    content: ':';
    margin-inline-start: 2px;
}

/* کانتینر مقادیر */
form.variations_form table.variations td.value {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

form.variations_form table.variations tr {
    margin-bottom: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

form.variations_form table.variations select {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 16px 0 44px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    color: #0c1c3d !important;
    background-color: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    box-sizing: border-box !important;
    box-shadow: 0 1px 3px rgba(12, 28, 61, 0.04) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left 14px center !important;
    background-size: 18px 18px !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease !important;
}

form.variations_form table.variations select:hover {
    border-color: #00843d !important;
    background-color: #fafcfb !important;
    box-shadow: 0 3px 10px rgba(0, 132, 61, 0.08) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2300843d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
}

form.variations_form table.variations select:focus {
    outline: none !important;
    border-color: #00843d !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3.5px rgba(0, 132, 61, 0.12), 0 4px 12px rgba(0, 132, 61, 0.06) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2300843d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
}

form.variations_form table.variations select option {
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #0c1c3d;
    background-color: #ffffff;
}

/* باکس نگهدارنده دکمه‌های متغیر */
.jscm-swatches {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px; /* کاهش فاصله افقی بین دکمه‌ها */
    width: 100%;
}

/* استایل بدنه دکمه‌ها (مینی‌مال و جمع‌وجور) */
.jscm-swatch {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    min-height: 20px;
}
/* اعمال هاور فقط در دسکتاپ */
@media (hover: hover) {
    .jscm-swatch:hover {
        border-color: #00843d;
        color: #0b1c3d;
        background: #fafaf9; /* تغییر رنگ پس‌زمینه بسیار محو */
    }
}

/* حالت انتخاب شده (Active) */
.jscm-swatch.selected {
    background: #0b1c3d;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(11, 28, 61, 0.15); /* سایه نرم‌تر */
}

.jscm-swatch.selected::before {
    content: "✓";
    margin-left: 4px;
    font-weight: 800;
    font-size: 0.9rem;
}

/* دیزاین دکمه پاک کردن - هم‌تراز با سلکتور، مدرن، نرم و بدون پرش */
form.variations_form a.reset_variations {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: flex-start !important; /* تراز دقیق به لبه راست زیر منوی کشویی */
    gap: 5px !important;
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    color: #e11d48 !important;
    background: #fff1f2 !important;
    border: 1px solid #ffe4e6 !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    margin: 4px 0 0 0 !important;
    box-shadow: 0 1px 2px rgba(225, 29, 72, 0.05) !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
    max-height: 36px;
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.2s ease !important;
    overflow: hidden !important;
}

/* آیکون ضربدر مدرن و ظریف SVG */
form.variations_form a.reset_variations::before {
    content: "" !important;
    display: inline-block !important;
    width: 11px !important;
    height: 11px !important;
    margin: 0 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23e11d48' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    transition: transform 0.25s ease !important;
}

@media (hover: hover) {
    form.variations_form a.reset_variations:hover {
        background: #e11d48 !important;
        border-color: #e11d48 !important;
        color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(225, 29, 72, 0.22) !important;
        transform: translateY(-1px) !important;
    }

    form.variations_form a.reset_variations:hover::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E") !important;
        transform: rotate(90deg) !important;
    }
}

form.variations_form a.reset_variations:active {
    transform: scale(0.96) !important;
}

/* انیمیشن فوق‌العاده نرم، روان و بدون پرش هنگام ناپدید شدن دکمه پاک کردن متغیر */
form.variations_form a.reset_variations[style*="visibility: hidden"],
form.variations_form a.reset_variations[style*="display: none"] {
    opacity: 0 !important;
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-color: transparent !important;
    pointer-events: none !important;
    transform: translateY(-6px) scale(0.92) !important;
    visibility: hidden !important;
}

/* نمایش مجدد و نرم هنگام انتخاب متغیر جدید */
form.variations_form a.reset_variations[style*="visibility: visible"] {
    opacity: 1 !important;
    max-height: 36px !important;
    padding: 4px 10px !important;
    margin: 4px 0 0 0 !important;
    border: 1px solid #ffe4e6 !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
    visibility: visible !important;
}

/* ========================================================
   استایل دکمه افزودن به سبد خرید در حالت خاموش / غیرفعال
======================================================== */
body.single-product .woocommerce-variation-add-to-cart-disabled .single_add_to_cart_button,
body.single-product .single_add_to_cart_button.disabled:not(.is-default-active),
body.single-product .single_add_to_cart_button:disabled:not(.is-default-active),
body.single-product .single_add_to_cart_button[aria-disabled="true"]:not(.is-default-active),
body.single-product div.product form.cart.variations_form .single_add_to_cart_button.disabled:not(.is-default-active),
body.single-product div.product form.cart.variations_form .single_add_to_cart_button.wc-variation-selection-needed:not(.is-default-active),
body.single-product div.product form.cart.variations_form .single_add_to_cart_button[aria-disabled="true"]:not(.is-default-active),
body.single-product .jscm-sidebar-cart-wrapper .single_add_to_cart_button.disabled:not(.is-default-active),
body.single-product .jscm-sidebar-cart-wrapper .single_add_to_cart_button.wc-variation-selection-needed:not(.is-default-active),
body.single-product .jscm-sidebar-cart-wrapper .single_add_to_cart_button[aria-disabled="true"]:not(.is-default-active),
body.single-product .jscm-sticky-buy-box .single_add_to_cart_button.disabled:not(.is-default-active),
body.single-product .jscm-sticky-buy-box .single_add_to_cart_button.wc-variation-selection-needed:not(.is-default-active),
body.single-product .jscm-sticky-buy-box .single_add_to_cart_button[aria-disabled="true"]:not(.is-default-active),
body.single-product form.cart.variations_form button[type="submit"].disabled:not(.is-default-active),
body.single-product form.cart.variations_form button[type="submit"].wc-variation-selection-needed:not(.is-default-active),
body.single-product form.cart.variations_form button[type="submit"][aria-disabled="true"]:not(.is-default-active) {
    background: #00843d !important;
    color: #ffffff !important;
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
    filter: grayscale(25%) !important;
    transition: opacity 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
    pointer-events: auto !important;
}

/* حالت فعال و روشن دکمه خرید (برای متغیر پیش‌فرض از بدو لود و همچنین پس از انتخاب متغیر) */
body.single-product .has-default-variation .single_add_to_cart_button,
body.single-product .single_add_to_cart_button.is-default-active,
body.single-product form.cart.variations_form .single_add_to_cart_button.is-default-active,
body.single-product form.cart.variations_form .single_add_to_cart_button:not(.disabled):not(.wc-variation-selection-needed):not([aria-disabled="true"]):not(:disabled),
body.single-product .woocommerce-variation-add-to-cart:not(.woocommerce-variation-add-to-cart-disabled) .single_add_to_cart_button:not(.disabled):not(.wc-variation-selection-needed):not([aria-disabled="true"]):not(:disabled),
body.single-product .jscm-sidebar-cart-wrapper form.variations_form .single_add_to_cart_button:not(.disabled):not(.wc-variation-selection-needed):not([aria-disabled="true"]):not(:disabled),
body.single-product .jscm-sticky-buy-box form.variations_form .single_add_to_cart_button:not(.disabled):not(.wc-variation-selection-needed):not([aria-disabled="true"]):not(:disabled) {
    opacity: 1 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0, 132, 61, 0.25) !important;
    filter: none !important;
}

body.single-product .single_add_to_cart_button.disabled:not(.is-default-active):hover,
body.single-product .single_add_to_cart_button.wc-variation-selection-needed:not(.is-default-active):hover,
body.single-product .single_add_to_cart_button[aria-disabled="true"]:not(.is-default-active):hover,
body.single-product .woocommerce-variation-add-to-cart-disabled .single_add_to_cart_button:hover,
body.single-product .jscm-sidebar-cart-wrapper .single_add_to_cart_button.disabled:not(.is-default-active):hover,
body.single-product .jscm-sidebar-cart-wrapper .single_add_to_cart_button.wc-variation-selection-needed:not(.is-default-active):hover,
body.single-product .jscm-sticky-buy-box .single_add_to_cart_button.disabled:not(.is-default-active):hover,
body.single-product .jscm-sticky-buy-box .single_add_to_cart_button.wc-variation-selection-needed:not(.is-default-active):hover,
body.single-product form.cart.variations_form button[type="submit"].disabled:not(.is-default-active):hover,
body.single-product form.cart.variations_form button[type="submit"].wc-variation-selection-needed:not(.is-default-active):hover,
body.single-product form.cart.variations_form button[type="submit"][aria-disabled="true"]:not(.is-default-active):hover {
    opacity: 0.45 !important;
    background: #00843d !important;
    box-shadow: none !important;
    transform: none !important;
    filter: grayscale(25%) !important;
    cursor: not-allowed !important;
}


/* ==========================================
   ۲. اصلاح نحوه نمایش قیمت اصلی و تخفیف‌خورده (یکپارچه در دسکتاپ و موبایل)
========================================== */
.jscm-price-wrap,
.jscm-price-wrap *,
.jscm-price-current,
.jscm-price-current * {
    font-family: 'yekan', sans-serif !important;
    letter-spacing: normal !important;
    font-feature-settings: normal !important;
    font-variant-numeric: normal !important;
}

.jscm-price-current {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    font-family: 'yekan', sans-serif !important;
}

/* خنثی‌سازی کامل wrapper کلاس .price هنگام تغییر متغیر */
.jscm-price-current .price,
.jscm-price-current span.price {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
    font-family: 'yekan', sans-serif !important;
    line-height: inherit !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* استایل قیمت خط‌خورده (تخفیف) */
.jscm-price-current del,
.jscm-price-current del bdi,
.jscm-price-current del .amount,
.jscm-price-current .price del,
.jscm-price-current .price del bdi,
.jscm-price-current .price del .amount,
body.single-product div.product form.cart .jscm-price-current del,
body.single-product div.product form.cart .jscm-price-current del bdi,
body.single-product div.product form.cart .jscm-price-current del .amount { 
    display: block !important;
    text-align: left !important;
    font-size: 0.6875rem !important;
    color: #94a3b8 !important;
    text-decoration: line-through !important;
    font-weight: 400 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    margin-bottom: 1px !important;
    font-family: 'yekan', sans-serif !important;
}

.jscm-price-current del .woocommerce-Price-currencySymbol,
.jscm-price-current .price del .woocommerce-Price-currencySymbol,
body.single-product div.product form.cart .jscm-price-current del .woocommerce-Price-currencySymbol {
    display: none !important;
}

/* استایل قیمت فعال و اصلی (رنگ سبز، بولد و اندازه استاندارد) */
.jscm-price-current ins,
.jscm-price-current bdi,
.jscm-price-current .amount,
.jscm-price-current .woocommerce-Price-currencySymbol,
.jscm-price-current .price ins,
.jscm-price-current .price bdi,
.jscm-price-current .price .amount,
.jscm-price-current .price .woocommerce-Price-currencySymbol,
.jscm-price-current ins *,
.jscm-price-current .price ins *,
body.single-product div.product form.cart .jscm-price-current ins,
body.single-product div.product form.cart .jscm-price-current bdi,
body.single-product div.product form.cart .jscm-price-current .amount,
body.single-product div.product form.cart .jscm-price-current .woocommerce-Price-currencySymbol {
    text-decoration: none !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    color: #00843d !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    font-family: 'yekan', sans-serif !important;
}

/* ==========================================
   حذف قیمت اضافی جاوااسکریپت ووکامرس
========================================== */
.woocommerce-variation-price, 
div.woocommerce-variation-price, 
.single_variation_wrap .woocommerce-variation-price {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* ========================================================
   مدیریت هوشمند نمایش "معرفی محصول" در دسکتاپ و موبایل
======================================================== */

/* --- تنظیمات حالت دسکتاپ (صفحات بزرگتر از 768px) --- */
@media (min-width: 769px) {
    /* مخفی کردن کامل سکشن "معرفی" پایینی در دسکتاپ */
    #jscm-sec-intro {
        display: none !important;
    }
    
    /* (معرفی زیر عنوان به صورت پیش‌فرض در دسکتاپ نمایش داده می‌شود) */
}

/* --- تنظیمات حالت موبایل (صفحات کوچکتر از 768px) --- */
@media (max-width: 768px) {
    /* مخفی کردن معرفی کوتاه زیر عنوان در موبایل */
    .jscm-desktop-short-desc {
        display: none !important;
    }
    
    /* (سکشن معرفی پایینی به صورت پیش‌فرض در موبایل نمایش داده می‌شود) */
}

/* ==========================================
   ۱. حذف هاله سفید از روی متن "مشاهده بیشتر"
========================================== */
.jscm-readmore-gradient {
    background: none !important;
    display: none !important;
}

/* ==========================================
   ۲. حذف سایه (Shadow) از باکس افزودن به سبد خرید
========================================== */
.woocommerce-variation-add-to-cart {
    box-shadow: none !important;
}

/* حذف سایه نوار چسبان پایین گوشی در حالت موبایل */
@media (max-width: 768px) {
    body.single-product div.product form.cart.variations_form .woocommerce-variation-add-to-cart,
    body.single-product div.product form.cart:not(.variations_form) {
        box-shadow: none !important;
        border-top: 1px solid #e5e7eb; /* فقط یک خط حاشیه ظریف باقی می‌ماند */
    }
}

/* ========================================================
   ۱. فیکس قطعی انیمیشن تیکر (جلوگیری از نمایش همزمان خطوط)
======================================================== */
/* این کد محفظه تیکر را دقیقاً روی ارتفاع یک خط (24px) قفل می‌کند و بقیه را مخفی نگه می‌دارد */
body.single-product div.product form.cart .jscm-var-link {
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    overflow: hidden !important;
    display: block !important;
    position: relative !important;
}

/* ========================================================
   ۲. فیکس بسته ماندن معرفی کوتاه دسکتاپ در لود اولیه (نسخه روان)
======================================================== */
/* قفل کردن ارتفاع روی ۵۲ پیکسل (دقیقاً اندازه ۲ خط) */
.jscm-desktop-short-desc .jscm-readmore-wrap {
    max-height: 52px !important;
    overflow: hidden !important;
    position: relative !important;
    /* تغییر انیمیشن به مدل سریع‌تر و نرم‌تر برای حذف کامل حس تاخیر */
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* حالتی که با جاوااسکریپت (دکمه مشاهده بیشتر) فعال می‌شود */
.jscm-desktop-short-desc .jscm-readmore-wrap.expanded {
    /* کاهش سقف ارتفاع برای فیکس شدن قطعی تاخیر انیمیشن برگشت */
    max-height: 320px !important; 
}

/* اطمینان از نمایش درست هاله محوشونده در حالت بسته */
.jscm-desktop-short-desc .jscm-readmore-gradient {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 35px !important;
    background: linear-gradient(to bottom, rgba(246, 244, 239, 0), rgba(246, 244, 239, 1)) !important; /* هم‌رنگ با بک‌گراند کرم سایت شما */
    pointer-events: none !important;
    transition: opacity 0.2s ease !important;
    display: block !important;
}

/* مخفی کردن کامل هاله وقتی متن باز می‌شود */
.jscm-desktop-short-desc .jscm-readmore-wrap.expanded .jscm-readmore-gradient {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* ========================================================
   کنار هم قرار دادن انتخاب تعداد و دکمه خرید در سایدبار
======================================================== */

.jscm-sidebar-cart-wrapper .woocommerce-variation-add-to-cart {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 0px !important;
    margin-top: 15px !important;
    border: none !important;
    padding: 0px !important;
}

.jscm-sidebar-cart-wrapper bdi {
    font-size: 1rem;
}


/* تنظیم عرض و حذف فاصله‌های اضافی باکس تعداد */
.jscm-sidebar-cart-wrapper .quantity {
    margin: 0 !important; /* حذف فاصله پایینی که قبلاً داشت */
    width: 130px !important; /* عرض ثابت برای باکس تعداد */
    flex-shrink: 0 !important; /* جلوگیری از فشرده شدن باکس */
    height: auto !important;
}

/* دکمه افزودن به سبد خرید بقیه فضای موجود را پر کند */
.jscm-sidebar-cart-wrapper .single_add_to_cart_button {
    width: 100% !important; /* پر کردن کل فضای خالی باقیمانده */
    margin: 0 !important;
    background: #00843d !important;
    color: #ffffff !important;
    border: none !important;
}






/* ========================================================
   تبدیل محصولات مرتبط به کاروسل افقی (اسکرول آزاد و روان)
======================================================== */
/* ۱. لغو گرید و ساخت ساختار اسکرول افقی کاملاً آزاد */
.woocommerce .related ul.products,
.woocommerce-page .related ul.products,
.related.products ul.products {
    display: flex !important;
    flex-wrap: nowrap !important; /* جلوگیری از رفتن کارت‌ها به خط بعد */
    overflow-x: auto !important; /* فعال‌سازی اسکرول افقی */
    overflow-y: hidden !important;
    scroll-snap-type: none !important; /* حذف پرش و قفل شدن مغناطیسی اسکرول */
    -webkit-overflow-scrolling: touch !important; /* اسکرول کره‌ای و نرم در گوشی */
    gap: 15px !important;
    padding: 10px 5px 30px 5px !important; /* فضای پایین برای سایه کارت‌ها */
    margin: 0 !important;
    direction: rtl !important;
    
    /* مخفی کردن نوار اسکرول زشت پایین در مرورگرها */
    scrollbar-width: none !important; /* فایرفاکس */
}

/* مخفی کردن اسکرول‌بار در کروم و سافاری */
.woocommerce .related ul.products::-webkit-scrollbar,
.related.products ul.products::-webkit-scrollbar {
    display: none !important;
}

/* ۲. تنظیم عرض کارت‌ها در کاروسل دسکتاپ (نمایش ۵ محصول همزمان) */
.woocommerce .related ul.products li.product,
.woocommerce-page .related ul.products li.product,
.related.products ul.products li.product {
    flex: 0 0 calc(20% - 12px) !important; 
    max-width: calc(20% - 12px) !important;
    scroll-snap-align: none !important; /* آزاد کردن ترمز کارت‌ها */
}

/* ========================================================
   ۳. ریسپانسیو اختصاصی کاروسل
======================================================== */
/* در تبلت‌ها: نمایش ۳ محصول در عرض صفحه */
@media (max-width: 1024px) {
    .woocommerce .related ul.products li.product,
    .related.products ul.products li.product {
        flex: 0 0 calc(33.333% - 10px) !important;
        max-width: calc(33.333% - 10px) !important;
    }
}

/* در موبایل‌ها: نمایش ۱.۵ محصول (کاربر می‌فهمد که باید اسکرول کند) */
@media (max-width: 768px) {
    .woocommerce .related ul.products li.product,
    .related.products ul.products li.product {
        flex: 0 0 65% !important; 
        max-width: 65% !important;
    }
}






/* ========================================================
   بخش نظرات - هدر اصلی
======================================================== */
.jscm-reviews-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #ffffff !important;
    padding: 22px 28px !important;
    border-radius: 16px !important;
    margin-bottom: 30px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(12, 28, 61, 0.03) !important;
    gap: 20px !important;
}

.jscm-reviews-summary p:first-child {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #0c1c3d !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: -0.01em !important;
}

.jscm-reviews-summary p:last-child {
    font-size: 0.88rem !important;
    color: #64748b !important;
    margin: 0 !important;
}

.jscm-reviews-action {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 10px !important;
}

.jscm-reviews-action p {
    font-size: 0.88rem !important;
    color: #475569 !important;
    margin: 0 !important;
    font-weight: 500 !important;
}

.jscm-btn-open-review-modal,
.jscm-btn-login-to-review {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #00843d !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 10px 24px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 12px rgba(0, 132, 61, 0.2) !important;
    text-decoration: none !important;
    user-select: none !important;
}

.jscm-btn-open-review-modal:hover,
.jscm-btn-login-to-review:hover {
    background: #006d32 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(0, 132, 61, 0.3) !important;
    transform: translateY(-1px) !important;
}

/* ========================================================
   Overlay و کانتینر اصلی پاپ‌آپ (دسکتاپ و موبایل چسبیده به پایین)
======================================================== */
.jscm-review-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(12, 28, 61, 0.55) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    z-index: 999999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.jscm-review-modal-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.jscm-review-bottom-sheet {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    border-radius: 24px 24px 0 0 !important;
    box-shadow: 0 -10px 40px rgba(12, 28, 61, 0.2) !important;
    transform: translateY(100%) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
    direction: rtl !important;
}

.jscm-review-modal-overlay.active .jscm-review-bottom-sheet {
    transform: translateY(0) !important;
}

/* هدر مودال ثبت نظر */
.jscm-review-bottom-sheet .jscm-sheet-header,
.jscm-review-bottom-sheet > .jscm-sheet-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #fafbfc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 16px 24px !important;
    margin-bottom: 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
}

.jscm-review-bottom-sheet .jscm-sheet-header p {
    color: #0c1c3d !important;
    margin: 0 !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
}

.jscm-close-sheet {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #64748b !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}

.jscm-close-sheet:hover {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    border-color: #fecaca !important;
}

.jscm-review-bottom-sheet .jscm-sheet-body {
    padding: 20px 24px 28px !important;
}

.jscm-product-meta-header {
    font-size: 0.88rem !important;
    color: #475569 !important;
    margin-bottom: 20px !important;
    line-height: 1.6 !important;
    background: #f8fafc !important;
    padding: 10px 16px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.jscm-label-blue {
    color: #00843d !important;
    font-weight: 700 !important;
    margin-left: 0 !important;
}

/* ========================================================
   دیزاین فرم دیدگاه
======================================================== */
.jscm-custom-review-fields label {
    display: block !important;
    color: #0c1c3d !important;
    margin-bottom: 8px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
}

.jscm-custom-review-fields .required {
    color: #ef4444 !important;
}

/* مخفی کردن ستاره‌های پیش‌فرض ووکامرس */
p.stars,
.comment-form-rating {
    display: none !important;
}

/* دیزاین باکس ستاره‌های اختصاصی */
.jscm-rating-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #f8fafc !important;
    padding: 14px 18px !important;
    border-radius: 14px !important;
    margin-bottom: 18px !important;
    border: 1.5px solid #e2e8f0 !important;
    visibility: visible !important;
}

.jscm-rating-row label {
    margin-bottom: 0 !important;
    color: #0c1c3d !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
}

.jscm-star-rating-custom {
    display: flex !important;
    align-items: center !important;
}

.jscm-stars-interactive {
    display: inline-flex !important;
    direction: rtl !important;
    flex-direction: row-reverse !important;
    gap: 4px !important;
    cursor: pointer !important;
}

.jscm-stars-interactive span svg {
    width: 26px !important;
    height: 26px !important;
    fill: transparent !important;
    stroke: #cbd5e1 !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.jscm-stars-interactive span:hover svg,
.jscm-stars-interactive span:hover ~ span svg,
.jscm-stars-interactive span.active svg,
.jscm-stars-interactive span.active ~ span svg {
    fill: #f59e0b !important;
    stroke: #f59e0b !important;
}

/* اینپوت متن دیدگاه */
.jscm-form-row textarea {
    width: 100% !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    font-family: inherit !important;
    font-size: 0.9rem !important;
    margin-bottom: 20px !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box !important;
    color: #0c1c3d !important;
    background: #ffffff !important;
    line-height: 1.7 !important;
}

.jscm-form-row textarea:focus {
    border-color: #00843d !important;
    box-shadow: 0 0 0 3px rgba(0, 132, 61, 0.1) !important;
}

/* ========================================================
   بخش نقاط قوت و نقاط ضعف (واضح، ستون‌بندی تمیز، ۱۰۰٪ عرض در موبایل)
======================================================== */
.jscm-pros-cons-wrap {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 18px !important;
    margin-bottom: 22px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.jscm-pc-col {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* عنوان و برچسب تفکیک‌شده برای قوت و ضعف */
.jscm-pc-col label {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
}

.jscm-pc-col:first-child label {
    color: #00843d !important;
}

.jscm-pc-col:first-child label::before {
    content: '+';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #ecfdf5;
    color: #00843d;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
}

.jscm-pc-col:last-child label {
    color: #dc2626 !important;
}

.jscm-pc-col:last-child label::before {
    content: '−';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
}

/* کادر ورودی + دکمه افزودن */
.jscm-input-with-btn {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin-bottom: 8px !important;
    background: #ffffff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.jscm-pc-col:first-child .jscm-input-with-btn:focus-within {
    border-color: #00843d !important;
    box-shadow: 0 0 0 3px rgba(0, 132, 61, 0.1) !important;
}

.jscm-pc-col:last-child .jscm-input-with-btn:focus-within {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.jscm-input-with-btn input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    border: none !important;
    padding: 11px 14px !important;
    font-family: inherit !important;
    font-size: 0.88rem !important;
    outline: none !important;
    background: transparent !important;
    color: #0c1c3d !important;
    direction: rtl !important;
    box-sizing: border-box !important;
}

.jscm-input-with-btn input::placeholder {
    color: #94a3b8 !important;
    font-size: 0.82rem !important;
}

.jscm-add-item-btn {
    background: #f8fafc !important;
    border: none !important;
    border-right: 1.5px solid #e2e8f0 !important;
    width: 44px !important;
    min-width: 44px !important;
    flex: 0 0 44px !important;
    padding: 0 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #64748b !important;
    transition: all 0.2s ease !important;
    border-radius: 0 !important;
}

.jscm-add-pro-btn:hover {
    background: #ecfdf5 !important;
    color: #00843d !important;
}

.jscm-add-con-btn:hover {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

/* تگ‌های داینامیک اضافه شده */
.jscm-dynamic-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin-top: 4px !important;
}

.jscm-list-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    transition: background 0.2s ease !important;
}

.jscm-list-item button {
    background: none !important;
    border: none !important;
    color: inherit !important;
    cursor: pointer !important;
    font-size: 18px !important;
    line-height: 1 !important;
    opacity: 0.6 !important;
    transition: opacity 0.2s ease !important;
    padding: 2px 6px !important;
}

.jscm-list-item button:hover {
    opacity: 1 !important;
}

.jscm-item-pro {
    background: #f0fdf4 !important;
    color: #15803d !important;
    border: 1px solid #bbf7d0 !important;
}

.jscm-item-con {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
}

/* گزینه‌های پیشنهاد خرید */
.jscm-recommend-options {
    display: flex !important;
    gap: 14px !important;
    margin-bottom: 24px !important;
}

.jscm-recommend-options label {
    flex: 1 !important;
    cursor: pointer !important;
    margin: 0 !important;
}

.jscm-recommend-options input[type="radio"] {
    display: none !important;
}

.jscm-rec-box {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #64748b !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    transition: all 0.2s ease !important;
}

.jscm-rec-yes input:checked + .jscm-rec-box {
    background: #ecfdf5 !important;
    border-color: #00843d !important;
    color: #00843d !important;
    box-shadow: 0 2px 8px rgba(0, 132, 61, 0.12) !important;
}

.jscm-rec-no input:checked + .jscm-rec-box {
    background: #fef2f2 !important;
    border-color: #ef4444 !important;
    color: #dc2626 !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.12) !important;
}

/* اکشن‌های فرم (دکمه‌های ارسال و لغو) */
.jscm-form-actions-row {
    display: flex !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
    margin-top: 10px !important;
}

.jscm-submit-btn {
    background: #00843d !important;
    color: #ffffff !important;
    flex: 1 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 13px 24px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 14px rgba(0, 132, 61, 0.22) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.jscm-submit-btn:hover {
    background: #006d32 !important;
    box-shadow: 0 6px 18px rgba(0, 132, 61, 0.32) !important;
    transform: translateY(-1px) !important;
}

.jscm-btn-cancel {
    background: #f8fafc !important;
    color: #64748b !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 13px 24px !important;
    font-weight: 600 !important;
    font-size: 0.92rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.jscm-btn-cancel:hover {
    background: #f1f5f9 !important;
    color: #0c1c3d !important;
    border-color: #cbd5e1 !important;
}

.jscm-terms-text {
    text-align: center !important;
    font-size: 0.78rem !important;
    color: #94a3b8 !important;
    margin-top: 8px !important;
}

.jscm-terms-text a {
    color: #00843d !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.jscm-terms-text a:hover {
    text-decoration: underline !important;
}

/* ========================================================
   دیزاین دسکتاپ و ریسپانسیو مودال
======================================================== */
@media (min-width: 768px) {
    .jscm-review-bottom-sheet {
        width: 680px !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 auto !important;
        top: auto !important;
        bottom: 0 !important;
        transform: translateY(100%) !important;
        border-radius: 24px 24px 0 0 !important;
    }
    .jscm-review-modal-overlay.active .jscm-review-bottom-sheet {
        transform: translateY(0) !important;
    }
}

@media (max-width: 767px) {
    /* در موبایل ستون‌های قوت و ضعف عمودی قرار می‌گیرند تا فضای ۱۰۰٪ کامل داشته باشند و هیچ عنصری به چپ کشیده نشود */
    .jscm-pros-cons-wrap {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .comment-form-rating {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    .jscm-recommend-options {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .jscm-rating-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    .jscm-star-rating-custom {
        width: 100% !important;
        justify-content: flex-start !important;
    }
}

/* ========================================================
   اصلاح هدر نظرات در نسخه موبایل (تراز و چینش عمودی)
======================================================== */
@media (max-width: 767px) {
    .jscm-reviews-header {
        flex-direction: column !important;
        text-align: center !important;
        gap: 16px !important;
        padding: 20px 16px !important;
    }
    
    .jscm-reviews-summary p:first-child {
        font-size: 1.1rem !important;
        margin-bottom: 5px !important;
        color: #0c1c3d !important;
    }
    
    .jscm-reviews-summary p:last-child {
        font-size: 0.85rem !important;
        color: #64748b !important;
        margin-bottom: 0 !important;
    }
    
    .jscm-reviews-action {
        width: 100% !important;
        align-items: center !important;
        border-top: 1px solid #e2e8f0 !important;
        padding-top: 16px !important;
    }
    
    .jscm-reviews-action p {
        margin-bottom: 12px !important;
        font-size: 0.9rem !important;
        color: #0c1c3d !important;
    }
    
    .jscm-btn-open-review-modal, 
    .jscm-btn-login-to-review {
        width: 100% !important;
        padding: 12px !important;
    }
}




/* ========================================================
   دیزاین پیام لاگین در هدر نظرات (غیر قابل کلیک)
======================================================== */
.jscm-must-login-text {
    background: #f8fafc !important;
    color: #64748b !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    border: 1px dashed #cbd5e1 !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    user-select: none !important;
}

/* اصلاح عرض پیام در حالت موبایل */
@media (max-width: 767px) {
    .jscm-must-login-text {
        width: 100% !important;
        padding: 12px !important;
    }
}


/* ========================================================
   دیزاین نهایی و مینیمال لیست دیدگاه‌ها (کارت‌های اختصاصی)
======================================================== */
ol.commentlist { padding: 0 !important; margin: 0 !important; }
li.jscm-custom-review-item { list-style: none !important; margin-bottom: 15px !important; }

/* باکس اصلی کارت دیدگاه */
.jscm-review-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 24px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(12, 28, 61, 0.03) !important;
    transition: all 0.25s ease !important;
}

.jscm-review-card:hover {
    box-shadow: 0 6px 20px rgba(12, 28, 61, 0.06) !important;
}

/* هدر کارت دیدگاه */
.jscm-review-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding-bottom: 15px !important;
    margin-bottom: 16px !important;
}

.jscm-rh-right {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
}

.jscm-rh-user-meta {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 0.95rem !important;
}

.jscm-rh-author {
    color: #0c1c3d !important;
    font-weight: 700 !important;
}

.jscm-rh-badge {
    font-size: 0.72rem !important;
    padding: 3px 10px !important;
    border-radius: 9999px !important;
    font-weight: 700 !important;
}

.jscm-badge-buyer {
    background: #ecfdf5 !important;
    color: #00843d !important;
    border: 1px solid rgba(0, 132, 61, 0.15) !important;
}

.jscm-badge-user {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}

.jscm-badge-guest {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #fee2e2 !important;
}

/* ستاره‌های کارت دیدگاه */
.jscm-rh-rating {
    display: flex !important;
    direction: rtl !important;
    gap: 2px !important;
}

.jscm-star-filled {
    color: #f59e0b !important;
    font-size: 16px !important;
    line-height: 1 !important;
}

.jscm-star-empty {
    color: #cbd5e1 !important;
    font-size: 16px !important;
    line-height: 1 !important;
}

/* تاریخ ارسال دیدگاه */
.jscm-rh-time {
    font-size: 0.8rem !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

/* متن اصلی دیدگاه */
.jscm-review-text {
    font-size: 0.92rem !important;
    line-height: 1.85 !important;
    color: #334155 !important;
    text-align: justify !important;
    margin-bottom: 20px !important;
}

.jscm-review-text p {
    margin-bottom: 8px !important;
}

/* بج‌های پیشنهاد خرید */
.jscm-review-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    margin-bottom: 16px !important;
    padding: 6px 14px !important;
    border-radius: 9999px !important;
}

.jscm-badge-yes {
    color: #00843d !important;
    background: #ecfdf5 !important;
    border: 1px solid rgba(0, 132, 61, 0.18) !important;
}

.jscm-badge-no {
    color: #dc2626 !important;
    background: #fef2f2 !important;
    border: 1px solid rgba(220, 38, 38, 0.18) !important;
}

/* دیزاین فوتر نقاط قوت و ضعف در کارت دیدگاه */
.jscm-review-pc-display {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    background: #f8fafc !important;
    margin: 0 !important;
    padding: 16px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
}

.jscm-pc-item {
    display: flex !important;
    align-items: flex-start !important;
    font-size: 0.85rem !important;
    color: #334155 !important;
    margin-bottom: 6px !important;
    line-height: 1.6 !important;
}

.jscm-pc-item:last-child {
    margin-bottom: 0 !important;
}

.jscm-pc-item span {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    margin-left: 8px !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 5px !important;
    flex-shrink: 0 !important;
    margin-top: 1px !important;
}

.jscm-plus {
    color: #ffffff !important;
    background: #00843d !important;
}

.jscm-minus {
    color: #ffffff !important;
    background: #ef4444 !important;
}

/* ریسپانسیو نمایش دیدگاه */
@media (min-width: 768px) {
    .jscm-review-body-grid {
        display: grid !important;
        grid-template-columns: 2fr 1fr !important;
        gap: 24px !important;
    }
    
    .jscm-review-pc-display {
        margin: 0 !important;
        padding: 16px !important;
        border-radius: 12px !important;
        border: 1px dashed #cbd5e1 !important;
        background: #f8fafc !important;
        flex-direction: column !important;
    }
}

@media (max-width: 767px) {
    .jscm-review-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    
    .jscm-rh-left {
        align-self: flex-start !important;
        margin-top: 0 !important;
    }
    
    .jscm-review-card {
        padding: 16px !important;
    }
    
    .jscm-review-pc-display {
        margin: 0 !important;
        padding: 14px !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
    }
}

/* ========================================================
   باکس میانگین امتیازها و فیلترها (Top Bar)
======================================================== */
.jscm-reviews-top-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    margin-bottom: 25px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding-bottom: 14px !important;
}

.jscm-rating-summary-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.jscm-rs-score-wrap {
    display: flex !important;
    align-items: baseline !important;
    gap: 6px !important;
}

.jscm-rs-score {
    font-size: 3.2rem !important;
    font-weight: 900 !important;
    color: #00843d !important;
    line-height: 1 !important;
}

.jscm-rs-out-of {
    font-size: 1.1rem !important;
    color: #64748b !important;
    font-weight: 600 !important;
}

.jscm-rs-stars-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 8px !important;
}

.jscm-rs-count {
    font-size: 0.85rem !important;
    color: #64748b !important;
}

/* فیلترها */
.jscm-reviews-filter {
    display: flex !important;
    gap: 16px !important;
    align-items: center !important;
}

.jscm-filter-label {
    font-size: 0.88rem !important;
    color: #64748b !important;
    font-weight: 600 !important;
}

.jscm-filter-btn {
    background: none !important;
    border: none !important;
    color: #64748b !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    padding: 6px 0 !important;
    position: relative !important;
    font-family: inherit !important;
    font-size: 0.9rem !important;
    transition: color 0.2s ease !important;
}

.jscm-filter-btn:hover {
    color: #0c1c3d !important;
}

.jscm-filter-btn.active {
    color: #0c1c3d !important;
    font-weight: 800 !important;
}

.jscm-filter-btn.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: -16px !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: #00843d !important;
    border-radius: 3px 3px 0 0 !important;
}

@media (max-width: 767px) {
    .jscm-reviews-top-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 14px !important;
    }
    .hidden-mobile {
        display: none !important;
    }
}

/* ========================================================
   مخفی کردن ستاره‌ها در باکس خلاصه امتیازات (بالای نظرات)
======================================================== */
.jscm-reviews-top-bar .jscm-rs-stars-wrap .star-rating {
    display: none !important;
}

/* اصلاح فاصله متن "از مجموع X امتیاز" بعد از حذف ستاره‌ها */
.jscm-rs-stars-wrap {
    margin-top: 8px !important;
}

/* ========================================================
   استایل بج مینیمال امتیاز محصول (بدون باگ ستاره)
======================================================== */
.jscm-custom-hero-rating-minimal {
    display: flex !important;
    margin-bottom: 25px !important;
    clear: both !important;
}

.jscm-custom-hero-rating-minimal .woocommerce-review-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #ffffff !important; /* پس‌زمینه سفید */
    border: 1px solid #e2e8f0 !important; /* کادر ظریف */
    padding: 6px 14px !important;
    border-radius: 12px !important; /* لبه‌های گرد */
    text-decoration: none !important;
    color: #475569 !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02) !important;
    transition: all 0.3s ease !important;
}

.jscm-custom-hero-rating-minimal .woocommerce-review-link:hover {
    background: #F6F6F6 !important;
    border-color: #00843d !important;
}

.jscm-chr-star-icon {
    color: #facc15 !important; /* رنگ طلایی آیکون تک ستاره */
    display: flex !important;
    align-items: center !important;
    margin-top: -2px !important;
}

.jscm-chr-score {
    color: #0b1c3d !important;
    font-weight: 600 !important;
}

.jscm-chr-count {
    color: #94a3b8 !important;
    font-size: 0.8rem !important;
    margin-right: 4px !important;
}


/* ========================================================
   دیزاین مدرن و حرفه‌ای صفحه‌بندی (Pagination) دیدگاه‌ها
======================================================== */
.jscm-reviews-container .woocommerce-pagination {
    margin-top: 40px !important;
    text-align: center !important;
}

.jscm-reviews-container .woocommerce-pagination ul {
    display: inline-flex !important;
    gap: 10px !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.jscm-reviews-container .woocommerce-pagination ul li {
    border: none !important;
    list-style: none !important;
}

/* ظاهر پیش‌فرض دکمه‌های شماره صفحات */
.jscm-reviews-container .woocommerce-pagination ul li a,
.jscm-reviews-container .woocommerce-pagination ul li span.current {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 12px !important;
    border-radius: 12px !important; /* لبه‌های گرد هماهنگ با دیزاین سایت */
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: 1.5px solid #e2e8f0 !important; /* کادر ظریف و روشن */
    background: #ffffff !important;
    color: #475569 !important;
}


/* دیزاین صفحه فعال (Current Page) */
.jscm-reviews-container .woocommerce-pagination ul li span.current {
    background: #00843d !important;
    color: #ffffff !important;
    border-color: #00843d !important;
    box-shadow: 0 4px 12px rgba(0, 132, 61, 0.25) !important;
}

.jscm-reviews-container .woocommerce-pagination ul li a:hover {
    border-color: #00843d !important;
    color: #00843d !important;
    background: #f0faf4 !important;
}

/* استایل دکمه‌های فلش (قبلی و بعدی) */
.jscm-reviews-container .woocommerce-pagination ul li a.next,
.jscm-reviews-container .woocommerce-pagination ul li a.prev {
    font-size: 1.3rem !important;
    padding: 0 15px !important;
}

/* ========================================================
   باکس پیام هشدار اختصاصی دقیقاً بالای متغیر محصول
======================================================== */
.jscm-variation-inline-notice {
    display: none;
    width: 100% !important;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
    border: 1.5px solid #fde68a !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    margin-bottom: 12px !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.12), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    animation: jscm-notice-appear 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    position: relative !important;
    direction: rtl !important;
}

@keyframes jscm-notice-appear {
    0% {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.jscm-vin-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
}

.jscm-vin-main {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 1 !important;
}

.jscm-vin-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: #fde68a !important;
    color: #b45309 !important;
    flex-shrink: 0 !important;
}

.jscm-vin-text {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: #92400e !important;
    line-height: 1.45 !important;
}

.jscm-vin-close {
    background: transparent !important;
    border: none !important;
    color: #b45309 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 3px !important;
    border-radius: 6px !important;
    opacity: 0.75 !important;
    transition: opacity 0.2s, background 0.2s !important;
    flex-shrink: 0 !important;
}

.jscm-vin-close:hover {
    opacity: 1 !important;
    background: rgba(180, 83, 9, 0.12) !important;
}

/* افکت لرزش و برجسته‌سازی فیلد انتخاب‌نشده */
@keyframes jscm-shake-pulse {
    0%, 100% { transform: translateX(0); }
    15%, 45%, 75% { transform: translateX(-5px); }
    30%, 60%, 90% { transform: translateX(5px); }
}

.jscm-select-highlight {
    animation: jscm-shake-pulse 0.5s ease-in-out !important;
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25), 0 4px 14px rgba(245, 158, 11, 0.12) !important;
    background-color: #fffdfa !important;
}

/* =============================================================
   استایل ایستا و اختصاصی دکمه و مودال راهنمای اندازه کالا
============================================================= */
.hospa-size-guide-btn-wrap {
    margin: 8px 0 14px !important;
    display: block !important;
    width: 100% !important;
    position: relative !important;
}

.hospa-size-guide-trigger {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 7px 16px !important;
    background: #f0faf4 !important;
    color: #00843d !important;
    border: 1.5px solid rgba(0, 132, 61, 0.28) !important;
    border-radius: 9999px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    margin: 0 !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 2px 6px rgba(0, 132, 61, 0.08) !important;
    user-select: none !important;
    text-decoration: none !important;
    direction: rtl !important;
    font-family: inherit !important;
    outline: none !important;
    vertical-align: middle !important;
}

.hospa-size-guide-trigger:hover {
    background: #00843d !important;
    color: #ffffff !important;
    border-color: #00843d !important;
    box-shadow: 0 6px 18px rgba(0, 132, 61, 0.25) !important;
    transform: translateY(-2px) !important;
}

.hospa-size-guide-trigger:active {
    transform: translateY(0) scale(0.98) !important;
}

.hospa-sg-btn-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #00843d !important;
    transition: transform 0.25s ease, color 0.25s ease !important;
}

.hospa-size-guide-trigger:hover .hospa-sg-btn-icon {
    color: #ffffff !important;
    transform: rotate(-10deg) scale(1.1) !important;
}

.hospa-sg-btn-text {
    font-family: inherit !important;
    letter-spacing: -0.2px !important;
}

.hospa-sg-btn-arrow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.6 !important;
    margin-right: -2px !important;
    transition: transform 0.25s ease, opacity 0.25s ease !important;
}

.hospa-size-guide-trigger:hover .hospa-sg-btn-arrow {
    opacity: 1 !important;
    transform: translateX(-3px) !important;
}

/* راهنمای اندازه — کارت مرکزی، CSS-only (checkbox)، تم Hospa */
body.single-product {
    scrollbar-gutter: stable !important;
}

.hospa-size-guide-root {
    display: block !important;
    width: 100% !important;
    position: relative !important;
    -webkit-tap-highlight-color: transparent !important;
}

.hospa-size-guide-root label {
    -webkit-tap-highlight-color: transparent !important;
}

@media (hover: none) and (pointer: coarse) {
    .hospa-size-guide-root label.hospa-size-guide-trigger:focus,
    .hospa-size-guide-root label.hospa-size-guide-trigger:active,
    .hospa-size-guide-root label.hospa-sg-close:focus,
    .hospa-size-guide-root label.hospa-sg-close:active,
    .hospa-size-guide-root label.hospa-sg-backdrop:focus,
    .hospa-size-guide-root label.hospa-sg-backdrop:active {
        outline: none !important;
        box-shadow: none !important;
    }

    .hospa-size-guide-trigger:hover {
        background: #f0faf4 !important;
        color: #00843d !important;
        border-color: rgba(0, 132, 61, 0.28) !important;
        box-shadow: 0 2px 6px rgba(0, 132, 61, 0.08) !important;
        transform: none !important;
    }

    .hospa-size-guide-trigger:hover .hospa-sg-btn-icon {
        color: #00843d !important;
        transform: none !important;
    }

    .hospa-size-guide-trigger:hover .hospa-sg-btn-arrow {
        opacity: 0.6 !important;
        transform: none !important;
    }
}

.hospa-sg-checkbox {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    clip: rect(0, 0, 0, 0) !important;
    overflow: hidden !important;
    top: auto !important;
    right: 0 !important;
    left: auto !important;
    bottom: 0 !important;
}

.hospa-size-guide-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)) !important;
    box-sizing: border-box !important;
    background-color: rgba(12, 28, 61, 0.62) !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.16s ease, visibility 0.16s ease !important;
}

.hospa-sg-checkbox:checked ~ .hospa-size-guide-modal,
.hospa-size-guide-root:has(.hospa-sg-checkbox:checked) .hospa-size-guide-modal {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.hospa-sg-backdrop {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    cursor: pointer !important;
    display: block !important;
    margin: 0 !important;
}

.hospa-sg-dialog {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    max-width: 400px !important;
    max-height: min(90vh, 90dvh) !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 50px -12px rgba(12, 28, 61, 0.35) !important;
    overflow: hidden !important;
    border: 1px solid #e2e8f0 !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    transform: translate3d(0, 6px, 0) !important;
    opacity: 0 !important;
    transition: transform 0.18s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.16s ease !important;
}

.hospa-sg-checkbox:checked ~ .hospa-size-guide-modal .hospa-sg-dialog,
.hospa-size-guide-root:has(.hospa-sg-checkbox:checked) .hospa-sg-dialog {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1 !important;
}

body.single-product:has(.hospa-sg-checkbox:checked) {
    overflow: hidden !important;
    touch-action: none !important;
}

.hospa-sg-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 16px 18px !important;
    background: #fafbfc !important;
    flex-shrink: 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.hospa-sg-header-info {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.hospa-sg-header-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 10px !important;
    background: #f0faf4 !important;
    color: #00843d !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.hospa-sg-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0c1c3d !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    letter-spacing: -0.3px !important;
}

.hospa-sg-close {
    border: 0 !important;
    background: transparent !important;
    cursor: pointer !important;
    color: #64748b !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: -4px 0 0 !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
}

@media (hover: hover) {
    .hospa-sg-close:hover {
        color: #0c1c3d !important;
        background: #f1f5f9 !important;
    }
}

.hospa-sg-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    padding: 0 16px 12px !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #334155 !important;
    direction: rtl !important;
}

.hospa-sg-chart {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
    background: #fafbfc !important;
}

.hospa-sg-chart > *:first-child {
    margin-top: 0 !important;
}

.hospa-sg-chart > *:last-child {
    margin-bottom: 0 !important;
}

.hospa-sg-chart img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

.hospa-sg-chart figure {
    margin: 0 !important;
    overflow-x: auto !important;
    width: 100% !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.hospa-sg-chart table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
    font-size: 12px !important;
    text-align: center !important;
    min-width: 0 !important;
    background: #ffffff !important;
}

.hospa-sg-chart th,
.hospa-sg-chart td {
    border: 1px solid #e8edf2 !important;
    padding: 11px 8px !important;
    vertical-align: middle !important;
}

.hospa-sg-chart thead th {
    background: #0c1c3d !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 11.5px !important;
    border-color: #172f5c !important;
    line-height: 1.35 !important;
}

.hospa-sg-chart tbody td:first-child {
    background: #00843d !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-color: #006b32 !important;
}

.hospa-sg-chart tbody tr:nth-child(even) td:not(:first-child) {
    background: #f8fafc !important;
}

.hospa-sg-chart p {
    margin: 0 !important;
    padding: 12px !important;
}

@media (hover: hover) {
    .hospa-sg-chart tbody tr:hover td:not(:first-child) {
        background: #f0faf4 !important;
    }
}

.hospa-sg-footer-tip {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 12px 16px !important;
    background: #f1f5f9 !important;
    border-top: 1px solid #e2e8f0 !important;
    margin: 0 !important;
    font-size: 11.5px !important;
    color: #64748b !important;
    line-height: 1.55 !important;
    flex-shrink: 0 !important;
}

.hospa-sg-footer-tip svg {
    flex-shrink: 0 !important;
    color: #00843d !important;
    stroke: #00843d !important;
    margin-top: 1px !important;
}

@media (min-width: 768px) {
    .hospa-size-guide-modal {
        padding: 24px !important;
    }

    .hospa-sg-dialog {
        max-width: 420px !important;
        border-radius: 18px !important;
    }

    .hospa-sg-header {
        padding: 20px 20px 14px !important;
    }

    .hospa-sg-body {
        padding: 0 20px 14px !important;
    }

    .hospa-sg-footer-tip {
        padding: 14px 20px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hospa-size-guide-modal,
    .hospa-sg-dialog {
        transition: none !important;
    }

    .hospa-sg-dialog {
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ========================================================
   پاپ‌آپ سبک و فوق‌سریع سبد خرید (Hospa Quick Cart Modal)
======================================================== */
.hospa-cart-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    /* No backdrop-filter: re-blurring the whole page every frame stalls older phones. */
    background-color: rgba(12, 28, 61, 0.6) !important;
    z-index: 9999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease !important;
    box-sizing: border-box !important;
}

.hospa-cart-modal-overlay.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.hospa-cart-modal {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 26px 20px 22px 20px !important;
    width: 100% !important;
    max-width: 360px !important;
    box-shadow: 0 20px 50px -10px rgba(12, 28, 61, 0.25) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    direction: rtl !important;
    transform: scale(0.92) translateY(10px);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
    font-family: 'yekan', sans-serif !important;
}

.hospa-cart-modal-overlay.show .hospa-cart-modal {
    transform: scale(1) translateY(0) !important;
}

.hospa-cart-modal__icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    background: #ecfdf5 !important;
    border: 2px solid #a7f3d0 !important;
    color: #00843d !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 14px !important;
}

.hospa-cart-modal__icon svg {
    width: 26px !important;
    height: 26px !important;
    stroke: #00843d !important;
}

.hospa-cart-modal__title {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: #0c1c3d !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.4 !important;
    font-family: 'yekan', sans-serif !important;
}

.hospa-cart-modal__desc {
    font-size: 0.8125rem !important;
    color: #64748b !important;
    margin: 0 0 20px 0 !important;
    line-height: 1.5 !important;
    font-family: 'yekan', sans-serif !important;
}

.hospa-cart-modal__actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
}

.hospa-cart-modal__btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 44px !important;
    border-radius: 12px !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    box-sizing: border-box !important;
    font-family: 'yekan', sans-serif !important;
}

.hospa-cart-modal__btn--view {
    background: #00843d !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(0, 132, 61, 0.25) !important;
}

.hospa-cart-modal__btn--view:hover {
    background: #00a84e !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.hospa-cart-modal__btn--continue {
    background: #f8fafc !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}

.hospa-cart-modal__btn--continue:hover {
    background: #f1f5f9 !important;
    color: #0c1c3d !important;
    border-color: #cbd5e1 !important;
}

.jscm-custom-drawer-overlay {
    display: none !important;
}

/* =============================================================
   هدر کاملاً چسبان و پایدار بدون محو شدن در صفحه محصول
============================================================= */
body.single-product .jscm-custom-header,
body.single-product .jscm-custom-header.jscm-header-hidden {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: none !important;
}