/* =============================================
   Khabco — product-desktop.css
   نسخه: 3.0 (اصلاح کامل)
   وابستگی: variables.css + reset.css
   ============================================= */

/* ══ Container ══ */
.kh-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ══ BREADCRUMB ══ */
/* ══ LAYOUT ══ */
/* ══ LAYOUT ══ */
/*
 * kh-page-wrap: دو ستون — kh-page-main | kh-purchase
 * kh-page-main: شامل gallery+info+tabs+specs+review+faq
 * kh-purchase:  sticky در ستون راست
 * section-related/reviews/qa: خارج از kh-wrap، عرض کامل
 */
.kh-page-wrap {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
    padding-bottom: 40px;
}
.kh-page-main { min-width: 0; }

/* purchase ستون راست — ارتفاع ستون به اندازه kh-page-main */
.kh-purchase-col {
    align-self: stretch;
    position: relative;
}

/* gallery + info */
.kh-product-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    grid-template-rows: min-content 1fr;
    grid-template-areas:
        "gallery info-head"
        "gallery info-body";
    gap: 24px 24px;
    padding: 28px 0 0;
    align-items: start;
}

.kh-gallery   { grid-area: gallery; position: sticky; top: 78px; }
.kh-info-head { grid-area: info-head; }
.kh-info-body { grid-area: info-body; }
.kh-info {}  /* backwards compat — no longer used as wrapper */

/* purchase — sticky در ستون راست */
.kh-purchase {
    border-radius: 20px;
    position: sticky;
    top: 86px;
    align-self: start;
    margin-top: 28px;
}

/* ══════════════════════════════════
   GALLERY — COL 1
══════════════════════════════════ */

/* حالت side: grid دو‌ستونه */
.kh-gallery--side {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px;
    direction: ltr;
}
.kh-gallery--side .kh-gallery-main { direction: rtl; }

/* حالت bottom: stack عمودی */
.kh-gallery--bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* اگر یک تصویر داریم */
.kh-gallery--side:not(:has(.kh-gallery-side)),
.kh-gallery--bottom:not(:has(.kh-thumbs-h)) {
    display: block;
}

/* ── تصویر اصلی — flex column برای topbar + swiper ── */
.kh-gallery-main {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e8eef0;
    isolation: isolate;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* ── topbar دسکتاپ ── */
.kh-gallery-topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    background: #fff;
    flex-shrink: 0;
    direction: rtl;
}

.kh-gtop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: 1.5px solid #d1dde0;
    cursor: pointer;
    color: #4b5563;
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font, inherit);
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 0;
}

.kh-gtop-btn:hover {
    background: var(--c-primary, #0f4f59);
    border-color: var(--c-primary, #0f4f59);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15,79,89,.22);
}

.kh-gtop-btn:hover svg { stroke: #fff; }

.kh-gtop-btn svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    flex-shrink: 0;
    transition: stroke 0.15s;
}

/* نظرات — pill شکل */
.kh-gtop-review {
    width: auto;
    padding: 0 12px;
    border-radius: 20px;
}

.kh-gtop-count { font-size: 11px; font-weight: 700; }

/* wishlist active */
.kh-gtop-btn.kh-wishlist-btn.active {
    background: #fff0f0;
    border-color: var(--c-danger, #ef4444);
}
.kh-gtop-btn.kh-wishlist-btn.active svg { stroke: var(--c-danger, #ef4444); fill: var(--c-danger, #ef4444); }

/* compare active — قرمز مثل علاقه‌مندی */
.kh-gtop-btn.js-cmp-add.active {
    background: #fff0f0;
    border-color: var(--c-danger, #ef4444);
}
.kh-gtop-btn.js-cmp-add.active svg { stroke: var(--c-danger, #ef4444); }

/* ویدیو */
.kh-gtop-video { border-color: var(--c-primary, #0f4f59); }
.kh-gtop-video svg { stroke: var(--c-primary, #0f4f59); fill: none; }
.kh-gtop-video:hover { background: var(--c-primary); }
.kh-gtop-video:hover svg { stroke: #fff; }

/* آیکون‌های قدیمی — جای آن‌ها را topbar گرفته */
.kh-gallery-actions { display: none !important; }

/* ── Swiper اصلی ── */
.kh-main-swiper {
    width: 100%;
    aspect-ratio: 1 / 1;
    flex: none;
}
.kh-main-swiper .swiper-wrapper {
    width: 100%;
    height: 100%;
}
.kh-main-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 16px;
    box-sizing: border-box;
}
.kh-main-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
    border-radius: 8px;will-change: transform;
}

/* ── pagination ── */
.kh-main-swiper .swiper-pagination {
    bottom: 10px;
}
.kh-main-swiper .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: var(--c-primary);
    opacity: 0.25;
    transition: all 0.25s ease;
}
.kh-main-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    width: 20px;
}

/* ── بج‌ها ── */
.kh-gallery-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.kh-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.kh-badge-sale { background: var(--c-danger); color: #fff; }
.kh-badge-best { background: linear-gradient(135deg, var(--c-gold), #e6a817); color: #fff; }

/* ── دکمه‌های کنار ── */
.kh-gallery-actions {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.kh-g-act {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: #64748b;
    text-decoration: none;
}
.kh-g-act:hover {
    background: var(--c-primary);
    border-color: var(--c-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(15, 79, 89, 0.25);
}
.kh-g-act:hover svg { stroke: #fff; }
.kh-g-act svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    transition: stroke 0.15s;
}
.kh-g-act.active {
    background: #fff0f0;
    border-color: var(--c-danger);
}
.kh-g-act.active svg {
    stroke: var(--c-danger);
    fill: var(--c-danger);
}

/* ══ THUMBS عمودی (side) ══ */
.kh-gallery-side {
    display: flex;
    flex-direction: column;
}
.kh-thumbs-v.swiper {
    height: 380px;
    width: 72px;
    overflow: hidden;
}
.kh-thumbs-v .swiper-wrapper {
    flex-direction: column;
    justify-content: flex-start;
}
.kh-thumbs-v .swiper-slide {
    width: 64px !important;
    height: 64px !important;
    border-radius: 10px;
    background: #fff;
    border: 2px solid #e2eded;
    cursor: pointer;
    flex-shrink: 0;
    padding: 5px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 8px !important;
    overflow: hidden;
}
.kh-thumbs-v .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}
.kh-thumbs-v .swiper-slide:hover {
    border-color: var(--c-primary);
    box-shadow: 0 2px 8px rgba(15, 79, 89, 0.15);
}
.kh-thumbs-v .swiper-slide:hover img {
    transform: scale(1.08);
}
.kh-thumbs-v .swiper-slide-thumb-active {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(15, 79, 89, 0.15);
    background: #f0f8f9;
}



/* ══ THUMBS افقی (bottom) ══ */
/* ═══════════════════════════════════════════════════════════
   تامبنیل‌های افقی — هم‌راستا با تصویر اصلی از هر دو طرف
   ═══════════════════════════════════════════════════════════ */

/* کانتینر اصلی thumbs */
.kh-thumbs-h {
    width: 100%;
    margin-top: 12px;
    overflow: hidden;
    padding: 0 !important;
}

/* غیرفعال کردن رفتار پیش‌فرض swiper-wrapper */
.kh-thumbs-h .swiper-wrapper {
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: flex-end; /* RTL: از راست شروع */
    gap: 10px;
    transform: none !important;  /* swiper translate رو خنثی کن */
    width: 100% !important;
}

/* هر تامبنیل */
.kh-thumbs-h .swiper-slide {
    flex: 1 1 0;            /* همه تامبنیل‌ها فضا رو مساوی پر کنن */
    max-width: calc((100% - 30px) / 4);  /* 4 تامبنیل با 3 گپ 10px */
    min-width: 0;
    width: auto !important;
    margin: 0 !important;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    background: #fff;
}

/* تامبنیل فعال */
.kh-thumbs-h .swiper-slide-thumb-active,
.kh-thumbs-h .swiper-slide.kh-thumb-active {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* هاور */
.kh-thumbs-h .swiper-slide:hover {
    border-color: var(--c-primary);
}

/* تصویر داخل تامبنیل */
.kh-thumbs-h .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* تامبنیل‌های مخفی (بیشتر از 4 تا) */
.kh-thumbs-h .swiper-slide.kh-thumb-hidden {
    display: none !important;
}

/* تامبنیل +N (آخرین قابل نمایش) */
.kh-thumbs-h .swiper-slide.kh-thumb-more {
    position: relative;
}

.kh-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    z-index: 2;
}

.kh-thumb-count {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    font-family: 'IRANSansXFaNum', sans-serif;
    line-height: 1;
}

.kh-thumb-dots {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-top: 2px;
    letter-spacing: 2px;
}


.kh-thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.kh-thumb-count {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    direction: ltr;
    line-height: 1;
}

.kh-thumb-dots {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
    letter-spacing: 3px;
    line-height: 1;
}

.kh-thumbs-h .swiper-slide.kh-thumb-more:hover img {
    filter: brightness(0.45);
}

/* ══════════════════════════════════════════
   LIGHTBOX — گالری تمام‌صفحه
══════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════════
   LIGHTBOX — استایل Tehran Speaker
══════════════════════════════════════════════════════════════ */
.kh-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 80px 100px;
}

/* ── دکمه ضربدر بستن ── */
.kh-lightbox-close {
    position: fixed;
    top: 20px;
    left: 20px;
    right: auto;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.kh-lightbox-close:hover {
    transform: scale(1.1);
}

.kh-lightbox-close svg {
    width: 32px;
    height: 32px;
    stroke: #fff;
    stroke-width: 2.5;
}

/* ── کادر سفید تصویر اصلی ── */
.kh-lightbox-main {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    max-height: calc(100vh - 200px);
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.kh-lightbox-main img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* ── فلش‌های ناوبری — بیرون کادر ── */
.kh-lightbox-prev,
.kh-lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000001;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
}

.kh-lightbox-prev:hover,
.kh-lightbox-next:hover {
    background: #f0f0f0;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* RTL: فلش راست = سمت چپ صفحه، فلش چپ = سمت راست صفحه */
.kh-lightbox-prev {
    right: 30px;
    left: auto;
}

.kh-lightbox-next {
    left: 30px;
    right: auto;
}

.kh-lightbox-prev svg,
.kh-lightbox-next svg {
    width: 24px;
    height: 24px;
    stroke: #333;
    stroke-width: 2.5;
    fill: none;
}

/* ── تامبنیل‌های پایین ── */
.kh-lightbox-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    padding: 12px 20px;
    background: transparent;
    border-radius: 12px;
    max-width: 100%;
    overflow-x: auto;
    justify-content: center;
    scrollbar-width: none;
}

.kh-lightbox-thumbs::-webkit-scrollbar {
    display: none;
}

.kh-lightbox-thumb {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    border: 3px solid transparent;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.kh-lightbox-thumb:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.kh-lightbox-thumb.active {
    border-color: var(--c-primary);
}

.kh-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── شمارنده (اختیاری - می‌توان حذف کرد) ── */
.kh-lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    direction: ltr;
}



/* ══════════════════════════════════
   INFO — COL 2
══════════════════════════════════ */
.kh-info {}

.kh-info-top {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 10px;
}
.kh-brand-chip {
    background: var(--c-off-white); border: 1.5px solid var(--c-border);
    border-radius: 8px; padding: 4px 13px;
    font-size: 11px; font-weight: 900; color: var(--c-primary);
    letter-spacing: 0.5px; text-decoration: none;
    transition: var(--trans-fast);
}
.kh-brand-chip:hover { background: var(--c-bg-soft); border-color: var(--c-primary); }
.kh-sku { font-size: 11.5px; color: var(--c-muted); }

.kh-prod-title {
    font-size: 20px; font-weight: 900; color: var(--c-dark);
    line-height: 1.45; letter-spacing: -0.3px; margin-bottom: 14px;
}

/* META ROW */
.kh-meta-row {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 11px 0;
    border-top: 1px solid var(--c-border-light);
    border-bottom: 1px solid var(--c-border-light);
}
.kh-rating { display: flex; align-items: center; gap: 5px; }
.kh-stars { display: flex; gap: 2px; }
.kh-stars .kh-star       { width: 13px; height: 13px; fill: var(--c-gold); stroke: none; }
.kh-stars .kh-star.kh-star-e { fill: none; stroke: var(--c-border); stroke-width: 1.5; }
.kh-rating-score { font-size: 14px; font-weight: 800; color: var(--c-gold); }
.kh-rating-ct { font-size: 12px; color: var(--c-muted); transition: var(--trans-fast); }
.kh-rating-ct:hover { color: var(--c-primary); text-decoration: underline; }
.kh-sep { width: 1px; height: 14px; background: var(--c-border); flex-shrink: 0; }
.kh-stock-badge { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; }
.kh-stock-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.kh-stock-badge.in { color: var(--c-success); }
.kh-stock-badge.in .kh-stock-dot { background: var(--c-success); }
.kh-stock-badge.out { color: var(--c-danger); }
.kh-stock-badge.out .kh-stock-dot { background: var(--c-danger); }
.kh-sold { font-size: 12px; color: var(--c-muted); }
.kh-share-btn {
    display: flex; align-items: center; gap: 5px; margin-right: auto;
    font-size: 12px; color: var(--c-muted); cursor: pointer;
    transition: var(--trans-fast); border: none; background: none;
    font-family: var(--font);
}
.kh-share-btn:hover { color: var(--c-primary); }
.kh-share-btn svg { width: 14px; height: 14px; }

/* KEY FEATURES */
.kh-kf-grid {
    display: grid; grid-template-columns: repeat(3,1fr);
    gap: 1px; background: var(--c-border);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md); overflow: hidden;
    margin-bottom: 20px;
}
.kh-kf-item {
    background: #fff; padding: 12px 13px;
    display: flex; align-items: flex-start; gap: 9px;
    transition: var(--trans-fast);
}
.kh-kf-item:hover { background: var(--c-off-white); }
.kh-kf-ico {
    width: 30px; height: 30px; border-radius: 8px;
    background: var(--c-bg-soft);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.kh-kf-ico svg { width: 15px; height: 15px; stroke: var(--c-primary); }
.kh-kf-lbl { font-size: 10px; color: var(--c-muted); margin-bottom: 2px; display: block; }
.kh-kf-val { font-size: 12.5px; font-weight: 700; color: var(--c-text); display: block; }


/* ═══════════════════════════════════════════════════════════
   ویژگی‌های کلیدی — استایل تهران اسپیکر (Desktop Only)
   ═══════════════════════════════════════════════════════════ */

/* ── باکس اصلی ── */
.kh-kf-box {
    overflow: hidden;
    background: #fff;
    margin-top: 12px;
}

/* ── هدر ── */
.kh-kf-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--c-primary);
    direction: rtl;
}

.kh-kf-header-icon {
    width: 20px;
    height: 20px;
    color: var(--c-primary);
    flex-shrink: 0;
}

/* ── جدول ── */
.kh-kf-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

/* ── هر ردیف (سلول) ── */
.kh-kf-row {
    display: flex;
    flex-direction: row;              /* ← تغییر از column به row */
    align-items: center;              /* ← وسط‌چین عمودی */
    justify-content: space-between;   /* ← لیبل راست، مقدار چپ */
    margin: 7px 5px;
    padding: 10px 14px;               /* ← پدینگ بیشتر برای خوانایی */
    position: relative;
    background-color: #f7f7f7;
    border-radius: 5px;
    gap: 10px;
    min-height: 48px;
}

/* حذف border-bottom آخرین ردیف */
.kh-kf-row:nth-last-child(-n+2) {
    border-bottom: none;
}

/* ── عنوان ویژگی (سمت راست) ── */
.kh-kf-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
    order: 1; 
    color: black;                        /* ← اول (سمت راست) */
}

.kh-kf-icon {
    width: 16px;
    height: 16px;
    color: #b0b4c0;
    flex-shrink: 0;
}

/* ── مقدار ویژگی (سمت چپ) ── */
.kh-kf-value {
    font-size: 13px;
    color: var(--c-primary);
    line-height: 1.7;
    padding-right: 0;                /* ← حذف padding قبلی */
    text-align: left;                /* ← چسبیدن به چپ */
    order: 2;                        /* ← دوم (سمت چپ) */
    word-break: break-word;
}

/* ── آیتم‌های مخفی ── */
.kh-kf-hidden {
    display: none !important;
}

/* ── دکمه مشاهده بیشتر ── */
.kh-kf-more-wrap {
    display: flex;
    justify-content: right;
    padding: 5px 0;
    grid-column: 1 / -1;             /* ← تمام عرض گرید */
}

.kh-kf-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--c-primary);
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.kh-kf-more-btn:hover {
    background: rgba(13, 124, 102, 0.06);
    color: var(--c-primary);
}

.kh-kf-more-btn svg {
    transition: transform 0.3s ease;
}



/* ═══════════════════════════════════════════════════════════
   سایز تشک — فقط محصولات متغیر (Desktop Only)
   ═══════════════════════════════════════════════════════════ */

.kh-sel-block {
    margin-top: 12px;
    direction: rtl;
}

.kh-sel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
}

.kh-sel-icon {
    width: 18px;
    height: 18px;
    color: #6b7280;
    flex-shrink: 0;
}

.kh-size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kh-size-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.kh-size-btn:hover {
    background: #e8f5f1;
    border-color: var(--c-primary);
    color: rgba(13, 124, 102, 0.06);
}

.kh-size-btn.active {
    background: #e8f5f1;
    border-color: var(--c-primary);
    color: rgba(13, 124, 102, 0.06);
    pointer-events: none;
}

.kh-size-btn.out-of-stock {
    opacity: 0.4;
    pointer-events: none;
    text-decoration: line-through;
    cursor: not-allowed;
}

/* ===== Color Buttons ===== */
.kh-color-btn {
    position: relative;
    transition: all 0.25s ease;
    border: 2px solid #e0e0e0 !important;
}

/* حالت عادی: بدون بک‌گراند رنگی (فقط بوردر) */
.kh-color-btn:not(.active):not(:hover) {
    background: #fff !important;
    color: #333 !important;
}

/* هاور: بک‌گراند رنگ واقعی با شفافیت */
.kh-color-btn:hover:not(.active) {
    opacity: 0.85;
}

/* اکتیو: بک‌گراند کامل رنگ واقعی */
.kh-color-btn.active {
    border-color: transparent !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transform: scale(1.04);
}

/* بوردر سفید ویژه دکمه‌های رنگ روشن */
.kh-color-btn.active[data-text-color="#333333"] {
    border: 2px solid #bbb !important;
}

/* ===== دکمه‌های رنگ — سایز و فاصله‌گذاری مناسب ===== */
.kh-color-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    min-width: 64px;
    min-height: 40px;
    font-size: 13px;
    font-weight: 500;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    gap: 6px;
    line-height: 1.6;
}

.kh-color-btn:hover:not(:disabled):not(.unavail) {
    border-color: var(--c-primary);
}

.kh-color-btn.active {
    border-color: var(--c-primary);
    font-weight: 700;
}

.kh-color-btn.unavail,
.kh-color-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
    background: #f5f5f5;
}

/* ===== گرید رنگ ===== */
.kh-color-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ===== دکمه‌های سایز (بدون تغییر — فقط مطمئن شوید موجوده) ===== */
.kh-size-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    min-width: 80px;
    min-height: 40px;
    font-size: 13px;
    font-weight: 500;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.6;
}

.kh-size-btn:hover:not(:disabled):not(.unavail) {
    border-color: rgba(13, 124, 102, 0.06);
    box-shadow: 0 0 0 1px var(--c-primary);
}

.kh-size-btn.active {
    border-color: var(--c-primary);
    background: #f0fdf4;
    box-shadow: 0 0 0 2px var(--c-primary);
    font-weight: 700;
}

.kh-size-btn.unavail,
.kh-size-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
    background: #f5f5f5;
}

/* ===== گرید سایز ===== */
.kh-size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


/* VARIATION */
.kh-sel-block { margin-bottom: 18px; }
.kh-sel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.kh-sel-title { font-size: 15px; font-weight: 700; color: var(--c-text); }
.kh-sel-guide { font-size: 11.5px; font-weight: 600; color: var(--c-primary); text-decoration: none; }
.kh-sel-guide:hover { text-decoration: underline; }
.kh-size-grid { display: flex; gap: 7px; flex-wrap: wrap; }
.kh-size-btn {
    padding: 7px 14px; border-radius: 8px;
    border: 1.5px solid var(--c-border); background: #fff;
    font-size: 12.5px; font-weight: 600; color: var(--c-text);
    cursor: pointer; transition: var(--trans-base); font-family: var(--font);
}
.kh-size-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.kh-size-btn.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.kh-size-btn.unavail { opacity: .35; cursor: not-allowed; text-decoration: line-through; }



/* ══════════════════════════════════
   PURCHASE BOX — COL 3
══════════════════════════════════ */
.kh-pbox {
    background: #fff; border: 1.5px solid #d8eaec;
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 4px 32px rgba(15,79,89,.1), 0 1px 4px rgba(0,0,0,.04);
}
.kh-pbox-head {
    background: linear-gradient(135deg, #061e22, var(--c-primary));
    padding: 14px 18px;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.75);
}
.kh-pbox-status {
    font-size: 11px; font-weight: 800; padding: 3px 11px;
    border-radius: 999px; border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.12); color: #fff;
}
.kh-pbox-body { padding: 16px; }

/* PRICE */
.kh-price-wrap { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed var(--c-border); }
.kh-price-hint {
    font-size: 12.5px; color: var(--c-muted); text-align: center;
    padding: 14px 10px; border: 1.5px dashed var(--c-border);
    border-radius: var(--r-md); line-height: 1.6;
}
.kh-price-old-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.kh-price-old { font-size: 12px; color: var(--c-muted); text-decoration: line-through; }
.kh-price-disc { background: var(--c-danger); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 999px; }
.kh-price-main { display: flex; align-items: baseline; justify-content: flex-end; gap: 5px; }
.kh-price-num { font-size: 24px; font-weight: 700; color: var(--c-primary); letter-spacing: -1px; line-height: 1; }
.kh-price-unit { font-size: 12px; color: var(--c-muted); }
/* ══════════════════════════════════════
   تب نقدی / اقساطی
══════════════════════════════════════ */
.kh-pay-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    background: #f0f4f5;
    border-radius: 12px;
    padding: 4px;
}
.kh-pay-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 6px;
    border: none;
    border-radius: 9px;
    background: transparent;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    color: var(--c-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}
.kh-pay-tab svg { width: 14px; height: 14px; flex-shrink: 0; }
.kh-pay-tab.active {
    background: #fff;
    color: var(--c-primary);
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}

.kh-pay-panel--hidden { display: none; }

/* ── خلاصه اقساط ── */
.kh-inst-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.kh-inst-badges {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.kh-inst-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff3cd;
    color: #92611a;
    border: 1px solid #f5cc6a;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 800;
}
.kh-inst-badge--count {
    background: #e6f4f1;
    color: #0f4f59;
    border-color: #bfe3dc;
}
.kh-inst-total-label {
    font-size: 11px;
    color: var(--c-muted);
}
.kh-inst-total-label b {
    color: var(--c-primary);
    font-size: 13px;
    font-weight: 800;
}

/* ── مراحل ── */
.kh-inst-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}
.kh-inst-step {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fbfc;
    border: 1px solid #e4eef0;
    border-radius: 10px;
    padding: 9px 12px;
}
.kh-inst-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--c-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.kh-inst-step-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.kh-inst-step-title {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--c-text);
}
.kh-inst-step-amount {
    font-size: 13px;
    font-weight: 800;
    color: var(--c-primary);
}
.kh-inst-step-amount small {
    font-size: 10px;
    font-weight: 500;
    color: var(--c-muted);
    margin-right: 2px;
}
.kh-inst-step-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}
.kh-inst-tag--cash {
    background: #e8f5f3;
    color: var(--c-primary);
    border: 1px solid #b8ddd9;
}
.kh-inst-tag--check {
    background: #fff0e8;
    color: #c0540a;
    border: 1px solid #f5c6a0;
}
.kh-inst-note {
    font-size: 10px;
    color: var(--c-muted);
    text-align: center;
    margin: 0;
}
.kh-inst-note--warn {
    font-size: 11px;
    color: #92611a;
    background: #fff8e6;
    border: 1px solid #f5cc6a;
    border-radius: 8px;
    padding: 6px 8px;
    margin: 6px 0;
    text-align: right;
}

/* SELLER */
.kh-seller { display: flex; align-items: center; justify-content: space-between; font-size: 12px; margin-bottom: 10px; }
.kh-seller-lbl { color: var(--c-muted); }
.kh-seller-name { font-weight: 700; color: var(--c-text); display: flex; align-items: center; gap: 4px; }
.kh-seller-check { width: 16px; height: 16px; background: var(--c-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.kh-seller-check svg { width: 9px; height: 9px; }

/* DELIVERY */
.kh-delivery {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px dashed var(--c-border);
    border-bottom: 1px dashed var(--c-border);
    margin-bottom: 12px;
}
.kh-del-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.kh-del-ico {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(15,79,89,.08);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.kh-del-ico svg { width: 15px; height: 15px; stroke: var(--c-primary); }
.kh-del-ico--green { background: rgba(22,163,74,.08); }
.kh-del-ico--green svg { stroke: #16a34a; }
.kh-del-text { display: flex; flex-direction: column; gap: 2px; }
.kh-del-text strong { font-size: 12px; font-weight: 700; color: var(--c-text); }
.kh-del-text span { font-size: 10.5px; color: var(--c-muted); }

/* QTY */
.kh-qty-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 12px; color: var(--c-muted); }
.kh-qty { display: flex; align-items: center; border: 1.5px solid var(--c-border); border-radius: 10px; overflow: hidden; }
.kh-qty-btn { width: 36px; height: 36px; background: #fff; font-size: 18px; font-weight: 700; color: var(--c-primary); cursor: pointer; transition: var(--trans-fast); font-family: var(--font); display: flex; align-items: center; justify-content: center; }
.kh-qty-btn:hover { background: var(--c-off-white); }
.kh-qty-num { width: 42px; text-align: center; font-size: 15px; font-weight: 800; color: var(--c-text); border-right: 1.5px solid var(--c-border); border-left: 1.5px solid var(--c-border); line-height: 36px; display: block; }

/* BUTTONS */
.kh-btn-cart {
    width: 100%; padding: 13px; border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--c-primary), #0a7a8e);
    color: #fff; font-size: 14px; font-weight: 800; font-family: var(--font);
    cursor: pointer; transition: all .22s ease; margin-bottom: 8px;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    box-shadow: 0 4px 14px rgba(15,79,89,.25); border: none;
}
.kh-btn-cart:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,79,89,.35); }
.kh-btn-cart:disabled { opacity: .45; cursor: not-allowed; background: var(--c-muted); box-shadow: none; }
.kh-btn-cart svg { width: 17px; height: 17px; flex-shrink: 0; }
.kh-btn-buy {
    width: 100%; padding: 12px; border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--c-gold), var(--c-gold-light));
    color: #061e22; font-size: 13.5px; font-weight: 800; font-family: var(--font);
    cursor: pointer; transition: all .22s ease; margin-bottom: 8px;
    box-shadow: 0 3px 10px rgba(201,168,76,.28); border: none;
}
.kh-btn-buy:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(201,168,76,.4); }
.kh-btn-wa {
    width: 100%; padding: 11px; border-radius: var(--r-md);
    background: #fff; border: 1.5px solid var(--c-primary); color: var(--c-primary);
    font-size: 13px; font-weight: 700; font-family: var(--font);
    cursor: pointer; transition: all .22s ease;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    text-decoration: none; margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(15,79,89,.1);
}
.kh-btn-wa:hover {
    background: var(--c-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15,79,89,.25);
}
.kh-btn-wa svg { width: 18px; height: 18px; flex-shrink: 0; transition: stroke .22s; }



/* price hint + shake */
@keyframes khShake {
    0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)}
}
.kh-shake { animation: khShake .35s ease; }

/* ══════════════════════════════════
   STICKY TABS
══════════════════════════════════ */
.kh-tabs-bar {
    position: sticky;
    top: 78px; /* 70px header + 8px gap */
    z-index: 100;
    background: var(--c-primary);
    margin-top: 28px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15,79,89,.2);
}
/* tabs/specs/review داخل kh-page-main — faq داخل kh-faq-col */
#kh-specs .kh-wrap,
#kh-review .kh-wrap,
#kh-faq .kh-wrap {
    max-width: none;
    margin: 0;
    padding: 0;
}
.kh-tabs-list {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0;
}
.kh-tabs-list::-webkit-scrollbar { display: none; }
.kh-tab {
    padding: 13px 20px;
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255,255,255,.7);
    white-space: nowrap;
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font);
    border-bottom: none; /* بدون خط زیر active */
    transition: var(--trans-fast);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0;
    /* خط عمودی جداکننده */
    border-left: 1px solid rgba(255,255,255,.15);
    position: relative;
}
.kh-tab:first-child { border-left: none; }
.kh-tab:hover { color: #fff; background: rgba(255,255,255,.08); }
.kh-tab.active {
    color: #fff;
    font-weight: 800;
    background: rgba(255,255,255,.12);
}
.kh-tab-ct {
    background: rgba(255,255,255,.2);
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 999px;
}

/* ══════════════════════════════════
   SECTIONS — کوچک‌تر از قبل
══════════════════════════════════ */
.kh-section { padding: 32px 0; }

/* ─── sections عرض کامل (خارج از kh-page-wrap) ─── */
#kh-related,
#kh-reviews,
#kh-qa {
    
    width: 100%;
}
#kh-related .kh-wrap,
#kh-reviews .kh-wrap,
#kh-qa .kh-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}
.kh-section + .kh-section { border-top: none; margin-top: 8px; }
.kh-section-tag { font-size: 15px; font-weight: 700; letter-spacing: .4px; color: var(--c-primary); opacity: .8; margin-bottom: 6px; text-transform: uppercase; }
.kh-section-title { font-size: 18px; font-weight: 900; color: var(--c-dark); letter-spacing: -.3px; margin-bottom: 20px; }
.kh-empty { font-size: 13px; color: var(--c-muted); }

/* SPECS */
.kh-specs-table {
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px; /* فاصله بین ردیف‌ها */
    background: transparent;
    border: none;
}
.kh-spec-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 6px; /* فاصله بین k و v */
    transition: var(--trans-fast);
    border-radius: 8px;
    overflow: hidden;
}
.kh-spec-row:hover .kh-spec-k,
.kh-spec-row:hover .kh-spec-v { background: #e8eef0; }
.kh-spec-k {
    padding: 12px 16px;
    font-size: 12px;
    color: var(--c-primary);
    font-weight: 700;
    background: #edf2f3;
    display: flex;
    align-items: center;
    border-radius: 8px;
}
.kh-spec-v {
    padding: 12px 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--c-text);
    background: #edf2f3;
    display: flex;
    align-items: center;
    border-radius: 8px;
}

/* EXPERT */
.kh-expert-body {
    max-width: 100%;
    font-size: 14.5px;
    line-height: 2;
    color: var(--c-text);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 24px 28px;
    text-align: justify;
    background: #fff;
}
.kh-expert-body p { margin-bottom: 16px; }
.kh-expert-body p:last-child { margin-bottom: 0; }
.kh-expert-body strong { color: var(--c-primary); }
.kh-expert-body h2, .kh-expert-body h3 { font-size: 16px; font-weight: 800; color: var(--c-dark); margin: 20px 0 10px; }
.kh-expert-body ul, .kh-expert-body ol { padding-right: 20px; margin-bottom: 16px; }
.kh-expert-body li { margin-bottom: 6px; }
.kh-expert-body img { max-width: 100%; height: auto; }
.kh-expert-body img.alignleft,
.kh-expert-body img.alignright,
.kh-expert-body img.aligncenter,
.kh-expert-body img.alignnone {
    float: none;
    display: block;
    margin: 16px auto;
}
.kh-expert-body img.alignleft { margin: 16px auto 16px 16px; }
.kh-expert-body img.alignright { margin: 16px 16px 16px auto; }
.kh-expert-body .wp-block-image,
.kh-expert-body figure.alignleft,
.kh-expert-body figure.alignright,
.kh-expert-body figure.aligncenter {
    max-width: 100%;
    margin: 16px auto;
}

/* ── جداول داخل متن معرفی محصول — هماهنگ با جداول توضیحات آرشیو ── */
.kh-expert-body table {
    display: table;
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
    border: 1px solid #e8e8e8 !important;
    font-size: 14px;
    margin: 24px 0;
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.kh-expert-body table th,
.kh-expert-body table td {
    width: auto !important;
    border: none !important;
}
.kh-expert-body table thead tr:first-child,
.kh-expert-body table thead tr:first-child th {
    background: var(--c-primary) !important;
    color: #fff !important;
}
.kh-expert-body table th {
    padding: 12px 20px;
    text-align: right;
    font-weight: 700;
    font-size: 13px;
    white-space: normal;
    word-break: break-word;
    letter-spacing: .01em;
    vertical-align: middle;
}
.kh-expert-body table th + th {
    border-right: 1px solid rgba(255,255,255,.25) !important;
}
.kh-expert-body table td {
    padding: 11px 20px;
    text-align: right;
    border-bottom: none !important;
    color: var(--c-text);
    font-size: 13px;
    line-height: 1.75;
    vertical-align: middle;
    white-space: normal;
    word-break: break-word;
}
.kh-expert-body table td:first-child {
    font-weight: 700;
    color: var(--c-primary);
    white-space: nowrap;
    width: 1%;
}
/* اگر ردیف هدر هم با <td> ساخته شده باشد (نه <th>)، رنگ سفید را برگردان — فقط ردیف اول thead، نه ردیف اول tbody */
.kh-expert-body table thead tr:first-child td {
    background: var(--c-primary) !important;
    color: #fff !important;
}
.kh-expert-body table tbody tr:nth-child(even) {
    background: #f7f8f9;
}
.kh-expert-body table tbody tr:hover {
    background: var(--c-bg-soft);
    transition: background .15s ease;
}

/* FAQ */
.kh-faq-list{padding:0;list-style:none;direction:rtl;counter-reset:faq-counter;display:flex;flex-direction:column;gap:12px}.kh-faq-item{margin-bottom:0;border:1px solid #e0e4e8;border-radius:20px;overflow:hidden;transition:all .3s ease;background:#fff}.kh-faq-q{margin:0!important;padding:20px 70px 20px 24px!important;background:#fff;cursor:pointer;font-size:13px!important;font-weight:500!important;color:#1a202c!important;transition:all .3s ease;position:relative;line-height:1.7!important;text-align:right;display:flex;align-items:center;justify-content:space-between;width:100%;border:none}.kh-faq-q::before{content:counter(faq-counter,decimal-leading-zero);counter-increment:faq-counter;position:absolute;right:20px;top:50%;transform:translateY(-50%);width:42px;height:42px;border:1px solid #0f4f59;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;color:#0f4f59;background:#e8f5f3;transition:all .3s ease}.kh-faq-num{display:none!important}.kh-faq-item.kh-fade-on .kh-faq-q::before,.kh-faq-q.open::before{background:#0f4f59;color:#fff}.kh-faq-q::after{content:"";position:absolute;left:24px;top:50%;transform:translateY(-50%) rotate(-45deg);width:10px;height:10px;border-left:2px solid #0f4f59;border-bottom:2px solid #0f4f59;transition:transform .3s ease}.kh-faq-arr{display:none!important}.kh-faq-item.kh-fade-on .kh-faq-q::after,.kh-faq-q.open::after{transform:translateY(-30%) rotate(135deg);border-color:#0f4f59}.kh-faq-a{max-height:0;overflow:hidden;padding:0 24px;margin-right:45px;transition:max-height .5s cubic-bezier(.4,0,.2,1),padding .5s cubic-bezier(.4,0,.2,1),opacity .4s ease;opacity:0;display:block!important;background:transparent!important;border:none!important}.kh-faq-item.kh-fade-on .kh-faq-a,.kh-faq-a.open{max-height:1000px;padding:0 24px 20px;opacity:1}.kh-faq-a p{margin:0!important;font-size:12px;font-weight:400;line-height:1.9;color:#1a1a1a;text-align:justify}.kh-faq-item.kh-fade-on,.kh-faq-item.active{border-color:#0f4f59}.kh-faq-list h2,.kh-faq-list h3{font-size:22px;font-weight:700;color:#0f4f59;margin-bottom:30px;text-align:right}



/* RELATED */
.kh-related-wrap { position: relative; }

/* ── هدر محصولات مشابه ── */
.kh-related-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.kh-related-title-group .kh-section-tag,
.kh-related-title-group .kh-section-title {
    margin-bottom: 0;
}
.kh-related-title-group .kh-section-tag { margin-bottom: 4px; }
.kh-related-btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    padding-bottom: 4px;
}

/* دکمه pill — همان استایل دکمه‌های صفحه اصلی */
.kh-rel-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f9f9;
    color: #0f4f59;
    border: 1px solid #0f4f59;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    text-decoration: none;
    transition: background .2s, color .2s;
    white-space: nowrap;
}
.kh-rel-pill:hover {
    background: #0f4f59;
    color: #fff;
}
.kh-rel-pill svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    stroke: currentColor;
}
.kh-rel-pill-arrow {
    opacity: .7;
}
.kh-related-swiper { overflow: hidden; }
.kh-related-swiper .swiper-wrapper { align-items: stretch; }
.kh-related-swiper .swiper-slide { height: auto; display: flex; }
.kh-related-swiper .swiper-slide > .product-card { flex: 1; height: auto; padding-bottom: 10px; }
.kh-rel-card { display: flex; flex-direction: column; border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; background: #fff; transition: var(--trans-base); text-decoration: none; color: inherit; }
.kh-rel-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-3px); }
.kh-rel-img { aspect-ratio: 1; background: var(--c-off-white); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 14px; }
.kh-rel-img img { width: 100%; height: 100%; object-fit: contain; transition: transform var(--trans-slow); }
.kh-rel-card:hover .kh-rel-img img { transform: scale(1.06); }
.kh-rel-disc { position: absolute; top: 8px; right: 8px; background: var(--c-danger); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 999px; }
.kh-rel-wish { position: absolute; top: 8px; left: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.9); border: 1px solid var(--c-border); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: var(--trans-fast); }
.kh-rel-card:hover .kh-rel-wish { opacity: 1; }
.kh-rel-wish svg { width: 13px; height: 13px; stroke: var(--c-danger); }
.kh-rel-body { padding: 13px; display: flex; flex-direction: column; gap: 4px; }
.kh-rel-brand { font-size: 10px; color: var(--c-primary-light); font-weight: 800; }
.kh-rel-name { font-size: 12.5px; font-weight: 700; color: var(--c-text); line-height: 1.45; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kh-rel-old { font-size: 10.5px; color: var(--c-muted); text-decoration: line-through; }
.kh-rel-price { font-size: 14px; font-weight: 900; color: var(--c-primary); }
.kh-rel-price small { font-size: 10px; font-weight: 400; color: var(--c-muted); }
.kh-rel-btn { margin-top: 8px; background: var(--c-primary); color: #fff; border-radius: 7px; border: none; padding: 7px 12px; font-size: 11.5px; font-weight: 700; cursor: pointer; font-family: var(--font); transition: var(--trans-fast); }
.kh-rel-btn:hover { background: var(--c-primary-dark); }
.kh-rel-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: #0f4f59; border: 1px solid #e0e0e0; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; transition: background 0.2s, border-color 0.2s; color: #f0f9f9; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.kh-rel-nav:hover { background: #f0f9f9; border-color: #0f4f59; color: #0f4f59; }
.kh-rel-nav.swiper-button-disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.kh-rel-prev { right: -20px; }
.kh-rel-next { left: -20px; }

/* REVIEWS */
/* ══ Reviews ══ */
.kh-rev-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.kh-rev-write-btn { display: flex; align-items: center; gap: 7px; padding: 10px 22px; background: var(--c-primary); color: #fff; border: none; border-radius: 999px; font-size: 13px; font-weight: 700; font-family: var(--font); cursor: pointer; transition: var(--trans-base); }
.kh-rev-write-btn svg { width: 15px; height: 15px; stroke: #fff; }
.kh-rev-write-btn:hover { background: var(--c-primary-dark, #0e8072); }

/* overview */
.kh-rev-overview { display: grid; grid-template-columns: 160px 1fr; gap: 32px; background: var(--c-off-white); border: 1px solid var(--c-border); border-radius: 16px; padding: 24px 28px; margin-bottom: 28px; align-items: center; }
.kh-rev-score-box { text-align: center; }
.kh-rev-big { font-size: 56px; font-weight: 900; color: var(--c-primary); letter-spacing: -3px; line-height: 1; display: block; }
.kh-rev-of { font-size: 12px; color: var(--c-muted); display: block; margin: 4px 0 8px; }
.kh-rev-stars { display: flex; justify-content: center; gap: 3px; margin-bottom: 6px; }
.kh-rev-stars .kh-star     { width: 16px; height: 16px; fill: var(--c-gold); stroke: none; }
.kh-rev-stars .kh-star.kh-star-e { fill: none; stroke: var(--c-border); stroke-width: 1.5; }
.kh-rev-label { font-size: 11px; color: var(--c-muted); display: block; }
.kh-rev-bars { display: flex; flex-direction: column; gap: 9px; }
.kh-bar-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--c-muted); }
.kh-bar-lbl { width: 56px; text-align: right; white-space: nowrap; }
.kh-bar-track { flex: 1; height: 6px; background: var(--c-border); border-radius: 999px; overflow: hidden; }
.kh-bar-fill { height: 100%; background: var(--c-gold); border-radius: 999px; transition: width .6s ease; }
.kh-bar-num { width: 24px; font-weight: 700; color: var(--c-text); font-size: 12px; text-align: left; }

/* فرم */
.kh-rev-form-wrap { background: var(--c-off-white); border: 1px solid var(--c-border); border-radius: 16px; padding: 24px 28px; margin-bottom: 28px; }
.kh-rev-form-title { font-size: 15px; font-weight: 800; color: var(--c-dark); margin-bottom: 18px; }
.kh-rev-rating-pick { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 13px; color: var(--c-text); font-weight: 600; }
.kh-star-pick { display: flex; gap: 4px; }
.kh-sp-btn { background: none; border: none; padding: 2px; cursor: pointer; }
.kh-sp-btn svg { width: 22px; height: 22px; }
.kh-sp-btn .kh-star     { fill: var(--c-gold); stroke: none; }
.kh-sp-btn .kh-star-e   { fill: none; stroke: #d1d5db; stroke-width: 1.5; }
.kh-rev-textarea { width: 100%; border: 1px solid var(--c-border); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; font-family: var(--font); resize: vertical; min-height: 100px; color: var(--c-text); background: #fff; outline: none; transition: border-color .2s; box-sizing: border-box; }
.kh-rev-textarea:focus { border-color: var(--c-primary); }
.kh-rev-submit { margin-top: 12px; padding: 10px 28px; background: var(--c-primary); color: #fff; border: none; border-radius: 999px; font-size: 13px; font-weight: 700; font-family: var(--font); cursor: pointer; transition: var(--trans-base); }
.kh-rev-submit:hover { opacity: .88; }
.kh-rev-login-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c-muted); }
.kh-rev-login-note svg { width: 20px; height: 20px; flex-shrink: 0; }
.kh-rev-login-note a { color: var(--c-primary); font-weight: 700; }

/* کارت‌ها */
.kh-rev-list { display: flex; flex-direction: column; gap: 14px; }
.kh-rev-card { background: #fff; border: 1px solid var(--c-border); border-radius: 14px; padding: 20px 22px; transition: var(--trans-fast); }
.kh-rev-card:hover { border-color: var(--c-primary-light); box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.kh-rev-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.kh-rev-user { display: flex; align-items: center; gap: 10px; }
.kh-rev-av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light)); color: #fff; font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kh-rev-meta { display: flex; flex-direction: column; gap: 4px; }
.kh-rev-name { font-size: 13.5px; font-weight: 700; color: var(--c-dark); }
.kh-verified { display: inline-flex; align-items: center; gap: 3px; background: rgba(22,163,74,.08); color: #15803d; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(22,163,74,.2); width: fit-content; }
.kh-rev-card-left { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.kh-rev-date { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--c-muted); white-space: nowrap; }
.kh-rev-date svg { width: 13px; height: 13px; stroke: var(--c-muted); }
.kh-rev-body { font-size: 13.5px; line-height: 1.9; color: var(--c-text); }
.kh-rev-empty { display:flex; flex-direction:column; align-items:center; gap:8px; padding:32px 20px; }
.kh-rev-empty-icon { width:48px; height:48px; border-radius:50%; background:var(--c-primary-light,rgba(0,107,91,.1)); color:var(--c-primary); display:flex; align-items:center; justify-content:center; margin-bottom:4px; }
.kh-rev-empty-icon svg { width:22px; height:22px; }
.kh-rev-empty-title { font-size:14px; font-weight:700; color:var(--c-text); margin:0; }
.kh-rev-empty-sub { font-size:12px; color:var(--c-muted); margin:0; text-align:center; line-height:1.7; }

.kh-more-btn { display: inline-block; margin-top: 20px; padding: 11px 32px; border-radius: 999px; border: 2px solid var(--c-primary); color: var(--c-primary); font-size: 13px; font-weight: 700; font-family: var(--font); background: #fff; cursor: pointer; transition: var(--trans-base); text-decoration: none; }
.kh-more-btn:hover { background: var(--c-primary); color: #fff; }

/* Q&A */
.kh-qa-list { display: flex; flex-direction: column; gap: 10px; }
.kh-qa-item { border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden; }
.kh-qa-q, .kh-qa-a { display: flex; align-items: flex-start; gap: 10px; padding: 13px 18px; font-size: 13px; }
.kh-qa-q { background: var(--c-off-white); font-weight: 700; color: var(--c-text); }
.kh-qa-a { background: #fff; border-top: 1px solid var(--c-border-light); color: var(--c-text); line-height: 1.8; }
.kh-qa-ico { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900; flex-shrink: 0; }
.kh-qa-q-ico { background: var(--c-primary); color: #fff; }
.kh-qa-a-ico { background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light)); color: #fff; }
.kh-qa-meta { font-size: 11px; color: var(--c-muted); margin-top: 4px; display: block; }

/* ══ Scroll Reveal ══ */
.kh-fade { opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .4s ease; }
.kh-fade.on { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════
   SHARE MODAL
══════════════════════════════════ */
.kh-share-overlay {
    position: fixed; inset: 0; z-index: 9000;
    background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
    display: flex; align-items: flex-end; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all .3s ease;
}
.kh-share-overlay.open { opacity: 1; visibility: visible; }
.kh-share-modal {
    background: #fff; width: 100%; max-width: 480px;
    border-radius: 24px 24px 0 0;
    padding: 0 0 env(safe-area-inset-bottom,16px);
    transform: translateY(100%); transition: transform .35s cubic-bezier(.34,1.56,.64,1);
    overflow: hidden;
}
.kh-share-overlay.open .kh-share-modal { transform: translateY(0); }
.kh-share-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #f0f4f4;
}
.kh-share-title { font-size: 14px; font-weight: 800; color: #1e293b; }
.kh-share-close {
    width: 30px; height: 30px; border-radius: 50%;
    background: #f5f7f7; display: flex; align-items: center; justify-content: center;
}
.kh-share-close svg { width: 14px; height: 14px; stroke: #64748b; }
.kh-share-preview {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px; background: #f8fbfb;
    border-bottom: 1px solid #f0f4f4;
}
.kh-share-preview img {
    width: 48px; height: 48px; border-radius: 10px; object-fit: contain;
    background: #fff; border: 1px solid #e2eded; flex-shrink: 0;
}
.kh-share-preview span {
    font-size: 12.5px; font-weight: 700; color: #334155;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kh-share-apps {
    display: flex; gap: 6px; padding: 20px;
    justify-content: center; flex-wrap: wrap;
    background: transparent !important;
}
.kh-share-app {
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    text-decoration: none; color: #334155;
    font-size: 11px; font-weight: 600; background: none; border: none; cursor: pointer;
    transition: transform .18s ease;
    width: 70px;
}
.kh-share-app:hover { transform: translateY(-3px); }
.kh-share-app-ico {
    width: 52px; height: 52px; border-radius: 16px; overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,.12);
    display: flex; align-items: center; justify-content: center;
    background: #f1f5f9;
}
.kh-share-app-ico svg { width: 52px; height: 52px; }
.kh-share-app-ico img { width: 52px; height: 52px; object-fit: cover; display: block; }
.kh-share-app-ico--copy { background: #f1f5f9; }
.kh-share-app-ico--copy svg { width: 22px; height: 22px; stroke: #64748b; }
.kh-share-url-row {
    display: flex; gap: 8px; padding: 0 20px 20px;
}
.kh-share-url-inp {
    flex: 1; background: #f5f7f8; border: 1.5px solid #e2eded;
    border-radius: 10px; padding: 8px 12px;
    font-size: 11.5px; color: #64748b; font-family: monospace;
    direction: ltr; text-align: left; outline: none;
}
.kh-share-url-btn {
    background: var(--c-primary); color: #fff;
    border-radius: 10px; padding: 8px 16px;
    font-size: 12px; font-weight: 700; font-family: var(--font);
    border: none; cursor: pointer; white-space: nowrap;
    transition: opacity .18s;
}
.kh-share-url-btn:hover { opacity: .85; }

/* ============================================
   Share Popup — Center on Screen
   ============================================ */

/* Overlay (بک‌گراند تیره پشت پاپ‌آپ) */
.kh-share-overlay,
.kh-share-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* خود باکس پاپ‌آپ */
.kh-share-modal,
.kh-share-popup,
.kh-share-box {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 100000 !important;
    
    /* ابعاد */
    width: 90% !important;
    max-width: 480px !important;
    max-height: 85vh !important;
    
    /* ظاهر */
    background: #fff !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25) !important;
    padding: 24px !important;
    
    /* انیمیشن ورود */
    animation: khSharePopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    
    /* حذف هر bottom/margin اضافی */
    bottom: auto !important;
    margin: 0 !important;
    inset: auto !important;
    top: 50% !important;
    left: 50% !important;
}

/* انیمیشن ورود پاپ‌آپ */
@keyframes khSharePopIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.85);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* دکمه بستن */
.kh-share-modal .kh-share-close,
.kh-share-popup .kh-share-close,
.kh-share-box .close-btn {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    cursor: pointer;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
    transition: all 0.2s;
}

.kh-share-modal .kh-share-close:hover,
.kh-share-popup .kh-share-close:hover {
    background: #fee2e2;
    color: #dc2626;
}
.kh-share-modal .kh-share-close:hover svg,
.kh-share-popup .kh-share-close:hover svg {
    stroke: #dc2626;
}

/* ── دکمه‌های خرید — حالت غیرفعال ── */
.kh-btn-disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    filter: grayscale(30%);
    transition: opacity .3s, filter .3s;
}


/* ══════════════════════════════════
   LIGHTBOX
══════════════════════════════════ */
.kh-lb-overlay {
    position: fixed; inset: 0; z-index: 9500;
    background: rgba(0,0,0,.92);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all .25s ease;
}
.kh-lb-overlay.open { opacity: 1; visibility: visible; }
.kh-lb-img-wrap {
    max-width: 90vw; max-height: 85vh;
    display: flex; align-items: center; justify-content: center;
}
.kh-lb-img-wrap img {
    max-width: 90vw; max-height: 85vh;
    object-fit: contain; border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    animation: lbZoomIn .3s ease;
}
@keyframes lbZoomIn { from{transform:scale(.8);opacity:0} to{transform:scale(1);opacity:1} }
.kh-lb-close {
    position: absolute; top: 18px; right: 18px;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.2); cursor: pointer;
    transition: background .18s;
}
.kh-lb-close:hover { background: rgba(255,255,255,.25); }
.kh-lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.2); cursor: pointer;
    transition: background .18s;
}
.kh-lb-nav:hover { background: rgba(255,255,255,.25); }
.kh-lb-prev { left: 18px; }
.kh-lb-next { right: 18px; }
.kh-lb-counter {
    position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,.5); color: rgba(255,255,255,.8);
    font-size: 12px; padding: 5px 14px; border-radius: 999px;
}

/* ══ Share button styles ══ */
.kh-share-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 999px;
    background: var(--c-off-white); border: 1.5px solid var(--c-border);
    font-size: 12px; font-weight: 600; color: var(--c-muted);
    cursor: pointer; transition: all .18s ease; font-family: var(--font);
}
.kh-share-btn:hover {
    background: var(--c-primary); color: #fff; border-color: var(--c-primary);
}
.kh-share-btn:hover svg { stroke: #fff; }
.kh-share-btn svg { width: 14px; height: 14px; stroke: var(--c-muted); transition: stroke .18s; }

/* ═══════════════════════════════════════
   CONSULT MODAL — پاپ‌آپ مشاوره
═══════════════════════════════════════ */
.kh-consult-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.kh-consult-overlay.open {
    display: flex;
}
.kh-consult-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    padding: 24px;
    box-shadow: 0 24px 64px rgba(0,0,0,.18);
    animation: consultSlideUp .25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes consultSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(.96); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* ── هدر ── */
.kh-consult-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.kh-consult-head-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--c-primary), #0bc5ea);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.kh-consult-head-icon svg {
    width: 22px; height: 22px;
    stroke: #fff;
}
.kh-consult-title {
    font-size: 15px;
    font-weight: 900;
    color: var(--c-dark);
    margin-bottom: 2px;
}
.kh-consult-sub {
    font-size: 11.5px;
    color: var(--c-muted);
}
.kh-consult-close {
    margin-right: auto;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--c-off-white);
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--trans-fast);
    flex-shrink: 0;
}
.kh-consult-close:hover { background: #fee2e2; }
.kh-consult-close svg { width: 16px; height: 16px; stroke: var(--c-muted); }
.kh-consult-close:hover svg { stroke: #dc2626; }

/* ── نام محصول ── */
.kh-consult-product {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--c-off-white);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--c-text);
    line-height: 1.5;
}
.kh-consult-product svg {
    width: 16px; height: 16px;
    stroke: var(--c-primary);
    flex-shrink: 0;
}

/* ── راهنما ── */
.kh-consult-hint {
    font-size: 12px;
    color: var(--c-muted);
    margin-bottom: 12px;
    font-weight: 500;
}

/* ── کانال‌ها ── */
.kh-consult-channels {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.kh-consult-ch {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1.5px solid var(--c-border);
    text-decoration: none;
    transition: all .2s ease;
    background: #fff;
}
.kh-consult-ch:hover { transform: translateX(-3px); border-color: transparent; }
.kh-consult-ch--wa:hover  { background: #f0fdf4; border-color: #22c55e !important; }
.kh-consult-ch--rb:hover  { background: #f5f3ff; border-color: #8b5cf6 !important; }
.kh-consult-ch--ei:hover   { background: #e0f7ff; border-color: #0099cc !important; }
.kh-consult-ch--bale:hover { background: #e8f5e9; border-color: #4caf50 !important; }

.kh-consult-ch-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.kh-consult-ch-icon img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.kh-consult-ch-info { flex: 1; }
.kh-consult-ch-info strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--c-dark);
    margin-bottom: 2px;
}
.kh-consult-ch-info span {
    font-size: 11px;
    color: var(--c-muted);
}
.kh-consult-ch-arrow {
    width: 18px; height: 18px;
    stroke: var(--c-border);
    flex-shrink: 0;
    transform: rotate(180deg);
}

/* ── فوتر ── */
.kh-consult-footer {
    text-align: center;
    font-size: 11px;
    color: var(--c-muted);
    padding-top: 12px;
    border-top: 1px dashed var(--c-border);
}


/* ═══════════════════════════════════════
   VIDEO MODAL — پاپ‌آپ ویدیو آپارات
═══════════════════════════════════════ */
.kh-video-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0,0,0,.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity .28s ease;
}
.kh-video-overlay.open { opacity: 1; }

.kh-video-box {
    position: relative;
    width: 100%;
    max-width: 820px;
    transform: scale(.92);
    transition: transform .28s ease;
}
.kh-video-overlay.open .kh-video-box { transform: scale(1); }

.kh-video-frame {
    aspect-ratio: 16/9;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}
.kh-video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.kh-video-close {
    position: absolute;
    top: -46px;
    left: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 1.5px solid rgba(255,255,255,.25);
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.kh-video-close:hover { background: rgba(255,255,255,.28); }
.kh-video-close svg { width: 20px; height: 20px; }

/* ── Toast پیغام علاقه‌مندی (دسکتاپ) ── */
.kh-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: #1a2e32;
    color: #fff;
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    z-index: 9997;
    opacity: 0;
    transition: opacity .25s, transform .25s;
    white-space: nowrap;
    pointer-events: none;
}
.kh-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── override toast مقایسه دسکتاپ — مثل toast علاقه‌مندی ── */
.kh-cmp-toast {
    bottom: 28px;
    transform: translateX(-50%) translateY(12px);
    background: #1a2e32;
    border-radius: 100px;
    transition: opacity .25s, transform .25s;
}
.kh-cmp-toast.show { transform: translateX(-50%) translateY(0); }
.kh-cmp-toast.success { background: #1a2e32; }

.review-header .user-header-content { top: 0 !important; }
.reviews-header { margin-bottom: 20px; }
