/* ==========================================================================
   1. رفع قطعی مشکل کادر دوبل و کارت‌های دیدگاه (شعاع ۲۵ پیکسل)
   ========================================================================== */

/* بی‌اثر کردن کادرهای والد وودمارت */
.comments-area .comment-list > li,
.woocommerce-Reviews .commentlist > li,
.woocommerce-Reviews .commentlist li.review {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 0 22px 0 !important;
}

.comments-area .comment-list hr,
.comment-list li::after,
.comment-list li::before {
    display: none !important;
}

/* کارت اصلی دیدگاه با سایه معلق و گوشه ۲۵ پیکسل */
.comments-area .comment-body,
.woocommerce-Reviews .commentlist li .comment_container {
    background: #ffffff !important;
    border-radius: 25px !important;
    padding: 24px 28px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.025) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
    position: relative !important;
}

.comments-area .comment-body:hover,
.woocommerce-Reviews .commentlist li .comment_container:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}

/* آواتار کاربر */
.comment-body .comment-author img,
.comment_container img.avatar {
    border-radius: 50% !important;
    border: 2px solid #f1f5f9 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    margin-left: 14px !important;
}

/* دیدگاه‌های پاسخ داده شده (پاسخ‌های تو در تو) */
.comments-area .children {
    margin-right: 28px !important;
    padding-right: 18px !important;
    border-right: 2px solid #f1f5f9 !important;
    list-style: none !important;
}

@media (max-width: 768px) {
    .comments-area .children {
        margin-right: 14px !important;
        padding-right: 10px !important;
    }
    .comments-area .comment-body,
    .woocommerce-Reviews .commentlist li .comment_container {
        padding: 18px 20px !important;
    }
}

/* ستاره‌های امتیازدهی ووکامرس با رنگ طلایی کنتراست بالا */
.woocommerce .star-rating,
.woocommerce p.stars a {
    color: #f59e0b !important;
}

.woocommerce .star-rating {
    font-size: 0.95rem !important;
    letter-spacing: 2px !important;
    margin-bottom: 8px !important;
}

/* ==========================================================================
   2. فرم ارسال دیدگاه و دکمه‌ها با انحنای ۲۵ پیکسل
   ========================================================================== */
.comment-form textarea,
.comment-respond textarea,
.comment-form input[type='text'],
.comment-form input[type='email'],
.comment-form input[type='url'],
.comment-respond .submit,
.comment-form input[type='submit'],
#review_form #submit,
#comments #submit,
.wd-ergo-loadmore-btn,
.comment-reply-link {
    border-radius: 25px !important;
}

.comment-form textarea,
.comment-respond textarea {
    padding: 18px 24px !important;
    border: 1.5px solid #e2e8f0 !important;
    background-color: #fafbfc !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    min-height: 130px !important;
    transition: all 0.25s ease !important;
    outline: none !important;
    font-family: inherit !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.comment-form textarea:focus,
.comment-respond textarea:focus {
    background-color: #ffffff !important;
    border-color: #0f172a !important;
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.06) !important;
}

.comment-respond .submit,
.comment-form input[type='submit'],
#review_form #submit,
#comments #submit {
    padding: 12px 38px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.25) !important;
}

.comment-respond .submit:hover,
.comment-form input[type='submit']:hover,
#review_form #submit:hover,
#comments #submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(234, 179, 8, 0.35) !important;
}

/* دکمه پاسخ در مقالات با آیکون وکتور SVG */
.comment-reply-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 7px 20px !important;
    background: #f1f5f9 !important;
    color: #334155 !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    margin-top: 14px !important;
    transition: all 0.2s ease !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.comment-reply-link:hover {
    background: #0f172a !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.comment-reply-link svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.2;
}

/* ==========================================================================
   3. دکمه لود دسته‌ای دیدگاه‌ها و انیمیشن Fade-in
   ========================================================================== */
.wd-ergo-loadmore-wrap {
    text-align: center !important;
    margin: 32px 0 20px !important;
    clear: both !important;
}

.wd-ergo-loadmore-btn {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #e2e8f0 !important;
    padding: 13px 36px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.25s ease !important;
    font-family: inherit !important;
}

.wd-ergo-loadmore-btn svg {
    width: 16px;
    height: 16px;
    stroke: #0f172a;
    transition: transform 0.25s ease;
}

.wd-ergo-loadmore-btn:hover {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.12) !important;
}

.wd-ergo-loadmore-btn:hover svg {
    stroke: #ffffff;
    transform: translateY(2px);
}

.wd-ergo-review-hidden {
    display: none !important;
}

.wd-ergo-review-show {
    animation: wdErgoFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wdErgoFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
