/* =========================================================================
   bluTshirt — builder blocks (منتقل‌شده از صفحه‌ساز قالب هامون، ری‌نیم‌شده)
   بلوک‌های صفحه‌ساز: کروسل/کمپین، بنر، رپر مشترک بلوک‌ها، بلوک‌های خلاقانه،
   اسلایدر/حرکت/انیمیشن ورود/ویدیو/مگزین، کنترل‌های متن. Additive و scoped.
   ========================================================================= */
/* ============================================================
   Home builder — category carousel + campaign/countdown (Phase B/C)
   Scoped, additive; does not affect the standard ul.products grid.
   ============================================================ */
.blu-carousel { position: relative; }
.blu-carousel ul.products {
  display: grid; grid-auto-flow: column; grid-auto-columns: 46%;
  grid-template-columns: none !important; /* !important: beats .home/.shop-content ul.products (equal specificity, loaded later in woocommerce.css) so overflow cards don't collapse into 0px slivers */
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px;
}
.blu-carousel ul.products::-webkit-scrollbar { display: none; }
.blu-carousel ul.products > li { scroll-snap-align: start; min-width: 0; }
@media (min-width: 768px)  { .blu-carousel ul.products { grid-auto-columns: 30%; gap: 16px; } }
@media (min-width: 1024px) { .blu-carousel ul.products { grid-auto-columns: 22%; } }

.blu-campaign {
  border-radius: var(--radius-lg, 16px); background: var(--surface-tint, rgba(0,173,230,.10));
  padding: 28px 20px; text-align: center; background-size: cover; background-position: center;
}
.blu-campaign--image { color: #fff; position: relative; overflow: hidden; }
.blu-campaign--image::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.42); }
.blu-campaign__body { position: relative; z-index: 1; max-width: 640px; margin-inline: auto; display: grid; gap: 12px; justify-items: center; }
.blu-campaign__title { font-size: var(--text-h2, 30px); font-weight: var(--weight-title, 800); margin: 0; }
.blu-campaign__sub { margin: 0; opacity: .9; }
.blu-countdown { display: flex; gap: 10px; direction: ltr; }
.blu-countdown__unit { display: grid; gap: 4px; min-width: 56px; padding: 8px 6px; border-radius: var(--radius-sm, 8px); background: rgba(255,255,255,.16); }
.blu-campaign:not(.blu-campaign--image) .blu-countdown__unit { background: #fff; box-shadow: var(--shadow-card); }
.blu-countdown__num { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.blu-countdown__label { font-size: var(--text-label, 12px); opacity: .8; }
.blu-campaign__cta { margin-top: 4px; }

/* Installments row + model-size note (Phase C) */
.blu-installments {
  display: flex; align-items: center; gap: 8px; margin: 10px 0; padding: 10px 12px;
  border: 1px solid var(--border-soft, #EBEBEB); border-radius: var(--radius-sm, 8px);
  background: var(--surface-subtle, #F4F4F4);
  font-size: var(--text-caption, 13px); color: var(--text-body, #4B555A);
}
.blu-installments__text bdi, .blu-installments .amount { font-weight: 700; color: var(--text-strong, #394246); }
.blu-installments__provider { color: var(--text-muted, #7a8388); }
.blu-model-note { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: var(--text-caption, 13px); color: var(--text-muted, #7a8388); }

/* Back-in-stock notify form (Phase C round 3) */
.blu-bis { margin: 12px 0; padding: 14px; border: 1px solid var(--border-soft, #EBEBEB); border-radius: var(--radius-md, 12px); background: var(--surface-subtle, #F4F4F4); }
.blu-bis__head { display: flex; align-items: center; gap: 8px; font-size: var(--text-caption, 13px); color: var(--text-body, #4B555A); margin-bottom: 10px; }
.blu-bis__row { display: flex; gap: 8px; }
.blu-bis__email { flex: 1 1 auto; min-width: 0; }
.blu-bis__msg { margin: 8px 0 0; font-size: var(--text-caption, 13px); color: var(--success, #1F9D57); }
.blu-bis.is-done .blu-bis__row { display: none; }

/* Live search suggestions (Phase C round 4) */
.search-suggest { margin-top: 12px; display: grid; gap: 4px; }
.search-suggest__item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius-sm,8px); text-decoration: none; color: var(--text-strong,#394246); }
.search-suggest__item:hover { background: var(--surface-subtle,#F4F4F4); }
.search-suggest__item img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.search-suggest__t { flex: 1 1 auto; font-size: var(--text-body-md,16px); }
.search-suggest__p { font-weight: 700; font-size: var(--text-caption,13px); white-space: nowrap; }

/* Order tracking */
.blu-track__row { display: flex; flex-wrap: wrap; gap: 8px; }
.blu-track__row .input { flex: 1 1 160px; min-width: 0; }
.blu-track__result { margin-top: 14px; }
.blu-track__card { padding: 14px; border: 1px solid var(--border-soft,#EBEBEB); border-radius: var(--radius-md,12px); background: var(--surface-subtle,#F4F4F4); }
.blu-track__status { font-weight: 800; color: var(--color-primary,#00ADE6); }
.blu-track__meta { font-size: var(--text-caption,13px); color: var(--text-muted,#7a8388); margin: 4px 0 8px; }
.blu-track__items { margin: 0 0 8px; padding-inline-start: 18px; font-size: var(--text-caption,13px); }
.blu-track__total { font-weight: 700; }
.blu-track__err { color: var(--danger,#D23B3B); }

/* Category panel (mobile drawer + [blu_categories]) */
.blu-cats { margin-top: 8px; }
.blu-cats__title { font-weight: 700; font-size: var(--text-caption,13px); color: var(--text-muted,#7a8388); margin: 12px 0 6px; }
.blu-cats__list, .blu-cats__sub { list-style: none; margin: 0; padding: 0; }
.blu-cats__parent { display: block; padding: 8px 0; font-weight: 600; color: var(--text-strong,#394246); text-decoration: none; }
.blu-cats__sub { padding: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.blu-cats__sub a { font-size: var(--text-caption,13px); color: var(--text-body,#4B555A); text-decoration: none; background: var(--surface-subtle,#F4F4F4); padding: 4px 10px; border-radius: var(--radius-pill,999px); }

/* Newsletter / SMS signup (Phase C round 5) */
.blu-news { margin: 12px 0; }
.blu-news__title { font-weight: 700; }
.blu-news__sub { font-size: var(--text-caption,13px); color: var(--text-muted,#7a8388); margin: 2px 0 8px; }
.blu-news__row { display: flex; gap: 8px; }
.blu-news__input { flex: 1 1 auto; min-width: 0; }
.blu-news__msg { margin: 8px 0 0; font-size: var(--text-caption,13px); color: var(--success,#1F9D57); }
.blu-news.is-done .blu-news__row { display: none; }

/* ============================================================
   Stores (شعب) + Support (پشتیبانی) page templates
/* ============================================================
   Home builder — marketing blocks (banner row · newsletter band)
   ============================================================ */
.blu-banner-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
.blu-banner { display: block; border-radius: var(--radius-lg); overflow: hidden; }
.blu-banner img { width: 100%; height: auto; display: block; object-fit: cover;
  transition: transform var(--motion-slow) var(--motion-ease); }
.blu-banner picture { display: contents; }
/* v1.4.0 — lock the frame to the ratio the editor asks for, so an off-spec
   upload crops instead of resizing the whole row (zero CLS). */
.blu-banner-row--1 .blu-banner img { aspect-ratio: 8 / 3; }
.blu-banner-row--2 .blu-banner img,
.blu-banner-row--3 .blu-banner img { aspect-ratio: 1 / 1; }
@media (max-width: 640px) {
  .blu-banner.has-mobile img { aspect-ratio: 4 / 5; }
}
.blu-banner:hover img { transform: scale(1.02); }
@media (min-width: 768px) {
  .blu-banner-row--2 { grid-template-columns: 1fr 1fr; }
  .blu-banner-row--3 { grid-template-columns: repeat(3, 1fr); }
}

.blu-news-banner { background: var(--blu-500); color: #fff; border-radius: var(--radius-xl); padding: 28px 24px; display: grid; gap: 14px; }
.blu-news-banner__title { font-size: var(--text-h3); font-weight: var(--weight-title); color: #fff; margin: 0; }
.blu-news-banner__sub { font-size: var(--text-caption); color: rgba(255,255,255,.82); margin: 6px 0 0; line-height: 1.8; }
.blu-news-banner .blu-news { margin: 0; }
@media (min-width: 768px) { .blu-news-banner { grid-template-columns: 1.1fr 1fr; align-items: center; } }

/* ============================================================
 * Page Composer — block wrapper utilities + composer blocks
 * (رابط بصری صفحه‌ساز: تنظیمات مشترک هر بخش + بلوک‌های خلاقانه)
 * ============================================================ */

/* Common per-block controls: background */
.blu-block--bg-soft,
.blu-block--bg-brand,
.blu-block--bg-dark { border-radius: var(--radius-lg); padding-inline: 16px; }
.blu-block--bg-soft  { background: var(--surface-subtle); }
.blu-block--bg-brand { background: var(--surface-tint); }
.blu-block--bg-dark  { background: var(--surface-inverse); color: #fff; }
.blu-block--bg-dark .section-head__title,
.blu-block--bg-dark h2, .blu-block--bg-dark h3 { color: #fff; }

/* Vertical rhythm variants (target the inner .section margins) */
.blu-block--pad-compact  .section { margin-block: var(--space-5, 20px); }
.blu-block--pad-spacious .section { margin-block: calc(var(--space-7) * 1.6); }
.blu-block--pad-none     .section { margin-block: 0; }

/* Full-bleed breakout (content stays aligned to the container) */
.blu-block--full { width: 100vw; margin-inline: calc(50% - 50vw); border-radius: 0; }
.blu-block--full > .section {
  max-width: var(--container-max); margin-inline: auto; padding-inline: var(--container-pad);
}

/* Per-device visibility */
@media (max-width: 781px) { .blu-hide-mobile  { display: none !important; } }
@media (min-width: 782px) { .blu-hide-desktop { display: none !important; } }

/* Campaign + CTA backgrounds as custom properties (mobile artwork swap) */
.blu-campaign--image { background-image: var(--blu-cmp-bg); }
@media (max-width: 640px) {
  .blu-campaign--image { background-image: var(--blu-cmp-bg-m, var(--blu-cmp-bg)); }
}

.blu-cta {
  border-radius: var(--radius-lg); background: var(--surface-inverse); color: #fff;
  padding: 44px 24px; text-align: center; background-size: cover; background-position: center;
}
.blu-cta--image { background-image: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)), var(--blu-cta-bg); }
@media (max-width: 640px) {
  .blu-cta--image { background-image: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)), var(--blu-cta-bg-m, var(--blu-cta-bg)); }
}
.blu-cta__body { display: grid; gap: 10px; justify-items: center; max-width: 640px; margin-inline: auto; }
.blu-cta__title { margin: 0; color: #fff; font-size: var(--text-h2); font-weight: var(--weight-title); }
.blu-cta__sub { margin: 0; opacity: .88; }
.blu-cta__btn { margin-top: 6px; }

/* Video hero */
.blu-vhero__media { position: relative; border-radius: var(--radius-xl); overflow: hidden; background: #000; min-height: 200px; }
.blu-vhero__video, .blu-vhero__poster { display: block; width: 100%; height: auto; }
.blu-vhero__embed { position: relative; padding-top: 56.25%; }
.blu-vhero__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.blu-vhero__overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  background: linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(0,0,0,.58)); padding: 22px;
}
.blu-vhero__inner { color: #fff; display: grid; gap: 8px; justify-items: start; }
.blu-vhero__title { margin: 0; color: #fff; font-size: var(--text-h2); font-weight: var(--weight-title); }
.blu-vhero__sub { margin: 0; opacity: .9; }
@media (min-width: 768px) { .blu-vhero__overlay { padding: 40px; } }

/* Bento / mosaic grid */
.blu-bento { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
.blu-bento__tile { display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-subtle); }
.blu-bento__tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--motion-slow) var(--motion-ease); }
.blu-bento__tile:hover img { transform: scale(1.04); }
.blu-bento__tile--feature { grid-column: span 2; grid-row: span 2; }
@media (min-width: 768px) {
  .blu-bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; }
  .blu-bento--2 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 300px; }
  .blu-bento--2 .blu-bento__tile--feature { grid-column: span 1; grid-row: span 1; }
}

/* v1.7.10 — بلاک «وعدهٔ ارسال (پویا)» صفحه‌ساز. بدون سطح آبی پُر و بدون تایمر. */
.dispatch-strip { display: flex; align-items: center; gap: 14px;
  background: var(--gray-100); border: 1px solid var(--gray-150);
  border-radius: var(--radius-lg); padding: 16px 20px; }
.dispatch-strip__icon { width: 46px; height: 46px; border-radius: 50%; background: var(--blu-100);
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  color: var(--blu-500); }
.dispatch-strip__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dispatch-strip__kicker { font-size: var(--text-label); font-weight: var(--weight-strong); color: var(--blu-700); }
.dispatch-strip__main { font-size: var(--text-body-md); font-weight: var(--weight-title); color: var(--text-strong); line-height: 1.7; }
.dispatch-strip__sub { font-size: var(--text-caption); color: var(--muted); line-height: 1.8; }

/* Benefits bar */
.blu-benefits {
  list-style: none; margin: 0; padding: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 12px;
  border: 1px solid var(--border-soft); border-radius: var(--radius-lg); background: var(--surface-page);
}
.blu-benefits__item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.blu-benefits__icon { color: var(--blu-500); display: inline-flex; flex: 0 0 auto; }
.blu-benefits__text { font-size: var(--text-caption); color: var(--text-body); }
@media (min-width: 900px) { .blu-benefits { grid-template-columns: repeat(4, 1fr); padding: 18px 22px; } }
/* v1.6.3 — موبایل: آیکون بالای متنِ وسط‌چین؛ متن‌های ناهم‌طول دیگر کج‌وکوله
   نمی‌شکنند (ممیزی صفحهٔ «تیشرت با طرح دلخواه»). */
@media (max-width: 899px) {
  .blu-benefits { gap: 16px 10px; padding: 16px 12px; }
  .blu-benefits__item { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
  .blu-benefits__text { text-wrap: balance; line-height: 1.7; }
}

/* Product tabs */
.blu-ptabs__head { flex-wrap: wrap; }
.blu-ptabs__nav { display: flex; gap: 4px; background: var(--surface-subtle); border-radius: 999px; padding: 4px; }
.blu-ptabs__tab {
  border: 0; background: none; padding: 7px 16px; border-radius: 999px; cursor: pointer;
  font-size: var(--text-caption); color: var(--text-body); font-family: inherit;
}
.blu-ptabs__tab.is-active { background: var(--surface-page); color: var(--text-strong); font-weight: 700; box-shadow: var(--shadow-card); }
.blu-ptabs__panel[hidden] { display: none; }

/* Category grid */
.blu-catgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.blu-catgrid__card {
  display: grid; gap: 10px; justify-items: center; text-decoration: none; padding: 16px 10px;
  border: 1px solid var(--border-soft); border-radius: var(--radius-lg); background: var(--surface-page);
  transition: box-shadow var(--motion-fast, 160ms) var(--motion-ease, ease), transform var(--motion-fast, 160ms) var(--motion-ease, ease);
}
.blu-catgrid__card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.blu-catgrid__thumb, .blu-catgrid__ph { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--surface-subtle); display: block; }
.blu-catgrid__name { font-size: var(--text-caption); color: var(--text-strong); font-weight: 600; text-align: center; }
@media (min-width: 640px)  { .blu-catgrid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .blu-catgrid { grid-template-columns: repeat(6, 1fr); } }

/* Spacer / divider */
.blu-spacer { position: relative; }
.blu-spacer--small  { height: 16px; }
.blu-spacer--medium { height: 40px; }
.blu-spacer--large  { height: 72px; }
.blu-spacer__rule { position: absolute; top: 50%; right: 0; left: 0; border-top: 1px solid var(--border-soft); }

/* Rich text */
.blu-richtext__body { max-width: 720px; display: grid; gap: 12px; justify-items: start; }
.blu-richtext--center .blu-richtext__body { margin-inline: auto; text-align: center; justify-items: center; }
.blu-richtext__title { margin: 0; font-size: var(--text-h2); font-weight: var(--weight-title); color: var(--text-strong); }
.blu-richtext__body p { margin: 0; line-height: 2; color: var(--text-body); }

/* Sticky campaign bar */
.blu-sticky-bar {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  background: var(--blu-500); color: #fff; border-radius: var(--radius-sm);
}
.blu-sticky-bar.is-stuck { position: fixed; top: 0; right: 0; left: 0; z-index: 90; border-radius: 0; box-shadow: 0 2px 12px rgba(0,0,0,.18); }
body.admin-bar .blu-sticky-bar.is-stuck { top: 32px; }
.blu-sticky-bar__inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; flex: 1 1 auto; min-width: 0; }
.blu-sticky-bar__text { font-weight: 700; font-size: var(--text-caption); }
.blu-sticky-bar__cta { color: #fff; font-size: var(--text-caption); text-decoration: underline; text-underline-offset: 3px; }
.blu-sticky-bar__close { background: none; border: 0; color: #fff; cursor: pointer; display: inline-flex; padding: 4px; flex: 0 0 auto; }
.blu-countdown--inline { display: inline-flex; gap: 6px; }
.blu-countdown--inline .blu-countdown__unit { min-width: auto; padding: 2px 7px; display: inline-flex; gap: 4px; align-items: baseline; background: rgba(255,255,255,.18); }
.blu-countdown--inline .blu-countdown__num { font-size: 14px; }
.blu-countdown--inline .blu-countdown__label { font-size: 10px; opacity: .85; }
@media (max-width: 640px) { .blu-sticky-bar__inner { gap: 8px; } .blu-sticky-bar__text { font-size: 12px; } }

/* ---- Creative batch 2: stories / testimonials / marquee / media-text ---- */

/* Story circles */
.blu-stories {
  display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 10px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.blu-stories::-webkit-scrollbar { display: none; }
.blu-story {
  display: grid; gap: 8px; justify-items: center; flex: 0 0 auto;
  text-decoration: none; scroll-snap-align: start; width: 86px;
}
.blu-story__ring {
  width: 78px; height: 78px; border-radius: 50%; padding: 3px; display: block;
  background: conic-gradient(from 210deg, var(--blu-500), var(--blu-700, #007AA6), var(--blu-500));
}
.blu-story__ring img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
  border: 2px solid var(--surface-page, #fff);
}
.blu-story:hover .blu-story__ring { filter: brightness(1.06); }
.blu-story__label {
  font-size: var(--text-label, 12px); color: var(--text-strong); text-align: center;
  max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (min-width: 900px) {
  .blu-story { width: 104px; }
  .blu-story__ring { width: 94px; height: 94px; }
  .blu-story__label { max-width: 104px; }
}

/* Testimonials */
.blu-quotes { display: grid; gap: 14px; grid-template-columns: 1fr; }
.blu-quote {
  margin: 0; padding: 18px 20px; border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); background: var(--surface-page, #fff); display: grid; gap: 10px;
  align-content: start;
}
.blu-quote__stars { color: #E8A33D; font-size: 15px; letter-spacing: 2px; }
.blu-quote__text { margin: 0; color: var(--text-body); line-height: 2; font-size: var(--text-caption, 13.5px); }
.blu-quote__name { color: var(--text-muted, #7a8388); font-size: var(--text-label, 12px); }
.blu-quote__name::before { content: "— "; }
/* v1.5.0 — photo + product link per testimonial, and an optional horizontal rail. */
.blu-quote__media { display: block; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-subtle); margin-bottom: 4px; }
.blu-quote__media img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  transition: transform var(--motion-slow, .32s) var(--motion-ease, ease); }
.blu-quote__media a:hover img { transform: scale(1.04); }
.blu-quote__link { justify-self: start; font-size: var(--text-label, 12px); color: var(--text-link); font-weight: var(--weight-ui); }
.blu-quotes--rail {
  display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  grid-template-columns: none;
}
.blu-quotes--rail::-webkit-scrollbar { display: none; }
.blu-quotes--rail .blu-quote { flex: 0 0 min(300px, 82vw); scroll-snap-align: start; }
@media (prefers-reduced-motion: reduce) { .blu-quote__media img { transition: none; } }
@media (min-width: 768px)  { .blu-quotes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .blu-quotes { grid-template-columns: repeat(4, 1fr); } }
.blu-quotes:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 767px) { .blu-quotes:has(> :nth-child(3):last-child) { grid-template-columns: 1fr; } }

/* Marquee ticker */
.blu-marquee {
  display: block; overflow: hidden; background: var(--surface-inverse, #22303A); color: #fff;
  border-radius: var(--radius-sm); padding-block: 10px; text-decoration: none; margin-block: var(--space-6);
}
.blu-marquee__track { display: flex; width: max-content; }
.blu-marquee__strip { display: flex; align-items: center; animation: blu-marquee 22s linear infinite; }
.blu-marquee--slow .blu-marquee__strip { animation-duration: 36s; }
.blu-marquee--fast .blu-marquee__strip { animation-duration: 13s; }
.blu-marquee:hover .blu-marquee__strip { animation-play-state: paused; }
.blu-marquee__item { padding-inline: 22px; font-weight: 700; font-size: var(--text-caption, 13px); white-space: nowrap; }
.blu-marquee__dot { font-size: 7px; opacity: .6; }
/* RTL: strip flows right-to-left, loop moves toward +x (right). */
@keyframes blu-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}
.blu-marquee__track { transform: translateX(-50%); }
@media (prefers-reduced-motion: reduce) {
  .blu-marquee__strip { animation: none; }
  .blu-marquee__track { transform: none; }
  .blu-marquee__strip[aria-hidden="true"] { display: none; }
}

/* Media + text split */
.blu-mediatext { display: grid; gap: 20px; align-items: center; }
/* v1.4.0 — a locked 4:5 frame. Without it the column height jumped with every
   upload and the block was a CLS source. */
.blu-mediatext__media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-xl); display: block; }
.blu-mediatext__media picture { display: contents; }
.blu-mediatext__body { display: grid; gap: 14px; justify-items: start; }
.blu-mediatext__title { margin: 0; font-size: var(--text-h2); font-weight: var(--weight-title); color: var(--text-strong); }
.blu-mediatext__text p { margin: 0 0 10px; line-height: 2.1; color: var(--text-body); }
.blu-mediatext__text p:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .blu-mediatext { grid-template-columns: 1fr 1fr; gap: 44px; }
  /* media_side=right → عکس سمت راست (ستون اول در RTL) */
  .blu-mediatext--left .blu-mediatext__media { order: 2; }
  .blu-mediatext--left .blu-mediatext__body  { order: 1; }
}
/* v1.6.3 — بلوک مستقل «عکس + متن» در موبایل (وقتی عکس بالای متن می‌رود)
   وسط‌چین می‌شود تا دکمه به یک سمت نچسبد. فقط بلوک مستقل — اسلایدر هیرو
   (blu-mtslider) دست‌نخورده می‌ماند. */
@media (max-width: 899px) {
  .blu-block--media-text .blu-mediatext__body { justify-items: center; text-align: center; }
}
/* v1.6.3 — گزینهٔ «تراز متن: وسط» بلوک عکس + متن (دسکتاپ و موبایل). */
.blu-mediatext--center .blu-mediatext__body { justify-items: center; text-align: center; }

/* ---- Coupon copy strip (بلوک کد تخفیف کپی‌شو) ---- */
.blu-coupon {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 20px; border: 1.5px dashed var(--blu-500, #00ADE6);
  border-radius: var(--radius-lg); background: var(--surface-tint, rgba(0,173,230,.08));
}
.blu-coupon__text { display: grid; gap: 2px; min-width: 0; }
.blu-coupon__title { font-size: var(--text-h4, 17px); color: var(--text-strong); }
.blu-coupon__sub { font-size: var(--text-caption, 13px); color: var(--text-body); }
.blu-coupon__chip {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--surface-page, #fff); border: 1px solid var(--border-soft);
  border-radius: 10px; padding: 9px 16px; transition: box-shadow var(--motion-fast, 160ms) ease;
}
.blu-coupon__chip:hover { box-shadow: var(--shadow-card); }
.blu-coupon__chip code { font-size: 17px; font-weight: 800; letter-spacing: 1px; color: var(--text-strong); background: none; }
.blu-coupon__hint { font-size: var(--text-label, 11.5px); color: var(--blu-500, #00ADE6); font-weight: 700; }
.blu-coupon__chip.is-copied { border-color: #1a7f37; }
.blu-coupon__chip.is-copied .blu-coupon__hint { color: #1a7f37; }
@media (max-width: 640px) { .blu-coupon { justify-content: center; text-align: center; } .blu-coupon__text { justify-items: center; } }
/* v1.5.0 — up to three tiers side by side (the bulk-discount ladder). */
.blu-coupons { display: grid; gap: 12px; }
.blu-coupons--multi .blu-coupon { flex-direction: column; align-items: stretch; text-align: center; gap: 12px; }
.blu-coupons--multi .blu-coupon__text { justify-items: center; }
.blu-coupons--multi .blu-coupon__chip { justify-content: center; }
@media (min-width: 768px) {
  .blu-coupons--multi { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

/* ============================================================
   Page-composer pack 2 — slider · carousel motion · entrance
   animations · custom block background · video · magazine ·
   draft-preview badge. Additive and scoped.
   ============================================================ */

/* ---- per-block custom background (auto light/dark text) ---- */
.blu-block--bg-custom { background: var(--blu-block-bg, transparent); border-radius: var(--radius-lg); padding-inline: 16px; }
.blu-block--on-dark { color: #fff; --text-strong: #fff; --text-body: rgba(255,255,255,.88); --text-muted: rgba(255,255,255,.72); }
.blu-block--on-dark .section-head__title,
.blu-block--on-dark h2, .blu-block--on-dark h3 { color: #fff; }
.blu-block--on-dark .section-head__link { color: rgba(255,255,255,.85); }

/* ---- entrance animations (only below-the-fold blocks hide first) ---- */
.blu-anim.is-pre { opacity: 0; will-change: opacity, transform; }
.blu-anim--fade-up.is-pre { transform: translateY(26px); }
.blu-anim.is-in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }
@media (prefers-reduced-motion: reduce) {
  .blu-anim, .blu-anim.is-pre { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---- image slider ---- */
.blu-slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.blu-slider__vp { position: relative; aspect-ratio: var(--blu-slider-ratio, 16 / 6); overflow: hidden; background: var(--surface-subtle, #f4f4f4); }
@media (max-width: 767px) { .blu-slider.has-mobile .blu-slider__vp { aspect-ratio: 4 / 5; } }
.blu-slider__track { display: flex; height: 100%; transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.blu-slider__slide { position: relative; flex: 0 0 100%; min-width: 100%; height: 100%; display: block; }
.blu-slider__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blu-slider--fade .blu-slider__track { display: block; transition: none; transform: none !important; }
.blu-slider--fade .blu-slider__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.blu-slider--fade .blu-slider__slide.is-active { opacity: 1; pointer-events: auto; }
.blu-slider__caption {
  position: absolute; inset-inline-start: 0; inset-inline-end: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 40px 22px 20px; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
}
.blu-slider__caption strong { font-size: clamp(16px, 2.6vw, 26px); line-height: 1.4; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.blu-slider__btn {
  display: inline-block; background: #fff; color: #1d2327; border-radius: 999px;
  padding: 8px 18px; font-size: 13px; font-weight: 700;
}
.blu-slider__arrow, .blu-car-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.94); color: var(--text-strong, #222);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.14); transition: background .2s ease;
}
.blu-slider__arrow:hover, .blu-car-arrow:hover { background: #fff; }
.blu-slider__arrow--prev { inset-inline-start: 10px; }
.blu-slider__arrow--next { inset-inline-end: 10px; }
.blu-slider__arrow::before { content: ""; width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
html[dir="rtl"] .blu-slider__arrow--prev::before { transform: rotate(45deg); margin-inline-start: 3px; }
html[dir="rtl"] .blu-slider__arrow--next::before { transform: rotate(-135deg); margin-inline-end: 3px; }
html:not([dir="rtl"]) .blu-slider__arrow--prev::before { transform: rotate(-135deg); margin-inline-start: 3px; }
html:not([dir="rtl"]) .blu-slider__arrow--next::before { transform: rotate(45deg); margin-inline-end: 3px; }
.blu-slider__dots { position: absolute; bottom: 10px; inset-inline-start: 50%; transform: translateX(50%); display: flex; gap: 7px; z-index: 5; }
html:not([dir="rtl"]) .blu-slider__dots { transform: translateX(-50%); }
.blu-slider__dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; transition: all .2s ease; }
.blu-slider__dot.is-active { background: #fff; width: 22px; border-radius: 999px; }
.blu-slider__pause {
  position: absolute; bottom: 8px; inset-inline-end: 10px; z-index: 5;
  width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.42); display: flex; align-items: center; justify-content: center;
}
.blu-slider__pause::before { content: ""; width: 10px; height: 10px; background: linear-gradient(to right, #fff 32%, transparent 32%, transparent 68%, #fff 68%); }
.blu-slider__pause[data-playing="0"]::before { width: 0; height: 0; background: none; border-block: 6px solid transparent; border-inline-start: 9px solid #fff; }
/* display:flex above would otherwise beat the [hidden] attribute the script
   sets when there is nothing to pause (single slide / reduced motion). */
.blu-slider__pause[hidden] { display: none; }
@media (max-width: 767px) { .blu-slider__arrow { width: 38px; height: 38px; } .blu-slider__caption { padding: 30px 14px 14px; } }
@media (prefers-reduced-motion: reduce) { .blu-slider__track, .blu-slider--fade .blu-slider__slide { transition: none; } }

/* ---- media_text_slider (v1.4.0) ------------------------------------------
   Same engine as the image slider, but each slide is a two-column media+text
   panel. The banner slider reserves height with a fixed aspect-ratio; here the
   text length decides, so the viewport is left to grow and `align-items:
   stretch` on the flex track keeps every slide the height of the tallest. */
/* v1.4.1 — دو باگ که یک ریشه داشتند:
   ۱ نوار خاکستری بالای بلوک: __vp پس‌زمینهٔ خاکستری اسلایدر بنری را به ارث
     می‌برد. اینجا بنر نیست و باید پس‌زمینهٔ خودِ بلوک (تنظیمات نمایش) دیده شود.
   ۲ جای عکس در موبایل بین اسلایدها فرق می‌کرد: track ارتفاع را با بلندترین
     اسلاید یکسان می‌کند و align-content:center محتوای اسلایدهای کوتاه‌تر را
     وسط آن ارتفاع می‌انداخت، پس عکس هر اسلاید در ارتفاع متفاوتی می‌نشست.
     با start همهٔ اسلایدها از بالا شروع می‌شوند و عکس‌ها هم‌تراز می‌مانند. */
.blu-mtslider .blu-slider__vp { aspect-ratio: auto; background: transparent; }
.blu-mtslider { background: transparent; }
.blu-mtslider .blu-slider__track { align-items: stretch; height: auto; }
.blu-mtslider .blu-slider__slide { height: auto; display: grid; gap: 20px; align-content: start; }
/* Undo the banner rule that stretches images to the slide height. */
.blu-mtslider .blu-slider__slide img { height: auto; }
/* Dots sit below the block on a light background, so the white banner dots
   would be invisible — use the brand colour instead. */
.blu-mtslider .blu-slider__dots { position: static; transform: none; justify-content: center; margin-top: var(--space-4); }
.blu-mtslider .blu-slider__dot { background: var(--gray-150); }
.blu-mtslider .blu-slider__dot.is-active { background: var(--blu-500); }
.blu-mtslider .blu-slider__pause { position: static; margin: var(--space-3) auto 0; background: var(--surface-subtle); }
.blu-mtslider .blu-slider__pause::before { background: linear-gradient(to right, var(--text-body) 32%, transparent 32%, transparent 68%, var(--text-body) 68%); }
.blu-mtslider .blu-slider__pause[data-playing="0"]::before { border-inline-start-color: var(--text-body); }
@media (max-width: 767px) {
  /* Arrows would overlap the copy in a single 358px column. */
  .blu-mtslider .blu-slider__arrow { display: none; }
}
@media (min-width: 900px) {
  .blu-mtslider .blu-slider__slide { grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
  .blu-mtslider .blu-mediatext--left .blu-mediatext__media { order: 2; }
  .blu-mtslider .blu-mediatext--left .blu-mediatext__body  { order: 1; }
}

/* ---- steps / timeline (v1.4.0) ------------------------------------------ */
.blu-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); counter-reset: blustep; }
.blu-step { position: relative; display: grid; gap: 10px; align-content: start;
  background: var(--surface-subtle); border-radius: var(--radius-lg); padding: 22px 20px; }
.blu-step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--blu-500); color: #fff;
  font-family: var(--font-fa-num, inherit); font-weight: var(--weight-title); font-size: 15px;
}
.blu-step__media { display: block; border-radius: var(--radius-md); overflow: hidden; background: var(--gray-100); }
.blu-step__media img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.blu-step__body { display: grid; gap: 6px; }
.blu-step__title { font-size: var(--text-h3); font-weight: var(--weight-title); color: var(--text-strong); line-height: 1.5; }
.blu-step__text { font-size: var(--text-body); color: var(--text-body); line-height: 1.9; }
.blu-step__link { justify-self: start; color: var(--text-link); font-weight: var(--weight-ui); font-size: var(--text-caption); }
.blu-steps__cta { margin-top: var(--space-5); display: flex; justify-content: center; }
/* Vertical rail: a connecting line down the numbers. */
.blu-steps--rail .blu-step { background: none; padding: 0 0 var(--space-5) 0;
  grid-template-columns: 34px 1fr; column-gap: 14px; align-items: start; }
.blu-steps--rail .blu-step__body,
.blu-steps--rail .blu-step__media { grid-column: 2; }
.blu-steps--rail .blu-step:not(:last-child)::before {
  content: ""; position: absolute; inset-block: 40px 4px; inset-inline-start: 16px;
  width: 2px; background: var(--gray-150);
}
.blu-steps--rail.blu-steps--nonum .blu-step { grid-template-columns: 1fr; }
.blu-steps--rail.blu-steps--nonum .blu-step__body,
.blu-steps--rail.blu-steps--nonum .blu-step__media { grid-column: 1; }
@media (min-width: 768px) {
  .blu-steps--cards { grid-template-columns: repeat(3, 1fr); }
  .blu-steps--cards.blu-steps--n2 { grid-template-columns: repeat(2, 1fr); }
  .blu-steps--cards.blu-steps--n4 { grid-template-columns: repeat(4, 1fr); }
  .blu-steps--cards.blu-steps--n5,
  .blu-steps--cards.blu-steps--n6 { grid-template-columns: repeat(3, 1fr); }
}

/* ---- simple table (v1.4.0) ---------------------------------------------- */
.blu-table__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); }
.blu-table { width: 100%; border-collapse: collapse; text-align: start;
  font-family: var(--font-fa-num, inherit); background: var(--surface-page); }
.blu-table th, .blu-table td { padding: 12px 14px; border-bottom: 1px solid var(--gray-150);
  text-align: start; white-space: nowrap; font-size: var(--text-body); }
.blu-table thead th { background: var(--surface-subtle); color: var(--text-strong);
  font-weight: var(--weight-title); white-space: nowrap; }
.blu-table tbody tr:last-child td { border-bottom: 0; }
.blu-table .is-highlight { background: var(--surface-tint); color: var(--text-strong); font-weight: var(--weight-strong); }
.blu-table__note { margin: var(--space-3) 0 0; font-size: var(--text-caption); color: var(--text-muted); line-height: 1.9; }
/* v1.5.0 — CTA + sticky first column (a 5-column table is unreadable on a
   narrow RTL screen once it scrolls away from the row label). */
.blu-table__cta { margin-top: var(--space-4); display: flex; justify-content: center; }
@media (max-width: 767px) {
  .blu-table--stick th:first-child,
  .blu-table--stick td:first-child {
    position: sticky; inset-inline-start: 0; z-index: 1;
    background: var(--surface-page); box-shadow: 1px 0 0 var(--gray-150);
  }
  .blu-table--stick thead th:first-child { background: var(--surface-subtle); }
}

/* ---- product-carousel arrows (desktop pointer devices only) ---- */
.blu-carousel .blu-car-arrow { opacity: 0; pointer-events: none; }
.blu-carousel:hover .blu-car-arrow, .blu-carousel:focus-within .blu-car-arrow { opacity: 1; pointer-events: auto; }
.blu-car-arrow--prev { inset-inline-start: -8px; }
.blu-car-arrow--next { inset-inline-end: -8px; }
html[dir="rtl"] .blu-car-arrow--next svg { transform: scaleX(-1); }
html:not([dir="rtl"]) .blu-car-arrow--prev svg { transform: scaleX(-1); }
@media (hover: none) { .blu-carousel .blu-car-arrow { display: none; } }

/* ---- continuous marquee mode ---- */
@keyframes bluMarquee { from { transform: translateX(0); } to { transform: translateX(var(--mq-dist, -1000px)); } }
.blu-carousel--marquee { overflow: hidden; }
.blu-carousel ul.products.is-marquee {
  overflow-x: hidden; scroll-snap-type: none;
  animation: bluMarquee var(--mq-dur, 30s) linear infinite;
}
.blu-carousel--marquee:hover ul.products.is-marquee,
.blu-carousel--marquee.is-paused ul.products.is-marquee,
.blu-carousel--marquee.is-offscreen ul.products.is-marquee { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .blu-carousel ul.products.is-marquee { animation: none; } }

/* ---- video block (click-to-load) ---- */
.blu-video { margin-inline: auto; }
.blu-video--9-16 { max-width: 420px; }
.blu-video--1-1 { max-width: 640px; }
.blu-video__frame {
  position: relative; display: block; width: 100%;
  aspect-ratio: var(--blu-video-ratio, 16 / 9);
  border-radius: var(--radius-lg); overflow: hidden; background: #101418;
  border: 0; padding: 0; cursor: pointer;
}
.blu-video__frame > img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .88; }
.blu-video__frame iframe, .blu-video__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.blu-video__play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.94); box-shadow: 0 4px 18px rgba(0,0,0,.35); transition: transform .2s ease;
}
.blu-video__play::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0;
  border-block: 11px solid transparent; border-inline-start: 17px solid #1d2327;
  transform: translateX(-2px);
}
html:not([dir="rtl"]) .blu-video__play::after { transform: translateX(2px); }
.blu-video__frame:hover .blu-video__play { transform: scale(1.07); }
.blu-video__title { margin: 10px 0 0; text-align: center; color: var(--text-strong); font-weight: 600; }

/* ---- magazine posts ---- */
.blu-magazine__grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .blu-magazine__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
  .blu-magazine__grid[data-count="4"] { grid-template-columns: repeat(4, 1fr); }
}
.blu-magazine__card { display: block; color: inherit; }
.blu-magazine__thumb {
  display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface-subtle, #f4f4f4); margin-bottom: 10px;
}
.blu-magazine__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.blu-magazine__card:hover .blu-magazine__thumb img { transform: scale(1.04); }
.blu-magazine__title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--text-strong); font-size: 15px; line-height: 1.7;
}
.blu-magazine__meta { display: flex; gap: 6px; margin-top: 6px; color: var(--text-muted); font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .blu-magazine__thumb img { transition: none; } }

/* ---- draft-preview badge ---- */
.blu-draft-badge {
  position: fixed; bottom: 14px; inset-inline-start: 14px; z-index: 99999;
  background: #1d2327; color: #fff; padding: 9px 16px; border-radius: 999px;
  font-size: 13px; box-shadow: 0 4px 16px rgba(0,0,0,.35);
}

/* ---- composer text controls (رنگ/اندازه نوشته هر بلوک) --------------------
   v1.4.1: تا اینجا این قواعد فقط h2 و h3 را هدف می‌گرفتند. هر بلوکی که عنوانش
   h2 نبود از تنظیمات نمایش بی‌نصیب می‌ماند — مشهودترین نمونه، اسلایدر عکس+متن
   بود که عمداً فقط عنوان اسلاید اول را h2 می‌کند (تا صفحه پنج تیتر هم‌رده
   نداشته باشد) و بقیه را p؛ نتیجه این بود که تغییر رنگ یا اندازه فقط روی
   اسلاید اول می‌نشست. حالا کلاسِ عنوانِ هر بلوک هم در فهرست است. */
:root { --blu-title-scale: 1; --blu-text-scale: 1; }

/* عنوان‌های بلوک — هر جا که هست */
.blu-block--tc .section-head__title,
.blu-block--tc h2,
.blu-block--tc h3,
.blu-block--tc .blu-mediatext__title,
.blu-block--tc .blu-step__title,
.blu-block--tc .blu-richtext__title,
.blu-block--tc .blu-cta__title,
.blu-block--tc .blu-campaign__title,
.blu-block--tc .blu-vhero__title,
.blu-block--tc .blu-coupon__title,
.blu-block--tc .blu-news-banner__title,
.blu-block--tc .faq-item__q,
.blu-block--tc .blu-slider__caption strong { color: var(--blu-title-c); }

/* متن بدنه — هر جا که هست */
.blu-block--xc,
.blu-block--xc p,
.blu-block--xc .blu-mediatext__text,
.blu-block--xc .blu-step__text,
.blu-block--xc .blu-quote__text,
.blu-block--xc .blu-table td,
.blu-block--xc .faq-item__a,
.blu-block--xc .section-head__sub { color: var(--blu-text-c); }

/* اندازهٔ عنوان: به‌جای font-size ثابت روی h2، یک ضریب مقیاس که روی عنوان هر
   بلوکی می‌نشیند و نسبت‌های تایپوگرافی خودِ بلوک را حفظ می‌کند. */
.blu-tsize-sm { --blu-title-scale: .72; }
.blu-tsize-lg { --blu-title-scale: 1.25; }
.blu-tsize-xl { --blu-title-scale: 1.6; }
.blu-tsize-sm .section-head__title, .blu-tsize-lg .section-head__title, .blu-tsize-xl .section-head__title,
.blu-tsize-sm h2, .blu-tsize-lg h2, .blu-tsize-xl h2,
.blu-tsize-sm h3, .blu-tsize-lg h3, .blu-tsize-xl h3,
.blu-tsize-sm .blu-mediatext__title, .blu-tsize-lg .blu-mediatext__title, .blu-tsize-xl .blu-mediatext__title,
.blu-tsize-sm .blu-step__title, .blu-tsize-lg .blu-step__title, .blu-tsize-xl .blu-step__title,
.blu-tsize-sm .blu-richtext__title, .blu-tsize-lg .blu-richtext__title, .blu-tsize-xl .blu-richtext__title,
.blu-tsize-sm .blu-cta__title, .blu-tsize-lg .blu-cta__title, .blu-tsize-xl .blu-cta__title,
.blu-tsize-sm .blu-campaign__title, .blu-tsize-lg .blu-campaign__title, .blu-tsize-xl .blu-campaign__title,
.blu-tsize-sm .blu-vhero__title, .blu-tsize-lg .blu-vhero__title, .blu-tsize-xl .blu-vhero__title,
.blu-tsize-sm .faq-item__q, .blu-tsize-lg .faq-item__q, .blu-tsize-xl .faq-item__q {
  font-size: calc(var(--text-h2, 30px) * var(--blu-title-scale));
}

/* اندازهٔ متن بدنه (کنترل جدید v1.4.1) */
.blu-xsize-sm { --blu-text-scale: .88; }
.blu-xsize-lg { --blu-text-scale: 1.15; }
.blu-xsize-xl { --blu-text-scale: 1.3; }
.blu-xsize-sm p, .blu-xsize-lg p, .blu-xsize-xl p,
.blu-xsize-sm li, .blu-xsize-lg li, .blu-xsize-xl li,
.blu-xsize-sm .blu-mediatext__text, .blu-xsize-lg .blu-mediatext__text, .blu-xsize-xl .blu-mediatext__text,
.blu-xsize-sm .blu-step__text, .blu-xsize-lg .blu-step__text, .blu-xsize-xl .blu-step__text,
.blu-xsize-sm .blu-quote__text, .blu-xsize-lg .blu-quote__text, .blu-xsize-xl .blu-quote__text,
.blu-xsize-sm .blu-table th, .blu-xsize-lg .blu-table th, .blu-xsize-xl .blu-table th,
.blu-xsize-sm .blu-table td, .blu-xsize-lg .blu-table td, .blu-xsize-xl .blu-table td,
.blu-xsize-sm .faq-item__a, .blu-xsize-lg .faq-item__a, .blu-xsize-xl .faq-item__a,
.blu-xsize-sm .section-head__sub, .blu-xsize-lg .section-head__sub, .blu-xsize-xl .section-head__sub {
  font-size: calc(var(--text-body, 16px) * var(--blu-text-scale));
}


/* ---- hand-picked products (v1.5.0) ------------------------------------- */
/* Grid variants reuse the WooCommerce loop markup the carousel already emits,
   so the card itself is untouched. */
.blu-picked ul.products { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px)  { .blu-picked--grid ul.products  { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px)  { .blu-picked--grid2 ul.products { grid-template-columns: repeat(2, 1fr); } }
/* Sits inside the card (hooked on woocommerce_after_shop_loop_item), which is
   what turns a plain grid into a buying guide — the only unique copy any product
   shelf carries. */
.blu-picked__why, .blu-carousel .blu-picked__why {
  margin: 6px 0 0; font-size: var(--text-caption, 13px);
  color: var(--text-body); line-height: 1.85;
}

/* ---- reward ladder (v1.5.0) -------------------------------------------- */
.blu-ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); counter-reset: blurung; }
.blu-ladder__step {
  position: relative; display: grid; gap: 6px; justify-items: center; text-align: center;
  background: var(--surface-subtle); border-radius: var(--radius-lg); padding: 22px 16px 18px;
}
.blu-ladder__rung { position: absolute; inset-block-start: 0; inset-inline: 0; height: 4px;
  background: var(--blu-500); border-start-start-radius: var(--radius-lg); border-start-end-radius: var(--radius-lg); }
.blu-ladder__step:nth-child(1) .blu-ladder__rung { opacity: .45; }
.blu-ladder__step:nth-child(2) .blu-ladder__rung { opacity: .7; }
.blu-ladder__icon { display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; background: var(--surface-tint); color: var(--blu-500); }
.blu-ladder__media { display: block; width: 64px; height: 64px; border-radius: var(--radius-md); overflow: hidden; background: var(--gray-100); }
.blu-ladder__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blu-ladder__amount { font-family: var(--font-fa-num, inherit); font-size: var(--text-caption, 13px); color: var(--text-muted); }
.blu-ladder__reward { font-size: var(--text-h3, 18px); font-weight: var(--weight-title); color: var(--text-strong); line-height: 1.5; }
.blu-ladder__desc { font-size: var(--text-caption, 13px); color: var(--text-body); line-height: 1.9; }
.blu-ladder__code {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; margin-top: 4px;
  background: var(--surface-page); border: 1px dashed var(--blu-500); border-radius: var(--radius-sm);
  padding: 7px 13px; color: var(--text-strong);
}
.blu-ladder__code code { font-weight: 800; letter-spacing: .5px; background: none; }
.blu-ladder__code.is-copied { border-style: solid; border-color: var(--success); }
.blu-ladder__hint { margin: var(--space-3) 0 0; text-align: center; font-size: var(--text-caption); color: var(--text-muted); }
.blu-ladder__cta { margin-top: var(--space-4); display: flex; justify-content: center; }
@media (min-width: 768px) {
  .blu-ladder { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

/* ---- page-builder layouts on category archives (v1.5.0) ---------------- */
.blu-archive-layout { display: block; }
.blu-archive-layout--top { margin-bottom: var(--space-5); }
.blu-archive-layout--bottom { margin-top: var(--space-6); }
/* The archive already sits inside .container, so a full-bleed block inside the
   archive would double the breakout. Keep it contained here. */
.blu-archive-layout .blu-block--full { width: auto; margin-inline: 0; border-radius: var(--radius-lg); }

/* =========================================================================
 * v1.6.0 — بستهٔ ممیزی لندینگ: بلوک‌های جدید + پالیش UX
 * ====================================================================== */

/* --- شمارنده اعتماد / آمار ------------------------------------------- */
.blu-counters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; text-align: center; }
.blu-counters__item { display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--surface-tint, var(--gray-100)); border-radius: var(--radius-lg); padding: 18px 10px; }
.blu-counters__icon { color: var(--blu-500); display: inline-flex; }
.blu-counters__num { font-family: var(--font-fa-num, inherit); font-size: 26px; font-weight: 800;
  color: var(--text-strong); line-height: 1.2; display: inline-flex; align-items: baseline; gap: 2px; direction: rtl; }
.blu-counters__after { font-size: .62em; font-weight: 700; color: var(--blu-700); }
.blu-counters__label { font-size: var(--text-caption, 13px); color: var(--text-muted); }
@media (min-width: 768px) {
  .blu-counters { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .blu-counters__num { font-size: 32px; }
}

/* --- فرم استعلام سازمانی B2B ------------------------------------------ */
.blu-b2b { display: grid; gap: 22px; background: var(--surface-tint, var(--gray-100));
  border-radius: var(--radius-xl, 18px); padding: 22px 18px; }
.blu-b2b__title { font-size: var(--text-h3); font-weight: var(--weight-title); color: var(--text-strong); margin: 0 0 6px; line-height: 1.6; }
.blu-b2b__sub { margin: 0 0 12px; color: var(--text-body); font-size: 14px; line-height: 1.9; }
.blu-b2b__points { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.blu-b2b__points li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-body); }
.blu-b2b__points svg { color: var(--success, #1a7f37); flex: none; }
/* v1.6.3 — یادآوری سفارش تکی زیر مزیت‌ها (پل B2C↔B2B). */
.blu-b2b__single { margin: 0 0 14px; font-size: 13px; color: var(--text-muted); }
.blu-b2b__single a { color: var(--blu-600, #0084B4); text-decoration: underline; text-underline-offset: 3px; }
.blu-b2b__contacts { display: flex; flex-wrap: wrap; gap: 9px; }
.blu-b2b__hp { position: absolute !important; inset-inline-start: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.blu-b2b__form { position: relative; background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 16px; }
.blu-b2b__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.blu-b2b__field { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.blu-b2b__field:first-child { margin-top: 0; }
.blu-b2b__field span { font-size: 12.5px; color: var(--text-muted); }
.blu-b2b__field input, .blu-b2b__field select, .blu-b2b__field textarea {
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 10px 12px;
  font: inherit; font-size: 14px; background: #fff; color: var(--text-strong); width: 100%; }
.blu-b2b__field input:focus, .blu-b2b__field select:focus, .blu-b2b__field textarea:focus {
  outline: none; border-color: var(--blu-500); box-shadow: 0 0 0 3px rgba(0, 173, 230, .15); }
.blu-b2b__submit { width: 100%; margin-top: 14px; min-height: 46px; }
.blu-b2b__status { margin: 8px 0 0; font-size: 13px; min-height: 1.5em; }
.blu-b2b__status.is-ok { color: var(--success, #1a7f37); }
.blu-b2b__status.is-err { color: var(--danger, #d63638); }
.blu-b2b__form.is-sending { opacity: .6; pointer-events: none; }
@media (min-width: 900px) {
  .blu-b2b { grid-template-columns: 1fr 1fr; align-items: center; padding: 30px; }
}
@media (max-width: 520px) {
  .blu-b2b__grid { grid-template-columns: 1fr; }
}

/* --- متن سئو + «ادامه مطلب» ------------------------------------------ */
.blu-seotext { max-width: 780px; }
.blu-seotext__title { font-size: var(--text-h3); font-weight: var(--weight-title); color: var(--text-strong); margin: 0 0 10px; }
.blu-seotext__body { font-size: 13.5px; line-height: 2.1; color: var(--text-body); }
.blu-seotext__body a { color: var(--text-link); text-decoration: underline; text-underline-offset: 3px; }
.blu-seotext.is-collapsed .blu-seotext__body { max-height: 7.5em; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.blu-seotext.is-open .blu-seotext__body { max-height: none; -webkit-mask-image: none; mask-image: none; }
.blu-seotext__more { background: none; border: 0; padding: 6px 0; margin-top: 2px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--text-link); }

/* --- گالری اینستاگرام -------------------------------------------------- */
.blu-ig { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.blu-ig__tile { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: var(--radius-md); background: var(--gray-100); }
.blu-ig__tile img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--motion-fast, .2s) var(--motion-ease, ease); }
.blu-ig__tile:hover img { transform: scale(1.05); }
.blu-ig__hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(10, 20, 26, .35); color: #fff; opacity: 0; transition: opacity var(--motion-fast, .2s) ease; }
.blu-ig__tile:hover .blu-ig__hover, .blu-ig__tile:focus-visible .blu-ig__hover { opacity: 1; }
.blu-ig__follow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700;
  color: var(--text-link); min-height: 44px; }
.blu-ig--rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding-bottom: 6px; scrollbar-width: thin; }
.blu-ig--rail .blu-ig__tile { flex: 0 0 42%; scroll-snap-align: start; }
@media (min-width: 768px) {
  .blu-ig { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .blu-ig--rail .blu-ig__tile { flex-basis: 23%; }
}

/* --- مقایسه محصولات پایه ---------------------------------------------- */
.blu-compare { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.blu-compare__table { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; }
.blu-compare__table th, .blu-compare__table td { padding: 10px 12px; text-align: center; font-size: 13.5px;
  border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.blu-compare__table tbody tr:last-child th, .blu-compare__table tbody tr:last-child td { border-bottom: 0; }
.blu-compare__feat { text-align: start !important; color: var(--text-muted); font-weight: 600; font-size: 12.5px;
  position: sticky; inset-inline-start: 0; background: #fff; z-index: 1; }
.blu-compare__prod { min-width: 132px; }
.blu-compare__prod.is-best, .blu-compare__table td.is-best { background: var(--surface-tint, #f0f9fd); }
.blu-compare__flag { display: inline-block; background: var(--blu-600); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; padding: 3px 10px; margin-bottom: 6px; }
.blu-compare__media { display: block; width: 84px; margin: 0 auto 6px; border-radius: var(--radius-md); overflow: hidden; }
.blu-compare__media img { width: 100%; height: auto; display: block; }
.blu-compare__name { display: block; font-size: 13px; font-weight: var(--weight-title); color: var(--text-strong); line-height: 1.6; }
.blu-compare__price { display: block; font-family: var(--font-fa-num, inherit); font-size: 12.5px; margin-top: 3px; }
.blu-compare__price del { color: var(--text-muted); font-size: .85em; }
.blu-compare__price ins { text-decoration: none; font-weight: 800; }
.blu-compare__btn { padding: 8px 12px; font-size: 12.5px; white-space: nowrap; }
.blu-compare__note { margin: 8px 0 0; font-size: 12.5px; color: var(--text-muted); }

/* --- پالیش UX (ممیزی مرداد ۱۴۰۵) --------------------------------------- */
/* نشانگر اسلایدهای مدیاتکست: بزرگ‌تر و پرکنتراست‌تر تا کاربر بفهمد چند اسلاید هست */
.blu-mtslider .blu-slider__dot { width: 11px; height: 11px; background: var(--gray-300, #c6cdd2); }
.blu-mtslider .blu-slider__dot.is-active { width: 26px; background: var(--blu-600); }
/* دات‌ها هدف لمسی بلندتر می‌گیرند؛ افقی فقط تا نصف gap تا روی دات کناری نیفتد */
.blu-slider__dot { position: relative; }
.blu-slider__dot::after { content: ""; position: absolute; inset: -14px -3px; }
