/* نقره‌خانه — کارت یکدست + سایدبار + محصول + auth + toast */

/* جلوگیری از پرش صفحه وقتی منو/فیلتر (offcanvas) یا مودال باز می‌شود */
html {
  scrollbar-gutter: stable;
}
body.modal-open,
body:has(.offcanvas.show),
body:has(.offcanvas.showing) {
  padding-right: 0 !important;
  padding-left: 0 !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}
/* بوت‌استرپ روی المان‌های fixed هم padding اینلاین می‌گذارد */
.header-area,
#headerArea,
.internet-connection-status {
  padding-right: 0 !important;
  padding-left: 0 !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}
.footer-nav-area:not(.nav-glass-tabbar),
.nav-glass-tabbar:not(.footer-nav-area) {
  padding-right: 0 !important;
  padding-left: 0 !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

/* منو/فیلتر باید بالای هدر (z-index: 1500) بیایند */
.suha-offcanvas-wrap.offcanvas,
.suha-filter-offcanvas-wrap.offcanvas,
.offcanvas.show,
.offcanvas.showing {
  z-index: 1620 !important;
}
.offcanvas-backdrop {
  z-index: 1600 !important;
}

/* ========== کارت محصول یکدست ========== */
.product-card--uniform {
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 15, 40, 0.06);
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card--uniform:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15, 15, 40, 0.1);
}
.product-card--uniform .card-body {
  padding: 0 0 3rem;
  min-height: 100%;
  position: relative;
}
.product-card--uniform .badge {
  position: absolute;
  top: .85rem;
  right: .85rem;
  z-index: 5;
  margin: 0;
}
.product-card--uniform > .card-body > .wishlist-btn,
.product-card--uniform .wishlist-form {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 10;
  margin: 0;
}
.product-card--uniform .wishlist-form .wishlist-btn,
.product-card .wishlist-btn {
  position: static;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #9aa3b5 !important;
  font-size: 0.95rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(15, 20, 40, 0.1);
  transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.product-card--uniform .wishlist-form .wishlist-btn:hover,
.product-card .wishlist-btn:hover,
.product-card .wishlist-btn:focus {
  transform: scale(1.06);
  color: #e11d48 !important;
  background: #fff !important;
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.18);
}
.product-card--uniform .wishlist-form .wishlist-btn.is-active,
.product-card .wishlist-btn.is-active {
  color: #e11d48 !important;
  background: rgba(255, 241, 244, 0.96) !important;
  border-color: rgba(225, 29, 72, 0.22) !important;
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.16);
}
.product-card--uniform .wishlist-form .wishlist-btn.is-active i,
.product-card .wishlist-btn.is-active i {
  animation: wl-pop 0.28s ease;
}
@keyframes wl-pop {
  0% { transform: scale(0.85); }
  55% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.wishlist-round {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(15, 20, 40, 0.08);
  background: rgba(255, 255, 255, 0.85);
  color: #9aa3b5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.wishlist-round:hover { color: #e11d48; transform: scale(1.05); }
.wishlist-round.is-active {
  color: #e11d48 !important;
  background: rgba(225, 29, 72, 0.1);
  border-color: rgba(225, 29, 72, 0.2);
}

html[theme-color="dark"] .product-card--uniform .wishlist-form .wishlist-btn,
html[theme-color="dark"] .product-card .wishlist-btn {
  background: rgba(18, 22, 42, 0.78) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #a8b0c4 !important;
}
html[theme-color="dark"] .product-card--uniform .wishlist-form .wishlist-btn.is-active,
html[theme-color="dark"] .product-card .wishlist-btn.is-active {
  color: #fb7185 !important;
  background: rgba(225, 29, 72, 0.18) !important;
}
html[theme-color="dark"] .wishlist-round {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #a8b0c4;
}
.product-card--uniform .product-thumbnail {
  display: block;
  margin: 0;
}
.product-card--uniform .product-thumb-frame {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 0 .75rem;
  padding: 0;
  background: linear-gradient(180deg, #f4f6ff 0%, #eef1fb 100%);
  border-radius: 0;
  overflow: hidden;
}
.product-card--uniform .product-thumbnail img,
.product-card--uniform .product-thumb-frame img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  max-width: none;
  max-height: none;
  height: 100% !important;
  object-fit: cover;
  margin: 0;
  display: block;
}
.product-card--uniform .product-title {
  min-height: 2.4em;
  line-height: 1.2;
  margin: 0 1rem .35rem !important;
  font-size: .95rem;
  font-weight: 600;
}
.product-card--uniform .product-meta {
  font-size: 12px;
  color: #747794;
  line-height: 1.2;
  margin-inline: 1rem;
}
.product-card--uniform .sale-price {
  font-size: 1rem;
  font-weight: 700;
  color: #100DD1;
  margin: 0 1rem .35rem;
}
.product-card--uniform .product-rating {
  min-height: 14px;
  margin-inline: 1rem;
}
.product-card--uniform .add-cart-form { margin: 0; }
.product-card--uniform .add-cart-form .btn {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 5;
}

.top-products-area .row > [class*="col-"],
.shop-products-area .row > [class*="col-"] {
  display: flex;
}
.top-products-area .product-card,
.related-product-slide .product-card {
  width: 100%;
}
.related-product-slide .product-card--uniform .product-thumb-frame {
  height: auto;
  aspect-ratio: 1 / 1;
}
.related-product-slide .product-card--uniform .product-thumb-frame img {
  max-height: none;
}

/* ========== پیشنهاد ویژه — کارت بزرگ‌تر، متن فشرده‌تر ========== */
.flash-sale-slide .owl-item {
  display: flex;
}
.flash-sale-card--uniform {
  border: 0;
  border-radius: 1.15rem;
  overflow: hidden;
  width: 100%;
  box-shadow: 0 6px 20px rgba(15, 15, 40, 0.07);
  background: var(--card, #fff);
  transition: transform .2s ease, box-shadow .2s ease;
}
.flash-sale-card--uniform:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 15, 40, 0.12);
}
.flash-sale-card--uniform .card-body {
  padding: .85rem .9rem 1rem;
  height: 100%;
}
.flash-sale-link {
  text-decoration: none;
  color: inherit;
  min-height: 268px;
}
.flash-sale-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 132px;
  margin-bottom: .55rem;
  border-radius: .9rem;
  background: linear-gradient(180deg, #fff7f0 0%, #fff1e8 100%);
  overflow: hidden;
}
.flash-sale-card--uniform img {
  height: auto !important;
  max-height: 108px;
  width: auto !important;
  max-width: 82%;
  object-fit: contain;
  margin: 0;
  display: block;
}
.flash-sale-card--uniform .product-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.15em;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: .3rem;
  color: var(--text, #020310);
  word-break: break-word;
}
.flash-sale-card--uniform .sale-price {
  font-size: .82rem;
  font-weight: 700;
  color: var(--danger, #ea4c62);
  margin-bottom: .2rem !important;
}
.flash-sale-card--uniform .progress-title {
  font-size: .65rem;
  color: var(--muted, #747794);
  display: block;
  margin-bottom: .4rem;
  line-height: 1.3;
}
.flash-sale-card--uniform .progress {
  height: 4px;
  border-radius: 50rem;
  background: #f1f2f8;
}
.flash-sale-card--uniform .progress-bar {
  background: linear-gradient(90deg, #ea4c62, #ff8a5b);
  border-radius: 50rem;
}

.collection-card {
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
}
.collection-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.catagory-card {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 4px 14px rgba(15, 15, 40, 0.05);
}
.catagory-card .card-body {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.catagory-card a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  text-align: center;
}
.catagory-card img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* ========== Toast ========== */
.noghreh-toast-container {
  z-index: 2400 !important;
  position: fixed !important;
  top: calc(4.25rem + env(safe-area-inset-top, 0px)) !important;
  bottom: auto !important;
  left: 0.85rem !important;
  right: 0.85rem !important;
  inset-inline: 0.85rem !important;
  transform: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none;
  display: flex !important;
  flex-direction: column;
  gap: 0.55rem;
  align-items: stretch;
}
@media (min-width: 992px) {
  .noghreh-toast-container {
    top: 5.25rem !important;
    left: auto !important;
    right: 1.25rem !important;
    inset-inline: auto !important;
    width: min(380px, calc(100vw - 2rem)) !important;
    align-items: stretch;
  }
}
.noghreh-toast {
  pointer-events: auto;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 1.05rem !important;
  overflow: hidden;
  margin: 0 !important;
  width: 100%;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.86) !important;
  color: var(--text, #1d2433) !important;
  box-shadow:
    0 16px 36px rgba(15, 20, 40, 0.14),
    0 0 0 1px rgba(15, 20, 40, 0.04);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  animation: noghrehToastIn 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.noghreh-toast.is-hiding {
  animation: noghrehToastOut 0.28s ease forwards;
}
.noghreh-toast .toast-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem 0.95rem;
  min-height: 3.4rem;
}
.noghreh-toast .toast-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.05rem;
  background: rgba(var(--brand-rgb, 16, 13, 209), 0.12);
  color: var(--brand, #100DD1);
}
.noghreh-toast.is-success .toast-icon {
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
}
.noghreh-toast.is-danger .toast-icon,
.noghreh-toast.is-error .toast-icon {
  background: rgba(225, 29, 72, 0.12);
  color: #e11d48;
}
.noghreh-toast.is-warning .toast-icon {
  background: rgba(245, 158, 11, 0.16);
  color: #d97706;
}
.noghreh-toast.is-info .toast-icon {
  background: rgba(59, 130, 246, 0.14);
  color: #2563eb;
}
.noghreh-toast .toast-copy {
  flex: 1;
  min-width: 0;
}
.noghreh-toast .toast-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.1rem;
  color: var(--muted, #747794);
}
.noghreh-toast .toast-msg {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text, #1d2433);
}
.noghreh-toast .toast-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  background: rgba(15, 20, 40, 0.05);
  color: var(--muted, #747794);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  opacity: 0.85;
}
.noghreh-toast .toast-close:hover {
  opacity: 1;
  background: rgba(15, 20, 40, 0.09);
  color: var(--text);
}
.noghreh-toast .toast-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(15, 20, 40, 0.06);
  overflow: hidden;
}
.noghreh-toast .toast-progress > i {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: right center;
  background: var(--brand, #100DD1);
  animation: noghrehToastBar linear forwards;
}
.noghreh-toast.is-success .toast-progress > i { background: #10b981; }
.noghreh-toast.is-danger .toast-progress > i,
.noghreh-toast.is-error .toast-progress > i { background: #e11d48; }
.noghreh-toast.is-warning .toast-progress > i { background: #f59e0b; }
.noghreh-toast.is-info .toast-progress > i { background: #3b82f6; }

html[theme-color="dark"] .noghreh-toast {
  background: rgba(18, 22, 42, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--text) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
html[theme-color="dark"] .noghreh-toast .toast-msg { color: var(--text); }
html[theme-color="dark"] .noghreh-toast .toast-close {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}
html[theme-color="dark"] .noghreh-toast .toast-progress {
  background: rgba(255, 255, 255, 0.06);
}

@keyframes noghrehToastIn {
  from { opacity: 0; transform: translateY(-14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes noghrehToastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-8px) scale(0.97); }
}
@keyframes noghrehToastBar {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* ========== جستجوی حرفه‌ای ========== */
.search-form--pro {
  gap: .65rem;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}
.search-form--pro .live-search-form {
  position: relative;
  flex: 1 1 auto !important;
  max-width: none !important;
  width: auto !important;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 6px 22px rgba(16, 13, 209, 0.08);
  border: 1px solid rgba(16, 13, 209, 0.08);
  overflow: visible;
  transition: box-shadow .2s, border-color .2s;
}
.search-form--pro .live-search-form:focus-within {
  border-color: rgba(16, 13, 209, 0.35);
  box-shadow: 0 10px 28px rgba(16, 13, 209, 0.14);
}
.search-form--pro .search-leading-icon {
  position: absolute;
  right: 1rem;
  color: #100DD1;
  font-size: .95rem;
  z-index: 2;
  pointer-events: none;
}
.search-form--pro .live-search-input {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  height: 52px !important;
  padding: .75rem 2.75rem .75rem 3.2rem !important;
  font-size: .95rem !important;
  border-radius: 1rem !important;
  color: #020310 !important;
}
.search-form--pro .live-search-form > button {
  position: absolute !important;
  left: .45rem !important;
  right: auto !important;
  top: 50% !important;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50% !important;
  background: #100DD1 !important;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  margin: 0 !important;
}
.search-form--pro .alternative-search-options .btn {
  width: 52px;
  height: 52px;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.live-search-wrap {
  position: relative;
  z-index: 40;
  overflow: visible !important;
}
.live-search-wrap form,
.live-search-form {
  position: relative;
  z-index: 40;
  overflow: visible !important;
}
.live-search-wrap:focus-within,
.live-search-form:focus-within {
  z-index: 1600;
}
.live-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(var(--brand-rgb, 16, 13, 209), 0.12);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 20, 40, 0.16);
  overflow: hidden;
  max-height: min(340px, 55vh);
  overflow-y: auto;
  z-index: 1600;
}
.header-area,
.header-area > .container,
.header-search {
  overflow: visible !important;
}
.header-area .live-search-wrap,
.header-area .live-search-form,
.header-area .live-search-dropdown {
  z-index: 1600;
}
html[theme-color="dark"] .live-search-dropdown {
  background: rgba(18, 22, 42, 0.96);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
html[theme-color="dark"] .live-search-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
html[theme-color="dark"] .live-search-item-body strong {
  color: var(--text, #f3f4f8);
}
html[theme-color="dark"] .live-search-item-body em {
  color: #c7d2fe;
}
.live-search-item {
  display: flex;
  gap: .75rem;
  align-items: center;
  padding: .75rem .95rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f0f0f5;
}
.live-search-item:hover { background: #f7f8ff; }
.live-search-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: #f4f5fb;
}
.live-search-item-body { display: flex; flex-direction: column; min-width: 0; }
.live-search-item-body strong {
  font-size: .9rem;
  color: #020310;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-search-item-body span { font-size: 11px; color: #747794; }
.live-search-item-body em { font-style: normal; color: #100DD1; font-size: .85rem; font-weight: 600; }
.live-search-empty { padding: 1rem; text-align: center; color: #747794; }

.order-plus-minus .quantity-button-handler {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  background: #fff;
  border-radius: 50%;
}
.order-plus-minus {
  background: #f1f2f8;
  border-radius: 50rem;
  padding: 2px;
}
.cart-quantity-input {
  width: 48px;
  border: 0;
  background: transparent;
  text-align: center;
  box-shadow: none !important;
}

/* ========== سایدبار منو (موبایل + دسکتاپ) ========== */
.suha-offcanvas-wrap {
  border: 0;
}
.suha-offcanvas-wrap .offcanvas-body {
  padding-top: 0;
}
@media (min-width: 992px) {
  .suha-offcanvas-wrap.offcanvas {
    --bs-offcanvas-width: 320px;
  }
  .suha-offcanvas-wrap .sidenav-profile {
    padding-top: 2rem;
  }
}

/* ========== صفحه محصول حرفه‌ای ========== */
.product-detail-page.pd-pro {
  --pd-ink: #121826;
  --pd-muted: #667085;
  --pd-line: #e8ebf3;
  --pd-card: #ffffff;
  --pd-accent: #100DD1;
  --pd-warm: #fff4e8;
}
.pd-breadcrumb {
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--pd-muted);
}
.pd-breadcrumb a { color: var(--pd-muted); text-decoration: none; }
.pd-breadcrumb a:hover { color: var(--pd-accent); }
.pd-breadcrumb em { font-style: normal; color: var(--pd-ink); font-weight: 600; }

.pd-gallery--pro,
.pd-buybox,
.pd-panel--pro {
  background: var(--pd-card);
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(18, 24, 38, 0.06);
  border: 1px solid rgba(16, 13, 209, 0.04);
}
.pd-gallery--pro {
  position: relative;
  padding: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pd-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  background: #f5c518;
  color: #121826;
  font-size: .75rem;
  font-weight: 700;
  padding: .35rem .7rem;
  border-radius: 50rem;
}
.pd-type-ribbon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  background: rgba(18, 24, 38, 0.82);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: .35rem .7rem;
  border-radius: 50rem;
}
.pd-type-ribbon--melted { background: linear-gradient(135deg, #c2410c, #ea580c); }
.pd-type-ribbon--bar { background: linear-gradient(135deg, #334155, #64748b); }
.pd-type-ribbon--jewelry { background: linear-gradient(135deg, #100DD1, #4f46e5); }

.pd-gallery-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.9), transparent 45%),
    linear-gradient(160deg, #f8f9fd 0%, #eef1f8 100%);
  border-radius: 1rem;
  overflow: hidden;
}
.pd-gallery-main img {
  max-width: 92%;
  max-height: 280px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.pd-gallery-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .75rem;
}
.pd-gallery-trust span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #f5f7fc;
  color: #3f4a63;
  font-size: .78rem;
  font-weight: 600;
  padding: .4rem .7rem;
  border-radius: 50rem;
}
.pd-gallery-trust i { color: var(--pd-accent); }
.pd-gallery-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem;
  margin-top: .75rem;
}
.pd-gallery-facts > div {
  background: #f5f7fc;
  border-radius: .75rem;
  padding: .55rem .7rem;
}
.pd-gallery-facts span {
  display: block;
  font-size: .7rem;
  color: var(--pd-muted);
}
.pd-gallery-facts strong {
  color: var(--pd-ink);
  font-size: .9rem;
}

.pd-buybox { padding: 1.35rem 1.4rem 1.25rem; }
.pd-buybox-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.pd-chip {
  display: inline-block;
  background: #eef0ff;
  color: var(--pd-accent);
  font-size: .75rem;
  font-weight: 700;
  padding: .28rem .7rem;
  border-radius: 50rem;
  margin-bottom: .45rem;
}
.pd-chip--melted { background: #fff1e8; color: #c2410c; }
.pd-chip--bar { background: #eef2f7; color: #334155; }
.pd-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--pd-ink);
  margin: 0 0 .55rem;
  line-height: 1.35;
}
.pd-rating-inline {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
  color: var(--pd-muted);
  font-size: .82rem;
}
.pd-rating-inline .stars { color: #f5c518; }
.pd-stock-pill {
  background: #ecfdf3;
  color: #027a48;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 50rem;
  font-size: .75rem;
}
.pd-stock-pill.is-low { background: #fff4ed; color: #c2410c; }

.pd-price-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #f7f8ff 0%, #eef1ff 100%);
  border: 1px solid rgba(16, 13, 209, 0.08);
  margin-bottom: 1rem;
}
.pd-price-label {
  font-size: .78rem;
  color: var(--pd-muted);
  margin-bottom: .2rem;
}
.pd-price {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--pd-accent);
  line-height: 1.15;
}
.pd-price small {
  font-size: .9rem;
  font-weight: 600;
  color: var(--pd-muted);
}
.pd-price-note {
  font-size: .8rem;
  color: var(--pd-muted);
  margin-top: .25rem;
}
.pd-lock-mini {
  display: flex;
  gap: .55rem;
  align-items: center;
  background: var(--pd-warm);
  border-radius: .85rem;
  padding: .65rem .75rem;
  min-width: 150px;
}
.pd-lock-mini i { color: #c2410c; }
.pd-lock-mini strong {
  display: block;
  font-size: .82rem;
  color: var(--pd-ink);
}
.pd-lock-mini span {
  display: block;
  font-size: .72rem;
  color: var(--pd-muted);
}

.pd-specs--pro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin-bottom: 1.1rem;
}
.pd-specs--pro > div {
  background: #f6f7fc;
  border-radius: .85rem;
  padding: .7rem .8rem;
}
.pd-specs--pro span {
  display: block;
  font-size: .72rem;
  color: var(--pd-muted);
  margin-bottom: .15rem;
}
.pd-specs--pro strong {
  color: var(--pd-ink);
  font-size: .95rem;
}

.pd-weight-box {
  background: #fbfbfd;
  border: 1px solid var(--pd-line);
  border-radius: 1rem;
  padding: .9rem;
  margin-bottom: 1rem;
}
.pd-variant-box {
  background: #fbfbfd;
  border: 1px solid var(--pd-line);
  border-radius: 1rem;
  padding: .9rem;
  margin-bottom: 1rem;
}
.pd-variant-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: .55rem;
}
.pd-variant-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .2rem;
  padding: .75rem .85rem;
  border-radius: .9rem;
  border: 1.5px solid var(--pd-line);
  background: #fff;
  color: var(--pd-ink);
  text-align: start;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.pd-variant-chip strong {
  font-size: .95rem;
  font-weight: 800;
}
.pd-variant-chip span {
  font-size: .78rem;
  color: var(--pd-muted);
}
.pd-variant-chip:hover:not(:disabled) {
  border-color: rgba(var(--brand-rgb, 16, 13, 209), .45);
  transform: translateY(-1px);
}
.pd-variant-chip.is-active {
  border-color: var(--brand, #100dd1);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb, 16, 13, 209), .12);
  background: rgba(var(--brand-rgb, 16, 13, 209), .04);
}
.pd-variant-chip:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.pd-weight-hint { font-size: .78rem; color: var(--pd-muted); }
.pd-weight-controls {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: .5rem;
  margin-bottom: .65rem;
}
.pd-w-btn {
  height: 48px;
  border: 0;
  border-radius: .75rem;
  background: #eef0f8;
  color: var(--pd-ink);
  font-size: 1.35rem;
  font-weight: 700;
}
.pd-weight-controls .form-control {
  height: 48px;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: .75rem;
  direction: ltr;
}
.pd-weight-presets {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.pd-weight-presets button {
  border: 1px solid var(--pd-line);
  background: #fff;
  border-radius: 50rem;
  padding: .35rem .7rem;
  font-size: .8rem;
  font-weight: 600;
  color: #3f4a63;
}
.pd-weight-presets button:hover {
  border-color: var(--pd-accent);
  color: var(--pd-accent);
}

.pd-actions {
  display: flex;
  gap: .65rem;
  align-items: stretch;
  flex-wrap: nowrap;
}
.pd-qty.order-plus-minus {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0;
  min-height: 52px;
  padding: 0.2rem;
  background: #f3f5fb;
  border: 1px solid var(--pd-line, #e8ebf3);
  border-radius: 0.9rem;
  box-shadow: none;
}
.pd-qty .quantity-button-handler {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 0.7rem;
  background: #fff;
  color: var(--pd-ink, #121826);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(15, 20, 40, 0.06);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.pd-qty .quantity-button-handler:hover {
  background: rgba(var(--brand-rgb, 16, 13, 209), 0.08);
  color: var(--pd-accent, #100DD1);
}
.pd-qty .quantity-button-handler:active {
  transform: scale(0.96);
}
.pd-qty .cart-quantity-input {
  width: 2.6rem;
  min-width: 2.4rem;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--pd-ink, #121826);
  -moz-appearance: textfield;
  appearance: textfield;
}
.pd-qty .cart-quantity-input::-webkit-outer-spin-button,
.pd-qty .cart-quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.pd-add-btn {
  min-height: 52px;
  flex: 1 1 auto;
  border-radius: .9rem;
  background: linear-gradient(135deg, #100DD1, #3b35e0);
  border: 0;
  color: #fff !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  box-shadow: 0 10px 24px rgba(16, 13, 209, 0.28);
  white-space: nowrap;
}
.pd-add-btn:hover {
  background: linear-gradient(135deg, #0d0bb0, #312e81);
  color: #fff !important;
}

@media (max-width: 575.98px) {
  .pd-actions {
    flex-direction: row;
    align-items: stretch;
    gap: 0.55rem;
  }
  .pd-qty.order-plus-minus {
    flex: 0 0 auto;
  }
  .pd-add-btn {
    flex: 1 1 auto;
    min-width: 0;
    padding-inline: 0.75rem;
    font-size: 0.92rem;
  }
  .pd-add-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.pd-assurances {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pd-line);
}
.pd-assurances > div {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  color: #3f4a63;
  font-weight: 600;
}
.pd-assurances i { color: var(--pd-accent); }

.pd-panel--pro { padding: 1.25rem 1.35rem; }
.pd-panel--pro h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--pd-ink);
  margin-bottom: .75rem;
}
.pd-panel--pro p { color: #4b5568; line-height: 1.8; }
.pd-tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}
.pd-tech-grid > div {
  background: #f7f8fc;
  border-radius: .75rem;
  padding: .7rem .8rem;
}
.pd-tech-grid span {
  display: block;
  font-size: .72rem;
  color: var(--pd-muted);
  margin-bottom: .15rem;
}
.pd-tech-grid strong {
  color: var(--pd-ink);
  font-size: .9rem;
  word-break: break-word;
}
.pd-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pd-checklist li {
  margin-bottom: .45rem;
  color: #3f4a63;
  font-weight: 500;
}
.pd-checklist i {
  color: #12b76a;
  margin-left: .4rem;
}
.star-rating-input { display: flex; gap: .15rem; align-items: center; }
.star-rating-input .star-btn {
  border: 0;
  background: transparent;
  color: #f59e0b;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0 .05rem;
  cursor: pointer;
}
.star-rating-input .star-btn:not(.is-on) { color: #d1d5db; }

.pd-review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.pd-review-avatar--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft, #eef0ff);
  color: var(--brand, #100DD1);
}
.pd-reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.pd-reviews-head h2 { font-size: 1.05rem; margin: 0; }
.pd-reviews-score {
  text-align: center;
  min-width: 72px;
  padding: .45rem .65rem;
  border-radius: .85rem;
  background: var(--brand-soft, #eef0ff);
}
.pd-reviews-score strong {
  display: block;
  color: var(--brand, #100DD1);
  font-size: 1.2rem;
  line-height: 1.1;
}
.pd-reviews-score span {
  font-size: .68rem;
  color: var(--muted, #747794);
}
.pd-review-card {
  padding: .95rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border, #eef0f6);
  background: var(--card, #fff);
  margin-bottom: .7rem;
  box-shadow: 0 6px 18px rgba(15, 15, 40, .04);
}
.pd-review-card-top {
  display: flex;
  gap: .75rem;
  margin-bottom: .55rem;
}
.pd-review-title {
  font-size: .88rem;
  font-weight: 600;
  margin-top: .2rem;
  color: var(--text, #1d2433);
}
.pd-reviews-empty {
  text-align: center;
  padding: 1.5rem .75rem;
  color: var(--muted, #747794);
  border: 1px dashed var(--border, #d8dbe7);
  border-radius: 1rem;
  margin-bottom: 1rem;
}
.pd-reviews-empty i {
  display: block;
  font-size: 1.5rem;
  margin-bottom: .4rem;
  opacity: .7;
}
.pd-review-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border, #eef0f6);
}
.pd-review-login {
  margin-top: 1rem;
  padding: .85rem 1rem;
  border-radius: .85rem;
  background: var(--brand-soft, #eef0ff);
  font-size: .88rem;
}
.pd-side-card .btn { border-radius: .75rem; }

@media (min-width: 992px) {
  .pd-hero-row > [class*="col-"] {
    display: flex;
    flex-direction: column;
  }
  .pd-gallery--pro {
    position: sticky;
    top: 80px;
  }
  .pd-gallery-main {
    min-height: 280px;
  }
  .pd-gallery-main img {
    max-height: 320px;
    max-width: 95%;
  }
  .pd-gallery-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .pd-title { font-size: 1.55rem; }
  .pd-specs--pro {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .pd-assurances {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .pd-buybox { padding: 1.35rem 1.4rem; }
  .pd-buybox-top,
  .pd-price-card,
  .pd-specs--pro,
  .pd-weight-box {
    margin-bottom: .85rem;
  }
}
@media (max-width: 575.98px) {
  .pd-price-card { flex-direction: column; align-items: stretch; }
  .pd-lock-mini { width: 100%; }
}

/* ========== صفحه محصول — تم تاریک ========== */
html[theme-color="dark"] .product-detail-page.pd-pro {
  --pd-ink: var(--text);
  --pd-muted: var(--muted);
  --pd-line: var(--border);
  --pd-card: var(--card);
  --pd-accent: var(--brand);
  --pd-warm: rgba(234, 88, 12, 0.16);
}

html[theme-color="dark"] .pd-gallery--pro,
html[theme-color="dark"] .pd-buybox,
html[theme-color="dark"] .pd-panel--pro {
  background: var(--card);
  border-color: var(--border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

html[theme-color="dark"] .pd-gallery-main {
  background:
    radial-gradient(circle at 30% 20%, rgba(var(--brand-rgb), 0.18), transparent 45%),
    linear-gradient(160deg, #1e2540 0%, #161b2e 100%);
}

html[theme-color="dark"] .pd-gallery-trust span,
html[theme-color="dark"] .pd-gallery-facts > div {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--border);
}

html[theme-color="dark"] .pd-gallery-trust span {
  color: var(--muted);
}

html[theme-color="dark"] .pd-chip {
  background: rgba(var(--brand-rgb), 0.2);
  color: #c7d2fe;
}

html[theme-color="dark"] .pd-chip--melted {
  background: rgba(234, 88, 12, 0.2);
  color: #fdba74;
}

html[theme-color="dark"] .pd-chip--bar {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}

html[theme-color="dark"] .pd-stock-pill.is-ok,
html[theme-color="dark"] .pd-stock-pill:not(.is-low) {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

html[theme-color="dark"] .pd-stock-pill.is-low {
  background: rgba(234, 88, 12, 0.2);
  color: #fdba74;
}

html[theme-color="dark"] .wishlist-round {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid var(--border);
}

html[theme-color="dark"] .pd-price-card {
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.22) 0%, rgba(26, 32, 53, 0.95) 100%);
  border: 1px solid rgba(var(--brand-rgb), 0.28);
}

html[theme-color="dark"] .pd-lock-mini {
  background: var(--pd-warm);
  border: 1px solid rgba(234, 88, 12, 0.28);
}

html[theme-color="dark"] .pd-lock-mini i { color: #fb923c; }
html[theme-color="dark"] .pd-lock-mini strong { color: var(--text); }

html[theme-color="dark"] .pd-specs--pro > div,
html[theme-color="dark"] .pd-tech-grid > div {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.55rem 0.7rem;
}

html[theme-color="dark"] .pd-weight-box,
html[theme-color="dark"] .pd-variant-box {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}

html[theme-color="dark"] .pd-variant-chip {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

html[theme-color="dark"] .pd-variant-chip span {
  color: var(--muted);
}

html[theme-color="dark"] .pd-variant-chip.is-active {
  border-color: var(--brand);
  background: rgba(var(--brand-rgb), 0.16);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.2);
}

html[theme-color="dark"] .pd-variant-chip:hover:not(:disabled) {
  border-color: rgba(var(--brand-rgb), 0.55);
}

/* مودال انتخاب واریانت روی کارت محصول */
.card-variant-modal {
  --pd-ink: #121826;
  --pd-muted: #667085;
  --pd-line: #e8ebf3;
  border: 0;
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(18, 24, 38, 0.18);
}
.card-variant-modal .modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--pd-ink);
}
.card-variant-modal-name {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--pd-muted);
}
.card-variant-modal .modal-body {
  padding-top: 0.85rem;
}
.card-variant-modal .pd-variant-chips {
  max-height: min(52vh, 360px);
  overflow: auto;
  padding: 2px;
}
.card-variant-modal .btn-success {
  min-width: 8.5rem;
  font-weight: 700;
}
html[theme-color="dark"] .card-variant-modal {
  --pd-ink: #f3f4f8;
  --pd-muted: #9aa3b5;
  --pd-line: rgba(255, 255, 255, 0.12);
  background: #151a26;
  color: var(--pd-ink);
}
html[theme-color="dark"] .card-variant-modal .btn-close {
  filter: invert(1);
}
html[theme-color="dark"] .card-variant-modal .btn-light {
  background: rgba(255, 255, 255, 0.08);
  border-color: transparent;
  color: #e8eaef;
}

html[theme-color="dark"] .pd-w-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

html[theme-color="dark"] .pd-weight-presets button {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

html[theme-color="dark"] .pd-weight-presets button:hover {
  border-color: var(--brand);
  color: #c7d2fe;
}

html[theme-color="dark"] .pd-assurances {
  border-top-color: var(--border);
}

html[theme-color="dark"] .pd-panel--pro p,
html[theme-color="dark"] .pd-checklist li {
  color: var(--muted);
}

html[theme-color="dark"] .pd-review-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}

html[theme-color="dark"] .pd-reviews-empty {
  color: var(--muted);
  border-color: var(--border);
}

html[theme-color="dark"] .pd-review-form {
  border-top-color: var(--border);
}

html[theme-color="dark"] .pd-review-login {
  background: rgba(var(--brand-rgb), 0.18);
  color: var(--text);
}

html[theme-color="dark"] .pd-review-login a {
  color: #c7d2fe;
}

html[theme-color="dark"] .pd-breadcrumb,
html[theme-color="dark"] .pd-breadcrumb a {
  color: var(--muted);
}

html[theme-color="dark"] .pd-breadcrumb em,
html[theme-color="dark"] .pd-title,
html[theme-color="dark"] .pd-panel--pro h2,
html[theme-color="dark"] .pd-reviews-head h2 {
  color: var(--text);
}

html[theme-color="dark"] .order-plus-minus,
html[theme-color="dark"] .quantity-button-handler {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  color: var(--text);
}
html[theme-color="dark"] .pd-qty.order-plus-minus {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}
html[theme-color="dark"] .pd-qty .quantity-button-handler {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow: none;
}
html[theme-color="dark"] .pd-qty .cart-quantity-input {
  color: var(--text);
}

html[theme-color="dark"] .pd-side-card .btn-outline-primary {
  color: #c7d2fe;
  border-color: rgba(var(--brand-rgb), 0.45);
}

html[theme-color="dark"] .pd-side-card .btn-outline-secondary {
  color: var(--muted);
  border-color: var(--border);
}

/* ========== Auth ========== */
.noghreh-auth .auth-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.35rem;
  padding: 1.75rem 1.35rem 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}
.noghreh-auth .auth-logo {
  max-width: 140px;
  margin-bottom: 1rem;
}
.noghreh-auth .auth-title {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: .35rem;
}
.noghreh-auth .auth-subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-size: .9rem;
  margin-bottom: 1.25rem;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
  margin-bottom: 1.25rem;
  background: rgba(0, 0, 0, 0.15);
  padding: .35rem;
  border-radius: 999px;
}
.auth-tab {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: .55rem .4rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  transition: .2s;
}
.auth-tab.is-active,
.auth-tab:hover {
  background: #ffc107;
  color: #020310;
}
.auth-field { margin-bottom: 1rem; }
.auth-field label {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: .85rem;
  margin-bottom: .4rem;
}
.auth-input-wrap {
  position: relative;
}
.auth-input-wrap i {
  position: absolute;
  right: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #100DD1;
  z-index: 2;
}
.auth-input-wrap input,
.auth-input-wrap .form-control {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: .9rem;
  padding: .75rem 2.6rem .75rem 1rem;
  background: #fff;
  box-shadow: none !important;
  text-align: left;
  direction: ltr;
}
.auth-input-wrap--otp input {
  letter-spacing: .35em;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  padding-right: 1rem;
}
.auth-submit {
  height: 52px;
  border-radius: .9rem;
  background: #ffc107;
  border: 0;
  color: #020310;
  font-weight: 700;
  font-size: 1rem;
}
.auth-submit:hover { background: #ffcd39; color: #020310; }
.auth-resend {
  height: 48px;
  border-radius: .9rem;
  background: rgba(255, 255, 255, 0.92);
  color: #020310;
  font-weight: 600;
  border: 0;
}
.auth-resend:disabled {
  opacity: .65;
  cursor: not-allowed;
}
.auth-legal {
  color: rgba(255, 255, 255, 0.75);
  font-size: .8rem;
  margin: 1rem 0 .5rem;
}
.auth-guest {
  color: #fff;
  text-decoration: underline;
  font-size: .9rem;
}

/* Complete profile */
.auth-card--profile {
  text-align: center;
}
.auth-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  margin-bottom: .55rem;
}
.auth-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}
.auth-step-dot.is-done,
.auth-step-dot.is-active {
  background: #ffc107;
  box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.22);
}
.auth-step-line {
  width: 42px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
}
.auth-step-label {
  color: rgba(255, 255, 255, 0.78);
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.auth-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.auth-input-wrap--rtl input,
.auth-input-wrap--rtl .form-control {
  direction: rtl;
  text-align: right;
}
.auth-error {
  color: #ffe0e3;
  font-size: .78rem;
  margin-top: .35rem;
}
.auth-alert {
  background: rgba(234, 76, 98, 0.22);
  border: 1px solid rgba(234, 76, 98, 0.4);
  color: #fff;
  border-radius: .85rem;
  padding: .7rem .85rem;
  margin-bottom: 1rem;
  font-size: .85rem;
  text-align: right;
}
@media (max-width: 420px) {
  .auth-field-row {
    grid-template-columns: 1fr;
  }
}

.otp-timer-row {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 1rem;
  padding: .85rem 1rem;
  margin-bottom: 1.15rem;
  text-align: right;
}
.otp-timer-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #ffc107;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  flex-shrink: 0;
  direction: ltr;
}
.otp-timer-meta strong {
  color: #fff;
  font-size: .9rem;
}
.otp-timer-meta p {
  color: rgba(255, 255, 255, 0.75);
  font-size: .78rem;
}

/* ========== دسکتاپ ========== */
@media (min-width: 992px) {
  html, body {
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
    box-shadow: none !important;
  }
  body { background: #E9EEFF; }

  .container { max-width: 1240px !important; }

  .header-area {
    height: auto !important;
    min-height: 72px;
    max-width: none !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
  }
  .header-search {
    min-width: 0;
    flex: 1 1 auto !important;
    max-width: none;
  }
  .header-search .search-form--pro {
    margin: 0;
    width: 100%;
  }
  .header-search .live-search-form {
    width: 100% !important;
    max-width: none !important;
    flex: 1 1 auto !important;
  }
  .header-search .live-search-input {
    height: 46px !important;
  }
  .header-search .live-search-form > button {
    width: 36px;
    height: 36px;
  }
  .header-search .alternative-search-options .btn {
    width: 46px;
    height: 46px;
  }
  .header-area > .container {
    gap: .75rem;
  }

  /* دسته‌ها: فضای خالی داخل کارت کمتر */
  .product-catagories-wrapper .col-6 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  .catagory-card .card-body {
    min-height: 96px;
    padding: .85rem .5rem !important;
  }
  .catagory-card img {
    width: 40px;
    height: 40px;
  }

  /* هیرو پرتر */
  .single-hero-slide .slide-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.5rem 2.5rem !important;
  }
  .hero-slides .owl-item,
  .hero-slides .single-hero-slide {
    width: 100%;
  }

  .footer-nav-area,
  .d-lg-none.footer-nav-area,
  .footer-nav-area.nav-glass-tabbar {
    display: none !important;
  }

  .page-content-wrapper {
    margin-top: 72px;
    margin-bottom: 1.25rem !important;
  }

  /* خانه: دسته‌ها فشرده‌تر و پر */
  .product-catagories-wrapper .row {
    --bs-gutter-x: .75rem;
    --bs-gutter-y: .75rem;
  }
  .catagory-card .card-body {
    min-height: 110px;
  }
  .section-heading {
    margin-bottom: .85rem !important;
  }
  .flash-sale-wrapper .section-heading,
  .top-products-area .section-heading {
    justify-content: flex-start;
    gap: 1rem;
  }
  .flash-sale-wrapper .section-heading .small {
    margin-right: auto;
  }

  .product-card--uniform .product-thumb-frame {
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .product-card--uniform .product-thumb-frame img {
    max-height: none;
  }

  .hero-slides .single-hero-slide {
    min-height: 340px;
    border-radius: 1rem;
  }
  .single-hero-slide .slide-content {
    padding-inline: 2rem !important;
  }

  .search-form form {
    flex: 1 1 auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .live-search-wrap,
  .search-form--pro {
    max-width: 100% !important;
    width: 100%;
  }

  .suha-footer-nav { width: 100% !important; }

  .flash-sale-link { min-height: 300px; }
  .flash-sale-thumb { height: 150px; }
  .flash-sale-card--uniform img { max-height: 122px; }
  .flash-sale-card--uniform .product-title { font-size: .76rem; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .container { max-width: 920px !important; }
}

@media (min-width: 1400px) {
  .container { max-width: 1320px !important; }
}

@media (max-width: 991.98px) {
  .desktop-nav { display: none !important; }
}

/* مجله صفحه اصلی */
.home-article-card {
  display: block;
  height: 100%;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  background: var(--card, #fff);
  border: 1px solid var(--border, #eef0f6);
  box-shadow: 0 8px 22px rgba(15, 15, 40, .05);
  transition: border-color .2s ease, transform .2s ease;
}
.home-article-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--brand-rgb, 16, 13, 209), .35);
  color: inherit;
}
.home-article-card strong {
  display: block;
  margin-bottom: .35rem;
  color: var(--text, #1d2433);
  font-size: .95rem;
}
.home-article-card p {
  margin: 0 0 .55rem;
  font-size: .82rem;
  line-height: 1.7;
  color: var(--muted, #747794);
}
.home-article-card > span {
  font-size: .78rem;
  font-weight: 600;
  color: var(--brand, #100DD1);
}

/* پیشنهاد نصب PWA — زیر هدر */
.noghreh-pwa-install {
  position: fixed;
  inset-inline: 0;
  top: calc(50px + env(safe-area-inset-top, 0px) + .55rem);
  bottom: auto;
  z-index: 1080;
  padding: 0 .85rem;
  pointer-events: none;
}
@media (min-width: 992px) {
  .noghreh-pwa-install {
    top: calc(72px + .65rem);
  }
}
.noghreh-pwa-card {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: .75rem;
  max-width: 560px;
  margin: 0 auto;
  padding: .85rem .9rem;
  border-radius: 1rem;
  background: var(--card, #fff);
  border: 1px solid rgba(var(--brand-rgb, 16, 13, 209), .22);
  box-shadow: 0 12px 32px rgba(15, 15, 40, .14);
  animation: noghrehPwaIn .35s cubic-bezier(.22, 1, .36, 1);
}
@keyframes noghrehPwaIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.noghreh-pwa-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .8rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--brand-soft, #eef0ff);
  color: var(--brand, #100DD1);
  font-size: 1.1rem;
}
.noghreh-pwa-copy {
  flex: 1;
  min-width: 0;
}
.noghreh-pwa-copy strong {
  display: block;
  font-size: .9rem;
  color: var(--text, #1d2433);
}
.noghreh-pwa-copy span {
  display: block;
  font-size: .75rem;
  color: var(--muted, #747794);
  margin-top: .1rem;
}
.noghreh-pwa-actions {
  display: flex;
  gap: .35rem;
  flex-shrink: 0;
}
[theme-color="dark"] .noghreh-pwa-card,
[theme-color="dark"] .home-article-card {
  background: var(--card, #1a1f36);
  border-color: var(--border, #2a314d);
}
