/* Scoped styles: all rules are prefixed with .tb-shop to prevent leakage to other pages */
/* Shop page spacing (scoped) */
.tb-shop {
  padding: 16px 0 48px;
}

/* topbar: 2 ستون ثابت، تراز دقیق */
.tb-shop .topbar {
  display: flex;
  align-items: stretch; /* مهم: دو ستون هم‌قد و تراز */
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap; /* مهم: دسکتاپ ثابت */
  margin-bottom: 14px;
}
@media (max-width: 980px) {
  .tb-shop .topbar {
    flex-wrap: wrap;
  }
}

/* ستون عنوان (راست) */
.tb-shop .topbar .stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 520px; /* اجازه بده بزرگ‌تر بشه */
  min-width: 280px;
}

/* ستون چیپ‌ها (topbarActions) */
.tb-shop .topbarActions {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* RTL: می‌چسبه به سمت چپ */
  gap: 8px;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-self: flex-end; /* تراز با پایین عنوان */
}
.tb-shop .crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-weight: 700; /* کمتر بولد */
  font-size: 12.5px; /* کمی ریزتر */
  color: rgba(5, 46, 27, 0.72); /* کمی کم‌رنگ‌تر */
}
.tb-shop .crumbs span.sep {
  opacity: 0.55;
}
/* ===== Heading row (title + inline lead) ===== */
.tb-shop .tbShopHeading {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ردیف عنوان + لید */
.tb-shop .tbShopTitleRow {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: nowrap; /* دسکتاپ: هرگز نره خط بعد */
  min-width: 0;
  row-gap: 0; /* جلوگیری از فاصله ردیفی ناخواسته */
  /* ضروری برای ellipsis و جمع شدن درست */
}

.tb-shop .tbShopTitle {
  margin: 0;
  font-weight: 900;
  font-size: 32px;
  line-height: 1.2;
  flex: 0 0 auto; /* اجازه نده کش بیاد */
  width: auto; /* اگر قالب width:100% داده بود خنثی شه */
}

/* لید کنار عنوان */
.tb-shop .tbShopLeadInline {
  font-weight: 750;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(5, 46, 27, 0.78);

  flex: 1 1 auto; /* فضا رو پر کنه */
  min-width: 0; /* لازمه تا ellipsis کار کنه */
  display: block;

  white-space: nowrap; /* کنار عنوان */
  overflow: hidden; /* برای تایپ/کات */
  text-overflow: ellipsis;
}

/* تایپ افکت با JS انجام می‌شود: اینجا فقط caret + clipping */
.tb-shop .tb-typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid rgba(5, 46, 27, 0.35);
  padding-right: 8px;
}

/* وقتی تایپ تمام شد (JS کلاس می‌دهد) caret خاموش شود */
.tb-shop .tb-typewriter.is-done {
  border-right-color: transparent;
}

/* موبایل: هدر فروشگاه جمع‌وجورتر و اپ‌مانندتر شود */
@media (max-width: 768px) {
  .tb-shop {
    padding-top: 8px;
  }

  .tb-shop .topbar {
    gap: 8px;
    margin-bottom: 10px;
    padding: 0 2px;
  }

  .tb-shop .topbar .stack {
    flex: 1 1 100%;
    min-width: 0;
    gap: 4px;
  }

  .tb-shop .crumbs {
    display: none;
  }

  .tb-shop .tbShopTitleRow {
    gap: 6px;
    flex-wrap: wrap;
  }

  .tb-shop .tbShopTitle {
    font-size: 24px;
    line-height: 1.25;
  }

  .tb-shop .tbShopLeadInline {
    flex: 1 1 100%;
    font-size: 12.5px;
    line-height: 1.7;
    color: rgba(5, 46, 27, 0.62);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .tb-shop .tb-typewriter {
    white-space: normal;
    border-right: 0;
    padding-right: 0;
  }

  .tb-shop .topbarActions {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
    align-self: auto;
  }

  .tb-shop .topbarActions .chip {
    font-size: 11.5px;
    padding: 6px 9px;
  }

  .tb-shop .topbarActions #tbShopToggleFilters {
    margin-inline-start: auto;
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
  }
}

.tb-shop .layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 14px;
  align-items: start;
}
/* جلوگیری از شکستن sticky توسط overflow های والد */
.tb-shop .layout,
.tb-shop .content,
.tb-shop .container {
  overflow: visible;
}
@media (max-width: 1180px) {
  .tb-shop .layout {
    grid-template-columns: 1fr;
  }

  .tb-shop aside.sidebar {
    position: static !important;
    top: auto !important;
  }
}
.tb-shop .sidebar {
  padding: 12px;
  position: sticky;
  top: 16px;
}
.tb-shop .sidebar .panel {
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
}
.tb-shop .sidebar .panel + .panel {
  margin-top: 12px;
}
/* ---------- Sidebar: section separation + readability ---------- */

.tb-shop .sidebar .panelTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  font-weight: 950;
  font-size: 14px;
  line-height: 1.2;

  margin: 0 0 12px;
  padding-bottom: 10px;

  border-bottom: 1px solid rgba(5, 46, 27, 0.08);
}

/* ===== Sidebar: Missing pieces (fix crowded titles & layout) ===== */

/* متن توضیح زیر عنوان پنل */
.tb-shop .sidebar .panelHint {
  margin: -6px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(5, 46, 27, 0.04);
  border: 1px solid rgba(5, 46, 27, 0.06);

  font-weight: 800;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(5, 46, 27, 0.68);
}

/* ردیف دکمه‌های بالا (پاک‌کردن / اعمال) */
.tb-shop .sidebar .panelActions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.tb-shop .sidebar .panelActions .btn {
  flex: 1 1 0;
  min-width: 0;
}

/* یادداشت کنار عنوان (چند انتخاب/اختیاری) */
.tb-shop .sidebar .panelNote {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 10px;
  border-radius: 999px;

  background: rgba(5, 46, 27, 0.05);
  border: 1px solid rgba(5, 46, 27, 0.08);

  font-weight: 900;
  font-size: 12px;
  color: rgba(5, 46, 27, 0.6);
  white-space: nowrap;
}

/* سمت راست هر آیتم: count + checkbox کنار هم */
.tb-shop .sidebar .checkRight {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* لیست‌های فیلتر بدون اسکرول داخلی؛ کل صفحه اسکرول می‌خورد */
.tb-shop .sidebar .checklist {
  max-height: none;
  overflow: visible;
  padding: 2px;
}

/* عنوان‌ها کمی برجسته‌تر + فاصله بهتر نسبت به محتوا */
.tb-shop .sidebar .panelTitle {
  margin-bottom: 10px; /* قبلاً 12 بود اما با panelHint بهتره کمی کمتر */
}

.tb-shop .sidebar .panel {
  overflow: hidden; /* کمک می‌کنه بکگراند/اسکرول تمیز بشه */
}
/* اگر داخل عنوان badge/count دارید، جمع‌وجورتر شه (فقط سایدبار) */
.tb-shop .sidebar .panelTitle > * {
  min-width: 0;
}

/* جداکننده‌های بین بلاک‌ها کمتر مزاحم (فقط سایدبار) */
.tb-shop .sidebar .divider {
  height: 1px;
  background: rgba(5, 46, 27, 0.06);
  margin: 14px 0;
}

/* لیست آیتم‌ها: فاصله کمتر ولی مرتب‌تر */
.tb-shop .sidebar .checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* هر آیتم فیلتر: ارتفاع و چینش بهتر (فقط سایدبار) */
.tb-shop .sidebar .check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(5, 46, 27, 0.1);
  background: rgba(255, 255, 255, 0.92);

  user-select: none;

  min-height: 44px;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.tb-shop .sidebar .tbCatSeoLink {
  display: block;
  flex: 1 1 auto;

  color: rgba(5, 46, 27, 0.92);
  text-decoration: none;

  font-weight: 900;
  font-size: 13.5px;
  line-height: 1.25;

  transition: color .15s ease;
}

.tb-shop .sidebar .tbCatSeoLink:hover {
  color: rgba(255, 61, 46, 1);
  text-decoration: underline;
}

.tb-shop .sidebar .tbCatFilterControl {
  flex: 0 0 auto;
  cursor: pointer;
}

.tb-shop .sidebar .check .meta {
  font-weight: 900;
  font-size: 13.5px;
  line-height: 1.25;
  color: rgba(5, 46, 27, 0.92);

  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-shop .sidebar .check .count {
  font-weight: 900;
  font-size: 12.5px;
  color: rgba(5, 46, 27, 0.55);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* چک‌باکس‌ها هم‌قد و تراز (فقط سایدبار) */
.tb-shop .sidebar .check input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* hover ملایم‌تر (فقط سایدبار) */
.tb-shop .sidebar .check:hover {
  box-shadow: 0 10px 18px rgba(5, 46, 27, 0.07);
  transform: translateY(-1px);
}

.tb-shop .rangeBox {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tb-shop .rangeRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 900;
}
.tb-shop .rangeRow span {
  font-variant-numeric: tabular-nums;
}
.tb-shop .rangeWrap {
  position: relative;
  height: 44px;
  padding: 10px 0;
  direction: ltr;
}

.tb-shop .rangeWrap .track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 8px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(5, 46, 27, 0.08);
  overflow: hidden;
}

.tb-shop .rangeWrap .track .fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(34, 197, 94, 1),
    rgba(255, 61, 46, 1)
  );
  transition:
    left 0.12s ease,
    right 0.12s ease;
}

.tb-shop .rangeWrap input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  pointer-events: none;
}

.tb-shop .rangeWrap input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  background: transparent;
}

.tb-shop .rangeWrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -7px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(5, 46, 27, 0.22);
  box-shadow: 0 10px 22px rgba(5, 46, 27, 0.16);
  cursor: grab;
  pointer-events: auto;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

.tb-shop .rangeWrap input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.08);
}

.tb-shop .rangeWrap input[type="range"]::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.12);
}

.tb-shop .rangeWrap input[type="range"]::-moz-range-track {
  height: 8px;
  background: transparent;
}

.tb-shop .rangeWrap input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(5, 46, 27, 0.22);
  box-shadow: 0 10px 22px rgba(5, 46, 27, 0.16);
  cursor: grab;
  pointer-events: auto;
}
.tb-shop .rangeWrap input[type="range"]::-moz-range-progress {
  background: transparent;
}

.tb-shop .rangeWrap input[type="range"]:focus {
  outline: none;
}

.tb-shop .rangeWrap input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow:
    0 10px 22px rgba(5, 46, 27, 0.16),
    0 0 0 5px rgba(34, 197, 94, 0.16);
}

.tb-shop .rangeWrap input[type="range"]:focus-visible::-moz-range-thumb {
  box-shadow:
    0 10px 22px rgba(5, 46, 27, 0.16),
    0 0 0 5px rgba(34, 197, 94, 0.16);
}
.tb-shop .clearBtn {
  width: 100%;
  justify-content: center;
}
.tb-shop .content {
  padding: 12px;
}
.tb-shop .toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.tb-shop .sort {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-weight: 900;
}
.tb-shop .sort select {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  padding: 10px 12px;
  font-weight: 900;
  outline: none;
}

.tb-shop .sort select:focus {
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.12);
}
.tb-shop .resultMeta {
  font-weight: 900;
  color: rgba(5, 46, 27, 0.82);
}
.tb-shop .hScroll {
  display: flex;
  gap: 14px;
  overflow: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}
.tb-shop .hScroll::-webkit-scrollbar {
  height: 10px;
}
.tb-shop .hScroll::-webkit-scrollbar-thumb {
  background: rgba(5, 46, 27, 0.18);
  border-radius: 999px;
}
.tb-shop .hScroll::-webkit-scrollbar-track {
  background: transparent;
}
.tb-shop .feat {
  min-width: 280px;
  max-width: 320px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  border-radius: var(--r20);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.tb-shop .feat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
}
.tb-shop .featTop {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(5, 46, 27, 0.08);
  background:
    radial-gradient(
      320px 120px at 20% 0%,
      rgba(34, 197, 94, 0.25),
      transparent 60%
    ),
    radial-gradient(
      320px 120px at 80% 100%,
      rgba(239, 68, 68, 0.14),
      transparent 60%
    ),
    rgba(255, 255, 255, 0.92);
}
.tb-shop .featTop .off {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 61, 46, 0.12);
  border: 1px solid rgba(255, 61, 46, 0.22);
  color: rgba(255, 61, 46, 1);
  font-weight: 950;
  font-size: 12.5px;
  white-space: nowrap;
}
.tb-shop .featBody {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tb-shop .featTitle {
  font-weight: 950;
  font-size: 14.8px;
}
.tb-shop .featMeta {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}
/* ===== Price (Shop Cards - aligned layout) ===== */
.tb-shop .price {
  display: flex;
  align-items: baseline;
  gap: 4px 7px;
  flex-wrap: wrap;
  font-weight: 950;
  line-height: 1.35;
  min-width: 0;
}

.tb-shop .price strong {
  order: 1;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tb-shop .price .toman,
.tb-shop .price .woocommerce-Price-currencySymbol {
  order: 2;
  font-size: 12.5px;
  font-weight: 850;
  color: var(--muted);
  white-space: nowrap;
}

.tb-shop .price del {
  order: 3;
  flex-basis: 100%;
  width: max-content;
  max-width: 100%;
  opacity: 0.48;
  color: rgba(5, 46, 27, 0.55);
  font-weight: 850;
  font-size: 12.5px;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: line-through;
}

/* ===== WooCommerce price fixes (toman + underline + double currency) ===== */

/* 1) underline پیش‌فرض <ins> رو بردار */
.tb-shop .price ins {
  text-decoration: none !important;
}

/* 2) نماد پول (تومان) را نشان بده و شبیه طرح استاتیک کن */
.tb-shop .price .woocommerce-Price-currencySymbol {
  font-size: 12.5px;
  font-weight: 850;
  color: var(--muted);
  white-space: nowrap;
}

/* 3) روی محصولات تخفیف‌دار، تومانِ داخل قیمت قبلی (del) را مخفی کن تا دوتا نشود */
.tb-shop .price del .woocommerce-Price-currencySymbol {
  display: none !important;
}

/* (اختیاری ولی پیشنهاد می‌کنم) فاصله‌ها و نمایش del/ins مرتب‌تر */
.tb-shop .price del {
  text-decoration: line-through;
}

/* ===== Rating pill (FINAL - single source of truth) ===== */
.tb-shop .rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  /* ✅ ستاره سمت راست عدد در RTL */
  direction: rtl;

  font-weight: 950;
  color: rgba(5, 46, 27, 0.82);
  font-size: 13px;
  line-height: 1;

  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(5, 46, 27, 0.1);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 20px rgba(5, 46, 27, 0.06);

  white-space: nowrap;
}

.tb-shop .rating .rateNum {
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.tb-shop .rating .rateStar {
  font-size: 13px;
  line-height: 1;

  /* ✅ مهم: دیگه بالا نره */
  transform: none;

  display: inline-flex;
  align-items: center;

  /* ✅ رنگ طلایی */
  color: #e0a106;
  text-shadow: 0 2px 10px rgba(224, 161, 6, 0.25);
  opacity: 1;
}
/* ✅ قفل ترتیب در هر شرایطی */
.tb-shop .rating .rateStar {
  order: 1;
}
.tb-shop .rating .rateNum {
  order: 2;
}

.tb-shop .product {
  border-radius: var(--r20);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;

  display: flex;
  flex-direction: column;
  height: 100%;
}
.tb-shop .product:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
}
.tb-shop .product .thumb {
  display: block;
  position: relative;
  min-height: 0;
  padding: 0;
  flex: 0 0 auto;
  background:
    radial-gradient(
      240px 140px at 20% 25%,
      rgba(34, 197, 94, 0.18),
      transparent 60%
    ),
    radial-gradient(
      240px 140px at 80% 80%,
      rgba(239, 68, 68, 0.1),
      transparent 60%
    ),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(247, 255, 250, 0.7));
  border-bottom: 1px solid rgba(5, 46, 27, 0.08);
  overflow: hidden;
  text-decoration: none;
}
/* تصویر ووکامرس داخل thumb */
.tb-shop .product .thumb img {
  width: 100%;
  height: 220px; /* ارتفاع کارت‌ها یکدست */
  object-fit: cover;
  display: block;
}

/* اگر محصول عکس نداشت و placeholder اومد، بازم مرتب باشه */
.tb-shop .product .thumb img.woocommerce-placeholder {
  object-fit: contain;
  padding: 22px;
  opacity: 0.85;
}
.tb-shop .product .emoji {
  font-size: 48px;
  filter: drop-shadow(0 12px 18px rgba(5, 46, 27, 0.14));
  transform: translateY(-2px);
}
.tb-shop .product .body {
  padding: 12px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.tb-shop .product .name {
  margin: 0;
  font-weight: 950;
  font-size: 15px;
  line-height: 1.5;
  min-height: 46px;
}

.tb-shop .product .meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  min-height: 40px;
}
.tb-shop .row2 {
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
  min-height: 58px;
}

.tb-shop .row2 .price {
  flex: 1 1 auto;
  max-width: calc(100% - 72px);
}

.tb-shop .row2 .rating {
  flex: 0 0 auto;
  margin-top: 2px;
}
/* دکمه افزودن (هم نسخه قدیمی .addBtn هم دکمه ووکامرس) */
.tb-shop .addBtn,
.tb-shop .pActions .button,
.tb-shop .pActions a.button,
.tb-shop .pActions .add_to_cart_button,
.tb-shop .pActions a.add_to_cart_button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  border-radius: 14px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: linear-gradient(
    180deg,
    rgba(34, 197, 94, 0.78),
    rgba(22, 163, 74, 0.48)
  );
  color: #fff !important;
  font-weight: 950;
  cursor: pointer;
  padding: 10px 12px;
  text-decoration: none !important;
  line-height: 1.2;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

/* ================================
   Actions Row (Cart + Favorite)
   scoped to .tb-shop
================================ */

/* ردیف اکشن‌ها: همیشه یک خط، هم‌ارتفاع */
.tb-shop .pActions {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: stretch;
  gap: 10px;
  justify-content: space-between;
}

/* ✅ ریست امن برای همه آیتم‌های داخل pActions (هم سبد خرید هم قلب) */
.tb-shop .pActions > * {
  position: static !important;
  float: none !important;
  inset: auto !important;
  transform: none !important;
}

/* ================================
   Add to cart button (Woo)
================================ */

/* بعضی قالب‌ها روی a.button / .add_to_cart_button float/width عجیب میدن */
.tb-shop .pActions .button,
.tb-shop .pActions a.button,
.tb-shop .pActions .add_to_cart_button,
.tb-shop .pActions a.add_to_cart_button {
  flex: 1 1 auto;
  min-width: 0;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  height: 44px; /* ✅ یکدست با قلب */
  padding: 10px 12px;

  border-radius: 14px;
  line-height: 1.2;
  text-decoration: none !important;
  box-sizing: border-box;

  float: none !important;
  position: static !important;
}

/* ================================
   Favorite Button
================================ */

.tb-shop .tbFavBtn {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  border-radius: 14px;

  padding: 0;
  margin: 0;
  box-sizing: border-box;

  border: 1px solid var(--border) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  color: rgba(5, 46, 27, 0.72) !important;

  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;

  appearance: none;
  -webkit-appearance: none;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

/* آیکن داخل قلب (الان تو PHP گذاشتی span.tbFavIcon) */
.tb-shop .tbFavBtn .tbFavIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 22px; /* ✅ قلب بزرگ‌تر */
}

/* اگر بعداً SVG/FontAwesome شد، این هم ساپورتش می‌کنه */
.tb-shop .tbFavBtn svg,
.tb-shop .tbFavBtn svg * {
  fill: currentColor !important;
  stroke: currentColor !important;
}

/* hover */
.tb-shop .tbFavBtn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow2);
  border-color: rgba(5, 46, 27, 0.14) !important;
}

/* active press */
.tb-shop .tbFavBtn:active {
  transform: translateY(0) scale(0.99);
}

/* فوکوس */
.tb-shop .tbFavBtn:focus-visible {
  outline: none;
  border-color: rgba(239, 68, 68, 0.35) !important;
  box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.12);
}

/* حالت فعال */
.tb-shop .tbFavBtn.is-active {
  border-color: rgba(255, 61, 46, 0.25) !important;
  background: rgba(255, 61, 46, 0.1) !important;
  color: rgba(255, 61, 46, 1) !important;
}

/* حالت لودینگ */
.tb-shop .tbFavBtn.is-loading {
  pointer-events: none;
  opacity: 0.75;
  position: relative;
}

.tb-shop .tbFavBtn.is-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(5, 46, 27, 0.18);
  border-top-color: rgba(5, 46, 27, 0.55);
  position: absolute;
  animation: tbSpin 0.8s linear infinite;
}

.tb-shop .tbFavBtn.is-loading .tbFavIcon {
  opacity: 0;
}

@keyframes tbSpin {
  to {
    transform: rotate(360deg);
  }
}

/* hover/active برای همه */
.tb-shop .addBtn:hover,
.tb-shop .pActions .button:hover,
.tb-shop .pActions a.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(34, 197, 94, 0.16);
}

.tb-shop .addBtn:active,
.tb-shop .pActions .button:active,
.tb-shop .pActions a.button:active {
  transform: translateY(0) scale(0.99);
}

/* فقط miniIcon های غیر علاقه‌مندی مخفی شوند */
.tb-shop .miniIcon:not(.tbFavBtn) {
  display: none !important;
}

/* دکمه علاقه‌مندی داخل کارت محصول حتماً دیده شود */
.tb-shop .pActions .tbFavBtn,
.tb-shop .pActions .miniIcon.tbFavBtn {
  flex: 0 0 44px !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.tb-shop .pager {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tb-shop .pageBtns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tb-shop .pageBtn {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  font-weight: 950;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;

  /* ✅ برای وقتی pageBtn لینک <a> باشد */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  color: inherit;
  box-sizing: border-box;
}
.tb-shop .pageBtn.is-disabled,
.tb-shop .pageBtn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
  transform: none !important;
  box-shadow: none !important;
}
.tb-shop .pageBtn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow2);
}
.tb-shop .pageBtn[aria-current="page"] {
  background: linear-gradient(
    180deg,
    rgba(255, 61, 46, 1),
    rgba(34, 197, 94, 1)
  );
  border-color: rgba(255, 61, 46, 0.25);
  color: #fff;
  box-shadow: 0 14px 32px rgba(255, 61, 46, 0.2);
}
.tb-shop .empty {
  padding: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(5, 46, 27, 0.18);
  background: rgba(255, 255, 255, 0.8);
  font-weight: 900;
}
@media (prefers-reduced-motion: reduce) {
  .tb-shop * {
    scroll-behavior: auto !important;
  }

  .tb-shop .btn,
  .tb-shop .product,
  .tb-shop .sidebar .check,
  .tb-shop .pageBtn {
    transition: none !important;
  }

  .tb-shop .tb-typewriter {
    animation: none !important;
    border-right: 0 !important;
    padding-right: 0 !important;
  }
}

.tb-shop .product a {
  text-decoration: none;
}

.tb-shop .product a:hover {
  text-decoration: none;
}

/* ===== Quick Tags ===== */
.tb-shop .tbQuickTag {
  border: 1px solid rgba(5, 46, 27, 0.1);
  background: rgba(255, 255, 255, 0.86);
  color: rgba(5, 46, 27, 0.78);
  box-shadow: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.tb-shop .tbQuickTag.ghost {
  background: rgba(255, 255, 255, 0.72);
  color: rgba(5, 46, 27, 0.72);
}

.tb-shop .tbQuickTag:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(5, 46, 27, 0.08);
}

.tb-shop .tbQuickTag.is-active {
  background: linear-gradient(
    180deg,
    rgba(255, 61, 46, 1),
    rgba(34, 197, 94, 1)
  ) !important;
  color: #fff !important;
  border-color: rgba(255, 61, 46, 0.25) !important;
  box-shadow: 0 14px 30px rgba(255, 61, 46, 0.18);
}

.tb-shop .tbQuickTag.is-active::after {
  content: "×";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-weight: 950;
  line-height: 1;
}

.tb-shop .tbQuickTag.is-active:hover {
  box-shadow: 0 18px 38px rgba(255, 61, 46, 0.24);
}

/* ===== Featured products: thumb beside title ===== */
.tb-shop .tbFeatHead {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none !important;
}

.tb-shop .tbFeatHead strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-shop .tbFeatThumb {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(5, 46, 27, 0.08);
}

.tb-shop .tbFeatThumb img,
.tb-shop .tbFeatThumbImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Featured price: special + regular price */
.tb-shop .feat .price,
.tb-shop .feat .tbFeatPrice {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
  min-height: 28px;
}

.tb-shop .feat .price strong,
.tb-shop .feat .tbFeatPrice strong {
  order: 1;
  white-space: nowrap;
}

.tb-shop .feat .price del,
.tb-shop .feat .tbFeatPrice del {
  order: 2;
  flex-basis: auto;
  width: auto;
  max-width: none;
  margin: 0;
  opacity: 0.45;
  color: rgba(5, 46, 27, 0.55);
  font-size: 12.5px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  text-decoration: line-through;
}

.tb-shop .feat .price del .woocommerce-Price-currencySymbol,
.tb-shop .feat .tbFeatPrice del .woocommerce-Price-currencySymbol {
  display: none !important;
}

/* ===== Shop Sale Badge on product image ===== */
.tb-shop #tbShopProductGrid .product .tbShopSaleBadge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 4;

  display: inline-flex;
  align-items: center;
  gap: 7px;

  padding: 7px 10px;
  border-radius: 999px;

  background: linear-gradient(
    180deg,
    rgba(255, 61, 46, 0.96),
    rgba(255, 122, 89, 0.96)
  );
  color: #fff;

  font-size: 12px;
  font-weight: 950;
  line-height: 1;

  box-shadow: 0 14px 28px rgba(255, 61, 46, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.45);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tb-shop #tbShopProductGrid .product .tbShopSaleBadge b {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 36px;
  height: 23px;
  padding: 0 7px;

  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;

  font-size: 12.5px;
  font-weight: 950;
  line-height: 1;
}

.tb-shop .added_to_cart,
.tb-shop a.added_to_cart,
.tb-shop .wc-forward,
.tb-shop a.wc-forward {
  display: none !important;
}

.tb-shop .pActions .tb-in-cart-btn,
.tb-shop .pActions .add_to_cart_button.is-in-cart {
  background: linear-gradient(
    180deg,
    rgba(34, 197, 94, 0.95),
    rgba(22, 163, 74, 0.72)
  ) !important;
  border-color: rgba(34, 197, 94, 0.5) !important;
  color: #fff !important;
}

.tb-shop .pActions .tbCartStateIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  font-size: 14px;
  line-height: 1;
}

.tb-shop .pActions .tb-in-cart-btn::after,
.tb-shop .pActions .add_to_cart_button.is-in-cart::after {
  content: none !important;
  display: none !important;
}

/* ===== Mobile only: safer compact tuning ===== */
@media (max-width: 768px) {
  .tb-shop .grid.g3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .tb-shop .product .thumb img {
    height: 170px;
  }

  .tb-shop .product .body {
    padding: 10px;
  }

  .tb-shop .product .name {
    font-size: 13px;
    line-height: 1.6;
    min-height: 42px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .tb-shop .product .meta {
    font-size: 11.5px;
    min-height: 34px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .tb-shop .row2 {
    min-height: auto;
    gap: 8px;
  }

  .tb-shop .price strong {
    font-size: 12px;
  }

  .tb-shop .rating {
    padding: 5px 8px;
    font-size: 11px;
  }

  .tb-shop .pActions {
    gap: 8px;
  }

  .tb-shop .pActions .button,
  .tb-shop .pActions a.button,
  .tb-shop .pActions .add_to_cart_button {
    height: 38px;
    font-size: 11.5px;
    border-radius: 12px;
    padding: 0 8px;
  }

  .tb-shop .pActions .tbFavBtn {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    border-radius: 12px;
  }

  .tb-shop .tbFavBtn .tbFavIcon {
    font-size: 17px;
  }
}

/* ===== Mobile shop: featured hint + hide tags + stronger filter button ===== */
@media (max-width: 768px) {
  /* دکمه فیلتر واضح‌تر */
  .tb-shop .topbarActions #tbShopToggleFilters {
    background: linear-gradient(
      180deg,
      rgba(34, 197, 94, 0.98),
      rgba(22, 163, 74, 0.78)
    ) !important;
    color: #fff !important;
    border: 1px solid rgba(34, 197, 94, 0.45) !important;
    box-shadow: 0 12px 26px rgba(34, 197, 94, 0.24);
    font-weight: 950;
  }

  .tb-shop .topbarActions #tbShopToggleFilters::before {
    content: "☰";
    display: inline-flex;
    margin-left: 6px;
    font-size: 13px;
    line-height: 1;
  }

  /* برچسب‌های سریع فعلاً در موبایل حذف شوند */
  .tb-shop .toolbar > .panel {
    display: none !important;
  }

  /* toolbar بعد از حذف برچسب‌ها جمع‌وجورتر شود */
  .tb-shop .toolbar {
    justify-content: flex-start;
    margin-bottom: 10px;
  }

  .tb-shop .sort {
    width: 100%;
    justify-content: space-between;
  }

  .tb-shop .sort select {
    max-width: 190px;
    height: 38px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
  }

  /* حس اسکرول در منتخب‌های امروز */
  .tb-shop .topbar + .card {
    position: relative;
    overflow: hidden;
  }

  .tb-shop .topbar + .card::after {
    content: "";
    position: absolute;
    top: 58px;
    bottom: 14px;
    left: 0;
    width: 46px;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.96),
      rgba(255, 255, 255, 0)
    );
  }

  .tb-shop .hScroll {
    gap: 10px;
    padding-left: 44px;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .tb-shop .hScroll::-webkit-scrollbar {
    display: none;
  }

  .tb-shop .feat {
    min-width: 82%;
    max-width: 82%;
    scroll-snap-align: start;
  }

  .tb-shop .featBody {
    padding: 10px;
  }

  .tb-shop .featTitle {
    font-size: 13px;
    line-height: 1.6;
  }
}

/* ===== Mobile filter close button ===== */
.tb-shop .tbFilterTitleActions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tb-shop .tbFilterCloseBtn {
  display: none;
}

@media (max-width: 768px) {
  .tb-shop .tbFilterPanelTitle {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .tb-shop .tbFilterCloseBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 61, 46, 0.22);
    background: rgba(255, 61, 46, 0.1);
    color: rgba(255, 61, 46, 1);
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
  }
}

/* ===== Responsive filter controls: mobile + tablet + square screens ===== */
.tb-shop .tbFilterTitleActions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tb-shop .tbFilterCloseBtn,
.tb-shop .tbMobileFilterBtn {
  display: none;
}

@media (max-width: 1180px) {
  .tb-shop .topbarActions #tbShopToggleFilters {
    display: none !important;
  }

  .tb-shop .toolbar > .panel {
    display: none !important;
  }

  .tb-shop .toolbar {
    justify-content: flex-start;
    margin-bottom: 10px;
  }

  .tb-shop .tbMobileSortRow {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    width: 100%;
    gap: 8px;
    align-items: center;
  }

  .tb-shop .tbMobileSortRow select {
    max-width: none;
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
  }

  .tb-shop .tbMobileFilterBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 13px;
    border-radius: 999px;
    background: linear-gradient(
      180deg,
      rgba(34, 197, 94, 0.98),
      rgba(22, 163, 74, 0.78)
    ) !important;
    border: 1px solid rgba(34, 197, 94, 0.45) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(34, 197, 94, 0.2);
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
  }

  .tb-shop .tbMobileFilterBtn::before {
    content: "☰";
    margin-left: 6px;
    font-size: 12px;
    line-height: 1;
  }

  .tb-shop .tbFilterPanelTitle {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .tb-shop .tbFilterCloseBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 61, 46, 0.25);
    background: rgba(255, 61, 46, 0.1);
    color: rgba(255, 61, 46, 1);
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
  }
}

/* ===== Filter title product count ===== */
.tb-shop .tbFilterTitleText {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  white-space: nowrap;
}

.tb-shop .tbFilterProductCount {
  font-size: 11.5px;
  font-weight: 850;
  color: rgba(5, 46, 27, 0.55);
  white-space: nowrap;
}

/* ===== Sort tabs مثل سایت‌های بزرگ ===== */
.tb-shop .tbSortToolbar {
  justify-content: flex-start;
  align-items: center;
}

.tb-shop .tbSortTabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tb-shop .tbSortLabel {
  font-weight: 950;
  font-size: 14px;
  color: rgba(5, 46, 27, 0.85);
  white-space: nowrap;
}

.tb-shop .tbSortTab {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;

  border: 1px solid rgba(5, 46, 27, 0.09);
  background: rgba(255, 255, 255, 0.72);

  color: rgba(5, 46, 27, 0.68);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none !important;
  white-space: nowrap;

  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.tb-shop .tbSortTab:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 22px rgba(5, 46, 27, 0.07);
}

.tb-shop .tbSortTab.is-active {
  color: rgba(255, 61, 46, 1);
  background: rgba(255, 61, 46, 0.08);
  border-color: rgba(255, 61, 46, 0.18);
  box-shadow: none;
}

@media (max-width: 768px) {
  .tb-shop .tbSortToolbar {
    gap: 10px;
  }

  .tb-shop .tbSortTabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .tb-shop .tbSortTabs::-webkit-scrollbar {
    display: none;
  }

  .tb-shop .tbSortTab {
    flex: 0 0 auto;
    font-size: 12.5px;
    padding: 8px 12px;
  }
}

/* تمایز بصری سکشن‌های فیلتر */
.tb-shop .sidebar .panel[aria-label="دسته‌بندی"] {
  border-color: rgba(34, 197, 94, 0.28);
  background: linear-gradient(
    180deg,
    rgba(34, 197, 94, 0.07),
    rgba(255, 255, 255, 0.92)
  );
}

.tb-shop .sidebar .panel[aria-label="برند"] {
  border-color: rgba(255, 61, 46, 0.24);
  background: linear-gradient(
    180deg,
    rgba(255, 61, 46, 0.06),
    rgba(255, 255, 255, 0.92)
  );
}

.tb-shop
  .sidebar
  .panel[aria-label="دسته‌بندی"]
  .panelTitle
  span:first-child::before {
  content: "▦";
  margin-left: 7px;
  color: rgba(34, 197, 94, 1);
}

.tb-shop
  .sidebar
  .panel[aria-label="برند"]
  .panelTitle
  span:first-child::before {
  content: "◆";
  margin-left: 7px;
  color: rgba(255, 61, 46, 1);
}

.tb-shop .sidebar .panel[aria-label="دسته‌بندی"] .panelNote {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.18);
  color: rgba(22, 101, 52, 0.85);
}

.tb-shop .sidebar .panel[aria-label="برند"] .panelNote {
  background: rgba(255, 61, 46, 0.09);
  border-color: rgba(255, 61, 46, 0.16);
  color: rgba(185, 28, 28, 0.78);
}

.tb-shop .tbFeaturedInline {
  grid-column: 1 / -1;
  position: relative;
  direction: rtl;

  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 16px;

  padding: 14px;
  margin: 8px 0 16px;
  overflow: hidden;

  border-radius: 28px;
  border: 1px solid rgba(34, 197, 94, 0.18);

  background:
    radial-gradient(
      420px 220px at 100% 0%,
      rgba(255, 196, 118, 0.28),
      transparent 64%
    ),
    radial-gradient(
      520px 240px at 0% 100%,
      rgba(34, 197, 94, 0.2),
      transparent 66%
    ),
    linear-gradient(
      135deg,
      rgba(255, 249, 235, 0.96),
      rgba(239, 255, 246, 0.96)
    );

  box-shadow: 0 22px 60px rgba(5, 46, 27, 0.11);
}

.tb-shop .tbFeaturedInline::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    radial-gradient(
      160px 120px at 96% 18%,
      rgba(255, 255, 255, 0.62),
      transparent 72%
    ),
    radial-gradient(
      190px 130px at 9% 84%,
      rgba(255, 170, 82, 0.18),
      transparent 74%
    );

  opacity: 0.95;
}

.tb-shop .tbFeaturedInline::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 12px;
  width: 190px;
  height: 150px;
  pointer-events: none;

  background: radial-gradient(
    ellipse at center,
    rgba(255, 176, 79, 0.14),
    transparent 68%
  );

  border-radius: 999px;
  opacity: 0.9;
}

.tb-shop .tbFeaturedIntro {
  position: relative;
  z-index: 2;

  min-height: 100%;
  padding: 22px 14px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;

  text-align: center;
  border-radius: 24px;
  overflow: hidden;

  background:
    radial-gradient(
      180px 120px at 0% 0%,
      rgba(255, 216, 147, 0.42),
      transparent 70%
    ),
    radial-gradient(
      220px 150px at 100% 100%,
      rgba(34, 197, 94, 0.16),
      transparent 72%
    ),
    linear-gradient(
      145deg,
      rgba(255, 243, 222, 0.88),
      rgba(246, 255, 249, 0.92)
    );

  border: 1px solid rgba(255, 255, 255, 0.55);
}

.tb-shop .tbFeaturedIntro::before {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -18px;
  width: 180px;
  height: 130px;
  pointer-events: none;

  background: radial-gradient(
    ellipse at center,
    rgba(181, 120, 54, 0.16),
    transparent 68%
  );

  border-radius: 999px;
  opacity: 0.85;
}

.tb-shop .tbFeaturedIntro::after {
  content: "";
  position: absolute;
  left: -26px;
  top: 18px;
  width: 130px;
  height: 190px;
  pointer-events: none;

  background: radial-gradient(
    ellipse at center,
    rgba(34, 197, 94, 0.16),
    transparent 66%
  );

  border-radius: 999px;
  opacity: 0.75;
}

.tb-shop .tbFeaturedIntroIcon {
  position: relative;
  z-index: 2;

  width: 48px;
  height: 48px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(255, 238, 210, 0.98),
    rgba(255, 255, 255, 0.76)
  );

  border: 1px solid rgba(255, 145, 77, 0.24);
  box-shadow: 0 14px 30px rgba(255, 137, 72, 0.18);

  color: #ff6b2c;
  font-size: 22px;
}

.tb-shop .tbFeaturedIntro .h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.35;
  color: rgba(5, 46, 27, 0.96);
}

.tb-shop .tbFeaturedIntro p {
  margin: 0;
  max-width: 180px;

  font-size: 12.5px;
  font-weight: 850;
  line-height: 1.9;
  color: rgba(5, 46, 27, 0.68);
}

.tb-shop .tbFeaturedTimer {
  margin-top: 8px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;

  width: 100%;
}

.tb-shop .tbFeaturedTimer strong {
  direction: ltr;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 8px 12px;
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(5, 46, 27, 0.08);
  box-shadow: 0 12px 26px rgba(5, 46, 27, 0.08);

  color: rgba(5, 46, 27, 0.92);
  font-size: 16px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.tb-shop .tbFeaturedTimer b {
  min-width: 25px;
  text-align: center;
}

.tb-shop .tbFeaturedTimer span {
  font-size: 11.5px;
  font-weight: 900;
  color: rgba(5, 46, 27, 0.6);
  white-space: nowrap;
}

.tb-shop .tbFeaturedInline .hScroll {
  position: relative;
  z-index: 2;

  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;

  overflow: visible;
  padding: 0;
}

.tb-shop .tbFeaturedProductCard {
  min-width: 0;
  width: auto;
  max-width: none;

  display: flex;
  flex-direction: column;

  border-radius: 24px;
  border: 1px solid rgba(5, 46, 27, 0.08);

  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(5, 46, 27, 0.1);

  overflow: hidden;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.tb-shop .tbFeaturedProductCard:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 197, 94, 0.24);
  box-shadow: 0 24px 52px rgba(5, 46, 27, 0.16);
}

.tb-shop .tbFeaturedProductCard .thumb {
  position: relative;
  display: block;
  overflow: hidden;

  border-bottom: 1px solid rgba(5, 46, 27, 0.07);

  background:
    radial-gradient(
      260px 140px at 85% 10%,
      rgba(34, 197, 94, 0.16),
      transparent 64%
    ),
    radial-gradient(
      220px 120px at 10% 90%,
      rgba(255, 172, 89, 0.2),
      transparent 64%
    ),
    rgba(255, 255, 255, 0.92);
}

.tb-shop .tbFeaturedProductCard {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.tb-shop .tbFeaturedProductCard .thumb {
  width: 100%;
  aspect-ratio: 1.45 / 1;
  height: auto;
  min-height: 150px;
  max-height: 180px;
  display: block;
  background: rgba(255, 255, 255, 0.72);
}

.tb-shop .tbFeaturedProductCard .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tb-shop .tbFeaturedProductCard .tbShopSaleBadge {
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto;
  z-index: 5;

  display: inline-flex;
  align-items: center;
  gap: 7px;

  padding: 7px 9px 7px 7px;
  border-radius: 999px 999px 999px 12px;

  background: linear-gradient(
    135deg,
    rgba(255, 61, 46, 1),
    rgba(255, 145, 77, 0.98)
  );

  color: #fff;
  font-size: 11.5px;
  font-weight: 950;
  line-height: 1;

  box-shadow:
    0 12px 26px rgba(255, 61, 46, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);

  border: 1px solid rgba(255, 255, 255, 0.55);
}

.tb-shop .tbFeaturedProductCard .tbShopSaleBadge b {
  order: -1;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 37px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.24);
  color: #fff;

  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.tb-shop .tbFeaturedProductCard .body {
  padding: 12px;
  flex: 1 1 auto;

  display: flex;
  flex-direction: column;
}

.tb-shop .tbFeaturedProductCard .name {
  margin: 0;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.65;
  min-height: 46px;
}

.tb-shop .tbFeaturedProductCard .name a {
  color: rgba(5, 46, 27, 0.96);
  text-decoration: none;
}

.tb-shop .tbFeaturedProductCard .meta {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
  min-height: 34px;
  color: rgba(5, 46, 27, 0.62);
}

.tb-shop .tbFeaturedProductCard .row2 {
  margin-top: 8px;
  min-height: 46px;
}

.tb-shop .tbFeaturedProductCard .price {
  font-size: 14px;
}

.tb-shop .tbFeaturedProductCard .pActions {
  margin-top: auto;
  padding-top: 8px;
}

.tb-shop .tbFeaturedProductCard .pActions .button {
  height: 42px;
  border-radius: 15px;
}

@media (max-width: 1180px) {
  .tb-shop .tbFeaturedInline {
    grid-template-columns: 1fr;
  }

  .tb-shop .tbFeaturedIntro {
    min-height: auto;
  }

  .tb-shop .tbFeaturedIntro p {
    max-width: none;
  }

  .tb-shop .tbFeaturedTimer {
    max-width: 260px;
    margin-inline: auto;
  }
}
@media (min-width: 769px) and (max-width: 1180px) {
  .tb-shop .tbFeaturedInline .hScroll {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .tb-shop .tbFeaturedProductCard .thumb {
    aspect-ratio: 1.5 / 1;
    min-height: 140px;
    max-height: 165px;
  }

  .tb-shop .tbFeaturedProductCard .name {
    font-size: 13.5px;
    min-height: 44px;
  }
}

@media (max-width: 768px) {
  .tb-shop .grid.g3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .tb-shop .tbFeaturedInline {
    grid-column: 1 / -1;
    display: block;
    padding: 10px;
    margin: 6px 0 14px;
    border-radius: 22px;
  }

  .tb-shop .tbFeaturedIntro {
    padding: 14px 12px;
    margin-bottom: 10px;
    border-radius: 20px;
    min-height: auto;
  }

  .tb-shop .tbFeaturedIntroIcon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .tb-shop .tbFeaturedIntro .h2 {
    font-size: 16px;
  }

  .tb-shop .tbFeaturedIntro p {
    font-size: 11.5px;
    line-height: 1.7;
  }

  .tb-shop .tbFeaturedInline .hScroll {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
    overflow: visible !important;
    padding: 0;
  }

  .tb-shop .tbFeaturedProductCard {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: none !important;
  }

  .tb-shop .tbFeaturedProductCard .thumb {
    aspect-ratio: 1.35 / 1;
    min-height: 105px;
    max-height: 125px;
  }

  .tb-shop .tbFeaturedProductCard .body {
    padding: 9px;
  }

  .tb-shop .tbFeaturedProductCard .name {
    font-size: 12.2px;
    line-height: 1.55;
    min-height: 38px;
  }

  .tb-shop .tbFeaturedProductCard .meta {
    font-size: 10.8px;
    line-height: 1.55;
    min-height: 30px;
  }

  .tb-shop .tbFeaturedProductCard .row2 {
    margin-top: 6px;
    min-height: 36px;
  }

  .tb-shop .tbFeaturedProductCard .price {
    font-size: 12px;
  }

  .tb-shop .tbFeaturedProductCard .pActions .button {
    height: 36px;
    border-radius: 12px;
    font-size: 11px;
  }
}

/* ===== FINAL MOBILE FIX: product grid + featured section isolation ===== */
@media (max-width: 768px) {
  .tb-shop .content {
    padding: 8px !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .tb-shop #tbShopProductGrid.grid.g3 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .tb-shop #tbShopProductGrid > .product {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    grid-column: auto !important;
    float: none !important;
  }

  .tb-shop #tbShopProductGrid > .tbFeaturedInline {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 6px 0 12px !important;
    box-sizing: border-box !important;
  }

  .tb-shop .tbFeaturedInline {
    display: block !important;
    padding: 10px !important;
    overflow: hidden !important;
    border-radius: 22px !important;
  }

  .tb-shop .tbFeaturedInline .hScroll {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 0 6px !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
  }

  .tb-shop .tbFeaturedInline .hScroll::-webkit-scrollbar {
    display: none !important;
  }

  .tb-shop .tbFeaturedProductCard {
    flex: 0 0 78% !important;
    width: 78% !important;
    min-width: 78% !important;
    max-width: 78% !important;
    scroll-snap-align: start !important;
  }

  .tb-shop .tbFeaturedProductCard .thumb,
  .tb-shop .tbFeaturedProductCard .thumb img {
    height: 125px !important;
    min-height: 125px !important;
    max-height: 125px !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
  }

  .tb-shop #tbShopProductGrid > .product .thumb img {
    height: 145px !important;
    object-fit: cover !important;
  }

  .tb-shop #tbShopProductGrid > .product .body {
    padding: 9px !important;
  }

  .tb-shop #tbShopProductGrid > .product .name {
    font-size: 12.5px !important;
    line-height: 1.55 !important;
    min-height: 39px !important;
  }

  .tb-shop #tbShopProductGrid > .product .meta {
    font-size: 10.8px !important;
    line-height: 1.55 !important;
    min-height: 30px !important;
  }

  .tb-shop #tbShopProductGrid > .product .pActions .button,
  .tb-shop #tbShopProductGrid > .product .pActions a.button,
  .tb-shop #tbShopProductGrid > .product .pActions .add_to_cart_button {
    height: 36px !important;
    font-size: 11px !important;
    border-radius: 12px !important;
    padding: 0 7px !important;
  }

  .tb-shop #tbShopProductGrid > .product .pActions .tbFavBtn {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
  }
}

/* ===== Special Offer Box - premium redesign ===== */
.tb-shop .tbSpecialOfferBox {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  align-items: center;
  justify-content: center;
  text-align: center;

  padding: 24px 20px 20px;
  min-height: 360px;

  border-radius: 28px;
  border: 1px solid rgba(34, 197, 94, 0.2);

  background:
    radial-gradient(
      220px 160px at 15% 20%,
      rgba(34, 197, 94, 0.16),
      transparent 68%
    ),
    radial-gradient(
      260px 190px at 85% 85%,
      rgba(34, 197, 94, 0.22),
      transparent 68%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.96),
      rgba(240, 255, 246, 0.92)
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 22px 55px rgba(5, 46, 27, 0.12);
}

.tb-shop .tbSpecialOfferBox::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: -1;

  border-radius: 24px;
  border: 1px solid rgba(34, 197, 94, 0.13);
  background: rgba(255, 255, 255, 0.28);
}

.tb-shop .tbSpecialOfferBox::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  left: -70px;
  bottom: -78px;
  z-index: -1;

  border-radius: 50%;
  background:
    radial-gradient(
      circle at 45% 45%,
      rgba(255, 166, 77, 0.34),
      transparent 32%
    ),
    radial-gradient(
      circle at 65% 62%,
      rgba(126, 71, 28, 0.16),
      transparent 34%
    ),
    radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.13), transparent 62%);
  filter: blur(0.2px);
}

.tb-shop .tbSpecialOfferBox .tbFeaturedIntroIcon {
  width: 62px;
  height: 62px;
  border-radius: 22px;

  background: radial-gradient(
    circle at 50% 38%,
    rgba(255, 255, 255, 0.96),
    rgba(255, 239, 214, 0.92)
  );
  color: #ff5b1f;

  font-size: 26px;
  box-shadow:
    0 16px 34px rgba(255, 102, 31, 0.22),
    0 0 0 9px rgba(255, 129, 51, 0.08);
}

.tb-shop .tbSpecialOfferBox .h2 {
  margin-top: 14px;
  font-size: 25px;
  color: rgba(5, 72, 38, 0.98);
  text-shadow: 0 8px 22px rgba(5, 46, 27, 0.08);
}

.tb-shop .tbSpecialOfferBox p {
  max-width: 230px;
  margin-top: 8px;
  color: rgba(5, 46, 27, 0.72);
}

.tb-shop .tbSpecialOfferBox .tbFeaturedTimer {
  margin-top: 18px;
}

.tb-shop .tbSpecialOfferBox .tbFeaturedTimer strong {
  gap: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.tb-shop .tbSpecialOfferBox .tbTimeUnit {
  width: 58px;
  min-height: 66px;

  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;

  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(5, 46, 27, 0.08);
  box-shadow: 0 14px 26px rgba(5, 46, 27, 0.09);
}

.tb-shop .tbSpecialOfferBox .tbTimeUnit b {
  min-width: auto;
  font-size: 22px;
  line-height: 1;
  color: rgba(5, 72, 38, 1);
}

.tb-shop .tbSpecialOfferBox .tbTimeUnit small {
  font-size: 10px;
  font-weight: 900;
  color: rgba(5, 46, 27, 0.48);
}

.tb-shop .tbSpecialOfferBox .tbFeaturedTimer > span {
  margin-top: 4px;
  color: rgba(5, 46, 27, 0.62);
}

.tb-shop .tbSpecialOfferBtn {
  margin-top: 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  min-height: 46px;
  padding: 0 18px;

  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(34, 197, 94, 0.98),
    rgba(22, 163, 74, 0.9)
  );
  color: #fff !important;

  font-weight: 950;
  font-size: 13px;
  text-decoration: none !important;

  box-shadow: 0 18px 36px rgba(34, 197, 94, 0.26);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.tb-shop .tbSpecialOfferBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(34, 197, 94, 0.32);
}

.tb-shop .tbSpecialLeaf {
  position: absolute;
  z-index: -1;
  width: 86px;
  height: 86px;
  opacity: 0.55;

  background:
    radial-gradient(
      ellipse at 50% 25%,
      rgba(34, 197, 94, 0.42),
      transparent 55%
    ),
    radial-gradient(ellipse at 44% 65%, rgba(5, 105, 50, 0.2), transparent 60%);
  border-radius: 80% 20% 70% 30%;
}

.tb-shop .tbSpecialLeafOne {
  top: 22px;
  left: 24px;
  transform: rotate(-28deg);
}

.tb-shop .tbSpecialLeafTwo {
  right: 18px;
  bottom: 42px;
  transform: rotate(34deg) scale(0.82);
  opacity: 0.38;
}

.tb-shop .tbSpecialSpice {
  position: absolute;
  right: 24px;
  bottom: 18px;
  z-index: -1;

  width: 92px;
  height: 92px;
  opacity: 0.42;

  border-radius: 50%;
  background:
    radial-gradient(
      circle at 35% 35%,
      rgba(126, 71, 28, 0.35),
      transparent 18%
    ),
    radial-gradient(
      circle at 60% 45%,
      rgba(255, 166, 77, 0.42),
      transparent 18%
    ),
    radial-gradient(circle at 42% 68%, rgba(5, 46, 27, 0.18), transparent 20%),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.2),
      transparent 65%
    );
}

@media (max-width: 768px) {
  .tb-shop .tbSpecialOfferBox {
    min-height: auto;
    padding: 22px 14px 18px;
    border-radius: 22px;
  }

  .tb-shop .tbSpecialOfferBox .h2 {
    font-size: 18px;
  }

  .tb-shop .tbSpecialOfferBox p {
    max-width: none;
  }

  .tb-shop .tbSpecialOfferBox .tbTimeUnit {
    width: 52px;
    min-height: 58px;
    border-radius: 14px;
  }

  .tb-shop .tbSpecialOfferBox .tbTimeUnit b {
    font-size: 18px;
  }

  .tb-shop .tbSpecialOfferBtn {
    width: 100%;
    min-height: 42px;
    font-size: 12px;
  }
}

.tb-shop .tbSpecialOfferBox .tbFeaturedTimer {
  margin-top: 12px;
}

.tb-shop .tbSpecialOfferBox .tbTimeUnit {
  width: 66px;
  min-height: 72px;
}

.tb-shop .tbSpecialOfferBox .tbTimeUnit b {
  font-size: 26px;
}

/* ===== Special Offer Box - final premium polish ===== */
.tb-shop .tbSpecialOfferBox {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  padding: 22px 16px 18px;
  min-height: 365px;

  border-radius: 28px;
  background:
    radial-gradient(
      170px 120px at 18% 18%,
      rgba(34, 197, 94, 0.2),
      transparent 70%
    ),
    radial-gradient(
      190px 150px at 82% 78%,
      rgba(16, 185, 129, 0.28),
      transparent 72%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.98),
      rgba(235, 255, 244, 0.94)
    );

  border: 1px solid rgba(34, 197, 94, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 18px 44px rgba(5, 46, 27, 0.12);
}

.tb-shop .tbSpecialOfferBox::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;

  border-radius: 24px;
  border: 1px solid rgba(34, 197, 94, 0.14);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.32),
    rgba(255, 255, 255, 0.08)
  );
}

.tb-shop .tbSpecialOfferBox::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -42px;
  z-index: -1;

  width: 150px;
  height: 150px;
  border-radius: 999px;

  background:
    radial-gradient(
      circle at 32% 36%,
      rgba(126, 71, 28, 0.26),
      transparent 17%
    ),
    radial-gradient(
      circle at 58% 42%,
      rgba(255, 166, 77, 0.38),
      transparent 18%
    ),
    radial-gradient(
      circle at 42% 68%,
      rgba(34, 197, 94, 0.24),
      transparent 21%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.18),
      transparent 66%
    );
  filter: blur(0.2px);
}

.tb-shop .tbOfferGlow {
  position: absolute;
  inset: auto -40px -70px auto;
  z-index: -1;

  width: 210px;
  height: 210px;
  border-radius: 999px;

  background: radial-gradient(circle, rgba(34, 197, 94, 0.24), transparent 66%);
}

.tb-shop .tbOfferBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 8px;
  padding: 6px 11px;

  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(34, 197, 94, 0.16);

  color: rgba(5, 72, 38, 0.78);
  font-size: 11.5px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(5, 46, 27, 0.07);
}

.tb-shop .tbSpecialOfferBox .tbFeaturedIntroIcon {
  width: 58px;
  height: 58px;
  border-radius: 21px;

  background: radial-gradient(
    circle at 50% 34%,
    rgba(255, 255, 255, 1),
    rgba(255, 235, 209, 0.92)
  );
  color: #ff5b1f;

  box-shadow:
    0 16px 32px rgba(255, 91, 31, 0.2),
    0 0 0 9px rgba(255, 145, 77, 0.08);
}

.tb-shop .tbSpecialOfferBox .h2 {
  margin-top: 12px;
  font-size: 23px;
  line-height: 1.35;
}

.tb-shop .tbSpecialOfferBox p {
  max-width: 220px;
  margin-top: 7px;
  line-height: 1.85;
}

.tb-shop .tbSpecialOfferBox .tbFeaturedTimer {
  margin-top: 16px;
}

.tb-shop .tbSpecialOfferBox .tbFeaturedTimer strong {
  gap: 8px;
}

.tb-shop .tbSpecialOfferBox .tbTimeUnit {
  width: 58px;
  min-height: 64px;
  border-radius: 17px;

  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 14px 28px rgba(5, 46, 27, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.tb-shop .tbSpecialOfferBox .tbTimeUnit b {
  font-size: 23px;
}

.tb-shop .tbSpecialOfferBox .tbFeaturedTimer > span {
  margin-top: 5px;
}

.tb-shop .tbSpecialLeafOne {
  top: 24px;
  left: 18px;
  opacity: 0.38;
}

.tb-shop .tbSpecialLeafTwo {
  right: 14px;
  bottom: 62px;
  opacity: 0.26;
}

.tb-shop .tbSpecialSpice {
  right: 22px;
  bottom: 16px;
  opacity: 0.5;
}

.tb-shop .tbSpecialSpiceLine {
  position: absolute;
  left: 18px;
  bottom: 22px;
  z-index: -1;

  width: 86px;
  height: 34px;
  border-radius: 999px;

  background:
    radial-gradient(
      circle at 16% 50%,
      rgba(126, 71, 28, 0.28),
      transparent 14%
    ),
    radial-gradient(
      circle at 42% 45%,
      rgba(255, 166, 77, 0.36),
      transparent 16%
    ),
    radial-gradient(circle at 68% 54%, rgba(5, 105, 50, 0.22), transparent 14%);
  opacity: 0.55;
}

@media (max-width: 768px) {
  .tb-shop .tbSpecialOfferBox {
    min-height: auto;
    padding: 18px 13px 16px;
  }

  .tb-shop .tbOfferBadge {
    margin-bottom: 6px;
  }

  .tb-shop .tbSpecialOfferBox .h2 {
    font-size: 18px;
  }

  .tb-shop .tbSpecialOfferBox .tbTimeUnit {
    width: 52px;
    min-height: 58px;
  }

  .tb-shop .tbSpecialOfferBox .tbTimeUnit b {
    font-size: 19px;
  }
}
/* ===== Special Offer Box - clean premium version ===== */
.tb-shop .tbSpecialOfferBox {
  position: relative !important;
  isolation: isolate;
  overflow: hidden;

  padding: 26px 14px 20px !important;
  min-height: 365px !important;

  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center !important;
  gap: 12px;

  border-radius: 26px !important;
  border: 1px solid rgba(22, 163, 74, 0.34) !important;

  background:
    radial-gradient(
      160px 120px at 14% 10%,
      rgba(255, 255, 255, 0.55),
      transparent 70%
    ),
    radial-gradient(
      170px 140px at 88% 92%,
      rgba(34, 197, 94, 0.42),
      transparent 72%
    ),
    radial-gradient(
      140px 110px at 72% 18%,
      rgba(255, 176, 79, 0.2),
      transparent 70%
    ),
    linear-gradient(155deg, #f9fff9 0%, #d7fbe5 48%, #afeecb 100%) !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -36px 70px rgba(22, 163, 74, 0.13),
    0 20px 48px rgba(5, 46, 27, 0.15) !important;
}

.tb-shop .tbSpecialOfferBox::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: -1;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.28),
    rgba(255, 255, 255, 0.06)
  );
  pointer-events: none;
}

.tb-shop .tbSpecialOfferBox::after {
  content: "";
  position: absolute;
  left: -42px;
  bottom: -48px;
  z-index: -1;

  width: 165px;
  height: 165px;
  border-radius: 999px;

  background:
    radial-gradient(
      circle at 38% 35%,
      rgba(146, 64, 14, 0.34),
      transparent 14%
    ),
    radial-gradient(
      circle at 56% 44%,
      rgba(245, 158, 11, 0.35),
      transparent 16%
    ),
    radial-gradient(circle at 42% 66%, rgba(21, 128, 61, 0.2), transparent 18%),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.28),
      transparent 66%
    );
  opacity: 0.86;
}

.tb-shop .tbSpecialAura {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
}

.tb-shop .tbSpecialAuraOne {
  width: 190px;
  height: 190px;
  right: -82px;
  top: -68px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.34), transparent 68%);
}

.tb-shop .tbSpecialAuraTwo {
  width: 210px;
  height: 210px;
  left: -90px;
  bottom: -92px;
  background: radial-gradient(
    circle,
    rgba(245, 158, 11, 0.18),
    transparent 70%
  );
}

.tb-shop .tbSpecialTop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.tb-shop .tbSpecialOfferBox .tbFeaturedIntroIcon {
  width: 58px !important;
  height: 58px !important;
  margin: 0 !important;

  border-radius: 22px !important;
  background: radial-gradient(
    circle at 50% 34%,
    rgba(255, 255, 255, 1),
    rgba(255, 238, 218, 0.96)
  ) !important;

  border: 1px solid rgba(255, 128, 64, 0.24) !important;
  color: #ff5b1f !important;
  font-size: 25px !important;

  box-shadow:
    0 15px 32px rgba(255, 91, 31, 0.21),
    0 0 0 9px rgba(255, 145, 77, 0.08) !important;
}

.tb-shop .tbSpecialMiniText {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 5px 10px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(22, 163, 74, 0.14);

  color: rgba(5, 72, 38, 0.72);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.tb-shop .tbSpecialOfferBox .h2 {
  margin: 8px 0 4px !important;

  font-size: 30px !important;
  font-weight: 950 !important;
  line-height: 1.2 !important;

  color: #0b5a30 !important;

  text-align: center;

  text-shadow:
    0 6px 16px rgba(22, 163, 74, 0.18),
    0 2px 6px rgba(5, 46, 27, 0.08);
}

.tb-shop .tbSpecialOfferBox p {
  margin: 0 !important;
  max-width: 210px !important;

  color: rgba(5, 46, 27, 0.68) !important;
  font-size: 12.5px !important;
  font-weight: 850 !important;
  line-height: 1.8 !important;
}

.tb-shop .tbSpecialOfferBox .tbFeaturedTimer {
  margin-top: 10px !important;
  gap: 6px !important;
}

.tb-shop .tbSpecialOfferBox .tbFeaturedTimer strong {
  padding: 0 !important;
  gap: 8px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.tb-shop .tbSpecialOfferBox .tbTimeUnit {
  width: 56px !important;
  min-height: 62px !important;

  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;

  border-radius: 17px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(5, 46, 27, 0.08) !important;

  box-shadow:
    0 13px 26px rgba(5, 46, 27, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

.tb-shop .tbSpecialOfferBox .tbTimeUnit b {
  min-width: auto !important;
  font-size: 22px !important;
  line-height: 1 !important;
  color: rgba(5, 72, 38, 1) !important;
}

.tb-shop .tbSpecialOfferBox .tbTimeUnit small {
  font-size: 10px !important;
  font-weight: 900 !important;
  color: rgba(5, 46, 27, 0.48) !important;
}

.tb-shop .tbSpecialOfferBox .tbFeaturedTimer > span {
  margin-top: 2px !important;
  color: rgba(5, 46, 27, 0.58) !important;
}

.tb-shop .tbSpecialDecorLeaf {
  position: absolute;
  z-index: -1;
  width: 76px;
  height: 76px;
  opacity: 0.34;

  background:
    radial-gradient(
      ellipse at 50% 25%,
      rgba(34, 197, 94, 0.5),
      transparent 56%
    ),
    radial-gradient(ellipse at 44% 65%, rgba(5, 105, 50, 0.24), transparent 60%);
  border-radius: 80% 20% 70% 30%;
  pointer-events: none;
}

.tb-shop .tbSpecialDecorLeafOne {
  top: 26px;
  left: 18px;
  transform: rotate(-28deg);
}

.tb-shop .tbSpecialDecorLeafTwo {
  right: 18px;
  bottom: 54px;
  transform: rotate(35deg) scale(0.82);
  opacity: 0.24;
}

.tb-shop .tbSpecialSpicePlate {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: -1;

  width: 112px;
  height: 46px;
  border-radius: 999px;

  background:
    radial-gradient(
      circle at 14% 55%,
      rgba(146, 64, 14, 0.32),
      transparent 14%
    ),
    radial-gradient(
      circle at 34% 42%,
      rgba(245, 158, 11, 0.36),
      transparent 15%
    ),
    radial-gradient(
      circle at 56% 58%,
      rgba(22, 101, 52, 0.22),
      transparent 14%
    ),
    radial-gradient(circle at 78% 44%, rgba(34, 197, 94, 0.2), transparent 17%);
  opacity: 0.68;
  pointer-events: none;
}

@media (max-width: 768px) {
  .tb-shop .tbSpecialOfferBox {
    min-height: auto !important;
    padding: 18px 12px 16px !important;
  }

  .tb-shop .tbSpecialOfferBox .h2 {
    font-size: 18px !important;
  }

  .tb-shop .tbSpecialOfferBox .tbTimeUnit {
    width: 52px !important;
    min-height: 58px !important;
  }

  .tb-shop .tbSpecialOfferBox .tbTimeUnit b {
    font-size: 19px !important;
  }
}

.tb-shop .tbSpecialOfferBox p {
  font-size: 14px !important;
  line-height: 1.9 !important;
  font-weight: 700 !important;
  color: rgba(5, 46, 27, 0.72) !important;
  max-width: 220px;
  text-align: center;
  margin: 0 auto 10px !important;
}

/* ================================
   Category SEO Block
   متن راهنمای دسته + FAQ پایین آرشیو
================================ */

.tb-shop .tbShopCategorySeoBlock {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(34, 197, 94, 0.16);
  background:
    radial-gradient(
      420px 180px at 100% 0%,
      rgba(34, 197, 94, 0.12),
      transparent 68%
    ),
    radial-gradient(
      360px 160px at 0% 100%,
      rgba(255, 196, 118, 0.16),
      transparent 70%
    ),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(5, 46, 27, 0.08);
}

.tb-shop .tbCategoryDescriptionTop {
  color: rgba(5, 46, 27, 0.78);
  font-size: 14px;
  font-weight: 750;
  line-height: 2;
}

.tb-shop .tbCategoryDescriptionTop p:last-child {
  margin-bottom: 0;
}

.tb-shop .tbCategoryFaq {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(5, 46, 27, 0.08);
}

.tb-shop .tbCategoryFaq h2 {
  margin: 0 0 14px;
  color: rgba(5, 46, 27, 0.96);
  font-size: 20px;
  font-weight: 950;
  line-height: 1.6;
}

.tb-shop .tbCategoryFaq ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tb-shop .tbCategoryFaq li {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(5, 46, 27, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.tb-shop .tbCategoryFaq strong {
  display: block;
  margin-bottom: 6px;
  color: rgba(5, 46, 27, 0.92);
  font-size: 13.5px;
  font-weight: 950;
  line-height: 1.8;
}

.tb-shop .tbCategoryFaq span {
  display: block;
  color: rgba(5, 46, 27, 0.68);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.9;
}

@media (max-width: 768px) {
  .tb-shop .tbShopCategorySeoBlock {
    margin-top: 12px;
    padding: 16px;
    border-radius: 20px;
  }

  .tb-shop .tbCategoryDescriptionTop {
    font-size: 13px;
    line-height: 1.9;
  }

  .tb-shop .tbCategoryFaq h2 {
    font-size: 16px;
  }

  .tb-shop .tbCategoryFaq ul {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tb-shop .tbCategoryFaq li {
    padding: 12px;
    border-radius: 16px;
  }
}