/* پرشین پت — نظرات (محصول و نوشته‌ها) */

article.comments {
    max-width: 820px;
    margin: 88px auto 0;
    padding-top: 48px;
    border-top: 1px solid var(--pp-line);
}

article.comments > header {
    font-family: var(--pp-display);
    font-size: 27px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

article.comments ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

article.comments ul:not(:has(li))::before {
    content: "هنوز نظری ثبت نشده است. اولین نفری باشید که تجربه‌اش را می‌نویسد.";
    display: block;
    color: var(--pp-muted);
    margin-bottom: 24px;
}

article.comments ul > li,
article.comments ol > li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 2px 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--pp-line);
}

article.comments li > img {
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
    background: var(--pp-tint);
}

article.comments li > strong {
    grid-column: 2;
    font-weight: 600;
}

article.comments li > span {
    grid-column: 3;
    grid-row: 1;
    font-size: 13px;
    color: var(--pp-muted);
}

article.comments li > p {
    grid-column: 2 / 4;
    margin: 4px 0 0;
    color: var(--pp-ink);
}

/* پاسخ فروشگاه (کاربر مدیر) با نشان */
article.comments li > em.comment-badge {
    grid-column: 2;
    justify-self: start;
    font-style: normal;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.8;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--pp-tint);
    color: var(--pp-accent);
}

article.comments li.is-shop-reply > img {
    outline: 2px solid var(--pp-tint-2);
    outline-offset: 1px;
}

article.comments li > button {
    grid-column: 2;
    justify-self: start;
    border: 0;
    background: transparent;
    padding: 4px 0;
    font-size: 13px;
    color: var(--pp-accent);
    cursor: pointer;
}

article.comments ul > li > ol {
    grid-column: 2 / 4;
    margin: 12px 0 0;
    padding: 0 16px 0 0;
    border-right: 2px solid var(--pp-tint-2);
    list-style: none;
}

article.comments ol > li:last-child {
    border-bottom: 0;
}

article.comments > footer {
    margin-top: 24px;
}

article.comments > footer .input-group {
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

article.comments > footer .form-floating {
    flex: 1 1 100% !important;
}

article.comments > footer textarea.form-control {
    min-height: 140px;
    border-radius: var(--pp-btn-radius) !important;
}

article.comments > footer .btn {
    height: 50px;
    padding: 0 32px;
    margin: 0 !important;
    border-radius: var(--pp-btn-radius) !important;
}

article.comments > footer .btn-success {
    background: transparent;
    border-color: var(--pp-ink);
    color: var(--pp-ink);
}

article.comments > footer .btn-success:hover:not(:disabled) {
    background: var(--pp-ink);
    color: var(--pp-ground);
}

article.comments > footer .input-group > span {
    font-size: 13px;
    color: var(--pp-muted);
}

article.comments > footer .alert {
    margin-top: 12px;
}
