.single-producer-page {
  max-width: 1200px;
}

/* Breadcrumb */
.breadcrumb {
  background-color: transparent;
  padding: 0;
}

.breadcrumb-item a {
  color: #666;
  transition: color 0.3s;
}

.breadcrumb-item a:hover {
  color: #198754;
}

/* هدر */
.producer-header {
  border-bottom: 2px solid rgba(25, 135, 84, 0.1);
  padding-bottom: 2rem;
}

.producer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid #e9ecef;
}

/* تصویر شاخص */
.featured-image-container {
  position: relative;
  transition: transform 0.3s ease;
}

.featured-image-container:hover {
  transform: translateY(-5px);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
}

/* گالری */
.producer-gallery-section .gallery-item {
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s ease;
  height: 250px;
}

.producer-gallery-section .gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* داستان تولیدکننده */
.section-header {
  position: relative;
}

.section-divider {
  height: 4px;
  width: 60px;
  background: linear-gradient(90deg, #198754, #20c997);
  border-radius: 2px;
}

.producer-content {
  line-height: 1.8;
  font-size: 1.05rem;
}

.producer-content p {
  margin-bottom: 1.5rem;
  color: #444;
}

/* نقل قول */
.quote-card {
  position: relative;
  overflow: hidden;
}

.quote-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23198754" opacity="0.05" d="M0,0 L100,0 L100,100 L0,100 Z"/></svg>');
}

/* مشخصات فنی */
.spec-item {
  transition: all 0.3s ease;
  height: 100%;
}

.spec-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.spec-icon {
  width: 60px;
  height: 60px;
  background: rgba(25, 135, 84, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* بخش حمایت */
.producer-support-section {
  position: relative;
  overflow: hidden;
}

.producer-support-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(25,135,84,0.05) 0%, transparent 70%);
  z-index: 0;
}

.producer-support-section > .container {
  position: relative;
  z-index: 1;
}

.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(25, 135, 84, 0.2);
}

/* محصولات */
.producer-products-section {
  position: relative;
}

.product-card {
  background: white;
  transition: all 0.4s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.discount-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
}

.discount-badge .badge {
  font-size: 0.8rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.product-image-link {
  height: 200px;
  overflow: hidden;
}

.product-image {
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image {
  transform: scale(1.1);
}

.product-title a:hover {
  color: #198754 !important;
}

.current-price {
  font-size: 1.25rem;
}

/* Swiper Custom */

.swiper-button-next:after, .swiper-button-prev:after {
  font-size: 1rem;
  color: #198754;
}

.swiper-pagination-bullet-active {
  background: #198754 !important;
}
/* اضافه کردن به فایل CSS */
.breadcrumb-item a {
  cursor: pointer !important;
}

.breadcrumb-item a:hover {
  text-decoration: underline !important;
}

/* برای جلوگیری از block شدن کلیک‌ها */
.breadcrumb-item.active {
  pointer-events: none;
}
/* اضافه کردن به فایل CSS */
.object-fit-cover {
  object-fit: cover;
}

/* بهینه‌سازی تصاویر */
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* تصویر شاخص */
.featured-image-container img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* تصاویر گالری */
.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* تصاویر محصولات */
.product-image-link {
  height: 200px;
  overflow: hidden;
}

.product-image {
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image {
  transform: scale(1.1);
}

/* Responsive images */
@media (max-width: 768px) {
  .featured-image-container img {
    height: 300px;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .product-image-link {
    height: 160px;
  }
}

@media (max-width: 576px) {
  .featured-image-container img {
    height: 250px;
  }
  
  .gallery-item img {
    height: 180px;
  }
  
  .product-image-link {
    height: 140px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .producer-header h1 {
    font-size: 2rem;
  }
  
  .producer-badge {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .product-image-link {
    height: 160px;
  }
}

@media (max-width: 576px) {
  .producer-badge {
    width: 100%;
    justify-content: center;
  }
}
/* Fix برای نمایش درست محصولات تولیدکننده */
.producer-products-swiper .swiper-slide {
    width: auto !important;
    flex-shrink: 0;
    height: auto !important;
}

.producer-products-swiper .product-card {
    width: 200px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .producer-products-swiper .product-card {
        width: 150px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .producer-products-swiper .product-card {
        width: 180px;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .producer-products-swiper .product-card {
        width: 200px;
    }
}

@media (min-width: 993px) {
    .producer-products-swiper .product-card {
        width: 220px;
    }
}

/* ==========================================================
   ✨ ارتقای بصری v4.0 — هدر، اعتمادسازی، گالری/لایت‌باکس،
   امتیاز محصولات، نقشه، CTA شناور موبایل
   ========================================================== */

/* --- هدر: پس‌زمینه‌ی آرگانیک به‌جای سفید خام --- */
.producer-header {
  position: relative;
  border-bottom: none;
  padding: 3rem 1.5rem 2.5rem;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(25,135,84,0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(32,201,151,0.08) 0%, transparent 45%),
    #fbfdfc;
  overflow: hidden;
}

.producer-header::after{
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(25,135,84,0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .4;
  pointer-events: none;
}

.producer-header h1{
  position: relative;
  letter-spacing: -0.02em;
}

.producer-badge{
  position: relative;
  z-index: 1;
}

.producer-badge.location-badge{
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border-color: rgba(25,135,84,0.25);
}
.producer-badge.location-badge:hover{
  background: #198754;
  color: #fff !important;
  border-color: #198754;
  transform: translateY(-2px);
}
.producer-badge.location-badge:hover svg{ color: #fff !important; }

/* --- نوار اعتمادسازی (Trust Stats) --- */
.producer-trust-bar{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: rgba(25,135,84,0.12);
  border: 1px solid rgba(25,135,84,0.12);
  border-radius: 1.25rem;
  overflow: hidden;
  margin: 2rem auto 0;
  max-width: 720px;
}
.producer-trust-item{
  background: #fff;
  padding: 1.25rem .75rem;
  text-align: center;
}
.producer-trust-item .trust-num{
  font-size: 1.5rem;
  font-weight: 800;
  color: #198754;
  display: block;
  line-height: 1.2;
}
.producer-trust-item .trust-label{
  font-size: .78rem;
  color: #6c757d;
  font-weight: 600;
}

/* --- گالری: کارت‌های بزرگ‌تر، افکت هاور شیشه‌ای، آیکون بزرگ‌نمایی --- */
.producer-gallery-section{
  background: #fff !important;
  border: 1px solid #eef1ef;
}

.producer-gallery-swiper .gallery-item{
  position: relative;
  cursor: zoom-in;
}

.producer-gallery-swiper .gallery-item img{
  transition: transform .5s ease;
}

.producer-gallery-swiper .gallery-item:hover img{
  transform: scale(1.08);
}

.gallery-zoom-hint{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery-item:hover .gallery-zoom-hint{ opacity: 1; }
.gallery-zoom-hint svg{
  width: 34px; height: 34px; color: #fff;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}

.gallery-count-badge{
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: .3rem .65rem;
  border-radius: 50px;
  z-index: 2;
}

/* --- کارت ویدیوی «آشنایی با تولیدکننده» --- */
.producer-video-card{
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/9;
  background: #0f2f22;
}
.producer-video-card img{
  width: 100%; height: 100%; object-fit: cover; opacity: .65;
  transition: opacity .3s ease;
}
.producer-video-card:hover img{ opacity: .8; }
.producer-video-play{
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.producer-video-play span{
  width: 70px; height: 70px; border-radius: 50%;
  background: #198754; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(25,135,84,.5);
  transition: transform .3s ease;
}
.producer-video-card:hover .producer-video-play span{ transform: scale(1.1); }
.producer-video-play svg{ width: 26px; height: 26px; color: #fff; margin-right: -3px; }
.producer-video-label{
  position: absolute; bottom: 12px; right: 14px; left: 14px;
  color: #fff; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,.6);
}

/* --- لایت‌باکس سفارشی گالری --- */
.producer-lightbox{
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,15,12,0.94);
  display: none;
  align-items: center; justify-content: center;
  padding: 2rem 1rem;
}
.producer-lightbox.is-open{ display: flex; }
.producer-lightbox img{
  max-width: min(1000px, 92vw);
  max-height: 82vh;
  border-radius: .75rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.producer-lightbox-close,
.producer-lightbox-nav{
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s ease;
}
.producer-lightbox-close:hover,
.producer-lightbox-nav:hover{ background: rgba(255,255,255,0.25); }
.producer-lightbox-close{ top: 1.25rem; left: 1.25rem; }
.producer-lightbox-nav.prev{ top: 50%; right: 1.25rem; transform: translateY(-50%); }
.producer-lightbox-nav.next{ top: 50%; left: 1.25rem; transform: translateY(-50%); }
.producer-lightbox-counter{
  position: absolute; bottom: 1.25rem; right: 50%; transform: translateX(50%);
  color: #fff; font-size: .85rem; background: rgba(255,255,255,0.12);
  padding: .35rem .9rem; border-radius: 50px;
}

/* --- امتیاز محصولات --- */
.product-rating{
  display: flex; align-items: center; gap: .3rem; margin-bottom: .5rem;
}
.product-rating .stars{ color: #ffc107; font-size: .85rem; letter-spacing: 1px; }
.product-rating .rating-count{ font-size: .72rem; color: #94a3a8; }

/* --- CTA شناور موبایل --- */
.producer-sticky-cta{
  position: fixed;
  bottom: 0; right: 0; left: 0;
  z-index: 1050;
  background: #fff;
  box-shadow: 0 -6px 24px rgba(0,0,0,.12);
  padding: .75rem 1rem;
  display: flex;
  gap: .75rem;
  transform: translateY(110%);
  transition: transform .35s ease;
}
.producer-sticky-cta.is-visible{ transform: translateY(0); }
.producer-sticky-cta a{ flex: 1; }

@media (min-width: 992px){
  .producer-sticky-cta{ display: none; }
}

/* فضای خالی پایین صفحه در موبایل تا CTA شناور محتوا رو نپوشونه */
@media (max-width: 991.98px){
  .single-producer-page{ padding-bottom: 5rem; }
}
.producer-content p { text-align:justify;}
