.shop-reviews {
  --review-panel: #f1f5f5;
  --review-muted: #4c626e;
  --review-accent: #557619;
  padding: clamp(32px, 5vw, 76px) 4.5%;
  color: var(--ink);
}

html[data-theme="dark"] .shop-reviews {
  --review-panel: #1b2b35;
  --review-muted: #b2c3cb;
  --review-accent: var(--lime);
}

.reviews-panel {
  padding: clamp(20px, 3.8vw, 56px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--review-panel);
}

.reviews-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.reviews-heading h2 {
  margin: 0;
  font-size: clamp(33px, 5vw, 68px);
  line-height: .98;
  letter-spacing: -.065em;
  font-weight: 800;
}

.reviews-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--review-muted);
  font-size: 13px;
  font-weight: 700;
}

.reviews-count::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--review-accent);
  content: "";
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  overflow-wrap: anywhere;
}

.review-card p,
.review-card blockquote {
  margin: 0;
}

.review-stars {
  color: var(--review-accent);
  font-size: 16px;
  letter-spacing: .13em;
  line-height: 1.15;
}

.review-card blockquote {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.review-product {
  color: var(--review-muted);
  font-size: 12px;
  line-height: 1.45;
}

.review-byline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.review-date {
  color: var(--review-muted);
}

.reviews-status {
  margin: 0 0 14px;
  color: var(--review-muted);
  font-size: 14px;
}

.reviews-more {
  margin-top: 18px;
}

.reviews-more summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  min-height: 46px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink);
  background: var(--paper);
  font-size: 13px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.reviews-more summary::-webkit-details-marker { display: none; }
.reviews-more summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.reviews-more summary:hover { background: var(--soft); }
.reviews-more[open] .reviews-more-show,
.reviews-more:not([open]) .reviews-more-hide { display: none; }
.reviews-more[open] > .reviews-grid { margin-top: 14px; }

.reviews-toggle-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lime);
  color: #182a22;
}

.reviews-toggle-icon::before,
.reviews-toggle-icon::after {
  grid-area: 1 / 1;
  width: 10px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  content: "";
}

.reviews-toggle-icon::after { transform: rotate(90deg); }
.reviews-more[open] .reviews-toggle-icon::after { display: none; }

@media (max-width: 1000px) {
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .shop-reviews { padding-inline: 14px; }
  .reviews-panel { padding: 18px 14px; border-radius: 16px; }
  .reviews-grid { grid-template-columns: minmax(0, 1fr); }
  .reviews-more summary { width: 100%; }
}
