/* ========================================================
   GLOBAL CONTENT STYLING FOR POSTS AND PRODUCTS
   PURPOSE: استاند‌اردسازی حرفه‌ای تایپوگرافی و فاصله‌ها بدون رنگ‌بندی خاص
   ======================================================== */

html {
    font-size: 100%;
}

body {
    font-family: system-ui, iransans, Tahoma, sans-serif;
    color: #2c2c2c;
    direction: rtl;
    line-height: 1.8;
    font-size: 1rem;
}

/* ========================================================
   SECTION: Content Containers (Posts & Products)
   ======================================================== */

.cz_post_content,
.single-product .entry-summary,
.woocommerce-Tabs-panel--description,
.woocommerce-product-details__short-description,
.woocommerce-Tabs-panel--description.panel.entry-content.wc-tab {
    background: none;
    border: none;
    padding: 2rem;
    border-radius: 0;
}

/* ========================================================
   SECTION: Headings h1 to h6
   PURPOSE: خط زیر h2 + سایزبندی تیترها
   ======================================================== */

.cz_post_content h1,
.single-product .entry-summary h1,
.woocommerce-Tabs-panel--description h1,
.woocommerce-product-details__short-description h1,
.woocommerce-Tabs-panel--description.panel.entry-content.wc-tab h1 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    font-weight: 700;
    line-height: 1.4;
}

.cz_post_content h2,
.single-product .entry-summary h2,
.woocommerce-Tabs-panel--description h2,
.woocommerce-product-details__short-description h2,
.woocommerce-Tabs-panel--description.panel.entry-content.wc-tab h2 {
    font-size: 1.75em;
    margin: 2.5rem 0 1.25rem;
    font-weight: 700;
    line-height: 1.5;
    border-bottom: 2px solid #ccd8e5;
    padding-bottom: 0.5rem;
}

.cz_post_content h3,
.single-product .entry-summary h3,
.woocommerce-Tabs-panel--description h3,
.woocommerce-product-details__short-description h3,
.woocommerce-Tabs-panel--description.panel.entry-content.wc-tab h3 {
    font-size: 1.4em;
    margin: 2rem 0 1rem;
    font-weight: 600;
    line-height: 1.6;
}

.cz_post_content h4,
.single-product .entry-summary h4,
.woocommerce-Tabs-panel--description h4,
.woocommerce-product-details__short-description h4,
.woocommerce-Tabs-panel--description.panel.entry-content.wc-tab h4 {
    font-size: 1.15em;
    margin: 1.5rem 0 0.9rem;
    font-weight: 600;
    line-height: 1.6;
}

.cz_post_content h5,
.single-product .entry-summary h5,
.woocommerce-Tabs-panel--description h5,
.woocommerce-product-details__short-description h5,
.woocommerce-Tabs-panel--description.panel.entry-content.wc-tab h5 {
    font-size: 1.05em;
    margin: 1.25rem 0 0.75rem;
    font-weight: 600;
    line-height: 1.7;
}

.cz_post_content h6,
.single-product .entry-summary h6,
.woocommerce-Tabs-panel--description h6,
.woocommerce-product-details__short-description h6,
.woocommerce-Tabs-panel--description.panel.entry-content.wc-tab h6 {
    font-size: 0.95em;
    margin: 1rem 0 0.6rem;
    font-weight: 600;
    line-height: 1.8;
}

/* ========================================================
   SECTION: Paragraphs
   ======================================================== */

.cz_post_content p,
.single-product .entry-summary p,
.woocommerce-Tabs-panel--description p,
.woocommerce-product-details__short-description p,
.woocommerce-Tabs-panel--description.panel.entry-content.wc-tab p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.95;
    margin: 0 0 1.25em;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

/* ========================================================
   SECTION: Lists
   ======================================================== */

.cz_post_content ul,
.cz_post_content ol,
.single-product .entry-summary ul,
.single-product .entry-summary ol,
.woocommerce-Tabs-panel--description ul,
.woocommerce-Tabs-panel--description ol,
.woocommerce-product-details__short-description ul,
.woocommerce-product-details__short-description ol,
.woocommerce-Tabs-panel--description.panel.entry-content.wc-tab ul,
.woocommerce-Tabs-panel--description.panel.entry-content.wc-tab ol {
    margin: 1.5em 0;
    padding-right: 1.5em;
    list-style-position: inside;
}

.cz_post_content li,
.single-product .entry-summary li,
.woocommerce-Tabs-panel--description li,
.woocommerce-product-details__short-description li,
.woocommerce-Tabs-panel--description.panel.entry-content.wc-tab li {
    margin-bottom: 0.75em;
    font-size: 1rem;
    line-height: 1.8;
}

/* Nested Lists */
.cz_post_content ul ul,
.cz_post_content ol ol,
.single-product .entry-summary ul ul,
.single-product .entry-summary ol ol,
.woocommerce-Tabs-panel--description ul ul,
.woocommerce-Tabs-panel--description ol ol,
.woocommerce-product-details__short-description ul ul,
.woocommerce-product-details__short-description ol ol,
.woocommerce-Tabs-panel--description.panel.entry-content.wc-tab ul ul,
.woocommerce-Tabs-panel--description.panel.entry-content.wc-tab ol ol {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    padding-right: 1.25em;
}

/* ========================================================
   PRODUCT DESCRIPTION CTA BUTTON - By Mohammad Reza
   PURPOSE: نمایش دکمه شیک در بالای محصول
   ======================================================== */

.mr-cta-wrapper {
    text-align: right;
    margin-top: 0.8rem;
    margin-bottom: 2rem;
}

.mr-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.4rem;
    background-color: #0073aa;
    color: #fff;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 115, 170, 0.15);
    white-space: nowrap;
}

.mr-cta-button:hover {
    background-color: #cce8f5;
    color: #003d63;
    box-shadow: 0 4px 10px rgba(0, 115, 170, 0.25);
}

/* ========================================================
   SECTION: Mobile Typography Adjustments
   ======================================================== */

@media (max-width: 768px) {
    html {
        font-size: 93.75%;
    }

    .cz_post_content h1,
    .single-product .entry-summary h1,
    .woocommerce-Tabs-panel--description h1,
    .woocommerce-product-details__short-description h1,
    .woocommerce-Tabs-panel--description.panel.entry-content.wc-tab h1 {
        font-size: 1.75rem;
    }

    .cz_post_content h2,
    .single-product .entry-summary h2,
    .woocommerce-Tabs-panel--description h2,
    .woocommerce-product-details__short-description h2,
    .woocommerce-Tabs-panel--description.panel.entry-content.wc-tab h2 {
        font-size: 1.5rem;
    }

    .cz_post_content h3,
    .single-product .entry-summary h3,
    .woocommerce-Tabs-panel--description h3,
    .woocommerce-product-details__short-description h3,
    .woocommerce-Tabs-panel--description.panel.entry-content.wc-tab h3 {
        font-size: 1.3rem;
    }

    .cz_post_content h4,
    .single-product .entry-summary h4,
    .woocommerce-Tabs-panel--description h4,
    .woocommerce-product-details__short-description h4,
    .woocommerce-Tabs-panel--description.panel.entry-content.wc-tab h4 {
        font-size: 1.15rem;
    }

    .cz_post_content h5,
    .single-product .entry-summary h5,
    .woocommerce-Tabs-panel--description h5,
    .woocommerce-product-details__short-description h5,
    .woocommerce-Tabs-panel--description.panel.entry-content.wc-tab h5 {
        font-size: 1.05rem;
    }

    .cz_post_content h6,
    .single-product .entry-summary h6,
    .woocommerce-Tabs-panel--description h6,
    .woocommerce-product-details__short-description h6,
    .woocommerce-Tabs-panel--description.panel.entry-content.wc-tab h6 {
        font-size: 0.95rem;
    }
}

/* ========================================================
   SECTION: Content Under h3 to h6
   PURPOSE: فقط کاهش اندازه بدون رنگ‌بندی
   ======================================================== */

h3~p,
h3~ul,
h3~ol,
h3~li,
h3~div,
h3~table,
h3~blockquote {
    font-size: 0.95rem;
}

h4~p,
h4~ul,
h4~ol,
h4~li,
h4~div,
h4~table,
h4~blockquote {
    font-size: 0.9rem;
}

h5~p,
h5~ul,
h5~ol,
h5~li,
h5~div,
h5~table,
h5~blockquote {
    font-size: 0.875rem;
}

h6~p,
h6~ul,
h6~ol,
h6~li,
h6~div,
h6~table,
h6~blockquote {
    font-size: 0.85rem;
}
/* ===================================================
   بخش: فهرست مطالب - نسخه حرفه‌ای و جذاب
   هدف: طراحی حرفه‌ای برای TOC در پست‌ها و محصولات
   منبع: افزونه Table of Contents
   =================================================== */

.cz_post_content .tavanpayesh-toc,
.woocommerce-Tabs-panel--description .tavanpayesh-toc {
    background: linear-gradient(to bottom, #fcfcfc, #f6f6f6);
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 40px;
    font-size: 16px;
    color: #1e1e1e;
    line-height: 1.9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.cz_post_content .tavanpayesh-toc strong,
.woocommerce-Tabs-panel--description .tavanpayesh-toc strong {
    display: block;
    font-weight: 700;
    margin-bottom: 18px;
    font-size: 18px;
    color: #0d0d0d;
    border-right: 4px solid #0073aa;
    padding-right: 10px;
}

.cz_post_content .tavanpayesh-toc ul,
.woocommerce-Tabs-panel--description .tavanpayesh-toc ul {
    padding-right: 0;
    margin: 0;
    list-style: none;
}

.cz_post_content .tavanpayesh-toc li,
.woocommerce-Tabs-panel--description .tavanpayesh-toc li {
    margin-bottom: 12px;
    padding-right: 28px;
    position: relative;
    border-bottom: 1px dashed #e0e0e0;
    padding-bottom: 8px;
}

.cz_post_content .tavanpayesh-toc li:last-child,
.woocommerce-Tabs-panel--description .tavanpayesh-toc li:last-child {
    border-bottom: none;
}

.cz_post_content .tavanpayesh-toc li::before,
.woocommerce-Tabs-panel--description .tavanpayesh-toc li::before {
    content: "🔹";
    position: absolute;
    right: 0;
    top: 2px;
    font-size: 14px;
    color: #0073aa;
}

.cz_post_content .tavanpayesh-toc a,
.woocommerce-Tabs-panel--description .tavanpayesh-toc a {
    color: #005f9e;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cz_post_content .tavanpayesh-toc a:hover,
.woocommerce-Tabs-panel--description .tavanpayesh-toc a:hover {
    color: #003e73;
    text-decoration: underline;
    padding-right: 5px;
}