/* ==========================================================================
   Taamin Teb Evolution — core.css
   Tokens, base, header, mega menu, drawer, footer, mobile bars, shared UI.
   Loaded on every page. Component sheets: cards, home, shop, product,
   checkout, blog.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
	--tt-primary: #2464ec;
	--tt-primary-strong: #1a4fc4;
	--tt-primary-soft: #eaf1fe;
	--tt-primary-line: #c9d9fb;
	--tt-on-primary: #ffffff;
	--tt-text: #1c1c1c;
	--tt-muted: #5d6877;
	--tt-bg: #f4f8fc;
	--tt-card: #fcfcfc;
	--tt-surface: #ffffff;
	--tt-line: #e2e8f0;
	--tt-success: #0f7f58;
	--tt-success-soft: #e6f5ef;
	--tt-danger: #c62f3b;
	--tt-danger-soft: #fdecee;
	--tt-warn: #9a6a12;
	--tt-focus: #2464ec;
	--tt-scrim: rgba(15, 23, 36, .48);

	--tt-r-sm: 10px;
	--tt-r: 14px;
	--tt-r-lg: 18px;
	--tt-shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
	--tt-shadow: 0 6px 20px rgba(16, 34, 64, .07);

	--tt-font: "TaaminYekan", Tahoma, "Segoe UI", system-ui, sans-serif;
	--tt-fs-xs: .75rem;
	--tt-fs-sm: .8125rem;
	--tt-fs: .9375rem;
	--tt-fs-md: 1.0625rem;
	--tt-fs-lg: 1.25rem;
	--tt-fs-xl: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);

	--tt-container: 1240px;
	--tt-gutter: 24px;
	--tt-gap: 16px;
	--tt-section: clamp(32px, 2.5vw + 20px, 56px);
	--tt-mobilenav-h: 60px;
	--tt-phonebar-h: 42px;
	--tt-ease: cubic-bezier(.23, 1, .32, 1);
	color-scheme: light;
}

:root[data-tt-theme="dark"] {
	--tt-primary: #5a8cff;
	--tt-primary-strong: #86aaff;
	--tt-primary-soft: #1a2945;
	--tt-primary-line: #2c4573;
	--tt-on-primary: #0b1220;
	--tt-text: #e7edf5;
	--tt-muted: #9fadbf;
	--tt-bg: #0e141d;
	--tt-card: #17202c;
	--tt-surface: #131b26;
	--tt-line: #263243;
	--tt-success: #4cc996;
	--tt-success-soft: #13302a;
	--tt-danger: #ff7a84;
	--tt-danger-soft: #3a1c22;
	--tt-warn: #e8b55a;
	--tt-focus: #86aaff;
	--tt-scrim: rgba(0, 0, 0, .62);
	--tt-shadow-sm: none;
	--tt-shadow: 0 6px 20px rgba(0, 0, 0, .35);
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--tt-bg);
	color: var(--tt-text);
	font-family: var(--tt-font);
	font-size: var(--tt-fs);
	line-height: 1.85;
	text-align: start;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img, video { max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--tt-primary); }
button, input, select, textarea { font: inherit; color: inherit; }
/* Persian digits everywhere (display only; see font.css). Text, input values,
   URLs and data keep their real digits, so forms, search and SEO are unaffected. */
body.tt-fa-digits { --tt-font: "TaaminYekanDigits", "TaaminYekan", Tahoma, "Segoe UI", system-ui, sans-serif; }
body.tt-fa-digits code, body.tt-fa-digits pre, body.tt-fa-digits kbd, body.tt-fa-digits samp { font-family: ui-monospace, Consolas, monospace; }
body.tt-fa-digits .tt-latin-digits { font-family: "TaaminYekan", Tahoma, sans-serif; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.5; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
bdi { unicode-bidi: isolate; direction: ltr; }
:focus-visible { outline: 2px solid var(--tt-focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--tt-primary); color: #fff; }
[hidden] { display: none !important; }
.tt-icon { display: inline-block; vertical-align: middle; }
.tt-flip { transform: scaleX(-1); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.tt-skip {
	position: absolute; inset-inline-start: 12px; top: -60px; z-index: 1000;
	background: var(--tt-surface); color: var(--tt-text); padding: 10px 16px; border-radius: var(--tt-r-sm);
	box-shadow: var(--tt-shadow);
}
.tt-skip:focus { top: 12px; }

.tt-container {
	width: min(var(--tt-container), 100% - 2 * var(--tt-gutter));
	margin-inline: auto;
}

/* ---------- Buttons ---------- */
.tt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 8px 18px; border-radius: var(--tt-r-sm);
	border: 1px solid transparent; font-weight: 700; font-size: var(--tt-fs-sm);
	line-height: 1.4; text-align: center; white-space: nowrap;
	transition: background-color .15s var(--tt-ease), border-color .15s, color .15s;
}
.tt-btn--primary { background: var(--tt-primary); color: var(--tt-on-primary); }
.tt-btn--primary:hover { background: var(--tt-primary-strong); color: var(--tt-on-primary); }
.tt-btn--ghost { background: var(--tt-surface); border-color: var(--tt-line); color: var(--tt-text); }
.tt-btn--ghost:hover { border-color: var(--tt-primary); color: var(--tt-primary); }
.tt-btn--block { width: 100%; }

.tt-icon-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-width: 44px; height: 44px; padding: 0 10px; border-radius: var(--tt-r-sm);
	border: 1px solid var(--tt-line); background: var(--tt-surface); color: var(--tt-text);
	position: relative;
}
.tt-icon-btn:hover { border-color: var(--tt-primary); color: var(--tt-primary); }

.tt-kicker { display: inline-block; font-size: var(--tt-fs-xs); font-weight: 700; color: var(--tt-primary); }

/* ---------- Forms (shared) ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"],
input[type="search"], input[type="url"], select, textarea {
	background: var(--tt-surface); color: var(--tt-text);
	border: 1px solid var(--tt-line); border-radius: var(--tt-r-sm);
	min-height: 44px; padding: 8px 12px; max-width: 100%;
}
textarea { min-height: 110px; }
input:focus, select:focus, textarea:focus { border-color: var(--tt-primary); outline: none; box-shadow: 0 0 0 3px var(--tt-primary-soft); }

/* ---------- Header ---------- */
.tt-header { background: var(--tt-surface); border-bottom: 1px solid var(--tt-line); position: relative; z-index: 40; }
.tt-topbar { background: var(--tt-primary-soft); color: var(--tt-muted); font-size: var(--tt-fs-xs); }
.tt-topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 6px; }

.tt-header__main {
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-areas: "logo search tools";
	align-items: center; column-gap: 32px; min-height: 88px;
}
.tt-header__burger { display: none; grid-area: burger; }
.tt-logo { grid-area: logo; display: inline-flex; align-items: center; gap: 10px; color: var(--tt-text); }
.tt-logo:hover { color: var(--tt-text); }
.tt-logo__img { display: block; max-height: 60px; width: auto; }
.tt-logo__mark {
	display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--tt-r);
	background: var(--tt-primary); color: #fff;
}
.tt-logo__text { display: flex; flex-direction: column; font-size: 1.375rem; font-weight: 900; line-height: 1.35; }
.tt-logo__text small { font-size: var(--tt-fs-xs); font-weight: 400; color: var(--tt-muted); }

.tt-header__search { grid-area: search; max-width: 640px; width: 100%; justify-self: center; }
.tt-header__tools { grid-area: tools; display: flex; align-items: center; gap: 8px; }
.tt-header__account-label { font-size: var(--tt-fs-sm); font-weight: 600; }
.tt-cart-count {
	position: absolute; top: -6px; inset-inline-end: -6px; min-width: 20px; height: 20px; padding: 0 5px;
	display: grid; place-items: center; border-radius: 10px;
	background: var(--tt-primary); color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
}

/* Search + live results */
.tt-search { position: relative; display: flex; align-items: center; }
.tt-search .tt-search__input {
	width: 100%; height: 48px; min-height: 48px; padding-inline: 16px 52px;
	background: var(--tt-bg); border-radius: var(--tt-r);
}
.tt-search__input::-webkit-search-cancel-button { display: none; }
.tt-search__btn {
	position: absolute; inset-inline-end: 4px; top: 4px; width: 40px; height: 40px;
	display: grid; place-items: center; border: 0; border-radius: var(--tt-r-sm);
	background: var(--tt-primary); color: #fff;
}
.tt-search__results {
	position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 60;
	background: var(--tt-surface); border: 1px solid var(--tt-line); border-radius: var(--tt-r);
	box-shadow: var(--tt-shadow); padding: 6px; max-height: min(70vh, 460px); overflow: auto;
}
.tt-search__item {
	display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: center;
	padding: 6px; border-radius: var(--tt-r-sm); color: var(--tt-text);
}
.tt-search__item[aria-selected="true"], .tt-search__item:hover { background: var(--tt-primary-soft); color: var(--tt-text); }
.tt-search__thumb { width: 52px; height: 52px; border-radius: 8px; background: #fff; object-fit: contain; }
.tt-search__name { font-size: var(--tt-fs-sm); font-weight: 600; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tt-search__price { font-size: var(--tt-fs-xs); color: var(--tt-primary); font-weight: 700; }
.tt-search__note { padding: 10px; font-size: var(--tt-fs-sm); color: var(--tt-muted); }
.tt-search__all { display: block; text-align: center; padding: 10px; font-size: var(--tt-fs-sm); font-weight: 700; color: var(--tt-primary); border-top: 1px solid var(--tt-line); margin-top: 4px; }

/* Nav row */
.tt-nav { border-top: 1px solid var(--tt-line); position: relative; }
.tt-nav__inner { display: flex; align-items: stretch; gap: 20px; min-height: 56px; }
.tt-nav__inner > * { display: flex; align-items: center; }
.tt-primary { flex: 1; min-width: 0; align-self: stretch; display: flex; }
/* Items stretch to the full row height so the pointer never leaves the item on its way into the panel. */
.tt-menu { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0 6px; list-style: none; margin: 0; padding: 0; min-height: 56px; }
.tt-menu__item { display: flex; align-items: center; }
.tt-menu__link { display: block; padding: 14px 8px; font-size: var(--tt-fs-sm); font-weight: 700; }
.tt-menu__link[aria-current="page"] { color: var(--tt-primary); }
.tt-menu__toggle {
	display: grid; place-items: center; width: 24px; height: 24px; margin-inline-start: -4px;
	border: 0; background: transparent; color: var(--tt-muted); border-radius: 6px;
}
.tt-menu__toggle .tt-icon { transition: transform .15s; }
.tt-menu__item.is-open .tt-menu__toggle .tt-icon { transform: rotate(180deg); }
.tt-nav__phone {
	display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
	font-size: var(--tt-fs-sm); font-weight: 700; color: var(--tt-primary);
}
.tt-catmenu__btn { min-height: 40px; }
.tt-catmenu__btn[aria-expanded="true"] { background: var(--tt-primary-strong); }

/* Mega panels (primary menu + category panel), full width under the nav row */
.tt-mega {
	position: absolute; inset-inline: 0; top: 100%; z-index: 50;
	background: var(--tt-surface); border-top: 1px solid var(--tt-line); border-bottom: 1px solid var(--tt-line);
	box-shadow: 0 16px 30px rgba(16, 34, 64, .08);
	visibility: hidden; opacity: 0; transform: translateY(-4px);
	transition: opacity .14s var(--tt-ease), transform .14s var(--tt-ease), visibility 0s linear .14s;
}
.tt-menu__item.is-open > .tt-mega,
.tt-catmenu.is-open > .tt-mega {
	visibility: visible; opacity: 1; transform: none;
	transition: opacity .14s var(--tt-ease), transform .14s var(--tt-ease), visibility 0s;
}
@media (hover: hover) and (min-width: 901px) {
	.tt-menu__item:hover > .tt-mega,
	.tt-catmenu:hover > .tt-mega {
		visibility: visible; opacity: 1; transform: none;
		transition-delay: .08s, .08s, 0s;
	}
}
.tt-mega__inner { padding-block: 24px 28px; max-height: calc(100vh - 220px); overflow: auto; overscroll-behavior: contain; }
/* Masonry columns: short groups don't leave tall empty rows (no inner scrollbar on normal menus). */
.tt-mega__cols { list-style: none; margin: 0; padding: 0; columns: 5 180px; column-gap: 32px; }
.tt-mega__col { min-width: 0; break-inside: avoid; display: inline-block; width: 100%; margin-bottom: 22px; }

/* Category button panel: see «Category panel v0.9.18» at the end of this file. */
.tt-mega__heading {
	display: block; font-weight: 800; font-size: var(--tt-fs-sm); padding-bottom: 8px; margin-bottom: 6px;
	border-bottom: 1px solid var(--tt-line);
}
.tt-mega__list { list-style: none; margin: 0; padding: 0; }
.tt-mega__link { display: block; padding: 5px 0; font-size: var(--tt-fs-sm); color: var(--tt-muted); }
.tt-mega__link:hover { color: var(--tt-primary); }

/* ---------- Drawer (native dialog, opens from the right) ---------- */
.tt-drawer {
	position: fixed; inset-block: 0; inset-inline-start: 0; inset-inline-end: auto;
	margin: 0; width: min(360px, 88vw); height: 100dvh; max-height: none; max-width: none;
	padding: 0; border: 0; background: var(--tt-surface); color: var(--tt-text);
	box-shadow: -12px 0 32px rgba(0, 0, 0, .18);
	display: none; flex-direction: column; overscroll-behavior: contain;
}
.tt-drawer[open] { display: flex; animation: tt-drawer-in .22s var(--tt-ease); }
.tt-drawer::backdrop { background: var(--tt-scrim); }
@keyframes tt-drawer-in { from { transform: translateX(100%); } to { transform: none; } }
[dir="ltr"] .tt-drawer[open] { animation-name: tt-drawer-in-ltr; }
@keyframes tt-drawer-in-ltr { from { transform: translateX(-100%); } to { transform: none; } }
.tt-drawer__head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 12px 16px; border-bottom: 1px solid var(--tt-line); min-height: 68px;
}
.tt-drawer__nav { flex: 1; overflow-y: auto; padding: 8px 16px 16px; }
.tt-drawer__label { font-size: var(--tt-fs-xs); color: var(--tt-muted); font-weight: 700; margin: 20px 0 4px; }
.tt-drawer__menu, .tt-drawer__sub { list-style: none; margin: 0; padding: 0; }
.tt-drawer__sub { padding-inline-start: 12px; padding-bottom: 6px; }
.tt-drawer__item { border-bottom: 1px solid var(--tt-line); }
.tt-drawer__sub .tt-drawer__item { border-bottom: 0; }
.tt-drawer__link, .tt-drawer__summary, .tt-drawer__all a {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	min-height: 48px; padding: 6px 4px; font-weight: 600; font-size: var(--tt-fs-sm);
}
.tt-drawer__sub .tt-drawer__link { min-height: 42px; font-weight: 400; color: var(--tt-muted); }
.tt-drawer__all a { color: var(--tt-primary); min-height: 42px; }
.tt-drawer__summary { cursor: pointer; list-style: none; }
.tt-drawer__summary::-webkit-details-marker { display: none; }
.tt-drawer__summary .tt-icon { transition: transform .15s; color: var(--tt-muted); }
.tt-drawer__group[open] > .tt-drawer__summary .tt-icon { transform: rotate(180deg); }
.tt-drawer__group[open] > .tt-drawer__summary { color: var(--tt-primary); }
.tt-drawer__foot { display: grid; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--tt-line); }
html.tt-drawer-lock { overflow: hidden; }
/* ---------- Drawer: menu/categories switch + two-pane categories ---------- */
.tt-drawer__switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 16px 0; padding: 4px; background: var(--tt-bg); border-radius: var(--tt-r-md, 12px); }
.tt-drawer__switch-btn { min-height: 40px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-weight: 700; color: var(--tt-muted); cursor: pointer; }
.tt-drawer__switch-btn[aria-selected="true"] { background: var(--tt-surface); color: var(--tt-primary); box-shadow: 0 1px 4px rgba(16, 34, 64, .08); }
.tt-drawer__cats:not([hidden]) { flex: 1; min-height: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr); margin-top: 8px; border-top: 1px solid var(--tt-line); }
.tt-drawer__tabs { overflow-y: auto; background: var(--tt-bg); border-inline-end: 1px solid var(--tt-line); }
.tt-drawer__tab {
	display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; min-height: 76px; padding: 10px 6px;
	border: 0; border-bottom: 1px solid var(--tt-line); background: transparent; font: inherit; font-size: var(--tt-fs-xs); font-weight: 600;
	color: var(--tt-text); text-align: center; cursor: pointer; line-height: 1.6; overflow-wrap: break-word;
}
.tt-drawer__tab[aria-selected="true"] { background: var(--tt-surface); color: var(--tt-primary); box-shadow: inset -3px 0 0 var(--tt-primary); }
[dir="ltr"] .tt-drawer__tab[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--tt-primary); }
.tt-drawer__tab-img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.tt-drawer__panel { overflow-y: auto; padding: 8px 14px 16px; }
.tt-drawer__panel .tt-drawer__sub { padding: 0; }
.tt-drawer__panel .tt-drawer__link { min-height: 44px; border-bottom: 1px solid var(--tt-line); font-weight: 400; }
a.tt-drawer__all { display: flex; align-items: center; justify-content: space-between; min-height: 46px; color: var(--tt-primary); font-weight: 700; border-bottom: 1px solid var(--tt-line); }
.tt-section__actions { display: inline-flex; align-items: center; }


/* ---------- Breadcrumb / headings ---------- */
.tt-breadcrumb { font-size: var(--tt-fs-xs); color: var(--tt-muted); padding-block: 16px 4px; }
.tt-breadcrumb a { color: var(--tt-muted); }
.tt-breadcrumb a:hover { color: var(--tt-primary); }
.tt-breadcrumb__sep { margin-inline: 6px; opacity: .6; }
.tt-archive-head { padding-block: 8px 20px; }
.tt-archive-head__title, .tt-page__title { font-size: var(--tt-fs-xl); margin: 0 0 6px; }
.tt-archive-head__desc, .tt-archive-head .term-description { color: var(--tt-muted); max-width: 72ch; }

.tt-section { margin-top: var(--tt-section); }
.tt-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.tt-section__title { font-size: var(--tt-fs-lg); margin: 0; }
.tt-section__more { display: inline-flex; align-items: center; gap: 6px; font-size: var(--tt-fs-sm); font-weight: 700; color: var(--tt-primary); white-space: nowrap; }

/* ---------- Pages / prose ---------- */
.tt-page, .tt-flow { padding-bottom: var(--tt-section); }
.tt-page__article { background: var(--tt-card); border: 1px solid var(--tt-line); border-radius: var(--tt-r-lg); padding: clamp(20px, 3vw, 40px); }
.tt-prose { max-width: var(--tt-prose-w, 78ch); }
.tt-prose > * + * { margin-top: 1em; }
.tt-prose h2 { font-size: var(--tt-fs-lg); margin-top: 1.6em; }
.tt-prose h3 { font-size: var(--tt-fs-md); margin-top: 1.4em; }
.tt-prose a { color: var(--tt-primary); text-decoration: underline; text-underline-offset: 3px; }
.tt-prose img { border-radius: var(--tt-r); }
.tt-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.tt-prose th, .tt-prose td { border: 1px solid var(--tt-line); padding: 8px 12px; text-align: start; }
.tt-prose blockquote { margin-inline: 0; padding: 12px 16px; border-inline-start: 4px solid var(--tt-primary); background: var(--tt-primary-soft); border-radius: var(--tt-r-sm); }
.tt-builder { width: 100%; }
.tt-empty { padding: 32px; text-align: center; color: var(--tt-muted); background: var(--tt-card); border: 1px dashed var(--tt-line); border-radius: var(--tt-r-lg); }

/* ---------- Post card (home magazine + blog) ---------- */
.tt-post-grid { display: grid; gap: var(--tt-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.tt-post-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tt-post-card { display: flex; flex-direction: column; background: var(--tt-card); border: 1px solid var(--tt-line); border-radius: var(--tt-r-lg); overflow: hidden; min-width: 0; }
.tt-post-card__media { display: block; aspect-ratio: 16 / 10; background: var(--tt-primary-soft); }
.tt-post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tt-post-card__ph { display: grid; place-items: center; height: 100%; color: var(--tt-primary); }
.tt-post-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.tt-post-card__title { font-size: var(--tt-fs); line-height: 1.7; margin: 0 0 6px; }
.tt-post-card__excerpt { font-size: var(--tt-fs-sm); color: var(--tt-muted); margin: 0 0 10px; flex: 1; }
.tt-post-meta { display: flex; gap: 6px; font-size: var(--tt-fs-xs); color: var(--tt-muted); }

/* ---------- Pagination ---------- */
.tt-pagination ul, .woocommerce nav.woocommerce-pagination ul {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 28px 0 0; padding: 0; border: 0;
}
.tt-pagination a, .tt-pagination span {
	display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px;
	border: 1px solid var(--tt-line); border-radius: var(--tt-r-sm); background: var(--tt-surface); font-weight: 600;
}
.tt-pagination .current { background: var(--tt-primary); border-color: var(--tt-primary); color: #fff; }

/* ---------- Footer ---------- */
.tt-footer { margin-top: var(--tt-section); }
.tt-footer__card {
	background: var(--tt-surface); border: 1px solid var(--tt-line); border-radius: var(--tt-r-lg) var(--tt-r-lg) 0 0;
	padding: clamp(20px, 3vw, 40px) clamp(16px, 3vw, 40px) 0; border-bottom: 0;
}
.tt-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; padding-bottom: 28px; }
.tt-footer__brand { font-size: 1.75rem; font-weight: 900; color: var(--tt-primary); margin: 0 0 10px; line-height: 1.4; }
.tt-footer__about p:not(.tt-footer__brand) { color: var(--tt-muted); font-size: var(--tt-fs-sm); max-width: 44ch; line-height: 2; }
.tt-footer__title { font-size: var(--tt-fs-md); margin: 4px 0 14px; }
.tt-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: var(--tt-fs-sm); color: var(--tt-muted); }
.tt-footer__links a { color: var(--tt-muted); }
.tt-footer__links a:hover { color: var(--tt-primary); }
.tt-footer__contactlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: var(--tt-fs-sm); color: var(--tt-muted); }
.tt-footer__ci { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; }
.tt-footer__ci .tt-icon { color: var(--tt-primary); margin-top: 2px; }
.tt-footer__ci a { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; color: var(--tt-muted); }
.tt-footer__ci a:hover { color: var(--tt-primary); }
.tt-footer__ci a > span { color: var(--tt-text); }
.tt-footer__ci bdi { font-size: var(--tt-fs-sm); font-weight: 600; color: var(--tt-muted); unicode-bidi: isolate; }
.tt-footer__ci > span { line-height: 1.8; }

/* Footer lower row: latest posts + trust badges side by side (like the live site). */
.tt-footer__lower { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; border-top: 1px solid var(--tt-line); padding: 22px 0; }
.tt-footer__lower > .tt-footer__posts { border-top: 0; padding: 0; }
.tt-footer__lower > .tt-footer__badges { border-top: 0; padding: 0; flex-wrap: nowrap; gap: 10px; }
.tt-footer__lower .tt-footer__badge { width: 84px; height: 84px; padding: 8px; border-radius: 14px; }
.tt-footer__lower .tt-footer__badge img, .tt-footer__lower .tt-footer__badge-img { max-height: 66px; }

/* Buying guide on top of the footer card */
.tt-footer__card:has(> .tt-footer__guide) { padding-top: 0; overflow: hidden; }
.tt-footer__guide { margin: 0 calc(-1 * clamp(16px, 3vw, 40px)) 28px; padding: clamp(18px, 2.4vw, 32px) clamp(16px, 3vw, 40px) 36px;
	background: linear-gradient(180deg, var(--tt-primary-soft), transparent); border-radius: 0 0 50% 50% / 0 0 22px 22px; }
.tt-guide--banner:has(.tt-guide__cta) { grid-template-columns: 290px minmax(0, 360px) minmax(0, 1fr); align-items: stretch; }
.tt-guide--banner .tt-guide__cta { margin: 0; align-self: center; justify-self: center; padding-inline: 12px; }
.tt-footer__posts { border-top: 1px solid var(--tt-line); padding: 24px 0; }
.tt-footer__postlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tt-mini-post { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--tt-line); border-radius: var(--tt-r-lg); background: var(--tt-bg); height: 100%; }
.tt-mini-post__img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--tt-r-sm); }
.tt-mini-post__text { display: flex; flex-direction: column; min-width: 0; }
.tt-mini-post__text small { color: var(--tt-muted); font-size: var(--tt-fs-xs); }
.tt-mini-post__text strong { font-size: var(--tt-fs-sm); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tt-mini-post__arrow { color: var(--tt-primary); }
.tt-footer__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 20px 0; border-top: 1px solid var(--tt-line); }
.tt-footer__badge { display: grid; place-items: center; width: 108px; height: 108px; padding: 10px; border: 1px solid var(--tt-line); border-radius: var(--tt-r-lg); background: #fff; }
.tt-footer__badge img, .tt-footer__badge-img { max-width: 100%; max-height: 86px; width: auto; height: auto; object-fit: contain; }
.tt-footer__badge--code { width: auto; min-width: 108px; }
.tt-footer__bottom { border-top: 1px solid var(--tt-line); padding-block: 16px; font-size: var(--tt-fs-xs); color: var(--tt-muted); text-align: center; }
.tt-delivery {
	display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 16px;
	background: linear-gradient(90deg, #6aa6e8, #2b5fc4 50%, #6aa6e8); color: #fff; font-weight: 800; font-size: var(--tt-fs-md);
}
.tt-section__sub { margin: 2px 0 0; color: var(--tt-muted); font-size: var(--tt-fs-sm); }

/* Old WPCode snippets (written for Dinakala) still active during migration: their
   markup has no styles here (giant SVG), so hide them and keep the theme's own bars. */
body.tt-evo #tt-sticky-call, body.tt-evo #taaminteb-delivery-strip { display: none !important; }

/* Header extras */
.tt-header__catpill { display: none; }

/* ---------- Mobile fixed bars (hidden on desktop) ---------- */
.tt-mobilenav, .tt-phonebar { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.tt-post-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tt-header__main { column-gap: 20px; }
	.tt-header__account-label { display: none; }
	.tt-nav__phone span { display: none; }
	.tt-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
	:root { --tt-gutter: 16px; --tt-gap: 12px; }
	body.tt-evo { padding-bottom: calc(var(--tt-mobilenav-h) + env(safe-area-inset-bottom)); }
	body.tt-evo.tt-has-phonebar { padding-bottom: calc(var(--tt-mobilenav-h) + var(--tt-phonebar-h) + env(safe-area-inset-bottom)); }

	.tt-topbar, .tt-nav { display: none; }
	.tt-header__main {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "burger logo tools" "search search search";
		row-gap: 10px; column-gap: 10px; min-height: 0; padding-block: 10px 12px;
	}
	.tt-header__burger { display: inline-flex; }
	.tt-logo { justify-self: start; }
	.tt-logo__img { max-height: 42px; }
	.tt-logo__mark { width: 38px; height: 38px; border-radius: 12px; }
	.tt-logo__text { font-size: 1.125rem; }
	.tt-logo__text small { display: none; }
	.tt-header__search { max-width: none; }
	.tt-header__tools { gap: 6px; }
	.tt-header__tools .tt-theme-toggle, .tt-header__account { display: none; }
	.tt-search .tt-search__input { height: 46px; min-height: 46px; }

	.tt-mobilenav {
		display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 70;
		height: calc(var(--tt-mobilenav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
		background: var(--tt-surface); border-top: 1px solid var(--tt-line);
	}
	.tt-mobilenav__item {
		flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
		border: 0; background: transparent; color: var(--tt-muted); font-size: 11px; font-weight: 600; padding: 0;
	}
	.tt-mobilenav__item[aria-current="page"] { color: var(--tt-primary); }
	.tt-mobilenav__call { color: var(--tt-primary); }
	.tt-mobilenav__call .tt-icon { background: var(--tt-primary); color: #fff; border-radius: 50%; padding: 6px; width: 34px; height: 34px; }

	.tt-phonebar {
		display: flex; align-items: center; justify-content: center; gap: 8px;
		position: fixed; inset-inline: 0; z-index: 69;
		bottom: calc(var(--tt-mobilenav-h) + env(safe-area-inset-bottom)); height: var(--tt-phonebar-h);
		background: var(--tt-primary); color: #fff; font-weight: 700; font-size: var(--tt-fs-sm);
	}
	.tt-phonebar:hover { color: #fff; }

	.tt-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
	.tt-footer__about, .tt-footer__contact { grid-column: 1 / -1; }
	.tt-footer__postlist { grid-template-columns: 1fr; }
	.tt-footer__lower { grid-template-columns: 1fr; }
	.tt-footer__lower > .tt-footer__badges { justify-content: center; flex-wrap: wrap; }
	.tt-guide--banner:has(.tt-guide__cta) { grid-template-columns: 1fr; }
	.tt-guide--banner .tt-guide__cta { padding: 0; }
	.tt-header__wish, .tt-header__compare { display: none; }

	/* Mobile header like the live site: category pill · logo · account */
	.tt-mh-main .tt-header__main { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "pill logo tools" "search search search"; }
	.tt-mh-main .tt-header__burger { display: none; }
	.tt-mh-main .tt-header__catpill { display: inline-flex; grid-area: pill; min-height: 46px; border-radius: var(--tt-r-lg); padding-inline: 14px; }
	.tt-mh-main .tt-logo { justify-self: center; }
	.tt-mh-main .tt-header__tools .tt-header__account { display: inline-flex; }
	.tt-mh-main .tt-header__tools .tt-header__account-label, .tt-mh-main .tt-header__tools .tt-cart-link { display: none; }

	/* Bottom nav like the live site: back · wishlist · HOME · compare · cart */
	.tt-mobilenav--main { height: calc(68px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; border: 1px solid var(--tt-line); border-bottom: 0; box-shadow: 0 -8px 24px rgba(16, 34, 64, .06); }
	.tt-mobilenav--main .tt-mobilenav__item { color: var(--tt-text); font-size: 11px; gap: 4px; }
	.tt-mobilenav--main .tt-icon { color: var(--tt-primary); }
	.tt-mobilenav__icon { position: relative; display: inline-flex; }
	.tt-mobilenav__home { position: relative; }
	.tt-mobilenav__fab {
		position: absolute; top: -26px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
		background: var(--tt-primary); box-shadow: 0 8px 20px rgba(36, 100, 236, .35); border: 4px solid var(--tt-surface);
	}
	.tt-mobilenav__fab .tt-icon { color: #fff; }
	.tt-mn-main.tt-evo { --tt-mobilenav-h: 68px; }
}

@media (max-width: 520px) {
	.tt-post-grid--4 { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
	.tt-footer__grid { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
}

/* Motion off (theme option off, or OS "reduce motion" when the theme is told to honour it). */
html.tt-js:not(.tt-anim) *, html.tt-js:not(.tt-anim) *::before, html.tt-js:not(.tt-anim) *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }

@media print {
	.tt-header, .tt-footer, .tt-mobilenav, .tt-phonebar, .tt-drawer, .tt-buybar { display: none !important; }
	body { background: #fff; color: #000; padding: 0 !important; }
}

/* ---------- Search category select ---------- */
.tt-search__cat {
	position: absolute; inset-block: 6px; inset-inline-end: 48px; max-width: 140px;
	border: 0; border-inline-start: 1px solid var(--tt-line); background: transparent; color: var(--tt-muted);
	font: inherit; font-size: var(--tt-fs-xs); padding-inline: 8px; cursor: pointer;
}
.tt-search:has(.tt-search__cat) .tt-search__input { padding-inline-end: 196px; }
.tt-search__cat:focus-visible { outline: 2px solid var(--tt-primary); outline-offset: -2px; border-radius: 8px; }
@media (max-width: 900px) {
	.tt-search__cat { display: none; }
	.tt-search:has(.tt-search__cat) .tt-search__input { padding-inline-end: 52px; }
}

/* Persian digits over quantity inputs (input keeps its ASCII value for WooCommerce). */
.tt-qtyfa { position: relative; display: inline-flex; align-items: stretch; }
.tt-qtyfa input.qty:not(:focus) { color: transparent; caret-color: var(--tt-text); }
.tt-qtyfa__v { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font-weight: 700; color: var(--tt-text); }
.tt-qtyfa input.qty:focus + .tt-qtyfa__v { display: none; }

/* ---------- Category panel v0.9.18: fits its content (Digikala-style) ----------
   The full-width .tt-mega wrapper only positions; the visible box is as wide as
   the main list + N sub-category columns and as tall as the main list. */
.tt-catpanel { inset-inline: 0; background: transparent; border: 0; box-shadow: none; pointer-events: none; }
.tt-catpanel__inner { padding-block: 0; }
.tt-catpanel__box {
	--tt-cp-colw: 190px; --tt-cp-gap: 28px;
	pointer-events: auto; display: flex; align-items: stretch;
	width: max-content; max-width: 100%;
	max-height: min(70vh, 640px);
	background: var(--tt-surface);
	border: 1px solid var(--tt-line); border-radius: 0 0 var(--tt-r-lg) var(--tt-r-lg);
	box-shadow: 0 18px 40px rgba(16, 34, 64, .12); overflow: hidden;
}
.tt-catpanel__tops {
	flex: 0 0 236px; list-style: none; margin: 0; padding: 8px 0; overflow-y: auto; overscroll-behavior: contain;
	border-inline-end: 1px solid var(--tt-line); background: var(--tt-bg);
	scrollbar-width: thin; scrollbar-color: var(--tt-line) transparent;
}
.tt-catpanel__top {
	display: flex; align-items: center; gap: 10px; padding: 9px 16px; min-height: 44px;
	font-size: var(--tt-fs-sm); font-weight: 700; color: var(--tt-text); transition: background-color .12s, color .12s;
}
.tt-catpanel__top > span { flex: 1; min-width: 0; }
.tt-catpanel__icon { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; background: #fff; flex-shrink: 0; }
.tt-catpanel__chev { color: var(--tt-muted); transform: rotate(90deg); flex-shrink: 0; }
[dir="ltr"] .tt-catpanel__chev { transform: rotate(-90deg); }
.tt-catpanel__top.is-active, .tt-catpanel__top:hover { background: var(--tt-surface); color: var(--tt-primary); box-shadow: inset -3px 0 0 var(--tt-primary); }
[dir="ltr"] .tt-catpanel__top.is-active, [dir="ltr"] .tt-catpanel__top:hover { box-shadow: inset 3px 0 0 var(--tt-primary); }
.tt-catpanel__top.is-active .tt-catpanel__chev { color: var(--tt-primary); }

.tt-catpanel__panes {
	width: max(280px, calc(var(--tt-cp-cols) * var(--tt-cp-colw) + (var(--tt-cp-cols) - 1) * var(--tt-cp-gap) + 48px));
	max-width: calc(100vw - 300px); overflow-y: auto; overscroll-behavior: contain; padding: 16px 24px 20px;
	scrollbar-width: thin; scrollbar-color: var(--tt-line) transparent;
}
.tt-catpanel__box--flat .tt-catpanel__panes { width: 300px; }
.tt-catpanel__all { display: inline-flex; align-items: center; gap: 6px; font-size: var(--tt-fs-sm); font-weight: 800; color: var(--tt-primary); margin: 0 0 12px; }
.tt-catpanel__grid { column-count: var(--tt-cp-cols); column-gap: var(--tt-cp-gap); }
.tt-catpanel__grid > .tt-catpanel__link,
.tt-catpanel__group { break-inside: avoid; }
.tt-catpanel__group { display: inline-block; width: 100%; margin-bottom: 14px; }
.tt-catpanel__head {
	display: flex; align-items: center; gap: 4px; padding: 4px 0 6px; margin-bottom: 2px;
	padding-inline-start: 10px; border-inline-start: 2px solid var(--tt-primary);
	font-size: var(--tt-fs-sm); font-weight: 800; color: var(--tt-text); line-height: 1.6;
}
.tt-catpanel__headchev { color: var(--tt-muted); transform: rotate(90deg); }
[dir="ltr"] .tt-catpanel__headchev { transform: rotate(-90deg); }
.tt-catpanel__head:hover, .tt-catpanel__head:hover .tt-catpanel__headchev { color: var(--tt-primary); }
.tt-catpanel__group ul { list-style: none; margin: 0; padding: 0; }
.tt-catpanel__link {
	display: block; padding: 6px 0; font-size: var(--tt-fs-sm); line-height: 1.7; color: var(--tt-muted);
	overflow-wrap: anywhere; transition: color .12s;
}
.tt-catpanel__link:hover { color: var(--tt-primary); }
.tt-catpanel__pane[hidden] { display: none; }
@media (max-width: 900px) {
	.tt-catpanel__box { max-height: calc(100dvh - 150px); width: 100%; }
	.tt-catpanel__tops { flex-basis: 44%; }
	.tt-catpanel__panes { flex: 1; width: auto; max-width: none; padding: 12px 14px; }
	.tt-catpanel__grid { column-count: 1; }
}

/* ---------- Reduced motion (0.9.20): when effects stay on for OS "reduce motion" users, keep fades and drop movement. ---------- */
@media (prefers-reduced-motion: reduce) {
	.tt-anim .tt-reveal, .tt-anim .tt-reveal ul.tt-products__grid > li { transform: none !important; }
	.tt-anim .tt-btn:active, .tt-card__actions .button:active, .single_add_to_cart_button:active { transform: none !important; }
	.tt-anim .tt-slider__slide.is-active img { animation: none !important; }
	.tt-anim a.tt-promo:hover, .tt-anim a.tt-guide__card:hover, .tt-anim .tt-cat:hover, .tt-anim .tt-brand:hover, .tt-anim .tt-trust__item:hover { transform: none !important; }
	.tt-anim .tt-promo:hover img, .tt-anim .tt-catbanner__link:hover .tt-catbanner__img, .tt-anim .tt-guide__banner:hover img, .tt-anim .tt-guide__card--img:hover .tt-guide__media img { transform: none !important; }
	.tt-anim .tt-promo::after, .tt-anim .tt-catbanner__link::after, .tt-anim .tt-guide__banner::after, .tt-anim .tt-guide__card--img::after { display: none; }
	.tt-drawer[open], .tt-sheet[open], .tt-modal[open] { animation-name: tt-fade !important; }
}
@keyframes tt-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Footer social (0.9.21) ---------- */
.tt-footer__social { display: flex; gap: 10px; margin-top: 14px; }
.tt-footer__social-link {
	display: inline-grid; place-items: center; width: var(--tt-social-size, 42px); height: var(--tt-social-size, 42px); border-radius: var(--tt-r-sm);
	background: var(--tt-surface); color: var(--tt-primary); border: 1px solid var(--tt-line);
	transition: transform .16s var(--tt-ease), background-color .15s, color .15s, border-color .15s;
	-webkit-tap-highlight-color: transparent;
}
.tt-footer__social-link:active { transform: scale(var(--tt-press, .95)); }
@media (hover: hover) and (pointer: fine) {
	.tt-footer__social-link:hover { background: var(--tt-primary); border-color: var(--tt-primary); color: var(--tt-on-primary, #fff); }
}

/* ---------- Elementor text pages (0.9.21): title + readable prose ---------- */
.tt-builder__head { padding-top: 16px; }
.tt-builder__head .tt-page__title { margin: 8px 0 4px; }
.tt-textpage .elementor-widget-text-editor { max-width: var(--tt-prose-w, 78ch); line-height: 2; font-size: var(--tt-fs); color: var(--tt-text); }
.tt-textpage .elementor-widget-text-editor > .elementor-widget-container > * + * { margin-top: 1em; }
.tt-textpage .elementor-widget-text-editor h2 { font-size: var(--tt-fs-lg); font-weight: 800; margin: 1.8em 0 .4em; color: var(--tt-text); }
.tt-textpage .elementor-widget-text-editor h3 { font-size: var(--tt-fs-md); font-weight: 800; margin: 1.6em 0 .4em; color: var(--tt-text); }
.tt-textpage .elementor-widget-text-editor ul, .tt-textpage .elementor-widget-text-editor ol { padding-inline-start: 1.4em; margin-block: .6em 1em; }
.tt-textpage .elementor-widget-text-editor li + li { margin-top: .35em; }
.tt-textpage .elementor-widget-text-editor a { color: var(--tt-primary); text-decoration: underline; text-underline-offset: 3px; }

/* Brand-coloured social icons (Customizer › ظاهر و حرکت). */
.tt-footer__social--brand .tt-footer__social-link--ig { color: #e1306c; }
.tt-footer__social--brand .tt-footer__social-link--wa { color: #1fa855; }
@media (hover: hover) and (pointer: fine) {
	.tt-footer__social--brand .tt-footer__social-link--ig:hover { background: #e1306c; border-color: #e1306c; color: #fff; }
	.tt-footer__social--brand .tt-footer__social-link--wa:hover { background: #1fa855; border-color: #1fa855; color: #fff; }
}

/* Footer contact links: taller touch rows on phones (0.9.23). */
@media (pointer: coarse) { .tt-footer__ci a { min-height: 40px; justify-content: center; } }

/* ---------- Contact form (Contact Form 7 «.ttf» layout, 0.9.24) ---------- */
.ttf { --ttf-h: 48px; display: grid; gap: 20px; max-width: 720px; margin-inline: auto; padding: clamp(20px, 3vw, 32px); background: var(--tt-surface); border: 1px solid var(--tt-line); border-radius: var(--tt-r-lg); box-shadow: var(--tt-shadow); text-align: start; }
.ttf p { margin: 0; }
.ttf br { display: none; }
.ttf-title { margin: 0; font-size: var(--tt-fs-lg); font-weight: 800; color: var(--tt-text); }
.ttf-sub { margin-top: 6px !important; color: var(--tt-muted); font-size: var(--tt-fs-sm); line-height: 1.9; }
.ttf-label { display: block; margin-bottom: 8px; font-size: var(--tt-fs-sm); font-weight: 700; color: var(--tt-text); }
.ttf-label b { color: var(--tt-danger); font-weight: 700; }
.ttf-label i { font-style: normal; font-weight: 400; color: var(--tt-muted); }

/* Topic chips */
.ttf-topic .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.ttf-topic .wpcf7-list-item { margin: 0; }
.ttf-topic .wpcf7-list-item label { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--tt-line); border-radius: 999px; background: var(--tt-card); color: var(--tt-text); font-size: var(--tt-fs-sm); font-weight: 600; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .16s var(--tt-ease); }
.ttf-topic .wpcf7-list-item input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ttf-topic .wpcf7-list-item label:has(input:checked) { background: var(--tt-primary); border-color: var(--tt-primary); color: var(--tt-on-primary, #fff); }
.ttf-topic .wpcf7-list-item label:has(input:focus-visible) { outline: 2px solid var(--tt-focus); outline-offset: 2px; }
.ttf-topic .wpcf7-list-item label:active { transform: scale(var(--tt-press, .96)); }
@media (hover: hover) and (pointer: fine) { .ttf-topic .wpcf7-list-item label:not(:has(input:checked)):hover { border-color: var(--tt-primary); color: var(--tt-primary); } }

/* Fields */
.ttf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ttf-field { display: block; min-width: 0; }
.ttf-field--full { grid-column: 1 / -1; }
.ttf .wpcf7-form-control-wrap { display: block; }
.ttf input[type="text"], .ttf input[type="tel"], .ttf input[type="email"], .ttf textarea {
	width: 100%; min-height: var(--ttf-h); padding: 10px 14px; margin: 0; box-sizing: border-box;
	border: 1px solid var(--tt-line); border-radius: var(--tt-r-sm); background: var(--tt-bg); color: var(--tt-text);
	font: inherit; font-size: 16px; line-height: 1.7; box-shadow: none;
	transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.ttf input[type="tel"], .ttf input[type="email"] { direction: ltr; text-align: right; }
.ttf input::placeholder, .ttf textarea::placeholder { color: var(--tt-muted); opacity: .7; }
.ttf textarea { min-height: 140px; resize: vertical; }
.ttf input:focus, .ttf textarea:focus { outline: none; border-color: var(--tt-primary); background: var(--tt-surface); box-shadow: 0 0 0 4px var(--tt-primary-soft); }
.ttf .wpcf7-not-valid { border-color: var(--tt-danger) !important; background: var(--tt-surface); }
.ttf .wpcf7-not-valid-tip { margin-top: 6px; font-size: var(--tt-fs-xs); color: var(--tt-danger); }

/* Submit */
.ttf-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.ttf .ttf-submit {
	display: inline-flex; align-items: center; justify-content: center; min-height: 50px; min-width: 180px; padding: 0 28px; margin: 0;
	border: 0; border-radius: var(--tt-r-sm); background: var(--tt-primary); color: var(--tt-on-primary, #fff);
	font: inherit; font-size: var(--tt-fs); font-weight: 800; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
	transition: background-color .15s ease, transform .16s var(--tt-ease), opacity .15s ease;
}
.ttf .ttf-submit:active { transform: scale(var(--tt-press, .97)); }
@media (hover: hover) and (pointer: fine) { .ttf .ttf-submit:hover { background: var(--tt-primary-strong); } }
.ttf .wpcf7-spinner { margin: 0 8px; }
form.submitting .ttf .ttf-submit { opacity: .7; pointer-events: none; }
.ttf-alt { font-size: var(--tt-fs-sm); color: var(--tt-muted); }
.ttf-alt a { color: var(--tt-primary); font-weight: 700; direction: ltr; unicode-bidi: embed; }

/* Response box */
.wpcf7 form:has(.ttf) .wpcf7-response-output { max-width: 720px; margin: 14px auto 0 !important; padding: 12px 16px !important; border: 0 !important; border-radius: var(--tt-r-sm); font-size: var(--tt-fs-sm); font-weight: 600; transition: opacity .2s var(--tt-ease), transform .2s var(--tt-ease); }
@starting-style { .wpcf7 form:has(.ttf) .wpcf7-response-output { opacity: 0; transform: translateY(6px); } }
.wpcf7 form.sent:has(.ttf) .wpcf7-response-output { background: var(--tt-success-soft); color: var(--tt-success); }
.wpcf7 form.invalid:has(.ttf) .wpcf7-response-output, .wpcf7 form.unaccepted:has(.ttf) .wpcf7-response-output, .wpcf7 form.failed:has(.ttf) .wpcf7-response-output, .wpcf7 form.spam:has(.ttf) .wpcf7-response-output { background: var(--tt-danger-soft); color: var(--tt-danger); }

@media (max-width: 600px) {
	.ttf-grid { grid-template-columns: 1fr; }
	.ttf .ttf-submit { width: 100%; }
	.ttf-foot { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .ttf .ttf-submit:active, .ttf-topic .wpcf7-list-item label:active { transform: none; } }

/* ---------- Elementor pages use the theme font (0.9.25) ----------
   Elementor's default kit sets Roboto for its global typography; on Persian pages that means a
   different font from the rest of the site. Point the kit variables at the theme font instead. */
body[class*="elementor-kit-"] {
	--e-global-typography-primary-font-family: TaaminYekanDigits, TaaminYekan, Tahoma;
	--e-global-typography-secondary-font-family: TaaminYekanDigits, TaaminYekan, Tahoma;
	--e-global-typography-text-font-family: TaaminYekanDigits, TaaminYekan, Tahoma;
	--e-global-typography-accent-font-family: TaaminYekanDigits, TaaminYekan, Tahoma;
}
/* Contact form fields win over page-level «font: inherit» rules. */
body .wpcf7 .ttf input[type="text"], body .wpcf7 .ttf input[type="tel"], body .wpcf7 .ttf input[type="email"], body .wpcf7 .ttf textarea {
	font-family: inherit; font-size: 16px; font-weight: 400; line-height: 1.7;
}
body .wpcf7 .ttf .ttf-submit { font-family: inherit; font-size: var(--tt-fs); font-weight: 800; }
.ttf-grid > p, .ttf-foot > p, .ttf-topic > p { display: contents; }
