/* Recommended Products Frontend Styles */

.rp-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 120px 20px;
}

.rp-page-title {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #333;
  font-weight: 600;
}

.rp-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.rp-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rp-product-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #f5f5f5;
  position: relative;
}

.rp-product-image a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.rp-product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.rp-product-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.rp-product-title {
  margin: 0 0 10px 0;
  font-size: 1.2em;
  line-height: 1.4;
}

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

.rp-product-title a:hover {
  color: #0073aa;
}

.rp-product-rating {
  margin: 8px 0;
  font-size: 0.9em;
}

.rp-product-rating .star-rating {
  float: left;
  margin-right: 10px;
}

.rp-product-price {
  margin: 10px 0;
  font-size: 1.5em;
  font-weight: 600;
  color: #0073aa;
  clear: both;
}

.rp-product-price .amount {
  font-size: 1.2em;
}

.rp-product-desc {
  color: #666;
  font-size: 0.95em;
  line-height: 1.6;
  margin: 10px 0;
  flex-grow: 1;
}

.rp-product-actions {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.rp-product-actions .button {
  width: 100%;
  text-align: center;
  padding: 10px 15px;
  background-color: #0073aa;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.rp-product-actions .button:hover {
  background-color: #005a87;
}

.rp-product-actions .button.add_to_cart_button {
  width: 100%;
}

.rp-empty-message {
  text-align: center;
  color: #999;
  padding: 60px 20px;
  font-size: 1.1em;
}

/* Responsive design */
@media (max-width: 768px) {
  .rp-page-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .rp-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }

  .rp-product-image {
    height: 220px;
  }

  .rp-product-body {
    padding: 15px;
  }

  .rp-product-price {
    font-size: 1.3em;
  }
}

@media (max-width: 480px) {
  .rp-products-grid {
    grid-template-columns: 1fr;
  }

  .rp-product-image {
    height: 250px;
  }

  .rp-page-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }
}
