/* Rahel Store comments: use the shared storefront palette and local font. */
.product-comments {
  --comment-accent: var(--primary, #963f49);
  --comment-ink: var(--foreground, #332b28);
  --comment-muted: var(--muted-foreground, #77675e);
  --comment-line: var(--border, rgba(125,95,80,.16));
  margin: 32px 0;
  color: var(--comment-ink);
  font: inherit;
  line-height: 1.85;
  text-align: right;
  color-scheme: light;
  scroll-margin-top: 100px;
}
.product-comments *, .product-comments *::before, .product-comments *::after { box-sizing: border-box; }
.product-comments [hidden] { display: none !important; }
.product-comments .backdrop { display: none; }
.product-comments .wrap { width: 100%; margin: 0; padding: 0; display: grid; gap: 18px; }
.product-comments .head { padding-inline: 4px; }
.product-comments .head h2, .product-comments .head h1 {
  margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--comment-ink); line-height: 1.5;
}
.product-comments .head p { margin: 5px 0 0; font-size: .85rem; }
.product-comments .muted { color: var(--comment-muted); }
.product-comments .small { font-size: .82rem; }
.product-comments .list { display: grid; gap: 16px; }
.product-comments .glass {
  background: linear-gradient(125deg,rgba(255,255,255,.66),rgba(255,250,243,.34));
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 22px;
  box-shadow: 0 10px 28px #63452c09, inset 0 1px 0 #ffffffb0;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.product-comments .composer, .product-comments .comment { padding: 22px; }
.product-comments .composer form { display: grid; gap: 12px; }
.product-comments .composer p { margin: 0; }
.product-comments .field label, .product-comments form>label {
  display: block; margin-bottom: 6px; color: var(--comment-muted); font-size: .86rem;
}
.product-comments textarea {
  width: 100%; max-width: 100%; min-height: 96px; resize: vertical;
  font: inherit; color: var(--comment-ink); background: rgba(255,255,255,.55);
  border: 1px solid var(--comment-line); border-radius: 14px; padding: 12px 14px;
  box-shadow: inset 0 1px 0 #ffffffb0;
  transition: border-color .22s, box-shadow .22s, background .22s;
}
.product-comments textarea::placeholder { color: var(--comment-muted); opacity: .8; }
.product-comments textarea:focus-visible {
  outline: none; border-color: var(--comment-accent); background: #ffffffb0;
  box-shadow: 0 0 0 3px color-mix(in srgb,var(--comment-accent) 10%,transparent);
}
.product-comments .errorlist { color: #a5223e; padding-inline-start: 20px; }
.product-comments .form-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.product-comments .form-row-end { justify-content: flex-end; }
.product-comments .btn, .product-comments .act {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; text-decoration: none; cursor: pointer;
  border: 1px solid color-mix(in srgb,var(--comment-accent) 22%,transparent);
  color: var(--comment-accent); background: linear-gradient(125deg,#ffffffb0,#f8e6df50);
  box-shadow: inset 0 1px 0 #ffffffbd;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .22s, box-shadow .22s, background .22s, border-color .22s;
}
.product-comments .btn { min-height: 44px; border-radius: 13px; padding: 10px 22px; font-weight: 500; overflow: hidden; }
.product-comments .btn.primary {
  background: linear-gradient(125deg,#ffffffbb,color-mix(in srgb,var(--comment-accent) 13%,#fff8));
  border-color: color-mix(in srgb,var(--comment-accent) 38%,transparent);
}
.product-comments .btn::after {
  content: ""; position: absolute; inset: -40% auto -40% -60%; width: 35%;
  transform: skewX(-22deg); background: linear-gradient(90deg,transparent,#ffffffa0,transparent);
  opacity: 0; transition: left .55s ease, opacity .3s; pointer-events: none;
}
.product-comments .btn:hover::after { left: 130%; opacity: 1; }
.product-comments .btn:hover, .product-comments .act:hover {
  transform: translateY(-2px); background: #ffffffbd;
  box-shadow: 0 8px 22px #8b51441b,inset 0 1px 0 #fff;
}
.product-comments .btn.ghost { color: var(--comment-muted); background: #ffffff50; border-color: var(--comment-line); }
.product-comments .btn:focus-visible, .product-comments .act:focus-visible {
  outline: 2px solid var(--comment-accent); outline-offset: 3px;
}
.product-comments button:disabled { opacity: .65; cursor: wait; }
.product-comments .c-main { display: flex; gap: 14px; }
.product-comments .avatar {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; font-weight: 700; color: var(--comment-accent);
  background: linear-gradient(135deg,#fff9,color-mix(in srgb,var(--comment-accent) 13%,#fff));
  border: 1px solid color-mix(in srgb,var(--comment-accent) 15%,transparent);
  box-shadow: inset 0 1px 0 #fff; overflow: hidden;
}
.product-comments .avatar img { width: 100%; height: 100%; object-fit: cover; }
.product-comments .c-body { flex: 1; min-width: 0; }
.product-comments .c-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; }
.product-comments .c-name { font-weight: 700; }
.product-comments .c-text { margin: 9px 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.product-comments .c-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.product-comments .c-actions form { margin: 0; }
.product-comments .act { min-height: 36px; border-radius: 10px; padding: 4px 11px; font-size: .82rem; font-weight: 400; }
.product-comments .act svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.product-comments .like[aria-pressed=true] { color: var(--comment-accent); background: color-mix(in srgb,var(--comment-accent) 10%,#fff9); }
.product-comments .like[aria-pressed=true] svg { fill: currentColor; }
.product-comments .danger { color: #a5223e; border-color: #a5223e26; }
.product-comments .danger:hover { background: #fff2f2b0; }
.product-comments .buyer-badge, .product-comments .moderation-badge {
  font-size: .7rem; border: 1px solid color-mix(in srgb,var(--comment-accent) 18%,transparent);
  border-radius: 99px; padding: 1px 8px; color: var(--comment-accent); background: #ffffff66;
}
.product-comments .moderation-badge { color: #80612e; border-color: #ad8f5933; background: #f5e7cd66; }
.product-comments .replies, .product-comments .reply-form {
  margin-top: 14px; margin-inline-start: 22px; padding-inline-start: 16px;
  border-inline-start: 2px solid color-mix(in srgb,var(--comment-accent) 18%,transparent);
}
.product-comments .replies { display: grid; gap: 12px; }
.product-comments .is-reply { padding: 16px; background: #ffffff40; border: 1px solid #ffffffbd; border-radius: 18px; }
.product-comments .is-reply .avatar { width: 34px; height: 34px; font-size: .9rem; }
.product-comments .reply-form { display: grid; gap: 10px; border-inline-start-color: color-mix(in srgb,var(--comment-accent) 38%,transparent); }
.product-comments .reply-form textarea { min-height: 72px; }
.product-comments .reply-form .btn { padding: 8px 16px; font-size: .9rem; }
.product-comments .replies-toggle>summary { margin-top: 12px; }
.product-comments .empty { margin: 0; padding: 24px; text-align: center; color: var(--comment-muted); }
.product-comments .enter { animation: comment-rise .3s ease-out; }
.product-comments .like:active svg { transform: scale(1.15); }
@keyframes comment-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@supports not (backdrop-filter:blur(1px)) { .product-comments .glass { background: #fcfaf5; } }
@media(max-width:520px) {
  .product-comments .composer,.product-comments .comment { padding: 16px; }
  .product-comments .c-main { gap: 10px; }
  .product-comments .avatar { width: 38px; height: 38px; }
  .product-comments .replies,.product-comments .reply-form { margin-inline-start: 4px; padding-inline-start: 10px; }
  .product-comments .c-meta { gap: 4px 7px; }
  .product-comments .form-row .btn { padding-inline: 14px; }
}
@media(prefers-reduced-motion:reduce) { .product-comments *,.product-comments *::after { animation:none!important;transition:none!important; } }

.product-comments .avatar .comment-avatar-icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.product-comments .avatar [hidden]{display:none}.product-comments .is-reply .comment-avatar-icon{width:21px;height:21px}

.product-comments .avatar img,.product-comments .avatar .comment-avatar-icon{grid-area:1/1}.product-comments .avatar img{z-index:1}
