/* ==========================================================================
   تتا (TETA) — فروشگاه لوازم یدکی تهویه خودروهای ایرانی و خارجی
   Bootstrap 5.3 (RTL) · تم روشن · مینیمال
   --------------------------------------------------------------------------
   فهرست:
   01. توکن‌های طراحی (پالت، فاصله، سایه)
   02. پایه و تایپوگرافی
   03. شخصی‌سازی کامپوننت‌های بوت‌استرپ
   04. هدر، ناوبری و مگامنو
   05. بخش‌های صفحه اصلی
   06. کارت محصول و اسکرولر
   07. صفحات داخلی (فروشگاه، محصول، سبد، پرداخت، حساب، تماس)
   08. فوتر و ناوبری موبایل
   09. ابزارها و دسترس‌پذیری
   ========================================================================== */

/* Google reCAPTCHA v3: badge may be hidden if a privacy/terms notice is shown near the form. */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.recaptcha-legal {
  margin: .35rem 0 0;
  font-size: .72rem;
  line-height: 1.55;
  color: var(--tp-muted, #687089);
}

.recaptcha-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 01. Design tokens
   ========================================================================== */
:root {
  /* پالت اصلی (برگرفته از پالت Thermopart) */
  --tp-navy: #0A1057;
  --tp-navy-700: #1B2378;
  --tp-navy-900: #070B3D;
  --tp-steel: #517AAB;
  --tp-steel-700: #3A6091; /* نسخه‌ی تیره‌تر برای متن (کنتراست AA) */
  --tp-sky: #C9D8F1;
  --tp-sky-100: #E4ECF8;
  --tp-sky-50: #F2F6FC;
  --tp-snow: #FCFDFF;

  /* رنگ‌های کمکی */
  --tp-accent: #E8590C;
  --tp-accent-700: #C2410C;
  --tp-success: #13795B;
  --tp-success-50: #ECF8F3;
  --tp-warning: #F2A100;
  --tp-danger: #C53030;

  /* متن و خطوط */
  --tp-ink: #141938;
  --tp-body: #3C4460;
  --tp-muted: #687089;
  --tp-border: #E2E8F3;

  /* شکل و عمق */
  --tp-radius-sm: 10px;
  --tp-radius: 16px;
  --tp-radius-lg: 24px;
  --tp-shadow-sm: 0 1px 2px rgba(10, 16, 87, .06);
  --tp-shadow: 0 12px 32px -14px rgba(10, 16, 87, .22);
  --tp-shadow-lg: 0 28px 60px -24px rgba(10, 16, 87, .32);
  --tp-ease: cubic-bezier(.4, 0, .2, 1);
  --tp-header-offset: 9.5rem;

  /* فاصله عمودی سکشن‌ها (یک ریتم در همه صفحات) */
  --tp-section-y: 4.5rem;
  --tp-section-y-sm: 3rem;
  --tp-section-y-after-hero: 2rem;

  /* اتصال به متغیرهای بوت‌استرپ */
  --bs-body-font-family: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --bs-body-font-size: .95rem;
  --bs-body-line-height: 1.85;
  --bs-body-color: var(--tp-body);
  --bs-body-bg: var(--tp-snow);
  --bs-emphasis-color: var(--tp-ink);
  --bs-heading-color: var(--tp-ink);
  --bs-primary: var(--tp-navy);
  --bs-primary-rgb: 10, 16, 87;
  --bs-secondary-color: var(--tp-muted);
  --bs-link-color: var(--tp-steel-700);
  --bs-link-color-rgb: 58, 96, 145;
  --bs-link-hover-color: var(--tp-navy);
  --bs-link-hover-color-rgb: 10, 16, 87;
  --bs-border-color: var(--tp-border);
  --bs-border-radius: var(--tp-radius-sm);
  --bs-border-radius-lg: var(--tp-radius);
  --bs-border-radius-xl: var(--tp-radius-lg);
  --bs-focus-ring-color: rgba(81, 122, 171, .35);
  --bs-success: var(--tp-success);
  --bs-success-rgb: 19, 121, 91;
}

/* 02. Base & typography
   ========================================================================== */
html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Scrollbars — thin themed handle (hide Win arrow buttons) */
* {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--tp-steel) 55%, var(--tp-sky)) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

*::-webkit-scrollbar-track {
  margin-block: 6px;
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: color-mix(in srgb, var(--tp-steel) 55%, var(--tp-sky));
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: color-mix(in srgb, var(--tp-navy) 70%, var(--tp-steel));
  background-clip: padding-box;
}

*::-webkit-scrollbar-corner { background: transparent; }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 800;
  line-height: 1.45;
}

a { text-decoration: none; transition: color .2s var(--tp-ease); }

img, svg { max-width: 100%; height: auto; }

::selection { background: var(--tp-sky); color: var(--tp-navy); }

:focus-visible { outline: 2px solid var(--tp-steel); outline-offset: 2px; }

.ltr { direction: ltr; unicode-bidi: isolate; }

.section {
  padding-block: var(--tp-section-y);
  background-color: #fff;
}

.section-sm { padding-block: var(--tp-section-y-sm); }

.section-alt {
  background-color: var(--tp-sky-50);
  background-image:
    radial-gradient(920px 340px at 100% 0%, var(--tp-sky-100), transparent 58%),
    radial-gradient(720px 300px at 0% 100%, rgba(201, 216, 241, .65), transparent 52%);
}

/*
  ریتم فاصله سکشن‌ها:
  - پس‌زمینه یکسان → یک فاصله (نه دو برابر)
  - پس‌زمینه متفاوت → هر سکشن padding خودش را نگه می‌دارد
  - بلافاصله بعد از page-hero → فاصله کوتاه و یکسان
*/
.section:not(.section-alt) + .section:not(.section-alt),
.section:not(.section-alt) + .section-sm,
.section-sm + .section:not(.section-alt) {
  padding-top: 0;
}

/* فاصله واضح بین دو سکشن alt پشت‌سرهم (مثل دسته‌ها → پرفروش‌ها) */
.section.section-alt + .section.section-alt {
  padding-top: clamp(2.25rem, 1.5rem + 2vw, 3.5rem);
}

.page-hero + .section:not(.pt-0) {
  padding-top: var(--tp-section-y-after-hero) !important;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-eyebrow {
  position: relative;
  display: inline-block;
  margin-bottom: .65rem;
  padding: 0 0 .35rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--tp-navy);
}

.section-eyebrow::before {
  content: none;
}

.section-eyebrow::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--tp-steel) 18%,
    var(--tp-navy) 55%,
    transparent 100%
  );
}

.section-title {
  margin: 0;
  font-size: clamp(1.3rem, 1rem + 1.1vw, 1.8rem);
}

.section-desc { margin: .5rem 0 0; color: var(--tp-muted); }

.link-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  flex: none;
  width: auto;
  max-width: max-content;
  padding: .45rem .95rem;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--tp-navy);
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset;
  transition:
    color .2s,
    background-color .2s,
    border-color .2s,
    box-shadow .2s,
    transform .2s var(--tp-ease);
}

.link-more i {
  font-size: .85em;
  transition: transform .2s var(--tp-ease);
}

.link-more:hover {
  color: var(--tp-navy);
  background: var(--tp-sky-50);
  border-color: color-mix(in srgb, var(--tp-steel) 40%, var(--tp-border));
  box-shadow: 0 8px 18px -14px rgba(10, 16, 87, .35);
}

.link-more:hover i { transform: translateX(-3px); }

@media (max-width: 767.98px) {
  :root {
    --tp-section-y: 2.5rem;
    --tp-section-y-sm: 1.75rem;
    --tp-section-y-after-hero: 1.25rem;
  }

  .section-head { margin-bottom: 1.15rem; }
}

/* 03. Bootstrap component overrides
   ========================================================================== */
.btn {
  --bs-btn-font-weight: 600;
  --bs-btn-padding-y: .65rem;
  --bs-btn-padding-x: 1.25rem;
  --bs-btn-font-size: .925rem;
  --bs-btn-border-radius: var(--tp-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

.btn-lg {
  --bs-btn-padding-y: .85rem;
  --bs-btn-padding-x: 1.75rem;
  --bs-btn-font-size: 1rem;
  --bs-btn-border-radius: 12px;
}

.btn-sm {
  --bs-btn-padding-y: .4rem;
  --bs-btn-padding-x: .85rem;
  --bs-btn-font-size: .8125rem;
}

.btn-primary {
  --bs-btn-bg: var(--tp-navy);
  --bs-btn-border-color: var(--tp-navy);
  --bs-btn-hover-bg: var(--tp-navy-700);
  --bs-btn-hover-border-color: var(--tp-navy-700);
  --bs-btn-active-bg: var(--tp-navy-900);
  --bs-btn-active-border-color: var(--tp-navy-900);
  --bs-btn-disabled-bg: var(--tp-navy);
  --bs-btn-disabled-border-color: var(--tp-navy);
  --bs-btn-focus-shadow-rgb: 81, 122, 171;
}

.btn-outline-primary {
  --bs-btn-color: var(--tp-navy);
  --bs-btn-border-color: var(--tp-sky);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--tp-navy);
  --bs-btn-hover-border-color: var(--tp-navy);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--tp-navy-900);
  --bs-btn-active-border-color: var(--tp-navy-900);
  --bs-btn-focus-shadow-rgb: 81, 122, 171;
  background-color: #fff;
}

.btn-soft {
  --bs-btn-color: var(--tp-navy);
  --bs-btn-bg: var(--tp-sky-100);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: var(--tp-navy);
  --bs-btn-hover-bg: var(--tp-sky);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: var(--tp-navy);
  --bs-btn-active-bg: var(--tp-sky);
  --bs-btn-active-border-color: transparent;
  --bs-btn-focus-shadow-rgb: 81, 122, 171;
}

.btn-white {
  --bs-btn-color: var(--tp-navy);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-color: var(--tp-navy);
  --bs-btn-hover-bg: var(--tp-sky);
  --bs-btn-hover-border-color: var(--tp-sky);
  --bs-btn-active-color: var(--tp-navy);
  --bs-btn-active-bg: var(--tp-sky);
  --bs-btn-active-border-color: var(--tp-sky);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  flex: none;
}

.form-label {
  margin-bottom: .4rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--tp-ink);
}

/* Cascading Iran province → city combobox (account / checkout) */
.iran-city-field {
  position: relative;
}

.iran-city-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.iran-city-combobox {
  position: relative;
  width: 100%;
}

.iran-city-input {
  width: 100%;
}

.iran-city-input:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.iran-city-menu {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + .35rem);
  z-index: 30;
  max-height: 14rem;
  margin: 0;
  padding: .35rem;
  overflow: auto;
  list-style: none;
  text-align: right;
  direction: rtl;
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  box-shadow: 0 .5rem 1.25rem rgba(10, 16, 87, .1);
}

.iran-city-menu__item {
  padding: .55rem .75rem;
  border-radius: calc(var(--tp-radius) - 2px);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  color: var(--tp-ink);
}

.iran-city-menu__item:hover,
.iran-city-menu__item.is-active {
  background: rgba(81, 122, 171, .12);
  color: var(--tp-navy);
}

.iran-city-menu__empty {
  padding: .65rem .75rem;
  color: var(--tp-muted, #6c757d);
  font-size: .85rem;
}

.form-control,
.form-select {
  padding-block: .72rem;
  padding-inline: 1rem;
  font-size: .925rem;
  font-weight: 600;
  color: var(--tp-ink);
  background-color: #fff;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset;
  transition: border-color .2s var(--tp-ease), box-shadow .2s var(--tp-ease), background-color .2s;
}

.form-control::placeholder {
  font-weight: 500;
  color: #8A92A8;
}

.form-control.ltr:placeholder-shown { direction: rtl; }

.form-select {
  padding-inline-end: 2.65rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%230A1057' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='m3.5 6 4.5 4.5L12.5 6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  background-size: 12px 12px;
  cursor: pointer;
  appearance: none;
}

.form-control:hover,
.form-select:hover {
  border-color: var(--tp-sky);
  background-color: var(--tp-sky-50);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--tp-steel);
  background-color: #fff;
  box-shadow: 0 0 0 .25rem rgba(81, 122, 171, .18);
}

.form-select:focus {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%230A1057' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='m3.5 6 4.5 4.5L12.5 6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  background-size: 12px 12px;
}

.form-select option,
.form-select optgroup {
  padding: .55rem .85rem;
  font-weight: 600;
  color: var(--tp-ink);
  background-color: #fff;
}

/* Custom select popup (progressive enhancement) */
.tp-select {
  position: relative;
  display: block;
  width: 100%;
}

.tp-select.is-open { z-index: 30; }

.tp-select > select.form-select {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.tp-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  width: 100%;
  padding: .72rem 1rem;
  font-size: .925rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--tp-ink);
  text-align: right;
  background-color: #fff;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset;
  cursor: pointer;
  transition: border-color .2s var(--tp-ease), box-shadow .2s var(--tp-ease), background-color .2s;
}

.tp-select-trigger:hover {
  border-color: var(--tp-sky);
  background-color: var(--tp-sky-50);
}

.tp-select.is-open .tp-select-trigger,
.tp-select-trigger:focus-visible {
  border-color: var(--tp-steel);
  background-color: #fff;
  box-shadow: 0 0 0 .25rem rgba(81, 122, 171, .18);
  outline: 0;
}

.tp-select-trigger::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-inline-start: .15rem;
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%230A1057' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='m3.5 6 4.5 4.5L12.5 6'/%3e%3c/svg%3e") center / 12px no-repeat;
  transition: transform .2s var(--tp-ease);
}

.tp-select.is-open .tp-select-trigger::after { transform: rotate(180deg); }

.tp-select-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--tp-navy);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-select-label.is-placeholder {
  color: var(--tp-steel-700);
  font-weight: 600;
}

.tp-select-menu {
  position: absolute;
  top: calc(100% + .4rem);
  right: 0;
  left: 0;
  z-index: 40;
  display: none;
  max-height: 16.5rem;
  margin: 0;
  padding: .4rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 22px 48px -28px rgba(10, 16, 87, .32);
  scrollbar-gutter: stable;
}

.tp-select-menu::-webkit-scrollbar {
  width: 8px;
}

.tp-select-menu::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.tp-select-menu::-webkit-scrollbar-track {
  margin-block: 8px;
  background: transparent;
}

.tp-select-menu::-webkit-scrollbar-thumb {
  background-color: color-mix(in srgb, var(--tp-steel) 65%, var(--tp-sky));
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.tp-select.is-open .tp-select-menu {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.tp-select-menu > li {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.tp-select-option {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: .6rem .85rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--tp-body);
  text-align: right;
  background: transparent;
  border: 0;
  border-radius: calc(var(--tp-radius-sm) - 2px);
  cursor: pointer;
  transition: background-color .15s, color .15s;
}

.tp-select-option:hover,
.tp-select-option:focus-visible {
  color: var(--tp-navy);
  background: var(--tp-sky-50);
  outline: 0;
}

.tp-select-option.is-selected {
  color: #fff;
  background: var(--tp-navy);
}

.tp-select-option.is-selected:hover,
.tp-select-option.is-selected:focus-visible {
  color: #fff;
  background: var(--tp-navy-700);
}

.tp-select-option:disabled {
  color: var(--tp-muted);
  cursor: not-allowed;
  opacity: .55;
}

.tp-select-option:disabled:hover {
  color: var(--tp-muted);
  background: transparent;
}

.header-search .tp-select {
  position: relative;
  display: block;
  width: auto;
  flex: none;
  align-self: stretch;
}

.header-search .tp-select.is-open {
  z-index: 50;
}

.header-search .tp-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-width: 8.5rem;
  height: 100%;
  padding-block: 0;
  padding-inline: .85rem .75rem;
  font-size: .85rem;
  color: var(--tp-navy);
  background-color: transparent;
  border: 0;
  border-inline-end: 1px solid var(--tp-border);
  border-radius: 0;
  box-shadow: none;
}

.header-search .tp-select-trigger:hover {
  color: var(--tp-navy);
  background-color: color-mix(in srgb, var(--tp-sky) 35%, transparent);
  border: 0;
  border-inline-end: 1px solid var(--tp-border);
  box-shadow: none;
}

.header-search .tp-select.is-open .tp-select-trigger,
.header-search .tp-select-trigger:focus-visible {
  color: var(--tp-navy);
  background-color: #fff;
  border: 0;
  border-inline-end: 1px solid var(--tp-border);
  box-shadow: none;
  outline: 0;
}

.header-search .tp-select-trigger::after {
  width: 11px;
  height: 11px;
  background-size: 11px;
  opacity: .85;
}

.header-search .tp-select-menu {
  top: calc(100% + .55rem);
  min-width: 14rem;
  right: 0;
  left: auto;
}

.tp-select.is-disabled .tp-select-trigger {
  color: var(--tp-muted);
  cursor: not-allowed;
  opacity: .7;
  background-color: var(--tp-sky-50);
}

.form-check-input { border-color: #C3CCDD; }

.form-check-input:checked {
  background-color: var(--tp-navy);
  border-color: var(--tp-navy);
}

.form-check-input:focus {
  border-color: var(--tp-steel);
  box-shadow: 0 0 0 .25rem rgba(81, 122, 171, .18);
}

.form-switch .form-check-input:focus:not(:checked) {
  --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23517AAB'/%3e%3c/svg%3e");
}

.form-range::-webkit-slider-thumb { background-color: var(--tp-navy); }
.form-range::-webkit-slider-thumb:active { background-color: var(--tp-steel); }
.form-range::-moz-range-thumb { background-color: var(--tp-navy); }
.form-range::-moz-range-thumb:active { background-color: var(--tp-steel); }
.form-range::-webkit-slider-runnable-track { background-color: var(--tp-sky-100); }
.form-range::-moz-range-track { background-color: var(--tp-sky-100); }
.form-range:focus::-webkit-slider-thumb { box-shadow: 0 0 0 1px #fff, 0 0 0 .25rem rgba(81, 122, 171, .25); }
.form-range:focus::-moz-range-thumb { box-shadow: 0 0 0 1px #fff, 0 0 0 .25rem rgba(81, 122, 171, .25); }

.input-group-text {
  background: var(--tp-sky-50);
  border-color: var(--tp-border);
  color: var(--tp-muted);
}

.breadcrumb {
  --bs-breadcrumb-divider: "›";
  --bs-breadcrumb-item-active-color: var(--tp-ink);
  --bs-breadcrumb-divider-color: var(--tp-muted);
  margin: 0;
  font-size: .8125rem;
}

.breadcrumb a { color: var(--tp-muted); }
.breadcrumb a:hover { color: var(--tp-navy); }

.pagination {
  --bs-pagination-color: var(--tp-ink);
  --bs-pagination-border-color: var(--tp-border);
  --bs-pagination-hover-color: var(--tp-navy);
  --bs-pagination-hover-bg: var(--tp-sky-50);
  --bs-pagination-hover-border-color: var(--tp-sky);
  --bs-pagination-focus-color: var(--tp-navy);
  --bs-pagination-focus-bg: var(--tp-sky-50);
  --bs-pagination-focus-box-shadow: 0 0 0 .25rem rgba(81, 122, 171, .2);
  --bs-pagination-active-bg: var(--tp-navy);
  --bs-pagination-active-border-color: var(--tp-navy);
  --bs-pagination-disabled-color: #A3AABD;
  gap: .4rem;
}

.pagination .page-link {
  min-width: 42px;
  margin: 0 !important;
  font-weight: 600;
  text-align: center;
  border-radius: var(--tp-radius-sm) !important;
}

.nav-pills {
  --bs-nav-pills-link-active-bg: var(--tp-navy);
  --bs-nav-pills-border-radius: var(--tp-radius-sm);
  --bs-nav-link-color: var(--tp-body);
  --bs-nav-link-hover-color: var(--tp-navy);
  --bs-nav-link-font-weight: 600;
  gap: .35rem;
}

.nav-pills .nav-link { font-size: .875rem; }

.nav-underline {
  --bs-nav-underline-gap: 1.75rem;
  --bs-nav-link-color: var(--tp-muted);
  --bs-nav-link-hover-color: var(--tp-navy);
  --bs-nav-link-font-weight: 700;
  border-bottom: 1px solid var(--tp-border);
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-underline::-webkit-scrollbar { display: none; }

.nav-underline .nav-link {
  padding-block: .9rem;
  white-space: nowrap;
}

.nav-underline .nav-link.active,
.nav-underline .show > .nav-link {
  color: var(--tp-navy);
  border-bottom-color: var(--tp-navy);
}

.accordion {
  --bs-accordion-border-color: var(--tp-border);
  --bs-accordion-border-radius: var(--tp-radius-lg);
  --bs-accordion-inner-border-radius: calc(var(--tp-radius-lg) - 1px);
  --bs-accordion-btn-color: var(--tp-ink);
  --bs-accordion-btn-bg: #fff;
  --bs-accordion-active-color: var(--tp-navy);
  --bs-accordion-active-bg: var(--tp-sky-50);
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%230A1057' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='m3.5 6 4.5 4.5L12.5 6'/%3e%3c/svg%3e");
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%230A1057' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='m3.5 6 4.5 4.5L12.5 6'/%3e%3c/svg%3e");
  --bs-accordion-body-padding-x: 1.25rem;
  --bs-accordion-body-padding-y: 1rem;
  display: grid;
  gap: .75rem;
}

.accordion-item {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--tp-border) !important;
  border-radius: var(--tp-radius-lg) !important;
  box-shadow: 0 10px 28px -24px rgba(10, 16, 87, .2);
}

.accordion-button {
  font-weight: 800;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  box-shadow: none !important;
}

.accordion-button::after {
  background-size: 12px;
  transition: transform .25s var(--tp-ease);
}

.accordion-body {
  font-size: .9rem;
  line-height: 1.9;
  color: var(--tp-muted);
  border-top: 1px solid var(--tp-border);
}

.progress {
  --bs-progress-height: .5rem;
  --bs-progress-bg: var(--tp-sky-100);
  --bs-progress-bar-bg: var(--tp-steel);
  --bs-progress-border-radius: 999px;
}

.table { --bs-table-color: var(--tp-body); --bs-table-border-color: var(--tp-border); }

.dropdown-menu {
  --bs-dropdown-bg: #fff;
  --bs-dropdown-border-color: var(--tp-border);
  --bs-dropdown-border-radius: var(--tp-radius);
  --bs-dropdown-padding-x: .4rem;
  --bs-dropdown-padding-y: .45rem;
  --bs-dropdown-spacer: .5rem;
  --bs-dropdown-link-color: var(--tp-body);
  --bs-dropdown-link-hover-color: var(--tp-navy);
  --bs-dropdown-link-hover-bg: var(--tp-sky-50);
  --bs-dropdown-link-active-color: #fff;
  --bs-dropdown-link-active-bg: var(--tp-navy);
  --bs-dropdown-link-disabled-color: var(--tp-muted);
  --bs-dropdown-header-color: var(--tp-muted);
  --bs-dropdown-divider-bg: var(--tp-border);
  --bs-dropdown-item-padding-x: .85rem;
  --bs-dropdown-item-padding-y: .55rem;
  --bs-dropdown-font-size: .9rem;
  border: 1px solid var(--tp-border);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 22px 48px -28px rgba(10, 16, 87, .32);
}

.dropdown-item {
  font-weight: 600;
  border-radius: calc(var(--tp-radius-sm) - 2px);
  transition: background-color .2s, color .2s;
}

.dropdown-header {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.dropdown-divider {
  margin-block: .4rem;
  opacity: 1;
}

.modal {
  --bs-modal-border-radius: var(--tp-radius-lg);
  --bs-modal-inner-border-radius: calc(var(--tp-radius-lg) - 1px);
  --bs-modal-header-border-color: var(--tp-border);
  --bs-modal-footer-border-color: var(--tp-border);
}

.offcanvas { --bs-offcanvas-width: 320px; }

.badge { font-weight: 600; }

/* 04. Header & navigation
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100px;
  right: 1rem;
  z-index: 2000;
  padding: .6rem 1rem;
  border-radius: var(--tp-radius-sm);
  background: var(--tp-navy);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus { top: 1rem; color: #fff; }

.topbar {
  font-size: .8125rem;
  color: rgba(255, 255, 255, .86);
  background: var(--tp-navy);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
}

.topbar i { margin-inline-end: .35rem; color: var(--tp-sky); }

.topbar-links {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topbar-links a { color: inherit; }
.topbar-links a:hover { color: #fff; }

.site-header {
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--tp-border);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}

/* Below lg the nav becomes a fixed offcanvas; a sticky/filtered header would trap it. */
@media (max-width: 991.98px) {
  .site-header.sticky-top {
    position: relative;
    z-index: auto;
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .header-main {
    padding-block: .55rem;
  }

  .header-main > .container {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-width: 0;
    gap: .5rem;
  }

  .btn-menu {
    justify-self: start;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 1.25rem;
    color: var(--tp-ink);
    background: transparent;
    border: 1px solid var(--tp-border);
    border-radius: 10px;
  }

  .btn-menu:hover,
  .btn-menu:focus-visible {
    color: var(--tp-navy);
    background: var(--tp-sky-50);
    border-color: var(--tp-border);
  }

  .brand {
    justify-self: center;
    min-width: 0;
    margin: 0;
  }

  .brand-logo {
    height: 24px;
  }

  .header-actions {
    justify-self: end;
    gap: .15rem;
    margin-inline-start: 0;
  }

  .header-actions .action-cart {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
  }

  .header-actions .action-cart > i,
  .header-actions .action-cart .icon-wrap > i {
    font-size: 1.25rem;
  }

  .offcanvas-mobile-search {
    margin-bottom: 1rem;
  }

  .offcanvas-mobile-search .header-search {
    max-width: none;
    min-height: 44px;
  }
}

.header-main { padding-block: .9rem; }

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  flex: none;
  color: var(--tp-navy);
  text-align: center;
  line-height: 1;
}

.brand:hover { color: var(--tp-navy); }

.brand-logo {
  display: block;
  width: auto;
  height: 26px;
  margin-inline: auto;
  flex: none;
  object-fit: contain;
}

@media (min-width: 992px) {
  .brand-logo { height: 30px; }
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 1.35rem;
  color: #fff;
  background: linear-gradient(145deg, var(--tp-navy-700), var(--tp-navy));
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18), 0 6px 14px -6px rgba(10, 16, 87, .6);
}

.brand-text {
  display: block;
  margin: 0;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--tp-muted);
  white-space: nowrap;
  text-align: center;
}

.btn-menu {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 1.6rem;
  color: var(--tp-ink);
  background: transparent;
  border: 0;
  border-radius: 12px;
}

.btn-menu:hover { background: var(--tp-sky-50); }

.header-search {
  display: flex;
  flex: 1;
  align-items: center;
  max-width: 640px;
  background: var(--tp-sky-50);
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.header-search:focus-within {
  background: #fff;
  border-color: var(--tp-steel);
  box-shadow: 0 0 0 4px rgba(81, 122, 171, .14);
}

.header-search .form-select {
  width: auto;
  flex: none;
  padding-block: .55rem;
  padding-inline: .85rem 2.2rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--tp-ink);
  background-color: transparent;
  background-position: left .65rem center;
  border: 0;
  border-inline-end: 1px solid var(--tp-border);
  border-radius: 0;
  box-shadow: none;
}

.header-search .form-select:hover,
.header-search .form-select:focus {
  background-color: transparent;
  border-color: transparent;
  border-inline-end-color: var(--tp-border);
  box-shadow: none;
}

.header-search .form-control {
  padding-block: .55rem;
  font-weight: 500;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.header-search .form-control:hover,
.header-search .form-control:focus {
  background-color: transparent;
  border-color: transparent;
  box-shadow: none;
}

.header-search > button[type="submit"] {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  margin: 4px;
  font-size: 1.05rem;
  color: #fff;
  background: var(--tp-navy);
  border: 0;
  border-radius: 9px;
  transition: background-color .2s;
}

.header-search > button[type="submit"]:hover { background: var(--tp-navy-700); }

.header-actions {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-inline-start: auto;
}

.action-phone {
  gap: .65rem;
  height: 44px;
  padding: 0 .9rem 0 .55rem;
  color: var(--tp-navy);
  background: var(--tp-sky-50);
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
}

.action-phone:hover,
.action-phone:focus-visible {
  color: var(--tp-navy);
  background: var(--tp-sky-100);
  border-color: color-mix(in srgb, var(--tp-navy) 12%, var(--tp-border));
  outline: 0;
}

.action-phone-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: #fff;
  background: var(--tp-navy);
  border-radius: 50%;
}

.action-phone-icon > i {
  font-size: .95rem;
  line-height: 1;
}

.header-phone-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .05rem;
  min-width: 0;
  line-height: 1.2;
}

.header-phone-text .ltr {
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--tp-ink);
  font-variant-numeric: tabular-nums;
}

.header-phone-text small {
  font-size: .68rem;
  font-weight: 500;
  color: var(--tp-muted);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  height: 46px;
  padding: 0 .7rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--tp-ink);
  background: transparent;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color .2s, color .2s, border-color .2s;
}

.action-btn:hover,
.action-btn:focus-visible {
  color: var(--tp-navy);
  background: var(--tp-sky-50);
  outline: 0;
}

.action-btn > i,
.action-btn .icon-wrap > i { font-size: 1.35rem; line-height: 1; }

.action-search {
  border: 1px solid var(--tp-border);
}

.icon-wrap { position: relative; display: inline-flex; }

.icon-wrap .count {
  position: absolute;
  top: -7px;
  left: -9px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  font-size: .68rem;
  font-weight: 700;
  color: #fff;
  background: var(--tp-accent-700);
  border: 2px solid #fff;
  border-radius: 999px;
}

.action-cart { border: 1px solid var(--tp-border); }

.cart-text {
  font-size: .85rem;
  font-weight: 800;
  line-height: 1.35;
}

.cart-text small {
  display: block;
  font-size: .7rem;
  font-weight: 500;
  color: var(--tp-muted);
}

.header-nav { border-top: 1px solid var(--tp-border); }

.header-nav .navbar-nav .nav-link {
  position: relative;
  padding: .85rem .9rem;
  white-space: nowrap;
  font-size: .9rem;
  font-weight: 600;
  color: var(--tp-ink);
}

.header-nav .navbar-nav .nav-link:hover,
.header-nav .navbar-nav .nav-link.active { color: var(--tp-navy); }

.header-nav .nav-cats {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-inline-end: .5rem;
  color: #fff !important;
  background: var(--tp-navy);
  border-radius: 10px;
}

.header-nav .nav-cats:hover { background: var(--tp-navy-700); }

.nav-garage {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-inline-start: auto;
  padding: .45rem .9rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--tp-ink);
  background: var(--tp-sky-50);
  white-space: nowrap;
  border: 1px dashed var(--tp-sky);
  border-radius: 999px;
  transition: border-color .2s, background-color .2s;
}

.nav-garage i { font-size: 1.1rem; color: var(--tp-steel-700); }
.nav-garage strong { color: var(--tp-navy); }
.nav-garage:hover { background: #fff; border-color: var(--tp-steel); }

.mega-cats {
  --bs-gutter-x: .5rem;
  --bs-gutter-y: .5rem;
}

.mega-cat {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .55rem;
  height: 100%;
  padding: .55rem .7rem;
  text-align: start;
  color: var(--tp-ink);
  background: var(--tp-sky-50);
  border: 1px solid transparent;
  border-radius: 12px;
  transition:
    background-color .2s var(--tp-ease),
    border-color .2s var(--tp-ease),
    color .2s var(--tp-ease);
}

.mega-cat-media {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: 10px;
  transition:
    border-color .2s var(--tp-ease),
    box-shadow .2s var(--tp-ease);
}

.mega-cat-media img {
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
}

.mega-cat-label {
  min-width: 0;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
}

.mega-cat:hover {
  color: var(--tp-navy);
  background: #fff;
  border-color: var(--tp-sky);
}

.mega-cat:hover .mega-cat-media {
  border-color: var(--tp-sky);
  box-shadow: 0 6px 14px -10px rgba(10, 16, 87, .3);
}

.mega-list {
  display: grid;
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mega-list a { font-size: .85rem; color: var(--tp-muted); }
.mega-list a:hover { color: var(--tp-navy); }

@media (min-width: 992px) {
  .header-nav .offcanvas-body { flex-grow: 1; align-items: center; }

  .header-nav .navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    right: .9rem;
    left: .9rem;
    bottom: -1px;
    height: 2px;
    background: var(--tp-navy);
    border-radius: 2px;
  }

  .header-nav .nav-cats { padding: .55rem 1rem !important; margin-block: .4rem; }

  .mega-menu {
    right: 0;
    left: 0;
    width: 100%;
    margin-top: 0 !important;
    padding-block: 1rem;
    border: 0;
    border-top: 1px solid var(--tp-border);
    border-radius: 0 0 var(--tp-radius-lg) var(--tp-radius-lg);
    box-shadow: var(--tp-shadow-lg);
  }

  .mega-cats {
    --bs-gutter-x: .45rem;
    --bs-gutter-y: .45rem;
  }

  /* باز شدن زیرمنوی محصولات با هاور؛ کلیک می‌رود به shop.html */
  .header-nav .nav-shop > .nav-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
  }

  .header-nav .nav-shop-caret {
    font-size: .7rem;
    line-height: 1;
    opacity: .7;
    transition: transform .2s var(--tp-ease), opacity .2s;
  }

  .header-nav .nav-shop:hover > .nav-link .nav-shop-caret,
  .header-nav .nav-shop.show > .nav-link .nav-shop-caret {
    opacity: 1;
    transform: rotate(180deg);
  }

  .header-nav .nav-shop:hover > .dropdown-menu,
  .header-nav .nav-shop.show > .dropdown-menu {
    display: block;
  }
}

@media (max-width: 991.98px) {
  .header-nav { border-top: 0; }
  .header-nav .offcanvas-header { border-bottom: 1px solid var(--tp-border); }
  .header-nav .navbar-nav .nav-link { padding: .75rem .25rem; border-bottom: 1px solid var(--tp-border); }
  .header-nav .nav-shop > .nav-link,
  .header-nav .nav-shop-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    width: 100%;
    padding: .75rem .25rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--tp-ink);
    text-align: start;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--tp-border);
    border-radius: 0;
  }

  .header-nav .nav-shop-caret {
    font-size: .75rem;
    opacity: .65;
    transition: transform .2s var(--tp-ease);
  }

  .header-nav .nav-shop-toggle[aria-expanded="true"] .nav-shop-caret {
    opacity: 1;
    transform: rotate(180deg);
  }

  .header-nav .nav-cats { display: flex; justify-content: space-between; padding: .7rem 1rem !important; margin: 0 0 .5rem; border-bottom: 0 !important; }

  .header-nav .mega-menu {
    display: none !important;
  }

  .mobile-shop-cats {
    padding: .65rem .15rem .85rem;
  }

  .mobile-shop-all {
    display: block;
    margin-bottom: .65rem;
    padding: .45rem .55rem;
    font-size: .85rem;
    font-weight: 700;
    color: var(--tp-navy);
    background: var(--tp-sky-50);
    border: 1px solid var(--tp-border);
    border-radius: 10px;
  }

  .mobile-shop-cats .mega-cats {
    --bs-gutter-x: .4rem;
    --bs-gutter-y: .4rem;
  }

  .mega-cats {
    --bs-gutter-x: .4rem;
    --bs-gutter-y: .4rem;
  }

  .mega-cat {
    padding: .5rem .65rem;
  }

  .mega-cat-media {
    width: 34px;
    height: 34px;
  }

  .mega-cat-media img {
    width: 20px;
    height: 20px;
  }

  .mega-cat-label { font-size: .8rem; }
  .mega-list { display: none; }
}

/* 05. Home sections
   ========================================================================== */
.hero {
  position: relative;
  padding-block: 3rem 5rem;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 15% 0%, var(--tp-sky-100), transparent 65%),
    linear-gradient(180deg, var(--tp-sky-50), var(--tp-snow));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(81, 122, 171, .16) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%);
  mask-image: linear-gradient(180deg, #000, transparent 75%);
  pointer-events: none;
}

.hero > .container { position: relative; }

.hero-layout {
  display: grid;
  align-items: center;
  gap: 1.5rem;
  grid-template-areas:
    "copy"
    "visual"
    "stats";
}

.hero-copy { grid-area: copy; }
.hero-visual { grid-area: visual; }
.hero-stats { grid-area: stats; }

@media (min-width: 992px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 3rem;
    row-gap: 2.35rem;
    grid-template-areas:
      "copy visual"
      "stats visual";
  }

  .hero-visual {
    align-self: center;
    max-width: 470px;
  }

  .hero-visual > img {
    width: 86%;
  }
}

.hero-title {
  margin-block: 0 1rem;
  font-size: clamp(1.9rem, 1.1rem + 3vw, 3.15rem);
  font-weight: 900;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

@media (min-width: 992px) {
  .hero-title {
    white-space: nowrap;
  }
}

.hero-title .hl {
  color: var(--tp-steel-700);
}

.hero-lead {
  max-width: 540px;
  margin-bottom: 2rem;
  font-size: 1.025rem;
  color: var(--tp-muted);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
  padding: .15rem;
  width: 100%;
  max-width: 100%;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(201, 216, 241, .7);
  border-radius: var(--tp-radius-sm);
  box-shadow: 0 8px 20px -18px rgba(10, 16, 87, .28);
}

.hero-stat {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  padding: .55rem .65rem;
  transition: background-color .25s;
}

.hero-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28%;
  bottom: 28%;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--tp-sky), transparent);
}

.hero-stat:hover {
  background: rgba(255, 255, 255, .7);
  border-radius: calc(var(--tp-radius-sm) - 2px);
}

.hero-stat-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  font-size: .8rem;
  color: var(--tp-navy);
  background: var(--tp-sky-100);
  border-radius: 8px;
  box-shadow: none;
}

.hero-stat-body {
  display: flex;
  flex-direction: column;
  gap: .05rem;
  min-width: 0;
}

.hero-stat strong {
  display: block;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--tp-navy);
  letter-spacing: -.02em;
}

.hero-stat-body span {
  font-size: .68rem;
  font-weight: 500;
  color: var(--tp-muted);
  line-height: 1.35;
}

/* Tablet / narrow hero column */
@media (max-width: 991.98px) {
  .hero-stat {
    gap: .4rem;
    padding: .5rem .45rem;
  }

  .hero-stat-icon {
    width: 26px;
    height: 26px;
    font-size: .75rem;
    border-radius: 7px;
  }

  .hero-stat strong {
    font-size: .82rem;
  }

  .hero-stat-body span {
    font-size: .62rem;
  }
}

/* Phone: compact 3-col chips */
@media (max-width: 767.98px) {
  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: .1rem;
  }

  .hero-stat {
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    padding: .45rem .25rem;
    text-align: center;
  }

  .hero-stat:not(:last-child)::after {
    top: 18%;
    bottom: 18%;
    left: 0;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, var(--tp-sky), transparent);
  }

  .hero-stat-icon {
    width: 24px;
    height: 24px;
    font-size: .7rem;
    border-radius: 6px;
  }

  .hero-stat-body {
    align-items: center;
  }

  .hero-stat strong {
    font-size: .72rem;
  }

  .hero-stat-body span {
    font-size: .58rem;
    line-height: 1.3;
  }
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 470px;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
}

.hero-visual .blob {
  position: absolute;
  inset: 4%;
  background: radial-gradient(
    circle at 40% 35%,
    color-mix(in srgb, var(--tp-sky-100) 85%, #fff) 0%,
    var(--tp-sky-100) 45%,
    color-mix(in srgb, var(--tp-sky) 35%, var(--tp-snow)) 100%
  );
  border-radius: 50%;
}

.hero-visual .ring {
  position: absolute;
  inset: 0;
  border: 1px dashed var(--tp-sky);
  border-radius: 50%;
}

.hero-visual > img {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: block;
  width: 86%;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 28px 34px rgba(10, 16, 87, .35));
  transform: translate(-50%, -50%);
  animation: tp-float 6s ease-in-out infinite;
}

.hero-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem .95rem .6rem 1.1rem;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--tp-ink);
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--tp-shadow);
}

.hero-chip i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  color: var(--tp-navy);
  background: var(--tp-sky-100);
  border-radius: 10px;
}

.hero-chip small { display: block; font-weight: 500; color: var(--tp-muted); }
.hero-chip.is-top { top: 4%; right: -4%; }
.hero-chip.is-bottom { bottom: 8%; left: -4%; }

@keyframes tp-float {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 10px)); }
}

@media (max-width: 991.98px) {
  .hero-visual {
    overflow: hidden;
  }

  .hero-chip.is-top { right: 0; }
  .hero-chip.is-bottom { left: 0; }
}

.finder {
  position: relative;
  z-index: 2;
  margin-block: -2.75rem;
}

/* فضای کافی زیر کارت تا عنوان سکشن بعدی نخورد */
.finder + .section {
  padding-top: clamp(5.5rem, 4.5rem + 3vw, 7rem);
}

.finder-card {
  padding: .85rem 1.35rem 1.25rem;
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-lg);
  box-shadow: var(--tp-shadow-lg);
}

.finder-head {
  display: flex;
  align-items: center;
  margin-bottom: .55rem;
}

.finder-title {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.finder-title .icon-box {
  width: 40px;
  height: 40px;
  font-size: 1.15rem;
  border-radius: 12px;
}

.finder-title h2 { margin: 0; font-size: 1rem; line-height: 1.3; }
.finder-title p { margin: 0; font-size: .75rem; line-height: 1.35; color: var(--tp-muted); }

.icon-box {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  font-size: 1.35rem;
  color: var(--tp-navy);
  background: var(--tp-sky-100);
  border-radius: 14px;
}

.icon-box.is-solid { color: #fff; background: var(--tp-navy); }

.finder-card .nav-pills {
  padding: 4px;
  background: var(--tp-sky-50);
  border-radius: 12px;
}

.features-section {
  position: relative;
  background-color: #fff;
}

.features-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: .4rem;
  background:
    linear-gradient(145deg, #fff 0%, var(--tp-sky-50) 100%);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-lg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 22px 48px -30px rgba(10, 16, 87, .28);
}

@media (max-width: 991.98px) {
  .features-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
  .features-panel { grid-template-columns: 1fr; }
}

.feature {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .95rem;
  height: 100%;
  padding: 1.35rem 1.2rem;
  background: transparent;
  border: 0;
  border-radius: var(--tp-radius);
  transition: background-color .25s, transform .25s var(--tp-ease);
}

.feature:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 18%;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--tp-sky), transparent);
}

@media (max-width: 991.98px) {
  .feature:nth-child(2n)::after { display: none; }
  .feature:nth-child(-n+2)::before {
    content: "";
    position: absolute;
    right: 10%;
    left: 10%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tp-sky), transparent);
  }
}

@media (max-width: 575.98px) {
  .feature:not(:last-child)::after { display: none; }
  .feature:not(:last-child)::before {
    content: "";
    position: absolute;
    right: 8%;
    left: 8%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tp-sky), transparent);
  }
}

.feature:hover {
  background: rgba(255, 255, 255, .8);
  transform: translateY(-2px);
}

.feature-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
  color: #fff;
  background: linear-gradient(145deg, var(--tp-navy-700), var(--tp-navy));
  border-radius: 14px;
  box-shadow: 0 12px 20px -12px rgba(10, 16, 87, .75);
}

.feature-body { min-width: 0; }

.feature h3 {
  margin: 0 0 .25rem;
  font-size: .95rem;
  font-weight: 800;
  color: var(--tp-ink);
}

.feature p {
  margin: 0;
  font-size: .8rem;
  line-height: 1.7;
  color: var(--tp-muted);
}

.cats-scroller {
  --cats-gap: 1rem;
  --cats-visible: 2;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--cats-visible) - 1) * var(--cats-gap)) / var(--cats-visible));
  gap: var(--cats-gap);
  /* فضای هاور translateY تا از بالا کلیپ نشود */
  margin-block: -.5rem;
  padding-block: .5rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 576px) { .cats-scroller { --cats-visible: 3; } }
@media (min-width: 768px) { .cats-scroller { --cats-visible: 5; } }
@media (min-width: 992px) { .cats-scroller { --cats-visible: 6; } }
@media (min-width: 1200px) { .cats-scroller { --cats-visible: 8; } }

.cats-scroller::-webkit-scrollbar { display: none; }

.cats-scroller .cat-card {
  scroll-snap-align: start;
  min-width: 0;
}

.products-scroller {
  --products-gap: 1rem;
  --products-visible: 1.35;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--products-visible) - 1) * var(--products-gap)) / var(--products-visible));
  gap: var(--products-gap);
  margin-block: -.35rem;
  padding-block: .35rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 576px) { .products-scroller { --products-visible: 2; } }
@media (min-width: 768px) { .products-scroller { --products-visible: 3; } }
@media (min-width: 992px) { .products-scroller { --products-visible: 4; } }

.products-scroller::-webkit-scrollbar { display: none; }

.products-scroller .product-card {
  scroll-snap-align: start;
  min-width: 0;
}

.scroller-nav {
  display: flex;
  gap: .5rem;
}

.scroller-nav button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--tp-navy);
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: 50%;
  transition: background-color .2s, color .2s, border-color .2s;
}

.scroller-nav button:hover {
  color: #fff;
  background: var(--tp-navy);
  border-color: var(--tp-navy);
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  height: 100%;
  padding: 1.5rem .75rem 1.25rem;
  text-align: center;
  color: var(--tp-ink);
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  transition: transform .25s var(--tp-ease), box-shadow .25s var(--tp-ease), border-color .25s;
}

.cat-card:hover {
  color: var(--tp-navy);
  border-color: var(--tp-sky);
  box-shadow: var(--tp-shadow);
  transform: translateY(-4px);
}

.cat-media {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  padding: .55rem;
  overflow: hidden;
  background: var(--tp-sky-50);
  border-radius: 50%;
  transition: background-color .25s;
}

.cat-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cat-card:hover .cat-media { background: var(--tp-sky-100); }
.cat-card h3 { margin: 0; font-size: .9rem; }
.cat-card span { font-size: .75rem; color: var(--tp-muted); }

.promo {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 230px;
  padding: 2rem;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--tp-navy-700), var(--tp-navy));
  border-radius: var(--tp-radius-lg);
  isolation: isolate;
}

.promo::before,
.promo::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}

.promo::before {
  top: -120px;
  left: -80px;
  width: 320px;
  height: 320px;
  background: rgba(255, 255, 255, .06);
}

.promo::after {
  bottom: -140px;
  left: 90px;
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 255, .04);
}

.promo-body { position: relative; max-width: 58%; }

.promo img {
  position: absolute;
  left: 1.25rem;
  bottom: 50%;
  z-index: -1;
  width: 38%;
  max-width: 210px;
  transform: translateY(50%);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .25));
}

.promo-eyebrow {
  display: inline-block;
  margin-bottom: .5rem;
  padding: .2rem .7rem;
  font-size: .75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, .14);
  border-radius: 999px;
}

.promo h3 { margin-bottom: .5rem; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); font-weight: 900; color: inherit; }
.promo p { margin-bottom: 1.25rem; font-size: .875rem; opacity: .85; }

.promo.is-light {
  color: var(--tp-ink);
  background: linear-gradient(135deg, var(--tp-sky-100), var(--tp-sky));
}

.promo.is-light::before { background: rgba(255, 255, 255, .45); }
.promo.is-light::after { background: rgba(255, 255, 255, .3); }
.promo.is-light .promo-eyebrow { color: var(--tp-navy); background: rgba(255, 255, 255, .7); }
.promo.is-light p { color: var(--tp-body); opacity: 1; }

.brands-scroller {
  --brands-gap: .75rem;
  --brands-visible: 2;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--brands-visible) - 1) * var(--brands-gap)) / var(--brands-visible));
  gap: var(--brands-gap);
  margin-block: -.35rem;
  padding-block: .35rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.brands-scroller::-webkit-scrollbar { display: none; }

@media (min-width: 576px) { .brands-scroller { --brands-visible: 4; } }
@media (min-width: 768px) { .brands-scroller { --brands-visible: 5; } }

@media (min-width: 992px) {
  .brands-nav { display: none; }

  .brands-scroller {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-auto-columns: unset;
    overflow: visible;
    scroll-snap-type: none;
  }
}

.brand-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 88px;
  min-width: 0;
  padding: .35rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  scroll-snap-align: start;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.brand-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: .9;
  transition: opacity .2s, transform .2s;
}

.brand-tile:has(.brand-tile-label) {
  padding: .75rem;
}

.brand-tile-label {
  display: block;
  max-width: 100%;
  padding-inline: .25rem;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  color: var(--tp-navy);
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-tile:hover {
  border-color: var(--tp-sky);
  box-shadow: var(--tp-shadow-sm);
  transform: translateY(-2px);
}

.brand-tile:hover img {
  opacity: 1;
  transform: scale(1.06);
}

.posts-scroller {
  --posts-gap: 1rem;
  --posts-visible: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--posts-visible) - 1) * var(--posts-gap)) / var(--posts-visible));
  gap: var(--posts-gap);
  margin-block: -.5rem;
  padding-block: .5rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.posts-scroller::-webkit-scrollbar { display: none; }

.posts-scroller .post-card {
  scroll-snap-align: start;
  min-width: 0;
}

@media (min-width: 768px) {
  .posts-nav { display: none; }

  .posts-scroller {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: unset;
    overflow: visible;
    scroll-snap-type: none;
  }
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(180deg, #fff 0%, #fff 68%, var(--tp-sky-50) 100%);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-lg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 10px 28px -22px rgba(10, 16, 87, .18);
  transition:
    box-shadow .3s var(--tp-ease),
    border-color .3s,
    transform .3s var(--tp-ease);
}

.post-card:hover {
  border-color: color-mix(in srgb, var(--tp-steel) 35%, var(--tp-border));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .95) inset,
    0 28px 48px -28px rgba(10, 16, 87, .35);
  transform: translateY(-4px);
}

.post-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--tp-radius);
  background:
    radial-gradient(circle at 30% 20%, #fff 0%, var(--tp-sky-100) 45%, var(--tp-sky) 100%);
}

.post-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 11, 61, .08));
  opacity: 0;
  transition: opacity .3s var(--tp-ease);
}

.post-card:hover .post-media::after { opacity: 1; }

.post-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--tp-ease);
}

.post-card:hover .post-media img { transform: scale(1.06); }

.post-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.2rem 1.25rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .75rem;
  font-size: .72rem;
  color: var(--tp-muted);
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .22rem .55rem;
  font-weight: 600;
  background: var(--tp-sky-100);
  border-radius: 999px;
}

.post-meta i { color: var(--tp-steel-700); }

.post-body h3 {
  display: -webkit-box;
  margin: 0 0 .55rem;
  overflow: hidden;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-body h3 a { color: var(--tp-ink); }
.post-body h3 a:hover { color: var(--tp-navy); }

.post-body p {
  display: -webkit-box;
  margin: 0 0 1rem;
  overflow: hidden;
  font-size: .84rem;
  line-height: 1.85;
  color: var(--tp-muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-body::after {
  content: "ادامه مطلب";
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: auto;
  padding-top: .85rem;
  padding-inline-start: 1.2rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--tp-navy);
  border-top: 1px solid color-mix(in srgb, var(--tp-border) 80%, transparent);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%230A1057' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M10.5 3.5 6 8l4.5 4.5'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 15px 15px;
  transition: color .2s, letter-spacing .2s, background-position .2s;
}

.post-card:hover .post-body::after {
  color: var(--tp-steel-700);
  letter-spacing: .02em;
  background-position: left .15rem center;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%233A6091' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M10.5 3.5 6 8l4.5 4.5'/%3e%3c/svg%3e");
}

/* Video post cards */
.post-card--video {
  background:
    linear-gradient(180deg, #fff 0%, #fff 55%, color-mix(in srgb, var(--tp-navy) 4%, #fff) 100%);
  border-color: color-mix(in srgb, var(--tp-navy) 12%, var(--tp-border));
}

.post-card--video:hover {
  border-color: color-mix(in srgb, var(--tp-navy) 28%, var(--tp-border));
}

.post-media--video {
  background:
    radial-gradient(circle at 70% 30%, rgba(81, 122, 171, .35) 0%, transparent 45%),
    linear-gradient(145deg, var(--tp-navy-900) 0%, var(--tp-navy) 48%, var(--tp-navy-700) 100%);
}

.post-media--video img {
  width: 46%;
  max-width: 140px;
  height: auto;
  margin: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .35));
  opacity: .92;
}

.post-media--video::after {
  background:
    linear-gradient(180deg, transparent 40%, rgba(7, 11, 61, .55));
  opacity: 1;
}

.post-video-badge {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.post-video-badge i {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  font-size: 1.55rem;
  color: #fff;
  background: var(--tp-steel);
  border-radius: 50%;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, .18),
    0 14px 28px -10px rgba(10, 16, 87, .45);
  transition: transform .3s var(--tp-ease), box-shadow .3s var(--tp-ease);
}

.post-card--video:hover .post-video-badge i {
  transform: scale(1.08);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, .22),
    0 18px 32px -10px rgba(10, 16, 87, .55);
}

.post-video-duration {
  position: absolute;
  z-index: 2;
  right: .75rem;
  bottom: .75rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .28rem .55rem;
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  background: rgba(7, 11, 61, .78);
  border-radius: 8px;
  backdrop-filter: blur(6px);
}

.post-type-chip {
  color: var(--tp-steel-700) !important;
  background: var(--tp-sky-100) !important;
}

.post-type-chip i { color: var(--tp-steel-700) !important; }

.post-type-chip--lg {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .75rem;
  margin-bottom: .85rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--tp-steel-700);
  background: var(--tp-sky-100);
  border-radius: 999px;
}

.post-card--video .post-body::after {
  content: "تماشای ویدیو";
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%230A1057' d='M6.2 3.6a.75.75 0 0 0-1.2.6v7.6a.75.75 0 0 0 1.2.6l5.7-3.8a.75.75 0 0 0 0-1.2z'/%3e%3c/svg%3e");
}

.post-card--video:hover .post-body::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%233A6091' d='M6.2 3.6a.75.75 0 0 0-1.2.6v7.6a.75.75 0 0 0 1.2.6l5.7-3.8a.75.75 0 0 0 0-1.2z'/%3e%3c/svg%3e");
}

/* Video single page */
.page-hero--video {
  padding-bottom: 1.75rem;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(81, 122, 171, .18) 0%, transparent 50%),
    linear-gradient(180deg, var(--tp-sky-50) 0%, var(--tp-snow) 100%);
}

.page-hero--video .breadcrumb { margin-bottom: 1.25rem; }

.page-hero--video .video-hero-meta h1 {
  margin: 0 0 1rem;
  max-width: 38rem;
  font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.1rem);
  line-height: 1.55;
}

.video-single-section { padding-top: .5rem !important; }

.video-player {
  position: relative;
  margin-bottom: 1.5rem;
  overflow: hidden;
  background: var(--tp-navy-900);
  border-radius: var(--tp-radius-lg);
  box-shadow: var(--tp-shadow-lg);
}

.video-player-frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 30% 25%, rgba(81, 122, 171, .4) 0%, transparent 42%),
    linear-gradient(145deg, var(--tp-navy-900), var(--tp-navy-700));
}

.video-player-poster {
  width: 38%;
  max-width: 220px;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .4));
  opacity: .9;
  transition: transform .4s var(--tp-ease), opacity .3s;
}

.video-player-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .45));
  pointer-events: none;
}

.video-player-play {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  padding: 0;
  color: #fff;
  font-size: 2.1rem;
  background: var(--tp-steel);
  border: 0;
  border-radius: 50%;
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, .14),
    0 18px 40px -12px rgba(10, 16, 87, .5);
  cursor: pointer;
  transition: transform .25s var(--tp-ease), box-shadow .25s var(--tp-ease), background-color .25s;
}

.video-player-play:hover {
  background: var(--tp-navy);
  transform: scale(1.06);
  box-shadow:
    0 0 0 12px rgba(255, 255, 255, .18),
    0 22px 44px -12px rgba(10, 16, 87, .6);
}

.video-player-play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.video-player-bar {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .65rem 1rem;
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .75);
  background: rgba(7, 11, 61, .92);
}

.video-player-progress {
  flex: 1;
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, .18);
  border-radius: 999px;
}

.video-player-progress > span {
  display: block;
  height: 100%;
  background: var(--tp-steel);
  border-radius: inherit;
}

.video-player.is-playing .video-player-frame,
.video-player.is-playing .video-player-bar {
  display: none;
}

.video-player-embed {
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-player-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: .65rem;
  height: 100%;
  padding: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, .7);
}

.video-player-placeholder i {
  font-size: 2.5rem;
  color: var(--tp-steel);
}

.video-player-placeholder p {
  margin: 0;
  max-width: 22rem;
  font-size: .9rem;
}

.video-chapters {
  margin-bottom: 1.75rem;
  padding: 1.15rem;
  background:
    linear-gradient(180deg, #fff 0%, var(--tp-sky-50) 100%);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-lg);
  box-shadow: var(--tp-shadow-sm);
}

.video-chapters-head {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--tp-border) 85%, transparent);
}

.video-chapters-head-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--tp-navy);
  font-size: 1.15rem;
  background: var(--tp-sky-100);
  border-radius: 12px;
}

.video-chapters-title {
  margin: 0;
  font-size: .95rem;
  font-weight: 800;
  color: var(--tp-ink);
  line-height: 1.4;
}

.video-chapters-sub {
  margin: .15rem 0 0;
  font-size: .75rem;
  font-weight: 600;
  color: var(--tp-muted);
}

.video-chapter-list {
  display: grid;
  gap: .4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: chapter;
}

.video-chapter-list > li {
  counter-increment: chapter;
}

.video-chapter {
  position: relative;
  display: flex;
  align-items: center;
  gap: .85rem;
  width: 100%;
  padding: .8rem .85rem;
  text-align: start;
  color: var(--tp-body);
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: 14px;
  cursor: pointer;
  transition:
    background-color .2s var(--tp-ease),
    border-color .2s var(--tp-ease),
    box-shadow .2s var(--tp-ease),
    transform .2s var(--tp-ease);
}

.video-chapter:hover {
  border-color: color-mix(in srgb, var(--tp-steel) 40%, var(--tp-border));
  box-shadow: 0 10px 24px -18px rgba(10, 16, 87, .35);
  transform: translateY(-1px);
}

.video-chapter:hover .video-chapter-action {
  opacity: 1;
  color: var(--tp-steel-700);
  background: var(--tp-sky-100);
}

.video-chapter:focus-visible {
  outline: 2px solid var(--tp-steel);
  outline-offset: 2px;
}

.video-chapter.is-active {
  color: var(--tp-navy);
  background:
    linear-gradient(135deg, var(--tp-sky-50) 0%, #fff 55%, var(--tp-sky-100) 100%);
  border-color: color-mix(in srgb, var(--tp-steel) 45%, var(--tp-border));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 12px 28px -20px rgba(10, 16, 87, .3);
}

.video-chapter-index {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  font-size: .78rem;
  font-weight: 800;
  color: var(--tp-steel-700);
  background: var(--tp-sky-100);
  border-radius: 50%;
  transition:
    color .2s,
    background-color .2s,
    box-shadow .2s;
}

.video-chapter-index::before {
  content: counter(chapter, persian);
}

.video-chapter.is-active .video-chapter-index {
  color: #fff;
  background: var(--tp-navy);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tp-navy) 12%, transparent);
}

.video-chapter-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .25rem;
  min-width: 0;
}

.video-chapter-label {
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--tp-ink);
}

.video-chapter.is-active .video-chapter-label {
  color: var(--tp-navy);
}

.video-chapter-time {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  width: fit-content;
  padding: .12rem .45rem;
  font-size: .7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--tp-muted);
  background: var(--tp-sky-50);
  border-radius: 999px;
}

.video-chapter-time::before {
  content: "";
  width: .45rem;
  height: .45rem;
  background: currentColor;
  border-radius: 50%;
  opacity: .45;
}

.video-chapter.is-active .video-chapter-time {
  color: var(--tp-steel-700);
  background: #fff;
}

.video-chapter-action {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  color: var(--tp-muted);
  font-size: .95rem;
  background: transparent;
  border-radius: 50%;
  opacity: .55;
  transition:
    opacity .2s,
    color .2s,
    background-color .2s,
    transform .2s;
}

.video-chapter.is-active .video-chapter-action {
  opacity: 1;
  color: #fff;
  background: var(--tp-steel);
  box-shadow: 0 8px 16px -10px rgba(10, 16, 87, .45);
}

.video-chapter:hover .video-chapter-action,
.video-chapter.is-active .video-chapter-action {
  transform: scale(1.05);
}

@media (max-width: 575.98px) {
  .video-chapters {
    padding: 1rem;
  }

  .video-chapter {
    gap: .7rem;
    padding: .7rem .75rem;
  }

  .video-chapter-label {
    font-size: .84rem;
  }
}

.video-content h2:first-child { margin-top: 0; }

.video-learn-list {
  display: grid;
  gap: .55rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.post-content .video-learn-list {
  padding: 0;
  padding-inline: 0;
}

.video-learn-list li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin: 0;
  padding: .85rem 1rem;
  font-size: .92rem;
  line-height: 1.7;
  color: var(--tp-body);
  background: var(--tp-sky-50);
  border: 1px solid var(--tp-border);
  border-radius: 12px;
}

.post-content .video-learn-list li {
  margin-bottom: 0;
  padding-right: 1rem;
}

.video-learn-list li::before {
  content: "";
  flex: 0 0 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: .2rem;
  background:
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%2313795B' d='M13.4 3.3a.75.75 0 0 1 .1 1.06l-6.5 7.5a.75.75 0 0 1-1.12.04L2.4 8.6A.75.75 0 0 1 3.5 7.5l2.8 2.55 5.95-6.86a.75.75 0 0 1 1.15.11z'/%3e%3c/svg%3e")
    center / contain no-repeat;
}

.video-related-list {
  display: grid;
  gap: .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.video-related-item {
  display: flex;
  gap: .75rem;
  align-items: center;
  padding: .45rem;
  color: inherit;
  border-radius: 12px;
  transition: background-color .2s var(--tp-ease);
}

.video-related-item:hover {
  background: var(--tp-sky-50);
  color: inherit;
}

.video-related-thumb {
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 4.75rem;
  height: 3rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--tp-sky-100), var(--tp-sky));
  border-radius: 10px;
}

.video-related-thumb img {
  width: 55%;
  height: auto;
}

.video-related-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: .85rem;
  background: rgba(7, 11, 61, .35);
}

.video-related-copy {
  display: grid;
  gap: .2rem;
  min-width: 0;
}

.video-related-copy strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-related-copy small {
  font-size: .72rem;
  color: var(--tp-muted);
}

.post-cta--video {
  background:
    linear-gradient(180deg, #fff 0%, var(--tp-sky-50) 100%);
  border-color: color-mix(in srgb, var(--tp-steel) 35%, var(--tp-border));
  border-inline-start: 4px solid var(--tp-steel);
  box-shadow: var(--tp-shadow-sm);
}

.post-cta--video .post-cta-badge {
  color: var(--tp-steel-700);
  background: var(--tp-sky-100);
}

.post-cta--video .post-cta-title {
  color: var(--tp-ink);
}

.post-cta--video .post-cta-text {
  color: var(--tp-body);
}

@media (max-width: 575.98px) {
  .video-player-play {
    width: 3.6rem;
    height: 3.6rem;
    font-size: 1.7rem;
  }
}

.post-single-header { margin-bottom: 1.5rem; }
.post-single-header h1 {
  margin: .5rem 0 1rem;
  font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.1rem);
  line-height: 1.55;
}
.post-single-meta { margin: 0; flex-wrap: wrap; }

.post-single-cover {
  position: relative;
  display: block;
  margin-bottom: 2rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--tp-sky-50), var(--tp-sky));
  border-radius: var(--tp-radius-lg);
}
.post-single-cover img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.post-content {
  font-family: var(--bs-body-font-family);
  font-size: 1rem;
  line-height: 2;
  color: var(--tp-body);
}

/* محتوای CMS (مثلاً paste از وردپرس) اغلب font-family اینلاین دارد؛ فونت سایت را تحمیل کن */
.post-content :where(*):not(code, pre, kbd, samp) {
  font-family: inherit !important;
}

.post-content h2 {
  margin: 2rem 0 .85rem;
  font-size: 1.2rem;
  scroll-margin-top: calc(var(--tp-header-offset) + 1rem);
}

.blog-sidebar.sticky-lg-top {
  top: calc(var(--tp-header-offset) + .75rem);
  z-index: 2;
}

@media (min-width: 992px) {
  .blog-sidebar.sticky-lg-top {
    max-height: calc(100vh - var(--tp-header-offset) - 1.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

.post-cta {
  padding: 1.35rem 1.25rem;
  background:
    linear-gradient(180deg, #fff 0%, var(--tp-sky-50) 100%);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-lg);
  box-shadow: var(--tp-shadow-sm);
}

.post-cta-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: .75rem;
  padding: .2rem .55rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--tp-steel-700);
  background: var(--tp-sky-100);
  border-radius: 999px;
}

.post-cta-title {
  margin: 0 0 .5rem;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.65;
  color: var(--tp-ink);
}

.post-cta-text {
  margin: 0 0 1.1rem;
  font-size: .82rem;
  line-height: 1.8;
  color: var(--tp-muted);
}

.post-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-weight: 700;
}

.blog-sidebar-cta {
  padding: 1.35rem 1.25rem;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 216, 241, .22), transparent 45%),
    linear-gradient(160deg, var(--tp-navy-700), var(--tp-navy-900));
  border-radius: var(--tp-radius-lg);
  box-shadow: var(--tp-shadow);
}

.blog-sidebar-cta-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: .85rem;
  font-size: 1.15rem;
  color: var(--tp-navy);
  background: #fff;
  border-radius: 12px;
}

.blog-sidebar-cta-title {
  margin: 0 0 .45rem;
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
}

.blog-sidebar-cta-text {
  margin: 0 0 1rem;
  font-size: .82rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, .78);
}

.blog-sidebar-cta .btn-white {
  color: var(--tp-navy);
  background: #fff;
  border-color: #fff;
  font-weight: 700;
}

.blog-sidebar-cta .btn-white:hover {
  color: var(--tp-navy);
  background: var(--tp-sky-50);
  border-color: var(--tp-sky-50);
}

.blog-cats {
  margin-bottom: 1.25rem;
}

.blog-cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-cat-list > li {
  flex: none;
  min-width: 0;
}

.blog-cat-list a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  max-width: 100%;
  padding: .3rem .6rem .3rem .35rem;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--tp-body);
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: 999px;
  transition:
    color .2s var(--tp-ease),
    background-color .2s var(--tp-ease),
    border-color .2s var(--tp-ease);
}

.blog-cat-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  font-size: .72rem;
  color: var(--tp-steel-700);
  background: var(--tp-sky-50);
  border-radius: 50%;
  transition: color .2s, background-color .2s;
}

.blog-cat-label {
  min-width: 0;
}

.blog-cat-count {
  flex: none;
  min-width: 1.15rem;
  padding: 0 .2rem;
  font-size: .68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.35rem;
  text-align: center;
  color: var(--tp-muted);
  transition: color .2s;
}

.blog-cat-list a:hover {
  color: var(--tp-navy);
  border-color: color-mix(in srgb, var(--tp-steel) 30%, var(--tp-border));
  background: var(--tp-sky-50);
}

.blog-cat-list a:hover .blog-cat-icon {
  color: var(--tp-navy);
  background: var(--tp-sky-100);
}

.blog-cat-list a:hover .blog-cat-count {
  color: var(--tp-navy);
}

.blog-cat-list a[aria-current="page"],
.blog-cat-list a.is-active {
  color: #fff;
  background: var(--tp-navy);
  border-color: var(--tp-navy);
}

.blog-cat-list a[aria-current="page"] .blog-cat-icon,
.blog-cat-list a.is-active .blog-cat-icon {
  color: var(--tp-navy);
  background: #fff;
}

.blog-cat-list a[aria-current="page"] .blog-cat-count,
.blog-cat-list a.is-active .blog-cat-count {
  color: rgba(255, 255, 255, .85);
}

.blog-cat-list a:focus-visible {
  outline: 2px solid var(--tp-steel);
  outline-offset: 2px;
}

/* Phone / tablet: one row, swipe the rest */
@media (max-width: 991.98px) {
  .blog-cats {
    margin-inline: -.25rem;
    margin-bottom: 1rem;
  }

  .blog-cat-list {
    flex-wrap: nowrap;
    gap: .45rem;
    padding: .15rem .25rem .35rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }

  .blog-cat-list::-webkit-scrollbar { display: none; }

  .blog-cat-list > li {
    scroll-snap-align: start;
  }

  .blog-cat-list a {
    padding: .4rem .7rem .4rem .4rem;
    font-size: .8rem;
  }
}

@media (max-width: 575.98px) {
  .blog-cat-list a {
    gap: .3rem;
    padding: .35rem .55rem .35rem .3rem;
    font-size: .74rem;
  }

  .blog-cat-icon {
    width: 1.25rem;
    height: 1.25rem;
    font-size: .68rem;
  }

  .blog-cat-count {
    min-width: 1rem;
    font-size: .64rem;
    line-height: 1.25rem;
  }
}

.post-toc-list {
  display: grid;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-toc-list a {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .65rem;
  font-size: .84rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--tp-muted);
  border-radius: 10px;
  transition:
    color .2s var(--tp-ease),
    background-color .2s var(--tp-ease);
}

.post-toc-list a::before {
  content: "";
  flex: none;
  width: .35rem;
  height: .35rem;
  background: var(--tp-border);
  border-radius: 999px;
  transition:
    width .2s var(--tp-ease),
    height .2s var(--tp-ease),
    background-color .2s var(--tp-ease);
}

.post-toc-list a:hover {
  color: var(--tp-ink);
  background: var(--tp-sky-50);
}

.post-toc-list a:hover::before {
  background: var(--tp-steel);
}

.post-toc-list a.is-active,
.post-toc-list a[aria-current="true"] {
  color: var(--tp-navy);
  font-weight: 600;
  background: var(--tp-sky-50);
}

.post-toc-list a.is-active::before,
.post-toc-list a[aria-current="true"]::before {
  width: .25rem;
  height: .9rem;
  background: var(--tp-navy);
}
.post-content p { margin-bottom: 1.1rem; }
.post-content ul {
  margin: 0 0 1.25rem;
  padding-right: 1.25rem;
}
.post-content li { margin-bottom: .4rem; }
.post-content a { color: var(--tp-steel-700); font-weight: 600; }
.post-content a:hover { color: var(--tp-navy); }
.post-content img,
.post-content figure,
.post-content .wp-block-image,
.post-content .wp-block-image img {
  border-radius: var(--tp-radius-lg);
}
.post-content img {
  display: block;
  max-width: min(100%, 32rem);
  width: auto;
  height: auto;
  margin-block: 1.25rem;
  margin-inline: auto;
}
.post-content figure,
.post-content .wp-block-image {
  overflow: hidden;
  max-width: min(100%, 32rem);
  margin-inline: auto;
}
.post-content figure img,
.post-content .wp-block-image img {
  max-width: 100%;
  margin-block: 0;
}
.post-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  color: var(--tp-navy);
  background: var(--tp-sky-50);
  border-right: 4px solid var(--tp-steel);
  border-radius: 0 var(--tp-radius-sm) var(--tp-radius-sm) 0;
}

.post-single-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--tp-border);
}
.post-tags, .post-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--tp-muted);
}
.post-tags a, .post-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .35rem .7rem;
  color: var(--tp-navy);
  background: var(--tp-sky-50);
  border-radius: 999px;
}
.post-share a {
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1.05rem;
}
.post-tags a:hover, .post-share a:hover {
  color: #fff;
  background: var(--tp-navy);
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px dashed var(--tp-border);
}

.post-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: .9rem;
  min-width: 0;
  min-height: 100%;
  padding: 1.15rem 1.2rem;
  overflow: hidden;
  color: var(--tp-ink);
  background: linear-gradient(180deg, #fff 0%, var(--tp-sky-50) 100%);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--tp-ease), background .25s;
}

.post-nav-item::before {
  content: "";
  position: absolute;
  inset-block: 0;
  width: 3px;
  background: var(--tp-steel);
  opacity: 0;
  transition: opacity .25s;
}

.post-nav-item.is-prev::before { right: 0; border-radius: 3px 0 0 3px; }
.post-nav-item.is-next::before { left: 0; border-radius: 0 3px 3px 0; }

.post-nav-item:hover {
  color: var(--tp-navy);
  border-color: var(--tp-sky);
  box-shadow: var(--tp-shadow);
  transform: translateY(-3px);
  background: #fff;
}

.post-nav-item:hover::before { opacity: 1; }

.post-nav-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  font-size: 1.05rem;
  color: var(--tp-navy);
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: 50%;
  transition: color .25s, background-color .25s, border-color .25s, transform .25s var(--tp-ease);
}

.post-nav-item:hover .post-nav-arrow {
  color: #fff;
  background: var(--tp-navy);
  border-color: var(--tp-navy);
}

.post-nav-item.is-prev:hover .post-nav-arrow { transform: translateX(3px); }
.post-nav-item.is-next:hover .post-nav-arrow { transform: translateX(-3px); }

.post-nav-copy {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-width: 0;
}

.post-nav-item.is-next {
  justify-content: flex-end;
  text-align: start;
}

.post-nav-item.is-next .post-nav-copy { align-items: flex-end; }

.post-nav-item small {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--tp-steel-700);
}

.post-nav-item strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Phone: stack prev/next under each other */
@media (max-width: 767.98px) {
  .post-nav {
    grid-template-columns: 1fr;
    gap: .65rem;
    margin-top: 1.75rem;
    padding-top: 1.35rem;
  }

  .post-nav-item {
    gap: .75rem;
    padding: .95rem 1rem;
  }

  .post-nav-item.is-next {
    justify-content: flex-start;
    flex-direction: row-reverse;
    text-align: start;
  }

  .post-nav-item.is-next .post-nav-copy {
    align-items: flex-start;
  }

  .post-nav-arrow {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .post-nav-item strong {
    font-size: .86rem;
    line-height: 1.55;
  }
}

@media (min-width: 768px) {
  .post-nav {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.newsletter {
  position: relative;
  padding: 2.5rem;
  overflow: hidden;
  color: rgba(255, 255, 255, .85);
  background: linear-gradient(135deg, var(--tp-navy-700), var(--tp-navy));
  border-radius: var(--tp-radius-lg);
  isolation: isolate;
}

.newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
  mask-image: linear-gradient(90deg, transparent, #000);
}

.newsletter h2 { margin-bottom: .35rem; font-size: 1.4rem; color: #fff; }

.newsletter-form {
  display: flex;
  gap: .5rem;
  padding: 6px;
  background: #fff;
  border-radius: 14px;
}

.newsletter-form .form-control { border: 0; box-shadow: none; }

/* 06. Product card
   ========================================================================== */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(180deg, #fff 0%, #fff 62%, var(--tp-sky-50) 100%);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-lg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 10px 28px -22px rgba(10, 16, 87, .18);
  transition:
    box-shadow .3s var(--tp-ease),
    border-color .3s,
    transform .3s var(--tp-ease);
}

.product-card:hover {
  border-color: color-mix(in srgb, var(--tp-steel) 35%, var(--tp-border));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .95) inset,
    0 28px 48px -28px rgba(10, 16, 87, .35);
  transform: translateY(-4px);
}

.product-media,
.product-card .product-media {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1 !important;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(255, 255, 255, .85) 0%, transparent 58%),
    var(--tp-sky-50);
  border-radius: 0;
}


.product-media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .45s var(--tp-ease);
}

.product-card:hover .product-media img { transform: scale(1.06); }

.product-badges {
  position: absolute;
  top: .65rem;
  right: .65rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3rem;
}

.badge-tag {
  padding: .28rem .65rem;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .01em;
  border-radius: 999px;
  box-shadow: 0 6px 14px -8px rgba(10, 16, 87, .35);
}

.badge-sale { color: #fff; background: linear-gradient(135deg, var(--tp-accent), var(--tp-accent-700)); }
.badge-new { color: #fff; background: linear-gradient(135deg, var(--tp-navy-700), var(--tp-navy)); }

.btn-wish {
  position: absolute;
  top: .65rem;
  left: .65rem;
  z-index: 2;
  display: none;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1rem;
  color: var(--tp-muted);
  background: rgba(255, 255, 255, .92);
  border: 0;
  border-radius: 50%;
  box-shadow: var(--tp-shadow-sm);
  backdrop-filter: blur(6px);
  transition: color .2s, transform .2s;
}

.btn-wish:hover { color: var(--tp-danger); transform: scale(1.08); }
.btn-wish.is-active,
[data-wish].is-active { color: var(--tp-danger); }

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: .95rem 1.05rem 1.1rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-bottom: .45rem;
  font-size: .72rem;
  color: var(--tp-muted);
}

.product-meta > span:first-child {
  display: inline-flex;
  align-items: center;
  max-width: 70%;
  padding: .18rem .55rem;
  overflow: hidden;
  font-weight: 700;
  color: var(--tp-steel-700);
  white-space: nowrap;
  text-overflow: ellipsis;
  background: var(--tp-sky-100);
  border-radius: 999px;
}

.sku {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .7rem;
  opacity: .85;
}

/* Product cards: "شماره فنی" label before the code */
.product-meta .sku {
  display: inline-flex;
  align-items: baseline;
  gap: .3rem;
  max-width: 100%;
  direction: rtl;
  unicode-bidi: isolate;
  overflow: hidden;
  font-family: inherit;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--tp-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 1;
}

.product-meta .sku::before {
  content: "شماره فنی:";
  flex: none;
  font-weight: 700;
  color: var(--tp-steel-700);
}

.product-title {
  display: -webkit-box;
  min-height: calc(1.7em * 2);
  margin: 0 0 .55rem;
  overflow: hidden;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-title a { color: var(--tp-ink); }
.product-title a:hover { color: var(--tp-navy); }

.product-fit {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  max-width: 100%;
  margin: 0 0 .95rem;
  padding: .28rem .55rem;
  overflow: hidden;
  font-size: .72rem;
  font-weight: 600;
  color: var(--tp-success);
  white-space: nowrap;
  text-overflow: ellipsis;
  background: var(--tp-success-50);
  border-radius: 999px;
}

.product-fit i { flex: none; font-size: .85rem; }

.product-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .65rem;
  margin-top: auto;
  padding-top: .85rem;
  border-top: 1px solid color-mix(in srgb, var(--tp-border) 80%, transparent);
}

.price { display: flex; flex-direction: column; gap: .1rem; line-height: 1.4; }
.price-label,
.product-card .price::before,
.cart-item-foot .price::before {
  display: block;
  margin-bottom: .15rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--tp-steel-700);
}
.product-card .price::before,
.cart-item-foot .price::before { content: "قیمت عمده"; }
.price del { font-size: .75rem; color: var(--tp-muted); }
.price strong { font-size: 1.08rem; font-weight: 800; color: var(--tp-navy); }
.price small { font-size: .68rem; font-weight: 600; color: var(--tp-muted); }

.btn-more {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  flex: none;
  padding: .45rem .7rem;
  font-size: .72rem;
  font-weight: 700;
  color: var(--tp-navy);
  white-space: nowrap;
  background: #fff;
  border: 1px solid var(--tp-sky);
  border-radius: 999px;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}

.btn-more i { font-size: .8rem; transition: transform .2s var(--tp-ease); }

.product-card:hover .btn-more,
.btn-more:hover {
  color: #fff;
  background: var(--tp-navy);
  border-color: var(--tp-navy);
}

.product-card:hover .btn-more i,
.btn-more:hover i { transform: translateX(-2px); }

.btn-cart {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 1.2rem;
  color: var(--tp-navy);
  background: var(--tp-sky-100);
  border: 0;
  border-radius: 12px;
  transition: background-color .2s, color .2s;
}

.btn-cart:hover { color: #fff; background: var(--tp-navy); }
.btn-cart:disabled { color: #A3AABD; background: var(--tp-sky-50); }

.product-card.is-out {
  background: #fff;
  opacity: .92;
}

.product-card.is-out .product-media img { opacity: .4; filter: grayscale(1); }
.product-card.is-out:hover { transform: none; box-shadow: var(--tp-shadow-sm); }
.stock-out { font-size: .85rem; font-weight: 700; color: var(--tp-muted); }

/* Compact product cards until 3-col grid has enough width */
@media (max-width: 1199.98px) {
  .product-card {
    min-width: 0;
  }

  .product-body {
    min-width: 0;
    padding: .8rem .85rem .95rem;
  }

  .product-title {
    min-height: 0;
    font-size: .86rem;
  }

  .product-fit {
    max-width: 100%;
  }

  .product-foot {
    flex-direction: column;
    align-items: stretch;
    gap: .55rem;
    padding-top: .75rem;
  }

  .price {
    min-width: 0;
  }

  .price strong {
    font-size: .95rem;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
  }

  .btn-more {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .product-media {
    aspect-ratio: 1 / 1;
  }

  .product-media img {
    width: 100%;
    height: 100%;
  }

  .product-body {
    padding: .7rem .7rem .85rem;
  }

  .product-meta {
    margin-bottom: .35rem;
  }

  .product-meta {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: .35rem .5rem;
  }

  .product-meta > span:first-child {
    max-width: 100%;
    font-size: .68rem;
  }

  .product-meta .sku {
    display: inline-flex;
    font-size: .68rem;
  }

  .product-title {
    margin-bottom: .45rem;
    font-size: .8rem;
    line-height: 1.55;
  }

  .product-fit {
    display: inline-flex;
    max-width: 100%;
    margin-bottom: .7rem;
    font-size: .68rem;
  }

  .product-foot {
    padding-top: .7rem;
  }

  .price del {
    font-size: .68rem;
  }

  .price strong {
    font-size: .88rem;
    word-break: break-word;
  }

  .price small {
    font-size: .62rem;
  }

  .btn-more {
    padding: .45rem .55rem;
    font-size: .7rem;
  }

  .btn-cart {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .product-badges {
    top: .45rem;
    right: .45rem;
  }

  .badge-tag {
    padding: .2rem .5rem;
    font-size: .62rem;
  }

  .btn-wish {
    top: .45rem;
    left: .45rem;
    width: 32px;
    height: 32px;
    font-size: .9rem;
  }
}

@media (max-width: 575.98px) {
  .row.row-cols-2 > .col > .product-card .product-body {
    padding: .6rem .55rem .7rem;
  }

  .row.row-cols-2 > .col > .product-card .product-title {
    font-size: .74rem;
    -webkit-line-clamp: 3;
  }

  .row.row-cols-2 > .col > .product-card .price strong {
    font-size: .8rem;
  }

  .row.row-cols-2 > .col > .product-card .btn-more {
    font-size: .65rem;
    padding: .4rem .45rem;
  }

  .row.row-cols-2 > .col > .product-card .btn-more i {
    margin-inline-start: .1rem;
  }
}

/* 07. Inner pages
   ========================================================================== */
.page-hero {
  padding-block: 1.75rem;
  background: var(--tp-sky-50);
  border-bottom: 1px solid var(--tp-border);
}

.page-hero h1 { margin: .35rem 0 0; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }

.card-box {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-lg);
}

.card-box-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.card-box-title i { color: var(--tp-steel-700); }

/* --- Shop --- */
.garage-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  margin-bottom: 1rem;
  padding: .85rem 1rem;
  font-size: .875rem;
  background: var(--tp-success-50);
  border: 1px solid #C5E8DA;
  border-radius: var(--tp-radius);
}

.garage-bar i { font-size: 1.35rem; color: var(--tp-success); }
.garage-bar strong { color: var(--tp-ink); }

.shop-aside,
.shop-main {
  min-width: 0;
}

.shop-filters .form-switch {
  gap: .75rem;
}

.shop-filters .form-switch .form-check-label {
  min-width: 0;
  line-height: 1.5;
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem .75rem;
  margin-bottom: 1rem;
  padding: .65rem .85rem;
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
}

.shop-toolbar-controls {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: .5rem;
  min-width: 0;
}

.shop-sort-mobile {
  flex: 1 1 8rem;
  min-width: 0;
}

.shop-sort-mobile .form-select {
  width: 100%;
  min-width: 0;
}

.shop-count {
  flex: none;
  white-space: nowrap;
}

.sort-links {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-size: .85rem;
  list-style: none;
}

.sort-links .label {
  flex: none;
  margin-inline-end: .35rem;
  font-weight: 700;
  color: var(--tp-ink);
  white-space: nowrap;
}

.sort-links .sort-btn {
  display: inline-block;
  padding: .35rem .7rem;
  font: inherit;
  font-size: inherit;
  color: var(--tp-muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s, background-color .2s;
}

.sort-links .sort-btn:hover { color: var(--tp-navy); }
.sort-links .sort-btn.active {
  font-weight: 700;
  color: var(--tp-navy);
  background: var(--tp-sky-100);
}

@media (max-width: 991.98px) {
  .shop-layout > .shop-aside {
    flex: 0 0 auto;
    width: 0;
    max-width: none;
    padding: 0 !important;
    margin: 0;
    border: 0;
    overflow: visible;
  }

  .shop-layout > .shop-main {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .shop-toolbar {
    padding: .6rem .7rem;
  }

  .sort-links {
    flex: 1 1 100%;
    flex-wrap: nowrap;
    order: 3;
    margin: 0 -.15rem;
    padding-bottom: .15rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .sort-links::-webkit-scrollbar { display: none; }

  .shop-count {
    margin-inline-start: auto;
  }

  .shop-filters.offcanvas-lg {
    /* 100vw includes scrollbar/chrome and can cause page L/R scroll */
    --bs-offcanvas-width: min(100% - 2rem, 22rem);
  }

  .shop-filters .offcanvas-body {
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overscroll-behavior: contain;
  }

  .shop-filters .offcanvas-body::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
  }

  .shop-filters .offcanvas-body::-webkit-scrollbar-track {
    margin-block: 10px;
  }

  .price-out {
    flex-wrap: wrap;
    gap: .25rem .75rem;
  }
}

@media (max-width: 575.98px) {
  .shop-toolbar {
    gap: .55rem;
  }

  .shop-toolbar-controls {
    flex: 1 1 100%;
  }

  .shop-toolbar-controls .btn {
    flex: none;
  }

  .shop-count {
    width: 100%;
    margin-inline-start: 0;
    text-align: start;
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  max-width: 100%;
  padding: .3rem .8rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--tp-navy);
  background: var(--tp-sky-100);
  border: 0;
  border-radius: 999px;
}

.chip:hover { background: var(--tp-sky); }

.active-filters .chip {
  min-width: 0;
}

.active-filters .chip > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-block { padding-block: 1.25rem; border-bottom: 1px solid var(--tp-border); }
.filter-block:first-child { padding-top: 0; }
.filter-block:last-child { border-bottom: 0; padding-bottom: 0; }

.filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .9rem;
  font-size: .95rem;
  font-weight: 800;
  color: var(--tp-ink);
}

.filter-list {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.filter-list .form-check { display: flex; align-items: center; gap: .5rem; margin: 0; padding: 0; min-width: 0; }
.filter-list .form-check-input { float: none; margin: 0; flex: none; }
.filter-list .form-check-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: .875rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.filter-list .count { flex: none; font-size: .75rem; color: var(--tp-muted); }

.price-out {
  display: flex;
  justify-content: space-between;
  margin-top: .5rem;
  font-size: .8rem;
  color: var(--tp-muted);
}

.price-out strong { color: var(--tp-ink); }

@media (min-width: 992px) {
  /* Filter column sticks; page scroll only moves the product grid. */
  .shop-layout > .shop-aside {
    position: sticky;
    top: var(--tp-header-offset);
    align-self: flex-start;
    height: calc(100dvh - var(--tp-header-offset) - 1.5rem);
    max-height: calc(100dvh - var(--tp-header-offset) - 1.5rem);
  }

  .shop-filters.offcanvas-lg,
  .shop-filters {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius-lg);
  }

  .shop-filters .offcanvas-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 1.5rem;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    background-color: transparent !important;
  }

  /* One scrollbar for the whole filter panel (not nested list scrolls). */
  .shop-filters .filter-list {
    max-height: none;
    overflow: visible;
  }

  .shop-filters .offcanvas-body::-webkit-scrollbar {
    width: 8px;
  }

  .shop-filters .offcanvas-body::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
  }

  .shop-filters .offcanvas-body::-webkit-scrollbar-track {
    margin-block: 12px;
    background: transparent;
  }

  .shop-filters .offcanvas-body::-webkit-scrollbar-thumb {
    background-color: color-mix(in srgb, var(--tp-steel) 55%, var(--tp-sky));
    border: 2px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
  }
}

/* --- Product detail (core) ---
   One row on desktop (gallery | info | buy) — no multi-row span,
   so a tall buy-box cannot leave empty white space under the gallery.
*/
.product-core {
  display: grid;
  gap: 1.15rem 1.5rem;
  align-items: start;
  grid-template-areas:
    "summary"
    "gallery"
    "buy"
    "details";
}

.product-core__gallery { grid-area: gallery; min-width: 0; }
.product-core__buy { grid-area: buy; min-width: 0; height: max-content; }
.product-core__summary { grid-area: summary; min-width: 0; }
.product-core__details { grid-area: details; min-width: 0; }

/* Mobile: unwrap so title stays above image, specs below buy */
.product-core__main {
  display: contents;
}

.product-core__specs-title {
  margin: 0 0 .75rem;
  font-size: .95rem;
  font-weight: 800;
}

.product-core__trust {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.1rem;
  margin-top: 1rem;
  padding-top: .85rem;
  font-size: .8125rem;
  border-top: 1px solid var(--tp-border);
}

.product-core__trust i { margin-inline-end: .2rem; }

.gallery-main {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  max-width: 440px;
  margin-inline: auto;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, .9) 0%, transparent 55%),
    var(--tp-sky-50);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-lg);
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: .75rem;
  justify-content: center;
}

.gallery-thumb {
  display: grid;
  place-items: center;
  flex: none;
  width: 72px;
  height: 72px;
  padding: 0;
  aspect-ratio: 1 / 1;
  background: var(--tp-sky-50);
  border: 2px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gallery-thumb:hover { border-color: var(--tp-sky); }
.gallery-thumb.active { border-color: var(--tp-navy); }

.product-heading {
  margin-block: .35rem .75rem;
  font-size: clamp(1.2rem, 1rem + .8vw, 1.55rem);
  line-height: 1.55;
}

.product-info-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.25rem;
  padding-bottom: 1rem;
  font-size: .8125rem;
  color: var(--tp-muted);
  border-bottom: 1px solid var(--tp-border);
}

.product-tabs {
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .product-core {
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    grid-template-areas:
      "gallery main"
      "buy buy";
  }

  .product-core__main {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    grid-area: main;
    min-width: 0;
  }

  .product-core__summary,
  .product-core__details {
    grid-area: unset;
  }

  .gallery-main {
    margin-inline: 0;
    max-width: none;
  }

  .gallery-thumbs {
    justify-content: flex-start;
  }

  .product-info-meta {
    border-bottom: 0;
    padding-bottom: 0;
  }
}

@media (min-width: 1200px) {
  .product-core {
    grid-template-columns: minmax(300px, 400px) minmax(0, 1fr) minmax(280px, 340px);
    grid-template-areas: "gallery main buy";
    gap: 1.35rem 1.75rem;
  }

  .product-core__buy {
    align-self: start;
  }

  .product-info-meta {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--tp-border);
  }

  .product-core__details .product-core__specs-title {
    margin-top: .15rem;
  }
}

/* Tighter product page section — less dead space under the core block */
.section:has(.product-core) {
  padding-block: 1.5rem 2.5rem;
}

.section:has(.product-core) .product-tabs {
  margin-top: 1.35rem;
}

@media (max-width: 767.98px) {
  .gallery-main {
    aspect-ratio: 1 / 1;
    max-width: none;
    max-height: none;
  }

  .gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .product-info-meta {
    padding-bottom: .85rem;
  }

  .product-core__trust {
    gap: .5rem .85rem;
    font-size: .75rem;
  }

  .section:has(.product-core) {
    padding-block: 1.15rem 2rem;
  }
}

.rating { display: inline-flex; gap: 2px; color: var(--tp-warning); }

.fit-box {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1rem;
  font-size: .875rem;
  color: var(--tp-ink);
  background: var(--tp-success-50);
  border: 1px solid #C5E8DA;
  border-radius: 14px;
}

.fit-box > i { font-size: 1.5rem; color: var(--tp-success); }

.key-specs { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; font-size: .875rem; }
.key-specs li { display: flex; gap: .5rem; }
.key-specs span { min-width: 110px; color: var(--tp-muted); }
.key-specs strong { font-weight: 600; color: var(--tp-ink); }

.buy-box {
  position: sticky;
  top: var(--tp-header-offset);
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-lg);
}

.buy-price .price-label {
  margin-bottom: .35rem;
  font-size: .75rem;
  color: var(--tp-accent-700);
}
.buy-price del { font-size: .875rem; color: var(--tp-muted); }
.buy-price strong { font-size: 1.6rem; font-weight: 900; color: var(--tp-ink); }
.buy-price small { font-size: .8rem; color: var(--tp-muted); }

.buy-wholesale-mins {
  display: grid;
  gap: .2rem;
  padding-top: .55rem;
  border-top: 1px dashed var(--tp-border);
}
.buy-wholesale-mins strong { font-size: inherit; font-weight: 700; }

.proforma-notice {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  background: linear-gradient(120deg, rgba(10, 16, 87, .06), rgba(74, 111, 165, .1));
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
}
.proforma-notice > i {
  flex-shrink: 0;
  font-size: 1.35rem;
  color: var(--tp-navy);
  line-height: 1.4;
}
.proforma-notice strong {
  display: block;
  margin-bottom: .25rem;
  color: var(--tp-ink);
}
.proforma-notice p {
  font-size: .875rem;
  line-height: 1.75;
  color: var(--tp-body);
}

.buy-perks { display: grid; gap: .75rem; margin: 1.25rem 0 0; padding: 1.25rem 0 0; list-style: none; border-top: 1px solid var(--tp-border); font-size: .8125rem; }
.buy-perks li { display: flex; align-items: center; gap: .65rem; }
.buy-perks i { font-size: 1.15rem; color: var(--tp-steel-700); }

.qty {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: 12px;
}

.qty button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 44px;
  font-size: 1rem;
  color: var(--tp-navy);
  background: transparent;
  border: 0;
  transition: background-color .2s;
}

.qty button:hover { background: var(--tp-sky-50); }

.qty input {
  width: 44px;
  font-weight: 700;
  text-align: center;
  color: var(--tp-ink);
  background: transparent;
  border: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.qty input:focus { outline: none; }
.qty:focus-within { border-color: var(--tp-steel); }
.qty.is-sm button { width: 34px; height: 38px; }
.qty.is-sm input { width: 36px; font-size: .875rem; }

.spec-table { margin: 0; font-size: .875rem; }
.spec-table th { width: 36%; font-weight: 600; color: var(--tp-muted); background: var(--tp-sky-50) !important; }
.spec-table td { color: var(--tp-ink); }

/* Compatible vehicles — one vehicle per table row (template style) */
.fitment-table {
  font-size: .9rem;
}

.fitment-table thead th {
  font-weight: 700;
  color: var(--tp-ink);
  white-space: nowrap;
  vertical-align: middle;
}

.fitment-table tbody td {
  vertical-align: middle;
  color: var(--tp-ink);
}

.fitment-table tbody tr:hover {
  background: var(--tp-sky-50);
}

.fitment-table .sku {
  white-space: nowrap;
}

.review { padding-block: 1.25rem; border-bottom: 1px solid var(--tp-border); }
.review:last-child { border-bottom: 0; }

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  font-weight: 800;
  color: var(--tp-navy);
  background: var(--tp-sky-100);
  border-radius: 50%;
}

.rating-summary strong { font-size: 3rem; font-weight: 900; line-height: 1; color: var(--tp-ink); }
.rating-bar { display: flex; align-items: center; gap: .75rem; font-size: .8rem; }
.rating-bar .progress { flex: 1; }

.cms-comments .review:last-child { border-bottom: 1px solid var(--tp-border); }
.cms-comments .review-form { scroll-margin-top: 6rem; }
.review-form { scroll-margin-top: 6rem; }

.star-picker {
  display: inline-flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  align-items: center;
  gap: .2rem .15rem;
  padding: .35rem .55rem;
  background: linear-gradient(180deg, #fffaf0 0%, #fff 100%);
  border: 1px solid #f0dfb8;
  border-radius: 14px;
  direction: ltr;
}

.star-picker__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.star-picker__star {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  margin: 0;
  font-size: 1.35rem;
  line-height: 1;
  color: #e2e6ef;
  border-radius: 10px;
  cursor: pointer;
  transition: color .15s ease, transform .15s ease, background-color .15s ease;
}

.star-picker__star i {
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .8));
}

.star-picker__star:hover,
.star-picker__star:hover ~ .star-picker__star,
.star-picker__input:checked ~ .star-picker__star,
.star-picker__input:focus-visible + .star-picker__star {
  color: var(--tp-warning);
  background: rgba(242, 161, 0, .1);
}

.star-picker__input:checked + .star-picker__star {
  color: var(--tp-warning);
  transform: scale(1.08);
}

.star-picker__star:active {
  transform: scale(.94);
}

.star-picker__value {
  margin-inline-start: .45rem;
  padding-inline-start: .55rem;
  border-inline-start: 1px solid #f0dfb8;
  font-size: .8rem;
  font-weight: 700;
  color: var(--tp-ink);
  white-space: nowrap;
  direction: rtl;
}

@media (max-width: 575.98px) {
  .star-picker {
    width: 100%;
    justify-content: center;
    padding: .3rem .45rem;
  }

  .star-picker__star {
    width: 2rem;
    height: 2rem;
    font-size: 1.2rem;
  }

  .star-picker__value {
    width: 100%;
    margin: .15rem 0 0;
    padding: .2rem 0 0;
    border-inline-start: 0;
    border-block-start: 1px solid #f0dfb8;
    text-align: center;
  }
}

/* --- Cart --- */
.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--tp-border);
}

.cart-item:first-child { padding-top: 0; }
.cart-item:last-child { border-bottom: 0; padding-bottom: 0; }

.cart-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: .75rem;
  background: var(--tp-sky-50);
  border-radius: 14px;
}

.cart-item h3 { margin-bottom: .25rem; font-size: .95rem; line-height: 1.7; }
.cart-item h3 a { color: var(--tp-ink); }
.cart-item-meta { font-size: .78rem; color: var(--tp-muted); }

.cart-item-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .75rem;
}

.cart-item-foot .price { margin-inline-start: auto; align-items: flex-end; }

.btn-remove {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: 0;
  font-size: .8rem;
  color: var(--tp-muted);
  background: none;
  border: 0;
}

.btn-remove:hover { color: var(--tp-danger); }

@media (min-width: 768px) {
  .cart-item { grid-template-columns: 112px 1fr; }
}

.summary-card {
  position: sticky;
  top: var(--tp-header-offset);
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-lg);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .4rem;
  font-size: .9rem;
}

.summary-row span:first-child { color: var(--tp-muted); }

.summary-total {
  margin-top: .5rem;
  padding-top: 1rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--tp-ink);
  border-top: 1px dashed var(--tp-border);
}

.summary-total span:first-child { color: var(--tp-ink); }

.ship-progress {
  padding: 1rem;
  font-size: .85rem;
  background: var(--tp-sky-50);
  border-radius: 14px;
}

/* --- Checkout --- */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--tp-muted);
  white-space: nowrap;
}

.step-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: .85rem;
  background: #fff;
  border: 2px solid var(--tp-border);
  border-radius: 50%;
}

.step.is-done .step-num { color: #fff; background: var(--tp-navy); border-color: var(--tp-navy); }
.step.is-current { color: var(--tp-navy); }
.step.is-current .step-num { color: var(--tp-navy); border-color: var(--tp-navy); }
.step-line { flex: 1; max-width: 80px; height: 2px; background: var(--tp-border); }
.step-line.is-done { background: var(--tp-navy); }

@media (max-width: 575.98px) {
  .step-label { display: none; }
  .step.is-current .step-label { display: inline; }
}

.option-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  height: 100%;
  padding: 1rem;
  cursor: pointer;
  background: #fff;
  border: 1.5px solid var(--tp-border);
  border-radius: 14px;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}

.option-card:hover { border-color: var(--tp-sky); }
.option-card .form-check-input { flex: none; margin: 0; }
.option-card .opt-icon { font-size: 1.5rem; color: var(--tp-steel-700); }
.option-card strong { display: block; font-size: .9rem; color: var(--tp-ink); }
.option-card small { font-size: .78rem; color: var(--tp-muted); }

.option-card:has(input:checked) {
  background: var(--tp-sky-50);
  border-color: var(--tp-navy);
  box-shadow: 0 0 0 3px rgba(10, 16, 87, .06);
}

.mini-item { display: flex; align-items: center; gap: .75rem; padding-block: .6rem; font-size: .85rem; }
.mini-item .cart-thumb { width: 56px; padding: .4rem; border-radius: 10px; }
.mini-item .name { flex: 1; line-height: 1.6; color: var(--tp-ink); }

/* --- Account --- */
.account-panel {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.account-panel > * {
  min-width: 0;
}

.account-main {
  overflow-x: clip;
}

@media (min-width: 992px) {
  .account-panel {
    grid-template-columns: 16.5rem minmax(0, 1fr);
    gap: 1.5rem;
  }
}

.account-nav .card-box-title {
  margin-block-end: 1rem;
}

.account-nav-links {
  display: grid;
  gap: .35rem;
}

.account-nav-links a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem .85rem;
  color: var(--tp-body);
  text-decoration: none;
  border-radius: var(--tp-radius-sm);
  transition: background-color .2s, color .2s;
}

.account-nav-links a i {
  color: var(--tp-steel-700);
  font-size: 1.05rem;
}

.account-nav-links a:hover {
  color: var(--tp-navy);
  background: var(--tp-sky-50);
}

.account-nav-links a.is-active {
  color: var(--tp-navy);
  background: var(--tp-sky-50);
  font-weight: 700;
}

.account-logout {
  margin-block-start: 1.25rem;
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--tp-border);
}

.account-main > h1 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  color: var(--tp-navy);
}

.account-main > h2 {
  margin: 1.5rem 0 1rem;
  font-size: 1.1rem;
  color: var(--tp-navy);
}

.account-alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  padding: .9rem 1rem;
  margin-block-end: 1.25rem;
  border-radius: var(--tp-radius-sm);
  border: 1px solid var(--tp-border);
}

.account-alert--warn {
  color: #7a4d00;
  background: #fff8e8;
  border-color: #f0d29a;
}

.account-alert--ok {
  color: #146c43;
  background: #e8f8ef;
  border-color: #9ad4b3;
}

.account-alert--err {
  color: #842029;
  background: #fdeced;
  border-color: #f1b0b7;
}

.account-dash-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: .85rem;
  margin-block-start: 1.25rem;
}

.account-dash-link {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.1rem 1rem;
  color: var(--tp-ink);
  text-decoration: none;
  background: var(--tp-sky-50);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-sm);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.account-dash-link:hover {
  color: var(--tp-navy);
  border-color: var(--tp-sky);
  box-shadow: var(--tp-shadow-sm);
  transform: translateY(-2px);
}

.account-dash-link i {
  font-size: 1.35rem;
  color: var(--tp-steel-700);
}

.account-dash-link strong {
  font-size: .95rem;
}

.account-dash-link span {
  font-size: .78rem;
  color: var(--tp-muted);
}

.account-form {
  display: grid;
  gap: 1rem;
  max-width: 28rem;
}

.account-form .form-label {
  margin-block-end: .35rem;
}

/* Checkout / account — native dialog for quick address create */
.account-modal {
  inset: 0;
  margin: auto;
  padding: 0;
  max-width: min(32rem, calc(100% - 1.5rem));
  width: 100%;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  background: #fff;
  color: var(--tp-body);
  box-shadow: var(--tp-shadow-lg);
}

.account-modal::backdrop {
  background: rgba(10, 16, 87, .45);
  backdrop-filter: blur(2px);
}

.account-modal__form {
  max-width: none;
  gap: 1.1rem;
  padding: 1.25rem 1.35rem 1.4rem;
}

.account-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-block-end: .15rem;
  padding-block-end: .85rem;
  border-block-end: 1px solid var(--tp-border);
}

.account-modal__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tp-navy);
  line-height: 1.45;
}

.account-modal__close {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: -.35rem;
  padding: 0;
  border: 0;
  border-radius: var(--tp-radius-sm);
  background: transparent;
  color: var(--tp-muted);
  cursor: pointer;
  transition: background-color .15s var(--tp-ease), color .15s var(--tp-ease);
}

.account-modal__close:hover {
  background: var(--tp-sky-50);
  color: var(--tp-navy);
}

.account-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-block-start: .25rem;
  padding-block-start: .85rem;
  border-block-start: 1px solid var(--tp-border);
}

.account-modal__actions .btn {
  min-width: 7.5rem;
}

.account-modal__error:not([hidden]) {
  margin: 0;
  padding: .65rem .85rem;
  border-radius: var(--tp-radius-sm);
  background: #fdeced;
  border: 1px solid #f1b0b7;
}

.account-address-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: .85rem;
}

.account-address-item {
  padding: 1rem 1.1rem;
  background: var(--tp-sky-50);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-sm);
}

.account-badge {
  display: inline-block;
  margin-inline-start: .35rem;
  padding: .15rem .55rem;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  background: var(--tp-navy);
  border-radius: 999px;
}

.account-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.account-table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  font-size: .9rem;
}

.account-table th,
.account-table td {
  padding: .75rem .65rem;
  text-align: start;
  border-bottom: 1px solid var(--tp-border);
  vertical-align: middle;
}

.account-table th {
  color: var(--tp-muted);
  font-weight: 700;
  white-space: nowrap;
}

.account-order-list {
  display: grid;
  gap: .85rem;
}

.account-order-card {
  padding: 1rem 1.05rem;
  background: var(--tp-sky-50);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-sm);
}

.account-order-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .55rem .85rem;
  margin-block-end: .85rem;
  padding-block-end: .85rem;
  border-block-end: 1px dashed var(--tp-border);
}

.account-order-card__label {
  display: block;
  margin-block-end: .2rem;
  font-size: .72rem;
  color: var(--tp-muted);
}

.account-order-card__number {
  display: block;
  font-size: .95rem;
  color: var(--tp-ink);
  word-break: break-word;
}

.account-order-card__status {
  display: inline-flex;
  align-items: center;
  padding: .25rem .65rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--tp-navy);
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: 999px;
  white-space: nowrap;
}

.account-order-card__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: .65rem;
  margin: 0 0 .95rem;
}

.account-order-card__meta > div {
  display: grid;
  gap: .15rem;
  min-width: 0;
}

.account-order-card__meta dt {
  margin: 0;
  font-size: .72rem;
  color: var(--tp-muted);
}

.account-order-card__meta dd {
  margin: 0;
  font-size: .88rem;
  font-weight: 600;
  color: var(--tp-ink);
  word-break: break-word;
}

.account-order-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}

.account-order-card__actions .btn {
  flex: 1 1 auto;
  min-width: 7.5rem;
  justify-content: center;
}

.account-order-card__cancel {
  margin: 0;
  flex: 1 1 100%;
}

.account-order-card__cancel .btn {
  width: 100%;
  min-width: 0;
  padding-inline: 0;
}

@media (min-width: 576px) {
  .account-order-card__meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
  }

  .account-order-card__actions .btn {
    flex: 0 1 auto;
  }

  .account-order-card__cancel {
    flex: 0 0 auto;
    margin-inline-start: auto;
  }

  .account-order-card__cancel .btn {
    width: auto;
  }
}

@media (max-width: 575.98px) {
  .account-main.card-box {
    padding: 1rem .9rem;
  }

  .account-main > h1 {
    font-size: 1.15rem;
  }

  .account-table {
    min-width: 22rem;
    font-size: .82rem;
  }

  .account-table th,
  .account-table td {
    padding: .55rem .45rem;
  }
}

.auth-wrap {
  display: grid;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-lg);
  box-shadow: var(--tp-shadow);
}

@media (min-width: 992px) { .auth-wrap { grid-template-columns: 1fr 1.1fr; } }

.auth-aside {
  position: relative;
  padding: 2.5rem;
  overflow: hidden;
  color: rgba(255, 255, 255, .85);
  background: linear-gradient(160deg, var(--tp-navy-700), var(--tp-navy));
  isolation: isolate;
}

.auth-aside h2 { color: #fff; }

.auth-aside img {
  position: absolute;
  left: -40px;
  bottom: -40px;
  z-index: -1;
  width: 260px;
  opacity: .25;
}

.auth-aside ul { display: grid; gap: 1rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.auth-aside li { display: flex; align-items: center; gap: .75rem; font-size: .9rem; }

.auth-aside li i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-radius: 10px;
}

.auth-form { padding: 2.5rem; }

@media (max-width: 575.98px) {
  .auth-form { padding: 1.5rem; }
}

.otp-code-field {
  text-align: center;
}

.otp-digits {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: clamp(.35rem, 2vw, .75rem);
  direction: ltr;
  width: 100%;
  max-width: min(100%, 22.5rem);
  margin-inline: auto;
}

.otp-digit {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-width: 3.35rem;
  height: 3.25rem;
  padding: 0;
  font-size: clamp(1.1rem, 4.2vw, 1.35rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: 0;
  box-sizing: border-box;
}

.otp-digit:focus {
  border-color: var(--tp-navy);
  box-shadow: 0 0 0 .2rem rgba(10, 16, 87, .12);
  z-index: 1;
}

@media (max-width: 399.98px) {
  .otp-digits {
    gap: .3rem;
    max-width: 100%;
  }

  .otp-digit {
    height: 2.85rem;
    max-width: none;
  }
}

.otp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.otp-actions .btn-link {
  color: var(--tp-navy);
  text-decoration: none;
}

.otp-actions .btn-link:hover:not(:disabled) {
  color: var(--tp-steel);
  text-decoration: underline;
}

.otp-actions .btn-link:disabled {
  color: var(--tp-muted, #6c757d);
  opacity: .7;
  pointer-events: none;
}

/* --- Contact & About --- */
.contact-hero {
  position: relative;
  overflow: hidden;
  padding-block: 2.25rem 2.5rem;
  background:
    radial-gradient(720px 280px at 100% 0%, rgba(81, 122, 171, .28), transparent 58%),
    radial-gradient(520px 240px at 0% 100%, rgba(10, 16, 87, .12), transparent 55%),
    linear-gradient(135deg, var(--tp-sky-50) 0%, #fff 48%, var(--tp-sky-100) 100%);
  border-bottom: 1px solid var(--tp-border);
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(81, 122, 171, .14) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}

.contact-hero > .container { position: relative; z-index: 1; }

.contact-hero-lead {
  max-width: 34rem;
  margin: .65rem 0 0;
  font-size: .95rem;
  color: var(--tp-body);
}

.contact-main {
  background:
    radial-gradient(900px 320px at 0% 0%, rgba(201, 216, 241, .45), transparent 55%),
    #fff;
}

.contact-card {
  display: flex;
  gap: 1rem;
  height: 100%;
  padding: 1.5rem;
  background:
    linear-gradient(165deg, #fff 0%, var(--tp-sky-50) 100%);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  box-shadow: 0 14px 32px -28px rgba(10, 16, 87, .35);
  transition: transform .2s var(--tp-ease), border-color .2s, box-shadow .2s;
}

.contact-card:hover {
  border-color: var(--tp-sky);
  box-shadow: 0 18px 36px -24px rgba(10, 16, 87, .4);
  transform: translateY(-3px);
}

.contact-card :is(h2, h3) { margin-bottom: .25rem; font-size: .95rem; }
.contact-card p { margin: 0; font-size: .875rem; color: var(--tp-muted); }
.contact-card a { font-weight: 700; }

.contact-card .icon-box {
  color: #fff;
  background: linear-gradient(145deg, var(--tp-navy-700), var(--tp-navy));
  box-shadow: 0 10px 18px -12px rgba(10, 16, 87, .7);
}

.contact-card.is-phone .icon-box {
  background: linear-gradient(145deg, #1B2378, #0A1057);
}

.contact-card.is-whatsapp .icon-box {
  background: linear-gradient(145deg, #25D366, #128C7E);
}

.contact-card.is-mail .icon-box {
  background: linear-gradient(145deg, #6B93C4, #517AAB);
}

.contact-card.is-clock .icon-box {
  background: linear-gradient(145deg, #F2A100, #E8590C);
}

.contact-form-box {
  border-color: color-mix(in srgb, var(--tp-sky) 70%, var(--tp-border));
  background:
    linear-gradient(180deg, rgba(242, 246, 252, .9) 0%, #fff 28%);
  box-shadow: 0 22px 48px -34px rgba(10, 16, 87, .3);
}

.contact-form-box .card-box-title i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(145deg, var(--tp-navy-700), var(--tp-steel));
  border-radius: 12px;
}

.map-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
  background-color: #dce8f7;
  background-image:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, .75), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(81, 122, 171, .28), transparent 42%),
    linear-gradient(rgba(201, 216, 241, .7) 2px, transparent 2px),
    linear-gradient(90deg, rgba(201, 216, 241, .7) 2px, transparent 2px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  border: 1px solid var(--tp-sky);
  border-radius: var(--tp-radius-lg);
}

.map-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--tp-ink);
}

.map-pin i {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  font-size: 1.6rem;
  color: #fff;
  background: var(--tp-navy);
  border-radius: 50% 50% 50% 0;
  box-shadow: var(--tp-shadow);
  transform: rotate(-45deg);
}

.map-pin i::before { transform: rotate(45deg); }

.about-story-panel {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 2.5rem 3rem;
  align-items: center;
  margin-bottom: 2rem;
}

.about-story-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 2rem 1.5rem;
  overflow: hidden;
  background:
    radial-gradient(420px 240px at 50% 40%, rgba(201, 216, 241, .7), transparent 65%),
    linear-gradient(165deg, var(--tp-sky-50), #fff 55%, var(--tp-sky-100));
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-lg);
}

.about-story-media img {
  position: relative;
  z-index: 1;
  width: min(100%, 320px);
  height: auto;
  filter: drop-shadow(0 24px 36px rgba(10, 16, 87, .18));
}

.about-story-badge {
  position: absolute;
  z-index: 2;
  top: 1.15rem;
  inset-inline-start: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .8rem;
  font-size: .8rem;
  font-weight: 800;
  color: var(--tp-navy);
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: 999px;
  box-shadow: var(--tp-shadow-sm);
}

.about-story {
  min-width: 0;
}

.about-story .section-title {
  margin-bottom: 1rem;
  text-wrap: balance;
}

.about-story > p {
  max-width: 40rem;
  margin-bottom: 1rem;
  line-height: 1.95;
}

.about-story-quote {
  margin: 1.25rem 0 1.5rem;
  padding: .95rem 1.1rem;
  max-width: 34rem;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.7;
  color: var(--tp-navy);
  background: linear-gradient(90deg, var(--tp-sky-50), transparent);
  border-inline-start: 3px solid var(--tp-navy);
  border-radius: 0 var(--tp-radius-sm) var(--tp-radius-sm) 0;
}

[dir="rtl"] .about-story-quote {
  border-radius: var(--tp-radius-sm) 0 0 var(--tp-radius-sm);
}

.about-story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-lg);
  box-shadow: 0 18px 40px -30px rgba(10, 16, 87, .22);
}

.about-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .25rem;
  min-width: 0;
  padding: 1.35rem 1.25rem;
  text-align: center;
}

.about-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22%;
  bottom: 22%;
  inset-inline-end: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--tp-sky), transparent);
}

.about-stat strong {
  display: block;
  font-size: clamp(1.4rem, 1.15rem + 1.2vw, 2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.04em;
  color: var(--tp-navy);
  font-variant-numeric: tabular-nums;
}

.about-stat span {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--tp-muted);
}

.value-card {
  height: 100%;
  min-width: 0;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
}

.value-card h3 {
  margin-block: 1rem .5rem;
  font-size: 1rem;
}

.value-card p {
  margin: 0;
  font-size: .875rem;
  color: var(--tp-muted);
}

/* Path timeline (about) */
.path-timeline {
  --path-gap: 1.25rem;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--path-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.path-timeline::before {
  content: "";
  position: absolute;
  top: 2.15rem;
  right: calc(12.5% + .5rem);
  left: calc(12.5% + .5rem);
  height: 2px;
  background: linear-gradient(90deg, var(--tp-sky), var(--tp-steel), var(--tp-sky));
  pointer-events: none;
}

.path-step {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
}

.path-step-mark {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
}

.path-step-mark time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: .35rem .7rem;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1;
  color: var(--tp-navy);
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: 999px;
  box-shadow: var(--tp-shadow-sm);
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}

.path-step-dot {
  width: 14px;
  height: 14px;
  background: var(--tp-navy);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--tp-sky);
}

.path-step-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  height: 100%;
  padding: 1.35rem 1.25rem 1.4rem;
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  transition:
    transform .25s var(--tp-ease),
    border-color .25s,
    box-shadow .25s;
}

.path-step:hover .path-step-card {
  border-color: var(--tp-sky);
  box-shadow: var(--tp-shadow);
  transform: translateY(-4px);
}

.path-step:hover .path-step-dot {
  background: var(--tp-steel);
  box-shadow: 0 0 0 2px var(--tp-navy);
}

.path-step-card .icon-box {
  margin-bottom: .85rem;
}

.path-step-card h3 {
  margin: 0 0 .45rem;
  font-size: 1rem;
  font-weight: 800;
}

.path-step-card p {
  margin: 0;
  font-size: .875rem;
  line-height: 1.85;
  color: var(--tp-muted);
}

@media (max-width: 991.98px) {
  .about-story-panel {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .about-story-media {
    min-height: 220px;
    order: -1;
  }

  .about-story-media img {
    width: min(100%, 260px);
  }

  .about-story .section-title {
    font-size: clamp(1.25rem, 1.05rem + 1vw, 1.55rem);
  }

  .about-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-stat:nth-child(2)::after {
    display: none;
  }

  .about-stat:nth-child(-n + 2)::before {
    content: "";
    position: absolute;
    right: 12%;
    left: 12%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tp-sky), transparent);
  }

  .path-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.75rem;
  }

  .path-timeline::before {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .about-story-actions .btn {
    width: 100%;
  }

  .about-stat {
    padding: 1.15rem 1rem;
  }

  .about-stat strong {
    font-size: clamp(1.3rem, 1.1rem + 2vw, 1.7rem);
  }

  .about-stat span {
    font-size: .75rem;
  }

  .value-card {
    padding: 1.25rem 1.15rem;
  }

  .value-card .icon-box {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .value-card h3 {
    margin-block: .85rem .4rem;
    font-size: .95rem;
  }

  .value-card p {
    font-size: .82rem;
    line-height: 1.75;
  }

  .path-timeline {
    grid-template-columns: 1fr;
    gap: 0;
    padding-inline-start: 1.15rem;
    border-inline-start: 2px solid var(--tp-sky);
  }

  .path-step {
    position: relative;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    padding-block: 0 1.5rem;
  }

  .path-step:last-child {
    padding-bottom: 0;
  }

  .path-step-mark {
    position: absolute;
    top: .15rem;
    inset-inline-start: -1.15rem;
    transform: translateX(50%);
    gap: 0;
  }

  [dir="rtl"] .path-step-mark {
    transform: translateX(-50%);
  }

  .path-step-mark time {
    position: absolute;
    top: -.15rem;
    inset-inline-start: 1.35rem;
    min-width: 0;
    white-space: nowrap;
  }

  .path-step-card {
    width: 100%;
    margin-top: 2rem;
    padding: 1.15rem 1.1rem 1.2rem;
  }

  .path-step:hover .path-step-card {
    transform: none;
  }
}

@media (max-width: 575.98px) {
  .about-story-media {
    padding: 1.5rem 1rem 1.75rem;
  }

  .about-story-quote {
    font-size: .95rem;
  }
}

.error-page { padding-block: 5rem; text-align: center; }
.error-code { font-size: clamp(5rem, 3rem + 10vw, 9rem); font-weight: 900; line-height: 1; color: var(--tp-navy); }
.error-code img { width: .85em; vertical-align: -.08em; animation: tp-spin 14s linear infinite; }

@keyframes tp-spin { to { transform: rotate(360deg); } }

/* 08. Footer & mobile nav
   ========================================================================== */
.site-footer {
  position: relative;
  padding-top: 3.5rem;
  overflow: hidden;
  font-size: .9rem;
  color: rgba(255, 255, 255, .72);
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(81, 122, 171, .28), transparent 55%),
    radial-gradient(700px 360px at 0% 100%, rgba(27, 35, 120, .55), transparent 50%),
    linear-gradient(165deg, var(--tp-navy-900) 0%, var(--tp-navy) 55%, #0d1458 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
  opacity: .55;
}

.site-footer > .container { position: relative; z-index: 1; }

.footer-main {
  display: grid;
  grid-template-columns: 1.35fr .75fr .75fr 1fr;
  gap: 2.5rem 2rem;
  min-width: 0;
}

.footer-brand-col,
.footer-nav-col,
.footer-trust-col {
  min-width: 0;
}

.site-footer .brand {
  /* same stack/centering as header */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.site-footer .brand-logo {
  margin-inline: auto;
  filter: brightness(0) invert(1);
  opacity: .95;
}

.site-footer .brand-text {
  display: block;
  text-align: center;
  color: rgba(255, 255, 255, .65);
  white-space: normal;
}

.footer-about {
  max-width: 380px;
  margin-block: 1.15rem 1.35rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, .62);
}

.footer-contact-list {
  display: grid;
  gap: .65rem;
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
}

.footer-contact-list li {
  min-width: 0;
}

.footer-contact-list a,
.footer-contact-list span {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: rgba(255, 255, 255, .78);
  transition: color .2s;
}

.footer-contact-list a:hover { color: #fff; }

.footer-contact-list i {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  margin-top: .05rem;
  font-size: .95rem;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
}

.footer-title {
  margin-bottom: 1.15rem;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: #fff;
}

.footer-links {
  display: grid;
  gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, .68);
  transition: color .2s, transform .2s;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(-3px);
}

/* keep sidebar/blog lists readable on light surfaces */
.card-box .footer-links a,
.blog-sidebar .footer-links a {
  color: var(--tp-body);
  transform: none;
}

.card-box .footer-links a:hover,
.blog-sidebar .footer-links a:hover {
  color: var(--tp-navy);
}

.social { display: flex; flex-wrap: wrap; gap: .5rem; }

.trust-badges + .social {
  margin-top: 1.25rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  transition: background-color .2s, border-color .2s, transform .2s;
}

.social a:hover {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .28);
  transform: translateY(-2px);
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.trust-badge {
  display: grid;
  place-items: center;
  gap: .35rem;
  min-width: 0;
  padding: .9rem .65rem;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  color: rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  transition: background-color .2s, border-color .2s, transform .2s;
}

.trust-badge:hover {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .22);
  transform: translateY(-2px);
}

.trust-badge i {
  font-size: 1.7rem;
  color: var(--tp-sky);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.75rem;
  padding-block: 1.2rem;
  font-size: .8rem;
  color: rgba(255, 255, 255, .55);
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer-bottom p {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .7);
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s;
}

.footer-credit:hover {
  color: #fff;
}

.footer-credit span {
  font-size: .95em;
  line-height: 1;
}

/* Tablet */
@media (max-width: 991.98px) {
  .site-footer {
    padding-top: 2.75rem;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.25rem;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }

  .footer-trust-col {
    grid-column: 1 / -1;
  }

  .footer-about {
    max-width: none;
  }

  .trust-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 28rem;
  }
}

/* Phone — minimal footer */
@media (max-width: 767.98px) {
  .site-footer {
    padding-top: 1.35rem;
    font-size: .875rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .footer-brand-col,
  .footer-nav-col,
  .footer-trust-col {
    grid-column: auto;
  }

  .footer-brand-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer .brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    width: 100%;
    margin-inline: auto;
    text-align: center;
  }

  .site-footer .brand-logo {
    display: block;
    margin-inline: auto;
    height: 26px;
  }

  .site-footer .brand-text {
    display: block;
    width: 100%;
    font-size: .78rem;
    line-height: 1.35;
    text-align: center;
  }

  /* Hide heavy desktop details on mobile */
  .footer-about,
  .footer-nav-col--services,
  .footer-trust-col .footer-title,
  .trust-badges,
  .footer-contact-list li:has(.bi-geo-alt) {
    display: none;
  }

  .footer-contact-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .45rem .85rem;
    margin: .65rem 0 0;
  }

  .footer-contact-list a,
  .footer-contact-list span {
    gap: .45rem;
    font-size: .8rem;
    line-height: 1.5;
  }

  .footer-contact-list i {
    width: 28px;
    height: 28px;
    font-size: .8rem;
    border-radius: 8px;
  }

  .footer-title {
    margin-bottom: .45rem;
    font-size: .72rem;
    letter-spacing: .04em;
    text-align: center;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .25rem .75rem;
  }

  .footer-links a {
    display: inline-block;
    padding-block: .1rem;
    font-size: .8rem;
    line-height: 1.45;
  }

  .footer-trust-col {
    display: flex;
    justify-content: center;
  }

  .social {
    justify-content: center;
    gap: .4rem;
    margin-top: 0;
  }

  .social a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin-top: 1rem;
    padding-block: .75rem;
    text-align: center;
  }

  .footer-bottom p {
    font-size: .72rem;
    line-height: 1.6;
  }

  .footer-credit {
    justify-content: center;
    font-size: .72rem;
  }
}

@media (max-width: 399.98px) {
  .footer-links a {
    font-size: .76rem;
  }
}

@media (max-width: 991.98px) {
  :root { --tp-header-offset: 1rem; }
}

/* --- Mobile polish --- */
/* Kill page-level horizontal scroll / "zoomed out" layout on phones.
   Prefer overflow-x:hidden over clip for broader Safari/WebView support. */
html {
  -webkit-tap-highlight-color: transparent;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body,
body.site {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  position: relative;
}

.form-control,
.form-select {
  font-size: 1rem;
}

@media (max-width: 991.98px) {
  .container,
  .container-fluid {
    padding-inline: 1rem;
    max-width: 100%;
  }

  .site-header,
  .site-footer,
  main,
  .section,
  .page-hero,
  .finder,
  .product-core,
  .product-tabs,
  .shop-layout,
  .shop-main,
  .card-box {
    max-width: 100%;
    min-width: 0;
  }

  /* Keep intentional carousels local — never expand the page */
  .cats-scroller,
  .products-scroller,
  .brands-scroller,
  .posts-scroller,
  .sort-links,
  .blog-cat-list,
  .gallery-thumbs {
    max-width: 100%;
    overscroll-behavior-x: contain;
  }

  /* Bootstrap .row negative gutters must stay inside padded parents */
  .product-tabs .tab-pane,
  .product-tabs .card-box,
  .review-form {
    overflow-x: hidden;
  }

  .hero {
    padding-block: 1.25rem 2.75rem;
    overflow-x: hidden;
  }

  .hero-layout {
    gap: 1rem;
    min-width: 0;
  }

  .hero-copy,
  .hero-visual,
  .hero-stats {
    min-width: 0;
    max-width: 100%;
  }

  .hero-title {
    margin-block: 0 .55rem;
    font-size: clamp(1.35rem, 1rem + 2.6vw, 1.85rem);
    line-height: 1.5;
    white-space: normal;
  }

  .hero-lead {
    margin-bottom: 0;
    font-size: .88rem;
    line-height: 1.7;
  }

  .hero .d-flex.flex-wrap.gap-2 {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    gap: .5rem;
  }

  .hero .d-flex.flex-wrap.gap-2 > .btn {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: .75rem;
    font-size: .85rem;
    white-space: nowrap;
  }

  .hero-visual {
    max-width: 300px;
    margin-inline: auto;
  }

  .hero-visual > img {
    width: 96%;
  }

  .hero-chip {
    max-width: min(46%, 11.5rem);
    gap: .45rem;
    padding: .45rem .65rem .45rem .7rem;
    font-size: .72rem;
  }

  .hero-chip i {
    width: 28px;
    height: 28px;
    font-size: .9rem;
    border-radius: 8px;
  }

  .hero-chip.is-top {
    top: 2%;
    right: 0;
  }

  .hero-chip.is-bottom {
    bottom: 2%;
    left: 0;
  }

  .finder {
    margin-block: -1.75rem;
  }

  .finder + .section {
    padding-top: clamp(3.5rem, 3rem + 2vw, 4.75rem);
  }

  .finder-card {
    padding: .75rem 1rem 1rem;
  }

  .finder-head {
    margin-bottom: .45rem;
  }

  .finder-title .icon-box {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
    border-radius: 10px;
  }

  .finder-title h2 {
    font-size: .95rem;
  }

  .finder-title p {
    font-size: .72rem;
  }

  .finder-card .nav-pills {
    display: flex;
    width: 100%;
  }

  .finder-card .nav-pills .nav-item {
    flex: 1;
  }

  .finder-card .nav-pills .nav-link {
    width: 100%;
    padding-inline: .5rem;
    text-align: center;
    font-size: .8rem;
  }

  .finder-card .form-label {
    margin-bottom: .3rem;
    font-size: .78rem;
  }

  .finder-card .form-select,
  .finder-card .tp-select-trigger {
    padding-block: .42rem;
    padding-inline: .65rem;
    font-size: .8rem;
    line-height: 1.4;
    min-height: 2.15rem;
  }

  .finder-card .form-select {
    padding-inline-end: 2rem;
    background-position: left .65rem center;
    background-size: 10px 10px;
  }

  .finder-card .form-select:focus {
    background-position: left .65rem center;
    background-size: 10px 10px;
  }

  .finder-card .tp-select-trigger {
    gap: .35rem;
  }

  .finder-card .tp-select-trigger::after {
    width: 10px;
    height: 10px;
    background-size: 10px;
  }

  .finder-card .btn {
    min-height: 2.15rem;
    padding-block: .42rem;
    font-size: .85rem;
  }

  .promo {
    min-height: 0;
    padding: 1.35rem 1.2rem;
  }

  .promo-body {
    max-width: 68%;
  }

  .promo img {
    width: 34%;
    max-width: 140px;
    left: .75rem;
  }

  .promo h3 {
    font-size: 1.05rem;
  }

  .promo p {
    margin-bottom: .9rem;
    font-size: .8rem;
  }

  .feature {
    padding: 1.1rem .95rem;
  }

  .newsletter {
    padding: 1.5rem 1.25rem;
  }

  .newsletter h2 {
    font-size: 1.15rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form .btn {
    width: 100%;
  }

  .section-head {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: .75rem .85rem;
    margin-bottom: 1.1rem;
  }

  .section-head .scroller-nav,
  .section-head .link-more {
    align-self: flex-end;
    flex: none;
  }

  .section.section-alt + .section.section-alt {
    padding-top: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  }

  .brand-tile {
    height: 76px;
    padding: .3rem;
  }

  .brand-tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .post-card .post-body {
    padding: 1rem .95rem 1.1rem;
  }

  .card-box {
    padding: 1.15rem;
  }

  .buy-box,
  .summary-card {
    position: static;
  }

  .gallery-thumbs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .gallery-thumbs::-webkit-scrollbar { display: none; }

  .gallery-thumb {
    flex: none;
    width: 72px;
    height: 72px;
    aspect-ratio: 1 / 1;
  }

  .key-specs span {
    min-width: 5.5rem;
  }

  .page-hero {
    padding-block: 1.25rem;
  }

  .shop-main .pagination {
    gap: .25rem;
  }

  .shop-main .page-link {
    min-width: 2.25rem;
    padding-inline: .55rem;
  }

  .auth-aside {
    padding: 1.75rem 1.35rem;
  }

  .auth-form {
    padding: 1.35rem !important;
  }
}

@media (max-width: 575.98px) {
  .hero {
    padding-block: 1rem 2.35rem;
  }

  .hero-layout {
    gap: .75rem;
  }

  .hero-chip {
    display: none;
  }

  .hero-visual {
    max-width: 240px;
  }

  .hero-title {
    font-size: clamp(1.25rem, 1rem + 2vw, 1.55rem);
  }

  .hero-lead {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    font-size: .82rem;
  }

  .finder {
    margin-block: -1.5rem;
  }

  .finder + .section {
    padding-top: clamp(3.25rem, 2.75rem + 2vw, 4.25rem);
  }

  .finder-card {
    padding: .65rem .85rem .9rem;
  }

  .finder-card .nav-pills .nav-link {
    font-size: .74rem;
    padding-block: .45rem;
  }

  .finder-card .form-label {
    font-size: .72rem;
  }

  .finder-card .form-select,
  .finder-card .tp-select-trigger {
    padding-block: .35rem;
    padding-inline: .55rem;
    font-size: .74rem;
    min-height: 2rem;
  }

  .finder-card .form-select {
    padding-inline-end: 1.75rem;
    background-position: left .55rem center;
  }

  .finder-card .form-select:focus {
    background-position: left .55rem center;
  }

  .finder-card .btn {
    min-height: 2rem;
    padding-block: .35rem;
    font-size: .8rem;
  }

  .promo {
    padding: 1.15rem 1rem;
  }

  .promo-body {
    max-width: 100%;
  }

  .promo img {
    display: none;
  }

  .promo .btn {
    width: 100%;
  }

  .section {
    padding-block: 2.15rem;
  }

  .section-sm {
    padding-block: 1.5rem;
  }

  .section-title {
    font-size: clamp(1.1rem, .95rem + 1vw, 1.3rem);
  }

  /* Single-column product cards: roomier body */
  .row.row-cols-1 > .col > .product-card .product-body {
    padding: .9rem 1rem 1rem;
  }

  .row.row-cols-1 > .col > .product-card .product-title {
    font-size: .95rem;
    -webkit-line-clamp: 2;
  }

  .row.row-cols-1 > .col > .product-card .price strong {
    font-size: 1.05rem;
  }

  .row.row-cols-1 > .col > .product-card .btn-more {
    font-size: .8rem;
    padding: .55rem .75rem;
  }

  .garage-bar {
    align-items: flex-start;
  }

  .cart-item {
    grid-template-columns: 72px 1fr;
    gap: .75rem;
  }

  .cart-item-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-item-foot .price {
    margin-inline-start: 0;
    align-items: flex-start;
  }

  .buy-price strong {
    font-size: 1.35rem;
  }

  .product-heading {
    font-size: 1.15rem;
  }

}

/* 09. Utilities & a11y
   ========================================================================== */
.text-navy { color: var(--tp-navy) !important; }
.text-steel { color: var(--tp-steel-700) !important; }
.text-accent { color: var(--tp-accent-700) !important; }
.text-ink { color: var(--tp-ink) !important; }
.bg-sky-50 { background-color: var(--tp-sky-50) !important; }
.bg-sky-100 { background-color: var(--tp-sky-100) !important; }
.fw-black { font-weight: 900 !important; }
.fs-sm { font-size: .875rem !important; }
.fs-xs { font-size: .78rem !important; }
.rounded-tp { border-radius: var(--tp-radius) !important; }

@media (min-width: 992px) {
  .row-cols-lg-8 > * { flex: 0 0 auto; width: 12.5%; }
}

@media (min-width: 1200px) {
  .row-cols-xl-8 > * { flex: 0 0 auto; width: 12.5%; }
}

/* Wholesale — purchase paths */
.sales-fork {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr);
  gap: 2rem 3rem;
  align-items: center;
  padding: 2rem;
  background:
    linear-gradient(135deg, #fff 0%, var(--tp-sky-50) 100%);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-lg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 22px 48px -30px rgba(10, 16, 87, .2);
}

.sales-fork-intro .section-title {
  margin-bottom: .65rem;
}

.sales-fork-intro .section-desc {
  max-width: 28rem;
}

.sales-fork-paths {
  display: grid;
  gap: .85rem;
}

.sales-path {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 1.15rem;
  padding: 1.1rem 1.2rem;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  box-shadow: var(--tp-shadow-sm);
  transition:
    border-color .2s var(--tp-ease),
    box-shadow .2s var(--tp-ease),
    transform .2s var(--tp-ease);
}

.sales-path:hover {
  border-color: color-mix(in srgb, var(--tp-steel) 45%, var(--tp-border));
  box-shadow: var(--tp-shadow);
  transform: translateY(-2px);
  color: inherit;
}

.sales-path:focus-visible {
  outline: 2px solid var(--tp-steel);
  outline-offset: 2px;
}

.sales-path-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
  color: var(--tp-navy);
  background: var(--tp-sky-100);
  border-radius: 14px;
}

.sales-path.is-wholesale .sales-path-icon {
  color: #fff;
  background: linear-gradient(145deg, var(--tp-navy-700), var(--tp-navy));
}

.sales-path-copy {
  display: grid;
  gap: .15rem;
  min-width: 0;
}

.sales-path-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--tp-steel-700);
}

.sales-path.is-wholesale .sales-path-label {
  color: var(--tp-accent-700);
}

.sales-path-title {
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.35;
  color: var(--tp-ink);
}

.sales-path-desc {
  font-size: .82rem;
  line-height: 1.7;
  color: var(--tp-muted);
}

.sales-path-action {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  flex: none;
  padding: .55rem .9rem;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--tp-navy);
  background: var(--tp-sky-50);
  border-radius: 999px;
  transition: background-color .2s var(--tp-ease), color .2s var(--tp-ease);
}

.sales-path:hover .sales-path-action {
  color: #fff;
  background: var(--tp-navy);
}

.sales-path:hover .sales-path-action i {
  transform: translateX(-3px);
}

.sales-path-action i {
  transition: transform .2s var(--tp-ease);
}

.sales-fork-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-block: -.15rem;
  color: var(--tp-muted);
  font-size: .75rem;
  font-weight: 700;
}

.sales-fork-divider::before,
.sales-fork-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--tp-sky), transparent);
}

.sales-fork-divider span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--tp-steel-700);
  background: #fff;
  border: 1px solid var(--tp-border);
  border-radius: 50%;
}

@media (max-width: 991.98px) {
  .sales-fork {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .sales-fork {
    padding: 1.15rem;
  }

  .sales-path {
    grid-template-columns: auto 1fr;
    gap: .85rem;
  }

  .sales-path-action {
    grid-column: 2;
    justify-self: start;
  }
}

.wholesale-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.15rem 1.35rem;
  background:
    linear-gradient(120deg, rgba(10, 16, 87, .06), rgba(74, 111, 165, .1));
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
}

.wholesale-banner > div {
  flex: 1 1 auto;
  min-width: 0;
}

.wholesale-banner p {
  margin: 0;
  max-width: none;
  font-size: .9rem;
  line-height: 1.8;
  color: var(--tp-body);
}

.wholesale-banner strong { color: var(--tp-ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
