/* مخفی کردن اجزای فیلتر قبل از شروع */
#wmfg-special-box,
#wmfg-special-box-2,
#wmfg-dropdown-group,
#wmfg-grid {
  display: none;
}



/* --- سلکت‌ها --- */
.wmfg-select {
  min-width: 120px;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  transition: all 0.25s ease;
}
.wmfg-select:hover {
  border-color: #0073aa;
  box-shadow: 0 2px 6px rgba(0,115,170,0.15);
}

/* --- باکس‌های دسته‌های ویژه --- */
#wmfg-special-box,
#wmfg-special-box-2 {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 20px auto;
  text-align: center;
  flex-wrap: wrap;
}

/* --- گرید محصولات --- */
.wmfg-grid {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}
.wmfg-grid.columns-1 { grid-template-columns: repeat(1, 1fr); }
.wmfg-grid.columns-2 { grid-template-columns: repeat(2, 1fr); }
.wmfg-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.wmfg-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }

/* کارت محصول */
.wmfg-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  box-sizing: border-box;
  transition: all 0.25s ease;
}
.wmfg-item:hover {
  box-shadow: 0 3px 7px rgba(0,115,170,0.15);
  border-color: #0073aa;
}

/* قیمت */
.wmfg-price {
  margin-top: 5px;
  color: #0073aa;
  font-weight: bold;
}

/* تصویر محصول */
.wmfg-product-thumb {
  width: 100% !important;
  max-width: 250px;
  height: 250px !important;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #eee;
  background: #f7f7f7;
  padding: 3px;
  margin-bottom: 10px;
}

/* تصویر پیش‌فرض */
.wmfg-default-thumb {
  object-fit: contain !important;
  background: #f5f5f5;
  border: 1px solid #eee;
}

/* --- دکمه دانلود رایگان نسخه اندیس ۲ + ساعت‌شنی --- */
.wmfg-btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg,#00b894,#00cec9);
  color: #fff;
  text-decoration: none;
  transition: all 0.25s ease;
}
.wmfg-btn-download:hover {
  background: linear-gradient(135deg,#019877,#00a4a8);
  transform: translateY(-1px);
}

/* آیکون ساعت‌شنی */
.hourglass {
  width: 14px;
  height: 14px;
  border: 2px solid #ffffff;
  border-radius: 3px;
  position: relative;
  display: inline-block;
  transform-origin: center;
  opacity: 0.9;
}
.hourglass:before,
.hourglass:after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  height: 40%;
  background: #ffffff;
  animation: none;
  border-radius: 2px;
}
.hourglass:before { top: 2px; }
.hourglass:after { bottom: 2px; }

/* انیمیشن فعال */
.hourglass.active {
  animation: hg-rotate 1.2s linear infinite;
}
.hourglass.active:before {
  animation: hg-top 1.2s linear infinite;
}
.hourglass.active:after {
  animation: hg-bottom 1.2s linear infinite;
}

@keyframes hg-rotate {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}
@keyframes hg-top {
  0% { height: 40%; }
  50% { height: 5%; }
  100% { height: 40%; }
}
@keyframes hg-bottom {
  0% { height: 5%; }
  50% { height: 40%; }
  100% { height: 5%; }
}

/* دکمه اطلاعات بیشتر */
.wmfg-btn-more {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg,#0073aa,#00a6ff);
  color: #fff;
  text-decoration: none;
  transition: all 0.25s ease;
}
.wmfg-btn-more:hover {
  background: linear-gradient(135deg,#005e89,#0097e0);
  transform: translateY(-1px);
}

/* --- ریسپانسیو موبایل --- */
@media (max-width: 768px) {
  .wmfg-grid {
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 15px !important;
  }
  .wmfg-item {
    width: 100% !important;
    margin: 0 auto !important;
  }
  .wmfg-product-thumb {
    height: 230px !important;
  }
  .wmfg-select {
    min-width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 10px !important;
  }
  #wmfg-dropdown-group {
    flex-direction: column !important;
  }
}

/* --- دکمه استایل جدید گرادیانی بنفش-نارنجی (نسخه پایینی متداخل) --- */
.wmfg-start-btn {
  display: block;
  width: 100%;
  padding: 2px 6px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .3px;
  background: linear-gradient(135deg, #8e2de2, #ffb300);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all .35s ease;
  box-shadow: 0 6px 18px rgba(142,45,226,.35);
  margin-top: 20px;
}
.wmfg-start-btn:hover {
  transform: translateY(-3px) scale(1.02);
  background: linear-gradient(135deg,#7b1bd4,#ff9900);
  box-shadow: 0 8px 22px rgba(142,45,226,.45);
}
.wmfg-start-btn:active {
  transform: scale(.97);
  box-shadow: 0 3px 12px rgba(142,45,226,.25);
}

/* ===============================================
   ✅ فیکس تضمینی - بالا آوردن متن دکمه start filter
   =============================================== */

#wmfg-start-filter.wmfg-start-btn {
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important; /* متن میاد بالاتر به جای وسط */
  text-align: center !important;

  height: 50px !important;
  padding: 0 !important;
  line-height: 1 !important;
  width: 100% !important;

  position: relative !important;
}

/* بالا بردن دقیق‌تر متن داخل دکمه */
#wmfg-start-filter.wmfg-start-btn > * {
  margin-top: 6px !important; /* تنظیم دقیق بالاتر بودن متن */
}
/* پایین آوردن دکمه شرکت در آزمون آنلاین در کارت محصول */
.wmfg-item .wmfg-btn-download {
  margin-top: 38px; /* قبلاً 8px بود */
}
.wmfg-btn{
    display: inline-block;
    margin-top: 10px;
    padding: 12px 26px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s ease;
    box-shadow: 0 8px 20px rgba(128, 64, 255, 0.25);
}

/* دکمه افزودن به سبد خرید */
.wmfg-btn-cart{
    background: linear-gradient(135deg, #b389ff, #7a4cff);
    color: #fff;
}

.wmfg-btn-cart:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(128, 64, 255, 0.35);
    background: linear-gradient(135deg, #a070ff, #6a3cff);
}

/* دکمه اطلاعات بیشتر */
.wmfg-btn-more{
    background: #f5efff;
    color: #6f3cff;
    border: 2px solid #d3baff;
}

.wmfg-btn-more:hover{
    background: #ede4ff;
    color: #5a2cd6;
}
a.added_to_cart.wc-forward{
    display: inline-block;
    margin-top: 14px;
    padding: 10px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, #b48cff, #7a4cff);
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(122, 76, 255, 0.35);
}


