/* ==========================================================================
   TTE Client Revision 3.6
   اصلاحات درخواستی مشتری — بدون تغییر در ساختار و ظاهر کلی، فقط رفع نواقص:
   1) نقطه‌ای شدن نشانگرهای ویزارد انتخاب مسیر (حذف اعداد)
   2) هم‌ارتفاع شدن کارت محصول در دو حالت موجود و ناموجود
   3) حذف اسکرول‌بارهای افقی مزاحم (حفظ اسکرول/لمس/فلش)
   4) حباب شمارندهٔ سبد خرید روی گوشهٔ آیکون + مخفی شدن در سبد خالی
   این فایل با بالاترین اولویت بارگذاری می‌شود تا قوانین قبلی را مطمئن بازنویسی کند.
   ========================================================================== */

/* --------------------------------------------------------------------------
 * 1) ویزارد «به دنبال چه چیزی هستید؟» — نشانگر نقطه‌ای بدون عدد
 * -------------------------------------------------------------------------- */
.tte-page .tte-finder3__progress > div,
.tte32-site .tte-finder3__progress > div {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    isolation: isolate;
}

/* خط رابط نقطه‌ها در همهٔ نماها (خانه و نسخهٔ کوتاه) */
.tte-page .tte-finder3__progress > div::before,
.tte32-site .tte-finder3__progress > div::before {
    content: '';
    position: absolute;
    top: 50%;
    inset-inline: 6px;
    height: 1px;
    background: #c8ccb9;
    z-index: -1;
}

.tte-page .tte-finder3__progress i.tte-finder3__dot,
.tte32-site .tte-finder3__progress i.tte-finder3__dot {
    flex: 0 0 auto;
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    background: #dfe4d6 !important;
    border: 1px solid #cfd6c4 !important;
    font-size: 0 !important;            /* هیچ عددی نمایش داده نشود */
    line-height: 0 !important;
    color: transparent !important;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.tte-page .tte-finder3__progress i.tte-finder3__dot.is-on,
.tte32-site .tte-finder3__progress i.tte-finder3__dot.is-on {
    background: var(--tte-gold, #b69b63) !important;
    border-color: var(--tte-gold, #b69b63) !important;
}

@media (max-width: 600px) {
    .tte-page .tte-finder3__progress i.tte-finder3__dot,
    .tte32-site .tte-finder3__progress i.tte-finder3__dot {
        width: 10px !important;
        height: 10px !important;
        min-width: 10px !important;
    }
    .tte-page .tte-finder3__progress > div,
    .tte32-site .tte-finder3__progress > div {
        gap: 8px;
    }
}

/* --------------------------------------------------------------------------
 * 1-ب) ناوبرِ نقطه‌ای کاروسل‌ها (دوره‌های پیشنهادی و هر کاروسل دیگر سایت)
 *
 * چرا الگوی ::before؟ باندل یک قانون سراسری «.tte-page button{min-height:44px}»
 * دارد؛ پس اگر روی خود دکمه عرض ۱۰px بگذاریم، ارتفاعش ۴۴px می‌ماند و به‌جای
 * نقطه، یک میلهٔ عمودی دیده می‌شود. بنابراین مثل ناوبر اسلایدر هیرو، خود دکمه
 * یک ناحیهٔ لمسی شفاف است و «نقطه» را شبه‌عنصر ::before می‌سازد؛ این شکل
 * همیشه دایرهٔ واقعی است و تحت تأثیر ریست‌های دکمه قرار نمی‌گیرد.
 *
 * زبان بصری هماهنگ با برند (همان طلایی هیرو/فایندر روی پس‌زمینهٔ روشن):
 * نقطه‌های خاموش خاکی-مریم‌گلی، نقطهٔ فعال طلایی با هالهٔ نرم.
 * -------------------------------------------------------------------------- */
.tte-page .tte-carousel__dots,
.tte32-site .tte-carousel__dots {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    margin-top: 14px !important;
}

/* دکمه فقط ناحیهٔ لمسی شفاف است؛ نقطه روی ::before سوار می‌شود */
.tte-page .tte-carousel__dots button,
.tte32-site .tte-carousel__dots button,
.tte-page .tte-carousel__dots button.is-active,
.tte32-site .tte-carousel__dots button.is-active {
    position: relative !important;
    flex: 0 0 22px !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 0 !important;
    min-height: 0 !important;          /* خنثی‌کردن min-height:44px سراسریِ دکمه‌ها */
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    display: grid !important;
    place-items: center !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* نقطهٔ واقعی — همه یک‌اندازه و کاملاً دایره‌ای */
.tte-page .tte-carousel__dots button::before,
.tte32-site .tte-carousel__dots button::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c3ccc2;
    border: 1px solid rgba(12, 77, 59, .14);
    transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

/* صفحهٔ فعال: نقطه طلایی با هالهٔ نرم (بدون هیچ کشیدگی — همیشه دایره) */
.tte-page .tte-carousel__dots button.is-active::before,
.tte32-site .tte-carousel__dots button.is-active::before {
    background: var(--tte-gold, #b69b63);
    border-color: var(--tte-gold, #b69b63);
    box-shadow: 0 0 0 4px rgba(182, 155, 99, .18);
}

@media (max-width: 600px) {
    .tte-page .tte-carousel__dots button,
    .tte32-site .tte-carousel__dots button,
    .tte-page .tte-carousel__dots button.is-active,
    .tte32-site .tte-carousel__dots button.is-active {
        flex-basis: 20px !important;
        width: 20px !important;
        height: 20px !important;
    }
    .tte-page .tte-carousel__dots button::before,
    .tte32-site .tte-carousel__dots button::before {
        width: 9px;
        height: 9px;
    }
}

/* --------------------------------------------------------------------------
 * 2) یکسان‌سازی اندازهٔ دکمهٔ کارت محصول (موجود / ناموجود)
 * عنصر «ناموجود» دقیقاً هم‌اندازه، تمام‌عرض و وسط‌چینِ دکمهٔ «افزودن به سبد
 * خرید» (۴۲px) می‌شود؛ بدون جعبهٔ بلند و فضای خالی. هم‌ارتفاعی کل کارت‌ها
 * را خود گرید (stretch) و چسبیدن ناحیهٔ عملیات به کف کارت تأمین می‌کند.
 * -------------------------------------------------------------------------- */
.tte-page .tte-card.tte-product,
.tte32-site .tte-card.tte-product {
    height: 100%;
}

.tte-page .tte-product .tte-card__body,
.tte32-site .tte-product .tte-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.tte-page .tte-product .tte-product__actions,
.tte32-site .tte-product .tte-product__actions {
    margin-top: auto !important;
}

.tte-page .tte-product .tte-product__cart,
.tte32-site .tte-product .tte-product__cart {
    width: 100%;
}

/* دکمهٔ «ناموجود» دقیقاً هم‌اندازه، تمام‌عرض و وسط‌چینِ دکمهٔ «افزودن به سبد خرید» (۴۲px) */
.tte-page .tte-product .tte-btn--cart,
.tte32-site .tte-product .tte-btn--cart,
.tte-page .tte-product .tte-product__unavailable,
.tte32-site .tte-product .tte-product__unavailable {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 42px !important;
    height: auto !important;
    flex: 0 0 auto !important;          /* به اندازهٔ خود دکمه، بدون کشیده‌شدن و فضای خالی */
    box-sizing: border-box !important;
    padding: 8px 12px !important;
    border-radius: 9px !important;
    text-align: center !important;
    line-height: 1.5 !important;
}

/* آیکون و برچسب «ناموجود» کنار هم و دقیقاً وسط */
.tte-page .tte-product .tte-product__unavailable,
.tte32-site .tte-product .tte-product__unavailable {
    gap: 7px;
    border: 1px dashed #d6d9cf;
    background: #f7f7f3;
    color: #70796f;
}

.tte-page .tte-product .tte-product__unavailable .tte-icon,
.tte32-site .tte-product .tte-product__unavailable .tte-icon,
.tte-page .tte-product .tte-product__unavailable svg,
.tte32-site .tte-product .tte-product__unavailable svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
 * 3) حذف اسکرول‌بار افقی ریل‌ها/کاروسل‌ها (اسکرول و لمس و فلش‌ها کار می‌کنند)
 * -------------------------------------------------------------------------- */
.tte-page .tte-carousel__viewport,
.tte32-site .tte-carousel__viewport,
.tte-page .tte32-categories,
.tte32-site .tte32-categories,
.tte-page .tte32-detail-nav,
.tte32-site .tte32-detail-nav,
.tte-page .tte-catalog-teachers,
.tte32-site .tte-catalog-teachers,
.tte-page .tte-archive__type-tabs,
.tte32-site .tte-archive__type-tabs,
.tte-page .tte-product-tabs,
.tte32-site .tte-product-tabs,
.tte-page .tte-product-gallery,
.tte32-site .tte-product-gallery,
.tte-page .tte-home-media__grid,
.tte32-site .tte-home-media__grid,
.tte-page .tte-directory-feature__cards,
.tte32-site .tte-directory-feature__cards,
.tte-page .tte-directory-grid,
.tte32-site .tte-directory-grid,
.tte-page .tte-section.is-mobile-slider .tte-grid,
.tte32-site .tte-section.is-mobile-slider .tte-grid {
    scrollbar-width: none !important;       /* Firefox */
    -ms-overflow-style: none !important;    /* IE / Edge legacy */
}

.tte-page .tte-carousel__viewport::-webkit-scrollbar,
.tte32-site .tte-carousel__viewport::-webkit-scrollbar,
.tte-page .tte32-categories::-webkit-scrollbar,
.tte32-site .tte32-categories::-webkit-scrollbar,
.tte-page .tte32-detail-nav::-webkit-scrollbar,
.tte32-site .tte32-detail-nav::-webkit-scrollbar,
.tte-page .tte-catalog-teachers::-webkit-scrollbar,
.tte32-site .tte-catalog-teachers::-webkit-scrollbar,
.tte-page .tte-archive__type-tabs::-webkit-scrollbar,
.tte32-site .tte-archive__type-tabs::-webkit-scrollbar,
.tte-page .tte-product-tabs::-webkit-scrollbar,
.tte32-site .tte-product-tabs::-webkit-scrollbar,
.tte-page .tte-product-gallery::-webkit-scrollbar,
.tte32-site .tte-product-gallery::-webkit-scrollbar,
.tte-page .tte-home-media__grid::-webkit-scrollbar,
.tte32-site .tte-home-media__grid::-webkit-scrollbar,
.tte-page .tte-directory-feature__cards::-webkit-scrollbar,
.tte32-site .tte-directory-feature__cards::-webkit-scrollbar,
.tte-page .tte-directory-grid::-webkit-scrollbar,
.tte32-site .tte-directory-grid::-webkit-scrollbar,
.tte-page .tte-section.is-mobile-slider .tte-grid::-webkit-scrollbar,
.tte32-site .tte-section.is-mobile-slider .tte-grid::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

/* --------------------------------------------------------------------------
 * 4) حباب شمارندهٔ سبد خرید روی گوشهٔ آیکون — مخفی در سبد خالی
 * -------------------------------------------------------------------------- */
.tte-page .tte-cart-link,
.tte32-site .tte-cart-link {
    overflow: visible !important;
}

.tte-page .tte-cart-count,
.tte32-site .tte-cart-count,
.tte-page .tte-demo-cart-count,
.tte32-site .tte-demo-cart-count {
    position: absolute !important;
    top: -7px !important;
    inset-inline-end: -8px !important;
    min-width: 19px !important;
    height: 19px !important;
    padding: 0 5px !important;
    border-radius: 99px !important;
    display: grid !important;
    place-items: center !important;
    background: linear-gradient(180deg, #e3cd8d, #d3b96f) !important;
    color: #234034 !important;
    border: 2px solid #fff !important;
    box-shadow: 0 3px 9px rgba(17, 65, 51, .28) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    z-index: 5;
    transition: transform .18s ease;
}

.tte-page .tte-cart-count.is-empty,
.tte32-site .tte-cart-count.is-empty,
.tte-page .tte-demo-cart-count.is-empty,
.tte32-site .tte-demo-cart-count.is-empty,
.tte-page .tte-cart-count[hidden],
.tte32-site .tte-cart-count[hidden] {
    display: none !important;
}

/* اعداد دو و سه‌رقمی کمی پهن‌تر شوند ولی شکل حبابی بماند */
.tte-page .tte-cart-count:not(.is-empty),
.tte32-site .tte-cart-count:not(.is-empty) {
    letter-spacing: -.3px;
}

@media (max-width: 600px) {
    .tte-page .tte-cart-count,
    .tte32-site .tte-cart-count,
    .tte-page .tte-demo-cart-count,
    .tte32-site .tte-demo-cart-count {
        top: -6px !important;
        inset-inline-end: -7px !important;
        min-width: 17px !important;
        height: 17px !important;
        font-size: 9px !important;
    }
}

/* --------------------------------------------------------------------------
 * 5) شبکهٔ ایمنی راست‌چین/واکنش‌گرا — خنثی و بدون تغییر ظاهر عادی
 * جلوگیری از سرریزشدن رسانه‌ها و کلمات/لینک‌های بلند در موبایل
 * -------------------------------------------------------------------------- */
.tte-page img,
.tte32-site img,
.tte-page video,
.tte32-site video,
.tte-page canvas,
.tte32-site canvas,
.tte-page svg,
.tte32-site svg {
    max-width: 100%;
}

.tte-page h1, .tte-page h2, .tte-page h3, .tte-page h4,
.tte32-site h1, .tte32-site h2, .tte32-site h3, .tte32-site h4,
.tte-page p, .tte32-site p,
.tte-page a, .tte32-site a {
    overflow-wrap: break-word;
}

/* ورودی‌های عددی/تلفن در راست‌چین، LTR بمانند تا رقم‌ها و کد درست دیده شوند */
.tte-page input[type="tel"],
.tte-page input[type="number"],
.tte-page input[inputmode="numeric"],
.tte32-site input[type="tel"],
.tte32-site input[type="number"],
.tte32-site input[inputmode="numeric"] {
    direction: ltr;
    text-align: center;
}

/* اطمینان از چینش راست‌به‌چپ برای ردیف‌های دکمه/ابزار حتی در اسکرول افقی */
.tte-page .tte-carousel__track,
.tte32-site .tte-carousel__track,
.tte-page .tte32-categories,
.tte32-site .tte32-categories {
    direction: rtl;
}
