/* === ADF/WCI v12 no-initial-flash dark-mode sync ===
   فقط هنگام تغییر حالت شب/روز، انیمیشن‌ها و ترنزیشن‌ها را موقتاً خاموش می‌کند تا اطراف فیلتر/کارت‌ها چشمک نزنند. */
html.adf-theme-switching,
html.adf-theme-switching body{
  scroll-behavior:auto !important;
}
html.adf-theme-switching .wci-album-outer,
html.adf-theme-switching .wci-album-outer *,
html.adf-theme-switching .wci-album-outer *::before,
html.adf-theme-switching .wci-album-outer *::after,
html.adf-wci-theme-switching .wci-album-outer,
html.adf-wci-theme-switching .wci-album-outer *,
html.adf-wci-theme-switching .wci-album-outer *::before,
html.adf-wci-theme-switching .wci-album-outer *::after{
  transition:none !important;
  animation:none !important;
  animation-duration:0s !important;
  animation-delay:0s !important;
  transition-duration:0s !important;
  transition-delay:0s !important;
}
html.adf-theme-switching .wci-album-outer,
html.adf-wci-theme-switching .wci-album-outer{
  isolation:isolate !important;
  contain:paint !important;
  transform:translateZ(0) !important;
  backface-visibility:hidden !important;
  -webkit-font-smoothing:antialiased !important;
}
html.adf-theme-switching .wci-album-sidebar,
html.adf-theme-switching .wci-filter-menu-details,
html.adf-theme-switching .wci-filter-menu,
html.adf-theme-switching .wci-filter-menu-body,
html.adf-wci-theme-switching .wci-album-sidebar,
html.adf-wci-theme-switching .wci-filter-menu-details,
html.adf-wci-theme-switching .wci-filter-menu,
html.adf-wci-theme-switching .wci-filter-menu-body{
  transform:translateZ(0) !important;
  backface-visibility:hidden !important;
  will-change:auto !important;
}
/* برای دکمه‌های ثابت کنار صفحه هم هنگام سوییچ، چشمک ناشی از transition/filter خاموش شود. */
html.adf-theme-switching :where(.tmcpt-phone,.tmcpt-badge,.wcpt-eta,.wcpt-badge,.call-now-button,.call-btn,.floating-phone,.float-phone,.sticky-phone),
html.adf-theme-switching :where(.tmcpt-phone,.tmcpt-badge,.wcpt-eta,.wcpt-badge,.call-now-button,.call-btn,.floating-phone,.float-phone,.sticky-phone) *,
html.adf-wci-theme-switching :where(.tmcpt-phone,.tmcpt-badge,.wcpt-eta,.wcpt-badge,.call-now-button,.call-btn,.floating-phone,.float-phone,.sticky-phone),
html.adf-wci-theme-switching :where(.tmcpt-phone,.tmcpt-badge,.wcpt-eta,.wcpt-badge,.call-now-button,.call-btn,.floating-phone,.float-phone,.sticky-phone) *{
  transition:none !important;
  animation:none !important;
  filter:none !important;
  mix-blend-mode:normal !important;
}

/* حالت روز امن */
.wci-album-outer.wci-mode-light,
.wci-album-outer.wci-mode-light .wci-album-box,
.wci-album-outer.wci-mode-light .wci-album-wrap,
.wci-album-outer.wci-mode-light .wci-album-main{
  color-scheme:light !important;
  filter:none !important;
  opacity:1 !important;
  mix-blend-mode:normal !important;
}
.wci-album-outer.wci-mode-light .wci-card,
.wci-album-outer.wci-mode-light .wci-item,
.wci-album-outer.wci-mode-light .wci-body,
.wci-album-outer.wci-mode-light .wci-thumb,
.wci-album-outer.wci-mode-light .wci-thumb img,
.wci-album-outer.wci-mode-light img.wci-img{
  filter:none !important;
  opacity:1 !important;
  mix-blend-mode:normal !important;
}
.wci-album-outer.wci-mode-light .wci-title,
.wci-album-outer.wci-mode-light .wci-title a,
.wci-album-outer.wci-mode-light .wci-album-head-title,
.wci-album-outer.wci-mode-light .wci-filter-menu-title,
.wci-album-outer.wci-mode-light .wci-filter-menu-current{
  color:#0f172a !important;
  -webkit-text-fill-color:#0f172a !important;
  text-shadow:none !important;
}
.wci-album-outer.wci-mode-light .wci-desc,
.wci-album-outer.wci-mode-light .wci-album-head-sub,
.wci-album-outer.wci-mode-light .wci-pagination-hint{
  color:#475569 !important;
  -webkit-text-fill-color:#475569 !important;
  text-shadow:none !important;
}
.wci-album-outer.wci-mode-light .wci-code{
  background:#ecfeff !important;
  color:#0f766e !important;
  -webkit-text-fill-color:#0f766e !important;
  border-color:#99f6e4 !important;
}
.wci-album-outer.wci-mode-light .wci-album-sidebar,
.wci-album-outer.wci-mode-light .wci-filter-menu,
.wci-album-outer.wci-mode-light .wci-filter-menu-body{
  background:#ffffff !important;
  color:#0f172a !important;
  -webkit-text-fill-color:initial !important;
  border-color:#e2e8f0 !important;
  filter:none !important;
  opacity:1 !important;
  mix-blend-mode:normal !important;
}
.wci-album-outer.wci-mode-light .wci-filter-search-inner{
  background:#ffffff !important;
  color:#0f172a !important;
  border-color:#e2e8f0 !important;
}
.wci-album-outer.wci-mode-light .wci-filter-search-input{
  background:transparent !important;
  color:#0f172a !important;
  -webkit-text-fill-color:#0f172a !important;
}
.wci-album-outer.wci-mode-light .wci-filter-search-input::placeholder{
  color:#94a3b8 !important;
  -webkit-text-fill-color:#94a3b8 !important;
}
.wci-album-outer.wci-mode-light .wci-filter,
.wci-album-outer.wci-mode-light .wci-filter-leaf,
.wci-album-outer.wci-mode-light .wci-filter-search-clear,
.wci-album-outer.wci-mode-light .wci-empty,
.wci-album-outer.wci-mode-light .wci-pagination a,
.wci-album-outer.wci-mode-light .wci-pagination span,
.wci-album-outer.wci-mode-light .wci-pagination .page-numbers{
  background:#ffffff !important;
  color:#0f172a !important;
  -webkit-text-fill-color:#0f172a !important;
  border-color:#e5e7eb !important;
  filter:none !important;
  opacity:1 !important;
  mix-blend-mode:normal !important;
}
.wci-album-outer.wci-mode-light .wci-filter-count{
  background:#f1f5f9 !important;
  color:#0f172a !important;
  -webkit-text-fill-color:#0f172a !important;
  border-color:#e2e8f0 !important;
}
.wci-album-outer.wci-mode-light .wci-filter.is-active,
.wci-album-outer.wci-mode-light .wci-filter-all.is-active{
  background:#0f172a !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  border-color:#0f172a !important;
}
.wci-album-outer.wci-mode-light .wci-filter.is-active .wci-filter-count,
.wci-album-outer.wci-mode-light .wci-filter-all.is-active .wci-filter-count{
  background:rgba(255,255,255,.20) !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}

/* حالت شب امن */
.wci-album-outer.wci-mode-dark,
.wci-album-outer.wci-mode-dark .wci-album-box,
.wci-album-outer.wci-mode-dark .wci-album-wrap,
.wci-album-outer.wci-mode-dark .wci-album-main{color-scheme:dark !important;}
.wci-album-outer.wci-mode-dark .wci-album-box,
.wci-album-outer.wci-mode-dark .wci-album-wrap,
.wci-album-outer.wci-mode-dark .wci-album-main{background:#07111f !important;color:#e5edf7 !important;border-color:rgba(148,163,184,.24) !important;}
.wci-album-outer.wci-mode-dark .wci-card,
.wci-album-outer.wci-mode-dark .wci-item{background:#0f172a !important;color:#e5edf7 !important;border-color:rgba(148,163,184,.28) !important;box-shadow:0 18px 42px rgba(0,0,0,.38) !important;filter:none !important;opacity:1 !important;mix-blend-mode:normal !important;}
.wci-album-outer.wci-mode-dark .wci-thumb{background:#111827 !important;border-color:rgba(148,163,184,.22) !important;filter:none !important;opacity:1 !important;mix-blend-mode:normal !important;}
.wci-album-outer.wci-mode-dark .wci-thumb img,
.wci-album-outer.wci-mode-dark img.wci-img{filter:none !important;opacity:1 !important;mix-blend-mode:normal !important;}
.wci-album-outer.wci-mode-dark .wci-body{background:transparent !important;color:#e5edf7 !important;}
.wci-album-outer.wci-mode-dark .wci-title,
.wci-album-outer.wci-mode-dark .wci-title a,
.wci-album-outer.wci-mode-dark .wci-album-head-title,
.wci-album-outer.wci-mode-dark .wci-filter-menu-title,
.wci-album-outer.wci-mode-dark .wci-filter-menu-current{color:#f8fafc !important;-webkit-text-fill-color:#f8fafc !important;background-image:none !important;text-shadow:none !important;}
.wci-album-outer.wci-mode-dark .wci-desc,
.wci-album-outer.wci-mode-dark .wci-album-head-sub,
.wci-album-outer.wci-mode-dark .wci-pagination-hint{color:#cbd5e1 !important;-webkit-text-fill-color:#cbd5e1 !important;text-shadow:none !important;}
.wci-album-outer.wci-mode-dark .wci-code{background:rgba(45,212,191,.12) !important;color:#99f6e4 !important;-webkit-text-fill-color:#99f6e4 !important;border-color:rgba(45,212,191,.20) !important;}
.wci-album-outer.wci-mode-dark .wci-price{color:#fbbf24 !important;-webkit-text-fill-color:#fbbf24 !important;}
.wci-album-outer.wci-mode-dark .wci-album-sidebar,
.wci-album-outer.wci-mode-dark .wci-filter-menu,
.wci-album-outer.wci-mode-dark .wci-filter-menu-body{background:#0b1220 !important;color:#e5edf7 !important;border-color:rgba(148,163,184,.26) !important;box-shadow:0 18px 48px rgba(0,0,0,.42) !important;}
.wci-album-outer.wci-mode-dark .wci-filter-search-inner,
.wci-album-outer.wci-mode-dark .wci-filter-search-input{background:#111827 !important;color:#e5edf7 !important;-webkit-text-fill-color:#e5edf7 !important;border-color:rgba(148,163,184,.30) !important;}
.wci-album-outer.wci-mode-dark .wci-filter-search-input::placeholder{color:#94a3b8 !important;-webkit-text-fill-color:#94a3b8 !important;}
.wci-album-outer.wci-mode-dark .wci-filter-search-submit{background:#f59e0b !important;color:#111827 !important;-webkit-text-fill-color:#111827 !important;border-color:#f59e0b !important;}
.wci-album-outer.wci-mode-dark .wci-filter,
.wci-album-outer.wci-mode-dark .wci-filter-leaf,
.wci-album-outer.wci-mode-dark .wci-filter-search-clear,
.wci-album-outer.wci-mode-dark .wci-empty{background:#111827 !important;color:#e5edf7 !important;-webkit-text-fill-color:#e5edf7 !important;border-color:rgba(148,163,184,.28) !important;box-shadow:none !important;}
.wci-album-outer.wci-mode-dark .wci-filter.is-active,
.wci-album-outer.wci-mode-dark .wci-filter-all.is-active{background:linear-gradient(135deg,#f59e0b,#d97706) !important;color:#111827 !important;-webkit-text-fill-color:#111827 !important;border-color:rgba(251,191,36,.75) !important;}
.wci-album-outer.wci-mode-dark .wci-filter-count,
.wci-album-outer.wci-mode-dark .wci-pagination a,
.wci-album-outer.wci-mode-dark .wci-pagination span,
.wci-album-outer.wci-mode-dark .wci-pagination .page-numbers{background:#0f172a !important;color:#e5edf7 !important;-webkit-text-fill-color:#e5edf7 !important;border-color:rgba(148,163,184,.28) !important;}
.wci-album-outer.wci-mode-dark .wci-pagination .current,
.wci-album-outer.wci-mode-dark .wci-pagination [aria-current="page"]{background:#0f766e !important;color:#ffffff !important;-webkit-text-fill-color:#ffffff !important;border-color:#14b8a6 !important;}


/* === ADF/WCI v12: light-mode header contrast + first-load no-flicker === */
html.adf-prepaint .wci-album-outer,
html.adf-prepaint .wci-album-outer *,
html.adf-prepaint .wci-album-outer *::before,
html.adf-prepaint .wci-album-outer *::after{transition:none!important;animation:none!important;animation-duration:0s!important;animation-delay:0s!important;}
.wci-album-outer .wci-album-box.wci-layout-11 .wci-album-header .wci-album-head-title,
.wci-album-outer .wci-album-box.wci-layout-11 .wci-album-header .wci-album-head-title *,
.wci-album-outer.wci-mode-light .wci-album-box.wci-layout-11 .wci-album-header .wci-album-head-title,
.wci-album-outer.wci-mode-light .wci-album-box.wci-layout-11 .wci-album-header .wci-album-head-title *{color:#ffffff!important;-webkit-text-fill-color:#ffffff!important;text-shadow:none!important;filter:none!important;mix-blend-mode:normal!important;}
.wci-album-outer .wci-album-box.wci-layout-11 .wci-album-header .wci-album-head-sub,
.wci-album-outer .wci-album-box.wci-layout-11 .wci-album-header .wci-album-head-sub *,
.wci-album-outer.wci-mode-light .wci-album-box.wci-layout-11 .wci-album-header .wci-album-head-sub,
.wci-album-outer.wci-mode-light .wci-album-box.wci-layout-11 .wci-album-header .wci-album-head-sub *{color:rgba(255,255,255,.78)!important;-webkit-text-fill-color:rgba(255,255,255,.78)!important;text-shadow:none!important;filter:none!important;mix-blend-mode:normal!important;}
