.deva-product-slider-container {
  padding: 20px 40px;
  position: relative;
}

.deva-product-slider-item {
  height: auto;
}

.product-card {
  padding: 15px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.product-title {
  font-size: 16px;
}

.product-price {
  font-weight: bold;
}

.swiper-button-prev,
.swiper-button-next {
  color: #333;
}

.swiper-pagination-bullet-active {
  background: #333;
}

.deva-products-slider-wrapper {
  padding: 40px 0;
  position: relative;
}

.deva-products-slider-container {
  position: relative;
  margin: 0 auto;
}

.deva-product-slide {
  height: auto;
}

.deva-product-card {
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.3s ease;
  filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.2));
  background: #fff;
  border: 1px solid #b5d1a7;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: visible;
}

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

/* Enhanced Product Link */
.deva-product-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Enhanced Product Image Wrapper */
.deva-product-image-wrapper {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 15px;
}

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

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

.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;
}

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

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

.deva-favorite-heart svg {
  width: 16px;
  height: 16px;
  fill: #999;
  transition: fill 0.3s ease;
}

.deva-favorite-heart.active svg,
.deva-favorite-heart:hover svg {
  fill: #e74c3c;
}

/* DEVA Price Overlay */
.deva-price-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(181, 209, 167, 0.95);
  color: #fff;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

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

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

.deva-product-content {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

/* Legacy compatibility for older layout */
.title-review-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

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

.deva-product-title a {
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  transition: color 0.3s ease;
}

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

/* DEVA Product Excerpt */
.deva-product-excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  margin-bottom: 8px;
}

/* DEVA Single Star Rating */
.deva-single-star-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

.deva-single-star-rating .star-icon {
  color: #ffa500;
  font-size: 14px;
}

.deva-single-star-rating .rating-score {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.deva-single-star-rating .rating-count {
  font-size: 12px;
  color: #666;
}

/* Legacy rating for backwards compatibility */
.deva-product-rating {
  color: #ffd700;
}

/* DEVA Product Actions */
.deva-product-actions {
  margin-top: auto;
  padding-top: 10px;
}

.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-add-to-cart-btn:hover {
  background: #3d6234;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(72, 115, 61, 0.3);
}

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

.deva-out-of-stock {
  color: #999;
  font-style: italic;
  text-align: center;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 8px;
  width: 100%;
  display: block;
}

/* Focus states for accessibility */
.deva-add-to-cart-btn:focus {
  outline: 2px solid #48733d;
  outline-offset: 2px;
}

/* Loading state for add to cart */
.deva-add-to-cart-btn.loading:after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Legacy button for backwards compatibility */
.deva-button {
  display: inline-block !important;
  padding: 10px 20px;
  background: #48733d;
  color: #ffffff;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
  font-weight: bold;
}

.deva-button:hover {
  background: #15323a;
  color: #ffffff;
  transition: all 0.3s ease;
}

/* Navigation buttons */
.deva-products-nav {
  position: absolute;
  top: -50px;
  right: 0;
  display: flex;
  gap: 10px;
}

.deva-products-button-prev,
.deva-products-button-next {
  width: 40px;
  height: 40px;
  background: #ffffff;
  border: 2px solid #304624;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.deva-products-button-prev:after,
.deva-products-button-next:after {
  font-size: 18px;
  color: #304624;
}

.deva-products-button-prev:hover,
.deva-products-button-next:hover {
  background: #304624;
}

.deva-products-button-prev:hover:after,
.deva-products-button-next:hover:after {
  color: #ffffff;
}

/* Pagination */
.deva-products-pagination {
  position: relative;
  margin-top: 20px;
  text-align: center;
}

.deva-products-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #dddddd;
  opacity: 1;
}

.deva-products-pagination .swiper-pagination-bullet-active {
  background: #304624;
}

/* Mobile Responsiveness for Product Slider */
@media (max-width: 768px) {
  .deva-products-slider-wrapper {
    padding: 20px 0;
  }
  
  .deva-product-slider-container {
    padding: 10px 20px;
  }

  .deva-product-card {
    padding: 15px;
  }

  .deva-product-image,
  .deva-product-placeholder {
    height: 180px;
  }
  
  .deva-product-title {
    font-size: 14px;
  }
  
  .deva-product-excerpt {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .deva-add-to-cart-btn {
    padding: 10px 12px;
    font-size: 12px;
    letter-spacing: 0.3px;
    width: 100%;
  }

  .deva-price-overlay {
    padding: 3px 6px;
    font-size: 11px;
  }

  .deva-favorite-heart {
    width: 28px;
    height: 28px;
  }

  .deva-favorite-heart svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  .deva-products-nav {
    top: auto;
    bottom: -60px;
    right: 50%;
    transform: translateX(50%);
  }

  .deva-products-button-prev,
  .deva-products-button-next {
    width: 35px;
    height: 35px;
  }

  .deva-product-card {
    padding: 12px;
  }

  .deva-product-image,
  .deva-product-placeholder {
    height: 160px;
  }
}

/* Enhanced hover effects for desktop */
@media (min-width: 769px) {
  .deva-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(181, 209, 167, 0.4);
  }

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

  .deva-add-to-cart-btn:hover {
    transform: translateY(-2px);
  }
}

/* Loading states and animations */
.deva-product-card.loading {
  opacity: 0.7;
}

.deva-product-image.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Accessibility improvements */
.deva-favorite-heart:focus,
.deva-add-to-cart-btn:focus,
.deva-buy-now-btn:focus {
  outline: 2px solid #48733d;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .deva-product-card {
    border: 2px solid #000;
  }
  
  .deva-price-overlay {
    background: #000;
    color: #fff;
  }
  
  .deva-sale-badge {
    background: #000;
    color: #fff;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .deva-product-card,
  .deva-product-image,
  .deva-add-to-cart-btn,
  .deva-buy-now-btn,
  .deva-favorite-heart {
    transition: none;
  }
  
  .deva-product-card:hover {
    transform: none;
  }
  
  .deva-product-image:hover {
    transform: none;
  }
}
