.elementor-widget-theme-archive-title .elementor-heading-title{color:var( --e-global-color-primary );}.elementor-12193 .elementor-element.elementor-element-20229208{margin:10px 0px calc(var(--kit-widget-spacing, 0px) + 10px) 0px;text-align:center;}.elementor-12193 .elementor-element.elementor-element-20229208 .elementor-heading-title{font-family:"iranyekanxfanum", Sans-serif;font-size:28px;font-weight:600;color:#000000;}.elementor-widget-wc-archive-products.elementor-wc-products ul.products li.product .woocommerce-loop-product__title{color:var( --e-global-color-primary );}.elementor-widget-wc-archive-products.elementor-wc-products ul.products li.product .woocommerce-loop-category__title{color:var( --e-global-color-primary );}.elementor-widget-wc-archive-products.elementor-wc-products ul.products li.product .price{color:var( --e-global-color-primary );}.elementor-widget-wc-archive-products.elementor-wc-products ul.products li.product .price ins{color:var( --e-global-color-primary );}.elementor-widget-wc-archive-products.elementor-wc-products ul.products li.product .price ins .amount{color:var( --e-global-color-primary );}.elementor-widget-wc-archive-products{--products-title-color:var( --e-global-color-primary );}.elementor-widget-wc-archive-products.elementor-wc-products ul.products li.product .price del{color:var( --e-global-color-primary );}.elementor-widget-wc-archive-products.elementor-wc-products ul.products li.product .price del .amount{color:var( --e-global-color-primary );}.elementor-widget-wc-archive-products .elementor-products-nothing-found{color:var( --e-global-color-text );}.elementor-12193 .elementor-element.elementor-element-33e7d64a.elementor-wc-products ul.products li.product{text-align:center;border-radius:15px;padding:10px 10px 10px 10px;box-shadow:0px 0px 10px -2px rgba(0,0,0,0.5);}.elementor-12193 .elementor-element.elementor-element-33e7d64a.elementor-wc-products  ul.products{grid-column-gap:20px;grid-row-gap:40px;}.elementor-12193 .elementor-element.elementor-element-33e7d64a.elementor-wc-products .attachment-woocommerce_thumbnail{border-radius:15px 15px 15px 15px;}.elementor-12193 .elementor-element.elementor-element-33e7d64a.elementor-wc-products ul.products li.product .woocommerce-loop-product__title{color:#000000;}.elementor-12193 .elementor-element.elementor-element-33e7d64a.elementor-wc-products ul.products li.product .woocommerce-loop-category__title{color:#000000;}.elementor-12193 .elementor-element.elementor-element-33e7d64a.elementor-wc-products ul.products li.product .woocommerce-loop-product__title, .elementor-12193 .elementor-element.elementor-element-33e7d64a.elementor-wc-products ul.products li.product .woocommerce-loop-category__title{font-family:"iranyekanxfanum", Sans-serif;font-size:16px;font-weight:600;}.elementor-12193 .elementor-element.elementor-element-33e7d64a.elementor-wc-products ul.products li.product .price{color:#000000;font-family:"iranyekanxfanum", Sans-serif;font-size:23px;font-weight:600;}.elementor-12193 .elementor-element.elementor-element-33e7d64a.elementor-wc-products ul.products li.product .price ins{color:#000000;}.elementor-12193 .elementor-element.elementor-element-33e7d64a.elementor-wc-products ul.products li.product .price ins .amount{color:#000000;}.elementor-12193 .elementor-element.elementor-element-33e7d64a.elementor-wc-products ul.products li.product .button{color:#000000;font-family:"iranyekanxfanum", Sans-serif;border-radius:5px 5px 5px 5px;}.elementor-12193 .elementor-element.elementor-element-33e7d64a.elementor-wc-products ul.products li.product:hover{background-color:#EEEEEE;}.elementor-12193 .elementor-element.elementor-element-33e7d64a nav.woocommerce-pagination{margin-top:36px;}.elementor-12193 .elementor-element.elementor-element-33e7d64a nav.woocommerce-pagination ul li a{color:#000000;background-color:#F7F5F5;}.elementor-12193 .elementor-element.elementor-element-33e7d64a.elementor-wc-products ul.products li.product span.onsale{display:block;border-radius:15px;}.elementor-12193 .elementor-element.elementor-element-33e7d64a .elementor-products-nothing-found{font-family:"iranyekanxvf", Sans-serif;}@media(max-width:1024px){.elementor-12193 .elementor-element.elementor-element-33e7d64a.elementor-wc-products  ul.products{grid-column-gap:20px;grid-row-gap:40px;}}@media(max-width:767px){.elementor-12193 .elementor-element.elementor-element-33e7d64a.elementor-wc-products  ul.products{grid-column-gap:20px;grid-row-gap:40px;}}/* Start custom CSS for wc-archive-products, class: .elementor-element-33e7d64a *//* ============================================================
   Perfect Gaming Archive (4-Col Desktop & Horizontal List Mobile)
============================================================ */

/* ۱. بخش مرتب‌سازی و تعداد */
.modern-game-grid .woocommerce-ordering {
  float: left !important;
  margin-bottom: 20px !important;
}

.modern-game-grid .woocommerce-result-count {
  float: right !important;
  margin-top: 8px !important;
  font-size: 13px !important;
  color: #64748b !important;
  font-weight: 600 !important;
}

.modern-game-grid::after,
.modern-game-grid .woocommerce-ordering::after {
  content: "" !important;
  display: table !important;
  clear: both !important;
}

.modern-game-grid .woocommerce-ordering select.orderby {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 8px 16px 8px 34px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  cursor: pointer !important;
  outline: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left 10px center !important;
}

/* ۲. شبکه ۴ ستونه دقیق در دسکتاپ */
.modern-game-grid ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  margin: 15px 0 35px 0 !important;
  padding: 0 !important;
  list-style: none !important;
  clear: both !important;
}

.modern-game-grid ul.products::before,
.modern-game-grid ul.products::after {
  display: none !important;
}

/* ۳. کارت محصول دسکتاپ */
.modern-game-grid ul.products li.product {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 12px !important;
  box-sizing: border-box !important;
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04) !important;
  text-align: center !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: auto !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.modern-game-grid ul.products li.product::after,
.modern-game-grid ul.products li.product::before {
  display: none !important;
}

.modern-game-grid ul.products li.product:hover {
  transform: translateY(-4px) !important;
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08) !important;
}

/* لینک دربرگیرنده کل کارت */
.modern-game-grid ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-decoration: none !important;
  color: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* تصویر محصول */
.modern-game-grid ul.products li.product img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 14px !important;
  margin: 0 0 8px 0 !important;
  display: block !important;
  background: #f8fafc !important;
}

/* عنوان محصول در دسکتاپ */
.modern-game-grid ul.products li.product .woocommerce-loop-product__title {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  color: #0f172a !important;
  padding: 0 !important;
  margin: 0 0 6px 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  height: 36px !important;
  text-align: center !important;
}

/* ۴. باکس کپسولی قیمت در دسکتاپ (انتقال به بالا و نزدیک عنوان) */
.modern-game-grid ul.products li.product .price {
  font-size: 13.5px !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  margin: 2px 0 0 0 !important; /* فاصله به حداقل رسیده تا باکس قیمت بیاید بالا */
  padding: 6px 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  line-height: 1 !important;
  width: 100% !important;
  min-height: 34px !important;
  box-sizing: border-box !important;
  border-radius: 12px !important;
  background: rgba(241, 245, 249, 0.8) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  white-space: nowrap !important;
}

.modern-game-grid ul.products li.product .price del {
  color: #94a3b8 !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  text-decoration: line-through !important;
  opacity: 0.8 !important;
}

.modern-game-grid ul.products li.product .price ins {
  text-decoration: none !important;
  color: #16a34a !important;
  font-weight: 900 !important;
}

.modern-game-grid ul.products li.product .price .woocommerce-Price-currencySymbol {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  margin-right: 2px !important;
}

/* ۴.۱ تنظیمات اختصاصی محصولات ناموجود */
.modern-game-grid ul.products li.product.outofstock img {
  filter: grayscale(85%) opacity(0.85) !important;
}

.modern-game-grid ul.products li.product.outofstock .price {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #dc2626 !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
}

.modern-game-grid ul.products li.product.outofstock .price * {
  display: none !important;
}

.modern-game-grid ul.products li.product.outofstock .price::before {
  content: "ناموجود" !important;
  display: block !important;
  color: #dc2626 !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
}

/* تگ حراج */
.modern-game-grid ul.products li.product .onsale {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  left: auto !important;
  margin: 0 !important;
  padding: 4px 8px !important;
  border-radius: 8px !important;
  background: #ef4444 !important;
  color: #fff !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  z-index: 2 !important;
}

.modern-game-grid ul.products li.product.outofstock .onsale {
  display: none !important;
}

/* ۵. صفر کردن و حذف کامل تمام المان‌های بعد از قیمت */
.modern-game-grid ul.products li.product .button,
.modern-game-grid ul.products li.product .add_to_cart_button,
.modern-game-grid ul.products li.product .star-rating,
.modern-game-grid ul.products li.product > a:not(.woocommerce-LoopProduct-link) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}

/* ۶. شماره صفحات مدرن */
.modern-game-grid nav.woocommerce-pagination {
  margin: 35px 0 10px 0 !important;
  display: flex !important;
  justify-content: center !important;
  clear: both !important;
}

.modern-game-grid nav.woocommerce-pagination ul {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 10px !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 14px !important;
  list-style: none !important;
  margin: 0 !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03) !important;
}

.modern-game-grid nav.woocommerce-pagination ul li {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  float: none !important;
}

.modern-game-grid nav.woocommerce-pagination ul li a,
.modern-game-grid nav.woocommerce-pagination ul li span {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 36px !important;
  height: 36px !important;
  padding: 0 8px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  color: #475569 !important;
  background: transparent !important;
  transition: all 0.2s ease !important;
}

.modern-game-grid nav.woocommerce-pagination ul li a:hover {
  background: #f1f5f9 !important;
  color: #2563eb !important;
}

.modern-game-grid nav.woocommerce-pagination ul li span.current {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

/* ۷. ریسپانسیو: تبلت */
@media (max-width: 1024px) {
  .modern-game-grid ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
  }
}

/* ۸. ریسپانسیو: موبایل (متن پایین‌تر، عدم شکست و ریختن قیمت) */
@media (max-width: 768px) {
  .modern-game-grid ul.products {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .modern-game-grid .woocommerce-ordering,
  .modern-game-grid .woocommerce-result-count {
    float: none !important;
    text-align: center !important;
  }

  .modern-game-grid .woocommerce-ordering select.orderby {
    width: 100% !important;
    margin-bottom: 15px !important;
  }

  .modern-game-grid ul.products li.product {
    padding: 10px !important;
    border-radius: 16px !important;
  }

  /* چیدمان ستونی دقیق در موبایل */
  .modern-game-grid ul.products li.product a.woocommerce-LoopProduct-link {
    display: grid !important;
    grid-template-columns: 90px 1fr !important;
    grid-template-rows: auto auto !important;
    column-gap: 12px !important;
    row-gap: 6px !important;
    align-items: center !important;
    width: 100% !important;
  }

  /* تصویر متناسب در موبایل */
  .modern-game-grid ul.products li.product img {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: 90px !important;
    height: 90px !important;
    min-width: 90px !important;
    margin: 0 !important;
    border-radius: 12px !important;
  }

  /* عنوان محصول: انتقال حساب‌شده به سمت پایین */
  .modern-game-grid ul.products li.product .woocommerce-loop-product__title {
    grid-column: 2 !important;
    grid-row: 1 !important;
    text-align: right !important;
    height: auto !important;
    margin: 0 !important;
    padding-top: 8px !important; /* پایین آمدن متن محصول */
    font-size: 13px !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  /* باکس قیمت در موبایل: کنترل دقیق برای عدم شکستن، بیرون زدن یا پایین ریختن */
  .modern-game-grid ul.products li.product .price {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 5px 10px !important;
    min-height: 30px !important;
    font-size: 12px !important;
    justify-content: flex-start !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    gap: 4px !important;
  }

  .modern-game-grid ul.products li.product .price del {
    font-size: 10.5px !important;
  }

  .modern-game-grid ul.products li.product .price ins {
    font-size: 12px !important;
  }

  .modern-game-grid ul.products li.product .price .woocommerce-Price-currencySymbol {
    font-size: 10px !important;
  }

  .modern-game-grid ul.products li.product .onsale {
    top: 10px !important;
    right: 10px !important;
    font-size: 9.5px !important;
    padding: 3px 6px !important;
  }
}/* End custom CSS */