/* پلاگین اسلایدر انیمیشن - استایل‌های وردپرس */

.animated-slider-wrapper {
  margin: 20px 0;
  width: 100%;
}

.slider-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  background: #4a90e2;
  margin: 20px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.color-overlay {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #e94b4b;
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 10;
}

.color-overlay.slide-down {
  transform: translateY(100%);
}

.content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  z-index: 5;
}

.product-name {
  font-size: 48px;
  font-weight: bold;
  color: white;
  text-align: center;
  margin: 20px 0;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  position: relative;
  margin-top: -2px;
  gap: 70px;
  font-family: inherit;
}

.word-part {
  transition: transform 0.8s ease-out;
  display: inline-block;
}

.milkshake-image {
  width: 400px;
  height: 300px;
  margin: 5px 0;
  object-fit: contain;
  transition: opacity 1.5s ease;
  position: relative;
  z-index: 5;
  position: absolute;
}

.nutrition-panel {
  background: white;
  border-radius: 15px;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 19px;
  margin-top: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 15;
  min-width: 95%;
}

.nutrition-item {
  text-align: center;
  flex: 1;
}

.nutrition-value {
  font-size: 16px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 5px;
  transition: all 0.4s ease;
  font-family: inherit;
}

.nutrition-label {
  font-size: 12px;
  color: #7f8c8d;
  line-height: 1.2;
  font-family: inherit;
}

.controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 15;
}

.control-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.control-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.control-dot.active {
  background: white;
  transform: scale(1.2);
}

/* استایل‌های ریسپانسیو */
@media (max-width: 768px) {
  .slider-container {
    width: 100% !important;
    height: 350px;
    margin: 10px 0;
    border-radius: 15px;
  }
  
  .product-name {
    font-size: 36px;
    gap: 40px;
  }
  
  .milkshake-image {
    width: 300px;
    height: 250px;
  }
  
  .nutrition-panel {
    padding: 15px 20px;
    gap: 15px;
  }
  
  .nutrition-value {
    font-size: 14px;
  }
  
  .nutrition-label {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .slider-container {
    height: 300px;
    border-radius: 15px;
    width: 100% !important;
    margin: 10px 0;
  }
  
  .product-name {
    font-size: 28px;
    gap: 20px;
  }
  
  .milkshake-image {
    width: 250px;
    height: 200px;
  }
  
  .nutrition-panel {
    padding: 10px 15px;
    gap: 10px;
    min-width: 90%;
  }
  
  .nutrition-value {
    font-size: 12px;
  }
  
  .nutrition-label {
    font-size: 10px;
  }
  
  .control-dot {
    width: 10px;
    height: 10px;
  }
}

/* سازگاری با تم‌های مختلف وردپرس */
.animated-slider-wrapper * {
  box-sizing: border-box;
}

/* حذف margin‌های اضافی که ممکن است تم اعمال کند */
.animated-slider-wrapper p,
.animated-slider-wrapper div {
  margin: 0 !important;
}
