/* ==========================================================================
   ARCANUM SHOP — DARK
   Trigger: html.arcanum-dark
   Path: /assets/css/dark/arcanum-dark-shop.css
   ========================================================================== */

html.arcanum-dark .arcanum-shop-page {
  --shop-primary: #38bdf8;
  --shop-primary-hover: #7dd3fc;
  --shop-accent: #0ea5e9;
  --shop-text: #f8fafc;
  --shop-text-2: #cbd5e1;
  --shop-muted: #94a3b8;
  --shop-bg: #0b1120;
  --shop-surface: #111827;
  --shop-surface-2: #172033;
  --shop-soft: rgba(14,165,233,.11);
  --shop-line: rgba(148,163,184,.16);
  --shop-blue-line: rgba(56,189,248,.25);
  --shop-shadow: 0 14px 34px rgba(0,0,0,.20);
  --shop-shadow-lg: 0 22px 54px rgba(0,0,0,.28);

  background: linear-gradient(180deg, #0d1524 0%, #0b1120 100%);
}

html.arcanum-dark .arcanum-shop-hero {
  background:
    radial-gradient(circle at 8% 10%, rgba(14,165,233,.14), transparent 28%),
    linear-gradient(180deg, #07111f 0%, #0b1120 100%);
}

html.arcanum-dark .arcanum-shop-eyebrow {
  background: rgba(14,165,233,.11);
  color: #7dd3fc;
  border-color: rgba(56,189,248,.22);
}

html.arcanum-dark .arcanum-shop-hero h1,
html.arcanum-dark .arcanum-shop-filter-head h2,
html.arcanum-dark .arcanum-shop-filter-group h3,
html.arcanum-dark .arcanum-shop-empty h2,
html.arcanum-dark .arcanum-shop-category-description h2,
html.arcanum-dark .arcanum-shop-seo h2 {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

html.arcanum-dark .arcanum-shop-hero__content > p,
html.arcanum-dark .arcanum-shop-category-description__content,
html.arcanum-dark .arcanum-shop-seo p {
  color: #aebdd0;
}

html.arcanum-dark .arcanum-shop-hero__links a {
  background: rgba(17,24,39,.78);
  color: #7dd3fc !important;
  border-color: rgba(56,189,248,.20);
}

html.arcanum-dark .arcanum-shop-hero__summary > div,
html.arcanum-dark .arcanum-shop-quick-cat,
html.arcanum-dark .nikan-shop-filter-panel,
html.arcanum-dark .nikan-shop-sort-header,
html.arcanum-dark .arcanum-shop-empty,
html.arcanum-dark .arcanum-shop-category-description,
html.arcanum-dark .arcanum-shop-seo {
  background: #111827 !important;
  border-color: rgba(148,163,184,.14);
}

html.arcanum-dark .arcanum-shop-hero__summary strong,
html.arcanum-dark .arcanum-shop-quick-cat span,
html.arcanum-dark .arcanum-shop-sort-header__info strong {
  color: #f8fafc;
}

html.arcanum-dark .arcanum-shop-hero__summary span,
html.arcanum-dark .arcanum-shop-quick-cat small,
html.arcanum-dark .arcanum-shop-result-label {
  color: #94a3b8;
}

html.arcanum-dark .arcanum-shop-quick-cats {
  background: #0b1120;
}

html.arcanum-dark .arcanum-shop-sidebar {
  background: #0b1120;
}

html.arcanum-dark .arcanum-shop-filter-head {
  background:
    radial-gradient(circle at 10% 0%, rgba(14,165,233,.09), transparent 34%),
    #111827;
  border-color: rgba(148,163,184,.15);
}

html.arcanum-dark .arcanum-shop-filter-head__label,
html.arcanum-dark .arcanum-shop-filter-group h3 i,
html.arcanum-dark .arcanum-shop-clear-filters {
  color: #7dd3fc !important;
}

html.arcanum-dark .arcanum-shop-filter-close,
html.arcanum-dark .arcanum-shop-filter-toggle,
html.arcanum-dark .arcanum-shop-toolbar select,
html.arcanum-dark .arcanum-shop-price-inputs input {
  background: #172033;
  color: #e2e8f0;
  border-color: rgba(148,163,184,.18);
}

html.arcanum-dark .arcanum-shop-filter-group {
  border-color: rgba(148,163,184,.15);
}

html.arcanum-dark .arcanum-shop-filter-option {
  color: #cbd5e1 !important;
}

html.arcanum-dark .arcanum-shop-filter-option__check {
  background: #172033;
  border-color: #475569;
}

html.arcanum-dark .arcanum-shop-filter-option.is-active {
  background: rgba(14,165,233,.11);
  color: #7dd3fc !important;
}

html.arcanum-dark .arcanum-shop-filter-option.is-active .arcanum-shop-filter-option__check {
  background: #0284c7;
  border-color: #0284c7;
}

html.arcanum-dark .arcanum-shop-filter-option small,
html.arcanum-dark .arcanum-shop-price-inputs label > span,
html.arcanum-dark .arcanum-shop-price-range,
html.arcanum-dark .arcanum-shop-toolbar label {
  color: #94a3b8;
}

html.arcanum-dark .arcanum-shop-price-form button {
  background: #0284c7;
  color: #fff;
}

html.arcanum-dark .arcanum-shop-active-count,
html.arcanum-dark .arcanum-shop-active-filters a {
  background: rgba(14,165,233,.11);
  color: #7dd3fc !important;
  border-color: rgba(56,189,248,.20);
}

/* Product cards */
html.arcanum-dark .nikan-shop-product-card {
  background:
    linear-gradient(180deg, #121c2d 0%, #101827 100%) !important;
  border-color: rgba(148,163,184,.15);
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}

html.arcanum-dark .nikan-product-image-box {
  background: #172033;
}

html.arcanum-dark .nikan-shop-sale-badge {
  background: rgba(7,17,31,.92);
  color: #7dd3fc;
  border-color: rgba(56,189,248,.23);
}

html.arcanum-dark .nikan-shop-product-title,
html.arcanum-dark .nikan-shop-product-title:link,
html.arcanum-dark .nikan-shop-product-title:visited,
html.arcanum-dark .nikan-shop-product-title:hover,
html.arcanum-dark .nikan-shop-product-title:focus,
html.arcanum-dark .nikan-shop-product-title:active {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

html.arcanum-dark .nikan-shop-rating {
  color: #fbbf24;
}

html.arcanum-dark .nikan-shop-rating small {
  color: #94a3b8;
}

html.arcanum-dark .nikan-shop-stock-badge.is-in {
  background: rgba(16,185,129,.13);
  color: #6ee7b7;
}

html.arcanum-dark .nikan-shop-stock-badge.is-backorder {
  background: rgba(249,115,22,.13);
  color: #fdba74;
}

html.arcanum-dark .nikan-shop-stock-badge.is-out {
  background: rgba(244,63,94,.13);
  color: #fda4af;
}

html.arcanum-dark .nikan-shop-product-bottom {
  border-color: rgba(148,163,184,.15);
}

html.arcanum-dark .nikan-shop-product-price,
html.arcanum-dark .nikan-shop-product-price .price,
html.arcanum-dark .nikan-shop-product-price .amount,
html.arcanum-dark .nikan-shop-product-price .woocommerce-Price-amount,
html.arcanum-dark .nikan-shop-product-price bdi,
html.arcanum-dark .nikan-shop-product-price ins,
html.arcanum-dark .nikan-shop-product-price ins * {
  color: #38bdf8 !important;
  -webkit-text-fill-color: #38bdf8 !important;
}

html.arcanum-dark .nikan-shop-product-price del,
html.arcanum-dark .nikan-shop-product-price del * {
  color: #64748b !important;
  -webkit-text-fill-color: #64748b !important;
}

html.arcanum-dark .nikan-shop-price-hidden {
  color: #cbd5e1;
}

html.arcanum-dark .nikan-shop-product-view-icon {
  background: rgba(14,165,233,.11);
  color: #7dd3fc !important;
  border-color: rgba(56,189,248,.20);
}

html.arcanum-dark .arcanum-shop-pagination .page-numbers {
  background: #111827;
  color: #cbd5e1 !important;
  border-color: rgba(148,163,184,.16);
}

html.arcanum-dark .arcanum-shop-pagination .page-numbers.current {
  background: #0284c7;
  border-color: #0284c7;
  color: #fff !important;
}

html.arcanum-dark .arcanum-shop-empty p {
  color: #94a3b8;
}

html.arcanum-dark .arcanum-shop-empty a {
  background: #0284c7;
  color: #fff !important;
}

html.arcanum-dark .arcanum-shop-category-description a,
html.arcanum-dark .arcanum-shop-seo a {
  color: #7dd3fc !important;
}

@media (hover: hover) and (pointer: fine) {
  html.arcanum-dark .arcanum-shop-hero__links a:hover,
  html.arcanum-dark .arcanum-shop-filter-option:hover,
  html.arcanum-dark .arcanum-shop-active-filters a:hover {
    background: rgba(14,165,233,.14);
  }

  html.arcanum-dark .arcanum-shop-quick-cat:hover,
  html.arcanum-dark .nikan-shop-product-card:hover {
    border-color: rgba(56,189,248,.27);
    box-shadow: 0 18px 40px rgba(0,0,0,.28);
  }

  html.arcanum-dark .nikan-shop-product-card:hover .nikan-shop-product-title {
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
  }

  html.arcanum-dark .nikan-shop-product-view-icon:hover {
    background: #0ea5e9;
    color: #fff !important;
  }

  html.arcanum-dark .arcanum-shop-price-form button:hover,
  html.arcanum-dark .arcanum-shop-empty a:hover {
    background: #0ea5e9;
  }
}

@media (max-width: 1023px) {
  html.arcanum-dark .arcanum-shop-sidebar {
    background: #0b1120;
  }
}

@media (max-width: 767px) {
  html.arcanum-dark .nikan-shop-product-card {
    box-shadow: none;
  }

  html.arcanum-dark .arcanum-shop-hero__summary > div,
  html.arcanum-dark .arcanum-shop-quick-cat {
    box-shadow: none;
  }
}


/* ==========================================================================
   ARCANUM SHOP V4 — DARK HARDENING
   Strong selectors intentionally override older theme/global dark rules.
   ========================================================================== */

/* Compact category cards */
html.arcanum-dark body .arcanum-shop-page .arcanum-shop-quick-cat {
  height: 92px !important;
  min-height: 92px !important;
  max-height: 92px !important;
  background: #111827 !important;
  border: 1px solid rgba(148,163,184,.15) !important;
  box-shadow: none !important;
}

html.arcanum-dark body .arcanum-shop-page .arcanum-shop-quick-cat__media {
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  overflow: hidden !important;
  background: #e8edf3 !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 14px !important;
}

html.arcanum-dark body .arcanum-shop-page .arcanum-shop-quick-cat__media img,
html.arcanum-dark body .arcanum-shop-page .arcanum-shop-quick-cat__image {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  padding: 4px !important;
  object-fit: contain !important;
  filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

html.arcanum-dark body .arcanum-shop-page .arcanum-shop-quick-cat__content strong {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

html.arcanum-dark body .arcanum-shop-page .arcanum-shop-quick-cat__content small {
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8 !important;
}

/*
 * Product photography:
 * Source product images contain bright/white canvas areas.
 * We crop a little and add a dark visual layer so the image block belongs
 * to Dark Mode without downloading a second image.
 */
html.arcanum-dark body .arcanum-shop-page .nikan-product-image-box {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  background: #0b1220 !important;
  border: 0 !important;
}

html.arcanum-dark body .arcanum-shop-page .nikan-product-image-box::before {
  content: "" !important;
  position: absolute !important;
  z-index: 0 !important;
  inset: 0 !important;
  background:
    radial-gradient(circle at 50% 35%, rgba(56,189,248,.09), transparent 52%),
    #0b1220 !important;
  pointer-events: none !important;
}

html.arcanum-dark body .arcanum-shop-page .nikan-product-image-link {
  position: relative !important;
  z-index: 1 !important;
  overflow: hidden !important;
  background: transparent !important;
}

html.arcanum-dark body .arcanum-shop-page .nikan-product-image-box img,
html.arcanum-dark body .arcanum-shop-page .nikan-product-image-rounded {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  min-height: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  background: #0b1220 !important;
  filter: brightness(.78) contrast(1.08) saturate(.92) !important;
  transform: scale(1.12) !important;
  transform-origin: center !important;
}

html.arcanum-dark body .arcanum-shop-page .nikan-product-image-box::after {
  content: "" !important;
  position: absolute !important;
  z-index: 2 !important;
  inset: 0 !important;
  background:
    linear-gradient(
      180deg,
      rgba(2,6,23,.20) 0%,
      rgba(2,6,23,.34) 100%
    ) !important;
  box-shadow: inset 0 -1px 0 rgba(148,163,184,.10) !important;
  pointer-events: none !important;
}

html.arcanum-dark body .arcanum-shop-page .nikan-shop-discount-badge,
html.arcanum-dark body .arcanum-shop-page .nikan-shop-sale-badge {
  z-index: 4 !important;
}

/* Card: remove the bright/white outline from older theme rules */
html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-card {
  background: #111827 !important;
  border: 1px solid rgba(148,163,184,.15) !important;
  outline: 0 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.16) !important;
}

html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-content {
  background: #111827 !important;
}

/* Product text */
html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-title,
html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-title:link,
html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-title:visited,
html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-title:hover,
html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-title:focus,
html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-title:active {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

/* Bottom divider */
html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-bottom {
  border-top-color: rgba(148,163,184,.15) !important;
}

/* Price */
html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-price,
html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-price *,
html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-price .amount,
html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-price bdi,
html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-price ins,
html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-price ins * {
  color: #38bdf8 !important;
  -webkit-text-fill-color: #38bdf8 !important;
}

html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-price del,
html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-price del * {
  color: #64748b !important;
  -webkit-text-fill-color: #64748b !important;
}

/* Arrow/view button — no more white block in Dark Mode */
html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-view-icon,
html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-view-icon:link,
html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-view-icon:visited {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  flex: 0 0 42px !important;
  background: #172033 !important;
  border: 1px solid rgba(56,189,248,.20) !important;
  color: #38bdf8 !important;
  -webkit-text-fill-color: #38bdf8 !important;
  box-shadow: none !important;
}

html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-view-icon i,
html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-view-icon svg,
html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-view-icon path {
  color: #38bdf8 !important;
  -webkit-text-fill-color: #38bdf8 !important;
  stroke: currentColor !important;
}

@media (hover: hover) and (pointer: fine) {
  html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-card:hover {
    border-color: rgba(56,189,248,.26) !important;
    box-shadow: 0 16px 36px rgba(0,0,0,.24) !important;
  }

  html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-card:hover .nikan-product-image-box img,
  html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-card:hover .nikan-product-image-rounded {
    transform: scale(1.145) !important;
  }

  html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-view-icon:hover {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-view-icon:hover i,
  html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-view-icon:hover svg,
  html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-view-icon:hover path {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }
}

@media (max-width: 767px) {
  html.arcanum-dark body .arcanum-shop-page .arcanum-shop-quick-cat {
    height: 84px !important;
    min-height: 84px !important;
    max-height: 84px !important;
  }

  html.arcanum-dark body .arcanum-shop-page .arcanum-shop-quick-cat__media {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
  }

  html.arcanum-dark body .arcanum-shop-page .arcanum-shop-quick-cat__media img,
  html.arcanum-dark body .arcanum-shop-page .arcanum-shop-quick-cat__image {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
  }

  html.arcanum-dark body .arcanum-shop-page .nikan-product-image-box img,
  html.arcanum-dark body .arcanum-shop-page .nikan-product-image-rounded {
    transform: scale(1.08) !important;
  }

  html.arcanum-dark body .arcanum-shop-page .nikan-shop-product-view-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    flex-basis: 34px !important;
  }
}
/* حذف هدر بخش دسته‌بندی فروشگاه و نگه‌داشتن کارت‌ها */
.arcanum-shop-page .arcanum-shop-quick-cats__head {
  display: none !important;
}

.arcanum-shop-page .arcanum-shop-quick-cats {
  padding-top: 0 !important;
}

.arcanum-shop-page .arcanum-shop-quick-cats__track {
  margin-top: 0 !important;
}