/*
Theme Name: Jadogarewp Child
Theme URI: https://jadoogarwp.com/
Template: hello-elementor
Author: جادوگر وردپرس | jadoogar wp
Author URI: https://jadoogarwp.com/
Description: جادوگر وردپرس؛ معماری وب‌سایت‌های لوکس؛ سریع، امن، مطمئن.
Version: 2.7.0
Text Domain: jadoogar-child
*/

/* ==========================================================================
   ۱. تعریف فونت یکان‌بخ
   ========================================================================== */
@font-face {
    font-family: 'YekanBakhFaNum-VF';
    src: url('fonts/YekanBakhFaNum-VF.woff2') format('woff2');
    font-weight: 100 600;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   ۲. اعمال مستقیم فونت بر تمام المان‌ها (بدون وریبل‌های المنتور)
   ========================================================================== */
body,
p,
a,
input,
button,
select,
textarea,
table,
td,
th,
.elementor-heading-title,
.elementor-widget-nav-menu .elementor-item,
.elementor-nav-menu--main .elementor-item,
.elementor-item,
.elementor-sub-item,
.elementor-button {
    font-family: 'YekanBakhFaNum-VF', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

span:not([class*="eicon"]):not([class*="fa-"]):not([class*="dashicons"]) {
    font-family: 'YekanBakhFaNum-VF', sans-serif !important;
}

/* محافظت از آیکون‌های المنتور و FontAwesome */
[class^="eicon-"], [class*=" eicon-"] {
    font-family: 'eicons' !important;
}

.fa, .fas, .far, .fab {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands" !important;
}

/* تنظیمات بدنه سایت و رنگ پس‌زمینه */
body {
    background-color: #F9F9F9 !important;
    color: #232a35;
    font-weight: 400;
    font-feature-settings: "ss02", "cv01";
    line-height: 1.8;
}

/* سقف وزن تیترها */
h1, h2, h3, h4, h5, h6,
b, strong,
.elementor-heading-title,
.woocommerce-thankyou-order-received,
h2.woocommerce-order-details__title {
    font-family: 'YekanBakhFaNum-VF', sans-serif !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   ۳. ماژول محاسبات و سن بارداری
   ========================================================================== */
.elementor-kit-7 h4 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: -14px;
    padding: 12px 20px;
    background-color: #E688BB;
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 600 !important;
    border-radius: 0 0 14px 14px;
    border: none;
}

#the_info {
    grid-column: span 2;
    padding: 20px;
    border-radius: 14px;
    line-height: 2.1rem;
    background: #FFFFFF;
    border: 1px solid #eaecef;
}

.fp .fr_button {
    background-color: #305593 !important;
    color: #FFFFFF !important;
    padding: 10px 22px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: 0.25s ease;
}

.fp .fr_button:hover {
    background-color: #244275 !important;
}

.fr_note {
    color: #305593;
    background-color: #edf2f9;
    border: 1px solid rgba(48, 85, 147, 0.2);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* ==========================================================================
   ۴. استایل‌های ووکامرس و رفع تداخل سبد خرید
   ========================================================================== */
.elementor-menu-cart__container {
    z-index: 999999 !important;
}

.woocommerce span.onsale {
    position: absolute;
    top: 14px;
    left: 14px !important;
    padding: 2px 10px;
    background-color: #E688BB;
    color: #FFFFFF;
    font-size: 0.85rem;
    border-radius: 6px;
    border: none;
}

.woocommerce-thankyou-order-received {
    text-align: center;
    font-size: 1.35rem;
    color: #E688BB;
    background-color: #FFFFFF;
    padding: 30px 20px;
    border: 1px solid #eaecef;
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    margin-bottom: 0 !important;
}

.woocommerce ul.order_details {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 16px;
    list-style: none;
    background-color: #fdf2f7;
    border: 1px dashed rgba(230, 136, 187, 0.4);
    border-top: none;
    padding: 20px;
    border-radius: 0 0 16px 16px;
    margin-bottom: 2rem;
}

.woocommerce ul.order_details li {
    font-size: 0.95rem;
    border-left: 1px solid rgba(230, 136, 187, 0.3);
    padding-left: 16px;
}

.woocommerce ul.order_details li:last-child {
    border-left: none;
}

.woocommerce ul.order_details li strong {
    display: block;
    color: #305593;
    margin-top: 4px;
    font-weight: 600 !important;
}

section.woocommerce-order-details {
    background: #FFFFFF;
    border: 1px solid #eaecef;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 2rem;
}

h2.woocommerce-order-details__title {
    font-size: 1.2rem;
    color: #305593;
    border-bottom: 2px solid #f1f3f6;
    padding-bottom: 14px;
    margin-bottom: 18px;
    font-weight: 600 !important;
}

table.woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
}

table.woocommerce-table--order-details th,
table.woocommerce-table--order-details td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f3f6;
}

section.woocommerce-customer-details {
    display: none;
}

/* اعلان ریدایرکت سفارشات */
.jw-order-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    background-color: #FFFFFF;
    color: #232a35;
    border: 1px solid #eaecef;
    border-right: 4px solid #305593;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    font-size: 0.9rem;
    z-index: 999999;
}

.jw-order-toast strong {
    color: #305593;
}

/* ==========================================================================
   ۵. بهینه‌سازی موبایل
   ========================================================================== */
@media (max-width: 768px) {
    #the_info { grid-column: span 1; padding: 14px; }
    .fr_legend { display: none; }
    .fp .fr_button { width: 100%; }
    .woocommerce ul.order_details { flex-direction: column; gap: 10px; }
    .woocommerce ul.order_details li { border-left: none; border-bottom: 1px dashed rgba(230, 136, 187, 0.4); padding: 0 0 8px 0; }
    .woocommerce ul.order_details li:last-child { border-bottom: none; }
}