/* پوستهٔ «تحریر» — بازسازیِ دقیقِ ظاهرِ سایت آنلاین تحریر روی موتور سایت‌ساز.
   همهٔ رنگ‌ها از توکن‌های قالب (--p, --a, --bg, --sf, --tx) می‌آیند تا از «ظاهر کلی»
   عوض شوند؛ اندازه‌ها و فاصله‌ها از نسخهٔ مرجع (onlinetahrir.com) برداشته شده است. */

.lx-tahrir {
  --tt-card: color-mix(in srgb, var(--bg) 12%, white);
  --tt-line: color-mix(in srgb, var(--tx) 9%, transparent);
  --tt-line-2: color-mix(in srgb, var(--tx) 14%, transparent);
  --tt-muted: color-mix(in srgb, var(--tx) 58%, transparent);
  --tt-soft: color-mix(in srgb, var(--p) 10%, var(--tt-card));
  --tt-dark: color-mix(in srgb, var(--p) 78%, black);
  --tt-r: 16px;
  --tt-shadow: 0 1px 2px color-mix(in srgb, var(--tx) 5%, transparent);
  background: var(--bg); color: var(--tx); font-family: var(--ff); font-size: 14px;
}
.lx-tahrir main { padding-bottom: 2rem; }
.tt-wrap { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: clamp(1rem, 2.6vw, 2.5rem); box-sizing: border-box; }
.tt-page { padding-top: 1.6rem; display: grid; gap: 1.2rem; }
.tt-box { background: var(--tt-card); border: 1px solid var(--tt-line); border-radius: var(--tt-r); box-shadow: var(--tt-shadow); }
.tt-section { margin-block: clamp(1.4rem, 3.5vw, 2.6rem); }
.tt-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.tt-head h2 { margin: 0; font-size: clamp(1rem, 1.6vw, 1.15rem); font-weight: 800; }
.tt-head--sm h2 { font-size: .98rem; }
.tt-more { display: inline-flex; align-items: center; gap: .2rem; color: var(--p); font-size: .82rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.tt-more svg { width: 15px; height: 15px; }
.tt-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  background: var(--p); color: var(--on-p); border-radius: 10px; padding: .75rem 1.2rem; text-decoration: none; transition: background .15s; }
.tt-btn:hover { background: var(--tt-dark); }
.tt-btn--grow { flex: 1; }
.tt-arrow { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--tt-line-2); background: var(--tt-card); color: var(--tx);
  display: inline-grid; place-items: center; cursor: pointer; box-shadow: 0 4px 12px -6px color-mix(in srgb, var(--tx) 30%, transparent); flex: none; }
.tt-arrow svg { width: 16px; height: 16px; }
.tt-arrow:hover { border-color: var(--p); color: var(--p); }

/* ── نوار آیه ── */
.tt-verse { position: relative; display: flex; align-items: center; justify-content: center; gap: .65rem; padding: .45rem 1rem; text-align: center;
  border-bottom: 1px solid color-mix(in srgb, var(--p) 22%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--p) 6%, white) 0%, white 55%, color-mix(in srgb, var(--p) 6%, white) 100%); }
.tt-verse__frame { flex: 1 1 0; max-width: 5rem; height: 1px; background: linear-gradient(to left, color-mix(in srgb, var(--p) 55%, transparent), transparent); }
.tt-verse__frame--end { background: linear-gradient(to right, color-mix(in srgb, var(--p) 55%, transparent), transparent); }
.tt-verse__core { display: inline-flex; align-items: center; gap: .55rem; color: inherit; text-decoration: none; }
.tt-verse__pen { width: 1.15rem; height: 1.15rem; color: var(--p); flex: none; }
.tt-verse__ayah { margin: 0; font-family: "SiteAmiri", "Amiri", serif; font-size: clamp(1.05rem, 2.4vw, 1.45rem); font-weight: 700; line-height: 1.5;
  color: color-mix(in srgb, var(--p) 80%, black); white-space: nowrap; }
.tt-verse__ref { font-size: .65rem; font-weight: 500; color: color-mix(in srgb, var(--p) 70%, transparent); white-space: nowrap; padding: .1rem .45rem;
  border-radius: 999px; background: color-mix(in srgb, var(--p) 9%, white); border: 1px solid color-mix(in srgb, var(--p) 25%, transparent); }
@media (max-width: 640px) { .tt-verse { padding: .35rem .5rem; } .tt-verse__frame, .tt-verse__ref { display: none; } .tt-verse__pen { width: .95rem; height: .95rem; } }

/* ── سربرگ ── */
.tt-header { background: var(--tt-card); border-bottom: 1px solid var(--tt-line); position: relative; z-index: 40; }
.tt-header.is-sticky { position: sticky; top: 0; }
.tt-header__row { display: flex; align-items: center; gap: 1.5rem; padding-block: .75rem; }
.tt-logo { flex: none; display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--p); }
.tt-logo img { width: 48px; height: 48px; border-radius: 12px; object-fit: contain; }
.tt-logo b { font-weight: 900; font-size: 1.1rem; }
.tt-search { flex: 1; position: relative; max-width: 680px; margin-inline-start: auto; }
.tt-search input { width: 100%; box-sizing: border-box; height: 44px; border: 1px solid transparent; border-radius: 12px; padding-inline: 2.6rem 1rem;
  background: color-mix(in srgb, var(--tx) 5%, var(--tt-card)); font: inherit; color: var(--tx); transition: border-color .15s, background .15s; }
.tt-search input:focus { outline: 0; border-color: color-mix(in srgb, var(--p) 45%, transparent); background: var(--tt-card); }
.tt-search svg { position: absolute; inset-inline-start: .9rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--tt-muted); }
.tt-actions { flex: none; display: flex; align-items: center; gap: 1rem; margin-inline-start: auto; }
.tt-btn-outline { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border: 1px solid var(--tt-line-2); border-radius: 10px;
  color: var(--tx); text-decoration: none; font-size: .82rem; font-weight: 600; }
.tt-btn-outline:hover { border-color: var(--p); color: var(--p); }
.tt-btn-outline svg { width: 17px; height: 17px; }
.tt-cart { position: relative; display: inline-grid; place-items: center; color: var(--tx); }
.tt-cart svg { width: 22px; height: 22px; }
.tt-cart b { position: absolute; top: -8px; inset-inline-end: -10px; min-width: 18px; height: 18px; padding-inline: 4px; border-radius: 999px; background: var(--p);
  color: var(--on-p); font-size: .68rem; display: grid; place-items: center; }
.tt-nav { border-top: 1px solid var(--tt-line); }
.tt-nav__row { display: flex; align-items: center; gap: 1.4rem; overflow-x: auto; scrollbar-width: none; }
.tt-nav__row > a { padding-block: .7rem; color: var(--tt-muted); text-decoration: none; font-size: .8rem; white-space: nowrap; }
.tt-nav__row > a:hover { color: var(--p); }
.tt-nav__phone { margin-inline-start: auto; display: inline-flex !important; align-items: center; gap: .35rem; }
.tt-nav__phone svg { width: 15px; height: 15px; }
.tt-mega { position: static; }
.tt-mega__btn { display: inline-flex; align-items: center; gap: .4rem; border: 0; background: none; font: inherit; font-size: .82rem; font-weight: 700; color: var(--tx);
  padding-block: .7rem; cursor: pointer; white-space: nowrap; }
.tt-mega__btn svg { width: 18px; height: 18px; }
.tt-mega__panel { position: absolute; inset-inline: 0; top: 100%; background: var(--tt-card); border-top: 1px solid var(--tt-line);
  box-shadow: 0 24px 48px -24px color-mix(in srgb, var(--tx) 35%, transparent); padding: 1.2rem max(1rem, calc((100vw - 1400px) / 2 + 2.5rem));
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem 1.5rem; max-height: 70vh; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.tt-mega:hover .tt-mega__panel, .tt-mega:focus-within .tt-mega__panel { opacity: 1; visibility: visible; transform: none; }
.tt-mega__col { display: grid; align-content: start; gap: .15rem; }
.tt-mega__top { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: .86rem; color: var(--tx); text-decoration: none; padding-block: .25rem; }
.tt-mega__top img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.tt-mega__top:hover, .tt-mega__kid:hover { color: var(--p); }
.tt-mega__kid { font-size: .8rem; color: var(--tt-muted); text-decoration: none; padding: .2rem 2.4rem .2rem 0; }
.tt-header__mob { display: none; }
@media (max-width: 860px) {
  .tt-header__desk { display: none; }
  .tt-header__mob { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: .55rem 1rem; }
  .tt-header__mob-end { display: flex; justify-content: flex-end; gap: .4rem; }
  .tt-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; background: none; color: var(--tx); position: relative; }
  .tt-icon svg { width: 22px; height: 22px; }
  .tt-logo--mob img { width: 42px; height: 42px; }
}

/* ── اسلایدر و بنرها در این پوسته ── */
.lx-tahrir .px-slider { margin-top: 0; }
.lx-tahrir .px-slider:not(.is-rounded) .px-slides { border-radius: 0; }

/* ── دسته‌ها: دایره با پیکان ── */
.tt-cats { position: relative; display: flex; align-items: center; gap: .5rem; }
.tt-cats__rail { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 9 * 1rem) / 10); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tt-cats__rail::-webkit-scrollbar { display: none; }
.tt-cat { scroll-snap-align: start; display: grid; justify-items: center; gap: .7rem; text-decoration: none; color: var(--tx); text-align: center; }
.tt-cat__pic { width: var(--pic, 110px); height: var(--pic, 110px); max-width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--tt-soft); border: 1px solid var(--tt-line); transition: transform .2s, box-shadow .2s; }
.tt-cats.is-rounded .tt-cat__pic { border-radius: 22%; }
.tt-cat:hover .tt-cat__pic { transform: translateY(-3px); box-shadow: 0 12px 24px -16px color-mix(in srgb, var(--p) 70%, transparent); }
.tt-cat__pic img { width: 100%; height: 100%; object-fit: cover; }
.tt-cat__pic svg { width: 30px; height: 30px; color: var(--p); }
.tt-cat__name { font-size: .82rem; font-weight: 600; line-height: 1.6; }
@media (max-width: 1100px) { .tt-cats__rail { grid-auto-columns: calc((100% - 5 * 1rem) / 6); } }
@media (max-width: 640px) { .tt-cats .tt-arrow { display: none; } .tt-cats__rail { grid-auto-columns: calc((100% - 3 * .8rem) / 3.6); gap: .8rem; } .tt-cat__pic { width: var(--pic, 84px); height: var(--pic, 84px); } }

/* ── نوار رنگیِ پربازدیدترین ── */
.tt-band { position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: stretch; gap: 1rem; padding: 1rem;
  border-radius: 20px; background: var(--band, var(--p)); color: var(--on-band, var(--on-p)); overflow: hidden; }
.tt-band::before { content: ""; position: absolute; width: 240px; aspect-ratio: 1; border-radius: 50%; inset-inline-start: -80px; bottom: -110px;
  background: color-mix(in srgb, var(--on-band, var(--on-p)) 8%, transparent); }
.tt-band__intro { position: relative; display: grid; align-content: center; justify-items: center; gap: .8rem; text-align: center; }
.tt-band__icons { display: flex; gap: .35rem; }
.tt-band__icons svg { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: color-mix(in srgb, var(--on-band, var(--on-p)) 18%, transparent); }
.tt-band__intro h2 { margin: 0; font-size: 1.05rem; font-weight: 900; line-height: 1.6; }
.tt-band__intro p { margin: 0; font-size: .8rem; opacity: .85; }
.tt-band__all { display: inline-flex; align-items: center; gap: .2rem; color: inherit; text-decoration: none; font-weight: 800; font-size: .8rem; }
.tt-band__all svg { width: 14px; height: 14px; }
.tt-band__rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 6px) / 6); gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 14px; }
.tt-band__rail::-webkit-scrollbar { display: none; }
.tt-band .tt-card { border-radius: 12px; border: 0; color: var(--tx); }
.tt-band__arrow { position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 1100px) { .tt-band__rail { grid-auto-columns: calc((100% - 3 * 6px) / 4); } }
@media (max-width: 760px) {
  .tt-band { grid-template-columns: 1fr; padding: .8rem; }
  .tt-band__intro { grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .tt-band__intro p, .tt-band__icons { display: none; }
  .tt-band__rail { grid-auto-columns: 46%; }
  .tt-band__arrow { display: none; }
  .tt-band .tt-card { flex-direction: column; }
  .tt-band .tt-card__img { width: 100%; height: 130px; }
}

/* ── کارت کالا ── */
.tt-card { display: flex; flex-direction: column; background: var(--tt-card); border: 1px solid var(--tt-line); border-radius: var(--tt-r); padding: 1rem;
  scroll-snap-align: start; transition: box-shadow .2s, border-color .2s; min-width: 0; }
.tt-card:hover { box-shadow: 0 16px 32px -24px color-mix(in srgb, var(--tx) 40%, transparent); border-color: var(--tt-line-2); }
.tt-card__img { display: grid; place-items: center; height: 200px; margin-bottom: 1.1rem; }
.tt-card__img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.tt-card__img, .tt-card__img:hover { text-decoration: none; }
.tt-card__ph { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: .3rem; border-radius: 10px;
  background: color-mix(in srgb, var(--tx) 5%, var(--tt-card)); color: var(--tt-muted); font-size: .7rem; }
.tt-card__ph svg { width: 44px; height: 44px; stroke-width: 1.2; opacity: .55; }
.tt-card__body { display: flex; flex-direction: column; flex: 1; gap: .6rem; min-width: 0; }
.tt-card__title { text-align: center; color: var(--tx); text-decoration: none; font-size: .9rem; font-weight: 500; line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.5em; }
.tt-card__title:hover { color: var(--p); }
.tt-card__foot { margin-top: auto; display: flex; justify-content: flex-end; align-items: baseline; min-height: 1.6rem; }
.tt-card__price b { font-size: 1rem; font-weight: 800; }
.tt-card__price small { font-size: .74rem; font-weight: 300; color: var(--tt-muted); }
.tt-card__out { font-size: .78rem; color: var(--tt-muted); border: 1px solid var(--tt-line-2); border-radius: 8px; padding: .3rem .7rem; width: 100%; text-align: center; }
.tt-card__more { color: var(--p); font-weight: 700; font-size: .82rem; text-decoration: none; }
.tt-card.is-out .tt-card__img img { opacity: .55; filter: grayscale(.4); }
@media (max-width: 760px) {
  .tt-grid .tt-card, .tt-shop .tt-card { flex-direction: row; align-items: center; gap: .8rem; padding: .7rem; }
  .tt-grid .tt-card__img { width: 112px; height: 112px; flex: none; margin: 0; }
  .tt-grid .tt-card__title { text-align: start; min-height: 0; }
}

/* ── پرفروش‌ترین (فهرست شماره‌دار) در این پوسته ── */
.lx-tahrir .px-ranked { background: var(--tt-card); border-color: var(--tt-line); border-radius: var(--tt-r); }
.lx-tahrir .px-ranked__img { background: transparent; }

/* ── مسیر، صفحهٔ بخش و فهرست ── */
.tt-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .8rem; color: var(--tt-muted); }
.tt-crumbs a { color: inherit; text-decoration: none; } .tt-crumbs a:hover { color: var(--p); }
.tt-crumbs svg { width: 13px; height: 13px; }
.tt-crumbs--in { margin-bottom: .9rem; } .tt-crumbs--in a { color: var(--p); }
.tt-catbox { padding: .9rem 1rem 1rem; }
.tt-catbox__row { display: flex; align-items: center; gap: .5rem; }
.tt-catbox__rail { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 10 * .7rem) / 11); gap: .7rem; overflow-x: auto; scrollbar-width: none; }
.tt-catbox__rail::-webkit-scrollbar { display: none; }
.tt-tile { display: grid; justify-items: center; gap: .5rem; padding: .7rem .4rem; border: 1px solid var(--tt-line); border-radius: 12px; text-decoration: none;
  color: var(--tx); font-size: .74rem; font-weight: 600; text-align: center; line-height: 1.5; background: var(--tt-card); transition: border-color .15s; }
.tt-tile:hover, .tt-tile.is-active { border-color: var(--p); color: var(--p); }
.tt-tile__pic { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--tt-soft); }
.tt-tile__pic img { width: 100%; height: 100%; object-fit: cover; } .tt-tile__pic svg { width: 22px; color: var(--p); }
.tt-shop { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.tt-filters { position: sticky; top: 140px; }
.tt-filters form { padding: 1rem; display: grid; gap: .9rem; }
.tt-filters__title { margin: 0; font-size: .95rem; font-weight: 800; }
.tt-filters__group { border-bottom: 1px solid var(--tt-line); padding-bottom: .7rem; }
.tt-filters__group summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; font-size: .85rem; font-weight: 600; }
.tt-filters__group summary::-webkit-details-marker { display: none; }
.tt-filters__group summary svg { width: 16px; height: 16px; transition: transform .2s; }
.tt-filters__group[open] summary svg { transform: rotate(180deg); }
.tt-filters__list { display: grid; gap: .1rem; margin-top: .6rem; max-height: 280px; overflow-y: auto; }
.tt-filters__list a { padding: .35rem .5rem; border-radius: 8px; color: var(--tt-muted); text-decoration: none; font-size: .82rem; }
.tt-filters__list a:hover, .tt-filters__list a.is-active { background: var(--tt-soft); color: var(--p); font-weight: 700; }
.tt-switch { display: flex; justify-content: space-between; align-items: center; gap: .8rem; cursor: pointer; font-size: .85rem; font-weight: 600; }
.tt-switch input { position: absolute; opacity: 0; pointer-events: none; }
.tt-switch i { width: 38px; height: 22px; border-radius: 999px; background: color-mix(in srgb, var(--tx) 14%, transparent); position: relative; transition: background .2s; flex: none; }
.tt-switch i::after { content: ""; position: absolute; top: 3px; inset-inline-end: 3px; width: 16px; height: 16px; border-radius: 50%; background: white; transition: inset-inline-end .2s; box-shadow: 0 1px 3px color-mix(in srgb, var(--tx) 30%, transparent); }
.tt-switch input:checked + i { background: var(--p); }
.tt-switch input:checked + i::after { inset-inline-end: 19px; }
.tt-switch input:focus-visible + i { outline: 2px solid var(--p); outline-offset: 2px; }
.tt-sortbar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.4rem; padding: .85rem 1.1rem; margin-bottom: 1rem; }
.tt-sortbar__label { display: inline-flex; align-items: center; gap: .35rem; font-size: .84rem; font-weight: 700; }
.tt-sortbar__label svg { width: 18px; height: 18px; color: var(--p); }
.tt-sortbar a { color: var(--tt-muted); text-decoration: none; font-size: .82rem; padding-block: .2rem; border-bottom: 2px solid transparent; }
.tt-sortbar a:hover { color: var(--p); }
.tt-sortbar a.is-active { color: var(--p); font-weight: 800; border-bottom-color: var(--p); }
.tt-sortbar__count { margin-inline-start: auto; font-size: .78rem; color: var(--tt-muted); }
.tt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.tt-pager { display: flex; justify-content: center; align-items: center; gap: .4rem; margin-top: 1.5rem; flex-wrap: wrap; }
.tt-pager a, .tt-pager span { min-width: 2.3rem; height: 2.3rem; padding-inline: .5rem; box-sizing: border-box; border-radius: 10px; display: inline-grid; place-items: center;
  border: 1px solid var(--tt-line-2); background: var(--tt-card); color: var(--tx); text-decoration: none; font-size: .85rem; }
.tt-pager .is-active { background: var(--p); border-color: var(--p); color: var(--on-p); font-weight: 800; }
.tt-pager a:hover { border-color: var(--p); color: var(--p); } .tt-pager svg { width: 16px; height: 16px; }
.tt-empty { padding: 2rem; text-align: center; color: var(--tt-muted); }
@media (max-width: 1200px) { .tt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tt-catbox__rail { grid-auto-columns: calc((100% - 6 * .7rem) / 7); } }
@media (max-width: 960px) { .tt-shop { grid-template-columns: 1fr; } .tt-filters { position: static; } .tt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .tt-grid { grid-template-columns: 1fr; gap: .6rem; }
  .tt-catbox__rail { grid-auto-columns: calc((100% - 2 * .6rem) / 3.4); }
  .tt-catbox .tt-arrow { display: none; }
  .tt-filters form { grid-template-columns: 1fr; }
  .tt-sortbar { gap: .3rem .9rem; padding: .7rem .8rem; }
}

/* ── صفحهٔ کالا ── */
.tt-pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) 330px; gap: 1.5rem; padding: 1.2rem; align-items: start; }
.tt-pdp__gallery { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "tools main" ". thumbs"; gap: .7rem; }
.tt-pdp__tools { grid-area: tools; display: grid; align-content: start; gap: .6rem; }
.tt-pdp__tools button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--tt-line-2); background: var(--tt-card); color: var(--tx); display: grid; place-items: center; cursor: pointer; }
.tt-pdp__tools button:hover { color: var(--p); border-color: var(--p); } .tt-pdp__tools svg { width: 18px; height: 18px; }
.tt-pdp__main { grid-area: main; aspect-ratio: 1; border: 1px solid var(--tt-line); border-radius: 14px; display: grid; place-items: center; overflow: hidden; background: var(--tt-card); }
.tt-pdp__main img { max-width: 92%; max-height: 92%; object-fit: contain; }
.tt-pdp__thumbs { grid-area: thumbs; display: flex; align-items: center; gap: .4rem; }
.tt-pdp__thumbs .px-rail { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 64px; gap: .5rem; overflow-x: auto; scrollbar-width: none; }
.tt-thumb { width: 64px; height: 64px; padding: 3px; border: 1px solid var(--tt-line); border-radius: 10px; background: var(--tt-card); cursor: pointer; }
.tt-thumb img { width: 100%; height: 100%; object-fit: contain; }
.tt-thumb.is-active { border: 2px solid var(--p); }
.tt-pdp__thumbs .tt-arrow { width: 28px; height: 28px; }
.tt-pdp__title { margin: 0 0 .9rem; font-size: 1.15rem; font-weight: 800; line-height: 1.8; }
.tt-pdp__meta { margin: .2rem 0; font-size: .82rem; color: var(--tt-muted); } .tt-pdp__meta a { color: var(--p); text-decoration: none; }
.tt-pdp__specs { margin-top: 1rem; border: 1px solid var(--tt-line); border-radius: 12px; padding: .8rem 1rem; font-size: .84rem; }
.tt-pdp__specs ul { margin: .5rem 0 0; padding: 0; list-style: none; display: grid; gap: .3rem; }
.tt-pdp__specs li span { color: var(--tt-muted); }
.tt-buy { border: 1px solid var(--tt-line-2); border-radius: 14px; padding: 1rem; display: grid; gap: .75rem; }
.tt-buy__price { text-align: start; } .tt-buy__price b { font-size: 1.35rem; font-weight: 900; } .tt-buy__price small { color: var(--tt-muted); font-size: .8rem; }
.tt-buy__stock { margin: 0; font-size: .8rem; color: var(--p); font-weight: 600; }
.tt-buy__stock.is-out { color: color-mix(in srgb, var(--danger) 80%, var(--tx)); }
.tt-buy__form { display: flex; gap: .6rem; align-items: stretch; }
.tt-qty { display: inline-flex; align-items: center; border: 1px solid var(--tt-line-2); border-radius: 10px; overflow: hidden; }
.tt-qty button { width: 36px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--tx); display: grid; place-items: center; }
.tt-qty button:hover { color: var(--p); } .tt-qty svg { width: 15px; height: 15px; }
.tt-qty input { width: 2.4rem; text-align: center; border: 0; font: inherit; font-weight: 700; background: transparent; color: var(--tx); }
.tt-buy__note { margin: 0; font-size: .85rem; }
.tt-buy__policies { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .76rem; color: var(--tt-muted); }
.tt-buy__policies li { display: flex; align-items: center; gap: .4rem; } .tt-buy__policies svg { width: 14px; height: 14px; color: var(--p); }
.tt-tabs { padding: 0 1.2rem 1.4rem; }
.tt-tabs__bar { display: flex; gap: 1.5rem; border-bottom: 1px solid var(--tt-line); margin-bottom: 1.2rem; }
.tt-tabs__bar button { border: 0; background: none; font: inherit; font-size: .88rem; font-weight: 700; color: var(--tt-muted); padding: 1rem 0 .8rem; border-bottom: 2px solid transparent; cursor: pointer; }
.tt-tabs__bar button[aria-selected="true"] { color: var(--p); border-bottom-color: var(--p); }
.tt-tabs__panel h2 { display: inline-block; margin: 0 0 1rem; padding-bottom: .5rem; font-size: .95rem; font-weight: 800; border-bottom: 2px solid var(--p); }
.tt-prose { font-size: .9rem; line-height: 2.1; } .tt-prose p { margin: 0 0 .8rem; }
.tt-specs { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; max-width: 720px; }
.tt-specs li { display: grid; grid-template-columns: 180px 1fr; gap: 1rem; padding: .55rem .8rem; border-radius: 8px; background: color-mix(in srgb, var(--tx) 3%, var(--tt-card)); font-size: .85rem; }
.tt-specs span { color: var(--tt-muted); }
.tt-related { border: 1px solid var(--p); border-radius: var(--tt-r); overflow: hidden; background: var(--tt-card); }
.tt-related__head { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1.1rem; background: var(--p); color: var(--on-p); }
.tt-related__head h2 { margin: 0; font-size: .92rem; font-weight: 800; }
.tt-related__head a { color: inherit; text-decoration: none; font-size: .8rem; font-weight: 700; display: inline-flex; align-items: center; gap: .2rem; }
.tt-related__head svg { width: 14px; height: 14px; }
.tt-related__row { display: flex; align-items: center; gap: .5rem; padding: .8rem; }
.tt-related .px-rail { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * .7rem) / 6); gap: .7rem; overflow-x: auto; scrollbar-width: none; }
.tt-related .tt-card { padding: .7rem; } .tt-related .tt-card__img { height: 140px; margin-bottom: .6rem; } .tt-related .tt-card__title { font-size: .8rem; }
@media (max-width: 1100px) { .tt-pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .tt-buy { grid-column: 1 / -1; } .tt-related .px-rail { grid-auto-columns: calc((100% - 3 * .7rem) / 4); } }
@media (max-width: 760px) {
  .tt-pdp { grid-template-columns: 1fr; padding: .8rem; }
  .tt-pdp__gallery { grid-template-columns: 1fr; grid-template-areas: "main" "thumbs"; }
  .tt-pdp__tools { position: absolute; z-index: 2; margin: .5rem; }
  .tt-pdp__gallery { position: relative; }
  .tt-buy { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); background: var(--tt-card); z-index: 5; box-shadow: 0 -10px 24px -18px color-mix(in srgb, var(--tx) 45%, transparent); }
  .tt-specs li { grid-template-columns: 1fr; gap: .2rem; }
  .tt-related .px-rail { grid-auto-columns: 44%; } .tt-related .tt-arrow { display: none; }
  .tt-related .tt-card { flex-direction: column; }
}

/* ── پانویس ── */
.tt-footer { margin-top: 2.5rem; background: var(--tt-card); border-top: 3px solid color-mix(in srgb, var(--p) 55%, transparent); }
.tt-footer__top { border-bottom: 1px solid var(--tt-line); }
.tt-footer__toprow { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .9rem; }
.tt-footer__policies { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .8rem; font-weight: 600; }
.tt-footer__policies li { display: inline-flex; align-items: center; gap: .35rem; } .tt-footer__policies svg { width: 16px; height: 16px; color: var(--p); }
.tt-totop { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .9rem; border: 1px solid var(--tt-line-2); border-radius: 10px; color: var(--tx);
  text-decoration: none; font-size: .8rem; white-space: nowrap; }
.tt-totop svg { width: 15px; height: 15px; } .tt-totop:hover { color: var(--p); border-color: var(--p); }
.tt-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1fr; gap: 2rem; padding-block: 2.2rem; }
.tt-footer__grid > div { display: grid; align-content: start; gap: .55rem; }
.tt-footer__grid a { color: var(--tt-muted); text-decoration: none; font-size: .82rem; width: fit-content; } .tt-footer__grid a:hover { color: var(--p); }
.tt-footer__title { font-weight: 800; font-size: .9rem; margin-bottom: .3rem; }
.tt-footer__brand { display: inline-flex !important; align-items: center; gap: .5rem; color: var(--tx) !important; font-size: 1rem !important; }
.tt-footer__brand img { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; }
.tt-footer__about p { margin: 0; color: var(--tt-muted); font-size: .82rem; line-height: 2; }
.tt-footer__about ul { margin: .3rem 0 0; padding: 0; list-style: none; display: grid; gap: .35rem; font-size: .8rem; }
.tt-footer__about li { display: flex; align-items: center; gap: .5rem; } .tt-footer__about li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--p); flex: none; }
.tt-footer__contact { margin: 0; font-size: .82rem; color: var(--tt-muted); } .tt-footer__contact b { color: var(--tx); font-weight: 700; }
.tt-seal { display: inline-block; padding: .35rem; border: 1px solid var(--tt-line); border-radius: 12px; background: white; }
.tt-seal img { display: block; width: 96px; height: auto; }
.tt-footer__copy { border-top: 1px solid var(--tt-line); background: color-mix(in srgb, var(--tx) 3%, var(--tt-card)); text-align: center; padding: 1rem; font-size: .78rem; color: var(--tt-muted); }
@media (max-width: 900px) { .tt-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .tt-footer__grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .tt-footer__toprow { flex-wrap: wrap; }
  .tt-footer { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}

/* ── نوار پایین موبایل ── */
.tt-tabbar { display: none; }
@media (max-width: 860px) {
  .tt-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 50; background: var(--tt-card);
    border-top: 1px solid var(--tt-line); padding: .35rem .3rem calc(.35rem + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px -18px color-mix(in srgb, var(--tx) 40%, transparent); }
  .tt-tabbar a, .tt-tabbar button { display: grid; justify-items: center; gap: .15rem; border: 0; background: none; font: inherit; font-size: .66rem; color: var(--tt-muted); text-decoration: none; cursor: pointer; }
  .tt-tabbar__i { position: relative; width: 40px; height: 32px; display: grid; place-items: center; border-radius: 12px; }
  .tt-tabbar__i svg { width: 21px; height: 21px; }
  .tt-tabbar__i b { position: absolute; top: -4px; inset-inline-end: 0; min-width: 16px; height: 16px; border-radius: 999px; background: var(--p); color: var(--on-p); font-size: .6rem; display: grid; place-items: center; }
  .tt-tabbar .is-active { color: var(--p); font-weight: 700; } .tt-tabbar .is-active .tt-tabbar__i { background: var(--p); color: var(--on-p); }
  .lx-tahrir main { padding-bottom: 80px; }
}

/* زیربخش‌ها زیرِ کاروسلِ دسته‌ها */
.tt-subcats { display: flex; flex-wrap: wrap; gap: .5rem; }
.tt-subcats a { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .95rem; border: 1px solid var(--tt-line-2); border-radius: 999px;
  background: var(--tt-card); color: var(--tx); text-decoration: none; font-size: .82rem; font-weight: 600; }
.tt-subcats a:hover { border-color: var(--p); color: var(--p); }
.tt-subcats a.is-active { background: var(--p); border-color: var(--p); color: var(--on-p); }
.tt-subcats b { font-weight: 800; color: var(--tt-muted); font-size: .8rem; }

/* ── اندازه‌ها دقیقاً مطابق سایت مرجع (custom.css و کلاس‌های tailwindِ آنلاین تحریر) ──
   پایهٔ site-public ارتفاع خط ۱٫۸۵ دارد؛ در این پوسته همه‌چیز را درشت و دکمه‌ها را دوخطی می‌کرد. */
.lx-tahrir { line-height: 1.6; }
.lx-tahrir h1, .lx-tahrir h2, .lx-tahrir h3 { line-height: 1.5; }
.tt-btn { white-space: nowrap; padding: .75rem 1rem; font-size: .9375rem; border-radius: 8px; line-height: 1.4; }
.tt-crumbs { font-size: .75rem; padding-block: .25rem; }
.tt-pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) 300px; gap: 1.25rem; padding: 1rem; }
.tt-pdp__title { font-size: 1.125rem; font-weight: 700; line-height: 1.5; margin-bottom: .5rem; }
.tt-pdp__meta { font-size: .75rem; }
.tt-pdp__main { max-height: 420px; }
.tt-pdp__tools button { width: 44px; height: 44px; }
.tt-buy { padding: .9rem; gap: .6rem; align-content: start; border-radius: 12px; }
.tt-buy__price b { font-size: 1.25rem; font-weight: 700; }
.tt-buy__price small { font-size: .75rem; }
.tt-buy__stock { font-size: .8125rem; }
.tt-qty { height: 40px; width: 7rem; flex: none; justify-content: space-between; border-radius: 8px; }
.tt-qty button { width: 2.25rem; height: 100%; }
.tt-qty input { width: 2.5rem; font-size: .875rem; font-weight: 500; }
.tt-buy__form { align-items: center; }
.tt-buy__form .tt-btn { height: 40px; padding-block: 0; font-size: .875rem; }
.tt-buy__policies { font-size: .72rem; }
.tt-tabs__bar button { font-size: .85rem; padding: .8rem 0 .7rem; }
.tt-tabs__panel h2 { font-size: .9rem; }
.tt-prose { font-size: .875rem; line-height: 1.9; }
.tt-related__head { padding: .65rem 1rem; }
.tt-related__head h2 { font-size: .875rem; }
.tt-related .tt-card__img { height: 120px; }
.tt-related .tt-card__title { font-size: .78rem; min-height: 3.2em; }
.tt-related .tt-card__price b { font-size: .875rem; }
/* کارت کالا: عنوان text-sm/md:text-base، قیمت bold */
.tt-card { padding: .75rem .9rem; border-radius: 16px; }
.tt-card__img { height: 190px; margin-bottom: .9rem; }
.tt-card__title { font-size: .875rem; line-height: 1.7; min-height: 3.4em; }
.tt-card__price b { font-size: .95rem; font-weight: 700; }
.tt-card__ph svg { width: 34px; height: 34px; }
/* سربرگ: لوگو ۴۸، جستجو ۴۰، منو ۰٫۸ */
.tt-header__row { padding-block: .6rem; gap: 1.25rem; }
.tt-search input { height: 40px; font-size: .875rem; border-radius: 10px; }
.tt-btn-outline { padding: .45rem .8rem; font-size: .8rem; border-radius: 8px; }
.tt-nav__row { gap: 1.25rem; }
.tt-nav__row > a, .tt-mega__btn { font-size: .8rem; padding-block: .55rem; }
.tt-head h2 { font-size: 1rem; font-weight: 700; }
.tt-cat__name { font-size: .8rem; }
.tt-band__intro h2 { font-size: 1rem; }
/* پانویس: ستون‌ها ۰٫۸۲ */
.tt-footer__grid { padding-block: 1.8rem; gap: 1.6rem; }
.tt-footer__title { font-size: .875rem; }
.tt-footer__grid a, .tt-footer__about p, .tt-footer__contact, .tt-footer__about ul { font-size: .8125rem; }
.tt-totop, .tt-footer__policies { font-size: .78rem; }
.tt-footer__copy { font-size: .75rem; }
.tt-sortbar { padding: .7rem 1rem; } .tt-sortbar a, .tt-sortbar__label { font-size: .8rem; }
.tt-filters form { gap: .75rem; } .tt-filters__title { font-size: .9rem; }
@media (max-width: 1100px) { .tt-pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 760px) { .tt-pdp { grid-template-columns: 1fr; } .tt-pdp__main { max-height: none; } }
/* سرریزِ افقی: ردیف‌های کشوییِ grid بدون min-width:0 از ستونِ والد بیرون می‌زدند و در
   بخشِ خالی کلِ صفحه به چپ می‌لغزید. هر فرزندِ grid/flex باید بتواند کوچک شود. */
.lx-tahrir { overflow-x: clip; }
.tt-page, .tt-page > *, .tt-shop, .tt-shop > *, .tt-shop__main, .tt-catbox, .tt-catbox__row, .tt-section, .tt-band,
.tt-related, .tt-related__row, .tt-cats { min-width: 0; }
.tt-catbox__rail, .tt-cats__rail, .tt-band__rail, .tt-related .px-rail, .tt-pdp__thumbs .px-rail { min-width: 0; max-width: 100%; }
.tt-shop__main { width: 100%; }
.tt-pdp > *, .tt-pdp__gallery > *, .tt-pdp__info, .tt-buy, .tt-tabs, .tt-grid > * { min-width: 0; }
.tt-pdp__main img { max-width: 100%; height: auto; }
.tt-pdp__title, .tt-card__title { overflow-wrap: anywhere; }
/* موبایل: فهرستِ دسته‌ها در فیلتر تکرارِ کاروسل و زیربخش‌هاست؛ فقط «فقط موجود» و دکمه در یک ردیف */
@media (max-width: 960px) {
  .tt-filters__title, .tt-filters__group { display: none; }
  .tt-filters form { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: .6rem .8rem; }
  .tt-filters .tt-btn { padding: .5rem .9rem; font-size: .8rem; }
  .tt-subcats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; }
  .tt-subcats a, .tt-subcats b { flex: none; }
  .tt-sortbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tt-sortbar a, .tt-sortbar__label { flex: none; }
}

/* ═══ سربرگ: اندازه‌های اندازه‌گیری‌شده از مرجع (۱۴۴۰px) ═══
   نوار آیه ~۵۲px، ردیف لوگو ~۷۰px (لوگو ۶۲، جستجو ۴۲، ورود ۳۶)، ردیف منو دقیقاً ۴۰px */
.tt-header__row { padding-block: .45rem; }
.tt-logo img { width: 62px; height: 62px; border-radius: 14px; }
.tt-search { max-width: 670px; }
.tt-search input { height: 42px; border-radius: 10px; }
.tt-btn-outline { height: 36px; box-sizing: border-box; }
.tt-nav__row { height: 40px; align-items: center; }
.tt-nav__row > a, .tt-mega__btn { padding-block: 0; line-height: 40px; font-size: .8rem; }
.tt-mega__btn { color: var(--tx); font-weight: 600; }

/* ═══ منوی دسته‌ها: دوستونه مثل مرجع ═══ */
.tt-mega { position: relative; }
.tt-mega__panel { position: absolute; top: 100%; inset-inline-start: 0; inset-inline-end: auto; width: 300px; max-width: calc(100vw - 1.5rem);
  display: flex; max-height: 70vh; min-height: min(320px, 50vh); padding: 0; gap: 0; grid-template-columns: none;
  background: var(--tt-card); border: 1px solid var(--tt-line-2); border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 40px -12px color-mix(in srgb, var(--tx) 25%, transparent);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s, width .2s; z-index: 60; }
.tt-mega:hover .tt-mega__panel, .tt-mega:focus-within .tt-mega__panel { opacity: 0; visibility: hidden; }
.tt-mega.is-open .tt-mega__panel { opacity: 1; visibility: visible; transform: none; }
.tt-mega__panel.has-l2 { width: min(640px, calc(100vw - 1.5rem)); }
.tt-mega__l1 { width: 288px; max-width: 100%; flex: none; display: flex; flex-direction: column; border-inline-end: 1px solid var(--tt-line); }
.tt-mega__panel:not(.has-l2) .tt-mega__l1 { width: 100%; border: 0; }
.tt-mega__head { margin: 0; padding: .6rem .75rem; border-bottom: 1px solid var(--tt-line); font-size: .75rem; font-weight: 600; }
.tt-mega__list { list-style: none; margin: 0; padding: .5rem; overflow-y: auto; flex: 1; display: grid; align-content: start; gap: 2px; }
.tt-mega__list a { display: flex; align-items: center; gap: .75rem; padding: .45rem .5rem .45rem .75rem; border-radius: 8px; text-decoration: none; color: var(--tx);
  font-size: .875rem; font-weight: 500; }
.tt-mega__list li.is-on a, .tt-mega__list a:hover { color: var(--p); background: color-mix(in srgb, var(--p) 6%, transparent); }
.tt-mega__ic { width: 36px; height: 36px; flex: none; border-radius: 8px; background: color-mix(in srgb, var(--tx) 5%, var(--tt-card)); display: grid; place-items: center; overflow: hidden; }
.tt-mega__ic img { width: 24px; height: 24px; object-fit: contain; } .tt-mega__ic svg { width: 18px; height: 18px; color: var(--tt-muted); }
.tt-mega__name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-mega__chev { width: 16px; height: 16px; color: var(--tt-muted); flex: none; }
.tt-mega__foot { border-top: 1px solid var(--tt-line); padding: .5rem; }
.tt-mega__foot a { display: flex; justify-content: center; align-items: center; gap: .3rem; padding: .5rem; border-radius: 8px; color: var(--p); font-size: .85rem; font-weight: 600; text-decoration: none; }
.tt-mega__foot a:hover { background: color-mix(in srgb, var(--p) 6%, transparent); } .tt-mega__foot svg { width: 16px; height: 16px; }
.tt-mega__l2 { flex: 1; min-width: 0; display: none; background: linear-gradient(180deg, color-mix(in srgb, var(--tx) 3%, var(--tt-card)), var(--tt-card)); }
.tt-mega__panel.has-l2 .tt-mega__l2 { display: block; }
.tt-mega__pane { height: 100%; display: flex; flex-direction: column; }
.tt-mega__pane[hidden] { display: none; }
.tt-mega__pane-head { padding: .5rem .75rem; border-bottom: 1px solid var(--tt-line); display: grid; gap: .1rem; }
.tt-mega__pane-head b { font-size: .875rem; font-weight: 600; } .tt-mega__pane-head small { font-size: .69rem; color: var(--tt-muted); }
.tt-mega__pane ul { list-style: none; margin: 0; padding: .75rem .5rem; overflow-y: auto; display: grid; align-content: start; gap: .6rem; }
.tt-mega__pane a { display: block; padding: .15rem .25rem; border-radius: 8px; color: var(--tx); font-size: .875rem; font-weight: 600; text-decoration: none; }
.tt-mega__pane a:hover { color: var(--p); }

/* ═══ صفحه‌های داخلی ═══ */
.tt-hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 6rem); text-align: center; color: white;
  background: linear-gradient(135deg, var(--p), var(--tt-dark) 55%, var(--tt-dark)); }
.tt-hero::before { content: ""; position: absolute; inset: 0; opacity: .1; background-image: radial-gradient(circle at 20% 50%, white 1px, transparent 1px); background-size: 24px 24px; }
.tt-hero__in { position: relative; display: grid; justify-items: center; gap: .9rem; }
.tt-hero__badge { display: inline-block; border-radius: 999px; background: color-mix(in srgb, white 20%, transparent); padding: .25rem 1rem; font-size: .875rem; font-weight: 500; }
.tt-hero h1 { margin: 0; font-size: clamp(1.875rem, 3.6vw, 2.25rem); font-weight: 700; line-height: 1.4; }
.tt-hero p { margin: 0; max-width: 42rem; font-size: clamp(1rem, 1.6vw, 1.125rem); line-height: 2; opacity: .9; }
.tt-hero.is-light { color: var(--tx); padding-block: clamp(3rem, 5vw, 4rem); background: linear-gradient(135deg, var(--tt-soft), var(--tt-card), var(--tt-soft)); }
.tt-hero.is-light::before { display: none; }
.tt-hero.is-light p { color: var(--tt-muted); opacity: 1; font-size: 1rem; max-width: 36rem; }
.tt-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; padding: 0; border-radius: 16px; }
.tt-story__text { padding: clamp(2rem, 4vw, 3rem); }
.tt-story__text h2 { margin: 0 0 1.5rem; font-size: 1.5rem; font-weight: 700; }
.tt-story__text .tt-prose { text-align: justify; font-size: 1rem; line-height: 2; color: color-mix(in srgb, var(--tx) 70%, transparent); }
.tt-story__brand { display: grid; place-content: center; justify-items: center; gap: .6rem; padding: clamp(2rem, 4vw, 3rem); background: var(--tt-soft); text-align: center; }
.tt-story__brand img { width: 80px; height: 80px; border-radius: 16px; object-fit: contain; }
.tt-story__mark { width: 80px; height: 80px; border-radius: 16px; background: var(--p); color: var(--on-p); display: grid; place-items: center; font-size: 1.875rem; font-weight: 700; }
.tt-story__brand b { font-size: 1.125rem; font-weight: 600; } .tt-story__brand small { color: var(--tt-muted); font-size: .875rem; }
.tt-contact { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.tt-contact__form { padding: 2rem; border-radius: 16px; display: grid; gap: 1.1rem; }
.tt-contact__form h2 { margin: 0; font-size: 1.25rem; font-weight: 700; } .tt-contact__form > p { margin: -.6rem 0 0; font-size: .875rem; }
.tt-contact__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.tt-ccard { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem; border-radius: 12px; text-decoration: none; color: var(--tx); transition: border-color .15s, box-shadow .15s; }
.tt-ccard:hover { border-color: color-mix(in srgb, var(--p) 30%, transparent); box-shadow: 0 8px 20px -14px color-mix(in srgb, var(--tx) 40%, transparent); }
.tt-ccard--wide { grid-column: 1 / -1; }
.tt-ccard__i { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--p) 10%, transparent); color: var(--p); transition: .15s; }
.tt-ccard:hover .tt-ccard__i { background: var(--p); color: var(--on-p); } .tt-ccard__i svg { width: 20px; height: 20px; }
.tt-ccard small { display: block; font-size: .75rem; font-weight: 500; color: var(--tt-muted); } .tt-ccard b { display: block; margin-top: .25rem; font-weight: 600; font-size: .95rem; }
.tt-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ═══ فرم‌ها (تماس، تکمیل سفارش): ورودی ۴۴px، گوشه ۱۰px ═══ */
.tt-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.tt-field { display: grid; gap: .4rem; font-size: .875rem; font-weight: 600; }
.tt-field--wide { grid-column: 1 / -1; }
.tt-field em { color: color-mix(in srgb, var(--danger) 80%, var(--tx)); font-style: normal; }
.tt-field input, .tt-field select, .tt-field textarea { width: 100%; box-sizing: border-box; min-height: 44px; padding: .6rem .9rem; border: 1px solid var(--tt-line-2);
  border-radius: 10px; background: var(--tt-card); font: inherit; font-weight: 400; font-size: .875rem; color: var(--tx); transition: border-color .15s, box-shadow .15s; }
.tt-field textarea { min-height: 100px; resize: vertical; }
.tt-field input:focus, .tt-field select:focus, .tt-field textarea:focus { outline: 0; border-color: var(--p); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 15%, transparent); }
.tt-field.has-error input, .tt-field.has-error select, .tt-field.has-error textarea { border-color: color-mix(in srgb, var(--danger) 70%, transparent); }
.tt-field__err { color: color-mix(in srgb, var(--danger) 80%, var(--tx)); font-weight: 500; font-size: .78rem; }
.tt-alert { margin: 0 0 1rem; padding: .7rem 1rem; border-radius: 10px; font-size: .85rem; background: color-mix(in srgb, var(--danger) 10%, var(--tt-card)); color: color-mix(in srgb, var(--danger) 80%, var(--tx)); }
.tt-btn--block { display: flex; width: 100%; box-sizing: border-box; }
.tt-muted { color: var(--tt-muted); }

/* ═══ سبد خرید ═══ */
.tt-tabs-line { display: flex; gap: 1.5rem; border-bottom: 1px solid var(--tt-line); }
.tt-tabs-line span { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 0; font-size: .875rem; color: var(--tt-muted); }
.tt-tabs-line .is-active { color: var(--p); border-bottom: 2px solid var(--p); margin-bottom: -1px; }
.tt-tabs-line b { min-width: 1.25rem; height: 1.25rem; padding-inline: .3rem; box-sizing: border-box; border-radius: 6px; background: var(--p); color: var(--on-p); font-size: .7rem; display: inline-grid; place-items: center; }
.tt-cartgrid { display: grid; grid-template-columns: minmax(0, 1fr) 436px; gap: 1.5rem; align-items: start; }
.tt-cart__list { padding: 0; overflow: hidden; }
.tt-cart__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--tt-line); }
.tt-cart__head h1 { margin: 0; font-size: 1.125rem; font-weight: 700; }
.tt-cart__head .tt-btn-outline { font-size: .8rem; }
.tt-cartrow { display: flex; gap: 1.25rem; padding: 1.4rem 1.25rem; border-bottom: 1px solid var(--tt-line); }
.tt-cartrow__img { position: relative; width: 120px; height: 120px; flex: none; }
.tt-cartrow__img a { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 10px; overflow: hidden; background: var(--tt-card); }
.tt-cartrow__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tt-cartrow__del { position: absolute; top: 2px; inset-inline-end: 2px; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--tt-line-2);
  background: var(--tt-card); display: grid; place-items: center; cursor: pointer; color: var(--tx); }
.tt-cartrow__del:hover { color: color-mix(in srgb, var(--danger) 80%, var(--tx)); } .tt-cartrow__del svg { width: 15px; height: 15px; }
.tt-cartrow__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.tt-cartrow__title { color: var(--tx); text-decoration: none; font-size: 1rem; font-weight: 600; line-height: 1.6; }
.tt-cartrow__title:hover { color: var(--p); } .tt-cartrow__body > small { font-size: .78rem; }
.tt-cartrow__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.tt-cartrow__price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .3rem; row-gap: .1rem; }
.tt-cartrow__price .tt-muted { flex-basis: 100%; }
.tt-cartrow__price b { color: color-mix(in srgb, var(--ok) 85%, var(--tx)); font-size: 1rem; font-weight: 700; }
.tt-cartrow__price small { font-size: .72rem; }
.tt-cartrow .tt-qty { width: 128px; height: 40px; }
.tt-qty form { display: contents; } .tt-qty b { font-size: .875rem; font-weight: 500; min-width: 2rem; text-align: center; }
.tt-cart__next { display: flex; align-items: center; gap: .3rem; padding: 1rem 1.25rem; color: var(--p); text-decoration: none; font-size: .9rem; font-weight: 600; }
.tt-cart__next svg { width: 16px; height: 16px; }
.tt-sum { padding: 1.25rem; display: grid; gap: .1rem; position: sticky; top: 150px; }
.tt-sum h2 { margin: 0 0 .75rem; font-size: 1rem; font-weight: 700; }
.tt-sum__coupon { display: flex; gap: .5rem; margin-bottom: .6rem; }
.tt-sum__coupon input { flex: 1; min-width: 0; height: 42px; box-sizing: border-box; padding: 0 .9rem; border: 1px solid var(--tt-line-2); border-radius: 10px; font: inherit; font-size: .85rem; background: var(--tt-card); color: var(--tx); }
.tt-sum__coupon .tt-btn { height: 42px; padding: 0 1rem; font-size: .85rem; }
.tt-sum__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--tt-line); font-size: .875rem; }
.tt-sum__row.is-green span:last-child { color: color-mix(in srgb, var(--ok) 85%, var(--tx)); font-weight: 700; }
.tt-sum__row.is-total { border-bottom: 0; padding-block: 1rem; font-weight: 700; font-size: .95rem; }
.tt-sum__row.is-total b { color: color-mix(in srgb, var(--ok) 85%, var(--tx)); font-size: 1.125rem; } .tt-sum__row.is-total small { font-weight: 400; color: var(--tt-muted); }
.tt-sum .tt-btn--block { height: 52px; font-size: 1rem; margin-top: .25rem; }
.tt-sum__note { margin: .8rem 0 0; font-size: .75rem; line-height: 1.9; color: var(--tt-muted); }
.tt-sum__back { display: inline-flex; align-items: center; gap: .2rem; margin-top: .8rem; color: var(--tt-muted); font-size: .8rem; text-decoration: none; justify-self: center; }
.tt-sum__back svg { width: 14px; height: 14px; }
.tt-sum__items { list-style: none; margin: 0 0 .4rem; padding: 0; display: grid; gap: .6rem; max-height: 300px; overflow-y: auto; }
.tt-sum__items li { display: flex; align-items: center; gap: .6rem; font-size: .8rem; }
.tt-sum__thumb { width: 44px; height: 44px; flex: none; border-radius: 8px; border: 1px solid var(--tt-line); display: grid; place-items: center; overflow: hidden; background: var(--tt-card); }
.tt-sum__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; } .tt-sum__thumb svg { width: 18px; color: var(--tt-muted); }
.tt-sum__name { flex: 1; min-width: 0; line-height: 1.6; } .tt-sum__name small { color: var(--tt-muted); }
.tt-cartbar { display: none; }
.tt-emptybox { display: grid; justify-items: center; gap: .6rem; padding: 2rem 1rem 2.4rem; text-align: center; }
.tt-emptybox__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--tt-soft); color: var(--p); display: grid; place-items: center; }
.tt-emptybox__icon svg { width: 28px; height: 28px; }
.tt-emptybox h1 { margin: .4rem 0 0; font-size: 1.05rem; font-weight: 700; } .tt-emptybox p { margin: 0 0 .6rem; color: var(--tt-muted); font-size: .875rem; }

/* ═══ تکمیل سفارش و پرداخت ═══ */
.tt-steps { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: .5rem; counter-reset: none; }
.tt-steps li { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--tt-muted); }
.tt-steps li:not(:last-child)::after { content: ""; width: clamp(1.5rem, 6vw, 5rem); height: 2px; border-radius: 2px; background: var(--tt-line-2); margin-inline-start: .5rem; }
.tt-steps li.is-done::after { background: var(--p); }
.tt-steps span { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; border: 1.5px solid var(--tt-line-2); font-weight: 700; font-size: .78rem; background: var(--tt-card); }
.tt-steps .is-done span, .tt-steps .is-active span { background: var(--p); border-color: var(--p); color: var(--on-p); }
.tt-steps .is-active { color: var(--tx); font-weight: 700; } .tt-steps a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.tt-checkout__main { display: grid; gap: 1.25rem; min-width: 0; }
.tt-co { padding: 1.25rem 1.4rem 1.5rem; }
.tt-co__title { display: flex; align-items: center; gap: .5rem; margin: 0 0 1.1rem; font-size: 1rem; font-weight: 700; }
.tt-co__title svg { width: 20px; height: 20px; color: var(--p); }
.tt-choices { display: grid; gap: .6rem; }
.tt-choice { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border: 1px solid var(--tt-line-2); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.tt-choice input { position: absolute; opacity: 0; pointer-events: none; }
.tt-choice__dot { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--tt-line-2); box-sizing: border-box; transition: .15s; }
.tt-choice:has(input:checked), .tt-choice.is-on { border-color: var(--p); background: color-mix(in srgb, var(--p) 5%, var(--tt-card)); }
.tt-choice:has(input:checked) .tt-choice__dot, .tt-choice.is-on .tt-choice__dot { border: 5px solid var(--p); }
.tt-choice:has(input:focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 18%, transparent); }
.tt-choice.is-off { opacity: .55; cursor: not-allowed; }
.tt-choice__body { flex: 1; display: grid; gap: .1rem; } .tt-choice__body b { font-size: .9rem; font-weight: 600; } .tt-choice__body small { font-size: .75rem; color: var(--tt-muted); }
.tt-choice__cost { font-size: .85rem; font-weight: 600; }
.tt-narrowpage { max-width: 640px; }
.tt-paybox { padding: 2rem 1.75rem; display: grid; justify-items: center; gap: .7rem; text-align: center; }
.tt-paybox h1 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.tt-paybox__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--tt-soft); color: var(--p); }
.tt-paybox__icon svg { width: 30px; height: 30px; }
.tt-paybox__icon.is-ok { background: color-mix(in srgb, var(--ok) 14%, var(--tt-card)); color: color-mix(in srgb, var(--ok) 85%, var(--tx)); }
.tt-paybox__icon.is-fail { background: color-mix(in srgb, var(--danger) 12%, var(--tt-card)); color: color-mix(in srgb, var(--danger) 80%, var(--tx)); }
.tt-paybox__amount { margin: .2rem 0; } .tt-paybox__amount b { font-size: 1.6rem; font-weight: 800; } .tt-paybox__amount small { color: var(--tt-muted); }
.tt-paybox__gw { width: 100%; max-width: 360px; display: grid; gap: .6rem; } .tt-paybox__gw .tt-btn { height: 48px; }
.tt-paybox__safe { display: inline-flex; align-items: center; gap: .35rem; margin: .4rem 0 0; font-size: .75rem; color: var(--tt-muted); }
.tt-paybox__safe svg { width: 14px; height: 14px; }
.tt-paybox p { margin: 0; font-size: .875rem; } .tt-note { padding: .8rem 1rem; border-radius: 10px; background: var(--tt-soft); width: 100%; box-sizing: border-box; }
.tt-cardnum { font-size: 1.2rem; font-weight: 800; letter-spacing: .08em; }
.tt-result__items { width: 100%; max-width: 420px; text-align: start; border-top: 1px solid var(--tt-line); padding-top: .8rem; }

@media (max-width: 1100px) { .tt-cartgrid { grid-template-columns: minmax(0, 1fr) 360px; } }
@media (max-width: 900px) {
  .tt-cartgrid, .tt-contact { grid-template-columns: 1fr; }
  .tt-sum { position: static; }
  .tt-story { grid-template-columns: 1fr; }
  .tt-cartgrid .tt-sum .tt-btn--block { display: none; }
  .tt-cartbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: fixed; inset-inline: 0;
    bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 45; padding: .65rem 1rem; background: var(--tt-card); border-top: 1px solid var(--tt-line);
    box-shadow: 0 -10px 24px -18px color-mix(in srgb, var(--tx) 45%, transparent); }
  .tt-cartbar small { display: block; font-size: .7rem; color: var(--tt-muted); } .tt-cartbar b { font-size: 1rem; }
  .tt-cartbar .tt-btn { height: 44px; font-size: .85rem; }
  .tt-cartpage { padding-bottom: 80px; }
}
@media (max-width: 640px) {
  .tt-fields { grid-template-columns: 1fr; }
  .tt-contact__cards { grid-template-columns: 1fr; }
  .tt-cartrow { gap: .8rem; padding: 1rem .9rem; } .tt-cartrow__img { width: 88px; height: 88px; }
  .tt-cartrow__title { font-size: .875rem; } .tt-cart__head { padding: .8rem .9rem; } .tt-cart__head h1 { font-size: 1rem; }
  .tt-steps li { font-size: .72rem; } .tt-steps li:not(:last-child)::after { width: 1rem; }
  .tt-co { padding: 1rem; } .tt-contact__form { padding: 1.25rem; }
}

/* ═══ اندازه‌های صفحه‌های داخلی، اندازه‌گیری‌شده از مرجع در ۱۴۴۰px ═══
   سربرگ تمام‌عرض با حاشیهٔ ۱۶px (لوگو ۶۴، ردیف لوگو ۶۸، منو ۴۰)؛ محتوا ۴۰px از لبه‌ها؛
   تماس: فرم ~۸۰۰ و کارت‌ها ~۵۲۰ در دو ستون */
.tt-header__row, .tt-nav__row { max-width: none; padding-inline: 1rem; }
.tt-header__row { padding-block: 2px; min-height: 68px; box-sizing: border-box; }
.tt-logo img { width: 64px; height: 64px; }
.tt-wrap { max-width: 1440px; padding-inline: clamp(1rem, 2.78vw, 2.5rem); }
.tt-contact { grid-template-columns: minmax(0, 800fr) minmax(0, 520fr); gap: 2.5rem; }
.tt-contact__cards { align-content: start; }
.tt-ccard { align-items: center; padding: 1.25rem; }

/* ═══ «دربارهٔ ما» مثل مرجع (۱۴۴۰px): سربرگ ۳۲۰px، داستان ۳۵۰px، «چرا…» نوار روشن با ۴ کارت ۱۶۵px، دعوت ۲۳۶px ═══ */
.tt-hero:not(.is-light) { min-height: 320px; box-sizing: border-box; display: grid; align-items: center; padding-block: 3rem; }
.tt-hero:not(.is-light) .tt-hero__in { gap: 1.1rem; }
.tt-story { min-height: 350px; box-shadow: 0 1px 3px color-mix(in srgb, var(--tx) 6%, transparent); }
.tt-story__text { padding: 3rem; }
.tt-story__text .tt-prose { font-size: .95rem; line-height: 1.75; }
.tt-story__text .tt-prose p { margin: 0 0 1rem; }
.tt-story__brand { background: color-mix(in srgb, var(--p) 11%, var(--tt-card)); gap: .75rem; }
.tt-story__stat { min-width: 80px; height: 80px; padding-inline: .75rem; box-sizing: border-box; border-radius: 14px; background: var(--p); color: var(--on-p);
  display: grid; place-items: center; font-size: 1.75rem; font-weight: 800; margin-bottom: .5rem; }
.tt-why { background: color-mix(in srgb, var(--p) 4%, var(--tt-card)); padding-block: 4rem; margin-block: 2rem; }
.tt-why__title { margin: 0 0 2rem; text-align: center; font-size: 1.5rem; font-weight: 700; }
.tt-why__sub { margin: -1.25rem 0 2rem; text-align: center; color: var(--tt-muted); }
.tt-why__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.tt-why__card { display: grid; justify-items: center; align-content: start; gap: .5rem; padding: 1.5rem 1.25rem; border-radius: 12px; text-align: center; min-height: 165px; box-sizing: border-box; }
.tt-why__i { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; margin-bottom: .5rem;
  background: color-mix(in srgb, var(--p) 10%, var(--tt-card)); color: var(--p); }
.tt-why__i svg { width: 20px; height: 20px; }
.tt-why__card b { font-size: 1rem; font-weight: 700; } .tt-why__card small { font-size: .82rem; color: var(--tt-muted); line-height: 1.7; }
.tt-cta { border-radius: 16px; padding: 3.5rem 1.5rem; min-height: 236px; box-sizing: border-box; text-align: center; color: var(--on-p);
  background: linear-gradient(135deg, var(--p), color-mix(in srgb, var(--p) 78%, black)); display: grid; justify-items: center; align-content: center; gap: .9rem; margin-bottom: 2rem; }
.tt-cta h2 { margin: 0; font-size: 1.5rem; font-weight: 700; } .tt-cta p { margin: 0; opacity: .9; }
.tt-cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: .75rem; }
.tt-cta__btn { display: inline-flex; align-items: center; height: 48px; padding-inline: 1.5rem; border-radius: 12px; background: var(--tt-card); color: var(--p);
  text-decoration: none; font-weight: 700; font-size: .9rem; border: 2px solid transparent; box-sizing: border-box; }
.tt-cta__btn.is-ghost { background: transparent; color: var(--on-p); border-color: color-mix(in srgb, var(--on-p) 60%, transparent); }
.tt-cta__btn:hover { opacity: .92; }
@media (max-width: 760px) {
  .tt-story__text { padding: 1.5rem; } .tt-why { padding-block: 2.5rem; } .tt-cta { padding: 2.25rem 1.25rem; }
  .tt-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* overflow-x:auto روی ردیف منو، پنلِ بازشوی دسته‌ها را (که زیرِ ردیف می‌افتد) می‌بُرید و منو باز نمی‌شد؛
   در رایانه سرریز آزاد است و پیوندهای اضافه کوتاه می‌شوند، در موبایل همان اسکرولِ افقی می‌ماند. */
@media (min-width: 761px) {
  .tt-nav__row { overflow: visible; }
  .tt-nav__row > a { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
}

/* ═══ «پربازدیدترین محصولات»: اندازه‌های دقیقِ مرجع (dk-incredible-box) ═══
   کادر ۱۰px بالا/پایین، کارت سفید ۲۲۰px (≥۱۰۲۴px)، تصویر بقیهٔ ارتفاع، عنوان ۱۲px دو خطی، قیمت ۱۴px؛
   ستونِ عنوان ۱/۷ عرض در ≥۱۳۸۰px (۶ کارت) */
.tt-band { display: flex; flex-direction: row; gap: 0; padding: 10px 0; border-radius: 12px; min-height: 220px; }
.tt-band::before { display: none; }
.tt-band__intro { flex: none; width: calc(100% / 5.5); padding-inline: .5rem; box-sizing: border-box; gap: .5rem; }
.tt-band__intro h2 { font-size: 1rem; font-weight: 700; line-height: 1.6; }
.tt-band__rail { flex: 1; min-width: 0; padding: 0 20px 0 10px; border-radius: 0; gap: 10px; grid-auto-columns: calc((100% - 30px - 4 * 10px) / 4.5); }
.tt-band .tt-card { height: 220px; padding: 10px; box-sizing: border-box; display: flex; flex-direction: column; border-radius: 12px; }
.tt-band .tt-card__img { flex: 1; min-height: 0; height: auto; aspect-ratio: auto; margin-bottom: 4px; display: flex; align-items: center; justify-content: center; background: #fff; }
.tt-band .tt-card__img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.tt-band .tt-card__body { padding: 0; gap: 2px; flex: none; }
.tt-band .tt-card__title { font-size: 12px; line-height: 1.5; min-height: 0; -webkit-line-clamp: 2; text-align: start; font-weight: 400; color: #0c0c0c; }
.tt-band .tt-card__price b { font-size: 14px; font-weight: 700; } .tt-band .tt-card__price small { font-size: 11px; }
@media (min-width: 1380px) {
  .tt-band__intro { width: calc(100% / 7); }
  .tt-band__rail { grid-auto-columns: calc((100% - 30px - 5 * 10px) / 6); }
}
@media (max-width: 1023px) and (min-width: 761px) { .tt-band, .tt-band .tt-card { min-height: 215px; } .tt-band .tt-card { height: 215px; } }
@media (max-width: 760px) {
  .tt-band { flex-direction: row; padding: 10px 0; }
  .tt-band__intro { width: calc(100% / 3.5); grid-auto-flow: row; justify-content: center; }
  .tt-band__rail { grid-auto-columns: calc((100% - 20px) / 2.5); padding: 0 10px; }
  .tt-band .tt-card { height: 200px; }
  .tt-band .tt-card__img { height: auto; width: 100%; }
}

/* بخش‌های مشترک (px-wrap: پرفروش‌ها، بنرهای کنار هم) هم‌عرضِ بقیهٔ پوسته — مرجع ۴۰px از لبه در ۱۴۴۰px */
.px-wrap { width: 100%; max-width: 1440px; padding-inline: clamp(1rem, 2.78vw, 2.5rem); box-sizing: border-box; }

/* ═══ «پرفروش‌ترین کالاها» مثل dk-section مرجع: کادر سفید با خط ۱px و گوشهٔ ۸px، padding ۱۶/۲۰،
   تیتر وسط ۱۶px بی‌خط‌زیر، «مشاهده همه» ۱۲px؛ ۴ ستون، ردیف: تصویر ۶۴، رتبه ۳۲، نام ۱۳px دو خطی ═══ */
.lx-tahrir .px-ranked { background: #fff; border: 1px solid #e0e0e0; border-radius: .5rem; padding: 1rem 1.25rem; }
.lx-tahrir .px-ranked .px-head { align-items: center; margin-bottom: 1rem; }
.lx-tahrir .px-ranked .px-head > div:first-child { flex: 1; text-align: center; }
.lx-tahrir .px-ranked .px-head h2 { font-size: 1rem; font-weight: 700; color: #0c0c0c; padding: 0; }
.lx-tahrir .px-ranked .px-head h2::after { display: none; }
.lx-tahrir .px-ranked .px-link { font-size: .75rem; font-weight: 500; color: var(--p); gap: .25rem; }
.lx-tahrir .px-ranked__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.lx-tahrir .px-ranked__list a { gap: .625rem; padding: .5rem; align-items: center; }
.lx-tahrir .px-ranked__img { width: 64px; height: 64px; border-radius: .5rem; padding: 0; }
.lx-tahrir .px-ranked__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lx-tahrir .px-ranked__n { width: 2rem; height: 2rem; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 1.125rem; font-weight: 700; color: var(--p); }
.lx-tahrir .px-ranked__t { font-size: 13px; color: #1f2937; font-weight: 400; -webkit-line-clamp: 2; }
@media (max-width: 1023px) { .lx-tahrir .px-ranked__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lx-tahrir .px-ranked__list { grid-template-columns: 1fr; } }

/* ═══ «محصولات دیگر این گروه» مثل dk-pdp-recommendations مرجع: نوار ۵۲px، کارت ۲۲۰px با padding ۱۰،
   تصویرِ مربعی بالای کارت (contain)، نام ۱۲px راست‌چین دو خطی زیرِ تصویر، قیمت ۱۴px — نام دیگر روی عکس نمی‌افتد ═══ */
.tt-related { border-radius: 8px; }
.tt-related__head { min-height: 52px; padding: 12px 16px; box-sizing: border-box; }
.tt-related__head h2 { font-size: .9375rem; font-weight: 700; }
.tt-related__row { padding: 12px 10px; }
.tt-related .px-rail { grid-auto-columns: calc((100% - 5 * 10px) / 6); gap: 10px; }
.tt-related .tt-card { height: 220px; padding: 10px; box-sizing: border-box; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; }
.tt-related .tt-card__img { flex: 1 1 auto; min-height: 0; height: auto; margin: 0 0 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; aspect-ratio: auto; }
.tt-related .tt-card__img img { position: static; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.tt-related .tt-card__body { flex: none; padding: 0; gap: 4px; display: grid; }
.tt-related .tt-card__title { font-size: 12px; line-height: 1.5; min-height: 0; text-align: start; font-weight: 400; color: #0c0c0c;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tt-related .tt-card__foot { justify-content: flex-start; }
.tt-related .tt-card__price b { font-size: 14px; font-weight: 700; } .tt-related .tt-card__price small { font-size: 11px; }
@media (max-width: 1100px) { .tt-related .px-rail { grid-auto-columns: calc((100% - 3 * 10px) / 4); } }
@media (max-width: 760px) { .tt-related .px-rail { grid-auto-columns: 44%; } .tt-related .tt-card { height: 210px; } }

/* دکمهٔ «+» افزودن به سبد روی کارتِ کالا (کنارِ قیمت) و پیامِ کوتاهِ پایین صفحه */
.tt-card__foot { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.tt-card__add { margin: 0; flex: none; }
.tt-card__add button { width: 30px; height: 30px; border-radius: 9px; border: 1px solid color-mix(in srgb, var(--p) 35%, transparent);
  background: color-mix(in srgb, var(--p) 8%, #fff); color: var(--p); display: grid; place-items: center; cursor: pointer; padding: 0; transition: .15s; }
.tt-card__add button:hover, .tt-card__add button.is-done { background: var(--p); color: var(--on-p); border-color: var(--p); }
.tt-card__add svg { width: 16px; height: 16px; }
.tt-band .tt-card__add button, .tt-related .tt-card__add button { width: 26px; height: 26px; border-radius: 8px; }
.tt-toast { position: fixed; inset-inline: 0; bottom: calc(80px + env(safe-area-inset-bottom)); margin-inline: auto; width: max-content; max-width: calc(100% - 2rem);
  background: #111827; color: #fff; padding: .6rem 1rem; border-radius: 10px; font-size: .85rem; z-index: 90; opacity: 0; transform: translateY(8px);
  pointer-events: none; transition: .2s; }
.tt-toast.is-on { opacity: 1; transform: none; }

/* انتخاب طرح/رنگ (مرجع: کادرِ گرد با «طرح: …» و شمارِ طرح‌ها، تراشه‌های ۳۶px؛ تراشهٔ فعلی با تیک و رنگ اصلی) */
.tt-variants { margin-top: 1rem; border: 1px solid var(--tt-line-2); border-radius: 12px; padding: .9rem 1rem; display: grid; gap: .75rem; max-width: 440px; }
.tt-variants__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .8rem; color: var(--tt-muted); }
.tt-variants__head b { color: var(--tx); font-weight: 700; font-size: .85rem; }
.tt-variants__head small { background: var(--tt-soft); border-radius: 999px; padding: .1rem .55rem; font-size: .7rem; }
.tt-variants__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.tt-chip { display: inline-flex; align-items: center; gap: .3rem; min-height: 36px; padding: 0 .9rem; border: 1px solid var(--tt-line-2); border-radius: 10px;
  color: var(--tx); text-decoration: none; font-size: .8rem; background: var(--tt-card); transition: .15s; }
.tt-chip:hover { border-color: var(--p); color: var(--p); }
.tt-chip.is-on { border: 2px solid var(--p); color: var(--p); font-weight: 700; background: color-mix(in srgb, var(--p) 6%, var(--tt-card)); }
.tt-chip svg { width: 14px; height: 14px; }

/* ═══ سربرگ «عینِ» مرجع (dk-header-*): ردیف ۶۸px با حاشیهٔ ۱۶px؛ لوگو ۶۴px چسبیده به راست،
   جستجو کنارِ لوگو (۱۲px فاصله، تا ۶۷۲px، ۴۴px، #f1f3f5 با خط #e5e7eb، گوشهٔ ۸px)؛
   ته ردیف: دکمهٔ ۴۰px با خط #d1d5db و سبد ۴۰×۴۰؛ منو ۴۰px با پیوندهای ۱۲px (#4b5563) و خطِ زیرین هنگامِ اشاره ═══ */
.tt-header__row { height: 68px; min-height: 68px; padding-block: 0; gap: 1rem; justify-content: space-between; }
.tt-logo img { width: auto; height: 4rem; border-radius: 0; object-fit: contain; }
.tt-search { flex: 1 1 auto; max-width: 42rem; margin-inline-start: .75rem; margin-inline-end: auto; }
.tt-search input { height: 44px; background: #f1f3f5; border: 1px solid #e5e7eb; border-radius: 8px; font-size: .875rem; padding-inline: 2.6rem 12px; }
.tt-search input:hover { background: #eef0f2; border-color: #d1d5db; }
.tt-search input:focus { background: #fff; border-color: var(--p); box-shadow: 0 0 0 1px color-mix(in srgb, var(--p) 20%, transparent); }
.tt-search input::placeholder { color: #9ca3af; }
.tt-search svg { width: 20px; height: 20px; color: #6b7280; inset-inline-start: 12px; }
.tt-actions { gap: .5rem; margin-inline-start: 0; }
.tt-btn-outline.tt-login { height: 40px; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: .8125rem; font-weight: 500; color: #374151; gap: .5rem; }
.tt-btn-outline.tt-login:hover { border-color: var(--p); color: var(--p); background: color-mix(in srgb, var(--p) 8%, #fff); }
.tt-btn-outline.tt-login svg { width: 20px; height: 20px; }
.tt-header__desk .tt-cart { width: 40px; height: 40px; color: #4b5563; }
.tt-header__desk .tt-cart svg { width: 24px; height: 24px; }
.tt-header__desk .tt-cart b { top: 0; inset-inline-end: 0; height: 1rem; min-width: 1rem; padding: 0 .2rem; font-size: 10px; }
.tt-nav { border-top: 0; border-bottom: 1px solid #e5e7eb; }
.tt-nav__row { height: 40px; gap: 0; padding-inline: 1rem; }
.tt-nav__row > a, .tt-mega__btn { padding: 0 8px; line-height: 38px; font-size: .75rem; font-weight: 500; color: #4b5563; border-bottom: 2px solid transparent; }
.tt-nav__row > a:hover, .tt-mega__btn:hover { color: #4b5563; border-bottom-color: var(--p); }
.tt-mega__btn { gap: .375rem; } .tt-mega__btn svg { width: 18px; height: 18px; }
.tt-variants { margin-inline: 0; min-width: 0; }
.tt-variants legend { padding: 0; width: 100%; margin-bottom: .75rem; }
.tt-chip input { position: absolute; opacity: 0; pointer-events: none; }
label.tt-chip { position: relative; cursor: pointer; }
.tt-chip svg { display: none; } .tt-chip.is-on svg, .tt-chip:has(input:checked) svg { display: inline; }
.tt-chip:has(input:checked) { border: 2px solid var(--p); color: var(--p); font-weight: 700; background: color-mix(in srgb, var(--p) 6%, var(--tt-card)); }
.tt-chip:has(input:focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 20%, transparent); }
.tt-mega__l2head { font-weight: 700; }
.tt-mega__l3 { list-style: none; margin: .15rem 0 .5rem; padding-inline-start: .75rem; display: grid; gap: .1rem; }
.tt-mega__l3 a { font-size: .72rem; color: var(--tt-muted); }
.tt-filters__checks { max-height: 220px; overflow-y: auto; }
.tt-filters__checks label { display: flex; align-items: center; gap: .4rem; font-size: .78rem; cursor: pointer; }
.tt-filters__checks small { margin-inline-start: auto; color: var(--tt-muted); }
.tt-card__swatches { display: flex; align-items: center; gap: .25rem; margin-top: .35rem; }
.tt-card__swatches img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 1px solid var(--tt-line-2); }
.tt-card__swatches small { font-size: .7rem; color: var(--tt-muted); margin-inline-start: .2rem; }
/* تراشهٔ طرح با عکس (مثل مجدمارکت): بندانگشتیِ مربع + برچسب زیرش */
.tt-chip--swatch { flex-direction: column; gap: .3rem; padding: .35rem; min-height: 0; width: 84px; text-align: center; line-height: 1.4; }
.tt-chip--swatch img { width: 72px; height: 72px; object-fit: contain; border-radius: 8px; background: var(--tt-card); }
.tt-chip--swatch span { display: inline-flex; align-items: center; justify-content: center; gap: .2rem; font-size: .72rem; }
.tt-variants__chips:has(.tt-chip--swatch) { max-height: 340px; overflow-y: auto; }
.tt-cartrow__opt { display: inline-block; margin-top: .2rem; font-size: .75rem; color: var(--p); background: color-mix(in srgb, var(--p) 8%, var(--tt-card)); border-radius: 6px; padding: .05rem .5rem; }

/* پیگیری سفارش: کارتِ فرم ۷۲۰px وسط، با فاصلهٔ استاندارد از سربرگ */
.tt-track { max-width: 760px; display: grid; gap: 1rem; padding-block: 2.5rem 3rem; }
.tt-track__form { padding: 2rem; border-radius: 16px; display: grid; gap: 1.25rem; }
.tt-track__form input { width: 100%; box-sizing: border-box; height: 44px; border: 1px solid var(--tt-line-2); border-radius: 10px; padding-inline: .9rem; font: inherit; font-weight: 400; background: var(--tt-card); }
.tt-track__form input:focus { outline: 0; border-color: var(--p); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 15%, transparent); }
.tt-track__result { padding: 1.1rem 1.5rem; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tt-track__status { background: color-mix(in srgb, var(--p) 10%, var(--tt-card)); color: var(--p); border-radius: 999px; padding: .2rem .8rem; font-size: .8rem; font-weight: 700; }
@media (max-width: 640px) { .tt-track__form { padding: 1.25rem; } .tt-track .tt-fields { grid-template-columns: 1fr; } }

/* ═══ «مگ»: کارت‌های مقاله (۳ ستون) و صفحهٔ مقاله (ستونِ خواندنیِ ۷۶۰px) ═══ */
.tt-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.tt-post-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; padding: 0; }
.tt-post-card__img { display: block; aspect-ratio: 16 / 9; background: var(--tt-soft); overflow: hidden; }
.tt-post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tt-post-card:hover .tt-post-card__img img { transform: scale(1.03); }
.tt-post-card__img .tt-card__ph { height: 100%; display: grid; place-items: center; }
.tt-post-card__body { padding: 1rem 1.1rem 1.2rem; display: grid; gap: .45rem; }
.tt-post-card__date { font-size: .72rem; color: var(--tt-muted); }
.tt-post-card h2, .tt-post-card h3 { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.7; }
.tt-post-card h2 a, .tt-post-card h3 a { color: var(--tx); text-decoration: none; } .tt-post-card h2 a:hover { color: var(--p); }
.tt-post-card p { margin: 0; font-size: .85rem; color: var(--tt-muted); line-height: 1.9; }
.tt-post-card__more { display: inline-flex; align-items: center; gap: .2rem; font-size: .8rem; font-weight: 700; color: var(--p); text-decoration: none; }
.tt-post-card__more svg { width: 14px; height: 14px; }
.tt-pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.5rem; font-size: .85rem; }
.tt-pager a { color: var(--p); font-weight: 700; text-decoration: none; }
.tt-article-wrap { max-width: 900px; display: grid; gap: 1rem; }
.tt-crumbs { display: flex; gap: .4rem; font-size: .8rem; color: var(--tt-muted); } .tt-crumbs a { color: var(--p); text-decoration: none; }
.tt-article { padding: clamp(1.25rem, 4vw, 2.75rem); border-radius: 16px; }
.tt-article__head h1 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; line-height: 1.6; }
.tt-article__meta { margin: .5rem 0 1.25rem; font-size: .8rem; color: var(--tt-muted); }
.tt-article__cover { width: 100%; border-radius: 12px; margin-bottom: 1.5rem; }
.tt-article__body { font-size: 1rem; line-height: 2.1; color: color-mix(in srgb, var(--tx) 88%, transparent); max-width: 760px; margin-inline: auto; }
.tt-article__body h2 { font-size: 1.35rem; margin: 2rem 0 .75rem; color: var(--tx); } .tt-article__body h3 { font-size: 1.12rem; margin: 1.5rem 0 .5rem; color: var(--tx); }
.tt-article__body a { color: var(--p); text-underline-offset: 4px; }
.tt-article__body img { max-width: 100%; height: auto; border-radius: 10px; }
.tt-article__body blockquote { margin: 1.25rem 0; padding: .75rem 1.25rem; border-inline-start: 4px solid var(--p); background: var(--tt-soft); border-radius: 8px; }
.tt-article__body table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .9rem; display: block; overflow-x: auto; }
.tt-article__body th, .tt-article__body td { border: 1px solid var(--tt-line-2); padding: .5rem .75rem; text-align: start; }
.tt-article__body iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 10px; }
.tt-article__more h2 { font-size: 1.1rem; margin: 1rem 0 .75rem; }
@media (max-width: 900px) { .tt-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tt-posts { grid-template-columns: 1fr; } }
