/**
 * Customer Reviews Component Styles
 * 
 * Features:
 * - Review cards with ratings
 * - Responsive grid layout
 * - Read more links
 * - Star ratings
 */

/* ===================================
   Customer Reviews Container
   =================================== */

.customer-reviews {
  background-color: var(--color-white);
  padding: 20px 16px 80px;
  max-width: 1139px;
  margin: 0 auto;
}

.customer-reviews__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0;
}

/* ===================================
   Header Section
   =================================== */

.customer-reviews__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.customer-reviews__title {
  font-family: var(--font-bold);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-black);
  margin: 0;
}

.customer-reviews__read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-nava);
  text-decoration: none;
  font-family: var(--font-bold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.customer-reviews__read-more:hover {
  color: var(--color-nava-dark);
}

.customer-reviews__read-more svg {
  flex-shrink: 0;
}

/* ===================================
   Reviews List (Grid)
   =================================== */

.customer-reviews__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

/* ===================================
   Review Card
   =================================== */

.customer-reviews__card {
  display: flex;
  padding-bottom: 20px;
  border-bottom: 1px solid hsla(0, 0%, 80%, 1);
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s ease;
}
.customer-reviews__card-title {
  font-family: var(--font-bold);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-black);
  margin: 0;
  line-height: 1.4;
}

.customer-reviews__card-text {
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.6;
  color: #333333;
  margin: 0;
  flex: 1;
}

/* Card Rating */
.customer-reviews__card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 0px;
}

.customer-reviews__card-rating img {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

.customer-reviews__card-rating-value {
  font-family: var(--font-bold);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-black);
  margin-left: 6px;
  transform: translateY(1.5px);
}

/* ===================================
   Footer (Read More Button)
   =================================== */

.customer-reviews__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
.sticky-add-to-cart__info-container {
  display: flex;
  flex-direction: row;
  gap: 4px;
}
.sticky-add-to-cart__brand {
  font-family: var(--font-bold);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-black);
  margin: 0;
  transform: translateY(4px);
}
.sticky-add-to-cart__title {
  font-family: var(--font-bold);
  font-size: 14px;
  font-weight: 200;
  color: var(--color-black);
  margin: 0;
  transform: translateY(4px);
}

.customer-reviews__read-more-btn {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  gap: 6px;
  color: var(--color-nava);
  text-decoration: none;
  font-family: var(--font-bold);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}
.sticky-add-to-cart__pricing-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
  padding: 0 8px;
  @media (max-width: 767px) {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    justify-content: space-between;
    padding: 0 8px;
  }
}
.customer-reviews__read-more-btn:hover {
  color: var(--color-nava-dark);
}

.customer-reviews__read-more-btn svg {
  flex-shrink: 0;
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet: 768px - 1023px */
@media (max-width: 1023px) {
  .customer-reviews__title {
    font-size: 22px;
  }
}

/* Mobile: 320px - 767px */
@media (max-width: 767px) {
  .customer-reviews {
    padding: 40px 0;
  }

  .customer-reviews__container {
    padding: 0 var(--spacing-md);
  }

  .customer-reviews__header {
    margin-bottom: 15px;
  }

  .customer-reviews__title {
    font-size: 20px;
  }

  .customer-reviews__list {
    gap: 6px;
    margin-bottom: 15px;
  }

  .customer-reviews__card {
    padding: 10px 0px;
    gap: 10px;
  }

  .customer-reviews__card-title {
    font-size: 15px;
  }

  .customer-reviews__card-text {
    font-size: 13px;
  }
  .customer-reviews__card-rating {
    gap: 2px;
  }

  .customer-reviews__card-rating-value {
    font-size: 13px;
  }
}
