.woocommerce ul.products li.product {
  background: #ffffff !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  border: 1px solid #ccc !important;
  margin-bottom: 30px !important;
  text-align: center !important;
  padding: 10px !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

/* Product Image Section */
.product-img {
  position: relative !important;
  overflow: hidden !important;
}

.product-img img.info,
.product-img img.attachment-post-thumbnail {
  width: 211px !important;
  height: 211px !important;
  object-fit: cover !important;
  margin: 0 auto !important;
  display: block !important;
  transition: transform 0.4s ease !important;
}

/* Product Title */
.product-content h3 {
  margin: 10px 0 5px 0 !important;
  font-size: 13px !important;
  font-family: Helvetica, Arial, sans-serif !important;
  font-weight: normal !important;
  line-height: 1.3 !important;
  display: block !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

.product-content h3 a {
  color: #333 !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

.product-content h3 a:hover {
  color: #667eea !important;
}

/* Rating stars centered */
.rating {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  margin-bottom: 8px !important;
}

/* Stars container */
.star-rating {
  position: relative !important;
  font-size: 18px !important;
  line-height: 1 !important;
  letter-spacing: 2px !important;
  width: 95px !important;
  height: 18px !important;
  color: #ddd !important;
  overflow: hidden !important;
  display: inline-block !important;
  text-align: left !important;
}

/* Empty stars */
.star-rating::before {
  content: "★★★★★" !important;
  color: #ddd !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

/* Filled stars */
.star-rating span {
  display: block !important;
  height: 100% !important;
  width: var(--rating-percent) !important;
  overflow: hidden !important;
  position: relative !important;
}

.star-rating span::before {
  content: "★★★★★" !important;
  color: #ffc107 !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

/* Review count */
.review-count {
  font-size: 12px !important;
  color: #555 !important;
}



/* Price Styling */
.woocommerce ul.products li.product .price {
  font-size: 18px !important;
  font-weight: 700 !important;
  margin: 10px 0 !important;
  color: #333 !important;
}

.woocommerce ul.products li.product .price del {
  color: #999 !important;
  font-size: 14px !important;
  margin-right: 8px !important;
}

.woocommerce ul.products li.product .price ins {
  text-decoration: none !important;
  color: #e74c3c !important;
  font-weight: 800 !important;
}

/* Add to Cart Button - Updated to match carousel style */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button {
  background: #f5f5f5 !important;
  color: #000 !important;
  font-weight: bold !important;
  border-radius: 6px !important;
  border: 0.1px solid #ccc !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
  text-align: center !important;
  text-decoration: none !important;
  display: block !important;
  transition: all 0.2s ease !important;
  margin-top: auto !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.button:hover {
  background: #e2e2e2 !important;
  transform: translateY(2px) !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2) !important;
}

.woocommerce ul.products li.product .button.out-of-stock,
.woocommerce ul.products li.product a.button.out-of-stock {
  background: #ddd !important;
  color: #999 !important;
  cursor: not-allowed !important;
}

/* Sale Badge - Updated to match carousel style */
.woocommerce span.onsale {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  background: #257DF6 !important;
  color: #000 !important;
  border-radius: 20px !important;
  padding: 3px 8px !important;
  font-size: 12px !important;
  font-weight: bold !important;
  z-index: 5 !important;
  min-height: auto !important;
  line-height: 1.2 !important;
}

/* Fix any layout issues */
.product-single {
  height: 100% !important;
  display: block !important;
}

.product {
  height: 100% !important;
  display: block !important;
}

/* Ensure images don't break layout */
.product-img a {
  display: block !important;
}

.product-img img {
  max-width: 100% !important;
  height: auto !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .product-content h3 {
    font-size: 12px !important;
  }
  
  .woocommerce ul.products li.product .price {
    font-size: 16px !important;
  }
  
  .product-action {
    flex-wrap: wrap !important;
  }
  

  
  .product-img img.info,
  .product-img img.attachment-post-thumbnail {
    width: 100% !important;
    height: auto !important;
  }
}