/**
 * استایل‌های اختصاصی و مدرن صفحه محصول (rpkala Single Product Hero, Swatches & Tabs)
 * طراحی بهینه، استاندارد، بدون کدهای اضافه، کاملاً راست‌چین و واکنش‌گرا
 */

/* مخفی‌سازی و سرکوب قطعی نوتیفیکیشن‌های پیش‌فرض ووکامرس در صفحه محصول */
.single-product .woocommerce-notices-wrapper .woocommerce-message,
.single-product .woocommerce-message,
.single-product .woocommerce-info,
.single-product div.woocommerce > .woocommerce-message {
    display: none !important;
}

/* ==========================================================================
   ۱. کانتینر اصلی هیرو محصول و مسیر راهنما (Breadcrumbs)
   کانتینر استاندارد ۱۲۳۰ پیکسل | فاصله هدر و فوتر 2rem | تبلت 1.5rem | موبایل 1rem
   ========================================================================== */
.rp-product-page-wrapper {
    width: 100%;
    max-width: 1230px !important;
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}

.rp-product-hero-wrapper {
    width: 100%;
    margin-bottom: 2.5rem;
    font-family: inherit;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .rp-product-page-wrapper {
        margin-top: 0 !important; /* چسبیده به هدر به خاطر نوار بالای صفحه */
        margin-bottom: 2rem !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .rp-product-page-wrapper {
        margin-top: 0 !important; /* چسبیده به هدر به خاطر نوار بالای صفحه */
        margin-bottom: 2rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* جلوگیری قطعی و استاندارد از هرگونه اسکرول افقی در بدنه صفحه */
body.single-product {
    overflow-x: hidden !important;
}

.rp-product-hero-wrapper,
.rp-product-tabs-wrapper,
.rp-product-card-container {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.rp-product-hero-wrapper *,
.rp-product-hero-wrapper *::before,
.rp-product-hero-wrapper *::after,
.rp-product-tabs-wrapper *,
.rp-product-tabs-wrapper *::before,
.rp-product-tabs-wrapper *::after {
    box-sizing: border-box;
}

/* مسیر راهنمای محصول: کاملاً تک‌خطه با اسکرول افقی نرم */
.rp-product-breadcrumb {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1.25rem;
    padding: 0 0.25rem 4px 0.25rem;
    max-width: 100% !important;
}

.rp-product-breadcrumb::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.rp-product-breadcrumb > * {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.rp-product-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.rp-product-breadcrumb a:hover {
    color: #23437c;
}

.rp-breadcrumb-sep {
    display: inline-flex;
    align-items: center;
    color: #cbd5e1;
    transform: rotate(180deg);
    flex-shrink: 0 !important;
}

.rp-breadcrumb-current {
    color: #1e293b;
    font-weight: 600;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* ==========================================================================
   ۲. کارت اصلی محصول (۳ ستونه مدرن)
   ========================================================================== */
.rp-product-card-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 2rem 1.75rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
    display: grid;
    grid-template-columns: 360px 1fr 310px;
    gap: 2rem;
    align-items: start;
}

/* ==========================================================================
   ستون اول (راست): گالری تصاویر محصول و بندانگشتی‌ها
   ========================================================================== */
.rp-product-gallery-col {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 360px !important;
}

/* کادر تصویر اصلی محصول */
.rp-product-main-image-wrap {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
}

.rp-special-badge {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 5 !important;
    background-color: #23437c !important;
    color: #ffffff !important;
    font-size: 0.8125rem !important;
    font-weight: 800 !important;
    padding: 0.35rem 0.9rem !important;
    border-radius: 9999px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    box-shadow: 0 4px 12px rgba(35, 67, 124, 0.25) !important;
    user-select: none !important;
    line-height: 1 !important;
}

.rp-special-badge .rp-badge-text {
    font-weight: 700;
    opacity: 0.95;
}

.rp-main-image-box {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border-radius: inherit !important;
}

.rp-main-product-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: inherit !important;
    transition: opacity 0.22s ease-in-out, transform 0.3s ease !important;
}

/* لیست تصاویر بندانگشتی (Thumbnails List) */
.rp-product-thumbnails-list {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    margin-top: 14px !important;
    margin-bottom: 0 !important;
    padding: 4px 2px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    width: 100% !important;
}

.rp-product-thumbnails-list::-webkit-scrollbar {
    display: none !important;
}

/* تک تصویر بندانگشتی (Thumbnail Item) */
.rp-thumb-item {
    all: unset !important;
    box-sizing: border-box !important;
    flex: 0 0 74px !important;
    width: 74px !important;
    min-width: 74px !important;
    max-width: 74px !important;
    height: 74px !important;
    min-height: 74px !important;
    max-height: 74px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 18px !important;
    border: 2px solid #e2e8f0 !important;
    background: #f8fafc !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    cursor: pointer !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}

.rp-thumb-item:hover {
    border-color: #94a3b8 !important;
    transform: translateY(-2px) !important;
}

.rp-thumb-item.is-active {
    border: 2.5px solid #23437c !important;
    border-color: #23437c !important;
    box-shadow: 0 0 0 1px #23437c, 0 4px 12px rgba(35, 67, 124, 0.18) !important;
    transform: translateY(-2px) !important;
}

.rp-thumb-item img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: inherit !important;
    pointer-events: none !important;
}

/* ==========================================================================
   ستون دوم (وسط): مشخصات محصول، سوییچ متغیرها و ویژگی‌ها
   ========================================================================== */
.rp-product-details-col {
    display: flex;
    flex-direction: column;
}

.rp-product-brand-badge {
    margin-bottom: 0.65rem;
    display: inline-flex;
}

.rp-brand-badge-link,
.rp-brand-badge-box {
    display: inline-flex !important;
    align-items: center !important;
    background-color: #f1f5f9 !important;
    color: #23437c !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 3px 9px !important;
    border-radius: 7px !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    transition: background-color 0.2s ease !important;
}

.rp-brand-badge-link:hover {
    background-color: #e2e8f0 !important;
}

.rp-brand-text {
    color: #23437c !important;
    font-weight: 700 !important;
}

.rp-product-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.65;
    margin: 0 0 0.85rem 0;
    letter-spacing: -0.2px;
}

.rp-product-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0 !important;
    font-size: 0.875rem;
    color: #64748b;
}

/* خط جداکننده ظریف بین اطلاعات بالا و بخش متغیرها */
.rp-product-info-divider {
    height: 1px !important;
    background-color: #f1f5f9 !important;
    width: 100% !important;
    margin: 1.15rem 0 1.35rem 0 !important;
    border: none !important;
}

.rp-product-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 800;
    color: #0f172a;
}

.rp-star-svg {
    flex-shrink: 0;
}

.rp-meta-divider {
    color: #cbd5e1;
    font-size: 0.75rem;
}

.rp-product-reviews-count {
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 600;
}

.rp-no-reviews-text {
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 600;
}

.rp-product-stock-badge {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
    line-height: 1.3 !important;
}

.rp-product-stock-badge.in-stock {
    background-color: #ecfdf5 !important;
    color: #059669 !important;
}

.rp-product-stock-badge.out-of-stock {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
}

.rp-product-stock-badge.out-of-stock .rp-stock-text {
    color: #dc2626 !important;
    font-weight: 800 !important;
}

/* سوییچ‌های متغیرها */
.rp-product-swatches-section {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    margin-bottom: 1.75rem;
}

.rp-swatch-group {
    display: flex;
    flex-direction: column;
}

.rp-swatch-header {
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 0.75rem !important;
}

.rp-swatch-label {
    color: #0f172a !important;
    font-weight: 700 !important;
}

.rp-swatch-selected-title {
    color: #0f172a !important;
    font-weight: 800 !important;
}

.rp-swatch-options-list {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

/* دایره‌های رنگی اختصاصی (کاملاً گرد با رینگ سرمه‌ای اختصاصی و تیک تأیید) */
.rp-swatch-color-circle {
    box-sizing: border-box !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    position: relative !important;
    padding: 0 !important;
    margin: 3px !important;
}

.rp-swatch-color-circle:hover {
    transform: scale(1.08) !important;
}

.rp-swatch-color-circle.is-selected {
    border: 1px solid transparent !important;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4.5px #23437c !important;
    transform: scale(1.02) !important;
}

/* وضعیت غیرفعال / ناموجود برای دایره‌های رنگی */
.rp-swatch-color-circle.is-disabled {
    opacity: 0.38 !important;
    cursor: not-allowed !important;
    border-color: rgba(0, 0, 0, 0.25) !important;
    box-shadow: none !important;
    transform: none !important;
    filter: grayscale(25%) !important;
}

.rp-swatch-color-circle.is-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.rp-swatch-color-circle.is-disabled::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: -12% !important;
    width: 124% !important;
    height: 2px !important;
    background: #e11d48 !important;
    transform: rotate(-45deg) !important;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.9) !important;
    pointer-events: none !important;
}

.rp-swatch-color-circle .rp-check-icon {
    opacity: 0 !important;
    transform: scale(0.5) !important;
    transition: all 0.18s ease-in-out !important;
    pointer-events: none !important;
}

.rp-swatch-color-circle.is-selected .rp-check-icon {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.rp-check-icon.is-light-check {
    stroke: #ffffff !important;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5)) !important;
}

.rp-check-icon.is-dark-check {
    stroke: #0f172a !important;
}

/* دکمه‌های کپسولی سایر متغیرها (حافظه و ...) مطابق با نمونه تصویر */
.rp-swatch-button-item {
    all: unset !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5rem 1.15rem !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    color: #334155 !important;
    background: #ffffff !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
    line-height: 1.4 !important;
}

.rp-swatch-button-item:hover {
    border-color: #94a3b8 !important;
    color: #0f172a !important;
    background: #f8fafc !important;
}

.rp-swatch-button-item.is-selected {
    border-color: #23437c !important;
    background-color: #f0f6fa !important;
    color: #23437c !important;
    font-weight: 800 !important;
    box-shadow: none !important;
}

/* وضعیت غیرفعال / ناموجود برای دکمه‌های کپسولی (حافظه، سایز و ...) */
.rp-swatch-button-item.is-disabled {
    opacity: 0.42 !important;
    cursor: not-allowed !important;
    color: #94a3b8 !important;
    background-color: #f8fafc !important;
    border: 1.5px dashed #cbd5e1 !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: none !important;
    transform: none !important;
}

.rp-swatch-button-item.is-disabled:hover {
    border-color: #cbd5e1 !important;
    color: #94a3b8 !important;
    background-color: #f8fafc !important;
    transform: none !important;
}

.rp-swatch-button-item.is-disabled::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: -10% !important;
    width: 120% !important;
    height: 1.5px !important;
    background: #e11d48 !important;
    opacity: 0.75 !important;
    transform: rotate(-16deg) !important;
    pointer-events: none !important;
}

/* ویژگی‌های کلیدی محصول */
.rp-product-key-features {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 1.25rem 1.4rem;
}

.rp-key-features-title {
    font-size: 0.9375rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.85rem 0;
}

.rp-key-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.rp-key-feature-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.rp-feature-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #23437c;
    flex-shrink: 0;
}

.rp-feature-name {
    color: #64748b;
    font-weight: 600;
}

.rp-feature-value {
    color: #1e293b;
    font-weight: 700;
}

/* ==========================================================================
   ستون سوم (چپ): باکس خرید، تضمین‌ها و دکمه افزودن به سبد خرید
   ========================================================================== */
.rp-product-buy-col {
    display: flex;
    flex-direction: column;
}

.rp-buy-box-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.5rem;
}

.rp-trust-badges-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.rp-trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rp-trust-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.rp-trust-text {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.4;
}

.rp-buy-box-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 1.25rem 0;
}

/* قیمت کالا */
.rp-price-container {
    margin-bottom: 1.25rem;
}

.rp-price-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.rp-price-title-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
}

.rp-regular-price-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.rp-regular-price-del {
    font-size: 0.875rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 600;
}

.rp-price-discount-badge {
    background-color: #ef4444;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
    line-height: 1.2;
}

.rp-final-price-row {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.35rem;
}

.rp-final-price-amount {
    font-size: 1.55rem;
    font-weight: 900;
    color: #23437c;
    letter-spacing: -0.5px;
}

.rp-price-currency {
    font-size: 0.875rem;
    font-weight: 700;
    color: #64748b;
}

/* دکمه افزودن به سبد خرید */
.rp-cart-form-container {
    width: 100%;
}

.rp-custom-cart-form {
    margin: 0 !important;
    padding: 0 !important;
}

.rp-add-to-cart-btn {
    all: unset !important;
    box-sizing: border-box !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.65rem !important;
    background-color: #23437c !important;
    color: #ffffff !important;
    font-size: 0.965rem !important;
    font-weight: 800 !important;
    padding: 0.85rem 1.25rem !important;
    border-radius: 14px !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 14px rgba(35, 67, 124, 0.28) !important;
    text-align: center !important;
}

.rp-add-to-cart-btn:hover:not(:disabled) {
    background-color: #0b2e53 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(35, 67, 124, 0.38) !important;
}

.rp-add-to-cart-btn:active:not(:disabled) {
    transform: translateY(0) !important;
}

.rp-add-to-cart-btn:disabled,
.rp-add-to-cart-btn.is-disabled {
    background-color: #94a3b8 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    opacity: 0.7 !important;
    pointer-events: none !important;
}

.rp-add-to-cart-btn:disabled:hover,
.rp-add-to-cart-btn.is-disabled:hover {
    background-color: #94a3b8 !important;
    transform: none !important;
    box-shadow: none !important;
}

.rp-cart-btn-svg {
    flex-shrink: 0;
}

/* حذف کامل هرگونه آیکون تیک یا شبه‌عنصرهای پیش‌فرض ووکامرس روی دکمه */
.rp-add-to-cart-btn::before,
.rp-add-to-cart-btn::after,
.rp-mobile-add-to-cart-btn::before,
.rp-mobile-add-to-cart-btn::after,
.woocommerce .rp-add-to-cart-btn.added::after,
.woocommerce .rp-add-to-cart-btn::after,
.woocommerce .rp-mobile-add-to-cart-btn.added::after,
.woocommerce .rp-mobile-add-to-cart-btn::after {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
}

/* مخفی‌سازی کامل متن مشاهده سبد خرید در تمام حالات */
.added_to_cart,
.wc-forward,
a.added_to_cart,
.rp-cart-action-wrapper .added_to_cart,
.rp-mobile-bar-action-col .added_to_cart {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* کانتینر دکمه و کنترلر تعداد */
.rp-cart-action-wrapper {
    width: 100% !important;
    position: relative !important;
}

/* در حالت عادی: دکمه افزودن به سبد خرید نمایش داده می‌شود */
.rp-cart-action-wrapper .rp-add-to-cart-btn {
    display: flex !important;
}

/* ویجت کنترل تعداد - به صورت پیش‌فرض و صددرصد مخفی است */
.rp-qty-controller-widget {
    display: none !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 48px !important;
    border: 1.5px solid #23437c !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    padding: 4px !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 8px rgba(35, 67, 124, 0.08) !important;
    direction: rtl !important;
}

/* فقط وقتی که والد کلاس is-in-cart داشته باشد: دکمه مخفی و ویجت تعداد ظاهر می‌شود */
.rp-cart-action-wrapper.is-in-cart .rp-add-to-cart-btn {
    display: none !important;
}

.rp-cart-action-wrapper.is-in-cart .rp-qty-controller-widget {
    display: flex !important;
    animation: rpPopIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* هماهنگی برای نوار چسبان موبایل */
.rp-mobile-bar-action-col .rp-mobile-add-to-cart-btn {
    display: flex !important;
}

.rp-mobile-bar-action-col .rp-qty-controller-widget {
    display: none !important;
}

.rp-mobile-bar-action-col.is-in-cart .rp-mobile-add-to-cart-btn {
    display: none !important;
}

.rp-mobile-bar-action-col.is-in-cart .rp-qty-controller-widget {
    display: flex !important;
    animation: rpPopIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes rpPopIn {
    0% {
        opacity: 0;
        transform: scale(0.92);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.rp-qty-btn {
    all: unset !important;
    box-sizing: border-box !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: all 0.15s ease !important;
}

/* دکمه افزایش (+) */
.rp-qty-btn--plus {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.rp-qty-btn--plus:hover {
    background: #e2e8f0 !important;
}

.rp-qty-btn--plus:active {
    transform: scale(0.92) !important;
}

/* حالت غیرفعال دکمه افزایش در سقف موجودی انبار */
.rp-qty-btn--plus.is-disabled,
.rp-qty-btn--plus:disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
    transform: none !important;
}

.rp-qty-btn--plus.is-disabled:hover,
.rp-qty-btn--plus:disabled:hover {
    background: #f1f5f9 !important;
}

/* نمایش عدد تعداد */
.rp-qty-current-val {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    text-align: center !important;
    flex: 1 !important;
    user-select: none !important;
    font-family: inherit !important;
    display: inline-block !important;
    transition: transform 0.15s ease !important;
}

.rp-qty-current-val.rp-num-pop {
    animation: rpNumPop 0.18s ease-out !important;
}

@keyframes rpNumPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); color: #23437c; }
    100% { transform: scale(1); }
}

/* دکمه کاهش / حذف */
.rp-qty-btn--minus {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.rp-qty-btn--minus:hover {
    background: #e2e8f0 !important;
}

.rp-qty-btn--minus:active {
    transform: scale(0.92) !important;
}

/* حالت حذف (تعداد = ۱) - سطل زباله قرمز با پس‌زمینه صورتی ملایم */
.rp-qty-btn--minus.is-trash {
    background: #fff1f2 !important;
    color: #ef4444 !important;
}

.rp-qty-btn--minus.is-trash:hover {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

.rp-qty-btn--minus.is-trash .rp-qty-icon-trash {
    display: block !important;
}

.rp-qty-btn--minus.is-trash .rp-qty-icon-minus {
    display: none !important;
}

.rp-qty-btn--minus:not(.is-trash) .rp-qty-icon-trash {
    display: none !important;
}

.rp-qty-btn--minus:not(.is-trash) .rp-qty-icon-minus {
    display: block !important;
}

/* حالت لودینگ دکمه‌ها در حین درخواست ایجکس */
.rp-qty-controller-widget.is-loading {
    opacity: 0.65 !important;
    pointer-events: none !important;
}

/* نسخه موبایل باتم‌بار چسبان */
.rp-qty-controller-widget--mobile {
    max-width: 190px !important;
    height: 46px !important;
}

/* تست پیام سقف موجودی انبار (Stock Limit Toast) */
.rp-stock-limit-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 23, 42, 0.94);
    color: #f8fafc;
    padding: 10px 22px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999999;
    direction: rtl;
    pointer-events: none;
    white-space: nowrap;
}

.rp-stock-limit-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.rp-stock-limit-toast svg {
    flex-shrink: 0;
    color: #f59e0b;
}

@media (max-width: 768px) {
    .rp-stock-limit-toast {
        bottom: 85px; /* نمایش در بالای باتم‌بار چسبان در موبایل */
        width: max-content;
        max-width: 90vw;
        font-size: 0.82rem;
        padding: 9px 18px;
    }
}

/* ==========================================================================
   پاپ‌آپ شیک و اختصاصی کالا اضافه شد (Added To Cart Popup)
   ========================================================================== */
.rp-cart-added-popup {
    position: fixed;
    bottom: 30px;
    top: auto;
    left: 50%;
    transform: translateX(-50%) translateY(24px);
    background: #ffffff;
    color: #1f2937;
    border-radius: 20px;
    padding: 10px 16px 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-width: 320px;
    max-width: 94vw;
    box-shadow: 0 14px 40px -4px rgba(0, 0, 0, 0.14), 0 4px 12px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99999999;
    direction: rtl;
    box-sizing: border-box;
}

.rp-cart-added-popup.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.rp-cart-popup-info {
    display: flex;
    align-items: center;
    gap: 12px;
    direction: rtl;
}

/* ریست کامل استایل دکمه بستن در برابر تم و مرورگر */
button.rp-cart-popup-close,
.rp-cart-added-popup button.rp-cart-popup-close,
.rp-cart-added-popup .rp-cart-popup-close {
    all: unset !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    outline: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    cursor: pointer !important;
    color: #71717a !important;
    border-radius: 50% !important;
    transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease !important;
    line-height: 1 !important;
    text-align: center !important;
}

button.rp-cart-popup-close:hover,
.rp-cart-added-popup button.rp-cart-popup-close:hover,
.rp-cart-added-popup .rp-cart-popup-close:hover {
    color: #18181b !important;
    background-color: #f4f4f5 !important;
    transform: scale(1.08) !important;
    border: none !important;
    border-width: 0 !important;
    box-shadow: none !important;
}

button.rp-cart-popup-close:focus,
button.rp-cart-popup-close:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

button.rp-cart-popup-close svg,
.rp-cart-added-popup button.rp-cart-popup-close svg,
.rp-cart-added-popup .rp-cart-popup-close svg {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
    stroke: currentColor !important;
    color: inherit !important;
    fill: none !important;
    pointer-events: none !important;
}

.rp-cart-popup-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #00a046;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 160, 70, 0.25);
}

.rp-cart-popup-check svg {
    display: block;
}

.rp-cart-popup-title {
    color: #00a046;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.rp-cart-popup-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f3f5;
    color: #1f2937 !important;
    text-decoration: none !important;
    padding: 7px 16px 7px 12px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.rp-cart-popup-btn:hover {
    background: #e5e7eb;
    color: #111827 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none !important;
}

.rp-cart-popup-btn:active {
    transform: translateY(0);
}

.rp-cart-popup-btn-arrow {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.rp-cart-popup-btn:hover .rp-cart-popup-btn-arrow {
    transform: translateX(-2px);
}

@media (max-width: 768px) {
    .rp-cart-added-popup {
        bottom: 85px; /* نمایش در بالای باتم‌بار چسبان در موبایل */
        top: auto;
        transform: translateX(-50%) translateY(20px);
        width: calc(100% - 24px);
        max-width: 420px;
        padding: 9px 14px 9px 10px;
        gap: 12px;
        border-radius: 16px;
    }

    .rp-cart-added-popup.is-visible {
        transform: translateX(-50%) translateY(0);
    }

    .rp-cart-popup-title {
        font-size: 0.88rem;
    }

    .rp-cart-popup-btn {
        font-size: 0.8rem;
        padding: 6px 12px 6px 10px;
    }

    .rp-cart-popup-info {
        gap: 8px;
    }
}

/* ==========================================================================
   ۳. کانتینر و تب‌های محصول (نقد و بررسی، مشخصات، دیدگاه‌ها)
   ========================================================================== */
.rp-product-tabs-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 1.75rem 2rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
    margin-bottom: 3rem;
    width: 100%;
}

/* نوار ناوبری تب‌ها - کامپکت، ظریف و با خط شاخص دقیق */
.rp-tabs-nav-bar {
    display: flex !important;
    align-items: center !important;
    gap: 2.25rem !important;
    border-bottom: 1px solid #eef2f6 !important;
    margin-bottom: 1.75rem !important;
    padding: 0 !important;
    position: relative !important;
}

.rp-tab-nav-btn {
    all: unset !important;
    box-sizing: border-box !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    padding: 0.35rem 0.15rem 0.75rem 0.15rem !important;
    cursor: pointer !important;
    position: relative !important;
    margin-bottom: -1px !important;
    transition: color 0.15s ease !important;
    white-space: nowrap !important;
}

.rp-tab-nav-btn:hover {
    color: #23437c !important;
}

.rp-tab-nav-btn.is-active {
    color: #23437c !important;
    font-weight: 700 !important;
}

.rp-tab-nav-btn.is-active::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background-color: #23437c !important;
    border-radius: 3px 3px 0 0 !important;
    z-index: 2 !important;
}

/* بدنه پنل‌های تب */
.rp-tabs-content-area {
    width: 100%;
}

.rp-tab-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

.rp-tab-panel.is-active {
    display: block;
    opacity: 1;
    animation: rpTabFadeIn 0.3s ease-in-out;
}

@keyframes rpTabFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rp-empty-text {
    font-size: 0.9375rem;
    color: #94a3b8;
    margin: 1rem 0;
}

/* تب ۱: نقد و بررسی */
.rp-description-content {
    font-size: 0.965rem;
    color: #334155;
    line-height: 1.95;
    letter-spacing: -0.1px;
}

.rp-description-content p {
    margin-bottom: 1.25rem;
}

.rp-description-content p:last-child {
    margin-bottom: 0;
}

/* تب ۲: مشخصات فنی (Specifications Grid) */
.rp-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.rp-spec-item-box {
    background: #f8fafc;
    border-radius: 14px;
    padding: 1.15rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.rp-spec-item-box:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.rp-spec-name {
    font-size: 0.9125rem;
    font-weight: 700;
    color: #475569;
}

.rp-spec-value {
    font-size: 0.9125rem;
    font-weight: 800;
    color: #0f172a;
    direction: ltr;
    text-align: left;
}

/* تب ۳: دیدگاه کاربران (User Reviews) */
.rp-reviews-container {
    display: grid !important;
    grid-template-columns: 340px 1fr !important;
    gap: 3.5rem !important;
    align-items: start !important;
    margin-top: 1.5rem !important;
}

@media (max-width: 991px) {
    .rp-reviews-container {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
}

/* ستون سایدبار دیدگاه‌ها (راست در RTL) */
.rp-reviews-sidebar-col {
    display: flex !important;
    flex-direction: column !important;
}

.rp-rating-summary-header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 1rem !important;
    margin-bottom: 2.25rem !important;
}

.rp-rating-score-large {
    font-size: 3.5rem !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    line-height: 1 !important;
}

.rp-rating-meta-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
}

.rp-rating-stars-list {
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
}

.rp-star-gold {
    width: 18px !important;
    height: 18px !important;
    fill: #f59e0b !important;
    stroke: #f59e0b !important;
}

.rp-rating-total-text {
    font-size: 0.8125rem !important;
    color: #64748b !important;
    font-weight: 600 !important;
}

/* نمودارهای میله‌ای توزیع امتیاز */
.rp-rating-bars-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.85rem !important;
    margin-bottom: 3.5rem !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.rp-rating-bar-row {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    font-size: 0.8125rem !important;
}

.rp-bar-label {
    width: 48px !important;
    color: #64748b !important;
    font-weight: 600 !important;
    flex-shrink: 0 !important;
    text-align: right !important;
}

.rp-bar-track {
    flex-grow: 1 !important;
    height: 7px !important;
    background: #f1f5f9 !important;
    border-radius: 9999px !important;
    overflow: hidden !important;
}

.rp-bar-fill {
    height: 100% !important;
    background-color: #f59e0b !important;
    border-radius: 9999px !important;
    transition: width 0.5s ease-out !important;
}

.rp-bar-percent {
    width: 32px !important;
    color: #64748b !important;
    font-weight: 600 !important;
    text-align: left !important;
    flex-shrink: 0 !important;
    direction: ltr !important;
}

/* باکس دکمه ثبت دیدگاه */
.rp-reviews-cta-box {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    text-align: center !important;
}

.rp-reviews-cta-title {
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 0.5rem 0 !important;
}

.rp-reviews-cta-desc {
    font-size: 0.8125rem !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    margin: 0 0 1.5rem 0 !important;
}

.rp-open-review-modal-btn {
    all: unset !important;
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 2px solid #23437c !important;
    color: #23437c !important;
    font-size: 0.875rem !important;
    font-weight: 800 !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 14px !important;
    cursor: pointer !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
}

.rp-open-review-modal-btn:hover {
    background: #f0f6fa !important;
}

/* لیست دیدگاه‌ها */
.rp-reviews-list-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
}

.rp-review-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 22px !important;
    padding: 1.75rem 2rem !important;
    margin-bottom: 0 !important;
    transition: border-color 0.2s ease !important;
}

.rp-review-card:hover {
    border-color: #cbd5e1 !important;
}

.rp-review-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    margin-bottom: 1.25rem !important;
}

.rp-review-author-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
}

.rp-author-top-line {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
}

.rp-review-author-name {
    font-size: 0.9375rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

.rp-review-buyer-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background-color: #ecfdf5 !important;
    color: #10b981 !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 9999px !important;
    border: none !important;
}

.rp-review-date {
    font-size: 0.75rem !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

.rp-review-rating-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: #fefce8 !important;
    padding: 4px 10px !important;
    border-radius: 10px !important;
    border: none !important;
}

.rp-star-svg-small {
    fill: #f59e0b !important;
    stroke: #f59e0b !important;
}

.rp-review-rating-num {
    font-size: 0.875rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

/* نقاط قوت و ضعف دیدگاه */
.rp-review-pros-cons {
    display: flex !important;
    align-items: flex-start !important;
    gap: 3.5rem !important;
    margin-bottom: 1.25rem !important;
    flex-wrap: wrap !important;
}

.rp-pros-list,
.rp-cons-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.45rem !important;
}

.rp-pro-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
}

.rp-pro-icon {
    color: #10b981 !important;
    font-weight: 800 !important;
    font-size: 1.15rem !important;
    line-height: 1 !important;
}

.rp-con-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
}

.rp-con-icon {
    color: #f43f5e !important;
    font-weight: 800 !important;
    font-size: 1.15rem !important;
    line-height: 1 !important;
}

.rp-review-body-text {
    font-size: 0.875rem !important;
    color: #334155 !important;
    line-height: 1.95 !important;
    font-weight: 500 !important;
    margin-bottom: 1.25rem !important;
}

.rp-review-body-text p {
    margin-bottom: 0.5rem !important;
}

.rp-review-body-text p:last-child {
    margin-bottom: 0 !important;
}

.rp-review-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding-top: 0.5rem !important;
    border-top: none !important;
}

.rp-review-helpful-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.85rem !important;
}

.rp-helpful-label {
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: #94a3b8 !important;
}

.rp-vote-btn {
    all: unset !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    transition: color 0.15s ease !important;
}

.rp-vote-btn:hover {
    color: #0f172a !important;
}

.rp-vote-btn.is-voted {
    color: #10b981 !important;
}

.rp-vote-btn.rp-vote-no.is-voted {
    color: #ef4444 !important;
}

/* پیام راهنما و اخطار رای‌دهی */
.rp-vote-tooltip {
    position: absolute !important;
    bottom: calc(100% + 8px) !important;
    left: 0 !important;
    background: #0f172a !important;
    color: #ffffff !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    white-space: normal !important;
    max-width: 280px !important;
    text-align: center !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.25), 0 4px 6px -2px rgba(0, 0, 0, 0.1) !important;
    z-index: 100 !important;
    opacity: 0 !important;
    transform: translateY(4px) !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
    pointer-events: none !important;
}

.rp-vote-tooltip::after {
    content: '' !important;
    position: absolute !important;
    top: 100% !important;
    left: 24px !important;
    border-width: 5px !important;
    border-style: solid !important;
    border-color: #0f172a transparent transparent transparent !important;
}

.rp-vote-tooltip.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* حالت خالی دیدگاه‌ها */
.rp-empty-reviews-box {
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
}

.rp-empty-reviews-icon {
    margin-bottom: 1rem;
}

.rp-empty-reviews-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.rp-empty-reviews-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 1.5rem 0;
}

.rp-open-review-empty-btn {
    display: inline-block !important;
    width: auto !important;
    padding: 0.75rem 2rem !important;
}

/* ==========================================================================
   ۴. مودال فوق‌العاده شیک ثبت دیدگاه جدید (Glassmorphic Modern Popup)
   ========================================================================== */
.rp-review-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    z-index: 9999999 !important;
    background-color: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.25rem !important;
    box-sizing: border-box !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.25s ease, visibility 0.25s ease !important;
}

.rp-review-modal-overlay.is-active,
.rp-review-modal-overlay.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.rp-review-modal-dialog {
    background: #ffffff !important;
    border-radius: 24px !important;
    width: 100% !important;
    max-width: 580px !important;
    max-height: 88vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3) !important;
    transform: scale(0.92) translateY(15px) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    direction: rtl !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.rp-review-modal-overlay.is-active .rp-review-modal-dialog,
.rp-review-modal-overlay.is-open .rp-review-modal-dialog {
    transform: scale(1) translateY(0) !important;
}

.rp-review-modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1.4rem 1.75rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    flex-shrink: 0 !important;
    background: #ffffff !important;
    z-index: 2 !important;
}

.rp-review-modal-title {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
}

.rp-review-modal-close {
    all: unset !important;
    box-sizing: border-box !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #f8fafc !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.rp-review-modal-close:hover {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    transform: rotate(90deg) !important;
}

/* بخش بدنه اسکرول‌شونده با اسکرول‌بار مینیمال و فوق‌العاده شیک */
.rp-review-modal-body {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 transparent !important;
}

.rp-review-modal-body::-webkit-scrollbar,
.rp-review-modal-dialog::-webkit-scrollbar {
    width: 6px !important;
}

.rp-review-modal-body::-webkit-scrollbar-track,
.rp-review-modal-dialog::-webkit-scrollbar-track {
    background: transparent !important;
    margin: 8px 0 !important;
}

.rp-review-modal-body::-webkit-scrollbar-thumb,
.rp-review-modal-dialog::-webkit-scrollbar-thumb {
    background-color: #cbd5e1 !important;
    border-radius: 9999px !important;
    transition: background-color 0.2s ease !important;
}

.rp-review-modal-body::-webkit-scrollbar-thumb:hover,
.rp-review-modal-dialog::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8 !important;
}

.rp-review-modal-form {
    padding: 1.75rem !important;
}

.rp-modal-form-group {
    margin-bottom: 1.25rem !important;
}

.rp-modal-label {
    display: block !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    color: #334155 !important;
    margin-bottom: 0.5rem !important;
}

.rp-required {
    color: #ef4444 !important;
}

.rp-star-rating-picker {
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
}

.rp-picker-star-btn {
    all: unset !important;
    box-sizing: border-box !important;
    color: #cbd5e1 !important;
    cursor: pointer !important;
    transition: transform 0.15s ease, color 0.15s ease !important;
    padding: 2px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.rp-picker-star-btn:hover {
    transform: scale(1.2) !important;
}

.rp-picker-star-btn.is-active,
.rp-picker-star-btn.is-hovered {
    color: #f59e0b !important;
}

.rp-picker-star-btn svg {
    fill: currentColor !important;
    stroke: currentColor !important;
}

.rp-rating-picker-score-text {
    margin-right: 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    color: #23437c !important;
}

.rp-modal-input,
.rp-modal-textarea {
    width: 100% !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.9125rem !important;
    font-family: inherit !important;
    color: #0f172a !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    outline: none !important;
}

.rp-modal-input:focus,
.rp-modal-textarea:focus {
    border-color: #23437c !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(35, 67, 124, 0.12) !important;
}

.rp-tags-input-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.rp-tags-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.4rem !important;
}

.rp-tag-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 10px !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
}

.rp-tag-badge--con {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border-color: #fecaca !important;
}

.rp-tag-remove-btn {
    all: unset !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    margin-right: 4px !important;
    opacity: 0.6 !important;
    transition: opacity 0.15s ease !important;
}

.rp-tag-remove-btn:hover {
    opacity: 1 !important;
}

.rp-tag-add-row {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    width: 100% !important;
}

.rp-tag-add-btn {
    all: unset !important;
    box-sizing: border-box !important;
    background: #ecfdf5 !important;
    color: #059669 !important;
    border: 1.5px solid #a7f3d0 !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.rp-tag-add-btn svg {
    display: block !important;
    transition: transform 0.22s ease !important;
}

.rp-tag-add-btn:hover {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
    transform: translateY(-1px) !important;
}

.rp-tag-add-btn:hover svg {
    transform: rotate(90deg) scale(1.1) !important;
}

.rp-tag-add-btn:active {
    transform: translateY(0) scale(0.94) !important;
}

.rp-tag-add-btn--con {
    background: #fef2f2 !important;
    color: #e11d48 !important;
    border: 1.5px solid #fecdd3 !important;
}

.rp-tag-add-btn--con:hover {
    background: #f43f5e !important;
    color: #ffffff !important;
    border-color: #f43f5e !important;
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.3) !important;
}

.rp-modal-grid-2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
}

@media (max-width: 540px) {
    .rp-modal-grid-2 {
        grid-template-columns: 1fr !important;
    }
}

.rp-modal-alert-box {
    padding: 0.85rem 1rem !important;
    border-radius: 12px !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.25rem !important;
    line-height: 1.6 !important;
}

.rp-modal-alert-box.is-success {
    background-color: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
}

.rp-modal-alert-box.is-error {
    background-color: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
}

.rp-modal-footer {
    display: flex !important;
    justify-content: flex-end !important;
    margin-top: 1.5rem !important;
}

.rp-modal-submit-btn {
    all: unset !important;
    box-sizing: border-box !important;
    background-color: #23437c !important;
    color: #ffffff !important;
    font-size: 0.9375rem !important;
    font-weight: 800 !important;
    padding: 0.85rem 2.25rem !important;
    border-radius: 14px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 14px rgba(35, 67, 124, 0.25) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.rp-modal-submit-btn:hover {
    background-color: #0b2e53 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(35, 67, 124, 0.3) !important;
}

.rp-modal-submit-btn:disabled {
    opacity: 0.65 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* ==========================================================================
   ۵. واکنش‌گرایی (Responsive Media Queries)
   ========================================================================== */
@media (max-width: 1200px) {
    .rp-product-card-container {
        grid-template-columns: 320px 1fr;
    }

    .rp-product-buy-col {
        grid-column: 1 / -1;
    }

    .rp-buy-box-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 1.5rem;
    }

    .rp-buy-box-divider {
        display: none;
    }

    .rp-reviews-container {
        grid-template-columns: 1fr;
    }

    .rp-reviews-sidebar-col {
        order: -1;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .rp-product-card-container {
        grid-template-columns: 1fr !important;
        padding: 1.25rem !important;
        border-radius: 18px !important;
        gap: 1.5rem !important;
    }

    .rp-product-gallery-col {
        max-width: 100% !important;
    }

    .rp-thumb-item {
        flex: 0 0 64px !important;
        width: 64px !important;
        min-width: 64px !important;
        max-width: 64px !important;
        height: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;
        border-radius: 14px !important;
    }

    .rp-buy-box-card {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .rp-product-tabs-wrapper {
        padding: 1.25rem !important;
        border-radius: 18px !important;
    }

    .rp-tabs-nav-bar {
        gap: 1.5rem !important;
        overflow-x: auto !important;
        padding-bottom: 0 !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .rp-tabs-nav-bar::-webkit-scrollbar {
        display: none !important;
    }

    .rp-tab-nav-btn {
        font-size: 0.875rem !important;
        white-space: nowrap !important;
        padding: 0.25rem 0.1rem 0.65rem 0.1rem !important;
    }

    .rp-specs-grid {
        grid-template-columns: 1fr !important;
    }

    .rp-modal-grid-2 {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   ۱۱. تاپ‌بار و باتم‌بار چسبان اپ‌لایک موبایل (Mobile App-like Experience)
   ========================================================================== */
.rp-mobile-top-bar {
    display: none;
}

.rp-mobile-sticky-bottom-bar {
    display: none;
}

/* مخفی‌سازی کامل باتم‌بار عمومی سایت در صفحه محصول */
body.single-product #rp-bottom-bar,
body.single-product .rp-bottom-bar,
body:has(.rp-product-hero-wrapper) #rp-bottom-bar,
body:has(.rp-product-hero-wrapper) .rp-bottom-bar,
.rp-product-hero-wrapper ~ #rp-bottom-bar,
.rp-product-hero-wrapper ~ .rp-bottom-bar {
    display: none !important;
}

@media (max-width: 991px) {
    /* تاپ‌بار بالای صفحه در موبایل - غیرچسبان (اسکرول طبیعی با صفحه) */
    .rp-mobile-top-bar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: relative !important;
        top: auto !important;
        z-index: 10 !important;
        height: 56px !important;
        background: #ffffff !important;
        border-bottom: 1px solid #edf2f7 !important;
        padding: 0 1rem !important;
        margin: 0 -1rem 1rem -1rem !important;
        width: auto !important;
        box-sizing: border-box !important;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03) !important;
    }

    @media (min-width: 769px) and (max-width: 991px) {
        .rp-mobile-top-bar {
            margin: 0 -1.5rem 1rem -1.5rem !important;
            padding: 0 1.5rem !important;
        }
    }

    .admin-bar .rp-mobile-top-bar {
        top: auto !important;
    }

    .rp-mobile-back-btn {
        all: unset !important;
        box-sizing: border-box !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 38px !important;
        height: 38px !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 50% !important;
        color: #0f172a !important;
        cursor: pointer !important;
        transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease !important;
        flex-shrink: 0 !important;
        padding: 0 !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .rp-mobile-back-btn:hover {
        background: #f1f5f9 !important;
        border-color: #cbd5e1 !important;
        color: var(--rp-prod-primary, #23437c) !important;
    }

    .rp-mobile-back-btn:active {
        transform: scale(0.92) !important;
        background: #e2e8f0 !important;
    }

    .rp-mobile-back-btn svg {
        width: 20px !important;
        height: 20px !important;
        stroke: currentColor !important;
        stroke-width: 2.2px !important;
        display: block !important;
    }

    .rp-mobile-top-title {
        font-size: 1.05rem !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        text-align: center !important;
        flex: 1 !important;
        margin: 0 !important;
        line-height: 1.3 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        padding: 0 0.5rem !important;
    }

    .rp-mobile-top-spacer {
        width: 38px !important;
        height: 38px !important;
        flex-shrink: 0 !important;
    }

    /* مخفی‌سازی قیمت و افزودن به سبد خرید در بدنه صفحه در موبایل (چون در باتم‌بار چسبان هستند) */
    .rp-product-buy-col .rp-price-container,
    #rp-product-price-container,
    .rp-product-buy-col .rp-buy-box-divider,
    .rp-product-buy-col .rp-cart-action-wrapper,
    #rp-cart-action-wrapper,
    .rp-cart-form-container .rp-cart-action-wrapper {
        display: none !important;
    }

    .rp-product-buy-col {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-top: 0.5rem !important;
    }

    .rp-buy-box-card {
        display: block !important;
        grid-template-columns: 1fr !important;
        padding: 1rem 1.25rem !important;
        border-radius: 16px !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .rp-trust-badges-list {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-around !important;
        gap: 0.75rem !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .rp-trust-item {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }

    .rp-trust-icon {
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
    }

    .rp-trust-icon svg {
        width: 17px !important;
        height: 17px !important;
    }

    .rp-trust-text {
        font-size: 0.78rem !important;
        font-weight: 700 !important;
        color: #334155 !important;
        white-space: nowrap !important;
    }

    /* باتم‌بار چسبان پایین صفحه */
    .rp-mobile-sticky-bottom-bar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 1rem !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        z-index: 99990 !important;
        background: #ffffff !important;
        border-top: 1px solid #f1f5f9 !important;
        padding: 0.65rem 1.25rem calc(0.65rem + env(safe-area-inset-bottom, 0px)) 1.25rem !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06) !important;
    }

    .rp-mobile-bar-price-col {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.15rem !important;
        flex-shrink: 0 !important;
    }

    .rp-mobile-regular-wrap {
        display: flex !important;
        align-items: center !important;
        gap: 0.4rem !important;
    }

    .rp-mobile-discount-badge {
        background-color: #fef2f2 !important;
        color: #dc2626 !important;
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        padding: 1px 6px !important;
        border-radius: 6px !important;
        line-height: 1.3 !important;
    }

    .rp-mobile-regular-price {
        color: #94a3b8 !important;
        font-size: 0.8125rem !important;
        text-decoration: line-through !important;
        font-weight: 500 !important;
    }

    .rp-mobile-final-row {
        display: flex !important;
        align-items: baseline !important;
        gap: 0.3rem !important;
    }

    .rp-mobile-final-price {
        font-size: 1.2rem !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        letter-spacing: -0.3px !important;
    }

    .rp-mobile-currency {
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        color: #64748b !important;
    }

    .rp-mobile-bar-action-col {
        flex: 1 !important;
        display: flex !important;
        justify-content: flex-end !important;
    }

    .rp-mobile-add-to-cart-btn {
        all: unset !important;
        box-sizing: border-box !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 190px !important;
        height: 46px !important;
        background: #23437c !important;
        color: #ffffff !important;
        font-size: 0.9375rem !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
        cursor: pointer !important;
        padding: 0 1rem !important;
        text-align: center !important;
        box-shadow: 0 4px 12px rgba(35, 67, 124, 0.25) !important;
        transition: background 0.15s ease, transform 0.15s ease !important;
    }

    .rp-mobile-add-to-cart-btn:hover {
        background: #092849 !important;
    }

    .rp-mobile-add-to-cart-btn:active {
        transform: scale(0.97) !important;
    }

    .rp-mobile-add-to-cart-btn.is-disabled,
    .rp-mobile-add-to-cart-btn:disabled {
        background: #e2e8f0 !important;
        color: #94a3b8 !important;
        box-shadow: none !important;
        cursor: not-allowed !important;
        transform: none !important;
        opacity: 0.7 !important;
        pointer-events: none !important;
    }

    /* فاصله انتهای صفحه برای عدم همپوشانی با نوار ثابت */
    .rp-product-tabs-wrapper {
        margin-bottom: 5.5rem !important;
    }
}

@media (max-width: 782px) {
    .admin-bar .rp-mobile-top-bar {
        top: auto !important;
    }
}

/* ==========================================================================
   بخش مینیمال و تک‌ردیفه گارانتی محصول (Minimal Single Warranty Card)
   ========================================================================== */
.rp-warranty-single-card {
    margin: 1rem 0;
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.rp-warranty-single-card:hover {
    border-color: #cbd5e1;
    background: #fafbfc;
}

/* حالت فعال بودن گارانتی */
.rp-warranty-single-card.is-active {
    background: #f0fdf4;
    border-color: #16a34a;
    box-shadow: 0 3px 12px -2px rgba(22, 163, 74, 0.14);
}

.rp-warranty-card-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

/* ستون اطلاعات (آیکون و عنوان) */
.rp-warranty-info-side {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.rp-warranty-shield-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #23437c;
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.rp-warranty-single-card.is-active .rp-warranty-shield-icon {
    color: #16a34a;
    transform: scale(1.05);
}

.rp-warranty-title-text {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.rp-warranty-single-card.is-active .rp-warranty-title-text {
    color: #15803d;
}

/* ستون انتخابگر و دکمه حذف */
.rp-warranty-action-side {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
}

.rp-warranty-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

/* استایل مدرن دراپ‌داون انتخاب مدت گارانتی */
.rp-warranty-plan-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 9px;
    padding: 7px 12px 7px 32px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    direction: rtl;
    line-height: 1.5;
    font-family: inherit;
    box-sizing: border-box;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.rp-warranty-plan-select:hover {
    border-color: #94a3b8;
    background: #ffffff;
}

.rp-warranty-plan-select:focus {
    border-color: #23437c;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(35, 67, 124, 0.12);
}

.rp-warranty-single-card.is-active .rp-warranty-plan-select {
    background: #ffffff;
    border-color: #16a34a;
    color: #15803d !important;
    font-weight: 700 !important;
}

.rp-warranty-select-chevron {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.rp-warranty-single-card.is-active .rp-warranty-select-chevron {
    color: #16a34a;
}

/* دکمه اختصاصی حذف گارانتی */
.rp-warranty-reset-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 8px !important;
    background: #fef2f2 !important;
    border: 1px solid #fee2e2 !important;
    color: #ef4444 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
}

.rp-warranty-reset-btn:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #dc2626 !important;
    transform: scale(1.06);
}

.rp-warranty-reset-btn svg {
    flex-shrink: 0;
    pointer-events: none;
}

/* قوانین ریسپانسیو برای صفحات موبایل */
@media (max-width: 480px) {
    .rp-warranty-single-card {
        padding: 9px 12px;
    }
    .rp-warranty-title-text {
        font-size: 0.82rem;
    }
    .rp-warranty-plan-select {
        font-size: 0.78rem !important;
        padding: 6px 10px 6px 28px !important;
    }
    .rp-warranty-reset-btn {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
    }
}

@media (max-width: 360px) {
    .rp-warranty-card-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .rp-warranty-action-side {
        width: 100%;
        justify-content: space-between;
    }
    .rp-warranty-select-wrap {
        flex: 1;
    }
    .rp-warranty-plan-select {
        width: 100%;
    }
}

/* ==========================================================================
   نشان رسمی همراه با کد همتا (Hamta Code Badge)
   ========================================================================== */
.rp-product-hamta-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0284c7;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 2px 10px;
    border-radius: 6px;
    line-height: 1.5;
}

@media (max-width: 580px) {
    .rp-trust-badges-list {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .rp-trust-item {
        justify-content: flex-start !important;
    }

    .rp-trust-text {
        white-space: normal !important;
        font-size: 0.8rem !important;
    }
}

/* ==========================================================================
   ۱۲. بخش محصولات مشابه (Related Products) منطبق با تصویر و کارت‌های صفحه فروشگاه
   ========================================================================== */
.rp-related-products-section {
    width: 100%;
    margin-top: 3.5rem;
    margin-bottom: 2rem;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

.rp-related-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.rp-related-products-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.4;
}

.rp-related-products-carousel-wrap {
    position: relative;
    width: 100%;
}

.rp-related-products-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    padding: 8px 4px 18px 4px;
    width: 100%;
    box-sizing: border-box;
}

.rp-related-products-track::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* کارت محصول - دقیقاً کپی ساختار و جلوه صفحه فروشگاه */
.rp-related-products-track .rp-product-card {
    flex: 0 0 calc(20% - 15px);
    min-width: 220px;
    max-width: 245px;
    scroll-snap-align: start;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 22px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
    position: relative;
    box-sizing: border-box;
}

.rp-related-products-track .rp-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px -4px rgba(15, 23, 42, 0.08), 0 6px 12px -2px rgba(15, 23, 42, 0.03);
    border-color: #cbd5e1;
}

.rp-related-products-track .rp-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rp-related-products-track .rp-card-image-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rp-related-products-track .rp-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.rp-related-products-track .rp-product-card:hover .rp-card-thumb {
    transform: scale(1.04);
}

.rp-related-products-track .rp-card-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
}

.rp-related-products-track .rp-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.55;
    margin: 0 0 16px 0;
    min-height: 2.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: right;
    transition: color 0.15s ease;
}

.rp-related-products-track .rp-product-card:hover .rp-card-title {
    color: #23437c;
}

.rp-related-products-track .rp-card-price-row {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    min-height: 3.25rem;
    justify-content: flex-end;
    align-items: flex-end;
    width: 100%;
}

.rp-related-products-track .rp-stock-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #94a3b8;
    align-self: flex-start;
    padding-bottom: 4px;
}

.rp-related-products-track .rp-price-sale-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rp-related-products-track .rp-price-top-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.rp-related-products-track .rp-card-discount-badge {
    background: #ef394e;
    color: #ffffff;
    font-size: 0.775rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 9999px;
    line-height: 1.2;
    direction: ltr;
}

.rp-related-products-track .rp-card-del-price {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: line-through;
}

.rp-related-products-track .rp-price-bottom-line,
.rp-related-products-track .rp-price-normal-container {
    display: flex;
    align-items: baseline;
    gap: 4px;
    align-self: flex-end;
}

.rp-related-products-track .rp-card-final-price {
    font-size: 1.15rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.rp-related-products-track .rp-card-currency {
    font-size: 0.725rem;
    font-weight: 700;
    color: #64748b;
}

.rp-related-products-track .rp-product-card.is-out-of-stock .rp-card-thumb {
    opacity: 0.55;
    filter: grayscale(85%);
}

.rp-related-products-track .rp-badge-outofstock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 41, 59, 0.88);
    color: #ffffff;
    padding: 6px 18px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 800;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    z-index: 2;
}

/* دکمه‌های ناوبری اسلایدر محصولات مشابه - طراحی گرد، مدرن و کاملاً ایزوله از استایل‌های قالب */
.rp-related-products-carousel-wrap {
    position: relative !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
}

button.rp-related-nav-btn,
.rp-related-nav-btn {
    all: unset !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    cursor: pointer !important;
    z-index: 10 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12) !important;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

button.rp-related-nav-btn svg,
.rp-related-nav-btn svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #0f172a !important;
    stroke-width: 2.4 !important;
    fill: none !important;
    display: block !important;
    pointer-events: none !important;
    transition: stroke 0.2s ease !important;
}

button.rp-related-nav-btn:hover,
.rp-related-nav-btn:hover {
    background: #23437c !important;
    border-color: #23437c !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(35, 67, 124, 0.25) !important;
    transform: translateY(-50%) scale(1.06) !important;
}

button.rp-related-nav-btn:hover svg,
.rp-related-nav-btn:hover svg {
    stroke: #ffffff !important;
}

button.rp-related-nav-btn:active,
.rp-related-nav-btn:active {
    transform: translateY(-50%) scale(0.92) !important;
    background: #082847 !important;
    border-color: #082847 !important;
}

button.rp-related-prev,
.rp-related-prev {
    right: -16px !important;
    left: auto !important;
}

button.rp-related-next,
.rp-related-next {
    left: -16px !important;
    right: auto !important;
}

@media (max-width: 1024px) {
    .rp-related-products-track .rp-product-card {
        flex: 0 0 calc(33.333% - 12px);
        min-width: 200px;
    }
    button.rp-related-prev,
    .rp-related-prev { right: -8px !important; }
    button.rp-related-next,
    .rp-related-next { left: -8px !important; }
}

@media (max-width: 768px) {
    .rp-related-products-track .rp-product-card {
        flex: 0 0 calc(50% - 9px);
        min-width: 165px;
        padding: 12px;
    }
    button.rp-related-nav-btn,
    .rp-related-nav-btn { display: none !important; }
}

