﻿@media (min-width: 992px) {
    .product-rating-box-sticky { position: sticky; top: 90px; align-self: flex-start; margin: 2rem 0 2rem; }
}

.product-rating-bar-label { min-width: 72px; display: inline-block; }
.product-price-breakdown { font-size: 0.85rem; }
.product-price-breakdown-table { background: transparent !important; border: none !important; }
.product-price-breakdown-table td { border: none !important; border-bottom: 1px solid rgba(0,0,0,.06) !important; padding: 4px 8px; vertical-align: middle; opacity: .6; }
.product-price-breakdown-table tr:last-child td { border-bottom: none !important; }

/* ارزش‌افزوده: کارت و چک‌باکس واضح و مدرن */
.va-options-container { gap: 0.75rem !important; }
.va-option-item { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.9rem; border: 2px solid rgba(0,0,0,.12); border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; min-height: 48px; }
.va-option-item:hover { border-color: rgba(0,0,0,.2); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.va-option-item:has(.va-option:checked) { border-color: var(--C1); background: var(--C8); box-shadow: 0 0 0 1px var(--C1); }
.va-option-item .form-check-input.va-option { width: 1.25rem; height: 1.25rem; margin: 0; margin-left: 0.25rem; flex-shrink: 0; cursor: pointer; border-width: 2px; }
.va-option-item .form-check-input:checked { background-color: var(--C1); border-color: var(--C1); }
.va-option-item .form-check-label { cursor: pointer; margin: 0; font-size: 0.95rem; line-height: 1.4; }
.va-option-item .va-option-image { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }

/* نوار ثابت موبایل: قیمت + افزودن به سبد (بالای منوی پایین ۶۰px) */
@media (max-width: 767.98px) {
    .product-detail.pb-5 { padding-bottom: 130px !important; }
}
/* خوابیده: منوی پایین به ریل راست می‌رود؛ فاصلهٔ پایین صفحه کمتر (نوار به bottom می‌چسبد — تنظیم نهایی در style.css) */
@media (max-width: 992px) and (orientation: landscape) {
    .product-detail.pb-5 { padding-bottom: 92px !important; }
}

.product-sticky-bar { position: fixed; left: 0; right: 0; bottom: 65px; z-index: 1040; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.8rem 1.3rem; background: var(--C8); box-shadow: 0 -2px 12px rgba(0,0,0,.12); border-top: 1px solid var(--C4); transform: translateY(100%); opacity: 0; transition: transform 0.4s ease-out, opacity 0.35s ease-out; }
.product-sticky-bar.visible { transform: translateY(0); opacity: 1; }
.product-sticky-bar .product-sticky-bar-price { display: flex; flex-direction: column; align-items: flex-start; gap: 0.12rem; min-width: 0; }
.product-sticky-bar-line1 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.25rem 0.35rem; min-width: 0; }
.product-sticky-bar .product-sticky-bar-price .price-value { font-weight: 700; font-size: 1.3rem; line-height: 1.15; }
.product-sticky-bar .price-currency-inline { font-size: 0.68em; font-weight: 600; opacity: 0.88; line-height: 1; white-space: nowrap; }
.product-sticky-discount-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.35rem 0.55rem; max-width: 100%; }
.product-sticky-discount-row.d-none { display: none !important; }
.product-sticky-original-line { display: inline-flex; align-items: baseline; gap: 0.2rem; text-decoration: line-through; opacity: 0.78; font-size: 0.78rem; line-height: 1.2; }
.product-sticky-original-value { text-decoration: line-through; }
.product-sticky-original-unit { font-size: 0.88em; font-weight: 500; opacity: 0.9; text-decoration: line-through; }
.product-sticky-discount-pct { font-size: 0.78rem; font-weight: 700; color: #dc3545; white-space: nowrap; }
[data-bs-theme="dark"] .product-sticky-discount-pct { color: #ff8b9a; }
.product-sticky-bar .product-sticky-bar-line2 { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.product-sticky-bar .price-currency:not(.price-currency-inline) { font-size: 0.85rem; opacity: .9; }
.product-sticky-bar .product-sticky-qty { font-size: 0.85rem; opacity: .85; }
.product-sticky-bar .btn-add-to-cart-sticky { white-space: nowrap; padding: 1rem 0.9rem; font-size: 0.9rem; flex-shrink: 0; }
.product-sticky-bar-actions { display: flex; align-items: stretch; gap: 0.5rem; flex-shrink: 0; }
.product-sticky-bar-actions .btn-add-to-cart-sticky { flex: 1 1 auto; min-width: 0; width: auto; }
.product-sticky-bar-actions .product-sticky-wishlist-btn { flex: 0 0 2.9rem; width: 2.9rem; min-width: 2.9rem; min-height: 2.9rem; border-radius: 14px; font-size: 1.35rem; }
.product-sticky-bar-actions .product-sticky-wishlist-btn i { font-size: 1.35rem; line-height: 1; }

.product-sticky-bar .product-sticky-free-subtitle { color: var(--C5); font-weight: 600; line-height: 1.35; margin-top: 0.05rem; opacity: 0.85; }
[data-bs-theme="dark"] .product-sticky-bar .product-sticky-free-subtitle { color: var(--C5); }

/* نوار عنوان + تصویر اصلی محصول (کاور گالری، نه اسلاید اول) زیر هدر — فقط موبایل */
@media (max-width: 767.98px) {
    .product-mobile-title-sticky { position: fixed; left: 0; right: 0; top: var(--product-hero-sticky-top, var(--product-mobile-title-sticky-top, 60px)); z-index: 998; display: flex; align-items: center; padding: 0.42rem max(0.75rem, env(safe-area-inset-right, 0px)) 0.42rem max(0.75rem, env(safe-area-inset-left, 0px)); background: var(--C8); border-bottom: 1px solid var(--C4); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); transform: translateY(-100%); opacity: 0; visibility: hidden; pointer-events: none; transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.16s ease, visibility 0s linear 0.2s; will-change: transform; }
    .product-mobile-title-sticky.product-mobile-title-sticky--visible { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.16s ease, visibility 0s linear 0s; }
    .product-mobile-title-sticky__inner { display: flex; align-items: center; gap: 0.65rem; width: 100%; min-width: 0; }
    .product-mobile-title-sticky__img { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; border-radius: 9px; background: color-mix(in srgb, var(--C4) 55%, var(--C8)); }
    .product-mobile-title-sticky__title { font-size: 0.9rem; font-weight: 700; line-height: 1.35; color: var(--C6); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; flex: 1; text-align: right; }
    /* موبایل خوابیده: کنار ریل منوی عمودی ۶۶px — مثل نوار قیمت */
    @media (orientation: landscape) {
        .product-mobile-title-sticky { left: 0 !important; right: 66px !important; padding-top: max(0.32rem, env(safe-area-inset-top, 0px)) !important; padding-bottom: max(0.32rem, env(safe-area-inset-bottom, 0px)) !important; padding-left: max(1.1rem, env(safe-area-inset-left, 0px)) !important; padding-right: max(1.1rem, env(safe-area-inset-right, 0px)) !important; }
        .product-mobile-title-sticky__inner { gap: 0.45rem; }
        .product-mobile-title-sticky__img { width: 34px; height: 34px; border-radius: 7px; }
        .product-mobile-title-sticky__title { font-size: 0.8rem; line-height: 1.25; -webkit-line-clamp: 1; }
    }
}

[data-bs-theme="dark"] .product-mobile-title-sticky { background: var(--C2); border-bottom-color: var(--C5); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28); }
[data-bs-theme="dark"] .product-mobile-title-sticky__title { color: var(--C6); }
[data-bs-theme="dark"] .product-mobile-title-sticky__img { background: color-mix(in srgb, var(--C4) 40%, var(--C2)); }
/* نام واریانت کنار عنوان نوار sticky — خیلی ریز داخل پرانتز */
.product-sticky-title-variant { font-size: 0.62em; font-weight: 600; opacity: 0.86; line-height: 1.2; unicode-bidi: plaintext; }

@media (max-width: 767.98px) {
    .product-mobile-title-sticky__title .product-sticky-title-variant { font-size: 0.58em; font-weight: 600; }
}

[data-bs-theme="dark"] .product-sticky-title-variant { opacity: 0.92; }

@media (prefers-reduced-motion: reduce) {
    .product-mobile-title-sticky { transition-duration: 0.05s; }
}

.product-hero-scroll-sentinel { height: 1px; width: 100%; margin: 0; padding: 0; overflow: hidden; pointer-events: none; visibility: hidden; }

/* نوار ثابت زیر هدر — دسکتاپ/تبلت: یک ردیف؛ راست تصویر+عنوان، چپ قیمت+تخفیف+دکمه‌ها */
@media (min-width: 768px) {
    .product-desktop-hero-sticky { position: fixed; left: 0; right: 0; top: var(--product-hero-sticky-top, var(--product-mobile-title-sticky-top, 118px)); z-index: 998; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.35rem; padding: 0.45rem max(1rem, env(safe-area-inset-left, 0px)) 0.45rem max(1rem, env(safe-area-inset-right, 0px)); background: var(--C8); border-bottom: 1px solid var(--C4); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); transform: translateY(-100%); opacity: 0; visibility: hidden; pointer-events: none; transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.16s ease, visibility 0s linear 0.2s; will-change: transform; }
    .product-desktop-hero-sticky.product-desktop-hero-sticky--visible { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.16s ease, visibility 0s linear 0s; }
    .product-desktop-hero-sticky__brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; flex: 1 1 42%; max-width: 58%; }
    .product-desktop-hero-sticky__img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; border-radius: 10px; background: color-mix(in srgb, var(--C4) 50%, var(--C8)); }
    .product-desktop-hero-sticky__title { font-size: 0.95rem; font-weight: 700; line-height: 1.35; color: var(--C6); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; text-align: right; }
    .product-desktop-hero-sticky__buy { display: flex; flex-direction: row; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 0.65rem 1rem; flex: 0 1 auto; min-width: 0; }
    .product-desktop-hero-sticky__price-block { display: flex; flex-direction: column; align-items: flex-end; gap: 0.12rem; min-width: 0; }
    .product-desktop-hero-sticky__price-line { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: flex-end; gap: 0.25rem 0.4rem; }
    .product-desktop-hero-sticky__price-line .price-value { font-weight: 800; font-size: 1.25rem; line-height: 1.1; color: var(--C3); }
    .product-desktop-hero-sticky__price-line .price-currency-inline { font-size: 0.72em; font-weight: 600; opacity: 0.88; }
    .product-desktop-hero-sticky__discount-row { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: flex-end; gap: 0.35rem 0.55rem; max-width: 100%; }
    .product-desktop-hero-sticky__discount-row.d-none { display: none !important; }
    .product-desktop-hero-strike { font-size: 0.8rem; opacity: 0.78; text-decoration: line-through; display: inline-flex; align-items: baseline; gap: 0.2rem; }
    .product-desktop-hero-strike-unit { font-size: 0.88em; text-decoration: line-through; }
    .product-desktop-hero-discount-pct { font-size: 0.78rem; font-weight: 700; color: #dc3545; }
    .product-desktop-hero-qty { font-size: 0.8rem; opacity: 0.85; }
    .product-desktop-hero-sticky__actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
    .product-desktop-hero-wishlist-btn { min-width: 2.75rem; min-height: 2.75rem; border-radius: 14px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; }
    .btn-add-to-cart-desktop-sticky { white-space: nowrap; padding: 0.65rem 1.1rem; font-size: 0.9rem; font-weight: 600; border-radius: 12px; }
    .product-desktop-hero-sticky--free .product-desktop-hero-sticky__buy--free { align-items: center; gap: 1rem; }
    .product-desktop-hero-sticky--free .product-desktop-hero-sticky__free-price { text-align: right; }
    .product-desktop-hero-sticky__price-block.is-variant-desktop-hero-pricing-loading { position: relative; min-height: 2.5rem; }
    .product-variant-desktop-hero-loader { position: absolute; inset: 0; z-index: 2; display: none; align-items: center; justify-content: center; pointer-events: none; border-radius: 8px; background: color-mix(in srgb, var(--C8) 86%, transparent); }
    .product-desktop-hero-sticky__price-block.is-variant-desktop-hero-pricing-loading .product-variant-desktop-hero-loader { display: flex; }
    .product-variant-desktop-hero-loader::after { content: ''; width: 20px; height: 20px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--C1) 28%, transparent); border-top-color: var(--C1); animation: productVariantStickyLoaderSpin 0.72s linear infinite; }
    .product-desktop-hero-sticky__price-block.is-variant-desktop-hero-pricing-loading .product-desktop-hero-sticky__price-line,
    .product-desktop-hero-sticky__price-block.is-variant-desktop-hero-pricing-loading .product-desktop-hero-sticky__discount-row,
    .product-desktop-hero-sticky__price-block.is-variant-desktop-hero-pricing-loading .product-desktop-hero-qty { opacity: 0.22; }
    .product-desktop-hero-sticky-wrap .product-desktop-hero-sticky__price-block.price-updating .price-loader { display: inline-flex !important; }
    .product-desktop-hero-sticky-wrap .product-desktop-hero-sticky__price-block.price-updating .price-value { opacity: 0.7; }
}

[data-bs-theme="dark"] .product-desktop-hero-sticky { background: var(--C2); border-bottom-color: var(--C5); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28); }
[data-bs-theme="dark"] .product-desktop-hero-sticky__title { color: var(--C6); }
[data-bs-theme="dark"] .product-desktop-hero-sticky__price-line .price-value { color: var(--C6); }

@media (prefers-reduced-motion: reduce) {
    .product-desktop-hero-sticky { transition-duration: 0.05s; }
}

/* مودال راهنمای خرید — فونت کمی بزرگ‌تر */
#purchaseHelpModal .purchase-help-modal-body,
#purchaseHelpModal .purchase-help-modal-inner { font-size: 1.0625rem; line-height: 1.75; }
#purchaseHelpModal .purchase-help-modal-note { font-size: 1rem; line-height: 1.7; }

/* کارت برند محصول: مینیمال و حرفه‌ای */
.product-brand-card-wrapper { display: block; }
.product-brand-card { display: inline-flex; align-items: center; text-decoration: none; color: inherit; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 12px; padding: 0.6rem 1rem; transition: border-color .2s, box-shadow .2s, background .2s; }
.product-brand-card:hover { border-color: rgba(0,0,0,.15); box-shadow: 0 2px 12px rgba(0,0,0,.06); background: #fafafa; }
.product-brand-card-inner { display: inline-flex; align-items: center; gap: 0.6rem; }
.product-brand-card-logo { max-height: 28px; width: auto; max-width: 80px; object-fit: contain; }
.product-brand-card-name { font-weight: 600; font-size: 0.95rem; }
.product-brand-card-arrow { font-size: 1rem; opacity: .6; }
/* دارک‌مود */
[data-bs-theme="dark"] .product-brand-card { background: var(--C4, #1f2a3a); border-color: rgba(255,255,255,.1); color: var(--C6, #e5e7eb); }
[data-bs-theme="dark"] .product-brand-card:hover { border-color: rgba(255,255,255,.2); background: var(--C3, #274973); box-shadow: 0 2px 12px rgba(0,0,0,.25); }
[data-bs-theme="dark"] .product-brand-card-arrow { opacity: .8; }

/* دکمه پیش‌نمایش زنده (زیر اسلایدر) */
.live-demo-link-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 52px; padding: .8rem 1.35rem; border-radius: 14px; border: 1px solid var(--C4); background: linear-gradient(135deg, var(--C5) 0%, var(--C5) 100%); color: var(--C1); font-size: 1rem; font-weight: 700; text-decoration: none !important; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); transition: all .25s ease; }
.live-demo-link-btn:hover { color: var(--C2); background: linear-gradient(135deg, var(--C1) 0%, var(--C3) 100%); border-color: var(--C1); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2); }
.live-demo-link-btn i { font-size: 1.1rem; line-height: 1; }
[data-bs-theme="dark"] .live-demo-link-btn { border-color: rgba(255,255,255,.2); background: linear-gradient(135deg, #1a332a 0%, #1f3a2d 100%); color: var(--C6, #e5e7eb); box-shadow: 0 6px 16px rgba(0,0,0,.35); }
[data-bs-theme="dark"] .live-demo-link-btn:hover { background: linear-gradient(135deg, #047b54 0%, #0b9b69 100%); border-color: #1ab380; color: #fff; box-shadow: 0 12px 26px rgba(4, 123, 84, .35); }

@media (max-width: 576px) {
    .live-demo-link-btn { width: 100%; }
}

/* آخرین بازدیدها: رنگ‌ها از تم (--C)، چیدمان row/col */
.recently-viewed-list-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; border-radius: 8px; text-decoration: none; color: var(--C6); border: 1px solid var(--C4); background: var(--C8); transition: border-color .2s, box-shadow .2s; }
.recently-viewed-list-item:hover { border-color: var(--C3); box-shadow: 0 2px 8px rgba(0,0,0,.06); color: var(--C6); }
.recently-viewed-list-item-img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; flex-shrink: 0; margin-right: 0.5rem; }
.recently-viewed-list-item-name { flex: 1; font-size: 0.9rem; font-weight: 500; line-height: 1.35; color: var(--C6); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
[data-bs-theme="dark"] .recently-viewed-list-item { background: var(--C4); border-color: rgba(255,255,255,.1); }
[data-bs-theme="dark"] .recently-viewed-list-item:hover { border-color: rgba(255,255,255,.2); }

/* چیدمان باکس خرید: بالای کارت تیره — ورود/ارزش‌افزوده؛ داخل کارت — قیمت + سبد */
.product-purchase-layout { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 140px; }
.product-options-shell { background: var(--C8); border: 1px solid var(--C4); border-radius: 18px; padding: 1rem 1.1rem; }
.product-options-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.product-options-grid .product-variant-selector,
.product-options-grid .value-added-card { height: 100%; margin-bottom: 0 !important; background: var(--C8); border: 1px solid var(--C4); border-radius: 16px; padding: 1rem; box-shadow: none; display: flex; flex-direction: column; justify-content: flex-start; }
.product-options-grid .product-variant-selector > label,
.product-options-grid .value-added-card > h6 { margin-bottom: 0.9rem !important; }
.product-options-grid .product-variant-selector .variant-buttons-wrapper { flex: 1 1 auto; align-content: flex-start; }
.product-options-grid.product-options-grid--single { grid-template-columns: minmax(0, 1fr); }
.product-options-grid > .product-variant-selector:only-child,
.product-options-grid > .product-value-added-panel:only-child { grid-column: 1 / -1; }

@media (max-width: 991.98px) {
    .product-options-grid { grid-template-columns: minmax(0, 1fr); }
    .product-options-grid .product-variant-selector,
    .product-options-grid .value-added-card { width: 100%; }
}

[data-bs-theme="dark"] .product-options-shell,
[data-bs-theme="dark"] .product-options-grid .product-variant-selector,
[data-bs-theme="dark"] .product-options-grid .value-added-card { background: var(--C4); border-color: var(--C3); }
.product-buy-card-shell { direction: rtl; --product-buy-surface: var(--C4); --product-buy-surface-alt: var(--C4); --product-buy-text: var(--C6); --product-buy-muted: var(--C5); --product-buy-soft: var(--C7); --product-buy-line: var(--C4); background: var(--product-buy-surface); border: 1px solid var(--product-buy-surface-alt); border-radius: 18px; padding: 1.35rem 1.4rem; box-shadow: none; overflow: hidden; color: var(--product-buy-text); }
.product-buy-card-shell .product-buy-cart-block { width: 100%; }
.product-purchase-price-col,
.product-purchase-actions-col { min-width: 0; }
[data-bs-theme="dark"] .product-buy-card-shell { --product-buy-surface: var(--C4); --product-buy-surface-alt: var(--C3); --product-buy-text: var(--C6); --product-buy-muted: var(--C5); --product-buy-soft: var(--C7); --product-buy-line: var(--C3); box-shadow: none; }

@media (min-width: 992px) {
    .product-purchase-layout .product-price-section,
    .product-purchase-layout .login-message-box,
    .product-purchase-layout .value-added-card,
    .product-purchase-layout .product-actions { margin-bottom: 0 !important; }
}

@media (max-width: 991.98px) and (orientation: portrait) {
    .negarchi-mining-visit-bar { bottom: calc(8.8rem + env(safe-area-inset-bottom,0px) + 5px) !important; }
}

@media (max-width: 991.98px) and (orientation: landscape) {
    .negarchi-mining-visit-bar { bottom: calc(4.5rem + env(safe-area-inset-bottom,0px) + 5px) !important; }
}

/* دکمه‌های انتخاب واریانت */
.product-variant-selector { direction: rtl; }

.product-variant-selector .variant-buttons-wrapper { display: flex; flex-direction: column; gap: 0.7rem; align-items: stretch; padding-top: 0.25rem; }

.variant-buttons-wrapper .variant-select-btn.position-relative { overflow: visible; }
.variant-discount-badge { position: absolute; top: -8px; inset-inline-start: 6px; z-index: 2; font-size: 0.85rem; font-weight: 700; line-height: 1.1; padding: 0.15rem 0.35rem; border-radius: 8px; background: #dc3545; color: #fff; white-space: nowrap; max-width: 90%; overflow: hidden; text-overflow: ellipsis; }
.variant-buttons-wrapper .variant-select-btn { width: 100%; min-height: 2.8rem; padding: 0.6rem 0.85rem; border-radius: 14px; border: 1px solid var(--C3); background: var(--C8); color: var(--product-buy-text); font-size: 0.8rem; font-weight: 600; line-height: 1.45; text-align: center; justify-content: center; box-shadow: none; transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease; white-space: normal; word-break: keep-all; }

.variant-buttons-wrapper .variant-select-btn:hover { transform: translateY(-1px); border-color: var(--C1); background: var(--C1); color: var(--C8) !important; }

.variant-buttons-wrapper .variant-select-btn.active,
.variant-buttons-wrapper .variant-select-btn.btn-primary { background: var(--C1); border-color: var(--C1); color: var(--C8); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12); transform: translateY(-1px); }

.variant-buttons-wrapper .variant-select-btn.btn-outline-secondary { color: var(--product-buy-text); }

.variant-buttons-wrapper .variant-color-swatch { width: 16px; height: 16px; border-radius: 999px; flex-shrink: 0; border: 1px solid var(--C3) !important; }

@media (max-width: 767.98px) {
    .product-variant-selector > label { font-size: 0.88rem; }

    .product-variant-selector .variant-buttons-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }

    .variant-buttons-wrapper .variant-select-btn { min-height: 2.55rem; padding: 0.5rem 0.65rem; font-size: 0.74rem; border-radius: 12px; }
}

@media (max-width: 420px) {
    .product-variant-selector .variant-buttons-wrapper { grid-template-columns: 1fr; }
}

/* باکس خرید یکپارچه (طرح تیره) */
.product-buy-card { padding: 0; }
/* لودر اولیهٔ قیمت برای محصول دارای واریانت — اسپینر دایرهٔ پایدار (بدون کشیدگی flex) */
.product-buy-card.is-variant-pricing-loading { position: relative; overflow: hidden; min-height: 5.75rem; }
.product-variant-initial-price-loader { position: absolute; inset: 0; z-index: 8; display: none; align-items: center; justify-content: center; padding: 0.75rem; pointer-events: none; border-radius: inherit; background: color-mix(in srgb, var(--C8, #fff) 78%, transparent); backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px) saturate(1.1); }
.product-buy-card.is-variant-pricing-loading .product-variant-initial-price-loader { display: flex; }
[data-bs-theme="dark"] .product-variant-initial-price-loader { background: color-mix(in srgb, var(--C4, #1a2433) 82%, transparent); }
.product-variant-initial-price-loader__spinner { box-sizing: border-box; width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--C4) 45%, transparent); border-top-color: var(--C1); animation: productVariantPriceSpinnerRotate 0.72s linear infinite; }

@keyframes productVariantPriceSpinnerRotate {
    to { transform: rotate(360deg); }
}

.product-buy-card.is-variant-pricing-loading > .product-buy-prior-price-row,
.product-buy-card.is-variant-pricing-loading > .product-buy-pricing-row,
.product-buy-card.is-variant-pricing-loading > .product-buy-countdown-wrap,
.product-buy-card.is-variant-pricing-loading > .product-price-breakdown,
.product-buy-card.is-variant-pricing-loading > .product-buy-stock,
.product-buy-card.is-variant-pricing-loading > .product-buy-delivery { opacity: 0.34; pointer-events: none; user-select: none; transition: opacity 0.4s ease; }
.product-sticky-bar-price.is-variant-sticky-pricing-loading { position: relative; min-height: 2.85rem; }
.product-variant-sticky-initial-loader { position: absolute; inset: 0; z-index: 3; border-radius: 10px; display: none; align-items: center; justify-content: center; background: color-mix(in srgb, var(--C8) 86%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.product-sticky-bar-price.is-variant-sticky-pricing-loading .product-variant-sticky-initial-loader { display: flex; }
.product-variant-sticky-initial-loader::after { content: ''; width: 22px; height: 22px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--C1) 28%, transparent); border-top-color: var(--C1); animation: productVariantStickyLoaderSpin 0.72s linear infinite; }

@keyframes productVariantStickyLoaderSpin {
    to { transform: rotate(360deg); }
}

.product-sticky-bar-price.is-variant-sticky-pricing-loading .product-sticky-bar-line1 .price-loader,
.product-sticky-bar-price.is-variant-sticky-pricing-loading .product-sticky-bar-line1 .price-value,
.product-sticky-bar-price.is-variant-sticky-pricing-loading .product-sticky-bar-line2,
.product-sticky-bar-price.is-variant-sticky-pricing-loading .product-sticky-discount-row { opacity: 0.22; }
.product-buy-pricing-row { display: flex; flex-direction: row-reverse; align-items: center; justify-content: flex-start; gap: 0.9rem; margin-bottom: 0.9rem; }
.product-buy-final-block--solo { flex: 1 1 auto; width: 100%; min-width: 0; text-align: right; }
.product-buy-prior-price-row { display: none; flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 0.35rem 0.35rem; width: 100%; margin-bottom: 0.35rem; }
.product-buy-prior-price-row.product-buy-prior-price-row--visible { display: flex; }
.product-buy-prior-sep { opacity: 0.4; font-weight: 300; user-select: none; line-height: 1; }
.product-buy-prior-strike { display: inline !important; text-decoration: line-through; margin: 0 !important; }
.product-buy-prior-savings { display: inline !important; margin: 0 !important; font-weight: 600; }
/* نادیده گرفتن display:inline بالا وقتی JS می‌خواهد خط صرفه‌جویی را ببندد */
.product-buy-savings.product-buy-prior-savings.product-buy-savings--hidden { display: none !important; }
.product-buy-prior-orig-wrap { display: inline-flex; align-items: baseline; max-width: 100%; }
.product-buy-original-wrap { margin-bottom: 0.2rem; }
.product-buy-original-price { display: block; font-size: 0.95rem; color: var(--product-buy-muted); text-decoration: line-through; }
.product-buy-savings { font-size: 0.95rem; font-weight: 600; color: var(--C3); margin: 0; }

@media (min-width: 768px) {
    .product-buy-original-price { font-size: 0.8rem; }
    .product-buy-savings { font-size: 0.8rem; }
    .product-buy-card-shell .btn-add-to-cart-product-buy { font-size: 0.8rem !important; padding: 0.58rem 0.9rem !important; min-height: 2.55rem; }
}

.product-buy-final-block { flex: 0 1 auto; text-align: right; min-width: 0; }
.product-buy-final-label { display: block; font-size: 0.85rem; color: var(--product-buy-muted); margin-bottom: 0.35rem; }
.product-buy-price-main.price-main { display: flex; align-items: baseline; justify-content: flex-end; gap: 0.35rem; margin-bottom: 0; flex-wrap: wrap; }
.product-buy-card-shell .product-buy-price-main .price-loader { margin-left: 0; margin-right: 0.35rem; }
.product-buy-card-shell .product-buy-price-main .price-value { font-size: clamp(1.65rem, 2.5vw, 2.35rem); font-weight: 800; color: var(--C3); line-height: 1.1; }
.product-buy-card-shell .product-buy-price-main .price-currency { font-size: 0.95rem; font-weight: 600; color: var(--product-buy-muted); }
.product-buy-countdown-wrap { margin-top: 0.15rem; width: 100%; }
.product-buy-countdown-wrap .discount-countdown-mount,
.product-buy-countdown-wrap .discount-countdown { width: 100%; }
.product-buy-breakdown .product-price-breakdown-table td { color: var(--C6) !important; border-bottom-color: var(--product-buy-line) !important; font-size: 0.84rem; }
.product-buy-stock.stock-status { margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--product-buy-line); }
.product-buy-stock .stock-info,
.product-buy-delivery .stock-info { justify-content: flex-end; flex-wrap: wrap; font-size: 0.7rem; margin: 15px 0; color: var(--C5); }
.product-buy-stock .stock-icon { color: var(--C5); font-size: 1.05rem; opacity: 0.8; }
.product-buy-stock .stock-text { font-size: 0.82rem; color: var(--C5); opacity: 0.82; line-height: 1.45; }
.product-buy-delivery .stock-text { color: var(--C5); }
.product-buy-delivery .delivery-time-fast { opacity: 0.85; }
.product-buy-delivery .stock-info .ti-shield-check { opacity: 0.95; }
.product-buy-card-shell .text-danger { color: var(--C3) !important; opacity: 0.88; }
.product-buy-card-shell .text-warning { color: var(--C3) !important; opacity: 0.9; }
.product-buy-card-shell .text-muted { color: var(--product-buy-muted) !important; }

.product-buy-card--free .product-buy-prior-price-row { display: none !important; }
.product-buy-card--free .product-buy-pricing-row { justify-content: center; text-align: center; }
.product-buy-card--free .product-buy-final-label { display: none; }
.product-buy-card--free .product-buy-price-main { justify-content: center; }
.product-buy-card--free .product-buy-price-main .price-value { color: var(--C1); font-size: 2rem; }
.product-buy-card-shell .stock-status.free-digital-stock .stock-info > .stock-icon.ti-package { display: none; }
.product-buy-card-shell .free-digital-hint { display: inline-flex !important; align-items: center; gap: 0.2rem; color: var(--C6) !important; font-weight: 600; font-size: 0.95rem; line-height: 1.35; flex-wrap: wrap; justify-content: flex-end; }
.product-buy-card-shell .free-digital-hint .ti { color: inherit !important; opacity: 0.95; }

.product-buy-cart-block { border-top: 1px solid var(--product-buy-line); padding-top: 1.1rem; margin-top: 0.65rem; }
.product-buy-card-shell .product-buy-quantity.quantity-selector { width: 100%; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 0.75rem; }
.product-buy-quantity-label { display: block; font-weight: 600; color: var(--product-buy-muted); margin: 0; font-size: 1rem; white-space: nowrap; }
.product-buy-qty-group.quantity-control-group { max-width: 192px; margin-right: 0; margin-left: auto; padding: 5px; border: 1px solid var(--product-buy-surface-alt); border-radius: 14px; background: var(--product-buy-surface); display: flex; align-items: center; gap: 0; overflow: hidden; box-shadow: inset 0 0 0 1px var(--C8); }
.product-buy-card-shell .quantity-btn { width: 40px; height: 40px; flex-shrink: 0; background: var(--C4); color: var(--product-buy-text); font-size: 1.05rem; }
.product-buy-card-shell .quantity-btn:hover { background: var(--C3); transform: none; }
.product-buy-card-shell .quantity-input { background: transparent; color: var(--product-buy-text); font-size: 1rem; font-weight: 700; padding: 0.5rem 0.45rem; }
.product-buy-card-shell .quantity-input:focus { outline: 2px solid var(--C1); outline-offset: -2px; box-shadow: none; }

@media (min-width: 992px) {
    .product-buy-card-shell .quantity-input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
    .product-buy-card-shell .quantity-input[type="number"]::-webkit-outer-spin-button,
    .product-buy-card-shell .quantity-input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
}

.product-buy-card-shell .stock-message { color: var(--product-buy-muted); opacity: 0.9; }

.product-buy-digital-cta { border-top: 1px solid var(--product-buy-line); padding-top: 1.1rem; margin-top: 0.65rem; }

/* دیجیتال رایگان (دسکتاپ): دکمه/لینک روی زمینهٔ روشن C4 — بدون outline-light و text-white */
.product-buy-digital-cta .btn-free-digital-outline { border: 2px solid var(--C1); color: var(--C1); background: color-mix(in srgb, var(--C8) 88%, #fff); font-weight: 600; border-radius: 12px; padding: 0.65rem 1rem; text-decoration: none !important; display: inline-flex; align-items: center; justify-content: center; gap: 0.25rem; transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; box-shadow: 0 1px 0 color-mix(in srgb, var(--C1) 12%, transparent); }
.product-buy-digital-cta .btn-free-digital-outline:hover { background: var(--C1); color: var(--C2); border-color: var(--C1); box-shadow: 0 4px 14px color-mix(in srgb, var(--C1) 28%, transparent); }
.product-buy-digital-cta .btn-free-digital-outline:focus-visible { outline: 2px solid var(--C3); outline-offset: 2px; }
[data-bs-theme="dark"] .product-buy-digital-cta .btn-free-digital-outline { border-color: var(--C5); color: var(--C6); background: color-mix(in srgb, var(--C4) 55%, var(--C2)); box-shadow: none; }
[data-bs-theme="dark"] .product-buy-digital-cta .btn-free-digital-outline:hover { background: var(--C3); color: var(--C0); border-color: var(--C3); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
.product-buy-digital-cta .product-buy-digital-help-link { color: var(--C1) !important; font-weight: 600; text-decoration: underline !important; text-underline-offset: 3px; }
.product-buy-digital-cta .product-buy-digital-help-link:hover { color: var(--C3) !important; }
[data-bs-theme="dark"] .product-buy-digital-cta .product-buy-digital-help-link { color: var(--C5) !important; }
[data-bs-theme="dark"] .product-buy-digital-cta .product-buy-digital-help-link:hover { color: var(--C6) !important; }

.product-buy-actions-row { display: flex; flex-direction: column; align-items: stretch; gap: 0.65rem; margin-top: 0.25rem; width: 100%; }
.product-buy-actions-primary { width: 100%; }
.product-buy-actions-secondary { width: 100%; align-items: stretch; gap: 0.5rem; flex-wrap: nowrap; }
.product-buy-actions-secondary > .btn-product-buy-secondary { flex: 1 1 0; min-width: 0; }

.btn-product-buy-secondary { position: relative; overflow: hidden; min-height: 3.05rem; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--C4) 88%, transparent); background: color-mix(in srgb, var(--C5) 82%, var(--C8)); color: var(--C6) !important; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s, box-shadow 0.2s; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--C8) 40%, transparent); }
.btn-product-buy-secondary i { font-size: 1.42rem; line-height: 1; color: inherit; }
.btn-product-buy-secondary:hover { background: var(--C4); border-color: var(--C1); color: var(--C1) !important; box-shadow: none; }
.btn-product-buy-secondary:focus-visible { outline: 2px solid var(--C1); outline-offset: 2px; }
[data-bs-theme="dark"] .btn-product-buy-secondary { border-color: color-mix(in srgb, var(--C4) 92%, transparent); background: color-mix(in srgb, var(--C4) 48%, var(--C2)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--C1) 12%, transparent); }
[data-bs-theme="dark"] .btn-product-buy-secondary:hover { background: color-mix(in srgb, var(--C4) 72%, var(--C2)); border-color: var(--C1); color: var(--C1) !important; }
.btn-product-buy-secondary .wishlist-inline-loader { display: none; position: absolute; inset: 0; border-radius: inherit; align-items: center; justify-content: center; z-index: 2; pointer-events: none; background: color-mix(in srgb, var(--C8, #fff) 78%, transparent); }
[data-bs-theme="dark"] .btn-product-buy-secondary .wishlist-inline-loader { background: color-mix(in srgb, var(--C4, #1f2a3a) 84%, transparent); }
.btn-product-buy-secondary.wishlist-loading { pointer-events: none; }
.btn-product-buy-secondary.wishlist-loading .wishlist-inline-loader { display: flex !important; }
.btn-product-buy-secondary.wishlist-loading > i.ti-heart { opacity: 0.22; }
.btn-product-buy-secondary .wishlist-inline-loader i { font-size: 1.35rem; color: var(--C1); line-height: 1; }

.btn-product-buy-wishlist { position: relative; overflow: hidden; flex: 0 0 3.25rem; width: 3.25rem; min-width: 3.25rem; align-self: stretch; min-height: 3.1rem; border-radius: 18px; border: 1px solid var(--C4); background: var(--C5); color: var(--C6) !important; display: inline-flex; align-items: center; justify-content: center; font-size: 1.55rem; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s; }
.btn-product-buy-wishlist i { font-size: 2rem; line-height: 1; }
.btn-product-buy-wishlist:hover { background: var(--C4); border-color: var(--C1); color: var(--C1); }
/* لودر روی دکمهٔ سبد خرید آینده (قلب) تا قبل از باز شدن مودال */
.btn-product-buy-wishlist .wishlist-inline-loader { display: none; position: absolute; inset: 0; border-radius: inherit; align-items: center; justify-content: center; z-index: 2; pointer-events: none; background: color-mix(in srgb, var(--C8, #fff) 75%, transparent); }
[data-bs-theme="dark"] .btn-product-buy-wishlist .wishlist-inline-loader { background: color-mix(in srgb, var(--C4, #1f2a3a) 82%, transparent); }
.btn-product-buy-wishlist.wishlist-loading { pointer-events: none; }
.btn-product-buy-wishlist.wishlist-loading .wishlist-inline-loader { display: flex !important; }
.btn-product-buy-wishlist.wishlist-loading > i.ti-heart { opacity: 0.22; }
.btn-product-buy-wishlist .wishlist-inline-loader i { font-size: 1.35rem; color: var(--C1); line-height: 1; }

/* راهنمای خرید: همان پوستهٔ «سبد آینده»؛ نسخهٔ تمام‌عرض موبایل */
.btn-product-buy-wishlist.btn-product-purchase-help-mobile { width: 100% !important; flex: 1 1 auto !important; min-width: 0 !important; max-width: 100%; min-height: 2.85rem; padding: 0.65rem 1rem; font-size: 0.95rem; font-weight: 600; gap: 0.4rem; white-space: nowrap; }
.btn-product-buy-wishlist.btn-product-purchase-help-mobile i { font-size: 1.25rem; line-height: 1; }
.btn-product-buy-wishlist.btn-product-purchase-share-mobile { width: 100% !important; flex: 1 1 auto !important; min-width: 0 !important; max-width: 100%; min-height: 2.85rem; padding: 0.65rem 1rem; font-size: 0.95rem; font-weight: 600; gap: 0.4rem; white-space: nowrap; }
.btn-product-buy-wishlist.btn-product-purchase-share-mobile i { font-size: 1.25rem; line-height: 1; }

/* دکمه افزودن به سبد (نوار چسبان موبایل و سایر موارد بدون کلاس product-buy) */
.btn-add-to-cart { width: 100%; background: linear-gradient(135deg, #28a745 0%, #20c997 100%); color: white; border: none; border-radius: 12px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3); }
a.btn-add-to-cart { text-decoration: none !important; }
a.btn-add-to-cart:visited { color: #fff !important; }
.btn-add-to-cart:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4); background: linear-gradient(135deg, #218838 0%, #1ea085 100%); }
.btn-add-to-cart:active { transform: translateY(0); }
.btn-add-to-cart:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* لودر و انیمیشن قیمت (هم برای باکس خرید هم نوار چسبان) */
.price-main .price-loader { display: none; margin-left: 8px; align-items: center; }
.price-main.price-updating .price-loader { display: inline-flex !important; }
.price-main.price-updating .price-value { opacity: 0.7; }
.price-value.price-fade { transition: opacity 0.2s ease-out; }
.price-value.price-fade-out { opacity: 0 !important; }
.product-sticky-bar-price .price-loader { display: none; margin-right: 6px; }
.product-sticky-bar-price.price-updating .price-loader { display: inline-flex !important; }
.product-sticky-bar-price.price-updating .price-value { opacity: 0.7; }
.product-sticky-bar-price.price-updating .product-sticky-discount-row { opacity: 0.55; }
.product-sticky-bar-price .price-value.price-fade { transition: opacity 0.2s ease-out; }

.product-sticky-bar .price-value { font-size: 1.3rem; font-weight: 700; color: inherit; }
.product-sticky-bar .price-currency:not(.price-currency-inline) { font-size: 0.85rem; }

.product-buy-card-shell .product-buy-quantity.quantity-selector { flex-direction: column; align-items: flex-start; gap: 0.55rem; }

@media (max-width: 767.98px) {
    .product-buy-card-shell { padding: 0.95rem 0.95rem; border-radius: 14px; }
    .product-buy-pricing-row { gap: 0.6rem; margin-bottom: 0.75rem; }
    .product-buy-card-shell .product-buy-price-main .price-value { font-size: 1.55rem; }
    .product-buy-card-shell .product-buy-price-main .price-currency { font-size: 0.82rem; }
    .product-buy-actions-row { display: none !important; }
    .btn-add-to-cart-product-buy { padding: 0.72rem 0.85rem !important; font-size: 0.9rem !important; min-height: 2.7rem; border-radius: 14px !important; }
    .btn-product-buy-wishlist { width: 2.8rem; min-width: 2.8rem; flex-basis: 2.8rem; min-height: 2.7rem; border-radius: 14px; font-size: 1.25rem; }
    .btn-product-buy-wishlist:not(.btn-product-purchase-help-mobile) i { font-size: 1.25rem; line-height: 1; }
    .btn-product-buy-wishlist.btn-product-purchase-help-mobile { width: 100% !important; min-width: 0 !important; flex-basis: auto !important; font-size: 1rem !important; padding: 0.72rem 1rem !important; min-height: 2.8rem; }
    .btn-product-buy-wishlist.btn-product-purchase-help-mobile i { font-size: 1.2rem; }
    .btn-product-buy-wishlist.btn-product-purchase-share-mobile { width: 100% !important; min-width: 0 !important; flex-basis: auto !important; font-size: 1rem !important; padding: 0.72rem 1rem !important; min-height: 2.8rem; }
    .btn-product-buy-wishlist.btn-product-purchase-share-mobile i { font-size: 1.2rem; }
    .product-buy-qty-group.quantity-control-group { max-width: 192px; width: auto; }
    .product-buy-quantity-label { font-size: 0.92rem; }
    .product-buy-card-shell .quantity-btn { width: 38px; height: 38px; font-size: 1rem; }
    .product-buy-card-shell .quantity-input { min-width: 58px; font-size: 0.95rem; padding: 0.5rem 0.4rem; }
    .product-sticky-bar { padding: 0.7rem 1.3rem; gap: 0.55rem; }
    .product-sticky-bar .product-sticky-bar-price { min-width: 0; }
    .product-sticky-bar .product-sticky-bar-price .price-value { font-size: 1.15rem; }
    .product-sticky-bar-actions { gap: 0.4rem; }
    .product-sticky-bar-actions .btn-add-to-cart-sticky { padding: 0.8rem 0.75rem; font-size: 0.82rem; }
    .product-sticky-bar-actions .product-sticky-wishlist-btn { width: 2.6rem; min-width: 2.6rem; flex-basis: 2.6rem; min-height: 2.6rem; font-size: 1.2rem; }
    .product-sticky-bar-actions .product-sticky-wishlist-btn i { font-size: 2rem; }

    #btnAddToCart { display: none !important; }
    .btn-add-to-cart-product-buy { width: auto !important; }
    .btn-add-to-cart { width: auto !important; }
}

.stock-info, stock-info { font-size: .7rem; margin: 15px 0; color: var(--C5); }

/* پیام لاگین */
.login-message-box { transition: all 0.3s ease; border-radius: 12px; }

.login-message-box:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); transform: translateY(-2px); }

/* بهبود کارت مشخصات */
.detail-box { background: var(--C8); border: 1px solid var(--C4); border-radius: 12px; padding: 20px; height: 100%; transition: all 0.3s ease; }

.detail-box:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); transform: translateY(-2px); }

.detail-box-title { color: var(--C3); font-size: 1.1rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--C4); }

.detail-box-list li { padding: 8px 0; border-bottom: 1px solid var(--C4); }

.detail-box-list li:last-child { border-bottom: none; }

/* بهبود تصویر محصول */
.product-image { border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); transition: transform 0.3s ease; width: 100%; height: auto; object-fit: contain; }

.product-image:hover { transform: scale(1.02); }

/* استایل کاروسل تصاویر محصول */
.product-detail-right { width: 100%; display: flex; flex-direction: column; }

.product-image-swiper { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); background: var(--C8); width: 100%; margin-bottom: 0; max-width: 100%; touch-action: pan-y; }

.product-image-swiper .swiper-slide { text-align: center; background: var(--C8); height: 100%; position: relative; overflow: hidden; contain: paint; display: flex; justify-content: center; align-items: center; }

.product-image-swiper .swiper-slide.swiper-slide-video { padding: 0; background: var(--C8); --carousel-video-poster: none; }

.product-image-swiper .swiper-slide.swiper-slide-video { display: flex; flex-direction: column; align-items: stretch; justify-content: center; }

.product-image-swiper .swiper-slide.swiper-slide-video > div { flex: 1; display: flex; flex-direction: column; }

.product-image-swiper .swiper-slide.swiper-slide-video::before { content: ""; position: absolute; inset: -18px; z-index: 0; background-image: var(--carousel-video-poster); background-size: cover; background-position: center center; background-repeat: no-repeat; filter: blur(6px); transform: scale(1.1); pointer-events: none; }

.product-image-swiper .swiper-slide.swiper-slide-video::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: rgba(15, 25, 35, 0.38); }

:root[data-bs-theme="dark"] .product-image-swiper .swiper-slide.swiper-slide-video::after { background: rgba(0, 0, 0, 0.45); }

.product-image-swiper .swiper-slide img { width: auto; max-width: 100%; max-height: 100%; object-fit: contain; margin: 0 auto; display: block; user-select: none; -webkit-user-drag: none; pointer-events: none; }

.product-video-stage { position: relative; z-index: 2; width: 100%; flex: 1; min-height: 0; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }

.product-video-stage-inner { position: relative; z-index: 2; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 0; box-sizing: border-box; }

.product-image-swiper .swiper-slide video.product-video { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center center; display: block; margin: 0 auto; vertical-align: middle; position: relative; z-index: 1; }

.product-video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; width: 4.25rem; height: 4.25rem; margin: 0; padding: 0; border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; background: transparent; transition: transform 0.22s ease, opacity 0.22s ease; box-shadow: none; }

.product-video-play-ring { position: absolute; inset: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.94); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.35) inset; transition: transform 0.22s ease, box-shadow 0.22s ease; }

.product-video-play:hover .product-video-play-ring { transform: scale(1.06); box-shadow: 0 14px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.5) inset; }

.product-video-play:active .product-video-play-ring { transform: scale(0.96); }

.product-video-play-icon { position: relative; font-size: 2rem; line-height: 1; color: var(--C1, #0f2e4a); margin-inline-start: 5px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12)); }

.product-video-play.is-hidden { opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }

.product-image-swiper .swiper-slide { user-select: none; }

.product-image-swiper .swiper-button-prev,
.product-image-swiper .swiper-button-next { width: 50px; height: 50px; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0) !important; opacity: 0 !important; transition: all 0.3s ease; color: #fff; }

.product-image-swiper .swiper-button-prev::after,
.product-image-swiper .swiper-button-next::after { font-size: 1.2rem; }

.product-image-swiper:hover .swiper-button-prev,
.product-image-swiper:hover .swiper-button-next { opacity: 0.4 !important; background: rgba(0, 0, 0, 0.5) !important; color: black !important }

.product-image-swiper:hover .swiper-button-disabled { opacity: 0 !important; background: rgba(0, 0, 0, 0) !important; font-weight: bold; }

.product-image-swiper .swiper-button-prev:hover,
.product-image-swiper .swiper-button-next:hover { opacity: 0.7 !important; background: rgba(0, 0, 0, 0.7) !important; font-weight: bold; color: black !important }

.swiper { padding: 0 !important }
.product-image-swiper .swiper-pagination { opacity: 0 !important; transition: opacity 0.4s ease !important; }
.product-image-swiper:hover .swiper-pagination { opacity: 1 !important }

.product-image-swiper .swiper-button-prev { right: 15px; left: auto; }

.product-image-swiper .swiper-button-next { left: 15px; right: auto; }

.product-image-swiper .swiper-pagination { position: absolute; bottom: 4px !important; left: 50%; transform: translateX(-50%); margin: 0; padding: 0; background: none; border-radius: 0; display: flex; align-items: center; justify-content: center; z-index: 10; width: auto !important; }

.product-image-swiper .swiper-pagination-bullet { width: 10px; height: 10px; border-radius: 50%; background-color: #c0c0c0; border: 2px solid #c0c0c0; opacity: 0.7; transition: all 0.3s ease; padding: 0; margin: 0; flex-shrink: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }

.product-image-swiper .swiper-pagination-bullet:hover { opacity: 1; background-color: #a0a0a0; border-color: #a0a0a0; transform: scale(1.2); }

.product-image-swiper .swiper-pagination-bullet-active { background-color: var(--C1); border-color: var(--C1); opacity: 1; width: 12px; height: 12px; box-shadow: 0 2px 4px rgba(15, 46, 74, 0.4); }

/* استایل تامبنیل‌های تصاویر */
.product-image-thumbnails { margin-top: 15px; width: 100%; display: block; clear: both; }

.thumbnail-container { display: flex; flex-wrap: nowrap; align-items: center; gap: 0; width: 100%; padding: 0; }

.thumbnail-slide { width: 80px !important; flex-shrink: 0; }

.thumbnail-btn { width: 100%; height: 80px; padding: 3px; border: 2px solid #e0e0e0; border-radius: 8px; background: #fff; cursor: pointer; transition: all 0.3s ease; overflow: hidden; position: relative; display: block; }

.thumbnail-btn:hover { border-color: var(--C1); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }

.swiper-slide-thumb-active .thumbnail-btn { border-color: var(--C6); border-width: 3px; box-shadow: 0 4px 12px rgba(15, 46, 74, 0.3); }

.swiper-slide-thumb-active .thumbnail-btn::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 46, 74, 0.1); pointer-events: none; border-radius: 5px; }

.thumbnail-image { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; transition: transform 0.3s ease; display: block; }

.thumbnail-btn:hover .thumbnail-image { transform: scale(1.05); }

.thumbnail-video-badge { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 45%); border-radius: 5px; }

.thumbnail-video-badge .ti { font-size: 1.65rem; color: #fff; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55)); opacity: 0.95; }

.thumbnail-video-icon { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 100%; font-size: 1.5rem; color: var(--C1); }

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .product-image-swiper .swiper-slide img { max-height: 350px; }

    .thumbnail-slide { width: 60px !important; }
    .thumbnail-btn { height: 60px; }

    .product-image-swiper .swiper-button-prev,
    .product-image-swiper .swiper-button-next { width: 40px; height: 40px; }

    .product-image-swiper .swiper-pagination { bottom: 8px; padding: 0; gap: 6px; }

    .product-image-swiper .swiper-pagination-bullet { width: 8px; height: 8px; }

    .product-image-swiper .swiper-pagination-bullet-active { width: 10px; height: 10px; }
}

/* بهبود عنوان محصول */
.product-title { color: var(--C6); font-size: 1.4rem; line-height: 2; }

.product-description { font-size: 0.94rem; line-height: 1.65; color: var(--C5); }

/* توضیح مختصر زیر عنوان: یک خط + بازشو — همهٔ عرض‌ها؛ دکمه مینیمال (بدون کادر/دایره) */
.product-desc-expand-shell:not(.is-expanded) .product-description-expand { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; text-overflow: ellipsis; word-break: break-word; }
.product-desc-expand-toggle { display: flex; width: 100%; justify-content: center; align-items: center; margin: 0.15rem 0 0; padding: 0.2rem; min-height: 2rem; border: none; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; color: var(--C1); opacity: 0.5; transition: opacity 0.22s ease, color 0.22s ease; position: relative; overflow: visible; }
/* یک‌بار پس از لود: نور خیلی ملایم کنار/پشت آیکن (سریع، غیر تهاجمی) */
.product-desc-expand-toggle--hint-glimmer::before { content: ''; position: absolute; left: 50%; top: 50%; width: 2.75rem; height: 2.75rem; margin-left: -1.375rem; margin-top: -1.375rem; pointer-events: none; z-index: 0; border-radius: 50%; background: radial-gradient(circle at 40% 45%, color-mix(in srgb, var(--C3) 22%, #fff) 0%, color-mix(in srgb, var(--C3) 8%, transparent) 42%, transparent 68%); opacity: 0; transform: scale(0.88); animation: productDescToggleSoftGlow 0.62s ease-out 1; }
.product-desc-expand-toggle--hint-glimmer .product-desc-expand-toggle-icon { position: relative; z-index: 1; animation: productDescToggleIconLift 0.62s ease-out 1; }

@keyframes productDescToggleSoftGlow {
    0% { opacity: 0; transform: scale(0.88); }
    28% { opacity: 0.38; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.06); }
}

@keyframes productDescToggleIconLift {
    0% { filter: drop-shadow(0 0 0 transparent); }
    32% { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--C3) 22%, transparent)); }
    100% { filter: drop-shadow(0 0 0 transparent); }
}

@media (prefers-reduced-motion: reduce) {
    .product-desc-expand-toggle--hint-glimmer::before,
    .product-desc-expand-toggle--hint-glimmer .product-desc-expand-toggle-icon { animation: none !important; }
}

.product-desc-expand-toggle:hover { opacity: 1; color: var(--C3); }
.product-desc-expand-toggle:focus-visible { outline: 2px solid color-mix(in srgb, var(--C3) 75%, transparent); outline-offset: 3px; border-radius: 2px; opacity: 1; }
.product-desc-expand-toggle-icon { font-size: 1.2rem; line-height: 1; transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1); }
.product-desc-expand-shell.is-expanded .product-desc-expand-toggle-icon { transform: rotate(180deg); }

@media (min-width: 768px) {
    .product-desc-expand-toggle-icon { font-size: 1.05rem; }
    .product-desc-expand-toggle { margin-top: 0.1rem; min-height: 1.75rem; opacity: 0.42; }
}

[data-bs-theme="dark"] .product-desc-expand-toggle { color: var(--C5); opacity: 0.55; }
[data-bs-theme="dark"] .product-desc-expand-toggle:hover { opacity: 1; color: var(--C6); }

.product-trust-badges-section .product-trust-badges-swiper-wrap.animate-element { opacity: 1 !important; transform: none !important; }

/* کارت‌های اعتماد — کروسل واکنش‌گرا (۱ / ۳ / ۵ اسلاید) */
.product-trust-badges-section { border-top: 1px solid color-mix(in srgb, var(--C5) 18%, transparent); background: color-mix(in srgb, var(--C4) 55%, transparent); }
.product-trust-badges-swiper-wrap { padding: 0.15rem 0 0.35rem; }
.product-trust-badges-swiper { overflow: hidden; padding-bottom: 0.15rem; }
.product-trust-badges-swiper .swiper-wrapper { align-items: stretch; }
.product-trust-badges-swiper .swiper-slide { height: auto; display: flex; box-sizing: border-box; }
.product-trust-badge-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; flex: 1 1 auto; padding: 0.9rem 0.75rem; background: var(--C4); border: 1px solid color-mix(in srgb, var(--C5) 14%, var(--C4)); border-radius: 12px; min-height: 96px; text-align: center; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.product-trust-badge-icon { font-size: 1.35rem; color: var(--C1); line-height: 1; flex-shrink: 0; }
.product-trust-badge-text { font-size: 0.84rem; font-weight: 600; color: var(--C6); line-height: 1.4; max-width: 100%; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (hover: hover) and (pointer: fine) {
    .product-trust-badge-card:hover { border-color: var(--C1); box-shadow: 0 6px 18px rgba(0,0,0,.1); }
}

.product-trust-badges-pagination { position: relative !important; bottom: auto !important; margin-top: 0.65rem !important; line-height: 1; }
.product-trust-badges-pagination .swiper-pagination-bullet { width: 7px; height: 7px; margin: 0 4px !important; background: var(--C5); opacity: 0.45; transition: transform .25s ease, opacity .25s ease, background .25s ease; }
.product-trust-badges-pagination .swiper-pagination-bullet-active { background: var(--C1); opacity: 1; transform: scale(1.25); }
.product-trust-badges-swiper.swiper-lock .product-trust-badges-pagination { display: none !important; }

@media (min-width: 576px) {
    .product-trust-badges-section { padding-top: 0.85rem !important; padding-bottom: 0.85rem !important; }
    .product-trust-badge-card { min-height: 100px; padding: 0.95rem 0.8rem; }
    .product-trust-badge-icon { font-size: 1.4rem; }
    .product-trust-badge-text { font-size: 0.86rem; }
}

@media (min-width: 768px) {
    .product-trust-badges-swiper-wrap { padding-bottom: 0.15rem; }
    .product-trust-badges-swiper { padding-bottom: 0; }
    .product-trust-badges-pagination { display: none !important; }
    .product-trust-badge-card { min-height: 104px; padding: 0.85rem 0.65rem; border-radius: 11px; }
    .product-trust-badge-icon { font-size: 1.38rem; }
    .product-trust-badge-text { font-size: 0.78rem; line-height: 1.35; -webkit-line-clamp: 4; }
}

@media (min-width: 992px) {
    .product-trust-badges-section { padding-top: 1rem !important; padding-bottom: 1rem !important; }
    .product-trust-badges-swiper-wrap { padding-bottom: 0; }
    .product-trust-badge-card { min-height: 102px; padding: 1rem 0.7rem; gap: 0.55rem; }
    .product-trust-badge-icon { font-size: 1.45rem; }
    .product-trust-badge-text { font-size: 0.86rem; line-height: 1.42; -webkit-line-clamp: 3; }
}

@media (min-width: 1200px) {
    .product-trust-badge-card { padding: 1rem 0.85rem; }
    .product-trust-badge-text { font-size: 0.88rem; }
}

[data-bs-theme="dark"] .product-trust-badges-section { background: var(--C8); border-top-color: rgba(255,255,255,.1); }
[data-bs-theme="dark"] .product-trust-badge-card { background: var(--C1); border-color: rgba(255,255,255,.14); }
[data-bs-theme="dark"] .product-trust-badge-card:hover { border-color: var(--C3); box-shadow: 0 8px 22px rgba(0,0,0,.36); }
[data-bs-theme="dark"] .product-trust-badge-icon { color: var(--C3); }
[data-bs-theme="dark"] .product-trust-badge-text { color: var(--C6); }
[data-bs-theme="dark"] .product-trust-badges-pagination .swiper-pagination-bullet { background: rgba(255,255,255,.4); }
[data-bs-theme="dark"] .product-trust-badges-pagination .swiper-pagination-bullet-active { background: var(--C3); }
