/* استایل کلی کارت‌ها */
.flipcard-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  direction: rtl;
  padding: 2rem 0;
}

.card-container {
  width: 260px;
  perspective: 1000px;
}

.card {
  width: 100%;
  height: 400px !important; /* افزایش اندکی برای فضای بیشتر تصویر */
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s ease-in-out;
}

.card-container:hover .card {
  transform: rotateY(180deg);
}

.card-face {
  width: 100%;
  height: 100%; /* <<<<<< این خط کد را اضافه کنید */
  position: absolute;
  backface-visibility: hidden;
  background: #1b1a1b !important;
  color: #fffcf2;
  padding: 0.8rem;
  box-shadow: 0 8px 5px rgba(0,0,0,0.3);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #2a2929;
  box-sizing: border-box; 
}


.card-front .product-subcat-front {
  background: linear-gradient(135deg, #e65717 20%, #f89b29 100%);
  color: #fffcf2;
  padding: 0.4em 0.8em; /* کاهش padding */
  border-radius: 0 0 15px 0;
  font-size: 0.75rem; /* کاهش اندازه فونت */
  font-weight: 600;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
}

.card-front .product-image,
.card-front img {
  width: 100%;
  height: auto !important; /* افزایش برای وضوح بهتر */
  object-fit: cover;
  border-radius: 12px !important;
  margin-bottom: 0.4rem;
  background: linear-gradient(-45deg, #1b1a1b 0%, #252626 100%) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* افزودن سایه برای عمق */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-container:hover .card-front .product-image,
.card-container:hover .card-front img {
  transform: scale(1.02) !important;
  box-shadow: 0 6px 6px rgba(0,0,0,0.3);
}

.no-image-placeholder {
  width: 100%;
  height: 190px !important; /* افزایش برای تناسب */
  background-color: #1e1f1e;
  border-radius: 12px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  border: 1px dashed #444;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.card-front .product-title {
  font-size: 1rem; /* کاهش اندازه فونت */
  font-weight: bold;
  margin: 0.5rem 0 0.5rem 0; /* کاهش margin */
  text-align: center;
  color: #fffcf2;
  line-height: 1.3; /* بهبود line-height */
}

/*
=========================================
انتقال به اسنیپت نمایش قیمت محصولات با تخفیف 
==========================================

.card-front .price {
  color: #e65717 !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  position: relative !important;
  padding: 0.3rem 1rem !important;
  background: linear-gradient(135deg, rgba(230, 87, 23, 0.1) 0%, rgba(248, 155, 41, 0.1) 100%) !important;
  border: 2px solid #e65717 !important;
  border-radius: 25px !important;
  text-align: center !important;
  box-shadow: 0 4px 15px rgba(230, 87, 23, 0.2) !important;
  transition: all 0.3s ease !important;
  overflow: hidden !important;
}

.card-front .price::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
  transition: left 0.6s ease !important;
}

.card-container:hover .card-front .price::before {
  left: 100% !important;
}

.card-container:hover .card-front .price {
  transform: scale(1.05) !important;
  box-shadow: 0 6px 10px rgba(230, 87, 23, 0.3) !important;
  border-color: #f89b29 !important;
}
*/


.card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #1b1a1b 0%, #252626 100%); /* گرادیان زیبا */
  padding: 0.8rem;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

/* افزودن pattern پس‌زمینه */
.card-back::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.card-back > * {
  position: relative;
  z-index: 1;
}

.card-back .product-excerpt {
  font-size: 0.9rem;
  color: #d4d4d4; /* رنگ بهتر برای خوانایی */
  margin-bottom: 0.8rem;
  line-height: 1.5; /* بهبود خوانایی */
  text-align: right;
  flex-grow: 1;
  text-justify: none;
  overflow: hidden;
  padding: 0.5rem;
  border-radius: 10px;
  border-right: 3px solid #e65717;
  border-bottom: 2px solid #e65717;
  box-shadow: 6px 6px 10px rgba(0, 0, 0, 0.3);
}

.card-back .buttons {
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
}

.card-back .buttons a {
  display: block;
  padding: 0.6rem;
  text-align: center;
  margin: 0.4rem 0;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card-back .buttons a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.card-back .buttons a:hover::before {
  left: 100%;
}

.card-back .details-btn {
  background: linear-gradient(135deg, transparent 0%, rgba(230, 87, 23, 0.1) 100%);
  border: 2px solid #e65717;
  color: #e65717;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(230, 87, 23, 0.1);
}

.card-back .details-btn:hover {
  background: linear-gradient(135deg, #e65717 0%, #dc2f02 100%);
  color: #1e1f1e;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(230, 87, 23, 0.4);
}

.card-back .add-to-cart-btn {
  background: linear-gradient(135deg, #e65717 0%, #dc2f02 100%);
  color: #1e1f1e;
  border: 2px solid #e65717;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(230, 87, 23, 0.2);
}

.card-back .add-to-cart-btn:hover {
  background: linear-gradient(135deg, #dc2f02 0%, #b02a05 100%);
  border-color: #dc2f02;
  color: #fffcf2;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(220, 47, 2, 0.4);
}

/* استایل دکمه "مشاهده سبد خرید" که بعد از افزودن محصول ظاهر می‌شود */
.card-back .buttons a.added_to_cart.wc-forward {
  /* کپی کردن استایل‌های دکمه جزئیات برای هماهنگی ظاهری */
  background: linear-gradient(135deg, transparent 0%, rgba(230, 87, 23, 0.1) 100%);
  border: 2px solid #e65717;
  color: #e65717 !important; /* استفاده از !important برای غلبه بر رنگ لینک پیش‌فرض */
  box-shadow: 0 2px 8px rgba(230, 87, 23, 0.1);
  display: block;
  padding: 0.6rem;
  text-align: center;
  margin: 0.4rem 0;
  border-radius: 12px;
  text-decoration: none !important; /* حذف خط زیر لینک */
  font-weight: bold;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* استایل هاور برای هماهنگی کامل */
.card-back .buttons a.added_to_cart.wc-forward:hover {
  background: linear-gradient(135deg, #e65717 0%, #dc2f02 100%);
  color: #1e1f1e !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(230, 87, 23, 0.4);
}

@media (max-width: 480px) {
    
.card-front .product-title {
  font-size: 0.95rem; /* کاهش اندازه فونت */

  line-height: 1.4; /* بهبود line-height */
}
    .card-back .product-excerpt {
  font-size: 0.85rem;
    
    }
}




/* استایل‌های فیلتر فروشگاه */
.physics-filters-wrapper {
  background: linear-gradient(135deg, #1b1a1b 0%, #252626 100%);
  border-radius: 15px;
  padding: 1.5rem;
  margin: 2rem 0;
  border: 1px solid #333;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  direction: rtl;
}

.physics-filters-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: end;
  justify-content: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 150px;
}

.filter-group label {
  color: #fffcf2;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.filter-group select {
  background: linear-gradient(135deg, #2a2929 0%, #1e1f1e 100%);
  color: #fffcf2;
  border: 2px solid #444;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  direction: rtl;
  font-family: 'YekanBakhFaNum', Arial, sans-serif !important;
}


.filter-group select:hover {
  border-color: #f89b29;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.filter-group select option {
  background: #1e1f1e;
  color: #fffcf2;
  padding: 0.5rem;
}

.filter-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.filter-apply-btn {
  background: linear-gradient(135deg, #e65717 0%, #dc2f02 100%);
  color: #fffcf2;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(230, 87, 23, 0.3);
  position: relative;
  overflow: hidden;
}

.filter-apply-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.filter-apply-btn:hover::before {
  left: 100%;
}

.filter-apply-btn:hover {
  background: linear-gradient(135deg, #dc2f02 0%, #b02a05 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(220, 47, 2, 0.4);
}

.filter-reset-btn {
  background: transparent;
  color: #e65717;
  border: 2px solid #e65717;
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center !important;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(230, 87, 23, 0.1);
  position: relative;
  overflow: hidden;
}

.filter-reset-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(230, 87, 23, 0.1), transparent);
  transition: left 0.5s ease;
}

.filter-reset-btn:hover::before {
  left: 100%;
}

.filter-reset-btn:hover {
  background: linear-gradient(135deg, #e65717 0%, #dc2f02 100%);
  color: #fffcf2 !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(230, 87, 23, 0.4);
}

/* استایل pagination */
.physics-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0rem; /* کاهش فاصله */
  margin: 2rem 0;
  direction: rtl;
  padding: 0;
}

.phyfa-pagination-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.5rem;
}

.phyfa-pagination-list li {
  margin: 0;
}

.phyfa-pagination-list a,
.phyfa-pagination-list span {
  display: inline-block;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, #2a2929 0%, #1e1f1e 100%);
  color: #fffcf2;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid #444;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  min-width: 40px; /* برای اعداد تک رقمی */
  text-align: center;
}

.phyfa-pagination-list a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(230, 87, 23, 0.1), transparent);
  transition: left 0.5s ease;
}

.phyfa-pagination-list a:hover::before {
  left: 100%;
}

.phyfa-pagination-list a:hover {
  background: linear-gradient(135deg, #e65717 0%, #dc2f02 100%);
  color: #fffcf2;
  border-color: #e65717;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 87, 23, 0.3);
}

.phyfa-pagination-list li.active span {
  background: linear-gradient(135deg, #e65717 0%, #dc2f02 100%);
  color: #fffcf2;
  border-color: #e65717;
  box-shadow: 0 4px 15px rgba(230, 87, 23, 0.4);
  cursor: default;
}


/* پیام عدم وجود محصول مرتبط */
.no-related-products {
  width: 100%;
  text-align: center;
  padding: 3rem 2rem;
  background: #1b1a1b;
  border-radius: 15px;
  border: 1px solid #2a2929;
  margin: 2rem 0;
}

.no-related-products p {
  color: #fffcf2;
  font-size: 1.1rem;
  margin: 0;
  font-weight: 500;
}

/* افکت لودینگ برای فیلترها */
.physics-filters-loading {
  position: relative;
}

.physics-filters-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 15px;
  z-index: 10;
}

.physics-filters-loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid transparent;
  border-top: 3px solid #e65717;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 11;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ریسپانسیو - بهبود یافته */

/* فیلترها در دستگاه‌های کوچک */
@media (max-width: 768px) {
  .physics-filters-form {
    flex-direction: column;
    gap: 1rem;
  }
  
  .filter-group {
    min-width: 100%;
  }
  
  .filter-buttons {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .filter-apply-btn,
  .filter-reset-btn {
    flex: 1;
    min-width: 120px;
  }
  
  .physics-pagination { /* pagination list parent */
    flex-wrap: wrap;
    gap: 0.3rem;
  }
  
  .phyfa-pagination-list a, /* pagination items */
  .phyfa-pagination-list span {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }
}





/* استایل‌های اضافی برای بهبود تجربه کاربری */

/* حالت disabled برای دکمه افزودن به سبد خرید */
.add-to-cart-btn.disabled {
  background: linear-gradient(135deg, #666 0%, #555 100%) !important;
  color: #ccc !important;
  border-color: #666 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  pointer-events: none;
}

/* حالت موفقیت برای دکمه افزودن به سبد خرید */
.add-to-cart-btn.added-to-cart {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
  color: #fff !important;
  border-color: #28a745 !important;
  animation: success-pulse 0.6s ease-in-out;
}

@keyframes success-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* استایل‌های error و success messages */
.physics-message {
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  direction: rtl;
}

.physics-message.success {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%);
  border: 1px solid #28a745;
  color: #28a745;
}

.physics-message.error {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(230, 87, 23, 0.1) 100%);
  border: 1px solid #dc3545;
  color: #dc3545;
}

/* Stagger animation برای کارت‌های متعدد (اعمال به هر دو نوع کارت) */
.flipcard-wrapper > .card-container:nth-child(1), .swiper-wrapper > .swiper-slide:nth-child(1) .card-container { animation-delay: 0.1s; }
.flipcard-wrapper > .card-container:nth-child(2), .swiper-wrapper > .swiper-slide:nth-child(2) .card-container { animation-delay: 0.2s; }
.flipcard-wrapper > .card-container:nth-child(3), .swiper-wrapper > .swiper-slide:nth-child(3) .card-container { animation-delay: 0.3s; }
.flipcard-wrapper > .card-container:nth-child(4), .swiper-wrapper > .swiper-slide:nth-child(4) .card-container { animation-delay: 0.4s; }
.flipcard-wrapper > .card-container:nth-child(5), .swiper-wrapper > .swiper-slide:nth-child(5) .card-container { animation-delay: 0.5s; }
.flipcard-wrapper > .card-container:nth-child(6), .swiper-wrapper > .swiper-slide:nth-child(6) .card-container { animation-delay: 0.6s; }


/* بهبود ظاهر placeholder تصاویر */
.no-image-placeholder { /* Applies to both regular and swiper cards */
  position: relative;
  overflow: hidden;
}

.no-image-placeholder::before {
  content: '📚';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  opacity: 0.3;
}

/* استایل‌های اضافی برای فیلترها */
.physics-filters-form .filter-group {
  position: relative;
}

.physics-filters-form .filter-group::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #e65717 0%, #f89b29 100%);
  transition: width 0.3s ease;
}

.physics-filters-form .filter-group:focus-within::after {
  width: 100%;
}

/* استایل‌های tooltip اختیاری */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background: linear-gradient(135deg, #1e1f1e 0%, #2a2929 100%);
  color: #fffcf2;
  text-align: center;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  position: absolute;
  z-index: 999;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
  border: 1px solid #e65717;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #e65717 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}


/* ==========================================================================
   Swiper Slider Styles (برای شورت‌کدهای اسلایدر افزونه PHYFA Shop)
   ========================================================================== */

/* کانتینر اصلی برای هر دو نوع اسلایدر */
.phyfa-video-related-slider-wrapper,
.phyfa-latest-products-slider-wrapper {
  background: linear-gradient(135deg, #1b1a1b 0%, #252626 100%) !important;
  border-radius: 15px !important;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #333;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
  direction: rtl;
  position: relative;
  overflow: hidden;
}

/* پترن پس‌زمینه */
.phyfa-video-related-slider-wrapper::before,
.phyfa-latest-products-slider-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(230, 87, 23, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(248, 155, 41, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.phyfa-video-related-slider-wrapper > *,
.phyfa-latest-products-slider-wrapper > * {
  position: relative;
  z-index: 1;
}

/* عنوان اسلایدرها */
.phyfa-video-related-slider-wrapper h4,
.phyfa-latest-products-slider-wrapper h4 {
  color: #fffcf2;
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 0.75rem;
}

.phyfa-video-related-slider-wrapper h4::after,
.phyfa-latest-products-slider-wrapper h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #e65717 0%, #f89b29 100%);
  border-radius: 2px;
}

/* کانتینر Swiper */
.swiper {
  width: 100%;
  height: auto; 
  padding-top: 10px;
  padding-bottom: 50px; 
  direction: rtl;
}

.swiper-wrapper {
  align-items: stretch; 
}

.swiper-slide {
  height: auto; 
  display: flex;
  justify-content: center; 
  align-items: stretch; 
  background: transparent;
}

/*
  استایل‌های پایه برای کارت‌های داخل Swiper (مانند .swiper-slide .card-container, .swiper-slide .card, و ...)
  اکنون به طور کامل از استایل‌های عمومی کارت‌ها ارث‌بری کرده و توسط مدیا کوئری‌های گروهی تنظیم می‌شوند.
  نیازی به تعریف مجدد استایل‌های پایه کارت در اینجا نیست.
*/


/* استایل دکمه‌های ناوبری Swiper */
.swiper-button-next,
.swiper-button-prev {
  color: #e65717;
  background-color: rgba(30, 31, 30, 0.8);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  border: 1px solid #555;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  /* margin-top will be calculated by swiper or use absolute positioning with transform */
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: #e65717;
  color: #fffcf2;
  border-color: #f89b29;
  transform: scale(1.1);
}
/* Swiper positions these with top: 50%, transform: translateY(-50%) by default */
.swiper-button-next {
  left: 15px;
  right: auto;
}

.swiper-button-prev {
  right: 15px;
  left: auto;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px !important;
  font-weight: bold;
}


/* استایل Pagination Swiper */
.swiper-pagination {
  bottom: 15px !important;
  left: 0;
  width: 100%;
}

.swiper-pagination-bullet {
  background: #888;
  opacity: 0.6;
  transition: all 0.3s ease;
  width: 10px;
  height: 10px;
  margin: 0 5px !important;
}

.swiper-pagination-bullet-active {
  background: #e65717;
  opacity: 1;
  transform: scale(1.25);
  box-shadow: 0 0 8px rgba(230, 87, 23, 0.5);
}


/* حالت لودینگ برای کانتینر اسلایدر */
.phyfa-video-related-slider-wrapper.loading,
.phyfa-latest-products-slider-wrapper.loading {
  position: relative;
  opacity: 0.7;
  pointer-events: none;
  min-height: 200px;
}

.phyfa-video-related-slider-wrapper.loading::after,
.phyfa-latest-products-slider-wrapper.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 35px;
  height: 35px;
  margin: -17.5px 0 0 -17.5px;
  border: 4px solid rgba(230, 87, 23, 0.2);
  border-top-color: #e65717;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 10;
  background-color: rgba(27, 26, 27, 0.3);
}

/* ریسپانسیو برای خود اسلایدر (اجزای اسلایدر، نه کارت‌های داخل آن) */
@media (max-width: 768px) {
  .phyfa-video-related-slider-wrapper,
  .phyfa-latest-products-slider-wrapper {
    padding: 1rem; 
  }

  .phyfa-video-related-slider-wrapper h4,
  .phyfa-latest-products-slider-wrapper h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 34px;
    height: 34px;
  }
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 14px !important;
  }
  .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 4px !important;
  }
}

@media (max-width: 480px) {
  .swiper-button-next,
  .swiper-button-prev {
  }
  .swiper {
    padding-left: 5px; 
    padding-right: 5px;
    padding-bottom: 40px; 
  }
  .phyfa-video-related-slider-wrapper h4,
  .phyfa-latest-products-slider-wrapper h4 {
    font-size: 1rem;
  }
}