/* ============================================================
   Narmpa — Single Product  v5  (طبق دیزاین، بدون sidebar)
   ============================================================ */

/* ── Container ── */
.dm-sp-wrap {
    direction: rtl;
    background: #fff;
}

.dm-sp-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* Breadcrumb */
.dm-sp-breadcrumb {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 0;
}

.dm-sp-breadcrumb .dm-sp-container {
    padding-bottom: 0;
}

.dm-sp-breadcrumb .woocommerce-breadcrumb {
    margin: 0;
    font-size: 12px;
    color: #ccc;
}

.dm-sp-breadcrumb a {
    color: #ccc;
    text-decoration: none;
    transition: color .15s;
}

.dm-sp-breadcrumb a:hover {
    color: var(--dm-primary, #B43F3F);
}


/* ════════════════════════════════════════════
   MAIN: گالری (راست RTL) + اطلاعات (چپ RTL)
   ════════════════════════════════════════════ */
.dm-sp-main {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 48px;
    align-items: start;
    padding-top: 28px;
    margin-bottom: 48px;
}

.dm-sp-form {
    display: contents;
}


/* ════════════════════════════════════════════
   گالری
   ════════════════════════════════════════════ */
.dm-sp-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* تصویر اصلی */
.dm-sp-img-main-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 10;
    border-radius: 20px;
    background: #f7f7f7;
    cursor: zoom-in;
}

/*
 * overflow:hidden قبلاً روی خودِ dm-sp-img-main-wrap بود؛ چون dm-sp-social-strip (و tooltipِ
 * اشتراک‌گذاری داخلش) هم فرزندِ همین wrap است، هر چیزی که از این باکس بیرون می‌زد (مثلِ
 * tooltipِ سمتِ چپ) کلاً کلیپ و نامرئی می‌شد. حالا کلیپ فقط رویِ یک لفافِ داخلیِ مخصوصِ خودِ
 * عکس (dm-sp-img-clip) است تا زوم روی هاور از گوشه‌های گردِ عکس بیرون نزند، ولی
 * tooltip/استریپ که بیرون از این لفافند دیگر کلیپ نمی‌شوند.
 */
.dm-sp-img-clip {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.dm-sp-img-main {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    /*padding: 16px;*/
    transition: transform .4s ease;
}

.dm-sp-img-main-wrap:hover .dm-sp-img-main {
    transform: scale(1.04);
}

/* دکمه زوم */
.dm-sp-zoom-btn {
    position: absolute;
    bottom: 14px;
    left: 14px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    transition: border-color .18s, color .18s;
    backdrop-filter: blur(4px);
}

.dm-sp-zoom-btn:hover {
    border-color: var(--dm-primary, #B43F3F);
    color: var(--dm-primary, #B43F3F);
}

/* سوشیال استریپ — گوشه راست‌بالای عکس (کامنتِ قدیمی هم همین را می‌گفت، ولی کدش چپ بود؛ رفع شد) */
.dm-sp-social-strip {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 3;
}

/* بجِ تخفیف — اولین آیتمِ استریپ، دقیقاً هم‌ابعادِ بقیه (۳۶×۳۶) ولی رنگی به‌جای سفیدِ نیمه‌شفاف */
.dm-sp-disc-badge-strip {
    background: var(--dm-primary, #B43F3F) !important;
    border-color: var(--dm-primary, #B43F3F) !important;
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    cursor: default !important;
}
.dm-sp-disc-badge-strip:hover {
    background: var(--dm-primary, #B43F3F) !important;
    border-color: var(--dm-primary, #B43F3F) !important;
    color: #fff !important;
}

.dm-sp-social-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid #ececec;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #bbb;
    transition: border-color .18s, color .18s;
    backdrop-filter: blur(4px);
}

.dm-sp-social-btn:hover {
    border-color: var(--dm-primary, #B43F3F);
    color: var(--dm-primary, #B43F3F);
}

/* دکمه‌ی «خبرم کن» (خروجیِ افزونه) در نوارِ اجتماعیِ روی تصویر، هم‌شکلِ .dm-sp-social-btn:
   گِرد، فقط آیکون (متن/لودر پنهان). چون خودِ دکمه‌ی افزونه است، اتصالِ AJAX و مودال حفظ می‌شود. */
.dm-sp-social-waitlist .dm-amazing-waitlist-wrapper { margin: 0; }
.dm-sp-social-waitlist .dm-amazing-waitlist-btn {
    width: 36px;
    height: 36px;
    min-width: 0;
    padding: 0;
    background: rgba(255, 255, 255, .92);
    border: 1px solid #ececec;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #bbb;
    transition: border-color .18s, color .18s;
    backdrop-filter: blur(4px);
    box-shadow: none;
}
.dm-sp-social-waitlist .dm-amazing-waitlist-btn:hover {
    border-color: var(--dm-primary, #B43F3F);
    color: var(--dm-primary, #B43F3F);
}
.dm-sp-social-waitlist .dm-amazing-waitlist-btn.active {
    color: var(--dm-primary, #B43F3F);
    border-color: var(--dm-primary, #B43F3F);
}
.dm-sp-social-waitlist .dm-amz-text { display: none !important; }
.dm-sp-social-waitlist .dm-amz-icon { display: inline-flex; }
.dm-sp-social-waitlist .dm-amz-icon svg { width: 18px; height: 18px; }

/* دو آیکونِ افزونه‌ی dm-product-engagement (علاقه‌مندی/موجودشدن)، همان سبکِ آیکونِ گردِ بالا.
   ریشه‌ی هرکدام (.dm-wishlist-btn / .dm-waitlist-btn) خروجیِ خودِ افزونه است — کلاس/دیتا-اتریبیوت
   دست‌نخورده می‌ماند تا کلیکِ تفویضی‌اش (eng-script.js) کار کند. */
.dm-sp-social-wishlist .dm-wishlist-btn,
.dm-sp-social-instock .dm-waitlist-btn {
    width: 36px;
    height: 36px;
    min-width: 0;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, .92);
    border: 1px solid #ececec;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #bbb;
    transition: border-color .18s, color .18s;
    backdrop-filter: blur(4px);
    box-shadow: none;
}
.dm-sp-social-wishlist .dm-wishlist-btn:hover,
.dm-sp-social-instock .dm-waitlist-btn:hover {
    border-color: var(--dm-primary, #B43F3F);
    color: var(--dm-primary, #B43F3F);
}
.dm-sp-social-wishlist .dm-wishlist-btn.active,
.dm-sp-social-instock .dm-waitlist-btn.active {
    color: var(--dm-primary, #B43F3F);
    border-color: var(--dm-primary, #B43F3F);
}
.dm-sp-social-wishlist .dm-wishlist-btn .dm-icon,
.dm-sp-social-instock .dm-waitlist-btn .dm-icon {
    display: inline-flex;
}
.dm-sp-social-wishlist .dm-wishlist-btn .dm-icon svg,
.dm-sp-social-instock .dm-waitlist-btn .dm-icon svg {
    width: 18px;
    height: 18px;
}
/* متنِ کنارِ آیکونِ علاقه‌مندی (اگر قالب/افزونه کلاسِ d-none را برای پنهان‌کردنش نشناسد) */
.dm-sp-social-wishlist .dm-text { display: none !important; }

/* تامبنیل‌ها */
.dm-sp-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dm-sp-thumb {
    width: 68px;
    height: 68px;
    border: 1.5px solid #eee;
    border-radius: 12px;
    padding: 4px;
    background: #f7f7f7;
    cursor: pointer;
    transition: border-color .15s;
    flex-shrink: 0;
    overflow: hidden;
}

.dm-sp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.dm-sp-thumb.is-active,
.dm-sp-thumb:hover {
    border-color: var(--dm-primary, #B43F3F);
}


/* ════════════════════════════════════════════
   ستون اطلاعات
   ════════════════════════════════════════════ */
.dm-sp-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 4px;
    position: relative;
}

.dm-sp-title {
    font-size: 22px;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.55;
    margin: 0;
}

/* متا */
.dm-sp-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #aaa;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.dm-sp-meta-sep {
    color: #ddd;
}

.dm-sp-meta-link {
    color: var(--dm-primary, #B43F3F);
    text-decoration: none;
    font-weight: 600;
}

.dm-sp-meta-link:hover {
    text-decoration: underline;
}

/* بج اصالت */
.dm-sp-badge-row {
    margin-top: -8px;
}

.dm-sp-badge-auth {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #edf7f2;
    color: #16a34a;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

/* section label */
.dm-sp-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dm-sp-section-label {
    font-size: 13px;
    font-weight: 800;
    color: #2a2a2a;
    display: flex;
    align-items: center;
    gap: 7px;
}

.dm-sp-section-label::before {
    content: '';
    width: 3px;
    height: 14px;
    background: var(--dm-primary, #B43F3F);
    border-radius: 2px;
    display: inline-block;
}

/* متغیرها */
.dm-sp-variations {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dm-sp-attr-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dm-sp-attr-header {
    display: flex;
    align-items: center;
    gap: 7px;
}

.dm-sp-attr-label {
    font-size: 13px;
    font-weight: 800;
    color: #2a2a2a;
}

.dm-sp-attr-current {
    font-size: 13px;
    color: var(--dm-primary, #B43F3F);
    font-weight: 700;
}

/* قبلاً سلکتِ استانداردِ ووکامرس بی‌قید پنهان می‌شد (به امیدِ ساخته‌شدنِ سواچ توسط افزونه‌ی
   dm-product-variations). اگر آن افزونه سواچ نسازد، کاربر هیچ گزینه‌ای برای انتخابِ متغیر
   نمی‌دید و محصول عملاً غیرقابل‌خرید می‌شد. حالا سلکت فقط وقتی پنهان می‌شود که واقعاً یک
   .dm-sp-swatches ساخته شده باشد؛ وگرنه خودِ سلکت به‌عنوان fallbackِ کاربردی نمایش داده می‌شود. */
.dm-sp-attr-block:has(.dm-sp-swatches) select,
.dm-sp-variations:has(.dm-sp-swatches) select {
    display: none !important;
}

/* استایلِ منوی کشوی متغیرها هماهنگ با تمِ سایت (وقتی سواچ ساخته نشده و سلکت خودش UIِ اصلی است):
   گِرد، بوردردار، با فلشِ سفارشی سمتِ چپ (RTL) و حالتِ hover/focus برندی. */
.dm-sp-variations select,
.dm-sp-attr-block select {
    display: block;
    width: 100%;
    padding: 13px 16px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #2a2a2a;
    background-color: #fff;
    border: 1.5px solid #e6e6e6;
    border-radius: 12px;
    cursor: pointer;
    line-height: 1.4;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    background-size: 16px;
    transition: border-color .18s, box-shadow .18s;
}
.dm-sp-variations select:hover,
.dm-sp-attr-block select:hover {
    border-color: var(--dm-primary, #B43F3F);
}
.dm-sp-variations select:focus,
.dm-sp-attr-block select:focus {
    outline: none;
    border-color: var(--dm-primary, #B43F3F);
    box-shadow: 0 0 0 3px rgba(180, 63, 63, .12);
}

.reset_variations {
    font-size: 12px;
    color: #bbb;
    text-decoration: none;
}

/* Swatches */
.dm-sp-swatches {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dm-swatch-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2.5px solid #fff;
    box-shadow: 0 0 0 1.5px #ddd;
    cursor: pointer;
    transition: box-shadow .15s, transform .15s;
}

.dm-swatch-circle:hover {
    box-shadow: 0 0 0 2px var(--dm-primary, #B43F3F);
    transform: scale(1.1);
}

.dm-swatch-circle.is-active {
    box-shadow: 0 0 0 2.5px var(--dm-primary, #B43F3F);
}

.dm-swatch-text {
    padding: 7px 16px;
    border-radius: 8px;
    border: 1.5px solid #e8e8e8;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
    font-family: inherit;
}

.dm-swatch-text:hover {
    border-color: var(--dm-primary, #B43F3F);
    color: var(--dm-primary, #B43F3F);
}

.dm-swatch-text.is-active {
    border-color: var(--dm-primary, #B43F3F);
    background: var(--dm-primary-tint, #fdf2f2);
    color: var(--dm-primary, #B43F3F);
    font-weight: 700;
}

/* گارانتی */
.dm-sp-warranty-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dm-sp-warranty-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1.5px solid #e8e8e8;
    border-radius: 9px;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    color: #444;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    font-family: inherit;
}

.dm-sp-warranty-btn svg {
    color: var(--dm-primary, #B43F3F);
}

.dm-sp-warranty-btn.is-active {
    border-color: var(--dm-primary, #B43F3F);
    background: var(--dm-primary-tint, #fdf2f2);
}

/* قیمت */
.dm-sp-price-box {
    border-radius: 14px;
}

.dm-sp-price-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.dm-sp-price-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dm-sp-disc-badge {
    background: var(--dm-primary, #B43F3F);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 2px 9px;
    border-radius: 6px;
}

.dm-sp-old-price {
    font-size: 13px;
    color: #c0c0c0;
    text-decoration: line-through;
}

.dm-sp-old-price bdi {
    color: #c0c0c0;
}

.dm-sp-cur-price {
    font-size: 24px;
    font-weight: 900;
    color: var(--dm-primary);
    direction: rtl;
}

.dm-sp-cur-price bdi {
    font-size: 34px;
}

.dm-sp-cur-price .woocommerce-Price-currencySymbol {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.dm-sp-select-hint {
    font-size: 12px;
    color: #ccc;
    text-align: center;
    padding: 8px 0;
    margin: 0;
}

/* بازهٔ قیمت محصول متغیر (قبل از انتخاب) */
.dm-sp-price-range {
    font-size: 22px;
    font-weight: 900;
    color: #1a1a1a;
    direction: rtl;
}

/* رنجِ قیمتِ متغیر در یک ردیف (قبلاً چند خط می‌شکست). این فقط راهنمای پیش از انتخاب است؛
   قیمتِ دقیق پس از انتخابِ گزینه در .single_variation نمایش داده می‌شود. */
.dm-sp-price-range .price {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 18px;
}
.dm-sp-price-range .price .woocommerce-Price-amount { white-space: nowrap; }

.dm-sp-price-range bdi {
    font-size: 22px;
}
.dm-sp-price-range .price bdi { font-size: 18px; }

.dm-sp-price-range .woocommerce-Price-currencySymbol {
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

.dm-sp-price-range del {
    font-size: 14px;
    color: #c0c0c0;
    font-weight: 600;
    margin-left: 6px;
}

/*
 * فال‌بکِ سراسری برایِ .woocommerce-Price-amount.amount: چون بعدِ انتخابِ یک تنوع، ووکامرس
 * خودش (نه قالب) HTMLِ قیمت را با AJAX جایگزین می‌کند و کلاس‌هایِ اختصاصیِ ما (dm-sp-price-range
 * و مشابه) روی آن مارک‌آپِ تازه دیگر اعمال نمی‌شدند، پس استایلِ پیش‌فرضِ ریزِ ووکامرس دیده
 * می‌شد. این دو رول بدونِ وابستگی به کلاسِ اختصاصی، رویِ خودِ کلاسِ استانداردِ ووکامرس اعمال
 * می‌شوند تا هم قبل و هم بعدِ انتخابِ تنوع یک‌دست بمانند.
 */
.woocommerce-Price-amount.amount {
    font-size: 22px;
    text-decoration: none;
    font-weight: 900;
    color: #1a1a1a;
}
del .woocommerce-Price-amount.amount {
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

.woocommerce-Price-amount.amount .woocommerce-Price-currencySymbol {
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

/* موجود/ناموجود‌بودنِ محصول (پیام‌هایِ استانداردِ ووکامرس) با رنگِ برندِ قالب */
.stock.in-stock {
    color: var(--dm-primary, #B43F3F);
}

/* WC variation */
.woocommerce-variation.single_variation {
    direction: rtl;
}

/* قیمتِ تخفیف‌خوردهٔ تنوعِ انتخاب‌شده: خطِ زیرِ ins حذف (ووکامرس پیش‌فرض underline می‌گذارد) */
.woocommerce-variation ins {
    text-decoration: none !important;
}

/* دقیقاً هم‌شکلِ .dm-sp-price-range .price (بالاتر) — قبل از انتخاب یک گزینه، رنجِ قیمت به همین
   اندازه/چیدمان دیده می‌شود؛ اگر این‌جا سایز/ساختارِ متفاوتی داشت، با انتخابِ گزینه صفحه یک‌هو
   می‌پرید (تغییرِ فونت‌سایز و از‌بین‌رفتنِ چیدمانِ ردیفی). */
.woocommerce-variation.single_variation .woocommerce-variation-price .price {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 18px;
    font-weight: 900;
    color: #1a1a1a;
}
.woocommerce-variation.single_variation .woocommerce-variation-price .price bdi {
    font-size: 18px;
}
.woocommerce-variation.single_variation .woocommerce-variation-price .price ins {
    text-decoration: none;
    color: var(--dm-primary, #B43F3F);
}
.woocommerce-variation.single_variation .woocommerce-variation-price .price del {
    font-size: 14px;
    color: #c0c0c0;
    font-weight: 600;
}
.woocommerce-variation.single_variation .woocommerce-variation-price .price .woocommerce-Price-currencySymbol {
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

.woocommerce-variation.single_variation .woocommerce-variation-availability {
    font-size: 12px;
    color: #16a34a;
    font-weight: 700;
}

/* دکمه‌های خرید */
.single_variation_wrap .woocommerce-variation-add-to-cart {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dm-sp-buy-btns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.dm-sp-buy-btns--single {
    grid-template-columns: 1fr;
}

.dm-btn-primary {
    width: 100%;
}

.dm-btn-primary {
    padding: 14px 12px;
    background: var(--dm-primary, #B43F3F);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity .2s;
    font-family: inherit;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
}

.dm-btn-primary:hover {
    opacity: .88;
    color: #fff;
}

.dm-btn-primary.dm-btn-disabled,
.dm-btn-primary:disabled {
    background: #e0e0e0;
    color: #bbb;
    cursor: not-allowed;
}

.dm-btn-secondary {
    padding: 14px 12px;
    background: #1e293b;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity .2s;
    font-family: inherit;
}

.dm-btn-secondary:hover {
    opacity: .88;
}

/* خدمات */
.dm-sp-services {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    gap: 6px;
}

.dm-sp-svc-item {
    display: flex;
    /*flex-direction: column;*/
    align-items: center;
    gap: 12px;
    flex: 1;
    text-align: start;
    font-size: 10px;
    color: #666;
    font-weight: 600;
    line-height: 1.4;
}

.dm-sp-svc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dm-sp-svc-icon svg {
    width: 22px !important;
    height: 22px !important;
    stroke: var(--dm-primary) !important;
}


/* ════════════════════════════════════════════
   تب‌ها: توضیحات / مشخصات / نظرات
   ════════════════════════════════════════════ */

.dm-sp-tabs-section {
    margin-bottom: 48px;
}

.dm-sp-tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}

.dm-sp-tab-nav::-webkit-scrollbar {
    display: none;
}

.dm-sp-tab-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    color: #aaa;
    text-decoration: none;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color .18s, border-color .18s;
}

.dm-sp-tab-link:hover {
    color: #555;
}

.dm-sp-tab-link.is-active {
    color: #1a1a1a;
    border-bottom-color: var(--dm-primary, #B43F3F);
}

.dm-sp-tab-count {
    background: var(--dm-primary, #B43F3F);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
}

.dm-sp-tab-panel {
    display: none;
}

.dm-sp-tab-panel.is-active {
    display: block;
}

.dm-sp-short-desc {
    font-size: 14px;
    color: #555;
    line-height: 2;
    margin-bottom: 16px;
}

.dm-sp-full-desc {
    font-size: 13.5px;
    color: #444;
    line-height: 2;
}

.dm-sp-full-desc p {
    margin: 0 0 12px;
}

/* مشخصات */
.dm-sp-specs-tbl {
    width: 100%;
    border-collapse: collapse;
}

.dm-sp-specs-tbl tr {
    border-bottom: 1px solid #f4f4f4;
}

.dm-sp-specs-tbl tr:nth-child(even) {
    background: #fafafa;
}

.dm-spec-extra {
    display: none;
}

.dm-sp-specs-tbl tr.dm-spec-extra.is-visible {
    display: table-row;
}

.dm-sp-specs-tbl th {
    text-align: right;
    padding: 12px 16px;
    font-size: 12.5px;
    font-weight: 500;
    color: #bbb;
    width: 28%;
    white-space: nowrap;
}

.dm-sp-specs-tbl td {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #222;
}

.dm-sp-more-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--dm-primary, #B43F3F);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 0;
    justify-content: center;
}

.dm-sp-more-link:hover {
    opacity: .8;
}

/* نظرات خالی */
.dm-sp-reviews-empty {
    padding: 32px 0;
}

.dm-sp-reviews-empty-text h3 {
    font-size: 16px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.dm-sp-reviews-empty-text p {
    font-size: 13px;
    color: #999;
    line-height: 1.75;
    margin: 0 0 16px;
}

.dm-btn-review {
    display: inline-flex;
    padding: 10px 22px;
    background: var(--dm-primary, #B43F3F);
    color: #fff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .2s;
}

.dm-btn-review:hover {
    opacity: .88;
    color: #fff;
}

/* فرم نظر */
.dm-sp-tab-panel .comment-form {
    direction: rtl;
    /*max-width: 680px;*/
}

.dm-sp-tab-panel .comment-form input,
.dm-sp-tab-panel .comment-form textarea {
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    padding: 10px 12px;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    direction: rtl;
    transition: border-color .18s;
    outline: none;
}

.dm-sp-tab-panel .comment-form input:focus,
.dm-sp-tab-panel .comment-form textarea:focus {
    border-color: var(--dm-primary, #B43F3F);
}

.dm-sp-tab-panel .comment-form .submit input {
    background: var(--dm-primary, #B43F3F);
    color: #fff;
    border: none;
    padding: 11px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    width: auto;
    transition: opacity .2s;
}

.dm-sp-tab-panel .comment-form .submit input:hover {
    opacity: .88;
}


/* ════════════════════════════════════════════
   بلوک‌های پایین: related / sale
   ════════════════════════════════════════════ */
.dm-sp-block {
    margin-bottom: 48px;
}

.dm-sp-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1.5px solid #f0f0f0;
}

.dm-sp-block-title {
    font-size: 17px;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.dm-sp-block-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--dm-primary, #B43F3F);
    border-radius: 2px;
    display: inline-block;
}

.dm-sp-view-all {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--dm-primary, #B43F3F);
    text-decoration: none;
    opacity: .85;
    transition: opacity .2s;
}

.dm-sp-view-all:hover {
    opacity: 1;
}

.dm-sp-products-slider {
    overflow: hidden;
    padding: 4px 0 36px;
}

.dm-sp-products-slider .swiper-button-next,
.dm-sp-products-slider .swiper-button-prev {
    color: var(--dm-primary, #B43F3F);
}


/* ════════════════════════════════════════════
   Share Tooltip
   ════════════════════════════════════════════ */
.dm-sp-share-wrap {
    position: relative;
}

.dm-sp-share-tooltip {
    position: absolute;
    right: 44px;
    top: -6px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .10);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 140px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateX(6px);
    transition: opacity .18s, visibility .18s, transform .18s;
    pointer-events: none;
}

.dm-sp-share-wrap:hover .dm-sp-share-tooltip,
.dm-sp-share-wrap:focus-within .dm-sp-share-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.dm-sp-share-item {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    gap: 9px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background .13s;
    white-space: nowrap;
    width: 100%;
    text-align: right;
    direction: rtl;
}

.dm-sp-share-item:hover {
    background: #f5f5f5;
}

.dm-sp-share-item:nth-child(1) svg {
    color: #0088cc;
}

.dm-sp-share-item:nth-child(2) svg {
    color: #25d366;
}

.dm-sp-share-item:nth-child(3) svg {
    color: var(--dm-primary, #B43F3F);
}


/* ════════════════════════════════════════════
   WooCommerce overrides
   ════════════════════════════════════════════ */
.dm-sp-wrap .woocommerce-breadcrumb {
    margin: 0;
}

.dm-sp-wrap .quantity {
    display: none !important;
}

/* Waitlist */
.dm-sp-var-waitlist,
.dm-sp-buy-btns [class*="dm-waitlist"],
.dm-sp-buy-btns [class*="waitlist"] {
    width: 100%;
}

.dm-sp-var-waitlist a,
.dm-sp-var-waitlist button,
.dm-sp-buy-btns [class*="waitlist"] a,
.dm-sp-buy-btns [class*="waitlist"] button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 12px;
    background: #1e293b;
    color: #fff !important;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: opacity .2s;
}

.dm-sp-var-waitlist a:hover,
.dm-sp-var-waitlist button:hover,
.dm-sp-buy-btns [class*="waitlist"] a:hover,
.dm-sp-buy-btns [class*="waitlist"] button:hover {
    opacity: .88;
}


/* ════════════════════════════════════════════
   Responsive — 1200px
   ════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .dm-sp-main {
        grid-template-columns: 380px 1fr;
        gap: 36px;
    }
}

/* ── 1024px ── */
@media (max-width: 1024px) {
    .dm-sp-main {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

/* ── 768px ── */
@media (max-width: 768px) {
    .dm-sp-container {
        padding: 0 0 10px;
    }

    .dm-sp-main {
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 0;
        margin-bottom: 28px;
    }

    /* گالری full-width */
    .dm-sp-img-main-wrap {
        border-radius: 0;
        background: #f5f5f5;
    }

    .dm-sp-thumbs {
        padding: 12px 16px 0;
    }

    /* اطلاعات با padding */
    .dm-sp-info {
        padding: 16px 16px 0;
        gap: 16px;
    }

    .dm-sp-title {
        font-size: 18px;
    }

    /* سوشیال استریپ عمودی در موبایل */
    .dm-sp-social-strip {
        right: 8px;
        top: 8px;
    }

    /* سرویس‌ها */
    .dm-sp-services {
        flex-wrap: wrap;
        padding: 14px 16px;
    }

    .dm-sp-svc-item {
        min-width: calc(33.33% - 8px);
        font-size: 10.5px;
    }

    /* تب‌ها */
    .dm-sp-tabs-section {
        padding: 0 16px;
    }

    .dm-sp-tab-link {
        padding: 10px 14px;
        font-size: 13px;
    }

    /* بلوک‌های پایین */
    .dm-sp-block {
        padding: 0 16px;
    }

}

/* ── 480px ── */
@media (max-width: 480px) {
    .dm-sp-main {
        grid-template-columns: 1fr;
    }

    .dm-sp-services {
        gap: 10px;
    }

    .dm-sp-svc-item {
        min-width: calc(50% - 8px);
    }
}

/* ════════════════════════════════════════════
   نوار خرید استیکی موبایل
   ════════════════════════════════════════════ */
.dm-sp-sticky-bar {
    display: none;
}

@media (max-width: 768px) {
    .dm-sp-sticky-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 200;
        background: #fff;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -4px 20px rgba(0, 0, 0, .12);
        border-radius: 16px 16px 0 0;
    }

    .dm-sp-sticky-btn {
        flex: 1;
        background: var(--dm-primary, #B43F3F);
        color: #fff;
        border: none;
        border-radius: 11px;
        padding: 13px;
        font-size: 14px;
        font-weight: 800;
        font-family: inherit;
        cursor: pointer;
        transition: opacity .2s;
    }

    .dm-sp-sticky-btn:active {
        opacity: .85;
    }

    .dm-sp-sticky-price {
        flex-shrink: 0;
        text-align: left;
    }

    .dm-sp-sticky-amount {
        font-size: 15px;
        font-weight: 900;
        color: #1a1a1a;
    }

    .dm-sp-sticky-amount .woocommerce-Price-currencySymbol {
        font-size: 11px;
        font-weight: 500;
        color: #777;
    }

    .dm-sp-sticky-amount del {
        display: none;
    }

    /* فضای پایین برای نوار استیکی */
    .dm-sp-wrap {
        padding-bottom: 76px;
    }

    /* چون نوار خرید استیکی در موبایل هست، دکمهٔ افزودن به سبد داخل صفحه تکراری است */
    .dm-sp-buy-btns--single {
        display: none !important;
    }
}

/* وقتی کشوی سبد خرید باز است، نوار استیکی نباید روی دکمه‌های «سبد/تسویه» بیفتد */
body:has(#js-mini-cart-panel.is-open) .dm-sp-sticky-bar {
    display: none !important;
}


/*///==================================///*/
/*NEW CODES*/
/*///========================================///*/

/* وضعیت موجودی */
.dm-sp-wrap .dm-sp-stock-status {
    font-size: 13px;
    font-weight: 700;
}

.dm-sp-wrap .dm-stock-in {
    color: var(--dm-primary, #B43F3F);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dm-sp-wrap .dm-stock-out {
    color: #ef4444;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dm-sp-wrap .dm-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
}

/* مشخصات سریع */
.dm-sp-wrap .dm-sp-quick-specs {
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
    margin-bottom: 25px;
}

.dm-sp-wrap .dm-sp-qspec-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
}

.dm-sp-wrap .dm-sp-qspec-key {
    color: #888888;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dm-sp-wrap .dm-sp-qspec-val {
    color: #222222;
    font-weight: 700;
    width: 50%;
}

.dm-sp-wrap .dm-sp-qspec-extra {
    color: var(--dm-primary);
}

/* آکاردئون جزئیات قیمت */
.dm-sp-wrap .dm-sp-price-details {
    background-color: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    margin-bottom: 25px;
}

.dm-sp-wrap .dm-sp-price-details summary {
    list-style: none;
    cursor: pointer;
    padding: 15px;
    font-size: 13px;
    font-weight: 700;
    color: var(--dm-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dm-sp-wrap .dm-sp-price-details summary::-webkit-details-marker {
    display: none;
}

.dm-sp-wrap .dm-sp-price-details .dm-sp-pd-title {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dm-sp-wrap .dm-sp-pd-content {
    padding: 0 15px 15px;
    border-top: 1px dashed #e0e0e0;
    margin-top: 5px;
}

.dm-sp-wrap .dm-sp-pd-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 10px 0;
    color: #666666;
}

.dm-sp-wrap .pd-total {
    font-weight: 800;
    color: var(--dm-primary);
    font-size: 14px;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
    margin-top: 5px;
}

/* دکمه هدیه و ویژگی‌های مینی */
.dm-sp-wrap .dm-sp-btn-gift {
    width: 100%;
    background-color: #ffffff;
    color: var(--dm-primary);
    border: 1px solid var(--dm-primary);
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    margin-bottom: 25px;
    transition: var(--main-transition);
}

.dm-sp-wrap .dm-sp-btn-gift:hover {
    background-color: var(--dm-primary);
    color: #ffffff;
}

.dm-sp-wrap .dm-sp-features-mini {
    display: flex;
    gap: 15px;
    border-top: 1px solid #f0f0f0;
    padding-top: 25px;
}

.dm-sp-wrap .dm-sp-fm-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dm-sp-wrap .dm-sp-fm-text {
    display: flex;
    flex-direction: column;
}

.dm-sp-wrap .dm-sp-fm-text strong {
    font-size: 10px;
    color: #333333;
    font-weight: 800;
}

.dm-sp-wrap .dm-sp-fm-text span {
    font-size: 9px;
    color: #888888;
}

/* آیکون‌های اعتماد در تب توضیحات */
.dm-sp-wrap .dm-sp-trust-badges {
    display: flex;
    justify-content: space-between;
    background-color: #fafafa;
    padding: 30px;
    border-radius: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.dm-sp-wrap .dm-sp-tb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #555555;
    max-width: 120px;
}

/* متای قبل از قیمت (نظرات و کد محصول) */
.dm-sp-wrap .dm-sp-pre-price-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* هدایت محتوا به سمت چپ در ساختار راست‌چین (RTL) */
    gap: 10px;
    margin-bottom: 12px;
}

.dm-sp-wrap .dm-sp-rating-stars {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dm-sp-wrap .dm-sp-stars-wrapper {
    display: flex;
    align-items: center;
    gap: 2px;
}

.dm-sp-wrap .dm-sp-rating-count {
    font-size: 13px;
    color: #777777;
}

.dm-sp-wrap .dm-sp-sku-wrap {
    font-size: 13px;
    color: #888888;
}

.dm-sp-wrap .dm-sp-sku-wrap .sku {
    color: #555555;
    font-weight: 600;
    text-transform: uppercase;
    font-family: Arial, sans-serif; /* برای خوانایی بهتر حروف انگلیسی در کد محصول */
}


/* ردیف دکمه خرید و شمارنده */
.dm-sp-wrap .dm-sp-action-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.dm-sp-wrap .dm-sp-add-to-cart-wrap {
    flex: 1; /* باعث میشه دکمه خرید تمام فضای باقی‌مانده رو پر کنه */
}

.dm-sp-wrap .dm-sp-action-row .dm-btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background-color: var(--button-bg,var(--dm-primary)) !important; /* هماهنگ با متغیرهای رنگی شما */
    border-radius: 8px;
    font-size: 15px;
    color: #fff;
    border: none;
    transition: var(--main-transition) !important;
}

.dm-sp-wrap .dm-sp-action-row .dm-btn-primary:hover {
    opacity: 0.9 !important;
}

/* استایل شمارنده محصول */
.dm-sp-wrap .dm-sp-qty-wrap {
    display: flex;
    align-items: center;
    background-color: #fbfbfb;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    width: 110px;
    height: 48px;
    overflow: hidden;
}

.dm-sp-wrap .dm-qty-btn {
    background: transparent;
    border: none;
    width: 35px;
    height: 100%;
    font-size: 18px;
    color: #666666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--main-transition);
}

.dm-sp-wrap .dm-qty-btn:hover {
    color: var(--button-bg,var(--dm-primary));
    background-color: #f0f0f0;
}

.dm-sp-wrap .dm-qty-input {
    width: 40px;
    height: 100%;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    -moz-appearance: textfield;
    outline: none;
    font-family: inherit;
}

.dm-sp-wrap .dm-qty-input::-webkit-outer-spin-button,
.dm-sp-wrap .dm-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* نمایش اجباری شمارنده ووکامرس */
.dm-sp-wrap input.qty,
.dm-sp-wrap input.qty-sticky {
    display: inline-block !important;
}

/* تنظیمات نوار استیکی موبایل برای جا دادن دکمه و شمارنده */
.dm-sp-sticky-bar .dm-sp-action-row {
    margin-bottom: 0;
    width: 100%;
}

.dm-sp-sticky-bar .dm-sp-add-to-cart-wrap {
    flex: 1;
}

.dm-sp-sticky-bar .dm-sp-qty-wrap {
    height: 44px; /* کمی کوچکتر برای موبایل */
    width: 100px;
}

.woocommerce #reviews #comments ol.commentlist {
    padding: 0 !important;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text {
    border-radius: 12px !important;
    border-color: #f0f0f0 !important;
    background-color: var(--dm-border) !important;
}

.woocommerce div.product form.cart {
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    /* مخفی کردن دکمه اصلی و شمارنده در موبایل */
    .dm-sp-info .dm-sp-action-row, form.cart {
        display: none !important;
    }

    /* اطمینان از نمایش نوار استیکی */
    .dm-sp-sticky-bar {
        display: flex !important;
    }

    .dm-sp-wrap .dm-sp-price-details {
        margin-bottom: 0;
    }
}

/* ============================================================
   آرایش و زیباسازی فرم ثبت نظر (ووکامرس)
   ============================================================ */

/* باکس اصلی فرم */
#review_form_wrapper {
    margin-top: 30px !important;
    padding: 30px !important;
    background-color: #fbfbfb !important;
    border: 1px solid #eeeeee !important;
    border-radius: 16px !important;
    direction: rtl !important;
}

/* عنوان فرم (مثلاً: Add a review) */
#review_form_wrapper .comment-reply-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #111111 !important;
    margin-bottom: 25px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding-bottom: 15px !important;
    font-family: inherit !important;
}

/* لینک انصراف از پاسخ */
#review_form_wrapper #cancel-comment-reply-link {
    font-size: 0.85rem !important;
    color: #ef4444 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

/* لیبل‌های فرم */
#review_form_wrapper .comment-form label {
    display: block !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #333333 !important;
    margin-bottom: 10px !important;
}

/* ستاره قرمز فیلدهای ضروری */
#review_form_wrapper .comment-form .required {
    color: #ef4444 !important;
    margin-right: 3px !important;
    font-size: 1rem !important;
}

/* ── بخش امتیازدهی ستاره‌ای ── */
#review_form_wrapper .comment-form-rating {
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

#review_form_wrapper .comment-form-rating label {
    margin-bottom: 0 !important;
}

#review_form_wrapper p.stars {
    margin: 0 !important;
    line-height: 1 !important;
}

#review_form_wrapper p.stars a {
    color: #F59E0B !important; /* رنگ طلایی/زرد برای ستاره‌ها */
    transition: color 0.2s ease !important;
}

#review_form_wrapper p.stars a:hover,
#review_form_wrapper p.stars a:focus {
    outline: none !important;
}

/* ── فیلد متنی (باکس نظر) ── */
#review_form_wrapper .comment-form-comment {
    margin-bottom: 20px !important;
}

#review_form_wrapper .comment-form textarea {
    width: 100% !important;
    background-color: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 12px !important;
    padding: 15px !important;
    font-size: 0.95rem !important;
    font-family: inherit !important;
    color: #444444 !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.02) !important;
    outline: none !important;
    transition: all 0.3s ease !important;
    resize: vertical !important;
    min-height: 120px !important;
}

#review_form_wrapper .comment-form textarea:focus {
    border-color: var(--button-bg,var(--dm-primary)) !important;
    box-shadow: 0 0 0 3px rgba(197, 140, 57, 0.15) !important;
}

/* ── دکمه ثبت نظر ── */
#review_form_wrapper .form-submit {
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    text-align: left !important; /* دکمه در زبان فارسی معمولاً سمت چپ زیباتر است */
}

#review_form_wrapper input[type="submit"] {
    background-color: var(--button-bg,var(--dm-primary)) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 35px !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
}

#review_form_wrapper input[type="submit"]:hover {
    background-color: #b08d28 !important; /* کمی تیره‌تر در حالت هاور */
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(197, 140, 57, 0.25) !important;
}

/* ── ریسپانسیو (موبایل) ── */
@media (max-width: 576px) {
    #review_form_wrapper {
        padding: 20px 15px !important;
    }

    #review_form_wrapper .comment-form-rating {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    #review_form_wrapper input[type="submit"] {
        width: 100% !important; /* دکمه تمام عرض در موبایل */
    }
}


.dm-sp-wrap .dm-sp-price-subtitle {
    font-size: 13px;
    color: #888888;
    text-align: right;
    font-weight: 500;
    margin-bottom: 10px;
}

/* ============================================================
   تطبیق صفحه تک‌محصول با تم دارک (Dark Mode)
   ============================================================ */

/* پس‌زمینه‌های اصلی */
body.theme-dark .dm-sp-wrap,
body.theme-dark .dm-sp-breadcrumb,
body.theme-dark .dm-sp-share-tooltip,
body.theme-dark .dm-sp-sticky-bar,
body.theme-dark .dm-sp-btn-gift {
    background-color: var(--dm-bg-soft);
}

/* پس‌زمینه‌های ثانویه (کارت‌ها و باکس‌ها) */
body.theme-dark .dm-sp-img-main-wrap,
body.theme-dark .dm-sp-thumb,
body.theme-dark .dm-sp-specs-tbl tr:nth-child(even),
body.theme-dark .dm-sp-price-details,
body.theme-dark .dm-sp-trust-badges,
body.theme-dark .dm-sp-qty-wrap,
body.theme-dark #review_form_wrapper,
body.theme-dark .dm-qty-btn:hover,
body.theme-dark .dm-sp-share-item:hover,
body.theme-dark #review_form_wrapper .comment-form textarea,
body.theme-dark .dm-swatch-text,
body.theme-dark .dm-sp-warranty-btn {
    background-color: var(--dm-border) !important;
}

/* دکمه‌های شیشه‌ای روی عکس */
body.theme-dark .dm-sp-zoom-btn,
body.theme-dark .dm-sp-social-btn {
    background: rgba(21, 32, 43, 0.85); /* سرمه‌ای تیره نیمه‌شفاف */
    border-color: var(--dm-border);
    color: var(--dm-text-muted);
}

/* رنگ متن اصلی */
body.theme-dark .dm-sp-title,
body.theme-dark .dm-sp-section-label,
body.theme-dark .dm-sp-attr-label,
body.theme-dark .dm-sp-cur-price,
body.theme-dark .dm-sp-cur-price bdi,
body.theme-dark .dm-sp-price-range,
body.theme-dark .dm-sp-price-range bdi,
body.theme-dark .woocommerce-variation.single_variation .woocommerce-variation-price .price,
body.theme-dark .dm-sp-tab-link.is-active,
body.theme-dark .dm-sp-short-desc,
body.theme-dark .dm-sp-full-desc,
body.theme-dark .dm-sp-specs-tbl td,
body.theme-dark .dm-sp-reviews-empty-text h3,
body.theme-dark .dm-sp-block-title,
body.theme-dark .dm-sp-share-item,
body.theme-dark .dm-sp-sticky-amount,
body.theme-dark .dm-sp-qspec-val,
body.theme-dark .dm-sp-fm-text strong,
body.theme-dark .dm-sp-tb-item,
body.theme-dark .dm-sp-sku-wrap .sku,
body.theme-dark .dm-qty-input,
body.theme-dark #review_form_wrapper .comment-reply-title,
body.theme-dark #review_form_wrapper .comment-form label,
body.theme-dark #review_form_wrapper .comment-form textarea,
body.theme-dark .dm-swatch-text,
body.theme-dark .dm-sp-warranty-btn {
    color: var(--dm-text) !important;
}

/* رنگ متن خاموش و کم‌رنگ */
body.theme-dark .dm-sp-breadcrumb .woocommerce-breadcrumb,
body.theme-dark .dm-sp-breadcrumb a,
body.theme-dark .dm-sp-meta,
body.theme-dark .reset_variations,
body.theme-dark .dm-sp-select-hint,
body.theme-dark .dm-sp-old-price,
body.theme-dark .dm-sp-old-price bdi,
body.theme-dark .dm-sp-cur-price .woocommerce-Price-currencySymbol,
body.theme-dark .dm-sp-price-range .woocommerce-Price-currencySymbol,
body.theme-dark .dm-sp-price-range del,
body.theme-dark .dm-sp-tab-link,
body.theme-dark .dm-sp-specs-tbl th,
body.theme-dark .dm-sp-reviews-empty-text p,
body.theme-dark .dm-sp-qspec-key,
body.theme-dark .dm-sp-pd-row,
body.theme-dark .dm-sp-fm-text span,
body.theme-dark .dm-sp-rating-count,
body.theme-dark .dm-sp-sku-wrap,
body.theme-dark .dm-qty-btn,
body.theme-dark .dm-sp-svc-item {
    color: var(--dm-text-muted) !important;
}

/* خطوط مرزی و Border ها */
body.theme-dark .dm-sp-breadcrumb,
body.theme-dark .dm-sp-meta-sep,
body.theme-dark .dm-sp-services,
body.theme-dark .dm-sp-tab-nav,
body.theme-dark .dm-sp-specs-tbl tr,
body.theme-dark .dm-sp-block-header,
body.theme-dark .dm-sp-qspec-row,
body.theme-dark .dm-sp-price-details,
body.theme-dark .dm-sp-pd-content,
body.theme-dark .pd-total,
body.theme-dark .dm-sp-features-mini,
body.theme-dark .dm-sp-qty-wrap,
body.theme-dark #review_form_wrapper,
body.theme-dark #review_form_wrapper .comment-reply-title,
body.theme-dark .dm-swatch-text,
body.theme-dark .dm-sp-warranty-btn,
body.theme-dark .dm-sp-thumb,
body.theme-dark .dm-sp-share-tooltip,
body.theme-dark #review_form_wrapper .comment-form textarea {
    border-color: var(--dm-border) !important;
}

/* دایره‌های رنگ محصول */
body.theme-dark .dm-swatch-circle {
    border-color: var(--dm-bg-soft);
    box-shadow: 0 0 0 1.5px var(--dm-border) !important;
}

/* حالت فعال/هاور المان‌های انتخاب‌گر (رنگ اصلی) */
body.theme-dark .dm-swatch-text.is-active,
body.theme-dark .dm-sp-warranty-btn.is-active {
    background-color: rgba(242, 167, 5, 0.1); /* پس زمینه محو با رنگ اکشن شما */
    border-color: var(--dm-primary) !important;
    color: var(--dm-primary) !important;
}

body.theme-dark .dm-swatch-circle.is-active,
body.theme-dark .dm-swatch-circle:hover,
body.theme-dark .dm-sp-thumb.is-active,
body.theme-dark .dm-sp-thumb:hover,
body.theme-dark #review_form_wrapper .comment-form textarea:focus {
    border-color: var(--dm-primary) !important;
}

body.theme-dark .dm-swatch-circle.is-active {
    box-shadow: 0 0 0 2.5px var(--dm-primary) !important;
}

/* بج اصالت کالا (سبز) */
body.theme-dark .dm-sp-badge-auth {
    background: rgba(22, 163, 74, 0.15) !important;
    color: #4ade80 !important;
}

/* دکمه‌های غیرفعال (ناموجود) */
body.theme-dark .dm-btn-primary.dm-btn-disabled,
body.theme-dark .dm-btn-primary:disabled {
    background: var(--dm-border);
    color: var(--dm-text-muted);
}

body.theme-dark .dm-sp-img-main {
    filter: brightness(0.9) contrast(1.1); /* کمی کاهش روشنایی برای هماهنگی با تم دارک */
}

/* ============================================================
   تطبیق بخش نظرات (Comments) با تم دارک
   ============================================================ */

/* رنگ متن نظرات و توضیحات */
body.theme-dark .woocommerce-Reviews-title,
body.theme-dark .woocommerce-review__author,
body.theme-dark .description p,
body.theme-dark #review_form_wrapper .comment-form label {
    color: var(--dm-text) !important;
}

body.theme-dark .woocommerce-review__published-date {
    color: var(--dm-text-muted) !important;
}

/* کارت‌های نظرات */
body.theme-dark .comment_container {
    border: 1px solid var(--dm-border) !important;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

/* ستاره‌های امتیازدهی */
body.theme-dark .star-rating span {
    color: #F59E0B !important; /* طلایی */
}

/* باکس فرم ثبت نظر */
body.theme-dark #review_form_wrapper {
    background-color: var(--dm-bg-soft) !important;
    border-color: var(--dm-border) !important;
}

/* اینپوت‌ها و تکست‌اریا */
body.theme-dark .comment-form textarea,
body.theme-dark .comment-form input {
    background-color: var(--dm-border) !important;
    border-color: var(--dm-border) !important;
    color: var(--dm-text) !important;
}

/* دکمه ثبت */
body.theme-dark .form-submit input[type="submit"] {
    background-color: var(--dm-primary) !important;
}

body.theme-dark #reply-title {
    color: var(--dm-text) !important;
}