
/* ===== بردکرامب ===== */
.kb-breadcrumb {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    padding: 0 0 10px 0;
    border-bottom: 1px solid #ededed;
}

.kb-breadcrumb a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
}

.kb-breadcrumb a:hover {
    color: #7b4dff;
}

.kb-breadcrumb .sep {
    color: #bbb;
    font-size: 14px;
}

.kb-breadcrumb .current {
    color: #222;
    font-weight: 500;
}

.book-hero-card,
.book-product-card {
    max-width: 1300px;
    margin-inline: auto;
}
/* حذف underline از تمام لینک‌ها */
.single-book a {
    text-decoration: none;
    color: #000;
}
/* hover فقط تغییر رنگ */
.single-book a:hover {
    color: #084298;
}


/* ===============================
   چکیده مطلب ابتدای صفحه
================================ */
.book-hero-card {
    background: #fff;
    border-radius: 0 0 18px 18px;
    padding: 24px 28px;
    margin-bottom: 22px;
    box-shadow: 0 10px 34px rgba(0,0,0,.06);
}

.book-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.book-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}


/* ===============================
   توضیحات کتاب مرجع/ معرفی / نویسنده
================================ */
.book-description {
    display: grid;
    max-width: 1300px;
    gap: 15px;
    margin-top: 10px;
}

/* دو ستونه */
.book-description.columns-2 {
    grid-template-columns: 2fr 1fr;
    gap: 15px;
}

/* تک ستونه */

.book-description.columns-1 {
    grid-template-columns: 1fr;
}

/* ===============================
   تب های معرفی، نویسنده و غیره
================================ */

.book-section-tabs {
    display: flex;
    gap: 14px;
    margin: 28px 0 18px;
    flex-wrap: wrap;
}
.book-section-tabs a {
    font-size: 13px;
    padding: 6px 14px;
    background: #f3f3f3;
    border-radius: 20px;
    color: #444;
}
.book-section-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===============================
   نقد و بررسی و معرفی
================================ */
.book-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    color: #666;
}
.book-section-title img {
    width: 22px;
}
.book-section-title h2 {
    font-size: 18px;
}

.book-main-content,
.book-author-content {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.04);
    line-height: 2;
}

/* تیتر نویسنده */
.book-author-content h3 {
    margin-bottom: 12px;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 3px;
    text-align: center;
}
.author-image {
    text-align: center;
    margin-bottom: 12px;
}

.author-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* ===============================
   دسته بندی/ برچسب های زیر محصول  
================================ */

.book-taxonomy-box {
    background: #fffa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin: 16px 0 40px;
    box-sizing: border-box;
}

.product-taxonomy-block {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-taxonomy-block a {
    background: #e4e9f6; 
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: 0.25s ease;
    display: inline-block;
}

.product-taxonomy-block a:hover {
    background: #222;
    color: #fff;
}

.product-taxonomy-block.categories a {
    background: #e4e9f6;
    border: 1px solid #ddd;
}

.product-taxonomy-block.categories a:hover {
    background: #222;
    color: #fff;
}

.product-taxonomy-block.tags a {
    background: #e9f3ff;
}

.product-taxonomy-block a {
    margin: 4px;
}

/* ===============================
خط جداکننده بلوک ها (تاثیر روی همه بلوک ها)
================================ */
.book-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.book-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to left, #ddd, transparent);
    margin-right: 16px; /* چون RTL هست */
}


/* ===============================
   نظرات/ کامنت های صفحه مرجع
================================ */
.book-comments-wrapper {
    margin-top: 40px;
}

.comments-box {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
}

.comment-list li {
    margin-bottom: 8px;
}

.comments-title {
    font-size: 20px;
    font-weight: bold;
}

.book-comments-section {
    width: 100%;
}

.book-comments-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;          /* این مهمه */
    padding: 0 16px;
    box-sizing: border-box;
}

.book-comments-box {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 10px 16px;
    margin-top: 20px;
}

.comments-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-icon {
    width: 22px;
    height: 22px;
}

.comments-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.comments-count {
    margin: 10px 0 20px;
    color: #777;
    font-size: 14px;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-parent {
    padding: 6px 0;
}

.comment-child {
    background: #e9e9e9;
    padding: 2px 6px;
    margin: 8px 0 0 8px;
    border-radius: 8px;
}

.comment-content {
    font-size: 15px;
    text-align: justify;
    line-height: 1;
}

.comment-meta {
    margin-top: 12px;
    font-size: 13px;
    color: #777;
}

.comment-reply {
    margin-top: 8px;
}

.comment-separator {
    margin-top: 8px;
    border: none;
    border-bottom: 1px dashed #b3b3b3;
}
.comment-form input,
.comment-form textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 12px;
    font-family: inherit;
}

.comment-form textarea {
    min-height: 120px;
}

.comment-form .submit {
    background: #1e73be;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
}
.comment-list {
    margin-bottom: 40px;
}

.comment-form-wrapper {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}
.comment-admin-badge {
    background: #1e73be;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-right: 4px;
}

.comment-like {
    cursor: pointer;
    font-size: 14px;
    color: #555;
    user-select: none;
    margin-top: 10px;
}

.comment-like.liked {
    color: #1e73be;
}
.comment-toast {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 6px;
    background: #333;
    color: #fff;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-4px);
    transition: all .2s ease;
    z-index: 10;
}

.comment-toast.show {
    opacity: 1;
    transform: translateY(0);
}
.comment-like {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.comment-like {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.comment-like.liked {
    opacity: 0.5;
    pointer-events: none;
}

.like-toast {
    position: absolute;
    top: -28px;
    right: 0;
    background: #333;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
    transform: translateY(5px);
    white-space: nowrap;
}

.like-toast.show {
    opacity: 1;
    transform: translateY(0);
}
.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    font-size: 13px;
    color: #777;
    gap: 12px;
}

.comment-meta-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-like {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #555;
}

.comment-like.liked {
    opacity: 0.5;
    pointer-events: none;
}

.comment-reply a {
    font-size: 13px;
    color: #1e73be;
    text-decoration: none;
}

.comment-reply a:hover {
    text-decoration: underline;
}

/* ترجمه از نظر کاربران */
.best-translation-box {
    background: #fff;
    border: 1px solid #fbce37;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2.5rem 0;
}

.best-translation-box h2 {
    margin-top: 0;
    color: #2c5282;
}

/* =========================
   اسلایدر محصولات مرتبط
========================= */

.related-products-slider .swiper{
    width:100%;
    overflow:hidden;
}

.related-products-slider .swiper-wrapper{
    display:flex;
    align-items:stretch;
}

.related-products-slider .swiper-slide{
    flex-shrink:0;
    height:auto;
}

.related-products-slider .product-card{
    height:100%;
}

/* ===== نظرات، دیدگاه، کامنت =====*/
@media (max-width: 768px) {

    .book-comments-container {
        padding-left: 4px;
        padding-right: 4px;
    }

}
@media (max-width: 768px) {

    .comments-title {
        font-size: 17px;
    }
    .comment-meta,
    .comment-metadata {
        font-size: 11px;
        color: #777;
    }
    
    .comment-meta a,
    .comment-metadata a {
        font-size: 11px;
    }

}
@media (max-width: 768px) {

    .comment-form-wrapper {
        padding-left: 16px;
        padding-right: 16px;
    }

    .comment-form-wrapper textarea {
        min-height: 140px;
    }

}

