/* ============= USER-SUBMITTED REVIEWS (shared across product pages) ============= */
.ur-section { max-width: 1100px; margin: 0 auto; padding: 4rem 2rem 3rem; }
.ur-header { text-align: center; margin-bottom: 2.5rem; }
.ur-header h2 { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 300; line-height: 1.05; letter-spacing: -.02em; }
.ur-header h2 em { font-style: italic; color: var(--accent-lt); }
.ur-summary {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 2.5rem; padding: 2rem;
  background: var(--card); border: 1px solid rgba(200,149,108,.12);
  border-radius: 18px; margin-bottom: 2.5rem;
}
.ur-summary-score { text-align: center; min-width: 120px; }
.ur-avg { font-family: var(--display); font-size: 3.2rem; font-weight: 300; line-height: 1; color: #d4a04a; }
.ur-avg-stars { position: relative; display: inline-block; color: rgba(212,160,74,.22); font-size: 1.1rem; letter-spacing: 3px; margin: .4rem 0 .3rem; }
.ur-avg-stars::before { content: '★★★★★'; position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: #d4a04a; width: var(--fill, 0%); }
.ur-count { font-size: .78rem; color: #d4a04a; letter-spacing: .05em; }
.ur-summary-bars { display: flex; flex-direction: column; gap: .4rem; }
.ur-bar-row { display: grid; grid-template-columns: 30px 1fr 40px; gap: .8rem; align-items: center; font-size: .78rem; color: var(--text2); }
.ur-bar-label { text-align: right; }
.ur-bar-track { display: block; width: 100%; height: 8px; background: rgba(200,149,108,.14); border-radius: 999px; overflow: hidden; }
.ur-bar-fill { display: block; position: relative; height: 100%; width: 0; background: linear-gradient(90deg, #d4a04a, #c8956c); border-radius: 999px; transition: width .6s cubic-bezier(.2,.7,.2,1); overflow: hidden; }
.ur-bar-fill::after { content: ''; position: absolute; top: 0; left: -60%; width: 45%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: urBarGloss 2.8s ease-in-out infinite; pointer-events: none; }
@keyframes urBarGloss { 0% { left: -60%; } 60%, 100% { left: 160%; } }
.ur-bar-count { font-size: .72rem; color: var(--muted); }
.ur-write-btn {
  padding: 1.1rem 3rem;
  font-size: .9rem;
  letter-spacing: .1em;
  min-width: 220px;
  justify-content: center;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.ur-write-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  animation: urWriteGloss 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes urWriteGloss { 0% { left: -100%; } 50% { left: 150%; } 100% { left: 150%; } }
.ur-write-btn > * { position: relative; z-index: 1; }
.ur-form { max-width: 720px; margin: 0 auto 3rem; padding: 2rem; background: var(--card); border: 1px solid rgba(200,149,108,.14); border-radius: 18px; }
.ur-form-title { font-family: var(--display); font-weight: 300; font-size: 1.8rem; margin: 0 0 1.5rem; letter-spacing: -.01em; }
.ur-field { margin-bottom: 1.2rem; }
.ur-field label { display: block; font-size: .78rem; font-weight: 500; color: var(--text2); margin-bottom: .5rem; letter-spacing: .04em; }
.ur-req { color: #d4a04a; }
.ur-hint { color: var(--muted); font-weight: 400; font-size: .72rem; }
.ur-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ur-field input[type="text"], .ur-field input[type="email"], .ur-field textarea {
  width: 100%; box-sizing: border-box;
  background: #ffffff; border: 1.5px solid rgba(200,149,108,.45);
  border-radius: 10px; padding: .8rem 1rem;
  color: var(--text); font-family: inherit; font-size: .88rem;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.ur-field input:focus, .ur-field textarea:focus {
  outline: none;
  border-color: var(--accent, #c8956c);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(200,149,108,.15);
}
.ur-field input::placeholder, .ur-field textarea::placeholder { color: rgba(0,0,0,.32); }
.ur-field textarea { resize: vertical; min-height: 100px; }
.ur-rating-input { display: flex; gap: .4rem; }
.ur-star-btn { background: none; border: none; padding: .2rem; cursor: pointer; color: #d4a04a; transition: transform .15s ease; }
.ur-star-btn svg { width: 30px; height: 30px; display: block; stroke: #d4a04a; stroke-width: 1.6; fill: none; }
.ur-star-btn:hover { transform: scale(1.12); }
.ur-star-btn.is-active svg { fill: #d4a04a; }
.ur-upload { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 1.8rem 1rem; background: rgba(255,255,255,.02); border: 1.5px dashed rgba(200,149,108,.25); border-radius: 12px; cursor: pointer; text-align: center; transition: border-color .2s ease, background .2s ease; }
.ur-upload:hover { border-color: var(--accent); background: rgba(200,149,108,.04); }
.ur-upload.is-dragover { border-color: var(--accent); background: rgba(200,149,108,.08); }
.ur-upload svg { width: 28px; height: 28px; color: var(--accent); }
.ur-upload span { font-size: .85rem; color: var(--text); }
.ur-upload small { font-size: .7rem; color: var(--muted); }
.ur-preview { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.ur-preview-item { position: relative; width: 80px; height: 80px; border-radius: 10px; overflow: hidden; background: rgba(0,0,0,.3); }
.ur-preview-item img, .ur-preview-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ur-preview-item .ur-preview-remove { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.75); color: #fff; border: none; cursor: pointer; font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.ur-preview-item .ur-video-badge { position: absolute; bottom: 4px; left: 4px; background: rgba(0,0,0,.7); color: #fff; font-size: .6rem; padding: 2px 6px; border-radius: 4px; letter-spacing: .05em; }
.ur-form-actions { display: flex; gap: .8rem; justify-content: flex-end; margin-top: 1.5rem; }
.ur-note { font-size: .7rem; color: var(--muted); text-align: center; margin: 1rem 0 0; }
.ur-list { display: flex; flex-direction: column; gap: 1.2rem; }
.ur-review { position: relative; padding: 1.6rem 1.8rem; background: var(--card); border: 1px solid rgba(200,149,108,.1); border-radius: 16px; animation: urFadeIn .3s ease; }
.ur-review-menu { position: absolute; top: 10px; right: 12px; z-index: 2; }
.ur-menu-trigger { background: transparent; border: none; width: 30px; height: 30px; border-radius: 50%; color: var(--muted, #8a7968); font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s ease, color .15s ease; padding: 0; }
.ur-menu-trigger:hover, .ur-menu-trigger[aria-expanded="true"] { background: rgba(200,149,108,.12); color: #c8956c; }
.ur-menu-popover { position: absolute; top: 32px; right: 0; min-width: 160px; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.12); padding: .3rem; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .15s ease, transform .15s ease; z-index: 3; }
.ur-menu-popover.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.ur-menu-item { display: flex; align-items: center; width: 100%; padding: .55rem .7rem; background: transparent; border: none; border-radius: 7px; font: inherit; font-size: .82rem; color: var(--text, #1a1a1a); text-align: left; cursor: pointer; transition: background .12s ease; }
.ur-menu-item:hover { background: rgba(200,149,108,.12); }
.ur-menu-item-danger { color: #c0392b; }
.ur-menu-item-danger:hover { background: rgba(192,57,43,.08); color: #a02a20; }
@keyframes urFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.ur-review-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .6rem; }
.ur-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-lt)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 500; font-size: .9rem; }
.ur-review-meta { flex: 1; min-width: 0; }
.ur-review-name { font-weight: 500; font-size: .92rem; }
.ur-review-sub { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.ur-review-stars { position: relative; display: inline-block; color: rgba(255,255,255,.1); font-size: .85rem; letter-spacing: 2px; }
.ur-review-stars::before { content: '★★★★★'; position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: #d4a04a; width: var(--fill, 0%); }
.ur-review-title { font-size: 1rem; font-weight: 500; margin: .6rem 0 .3rem; }
.ur-review-text { font-size: .88rem; line-height: 1.65; color: var(--text2); margin: 0; white-space: pre-wrap; }
.ur-review-media { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.ur-media-thumb { width: 90px; height: 90px; border-radius: 10px; overflow: hidden; cursor: pointer; background: rgba(0,0,0,.3); position: relative; border: 1px solid rgba(255,255,255,.06); transition: transform .2s ease, border-color .2s ease; padding: 0; }
.ur-media-thumb:hover { transform: scale(1.04); border-color: var(--accent); }
.ur-media-thumb img, .ur-media-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ur-media-thumb .ur-play-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.25); }
.ur-media-thumb .ur-play-icon svg { width: 28px; height: 28px; color: #fff; fill: #fff; }
.ur-review-actions { display: flex; gap: 1rem; margin-top: .8rem; }
.ur-delete-btn { background: none; border: none; color: var(--muted); font-size: .72rem; cursor: pointer; padding: 0; text-decoration: underline; letter-spacing: .04em; }
.ur-delete-btn:hover { color: #e66; }
.ur-empty { text-align: center; padding: 3rem 1rem; color: var(--muted); font-size: .9rem; font-style: italic; }
.ur-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 2rem; animation: urFadeIn .2s ease; }
.ur-lightbox[hidden] { display: none; }
.ur-preview-item .ur-preview-remove[hidden], .ur-form[hidden] { display: none; }
.ur-lightbox-close { position: absolute; top: 1.5rem; right: 1.8rem; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; border: none; font-size: 1.6rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ur-lightbox-close:hover { background: rgba(255,255,255,.2); }
.ur-lightbox-content { max-width: 90vw; max-height: 85vh; display: flex; }
.ur-lightbox-content img, .ur-lightbox-content video { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; }
@media (max-width: 720px) {
  .ur-section { padding: 3rem 1.2rem 2rem; }
  .ur-summary { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; padding: 1.5rem; }
  .ur-row { grid-template-columns: 1fr; }
  .ur-form { padding: 1.4rem; }
  .ur-review { padding: 1.2rem 1.2rem; }
  .ur-form-actions { flex-direction: column-reverse; }
  .ur-form-actions .pill { width: 100%; justify-content: center; }
  .ur-media-thumb { width: 72px; height: 72px; }
}
/* Product card rating widget */
.product-card-rating { display: flex; align-items: center; gap: .4rem; margin: .3rem 0 .5rem; font-size: .75rem; }
.product-card-stars { position: relative; display: inline-block; font-size: .82rem; letter-spacing: 2px; color: rgba(0,0,0,.15); line-height: 1; }
.product-card-stars::before { content: '★★★★★'; letter-spacing: inherit; }
.product-card-stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; color: #d4a04a; white-space: nowrap; }
.product-card-stars-fill::before { content: '★★★★★'; letter-spacing: 2px; }
.product-card-rating-text { color: var(--muted, #8a7968); font-size: .72rem; }

/* Name + stars sit inline on the review card head. */
.ur-review-name-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

/* Hero rating widget (appears above prices) */
.hero-rating { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.1rem; text-decoration: none; color: inherit; cursor: pointer; transition: opacity .2s ease; }
.hero-rating:hover { opacity: .82; }
.hero-rating .hero-rating-stars,
.hero-rating .product-card-stars { font-size: 1.05rem; letter-spacing: 3px; }
.hero-rating .product-card-rating-text { font-size: .82rem; color: var(--muted, #8a7968); letter-spacing: .02em; }
