/* ════════════════════════════════════════════════════════════════════════════
   za-shop-foundation.css — لایه پایه استاندارد فروشگاه ZamaniAuto  (UX-AUDIT-2026-10)
   ────────────────────────────────────────────────────────────────────────────
   همیشه آخرین CSS صفحه است (در head.php). فقط قواعد «ایمن» دارد: دسترس‌پذیری،
   ارگونومی لمسی، فرم‌ها، ایمنی چیدمان و ریسپانسیو پایه. هیچ رنگ/فاصله برندی را
   بازنویسی نمی‌کند تا ظاهر فعلی حفظ شود.

   مرجع نقاط شکست (برای همه کدهای جدید فقط همین سه بازه):
     موبایل  : ≤ 639px           @media (max-width: 639.98px)
     تبلت    : 640px – 1024px    @media (min-width: 640px) and (max-width: 1024.98px)
     دسکتاپ  : ≥ 1025px          @media (min-width: 1025px)
   (عدد .98 از هم‌پوشانی دو بازه در عرض دقیق 1024/640 جلوگیری می‌کند.)
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  --za-tap: 44px;                 /* حداقل ناحیه لمس — WCAG 2.5.5 / Apple HIG */
  --za-focus-ring: #1565c0;
  --za-dock-h: 64px;              /* ارتفاع نوار ناوبری پایین موبایل */
  --za-safe-b: env(safe-area-inset-bottom, 0px);
  --za-chat-safe: 96px;           /* فضای حباب چت آنلاین در نوار خرید چسبان */
}

/* ── 1. پایه متن و رندر ───────────────────────────────────────────────────── */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html[data-theme="light"] body { text-rendering: optimizeLegibility; -webkit-tap-highlight-color: rgba(21, 101, 192, .12); }

/* قیمت‌ها و اعداد: ارقام هم‌عرض تا هنگام تغییر تعداد/قیمت متن نپرد */
.za-price-val, .price-current, .price-old, .sticky-buy-price, .cart-summary, [data-cart-count],
.za-mpn-value, .shop-pagination { font-variant-numeric: tabular-nums; }

/* کدهای فنی و مشخصات لاتین داخل متن راست‌به‌چپ: جداسازی جهت متن (bidi) تا
   علائمی مثل ؛ ، ( ) و - جابه‌جا نشوند */
[dir="ltr"], .za-mpn-value, .za-spec-text, bdi { unicode-bidi: isolate; }

/* ── 2. ایمنی چیدمان: جلوگیری از اسکرول افقی در موبایل/تبلت ───────────────── */
@media (max-width: 1024.98px) {
  /* clip برخلاف hidden کانتینر اسکرول نمی‌سازد، پس position:sticky سالم می‌ماند */
  html[data-theme="light"] main { overflow-x: clip; }
}
.shop-page-wrap :is(img, video, iframe) { max-width: 100%; }
[hidden] { display: none !important; }

/* ── 3. فوکوس صفحه‌کلید (WCAG 2.4.7) — فقط برای کاربر کیبورد، نه کلیک ماوس ─── */
html[data-theme="light"] :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--za-focus-ring) !important;
  outline-offset: 2px !important;
  box-shadow: none;
}
html[data-theme="light"] :is(input, select, textarea):focus-visible { outline-offset: 0 !important; }

.sr-only, .za-sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important;
  margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important;
  white-space: nowrap !important; border: 0 !important;
}

/* ── 4. فرم‌ها در موبایل/تبلت: فونت ۱۶px تا iOS Safari هنگام فوکوس زوم نکند ──── */
@media (max-width: 1024.98px) {
  html[data-theme="light"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]), select, textarea) {
    font-size: 16px !important;
  }
}
html[data-theme="light"] :is(input, select, textarea, button) { font-family: inherit; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── 5. ناحیه لمس ۴۴px بدون تغییر اندازه ظاهری (گسترش نامرئی با شبه‌عنصر) ── */
@media (pointer: coarse) {
  .za-tool-btn, .filter-chip a, .rail-nav, .shop-filters-close { position: relative; }
  .za-tool-btn::after { content: ""; position: absolute; inset: -7px -3px; }
  .filter-chip a::after, .rail-nav::after, .shop-filters-close::after { content: ""; position: absolute; inset: -10px; }
  .shop-pagination :is(a, span) { min-width: var(--za-tap); min-height: var(--za-tap); display: inline-flex; align-items: center; justify-content: center; }
}

/* ── 6. عنوان H1 صفحات لیست/دسته/جستجو (قبلاً این صفحات H1 نداشتند) ───────── */
.shop-listing-head { margin: 0 0 12px; }
.shop-listing-title {
  margin: 0; color: #102a43; font-weight: 800; line-height: 1.5;
  font-size: clamp(1.05rem, .95rem + .55vw, 1.4rem);
}
.shop-listing-sub { margin: 4px 0 0; color: #486581; font-size: .85rem; }

/* صفحه‌بندی: آیتم غیرفعال واقعاً غیرقابل کلیک */
.shop-pagination .disabled { pointer-events: none; opacity: .45; }
.shop-pagination [aria-current="page"] { font-weight: 800; }

/* ── 7. لایه‌های ثابت پایین صفحه در موبایل (Dock + نوار خرید + چت) ─────────── */
@media (max-width: 1024.98px) {
  .shop-mobile-nav { padding-bottom: var(--za-safe-b); }
  #zaStickyBuy { padding-bottom: calc(8px + var(--za-safe-b)); }
}
/* جایگزین استایل inline و اسکریپت resize در product.php */
#zaStickyBuy { padding-right: var(--za-chat-safe) !important; box-sizing: border-box !important; }
#zaStickyBuy .sticky-buy-info { margin-right: 14px !important; text-align: right !important; }
body:not(:has(#zaChatWidget)) #zaStickyBuy { padding-right: 16px !important; }

/* ── 8. تب‌های صفحه محصول: اسکرول افقی روان در موبایل به‌جای شکستن خط ─────── */
@media (max-width: 639.98px) {
  .product-tabs-nav[role="tablist"] {
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
  }
  .product-tabs-nav[role="tablist"]::-webkit-scrollbar { display: none; }
  .product-tabs-nav[role="tablist"] > [role="tab"] { scroll-snap-align: start; flex: 0 0 auto; white-space: nowrap; }
}

/* CTA پروژه، نسخه استاندارد نهایی:
   hierarchy روشن، hit-area حداقل 48px، کپسول شیشه‌ای کنترل‌شده و مرکزچین. */
.shop-page-wrap.shop-home-view .procurement-project-cta {
  text-align: center;
}

.shop-page-wrap.shop-home-view .procurement-project-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 10px;
  width: min(100%, 290px);
  min-height: 56px;
  margin: 20px auto 0 !important;
  padding: 8px 12px 8px 15px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .68), rgba(226, 247, 244, .30)),
    rgba(255, 255, 255, .16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .90),
    0 9px 24px rgba(13, 115, 119, .14);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  color: #075e63 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: normal;
  transition: transform .22s cubic-bezier(.16, 1, .3, 1),
              box-shadow .22s ease,
              background .22s ease;
}

.shop-page-wrap.shop-home-view .procurement-project-link-copy {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 1px;
  justify-items: center;
  text-align: center !important;
}

.shop-page-wrap.shop-home-view .procurement-project-link-copy strong {
  color: inherit;
  font-size: .82rem;
  font-weight: 900;
  line-height: 1.45;
  white-space: nowrap;
}

.shop-page-wrap.shop-home-view .procurement-project-link-copy small {
  color: #497579;
  font-size: .66rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.shop-page-wrap.shop-home-view .procurement-project-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(7, 94, 99, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .52);
  color: #0d7377;
}

.shop-page-wrap.shop-home-view .procurement-project-link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(7, 94, 99, .08);
  color: #0d7377;
  font-size: 1rem;
  line-height: 1;
  transition: transform .22s cubic-bezier(.16, 1, .3, 1);
}

.shop-page-wrap.shop-home-view .procurement-project-link:hover,
.shop-page-wrap.shop-home-view .procurement-project-link:focus-visible {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .86), rgba(226, 247, 244, .52)),
    rgba(255, 255, 255, .22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .98),
    0 13px 28px rgba(13, 115, 119, .20);
  transform: translateY(-2px);
}

.shop-page-wrap.shop-home-view .procurement-project-link:hover .procurement-project-link-arrow,
.shop-page-wrap.shop-home-view .procurement-project-link:focus-visible .procurement-project-link-arrow {
  transform: translateX(-3px);
}

@media (max-width: 1024.98px) {
  .shop-page-wrap.shop-home-view .procurement-project-cta {
    align-items: center;
  }
}

/* Procurement box, mobile/tablet only:
   remove visual noise, preserve the requested title on one line, and reduce
   the action block without shrinking the 44px touch target. */
@media (max-width: 1024.98px) {
  .shop-page-wrap.shop-home-view .za-procurement-compact {
    padding: 9px 8px !important;
    gap: 8px !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .shop-procurement-copy {
    min-width: 0;
  }

  /* Search CTA is embedded in the field, not a second column. */
  .shop-page-wrap.shop-home-view .za-procurement-compact .za-proc-search-form {
    position: relative !important;
    display: block !important;
    height: 44px !important;
    margin-top: 6px !important;
    padding: 3px !important;
    border: 1px solid #d6e0e2 !important;
    border-radius: 11px !important;
    background: #f4f7f8 !important;
    box-sizing: border-box !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .za-proc-input-wrap {
    width: 100% !important;
    height: 100% !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .za-proc-search-form input {
    width: 100% !important;
    height: 100% !important;
    min-height: 36px !important;
    /* RTL: reserve the compact action button on the visual left. */
    padding-inline: 10px 104px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 16px !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .za-proc-search-form button {
    position: absolute !important;
    inset-inline-start: 3px !important;
    inset-inline-end: auto !important;
    inset-block: 3px !important;
    width: 94px !important;
    min-width: 94px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 7px !important;
    border-radius: 8px !important;
    font-size: .70rem !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    z-index: 1 !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .za-proc-search-form button .za-icon {
    width: 15px !important;
    height: 15px !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .procurement-primary {
    min-height: 44px !important;
    padding: 6px 8px !important;
    gap: 8px !important;
    border-radius: 12px !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .procurement-primary .procurement-text {
    min-width: 0;
    overflow: hidden;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .procurement-primary .procurement-text b {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap !important;
    font-size: clamp(.57rem, 2.05vw, .70rem) !important;
    letter-spacing: -.055em;
    line-height: 1.35 !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .procurement-primary .procurement-text small {
    display: none !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .procurement-icon {
    flex: 0 0 24px;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .procurement-icon .za-icon {
    width: 20px !important;
    height: 20px !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .procurement-arrow {
    flex: 0 0 24px;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .procurement-arrow .za-icon {
    width: 17px !important;
    height: 17px !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .procurement-facts {
    padding-top: 0 !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .procurement-project-cta {
    padding: 12px 10px !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .procurement-project-cta h3 {
    width: 100% !important;
    margin: 0 0 5px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: clip !important;
    font-size: clamp(.95rem, 3.8vw, 1.15rem) !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
  }

  .shop-page-wrap.shop-home-view .procurement-project-link,
  .shop-page-wrap.shop-home-view .procurement-project-link-copy,
  .shop-page-wrap.shop-home-view .procurement-project-link-copy strong {
    text-align: center !important;
  }

  .shop-page-wrap.shop-home-view .procurement-project-link-copy {
    justify-items: center !important;
  }
}

@media (max-width: 380px) {
  .shop-page-wrap.shop-home-view .procurement-project-link {
    gap: 7px;
    padding-inline: 9px 11px;
  }
  .shop-page-wrap.shop-home-view .procurement-project-link-copy strong {
    font-size: .76rem;
  }
  .shop-page-wrap.shop-home-view .procurement-project-link-copy small {
    font-size: .61rem;
  }
}

/* Search control final layout, mobile/tablet:
   two separate flex items, never an absolutely-positioned overlay. */
@media (max-width: 1024.98px) {
  .shop-page-wrap.shop-home-view .za-procurement-compact .za-proc-search-form {
    display: flex !important;
    flex-direction: row !important;
    direction: ltr !important;
    align-items: stretch !important;
    gap: 6px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 3px !important;
    margin-inline: 0 !important;
    border: 1px solid #d6e0e2 !important;
    border-radius: 11px !important;
    background: #f4f7f8 !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04) !important;
    overflow: visible !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .za-proc-search-form .za-proc-input-wrap {
    order: 2 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .za-proc-search-form input {
    width: 100% !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    direction: ltr !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: 0 !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .za-proc-search-form:focus-within {
    border-color: #0f766e !important;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .14) !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .za-proc-search-form #zaProcSubmitBtn {
    order: 1 !important;
    position: static !important;
    inset: auto !important;
    flex: 0 0 94px !important;
    width: 94px !important;
    min-width: 94px !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 7px !important;
    box-sizing: border-box !important;
    border: 0 !important;
    border-radius: 9px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .za-proc-search-form #zaProcSubmitBtn .za-icon {
    flex: 0 0 auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-page-wrap.shop-home-view .procurement-project-link,
  .shop-page-wrap.shop-home-view .procurement-project-link-arrow {
    transition: none;
  }
}

/* ── 9. حرکت کمتر برای کاربرانی که در سیستم‌عامل درخواست داده‌اند (WCAG 2.3.3) ─ */
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* Final procurement search geometry, mobile/tablet only:
   restore the compact button + wider search field proportions. Both controls
   share one exact height, while only the input wrapper owns the field border. */
@media (max-width: 1024.98px) {
  .shop-page-wrap.shop-home-view .za-procurement-compact .za-proc-head-inline {
    text-align: center !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact #procurementTitle {
    width: 100% !important;
    margin-inline: auto !important;
    text-align: center !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .za-proc-search-form {
    display: flex !important;
    align-items: stretch !important;
    gap: 6px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .za-proc-search-form .za-proc-input-wrap,
  .shop-page-wrap.shop-home-view .za-procurement-compact .za-proc-search-form #zaProcSubmitBtn {
    height: 44px !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .za-proc-search-form .za-proc-input-wrap {
    order: 2 !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 3px !important;
    /* حذف خط دور کادر: خود سطح روشن باکس باقی می‌ماند. */
    border: 0 !important;
    border-radius: 9px !important;
    background: #f4f7f8 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .za-proc-search-form input {
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 10px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .za-proc-search-form #zaProcSubmitBtn {
    order: 1 !important;
    position: static !important;
    inset: auto !important;
    flex: 0 0 94px !important;
    width: 94px !important;
    min-width: 94px !important;
    padding: 0 8px !important;
    border: 1px solid #0f766e !important;
    border-radius: 11px !important;
    background: #0f766e !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    font-size: clamp(.62rem, 2.2vw, .76rem) !important;
  }
}

/* Final no-line pass, mobile/tablet only:
   keep the light input surface, remove every outer outline/border. */
@media (max-width: 1024.98px) {
  .shop-page-wrap.shop-home-view .za-procurement-compact,
  .shop-page-wrap.shop-home-view .za-procurement-compact .shop-procurement-copy,
  .shop-page-wrap.shop-home-view .za-procurement-compact .za-proc-head-inline,
  .shop-page-wrap.shop-home-view .za-procurement-compact .za-proc-search-form,
  .shop-page-wrap.shop-home-view .za-procurement-compact .za-proc-input-wrap,
  .shop-page-wrap.shop-home-view .za-procurement-compact #procurementSku {
    border: 0 !important;
    outline: 0 !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .za-proc-search-form {
    background: transparent !important;
    box-shadow: none !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .za-proc-input-wrap {
    background: #f4f7f8 !important;
    box-shadow: none !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact #procurementSku {
    background: transparent !important;
    box-shadow: none !important;
  }
}

/* Desktop-only readability pass for the project CTA.
   Geometry is intentionally untouched: only type scale and contrast change. */
@media (min-width: 1025px) {
  /* Desktop triad: equal top modules, aligned captions underneath. */
  .shop-page-wrap.shop-home-view .za-procurement-compact {
    grid-template-rows: auto !important;
    align-items: start !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact > .shop-procurement-copy,
  .shop-page-wrap.shop-home-view .za-procurement-compact > .shop-procurement-paths,
  .shop-page-wrap.shop-home-view .za-procurement-compact > .procurement-project-cta {
    align-self: start !important;
    min-width: 0 !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact > .shop-procurement-copy {
    display: grid !important;
    grid-template-rows: 132px auto !important;
    gap: 12px !important;
    text-align: center !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact > .shop-procurement-copy .za-proc-head-inline {
    grid-row: 2 !important;
    align-self: start !important;
    order: 2 !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact > .shop-procurement-copy .za-proc-search-form {
    grid-row: 1 !important;
    align-self: start !important;
    order: 1 !important;
    width: 100% !important;
    height: 132px !important;
    box-sizing: border-box !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact > .shop-procurement-paths {
    display: grid !important;
    grid-template-rows: 132px auto !important;
    gap: 12px !important;
    text-align: center !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .procurement-primary {
    grid-row: 1 !important;
    height: 132px !important;
    min-height: 132px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .procurement-primary .procurement-text {
    display: none !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .procurement-primary-desktop-caption {
    grid-row: 2 !important;
    display: grid !important;
    gap: 3px !important;
    align-content: start !important;
    justify-items: center !important;
    text-align: center !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .procurement-primary-desktop-caption b {
    color: #102c3c !important;
    font-size: .92rem !important;
    line-height: 1.55 !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .procurement-primary-desktop-caption small {
    color: #365866 !important;
    font-size: .76rem !important;
    line-height: 1.6 !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact > .procurement-project-cta {
    display: grid !important;
    grid-template-rows: 132px auto !important;
    gap: 12px !important;
    align-content: start !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .procurement-project-cta::after {
    display: none !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .procurement-project-link {
    grid-row: 1 !important;
    align-self: start !important;
    width: 100% !important;
    height: 132px !important;
    min-height: 132px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .procurement-project-cta h3 {
    grid-row: 2 !important;
    margin: 0 !important;
    align-self: start !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .procurement-project-cta p {
    grid-row: 3 !important;
    margin: 3px 0 0 !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .procurement-facts {
    grid-row: 3 !important;
  }

  .procurement-primary-desktop-caption {
    display: none;
  }

  /* Desktop-only alignment pass for the complete procurement panel. */
  .shop-page-wrap.shop-home-view .za-procurement-compact .shop-procurement-copy,
  .shop-page-wrap.shop-home-view .za-procurement-compact .za-proc-head-inline,
  .shop-page-wrap.shop-home-view .za-procurement-compact .shop-procurement-paths,
  .shop-page-wrap.shop-home-view .za-procurement-compact .procurement-primary,
  .shop-page-wrap.shop-home-view .za-procurement-compact .procurement-facts,
  .shop-page-wrap.shop-home-view .za-procurement-compact .procurement-project-cta {
    text-align: center !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .za-proc-head-inline,
  .shop-page-wrap.shop-home-view .za-procurement-compact #procurementTitle {
    text-align: center !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .procurement-primary {
    justify-items: center !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .procurement-text,
  .shop-page-wrap.shop-home-view .za-procurement-compact .procurement-facts > span {
    text-align: center !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .procurement-text {
    justify-items: center !important;
  }

  .shop-page-wrap.shop-home-view .za-procurement-compact .procurement-search input {
    text-align: center !important;
  }

  .shop-page-wrap.shop-home-view .procurement-project-cta h3 {
    font-size: clamp(1.15rem, 1.35vw, 1.42rem) !important;
    line-height: 1.45 !important;
    font-weight: 900 !important;
    color: #102c3c !important;
    white-space: nowrap !important;
  }

  .shop-page-wrap.shop-home-view .procurement-project-cta p {
    font-size: .98rem !important;
    line-height: 1.9 !important;
    font-weight: 600 !important;
    color: #365866 !important;
  }

  .shop-page-wrap.shop-home-view .procurement-project-link {
    color: #f8fffe !important;
    background: #0d7377 !important;
    border-color: rgba(255, 255, 255, .78) !important;
  }

  .shop-page-wrap.shop-home-view .procurement-project-link-copy strong {
    color: #f8fffe !important;
    font-size: .98rem !important;
    line-height: 1.45 !important;
    font-weight: 900 !important;
  }

  .shop-page-wrap.shop-home-view .procurement-project-link-icon,
  .shop-page-wrap.shop-home-view .procurement-project-link-arrow {
    color: #075e63 !important;
    background: rgba(255, 255, 255, .82) !important;
  }
}

/* ── 10. چاپ پیش‌فاکتور/سبد: حذف لایه‌های شناور ─────────────────────────────── */
@media print {
  .shop-mobile-nav, #zaStickyBuy, #zaChatWidget, .za-cart-drawer, .shop-filters { display: none !important; }
}
