/* DEVA Products Slider Styles */

.deva-products-slider-section {
  padding: 20px 0;
  background: #fff;
}

.deva-products-slider-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 30px;
  font-family: var(--heading-font, inherit);
}

.deva-products-slider-wrapper {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 20px;
}

/* Swiper specific styles for products slider */
.deva-products-slider-wrapper .swiper {
  padding: 20px 0 60px 0; /* Extra padding for navigation and pagination */
  overflow: visible;
}

.deva-products-slider-wrapper .swiper-wrapper {
  align-items: stretch;
}

.deva-products-slider-wrapper .swiper-slide {
  height: auto;
  display: flex;
}

/* Product card styles for slider */
.deva-product-card-slider {
  background: #fff;
  border: 1px solid #b5d1a7;
  border-radius: 8px;
  padding: 5px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: visible;
  max-width: 240px;
}

.swiper-slide {
  justify-content: center;
}

.deva-product-card-slider:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(181, 209, 167, 0.3);
}

.deva-product-card-slider .deva-product-image-wrapper {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 15px;
}

.deva-product-card-slider .deva-product-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.deva-product-card-slider:hover .deva-product-image {
  transform: scale(1.02);
}

.deva-product-card-slider .deva-product-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #b5d1a7, #9bc48a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
}

/* Overlay elements */
.deva-product-card-slider .deva-favorite-heart {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
}

.deva-product-card-slider .deva-favorite-heart:hover {
  background: #fff;
  transform: scale(1.1);
}

.deva-product-card-slider .deva-favorite-heart.loading {
  opacity: 0.7;
  cursor: not-allowed;
  animation: pulse 1.5s infinite;
}

.deva-product-card-slider .deva-favorite-heart.active {
  background: #fff;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.deva-product-card-slider .deva-favorite-heart svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
  transition: fill 0.3s ease;
  stroke: #666;
  stroke-width: 1;
}

.deva-product-card-slider .deva-favorite-heart.active svg {
  fill: #e74c3c;
  stroke: #e74c3c;
}

.deva-product-card-slider .deva-favorite-heart:hover svg {
  fill: #e74c3c;
  stroke: #e74c3c;
}

.deva-product-card-slider .deva-price-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fafafa;
  color: #202f19;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
  border: 1px solid rgba(181, 209, 167, 0.95);
}

.deva-product-card-slider .deva-sale-badge {
  position: absolute;
  bottom: 15px;
  left: 10px;
  background: #e74c3c;
  color: #fff;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
  text-transform: uppercase;
}

/* Product info */
.deva-product-card-slider .deva-product-info-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.deva-product-card-slider .deva-product-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0px;
}

.deva-product-card-slider .deva-product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.deva-product-card-slider .deva-product-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 8px 0;
  color: #333;
}

.deva-product-card-slider .deva-product-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.deva-product-card-slider .deva-product-title a:hover {
  color: #b5d1a7;
}

.deva-product-card-slider .deva-single-star-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

.deva-product-card-slider .star-icon {
  color: #ffa500;
  font-size: 14px;
}

.deva-product-card-slider .rating-score {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.deva-product-card-slider .rating-count {
  font-size: 12px;
  color: #666;
}

.deva-product-card-slider .deva-product-excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  margin-bottom: 8px;
}

.deva-product-card-slider .deva-product-actions {
  margin-top: auto;
  padding-top: 10px;
}

.deva-product-card-slider .deva-add-to-cart-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 15px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 14px;
  border: none;
  min-height: 44px;
  box-sizing: border-box;
  background: #48733d;
  color: #fff;
}

.deva-product-card-slider .deva-add-to-cart-btn:hover {
  background: #3d6234;
  transform: scale(1.05);
  box-shadow: 0 3px 10px rgba(72, 115, 61, 0.3);
}

.deva-product-card-slider .deva-add-to-cart-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.deva-product-card-slider .deva-out-of-stock {
  display: block;
  text-align: center;
  padding: 12px 15px;
  background: #f8f9fa;
  color: #666;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Navigation buttons */
.deva-products-slider-wrapper .swiper-button-next,
.deva-products-slider-wrapper .swiper-button-prev {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(181, 209, 167, 0.3);
  border: 1px solid #b5d1a7;
  transition: all 0.3s ease;
}

.deva-products-slider-wrapper .swiper-button-next:after,
.deva-products-slider-wrapper .swiper-button-prev:after {
  font-size: 18px;
  font-weight: 700;
  color: #48733d;
}

.deva-products-slider-wrapper .swiper-button-next:hover,
.deva-products-slider-wrapper .swiper-button-prev:hover {
  background: #48733d;
  transform: scale(1.1);
  border-color: #48733d;
}

.deva-products-slider-wrapper .swiper-button-next:hover:after,
.deva-products-slider-wrapper .swiper-button-prev:hover:after {
  color: white;
}

.deva-products-slider-wrapper .swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.deva-products-slider-wrapper .swiper-button-disabled:hover {
  background: #fff;
  transform: none;
  border-color: #b5d1a7;
}

/* Pagination */
.deva-products-slider-wrapper .swiper-pagination {
  bottom: 10px;
  position: relative;
  margin-top: 20px;
}

.deva-products-slider-wrapper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #b5d1a7;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.deva-products-slider-wrapper .swiper-pagination-bullet-active {
  background: #48733d;
  opacity: 1;
  transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .deva-products-slider-section {
    padding: 30px 0;
  }

  .deva-products-slider-title {
    font-size: 1.75rem;
    margin-bottom: 20px;
  }

  .deva-products-slider-wrapper {
    padding: 0 15px;
  }

  .deva-products-slider-wrapper .swiper-button-next,
  .deva-products-slider-wrapper .swiper-button-prev {
    display: none; /* Hide navigation buttons on mobile */
  }

  .deva-product-card-slider .deva-product-info-wrapper {
    padding: 0; /* Remove padding since it's handled by card padding */
  }

  .deva-product-card-slider .deva-product-title {
    font-size: 15px;
  }

  .deva-product-card-slider .deva-add-to-cart-btn {
    padding: 10px 15px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .deva-products-slider-title {
    font-size: 1.5rem;
  }

  .deva-product-card-slider .deva-product-info-wrapper {
    padding: 0; /* Remove padding since it's handled by card padding */
  }

  .deva-product-card-slider .deva-product-excerpt {
    font-size: 13px;
  }
}
