/*
Theme Name:   Zonkan Child
Theme URI:    https://excelpedia.net
Description:  Child theme for Zonkan 10 (upgraded from Zonkan 8.2.2)
Author:       Saman Cheraghi
Author URI:   https://excelpedia.net
Template:     Zonkan10
Version:      2.0
Text Domain:  mweb-zonkan-child
*/

@import url("../Zonkan10/style.css");

/* ========================================
   Typography - نسخه دسترس‌پذیر + مقیاس ماژولار
   نسبت تقریبی ۱.۲۵ (Major Third)
   ======================================== 

/* ریشه: پایه ۱۶ پیکسل - مقیاس‌پذیر */
html {
    font-size: 100% !important; /* معادل ۱۶px در اکثر مرورگرها، اما مقیاس‌پذیر */
}

body {
    font-size: 1rem !important;          /* ۱۶px */
    line-height: 1.75 !important;
}

/* پاراگراف */
p,
.entry-content p,
.woocommerce-Tabs-panel p,
.product-short-description {
    font-size: 1rem !important;          /* ۱۶px */
    line-height: 1.8 !important;
    margin-bottom: 1.25em;
}

/* تیترها - مقیاس ماژولار ۱.۲۵ */
h1, .h1,
.entry-title,
.page-title,
.product_title,
.woocommerce-loop-product__title {
    font-size: 2rem !important;       /* ۳۶px */
    line-height: 1.3 !important;
    font-weight: 700 !important;
    margin-bottom: 0.6em;
}

h2, .h2 {
    font-size: 1.775rem !important;      /* ۳۰px */
    line-height: 1.35 !important;
    font-weight: 700 !important;
    margin-bottom: 0.55em;
}

h3, .h3 {
    font-size: 1.5rem !important;        /* ۲۴px */
    line-height: 1.4 !important;
    font-weight: 600 !important;
    margin-bottom: 0.5em;
}

h4, .h4 {
    font-size: 1.25rem !important;       /* ۲۰px */
    line-height: 1.4 !important;
    font-weight: 600 !important;
}

h5, .h5 {
    font-size: 1.125rem !important;      /* ۱۸px */
    line-height: 1.45 !important;
    font-weight: 600 !important;
}

h6, .h6 {
    font-size: 1rem !important;          /* ۱۶px */
    line-height: 1.45 !important;
    font-weight: 600 !important;
}

/* متن‌های فرعی */
.entry-meta,
.post-meta,
.price,
.woocommerce-Price-amount,
.small,
.widget .textwidget {
    font-size: 0.9375rem !important;     /* ۱۵px */
    line-height: 1.6 !important;
}

/* موبایل */
@media (max-width: 767px) {
    h1, .h1,
    .entry-title,
    .page-title,
    .product_title {
        font-size: 1.75rem !important;   /* ۲۸px */
    }

    h2, .h2 {
        font-size: 1.5rem !important;    /* ۲۴px */
    }

    h3, .h3 {
        font-size: 1.25rem !important;   /* ۲۰px */
    }

    body, p {
        font-size: 0.9375rem !important; /* ۱۵px */
        line-height: 1.75 !important;
    }
}

/* ========================================
   رفع اندازه‌های خاص - Excelpedia
   متا، بردکرامب، لیست بلاگ، فروشگاه، استیکی خرید، پنل کاربری
   ======================================== */

/* ----- عنوان مقالات در لیست بلاگ ----- */
.list_blog_item .single_blog_top h2,
.list_blog_item h2 a,
.blog_list h2,
.single_blog_top h2 {
    font-size: 1.15rem !important;      /* ۲۰px */
    line-height: 1.45 !important;
    font-weight: 700 !important;
}

/* ----- عنوان محصولات در صفحه فروشگاه (لوپ) ----- */
h2.woocommerce-loop-product__title,
.woocommerce-loop-product__title,
.products .product h2,
.product_item h2 {
    font-size: 1.05rem !important;      /* حدود ۱۷px */
    line-height: 1.4 !important;
    font-weight: 600 !important;
}

/* ----- عنوان صفحه تک مقاله و تک محصول ----- */
.single .entry-title,
.single-post .entry-title,
.single-product .product_title,
.product_title {
    font-size: 1.75rem !important;      /* ۲۸px */
    line-height: 1.35 !important;
}

/* ----- اطلاعات متا مقالات (تاریخ + دسته‌بندی) ----- */
.post_meta,
.post_date,
.post_cat,
.post-categories,
.post_meta span,
.post_meta a,
.entry-meta,
.posted-on,
.cat-links {
    font-size: 0.8125rem !important;    /* ۱۳px */
    line-height: 1.5 !important;
}

/* ===== لیست لایسنس‌های من ===== */

.woocommerce-MyAccount-content #sp_courses,
.woocommerce-MyAccount-content .sp_courses {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

/* نمایش نواری */
#sp_courses {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

#sp_courses > a {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    padding: 16px 20px !important;
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    transition: all 0.22s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
}

#sp_courses > a:hover {
    background: #f0fdf4 !important;
    border-color: #42a046 !important;
    box-shadow: 0 3px 10px rgba(66, 160, 70, 0.15) !important;
}

/* تصویر */
#sp_courses > a img {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    margin: 0 !important;
}

/* عنوان */
#sp_courses > a h2 {
    font-size: clamp(0.95rem, 1.8vw + 0.55rem, 1.12rem) !important;
    line-height: 1.4 !important;
    margin: 0 0 4px 0 !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
}

/* زیرعنوان پیشنهادی (با CSS ساخته می‌شود) */
#sp_courses > a h2::after {
    content: "مشاهده لایسنس و دسترسی";
    display: block;
    font-size: 0.78rem;
    font-weight: 400;
    color: #6b7280;
    margin-top: 3px;
    line-height: 1.3;
}

/* ریسپانسیو موبایل */
@media (max-width: 640px) {
    #sp_courses > a {
        gap: 12px !important;
        padding: 12px 14px !important;
    }
    #sp_courses > a img {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
    }
    #sp_courses > a h2 {
        font-size: clamp(0.875rem, 2.5vw + 0.5rem, 1rem) !important;
    }
    #sp_courses > a h2::after {
        font-size: 0.72rem;
    }
}


/* ===== صفحه جزئیات لایسنس ===== */

.woocommerce-MyAccount-content #sp {
    background: #fff;
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

/* عنوان اصلی */
#sp > h1 {
    font-size: clamp(1.25rem, 2.5vw + 0.8rem, 1.6rem) !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 18px !important;
    line-height: 1.35 !important;
}

/* باکس هشدار */
#sp-warn {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    border-radius: 10px !important;
    padding: 14px 18px !important;
    margin-bottom: 28px !important;
    color: #b91c1c !important;
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
}

/* بخش مشاهده در اپلیکیشن */
#sp-app {
    margin-bottom: 32px !important;
}

#sp-app > h2 {
    font-size: clamp(1.1rem, 2vw + 0.7rem, 1.3rem) !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 12px !important;
}

#sp-app > p {
    color: #4b5563 !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    margin-bottom: 20px !important;
}

/* پلتفرم‌ها */
#sp_players {
    margin-bottom: 36px !important;
}

#sp_players > h3 {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin-bottom: 16px !important;
}

#sp_players > div {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    justify-content: flex-start !important;
}

#sp_players a,
#sp_players > div > a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 14px 16px !important;
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    min-width: 90px !important;
}

#sp_players a:hover {
    background: #f0fdf4 !important;
    border-color: #42a046 !important;
    box-shadow: 0 3px 10px rgba(66, 160, 70, 0.12) !important;
    transform: translateY(-2px);
}

#sp_players img {
    width: 42px !important;
    height: 42px !important;
    object-fit: contain !important;
}

#sp_players span,
#sp_players small {
    font-size: 0.8rem !important;
    color: #4b5563 !important;
    text-align: center !important;
}

/* بخش کلید لایسنس */
#sp_license {
    margin-top: 10px !important;
}

#sp_license > h3 {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin-bottom: 14px !important;
}

#sp_license textarea {
    width: 100% !important;
    min-height: 90px !important;
    padding: 14px 16px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 10px 10px 0 0 !important;
    background: #f9fafb !important;
    font-family: monospace !important;
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    color: #374151 !important;
    resize: none !important;
    direction: ltr !important;
    text-align: left !important;
}

#sp_license button.sp_color_back,
#sp_license button {
    width: 100% !important;
    background: #42a046 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 0 10px 10px !important;
    padding: 14px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

#sp_license button:hover {
    background: #368a3a !important;
}

/* ریسپانسیو صفحه جزئیات */
@media (max-width: 640px) {
    .woocommerce-MyAccount-content #sp {
        padding: 20px 18px !important;
    }
    
    #sp_players > div {
        gap: 10px !important;
    }
    
    #sp_players a {
        min-width: 78px !important;
        padding: 12px 10px !important;
    }
}
/* ===== بخش لایسنس‌های من ===== */

/* ----- Breadcrumb ----- */
ol.breadcrumb-arrow {
    font-size: 0.8125rem !important;
    line-height: 1.5 !important;
    margin: 18px 0 8px 0 !important;          /* فاصله از منو و محتوا */
    padding: 10px 16px !important;
    background: #ffffff !important;            /* پس‌زمینه سفید */
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    position: relative !important;
    z-index: 2 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}

ol.breadcrumb-arrow li {
    font-size: 0.8125rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

ol.breadcrumb-arrow li a {
    color: #666 !important;
}

ol.breadcrumb-arrow li.active {
    color: #222 !important;
    font-weight: 600 !important;
}

/* ----- بخش جزئیات بیشتر در صفحه محصول ----- */
.additional_information h2,
.rollbar-content h2,
.product_dl_box h2,
.woocommerce-Tabs-panel h2 {
    font-size: 1.25rem !important;      /* ۲۰px */
    font-weight: 700 !important;
    margin-bottom: 15px !important;
}

/* ----- جدول سفارشات در پنل کاربری ----- */
.woocommerce-orders-table,
.woocommerce-orders-table th,
.woocommerce-orders-table td,
.woocommerce-MyAccount-orders th,
.woocommerce-MyAccount-orders td,
.my_account_orders th,
.my_account_orders td {
    font-size: 0.875rem !important;     /* ۱۴px */
    line-height: 1.5 !important;
}

.woocommerce-orders-table .button,
.woocommerce-orders-table a.button {
    font-size: 0.8125rem !important;    /* ۱۳px */
}

/* ========================================
   نوار استیکی خرید محصول (Sticky Add to Cartم)
   ======================================== */
.sticky_add_to_cart,
.sticky_add_to_cart.vr_desktop {
    padding: 12px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.sticky_add_to_cart .file_price,
.sticky_add_to_cart .file_price strong {
    font-size: 0.8125rem !important;   /* ۱۳px */
    font-weight: 600 !important;
    margin: 0 0 2px 0 !important;
    display: block !important;
}

.sticky_add_to_cart .price,
.sticky_add_to_cart p.price {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
}

.sticky_add_to_cart .woocommerce-Price-amount,
.sticky_add_to_cart .yith-wcpb-saving-amount,
.sticky_add_to_cart .amount,
.sticky_add_to_cart bdi,
.sticky_add_to_cart .woocommerce-Price-currencySymbol {
    font-family: inherit !important;
    font-size: 1.125rem !important;    /* ۱۸px */
    font-weight: 700 !important;
    color: #111 !important;
}

.sticky_add_to_cart .single_add_to_cart_button,
.sticky_add_to_cart button.single_add_to_cart_button {
    font-size: 0.9375rem !important;   /* ۱۵px */
    font-weight: 600 !important;
    padding: 10px 20px !important;
    line-height: 1.3 !important;
    height: auto !important;
    min-height: 42px !important;
    white-space: nowrap !important;
}

/* موبایل استیکی */
@media (max-width: 767px) {
    .sticky_add_to_cart {
        padding: 10px 12px !important;
        gap: 8px !important;
    }
    
    .sticky_add_to_cart .woocommerce-Price-amount,
    .sticky_add_to_cart bdi {
        font-size: 1rem !important;
    }
    
    .sticky_add_to_cart .single_add_to_cart_button {
        font-size: 0.875rem !important;
        padding: 9px 14px !important;
        min-height: 40px !important;
    }
}

/* ========================================
   رنگ‌بندی و اندازه قیمت تخفیف‌دار
   (هدر محصول + استیکی + قالب wc-spt)
   ======================================== */

/* ----- قیمت قبلی (خط‌خورده) ----- */
.price del,
.price del .woocommerce-Price-amount,
.price del bdi,
.wc-spt-price del,
.wc-spt-price del .woocommerce-Price-amount,
.wc-spt-price del bdi,
.summary .price del,
.file_price .price del,
.sticky_add_to_cart .price del {
    color: #e63939 !important;
    font-size: 0.9em !important;
    opacity: 0.85 !important;
    text-decoration: line-through !important;
    font-weight: 400 !important;
}

/* ----- قیمت فعلی (بعد از تخفیف) ----- */
.price ins,
.price ins .woocommerce-Price-amount,
.price ins bdi,
.wc-spt-price ins,
.wc-spt-price ins .woocommerce-Price-amount,
.wc-spt-price ins bdi,
.summary .price ins,
.file_price .price ins,
.sticky_add_to_cart .price ins {
    color: #0f172a !important;              
    font-size: 1.25rem !important;          /* ۲۰px */
    font-weight: 700 !important;
    text-decoration: none !important;
}

.yith-wcpb-product-bundled-items {
    display:none;
}

/* ----- مبلغ ذخیره‌شده (ذخیره) ----- */
.yith-wcpb-saving-amount,
.yith-wcpb-saving-amount .woocommerce-Price-amount,
.yith-wcpb-saving-amount bdi,
span.yith-wcpb-saving-amount,
.wc-spt-price .yith-wcpb-saving-amount {
    color: #2e7d32 !important;              /* سبز مثبت */
    font-size: 0.95rem !important;
    font-weight: 600 !important;
}

/* متن "ذخیره" */
.yith-wcpb-saving-amount {
    display: inline-block !important;
    margin: 0 4px !important;
}

/* ----- تنظیم کلی اندازه در هدر محصول ----- */
.wc-spt-price,
.summary .price,
.file_price .price {
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

.wc-spt-price .woocommerce-Price-amount,
.summary .price .woocommerce-Price-amount {
    font-family: inherit !important;
}

/* ----- حذف کامل ردیف عنوان در برگه‌ها ----- */
body.page .single_blog_top,
body.page .block-title,
body.page .page-header,
body.page .entry-header,
body.page .content-wrap > .block-title,
body.page article .single_blog_top {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* ----- فونت قیمت در هدر / خلاصه محصول ----- */
.summary .price,
.summary .price .woocommerce-Price-amount,
.summary .price bdi,
.summary .price .woocommerce-Price-currencySymbol,
.product_meta + .price,
.file_price .price,
.file_price .woocommerce-Price-amount,
.file_price bdi {
    font-family: inherit !important;
    font-size: 1.25rem !important;        /* ۲۰px - خواناتر در هدر محصول */
    font-weight: 700 !important;
    letter-spacing: -0.3px !important;
}

.file_price strong {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    display: block !important;
    margin-bottom: 4px !important;
}

/* ========================================
   زیرمنوهای هدر - اندازه و جذابیت بهتر
   ======================================== */
.sub-menu li a,
ul.sub-menu li a,
.sub-menu .menu-item a {
    font-size: 0.9375rem !important;
    line-height: 1.5 !important;
    padding: 9px 16px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    border-radius: 6px !important;
    color: #333 !important;
}

.sub-menu li a:hover,
ul.sub-menu li a:hover {
    color: #d97706 !important;
    background-color: rgba(217, 119, 6, 0.08) !important;
    font-weight: 600 !important;
}

.sub-menu li {
    margin-bottom: 2px !important;
}
/* ========================================
   زیرمنوهای هدر - اندازه و جذابیت بهتر
   ======================================== */
   
   /* فقط برای قالب «بدون عکس شاخص و سایدبار» */
.page-template-page-no-featured .page-layout-wrap,
.page-template-page-no-featured .page-layout-inner,
.page-template-page-no-featured .post_wrapper,
.page-template-page-no-featured .single_blog_top {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* اگر هنوز فاصله سفید مونده */
.page-template-page-no-featured .site-content,
.page-template-page-no-featured .content-area,
.page-template-page-no-featured .entry-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}
   /* فقط برای قالب «بدون عکس شاخص و سایدبار» */