/* Product reviews widget */
.reviews-section { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid #eee; scroll-margin-top: 110px; }
.pd-rating-badge { display: inline-flex; align-items: center; gap: .5rem; margin: -.25rem 0 .85rem; padding: .3rem .75rem; background: #faf8f0; border: 1px solid rgba(203,183,0,.35); border-radius: 50px; font-size: .9rem; color: #444; cursor: pointer; transition: background .2s, transform .2s; }
.pd-rating-badge:hover { background: rgba(203,183,0,.18); transform: translateY(-1px); }
.reviews-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.reviews-head h2 { font-family: var(--font-heading); font-size: 1.8rem; margin: 0; color: #111; }
.reviews-summary { display: flex; align-items: center; gap: .6rem; color: #555; font-size: .95rem; }
.reviews-summary .stars { font-size: 1.15rem; }
.stars { color: #CBB700; letter-spacing: 2px; white-space: nowrap; }
.stars .off { color: #ddd; }

.review-list { display: flex; flex-direction: column; gap: 1rem; }
.review-item { background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 1.1rem 1.25rem; box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.review-item-top { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; flex-wrap: wrap; }
.review-avatar { width: 38px; height: 38px; border-radius: 50%; background: #CBB700; color: #1f1f1f; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.review-name { font-weight: 600; color: #111; }
.review-date { color: #999; font-size: .82rem; margin-left: auto; }
.review-comment { color: #444; line-height: 1.65; margin: .4rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.reviews-empty, .reviews-error { color: #777; padding: 1.25rem; background: #fafafa; border-radius: 12px; text-align: center; }

.reviews-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; align-items: center; }
.reviews-btn { border: 2px solid #CBB700; background: #fff; color: #1f1f1f; padding: .65rem 1.4rem; border-radius: 50px; font-weight: 600; cursor: pointer; transition: all .25s; font-family: inherit; font-size: .95rem; }
.reviews-btn:hover { background: #CBB700; }
.reviews-btn.primary { background: #CBB700; }
.reviews-btn.primary:hover { background: #655B00; color: #fff; border-color: #655B00; }
.reviews-btn:disabled { opacity: .6; cursor: not-allowed; }

.review-form { margin-top: 1.5rem; padding: 1.5rem; background: #faf8f0; border: 1px solid rgba(203,183,0,.35); border-radius: 16px; display: none; scroll-margin-top: 110px; }
.review-form.open { display: block; }
.review-form h3 { font-family: var(--font-heading); font-size: 1.4rem; margin: 0 0 1rem; }
.review-field { margin-bottom: 1rem; }
.review-field label { display: block; font-weight: 500; margin-bottom: .35rem; font-size: .92rem; }
.review-field input[type=text], .review-field textarea { width: 100%; padding: .75rem .9rem; border: 1px solid #ccc; border-radius: 12px; font-family: inherit; font-size: .95rem; background: #fff; box-sizing: border-box; }
.review-field input:focus, .review-field textarea:focus { outline: none; border-color: #CBB700; box-shadow: 0 0 0 2px rgba(203,183,0,.3); }
.review-field textarea { min-height: 110px; resize: vertical; }
.review-counter { text-align: right; font-size: .78rem; color: #999; margin-top: .2rem; }

.star-picker { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.star-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-picker label { font-size: 2rem; line-height: 1; color: #ddd; cursor: pointer; margin: 0; transition: color .15s, transform .15s; }
.star-picker label:hover, .star-picker label:hover ~ label, .star-picker input:checked ~ label { color: #CBB700; }
.star-picker label:hover { transform: scale(1.12); }
.star-picker input:focus-visible + label { outline: 2px solid #655B00; border-radius: 4px; }

.review-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.review-turnstile { margin: .5rem 0 1rem; display: flex; justify-content: center; min-height: 65px; }
.review-message { margin-top: .75rem; font-size: .92rem; display: none; }
.review-message.success { display: block; color: #1b7a4b; }
.review-message.error { display: block; color: #c62828; }

@media (max-width: 600px) {
  .reviews-head h2 { font-size: 1.5rem; }
  .review-date { margin-left: 0; width: 100%; }
}
