/**
 * Theme Name: Ahura Child
 * Description: This is a child theme of Ahura, generated by MihanWP.
 * Author: MihanWP
 * Template: ahura
 * Version: 6.0 (Optimized by Claude)
 */

/* =========================================================================
   1. GLOBAL STYLES
   ========================================================================= */

/* قوانین سراسری برای مدیریت عرض صفحه */
html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* تضمین می‌کنیم که عناصر شامل حاشیه‌ها هم از عرض خارج نشوند */
* {
    box-sizing: border-box !important;
}
/* =========================================================================
   2. MIHANPANEL STYLES
   ========================================================================= */

@media (min-width: 768px) {
    .mihanpanelpanel .main-panel {
        max-width: 100px;
    }
}

/* افزایش خوانایی آیتم‌های منو */
.mpsidebar .mpsidebar-wrapper .mp-nav-tabs-mpwrapper a.mwtaba p {
    font-weight: 500 !important;
}

/* =========================================================================
   3. RANK MATH BREADCRUMBS
   ========================================================================= */

/* مخفی کردن در صفحه اصلی */
.home .rank-math-breadcrumb {
    display: none;
}

/* استایل در صفحات داخلی */
.rank-math-breadcrumb {
    background-color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    margin: 8px 0;
    border: 1px solid #e0e0e0;
}

.rank-math-breadcrumb a {
    color: #3194f3;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.rank-math-breadcrumb a:hover {
    text-decoration: underline;
}

.rank-math-breadcrumb .separator {
    margin: 0 8px;
    color: #999;
}

/* =========================================================================
   4. WOOCOMMERCE PRODUCT PAGE NOTICES
   ========================================================================= */

/* --- هشدار اکانت اشتراکی/اختصاصی (زرد) --- */
.shared-account-warning-box {
    border: 2px solid #FFC107;
    background-color: #FFF9E6;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.shared-account-warning-box h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #FF6F00;
    font-size: 1.1em;
}

.shared-account-warning-box ul {
    list-style: none;
    padding-right: 0;
    margin-bottom: 0;
}

.shared-account-warning-box ul li {
    padding-bottom: 10px;
    line-height: 1.6;
}

.shared-account-warning-box ul li:last-child {
    padding-bottom: 0;
}
/* --- بهینه‌سازی باکس هشدار زرد رنگ فقط در موبایل --- */
@media only screen and (max-width: 768px) {
    .shared-account-warning-box {
        padding: 12px 15px !important; /* کاهش فاصله داخلی برای جمع‌وجور شدن */
        margin-bottom: 20px !important; /* کاهش فاصله از پایین */
    }

    .shared-account-warning-box h4 {
        font-size: 15px !important; /* کوچک‌تر کردن تیتر اصلی */
        margin-bottom: 8px !important;
    }

    .shared-account-warning-box ul li {
        font-size: 13.5px !important; /* کوچک‌تر کردن متن لیست‌ها */
        padding-bottom: 6px !important; /* کاهش فاصله بین خطوط لیست */
        line-height: 1.5 !important;
    }
}
/* --- پایان بهینه‌سازی باکس هشدار --- */
/* =========================================================================
   5. WOOCOMMERCE CHECKOUT PAGE
   ========================================================================= */

/* --- اطلاعیه ساخت خودکار اکانت (آبی) --- */
.checkout-notice-box {
    border: 2px solid #3194f3;
    background-color: #f0f8ff;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.checkout-notice-box h4 {
    margin-top: 0;
    color: #3194f3;
    font-size: 1.1em;
}

.checkout-notice-box ul {
    list-style: none;
    padding-right: 0;
    margin-bottom: 0;
}

.checkout-notice-box ul li {
    padding-bottom: 10px;
    line-height: 1.6;
}

.checkout-notice-box ul li:last-child {
    padding-bottom: 0;
}

/* =========================================================================
   6. WOOCOMMERCE THANK YOU PAGE (NEW - COMBINED BUTTONS)
   ========================================================================= */

/* مخفی کردن پیام پیش‌فرض اهورا */
.woocommerce-order .ah-order-received-message {
    display: none !important;
}

/* --- باکس ترکیبی صفحه تشکر --- */
.custom-thank-you-box-combined {
    border: 2px solid #3194f3;
    background-color: #f8fbff;
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.custom-thank-you-box-combined h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1e7ac7;
    font-size: 1.5em;
}

.custom-thank-you-box-combined p {
    line-height: 1.8;
    font-size: 1.1em;
    margin-bottom: 25px;
    color: #555;
}

/* --- دکمه‌های صفحه تشکر (مشترک) --- */
.custom-thank-you-box-combined .thank-you-btn {
    display: block !important;
    width: 100%;
    max-width: 400px;
    margin: 10px auto !important;
    padding: 15px 25px !important;
    font-weight: bold !important;
    font-size: 1.05em !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    text-align: center;
    transition: all 0.3s ease !important;
    border: none !important;
}

/* --- دکمه پنل کاربری (آبی) --- */
.custom-thank-you-box-combined .panel-btn {
    background-color: #3194f3 !important;
    color: white !important;
}

.custom-thank-you-box-combined .panel-btn:hover {
    background-color: #1e7ac7 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 148, 243, 0.3);
}

.custom-thank-you-box-combined .panel-btn .btn-icon {
    margin-left: 8px;
}

/* --- دکمه واتساپ (سبز) --- */
.custom-thank-you-box-combined .whatsapp-btn {
    background-color: #25D366 !important;
    color: white !important;
}

.custom-thank-you-box-combined .whatsapp-btn:hover {
    background-color: #128C7E !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* =========================================================================
   7. WOOCOMMERCE VARIATIONS & PRICING
   ========================================================================= */

/* فیکس جهت اعداد قیمت */
.woocommerce-Price-amount .woocommerce-Price-bidi {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

.woocommerce-Price-bdi {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center;
    justify-content: flex-end;
}

.woocommerce-Price-bdi .woocommerce-Price-currencySymbol {
    margin-left: 5px;
    margin-right: 5px;
}

/* عرض کامل برای سلکت باکس وریشن */
.variations_form.cart .variations select {
    width: 100% !important;
    max-width: 100% !important;
}

/* =========================================================================
   8. WOOCOMMERCE PAYMENT GATEWAY LOGO
   ========================================================================= */

label[for="payment_method_WC_ZPal"] img {
    width: 120px !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

/* =========================================================================
   9. SINGLE POST STYLES
   ========================================================================= */

/* فیکس لینک‌های داخل پاراگراف */
.single-post .entry-content p a {
    display: inline !important;
    color: #3194f3 !important;
}

/* مخفی کردن سایدبار در پست‌های تکی */
body.single-post .sidebar-widget {
    display: none;
}

/* عرض کامل محتوا در پست‌های تکی */
body.single-post .content {
    width: 100%;
}

/* =========================================================================
   10. MISC STYLES
   ========================================================================= */

/* لینک‌های مقایسه رقبا */
.competitor-comparison-list li a {
    color: #3194f3;
    font-weight: bold;
    text-decoration: none;
}

.competitor-comparison-list li a:hover {
    text-decoration: underline;
}

/* فاصله عنوان FAQ */
.faq-main-title {
    margin-top: 30px;
    margin-bottom: 15px;
}

/* دکمه CTA در توضیحات محصول */
.woocommerce-Tabs-panel--description a.elementor-button {
    border-radius: 12px !important;
    margin-top: 20px !important;
}

/* فاصله فهرست مطالب */
#ez-toc-container {
    margin-top: 25px !important;
}

/* =========================================================================
   11. MOBILE RESPONSIVE
   ========================================================================= */

@media (max-width: 767px) {
    
    /* فیکس وریشن‌ها در موبایل */
    .variations_form .variations .label,
    .variations_form .variations .value {
        display: block;
        width: 100%;
        text-align: right;
    }
    
    .variations_form .variations .label {
        margin-bottom: 8px;
    }
    
    .variations_form .variations .label label {
        font-weight: bold;
    }
    
    .variations_form .variations .value select {
        height: 45px;
    }
    
    /* ترنزیشن برای اسپیسر */
    body .elementor-section:first-of-type,
    body .elementor-container:first-of-type {
        transition: padding-top 0.25s ease-out !important;
        -webkit-transition: padding-top 0.25s ease-out !important;
    }
}
/* --- اسکرول افقی یکپارچه برای جدول مقایسه در موبایل --- */
@media only screen and (max-width: 768px) {
    .tablepress {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important; /* اسکرول نرم در موبایل */
        border-collapse: collapse !important;
    }
    
    .tablepress th, 
    .tablepress td {
        white-space: nowrap !important; /* جلوگیری از مچاله شدن متن */
        min-width: 130px !important; /* حداقل عرض برای خوانایی */
    }
    
    /* ستون اول (ویژگی‌ها) کمی عریض‌تر باشد */
    .tablepress .column-1 {
        min-width: 160px !important;
    }
}
