/* Products index — scoped under .mira-storefront */

.mira-storefront .mira-products-index {
  margin-bottom: 5rem;
}

.mira-storefront .mira-products-index__main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.mira-storefront .mira-products-index__empty {
  margin: 2rem 0;
  font-size: 1.1rem;
  color: #666;
  text-align: center;
}

/* Reviews marquee slider */
.mira-storefront .mira-products-reviews {
  overflow: hidden;
  margin: 1.25rem 0 2rem;
  padding: 1.25rem 0;
}

.mira-storefront .mira-products-reviews__wrapper {
  overflow: hidden;
  width: 100%;
}

.mira-storefront .mira-products-reviews__track {
  display: flex;
  gap: 15px;
  width: max-content;
  animation: mira-products-reviews-slide 60s linear infinite;
  will-change: transform;
}

@keyframes mira-products-reviews-slide {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.mira-storefront .mira-products-reviews__stat {
  flex: 0 0 auto;
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px;
  text-align: center;
  background: linear-gradient(135deg, #ffc079, #ffd360);
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mira-storefront .mira-products-reviews__stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.mira-storefront .mira-products-reviews__stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.mira-storefront .mira-products-reviews__stat-total {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

.mira-storefront .mira-products-reviews__item {
  flex: 0 0 auto;
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  padding: 15px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mira-storefront .mira-products-reviews__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.mira-storefront .mira-products-reviews__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffc079, #ffd360);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.mira-storefront .mira-products-reviews__meta {
  flex: 1;
  min-width: 0;
}

.mira-storefront .mira-products-reviews__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 3px;
}

.mira-storefront .mira-products-reviews__stars {
  display: flex;
  gap: 2px;
}

.mira-storefront .mira-products-reviews__star {
  font-size: 14px;
  line-height: 1;
}

.mira-storefront .mira-products-reviews__star--filled {
  color: #ffd360;
}

.mira-storefront .mira-products-reviews__star--empty {
  color: #e0e0e0;
}

.mira-storefront .mira-products-reviews__comment {
  margin: 0 0 10px;
  font-size: 0.85rem;
  line-height: 1.5;
  font-style: italic;
  color: #555;
}

.mira-storefront .mira-products-reviews__product {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f5f5f5;
  font-size: 0.8rem;
}

.mira-storefront .mira-products-reviews__product-label {
  color: #999;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.mira-storefront .mira-products-reviews__product-link {
  color: #66927e;
  font-weight: 600;
  text-decoration: none;
}

.mira-storefront .mira-products-reviews__product-link:hover {
  color: #4a6b5a;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .mira-storefront .mira-products-reviews__stat,
  .mira-storefront .mira-products-reviews__item {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
  }

  .mira-storefront .mira-products-reviews__track {
    animation-duration: 40s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mira-storefront .mira-products-reviews__track {
    animation: none;
  }
}
