/* === Reviews block on product page === */
.np-reviews { max-width: 1100px; margin: 80px auto; padding: 0 24px; font-family: Inter, sans-serif; }
.np-reviews__header { text-align: center; margin-bottom: 36px; }
.np-reviews__title { font-size: 36px; font-weight: 800; color: var(--np-navy); text-transform: uppercase; letter-spacing: -0.5px; margin: 0 0 16px; }
@media (max-width: 600px) { .np-reviews__title { font-size: 26px; } }
.np-reviews__summary { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; color: #555; }
.np-reviews__avg-stars-rate {
  position: relative;
  display: inline-block;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 1px;
  white-space: nowrap;
}
.np-reviews__avg-stars-rate__bg { color: #e1e3e8; }
.np-reviews__avg-stars-rate__fg {
  color: var(--np-yellow);
  position: absolute;
  inset: 0;
  width: var(--rate, 0%);
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}
.np-reviews__avg { font-size: 22px; font-weight: 800; color: var(--np-navy); }
.np-reviews__count { color: #777; }
/* Legacy class kept */
.np-reviews__avg-stars { color: var(--np-yellow); font-size: 22px; letter-spacing: -1px; }

.np-reviews__list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 40px; }
@media (max-width: 700px) { .np-reviews__list { grid-template-columns: 1fr; } }

.np-rev { background: #fff; border: 1px solid #eef0f3; border-radius: 14px; padding: 18px 20px; }
.np-rev__head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; flex-wrap: wrap; }
.np-rev__stars { color: var(--np-yellow); font-size: 16px; letter-spacing: -1px; }
.np-rev__author { display: flex; flex-direction: column; gap: 2px; }
.np-rev__name { font-weight: 700; color: var(--np-navy); font-size: 14px; }
.np-rev__verified { font-size: 11px; color: var(--np-green); font-weight: 600; }
.np-rev__date { margin-left: auto; font-size: 12px; color: #999; }
.np-rev__title { font-size: 16px; font-weight: 700; color: var(--np-navy); margin: 6px 0 6px; }
.np-rev__text { font-size: 14px; line-height: 1.55; color: #333; margin: 0 0 10px; white-space: pre-wrap; }
.np-rev__photo { display: inline-block; max-width: 200px; border-radius: 8px; overflow: hidden; }
.np-rev__photo img { display: block; width: 100%; height: auto; }
.np-rev__media { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.np-rev__media-item { display: block; width: 130px; max-width: 130px; border-radius: 8px; overflow: hidden; background: #f3f4f7; }
.np-rev__media-item img { display: block; width: 100%; height: 130px; object-fit: cover; cursor: zoom-in; }
.np-rev__media-item--video { width: 260px; max-width: 100%; height: auto; aspect-ratio: 16/9; }
.np-rev__media-item--video video, .np-rev__media-item--video { width: 100%; height: 100%; }
video.np-rev__media-item--video { display: block; }

.np-reviews__empty { text-align: center; color: #888; font-size: 15px; padding: 30px 0 20px; margin: 0 0 30px; }

/* Submit form */
.np-rev-form { max-width: 640px; margin: 0 auto; background: #f8f9fb; border: 1px solid #eef0f3; border-radius: 16px; padding: 6px 24px 24px; }
.np-rev-form summary { padding: 14px 0; font-weight: 700; color: var(--np-primary); cursor: pointer; font-size: 15px; }
.np-rev-form summary::marker { color: var(--np-primary); }
.np-rev-form[open] summary { border-bottom: 1px solid #eef0f3; padding-bottom: 14px; margin-bottom: 16px; }

.np-rev-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .np-rev-form__row { grid-template-columns: 1fr; } }

.np-rev-form__stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; padding: 8px 0; }
.np-rev-form__stars input { display: none; }
.np-rev-form__stars label { font-size: 28px; color: #e1e3e8; cursor: pointer; transition: color 0.1s; }
.np-rev-form__stars label:hover, .np-rev-form__stars label:hover ~ label,
.np-rev-form__stars input:checked ~ label { color: var(--np-yellow); }

.np-rev-form__submit { display: block; width: 100%; padding: 14px; background: var(--np-primary); color: #fff; border: none; border-radius: 999px; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; box-shadow: 0 6px 16px rgba(23,126,201,0.3); transition: background 0.15s, box-shadow 0.2s; font-family: inherit; }
.np-rev-form__submit:hover { background: #1265a1; box-shadow: 0 8px 20px rgba(23,126,201,0.45); }
.np-rev-form__submit:disabled { background: #999; cursor: not-allowed; }

.np-rev-form__note { margin: 10px 0 0; font-size: 12px; text-align: center; color: #888; }

.np-rev-form__success { background: #e8f8ed; border: 1.5px solid var(--np-green); border-radius: 12px; padding: 24px; text-align: center; }
.np-rev-form__success h3 { color: #1a7d4a; margin: 0 0 6px; }
.np-rev-form__success p { color: #2a5d3d; margin: 0; }

/* Make rating count in PDP clickable */
a.np-pdp__rcount-link { text-decoration: none; color: inherit; cursor: pointer; }
a.np-pdp__rcount-link:hover { color: var(--np-primary); }
