/*
  Stay Play × Easy Orders Fasty
  Reviews styling — CSS only, no JS, no external libraries.

  Official Fasty selectors used:
  .product_tabs_container
  .reviews_container
  .reviews_summary
  .user_reviews_container
  .user_review
  .user_review_name
  .user_review_comment
  .user_review_img
  .swiper-pagination
  .swiper-pagination-bullet
  .swiper-pagination-bullet-active
*/

/* ===== Section / background ===== */
.reviews_container {
  --sp-review-bg: #f7f7fa;
  --sp-review-card: #ffffff;
  --sp-review-text: #17171b;
  --sp-review-muted: #777985;
  --sp-review-red: #ef3340;
  --sp-review-gold: #f4b400;
  --sp-review-border: rgba(24, 24, 32, .08);
  --sp-review-shadow: 0 10px 28px rgba(26, 28, 40, .07);

  direction: rtl;
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 72px) clamp(14px, 4vw, 42px);
  color: var(--sp-review-text);
  background:
    radial-gradient(circle at 12% 8%, rgba(239, 51, 64, .07), transparent 30%),
    var(--sp-review-bg);
  overflow: hidden;
}

.reviews_container,
.reviews_container * {
  box-sizing: border-box;
}

/* ===== Summary / title ===== */
.reviews_container .reviews_summary {
  position: relative;
  z-index: 1;
  margin: 0 auto clamp(24px, 4vw, 42px);
  text-align: center;
}

.reviews_container .reviews_summary h2,
.reviews_container .reviews_summary h3,
.reviews_container .reviews_summary > div:first-child {
  color: var(--sp-review-text);
  font-weight: 800;
}

/* Red line under the existing Fasty title */
.reviews_container .reviews_summary::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 99px;
  background: var(--sp-review-red);
}

/* ===== Cards container ===== */
.reviews_container .user_reviews_container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  align-items: stretch;
}

/* Each actual Fasty review card */
.reviews_container .user_review {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--sp-review-border);
  border-radius: 20px;
  background: var(--sp-review-card);
  box-shadow: var(--sp-review-shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

/* Quotation mark, no image or font needed */
.reviews_container .user_review::before {
  content: "“";
  position: absolute;
  top: 10px;
  right: 22px;
  color: var(--sp-review-red);
  font-family: Georgia, serif;
  font-size: 62px;
  font-weight: 900;
  line-height: 1;
  opacity: .16;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .reviews_container .user_review:hover {
    transform: translateY(-5px);
    border-color: rgba(239, 51, 64, .25);
    box-shadow: 0 16px 36px rgba(26, 28, 40, .12);
  }
}

/* ===== Review content ===== */
.reviews_container .user_review_comment {
  position: relative;
  z-index: 1;
  margin: 18px 0 25px;
  color: var(--sp-review-text);
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 500;
  line-height: 1.9;
  text-align: right;
}

/* ===== Customer identity ===== */
.reviews_container .user_review_name {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  color: var(--sp-review-text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.55;
}

.reviews_container .user_review_img {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  background: #e9edf3;
  box-shadow: 0 4px 12px rgba(25, 28, 40, .12);
}

/* If the theme puts the image in a different wrapper, keep it round too. */
.reviews_container .user_review_name img,
.reviews_container .user_review img {
  border-radius: 50%;
  object-fit: cover;
}

/* ===== Existing star elements ===== */
.reviews_container .stars,
.reviews_container .rating,
.reviews_container .review-rating,
.reviews_container [class*="star"] {
  direction: ltr;
  color: var(--sp-review-gold);
  letter-spacing: 1px;
  text-shadow: 0 2px 5px rgba(244, 180, 0, .18);
}

/* ===== Fasty global slider dots ===== */
.reviews_container .swiper-pagination {
  position: static;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 26px;
}

.reviews_container .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 !important;
  border-radius: 50%;
  background: #efbfc4;
  opacity: 1;
  transition: width .25s ease, background .25s ease;
}

.reviews_container .swiper-pagination-bullet-active {
  width: 28px;
  border-radius: 99px;
  background: var(--sp-review-red);
}

/* ===== Mobile: one card + horizontal swipe ===== */
@media (max-width: 700px) {
  .reviews_container {
    padding: 40px 14px 48px;
  }

  .reviews_container .user_reviews_container {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 12px;
  }

  .reviews_container .user_reviews_container::-webkit-scrollbar {
    display: none;
  }

  .reviews_container .user_review {
    flex: 0 0 min(86vw, 350px);
    min-height: 214px;
    padding: 22px 19px;
    border-radius: 18px;
    scroll-snap-align: start;
    box-shadow: 0 7px 20px rgba(26, 28, 40, .06);
  }

  .reviews_container .user_review_comment {
    margin: 17px 0 21px;
    font-size: 15px;
    line-height: 1.8;
  }

  .reviews_container .user_review_img {
    flex-basis: 43px;
    width: 43px;
    height: 43px;
  }
}

/* Optional dark version: add class reviews_container--dark to the same element */
.reviews_container.reviews_container--dark {
  --sp-review-bg: #11131a;
  --sp-review-card: #1a1d26;
  --sp-review-text: #f7f7f8;
  --sp-review-muted: #a9afba;
  --sp-review-border: rgba(255, 255, 255, .09);
  --sp-review-shadow: 0 12px 34px rgba(0, 0, 0, .2);
}

@media (prefers-reduced-motion: reduce) {
  .reviews_container *,
  .reviews_container *::before,
  .reviews_container *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
