/* =====================================================================
   Tangsirkala Core — استایل‌های سایت
   رنگ‌های اصلی سایت به صورت متغیر؛ برای تغییر کلی رنگ همین‌جا را عوض کنید.
   ===================================================================== */
:root {
	--tkc-yellow: #FFD21F;      /* زرد برند */
	--tkc-yellow-2: #FFC400;    /* زرد پررنگ‌تر (هاور) */
	--tkc-ink: #141D26;         /* متن تیره */
	--tkc-muted: #6B7280;       /* متن کم‌رنگ */
	--tkc-line: #EEF0F3;        /* خطوط و حاشیه‌ها */
	--tkc-red: #E51542;         /* قرمز تخفیف */
}

/* آیکون‌های خطی کوچک (TKC_Helpers::icon) */
.tkc-i { display: block; flex: none; }

/* ===== دکمه‌های سفارشی اسلایدر (tk-nav-prev / tk-nav-next) ===== */
/* فلش‌های پیش‌فرض اسلایدرِ بخشی که دکمهٔ سفارشی دارد پنهان می‌شوند */
.tk-custom-nav .elementor-swiper-button { display: none !important; }
/* جای خالی فلش‌های پنهان‌شده به اسلایدر داده می‌شود */
.tk-custom-nav .elementor-arrows-position-outside .swiper,
.tk-custom-nav .elementor-arrows-position-outside .swiper-container { width: 100% !important; }
/* ابتدا/انتهای اسلایدر: دکمه کم‌رنگ و غیرقابل کلیک */
.tk-nav-prev.is-disabled, .tk-nav-next.is-disabled { opacity: .4; pointer-events: none; }
.tk-nav-prev .elementor-button, .tk-nav-next .elementor-button { transition: transform .2s ease, background-color .2s ease, opacity .2s ease; }

/* ===== پکیج: فهرست محصولات [tk_package show="items"] ===== */
.tkc-pack-items { display: grid; gap: 10px; margin: 0 !important; padding: 0 !important; list-style: none; }
.tkc-pack-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--tkc-line); border-radius: 16px; background: #fff; transition: border-color .2s ease; }
.tkc-pack-item:hover { border-color: var(--tkc-yellow); }
/* علامت + بین محصولات */
.tkc-pack-item + .tkc-pack-item::before { content: "+"; position: absolute; top: -15px; right: 30px; z-index: 1; display: grid; place-items: center; width: 20px; height: 20px; border: 3px solid #fff; border-radius: 50%; background: var(--tkc-yellow); color: var(--tkc-ink); font-size: 14px; font-weight: 900; line-height: 1; }
.tkc-pack-item.is-out { opacity: .55; }
.tkc-pack-item__thumb { flex: 0 0 60px; height: 60px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: #F6F7F9; }
.tkc-pack-item__thumb img { width: 52px !important; height: 52px !important; object-fit: contain; margin: 0 !important; mix-blend-mode: multiply; }
.tkc-pack-item__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tkc-pack-item__name { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; color: var(--tkc-ink) !important; font-size: 13.5px; font-weight: 700; line-height: 1.8; text-decoration: none !important; }
.tkc-pack-item__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 13px; white-space: nowrap; }
.tkc-pack-item__price del { color: #9CA3AF; font-size: 12px; }
.tkc-pack-item__price strong { color: var(--tkc-ink); font-weight: 800; }
.tkc-pack-item__out { color: #B42318; font-weight: 700; }

/* ===== پکیج: جمع قیمت [tk_package show="total"] ===== */
.tkc-pack-total { display: flex; flex-direction: column; gap: 2px; }
.tkc-pack-total__label { color: var(--tkc-muted); font-size: 12.5px; }
.tkc-pack-total__sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; white-space: nowrap; }
.tkc-pack-total__sum del { color: #9CA3AF; font-size: 13px; }
.tkc-pack-total__sum strong { color: var(--tkc-ink); font-size: 22px; font-weight: 900; }
.tkc-pack-total.is-out { color: #B42318; font-weight: 700; }

/* ===== پکیج: کارت درصد تخفیف روی تصویر [tk_package show="badge"] ===== */
.tkc-pack-off { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 96px; padding: 12px 16px 10px; border-radius: 20px; background: #fff; color: var(--tkc-ink); box-shadow: 0 14px 30px rgba(20, 29, 38, .14); text-align: center; line-height: 1; }
.tkc-pack-off__num { color: var(--tkc-red); font-size: 34px; font-weight: 900; }
.tkc-pack-off__num small { font-size: 20px; font-weight: 900; margin-inline-start: 2px; }
.tkc-pack-off__txt { margin-top: 6px; font-size: 12px; font-weight: 800; }

/* ===== پکیج: دکمهٔ افزودن همه [tk_package show="button"] ===== */
.tkc-pack-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 0; margin: 0; padding: 13px 22px; border: 0; border-radius: 14px; background: var(--tkc-yellow); color: var(--tkc-ink); font: inherit; font-size: 14.5px; font-weight: 900; line-height: 1.4; box-shadow: none; cursor: pointer; transition: background-color .2s ease, transform .2s ease; }
.tkc-pack-btn:hover { background: var(--tkc-yellow-2); color: var(--tkc-ink); transform: translateY(-1px); }
.tkc-pack-btn.is-loading { opacity: .7; cursor: progress; }
.tkc-pack-btn.is-done { background: var(--tkc-ink); color: #fff; }
.tkc-pack-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ===== شعبه‌ها: دکمه و تلفن [tk_branch_button] [tk_branch field="phone" link="yes"] ===== */
.tkc-branch-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: var(--tkc-yellow); color: var(--tkc-ink) !important; font-size: 13px; font-weight: 800; line-height: 1.6; text-decoration: none !important; transition: background-color .2s ease; }
.tkc-branch-btn:hover { background: var(--tkc-yellow-2); }
.tkc-branch-btn--call { background: var(--tkc-ink); color: #fff !important; }
.tkc-branch-tel { color: inherit !important; text-decoration: none !important; }

/* ===== شعبه‌ها: کارت‌های آماده [tk_branches] ===== */
.tkc-branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; direction: rtl; text-align: right; }
.tkc-branch-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--tkc-line); border-radius: 20px; background: #fff; }
.tkc-branch-card__name { margin: 0 0 4px; color: var(--tkc-ink); font-size: 17px; font-weight: 800; line-height: 1.5; }
.tkc-branch-card__row { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: #4B5563; font-size: 13.5px; line-height: 1.9; }
.tkc-branch-card__row svg { margin-top: 5px; color: #F59E0B; }
.tkc-branch-card .tkc-branch-btn { align-self: flex-start; margin-top: auto; }

@media (max-width: 767px) {
	.tkc-pack-item__thumb { flex-basis: 52px; height: 52px; }
	.tkc-pack-item__thumb img { width: 44px !important; height: 44px !important; }
	.tkc-pack-item__name { font-size: 12.5px; }
	.tkc-pack-total__sum strong { font-size: 19px; }
	.tkc-pack-btn { width: 100%; }
	.tkc-pack-off { min-width: 78px; padding: 9px 12px 8px; border-radius: 16px; }
	.tkc-pack-off__num { font-size: 26px; }
	.tkc-pack-off__num small { font-size: 16px; }
	.tkc-pack-off__txt { font-size: 10.5px; }
}

/* ===== اسلایدر اصلی (ابزارک tk-hero) ===== */
.tk-hero {
	--tk-hero-offset: 20px;   /* فاصلهٔ دکمه‌ها و نقطه‌ها از لبه (از تنظیمات ابزارک) */
	--tk-hero-ui: #FFFFFF;    /* زمینهٔ دکمه‌ها و نقطه‌ها */
	--tk-hero-fg: #141D26;    /* رنگ فلش‌ها */
	--tk-hero-dot: #FFC400;   /* رنگ نقطهٔ فعال */
	position: relative;
	height: 420px;            /* پیش‌فرض؛ ابزارک برای هر دستگاه مقدار خودش را می‌گذارد */
	overflow: hidden;
	border-radius: 24px;
	background: #EEF0F3;
	isolation: isolate;
	outline: none;
}
.tk-hero:focus-visible { box-shadow: 0 0 0 3px var(--tk-hero-dot); }
/* نوار اسلایدها کنار هم (راست‌به‌چپ) */
.tk-hero__track { display: flex; height: 100%; direction: rtl; transition: transform .65s cubic-bezier(.22, .61, .36, 1); touch-action: pan-y; will-change: transform; }
.tk-hero__slide { position: relative; flex: 0 0 100%; height: 100%; }
.tk-hero__slide > a, .tk-hero__slide picture { display: block; height: 100%; }
/* !important: قالب و المنتور برای img ارتفاع auto می‌گذارند که زیر تصویر فاصله می‌اندازد */
.tk-hero__slide img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; user-select: none; -webkit-user-drag: none; }
/* دکمه‌ها: پایین سمت راست */
.tk-hero__nav { position: absolute; right: var(--tk-hero-offset); bottom: var(--tk-hero-offset); z-index: 2; display: flex; gap: 8px; }
.tk-hero .tk-hero__btn { display: grid; place-items: center; width: 44px; height: 44px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--tk-hero-ui); color: var(--tk-hero-fg); box-shadow: 0 8px 20px rgba(20, 29, 38, .16); cursor: pointer; transition: transform .2s ease; }
.tk-hero .tk-hero__btn:hover { transform: translateY(-2px); }
.tk-hero .tk-hero__btn:disabled { opacity: .45; cursor: default; transform: none; }
/* نقطه‌ها: پایین سمت چپ روی زمینهٔ سفید */
.tk-hero__dots { position: absolute; left: var(--tk-hero-offset); bottom: var(--tk-hero-offset); z-index: 2; display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; background: var(--tk-hero-ui); box-shadow: 0 8px 20px rgba(20, 29, 38, .16); }
.tk-hero .tk-hero__dot { width: 8px; height: 8px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 999px; background: #C9CDD3; cursor: pointer; transition: width .3s ease, background-color .3s ease; box-shadow: none; }
.tk-hero .tk-hero__dot[aria-selected="true"] { width: 24px; background: var(--tk-hero-dot); }

/* ===== پنجرهٔ جستجو ===== */
/* قفل اسکرول صفحه وقتی پنجره باز است */
.tk-search-open, .tk-search-open body { overflow: hidden; }
.tk-search-pop[hidden] { display: none !important; }
.tk-search-pop { position: fixed; inset: 0; z-index: 1000000; display: flex; justify-content: center; align-items: flex-start; padding: 8vh 16px 16px; direction: rtl; }
.tk-search-pop__backdrop { position: absolute; inset: 0; background: rgba(20, 29, 38, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.tk-search-pop__panel { position: relative; display: flex; flex-direction: column; width: min(640px, 100%); max-height: 84vh; overflow: hidden; border-radius: 22px; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); animation: tk-search-in .2s ease; }
@keyframes tk-search-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.tk-search-pop__form { position: relative; display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px; border-bottom: 1px solid var(--tkc-line); }
.tk-search-pop__icon { position: absolute; right: 26px; color: #9CA3AF; pointer-events: none; }
.tk-search-pop .tk-search-pop__input { flex: 1; height: 50px; margin: 0; padding: 0 44px 0 14px; border: 2px solid var(--tkc-line); border-radius: 14px; background: #F9FAFB; color: var(--tkc-ink); font: inherit; font-size: 15px; outline: none; box-shadow: none; }
.tk-search-pop .tk-search-pop__input:focus { border-color: var(--tkc-yellow); background: #fff; }
.tk-search-pop .tk-search-pop__close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 12px; background: #F3F4F6; color: var(--tkc-ink); cursor: pointer; box-shadow: none; }
.tk-search-pop__body { overflow: auto; padding: 8px 12px 14px; }
.tk-search-pop__hint { margin: 14px 4px; color: var(--tkc-muted); font-size: 13px; text-align: center; }
.tk-search-pop__hint[hidden] { display: none; }
.tk-search-pop__list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tk-search-pop__item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; color: var(--tkc-ink) !important; text-decoration: none !important; }
.tk-search-pop__item:hover, .tk-search-pop__item:focus-visible { background: #FFF8DC; }
.tk-search-pop__thumb { flex: 0 0 52px; height: 52px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: #F4F5F7; }
.tk-search-pop__thumb img { width: 46px; height: 46px; object-fit: contain; }
.tk-search-pop__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tk-search-pop__name { overflow: hidden; font-size: 13.5px; font-weight: 700; line-height: 1.7; white-space: nowrap; text-overflow: ellipsis; }
.tk-search-pop__price { color: var(--tkc-muted); font-size: 12.5px; font-weight: 700; }
.tk-search-pop__all { display: block; margin: 10px 4px 0; padding: 12px; border-radius: 14px; background: var(--tkc-yellow); color: var(--tkc-ink) !important; font-weight: 800; text-align: center; text-decoration: none !important; }
.tk-search-pop__all[hidden] { display: none; }
/* المانی که پنجره را باز می‌کند: نشانگر دست */
.tkc-search-open { cursor: pointer; }

/* ===== موبایل: اسلایدر و پنجرهٔ جستجو ===== */
@media (max-width: 767px) {
	.tk-hero { height: 180px; border-radius: 16px; }
	.tk-hero .tk-hero__btn { width: 32px; height: 32px; }
	.tk-hero .tk-hero__btn .tkc-i { width: 16px; height: 16px; }
	.tk-hero__nav { gap: 6px; }
	.tk-hero__dots { gap: 4px; padding: 7px 10px; }
	.tk-hero .tk-hero__dot { width: 6px; height: 6px; }
	.tk-hero .tk-hero__dot[aria-selected="true"] { width: 16px; }
	/* پنجرهٔ جستجو تمام‌صفحه از بالا (مثل اپلیکیشن) */
	.tk-search-pop { padding: 0; }
	.tk-search-pop__panel { width: 100%; max-height: 100dvh; border-radius: 0 0 22px 22px; }
	.tk-search-pop .tk-search-pop__input { height: 46px; font-size: 16px; } /* ۱۶px: آیفون روی فیلد زوم نمی‌کند */
}
@media (prefers-reduced-motion: reduce) {
	.tk-hero__track { transition: none !important; }
	.tk-search-pop__panel { animation: none; }
}

/* ===== منوی موبایل و تبلت (پاپ‌آپ #tkc-menu) ===== */
.tkc-menu[hidden] { display: none !important; }
.tkc-menu { position: fixed; inset: 0; z-index: 1000000; direction: rtl; }
/* پس‌زمینهٔ تیره */
.tkc-menu__backdrop { position: absolute; inset: 0; background: rgba(20, 29, 38, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
/* پنل سفید از سمت راست */
.tkc-menu__panel { position: absolute; top: 0; bottom: 0; right: 0; width: min(420px, calc(100% - 28px)); display: flex; flex-direction: column; background: #FFFFFF; border-radius: 0 0 0 26px; box-shadow: -20px 0 50px rgba(20, 29, 38, .18); animation: tkc-menu-in .25s ease; }
@keyframes tkc-menu-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.tkc-menu__top { display: flex; align-items: center; justify-content: space-between; padding: 16px; }
.tkc-menu__logo { color: var(--tkc-ink) !important; font-size: 18px; font-weight: 900; text-decoration: none !important; }
.tkc-menu .tkc-menu__close { display: grid; place-items: center; width: 44px; height: 44px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 14px; background: #F6F7F9; color: var(--tkc-ink); box-shadow: none; cursor: pointer; }
/* میان‌بر جستجو */
.tkc-menu .tkc-menu__search { display: flex; align-items: center; gap: 8px; margin: 0 16px; height: 46px; padding: 0 14px; border: 1px solid var(--tkc-line); border-radius: 14px; background: #F6F7F9; color: var(--tkc-muted); font: inherit; font-size: 13px; text-align: right; box-shadow: none; cursor: pointer; }
/* زبانه‌ها */
.tkc-menu__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 14px 16px 6px; padding: 4px; border-radius: 14px; background: #F6F7F9; }
.tkc-menu__tabs button { height: 40px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 11px; background: none; color: var(--tkc-muted); font: inherit; font-size: 13px; font-weight: 700; box-shadow: none; cursor: pointer; }
.tkc-menu__tabs button[aria-selected="true"] { background: #FFFFFF; color: var(--tkc-ink); font-weight: 800; box-shadow: 0 2px 8px rgba(20, 29, 38, .08); }
.tkc-menu__body { flex: 1 1 auto; overflow: auto; padding: 8px 16px; overscroll-behavior: contain; }
.tkc-menu__pane { display: flex; flex-direction: column; gap: 8px; }
.tkc-menu__pane[hidden] { display: none; }
/* هر دستهٔ اصلی */
.tkc-menu__cat { border: 1px solid var(--tkc-line); border-radius: 18px; transition: border-color .2s ease, background-color .2s ease; }
.tkc-menu__cat.is-open { border-color: var(--tkc-yellow); background: #FFFBEA; }
.tkc-menu .tkc-menu__cat-head { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 0; margin: 0; padding: 12px; border: 0; background: none; color: var(--tkc-ink); font: inherit; text-align: right; box-shadow: none; cursor: pointer; }
.tkc-menu__cat-head b { flex: 1 1 auto; font-size: 14px; }
.tkc-menu__cat-head > .tkc-i { transition: transform .2s ease; }
.tkc-menu__cat.is-open .tkc-menu__cat-head > .tkc-i { transform: rotate(180deg); }
.tkc-menu__cat-ico { flex: 0 0 40px; height: 40px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: var(--tkc-yellow); }
.tkc-menu__cat-ico img { width: 34px !important; height: 34px !important; object-fit: contain; mix-blend-mode: multiply; }
.tkc-menu__cat-body { display: none; padding: 0 12px 12px; }
.tkc-menu__cat.is-open .tkc-menu__cat-body { display: block; }
/* زیردسته‌ها: دو ستون با تصویر کوچک */
.tkc-menu__subs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tkc-menu__subs a { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; background: #FFFFFF; color: var(--tkc-ink) !important; font-size: 12px; font-weight: 700; line-height: 1.6; text-decoration: none !important; }
.tkc-menu__sub-img { flex: 0 0 32px; height: 32px; display: grid; place-items: center; overflow: hidden; border-radius: 9px; background: #F6F7F9; }
.tkc-menu__sub-img img { width: 30px !important; height: 30px !important; object-fit: contain; mix-blend-mode: multiply; }
.tkc-menu__all { display: block; margin-top: 10px; color: #8A5A00 !important; font-size: 12px; font-weight: 800; text-decoration: none !important; }
/* منوی سایت (فهرست وردپرس) */
.tkc-menu__links, .tkc-menu__links ul { margin: 0; padding: 0; list-style: none; }
.tkc-menu__links > li > a { display: flex; align-items: center; min-height: 50px; padding: 0 14px; border: 1px solid var(--tkc-line); border-radius: 16px; margin-bottom: 8px; color: var(--tkc-ink) !important; font-size: 14px; font-weight: 700; text-decoration: none !important; }
.tkc-menu__links .sub-menu { padding: 0 14px 8px; }
.tkc-menu__links .sub-menu a { display: block; padding: 8px 0; color: var(--tkc-muted) !important; font-size: 13px; text-decoration: none !important; }
/* پایین منو: تماس و شعب */
.tkc-menu__foot { display: flex; gap: 10px; padding: 14px 16px 20px; border-top: 1px solid var(--tkc-line); }
.tkc-menu__call { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 14px; background: var(--tkc-ink); color: #FFFFFF !important; font-weight: 800; font-size: 13px; text-decoration: none !important; }
.tkc-menu__call .tkc-i { color: var(--tkc-yellow); }
.tkc-menu__store { display: grid; place-items: center; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--tkc-yellow); color: var(--tkc-ink) !important; font-weight: 800; font-size: 13px; text-decoration: none !important; }
@media (prefers-reduced-motion: reduce) { .tkc-menu__panel { animation: none; } }
