/* ILZE product page: recommendations rows, category chips, reviews block. */

/* ── recommendations ─────────────────────────────── */
.ilze-related { margin: 8px 0 0; }
.ilze-related .ilze-related-row { margin: 0 0 36px; }
.ilze-related .ilze-section-head { margin-bottom: 14px; }
.ilze-related .ilze-section-title { color: #1a1a1a; text-decoration: none; cursor: default; }

.ilze-related-cats { margin: -8px 0 40px; }
/* headings in the same style as the product rows (orange underline) */
.ilze-related-cats__title,
.ilze-reviews__title {
  margin: 0 0 16px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
  text-transform: none;
}
.ilze-related-cats__title { display: inline-block; padding-bottom: 6px; border-bottom: 3px solid #f26f21; }
.ilze-related-cats__list { display: flex; flex-wrap: wrap; gap: 10px; }
.ilze-related-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 10px;
  background: #f1f2f4;
  color: #2b313b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background-color .15s, color .15s;
}
.ilze-related-chip:hover { background: #fff1e8; color: #d95e14; }

/* ── stars ────────────────────────────────────────── */
.ilze-stars {
  --ilze-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E");
  display: inline-block;
  width: 110px;
  height: 20px;
  background: linear-gradient(90deg, #f5a623 var(--ilze-stars, 0%), #e3e5e8 var(--ilze-stars, 0%));
  -webkit-mask: var(--ilze-star) left center / 22px 20px repeat-x;
  mask: var(--ilze-star) left center / 22px 20px repeat-x;
}
.ilze-stars--lg { width: 140px; height: 26px; -webkit-mask-size: 28px 26px; mask-size: 28px 26px; }

/* ── reviews ──────────────────────────────────────── */
.ilze-reviews { margin: 8px 0 44px; }
.ilze-reviews__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 3px solid #f26f21;
}
.ilze-reviews__title-count {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f1f2f4;
  font-size: 14px;
  color: #555;
}
.ilze-reviews__grid {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.ilze-reviews--empty .ilze-reviews__grid { grid-template-columns: minmax(0, 1fr); }
.ilze-reviews--empty .ilze-reviews__main { display: none; }

.ilze-reviews__summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px;
  border: 1.5px solid #ececec;
  border-radius: 14px;
  background: #fff;
}
.ilze-reviews--empty .ilze-reviews__summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "stars title btn" "stars text btn" "stars hint hint";
  align-items: center;
  column-gap: 22px;
  row-gap: 4px;
  padding: 22px 26px;
  background: #fafafa;
}
.ilze-reviews--empty .ilze-stars { grid-area: stars; }
.ilze-reviews--empty .ilze-reviews__empty-title { grid-area: title; }
.ilze-reviews--empty .ilze-reviews__empty-text { grid-area: text; }
.ilze-reviews--empty .ilze-reviews__btn { grid-area: btn; margin: 0; }
.ilze-reviews--empty .ilze-reviews__hint { grid-area: hint; justify-self: end; }

.ilze-reviews__score { display: flex; align-items: baseline; gap: 6px; line-height: 1; }
.ilze-reviews__avg { font-size: 44px; font-weight: 800; color: #1a1a1a; }
.ilze-reviews__of { font-size: 16px; color: #999; }
.ilze-reviews__count { font-size: 14px; color: #6b7280; }
.ilze-reviews__bars { width: 100%; margin: 8px 0 4px; padding: 0; list-style: none; }
.ilze-reviews__bars li { display: flex; align-items: center; gap: 6px; margin: 0 0 5px; font-size: 13px; color: #555; }
.ilze-reviews__bar-grade { width: 10px; text-align: right; }
.ilze-reviews__bar-star {
  width: 13px; height: 13px; background: #f5a623;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ilze-reviews__bar { flex: 1; height: 7px; border-radius: 4px; background: #eef0f3; overflow: hidden; }
.ilze-reviews__bar > span { display: block; height: 100%; border-radius: 4px; background: #f5a623; }
.ilze-reviews__bar-count { width: 22px; text-align: right; color: #999; }

.ilze-reviews__empty-title { font-size: 17px; font-weight: 700; color: #1a1a1a; }
.ilze-reviews__empty-text { margin: 0; font-size: 14px; line-height: 1.5; color: #6b7280; }

.ilze-reviews__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #f26f21;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(242, 111, 33, .28);
  transition: transform .12s, box-shadow .12s;
}
.ilze-reviews__btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(242, 111, 33, .36); }
.ilze-reviews__btn .material-icons { font-size: 18px; }
.ilze-reviews__hint { margin: 0; font-size: 12px; color: #9ca3af; }

/* review cards */
.ilze-reviews #product-comments-list { display: grid; gap: 14px; }
.ilze-reviews #product-comments-list .product-comment-list-item {
  margin: 0;
  padding: 18px 20px;
  border: 1.5px solid #ececec;
  border-radius: 14px;
  background: #fff;
}
.ilze-reviews #product-comments-list .comment-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ilze-reviews #product-comments-list .comment-meta { display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; color: #6b7280; }
.ilze-reviews #product-comments-list .comment-author { font-weight: 700; color: #1a1a1a; }
.ilze-reviews #product-comments-list .comment-content p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #333; }
.ilze-reviews #product-comments-list .comment-buttons { margin-top: 10px; }
.ilze-reviews #product-comments-list-pagination ul { display: flex; justify-content: center; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.ilze-reviews #product-comments-list-pagination li span { display: inline-grid; place-items: center; min-width: 34px; height: 34px; border-radius: 999px; cursor: pointer; }
.ilze-reviews #product-comments-list-pagination li.active span { background: #2b5474; color: #fff; }

/* preview: first 3 reviews (2 on phones), texts clamped to 4 lines, no pager until expanded */
.ilze-reviews:not(.is-expanded) #product-comments-list .product-comment-list-item:nth-child(n+4) { display: none; }
.ilze-reviews:not(.is-expanded) #product-comments-list-pagination { display: none !important; }
.ilze-reviews #product-comments-list-footer { margin: 0 !important; padding: 0 !important; min-height: 0 !important; border: 0 !important; }
.ilze-reviews:not(.is-expanded) #product-comments-list .comment-content p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ilze-reviews__more {
  display: block;
  width: 100%;
  max-width: 320px;
  height: 44px;
  margin: 16px auto 0;
  border: 1.5px solid #2b5474;
  border-radius: 999px;
  background: #fff;
  color: #2b5474;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.ilze-reviews__more:hover { background: #2b5474; color: #fff; }
.ilze-reviews__more[hidden] { display: none; }

/* ── phones ───────────────────────────────────────── */
@media (max-width: 767px) {
  .ilze-related .ilze-related-row { margin-bottom: 28px; }
  .ilze-related-cats { margin-bottom: 30px; }
  .ilze-related-cats__list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
  .ilze-related-cats__list::-webkit-scrollbar { display: none; }
  .ilze-related-chip { flex: 0 0 auto; }

  .ilze-reviews__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ilze-reviews:not(.is-expanded) #product-comments-list .product-comment-list-item:nth-child(n+3) { display: none; }
  .ilze-reviews__more { max-width: none; }
  .ilze-reviews__summary { padding: 18px; }
  .ilze-reviews--empty .ilze-reviews__summary {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "stars" "title" "text" "btn" "hint";
    justify-items: start;
    row-gap: 8px;
    padding: 20px;
  }
  .ilze-reviews--empty .ilze-reviews__btn { width: 100%; margin-top: 6px; }
  .ilze-reviews--empty .ilze-reviews__hint { justify-self: center; }
}
