/**
 * Category Review Quotes - Styling
 * Version: 1.0.0
 */

/* Category review quote containers */
.category-review-quote {
  max-width: 1000px;
  width: 90vw;
  margin: 24px auto 32px;
  padding: 18px 22px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #eee;
}

.category-review-quote-slider {
  max-width: 1000px;
  width: 90vw;
  margin: 24px auto 32px;
  background: transparent;
  border-radius: 0;
  border: 0;
  padding: 0;
}

.category-review-quote-slider .slick-list {
  min-height: 160px;
}

.category-review-quote-single {
  max-width: 1000px;
  width: 90vw;
  margin: 24px auto 32px;
  min-height: 160px;
}

.category-review-quote-slider .crq-slide {
  padding: 10px;
}

/* Review card styling */
.review-card {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  max-width: 480px;
  height: auto;
  margin: 10px auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.review-card__image {
  flex: 0 0 110px;
  height: auto;
  overflow: hidden;
  border-right: 1px solid #eee;
  display: flex;
}

.review-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.review-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 10px 16px;
  flex: 1;
}

.review-card__product-name {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 2px 0;
  text-align: left;
}

.review-card__product-name a {
  color: #222;
}

.review-card__rating {
  color: #f5b301;
  font-size: 0.9rem;
  margin: 0 0 6px 0;
  letter-spacing: 1px;
}

.review-card__rating .star-rating {
  margin: 0 !important;
  float: none !important;
  display: inline-block;
}

.review-card__author {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 6px;
}

.review-card__comment {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.4;
  margin: 0;
  padding-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Make WC star rating match the style color */
.review-card__rating .star-rating span::before {
  color: #f5b301;
}

/* Responsive design */
@media (max-width: 600px) {
  .review-card {
    max-width: 100%;
    height: auto;
  }
  
  .review-card__image {
    flex: 0 0 100px;
  }
  
  .review-card__content {
    padding: 10px 14px;
  }
  
  .review-card__product-name {
    font-size: 0.95rem;
  }
  
  .review-card__comment {
    font-size: 0.85rem;
  }
}

/* Legacy classes for backwards compatibility */
.category-review-quote .crq-stars {
  display: inline-block;
}

.category-review-quote-slider .crq-stars {
  margin-bottom: 6px;
}

.category-review-quote blockquote.category-quote,
.category-review-quote-slider blockquote.category-quote {
  margin: 6px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: #111827;
}

.category-review-quote .crq-meta,
.category-review-quote-slider .crq-meta {
  color: #6b7280;
}

.category-review-quote .crq-meta .crq-author,
.category-review-quote-slider .crq-meta .crq-author {
  font-weight: 600;
}

.category-review-quote .crq-meta .crq-product,
.category-review-quote-slider .crq-meta .crq-product {
  color: var(--accentColor2, #007cba);
}

