/*
Theme Name: Farnam Child
Template: farnam
*/
@import url("../farnam/style.css");


/*
Theme Name: Farnam Child
Template: farnam
*/

/* ============================================================
   استایل مدرن باکس قیمت - هماهنگ با قالب
   ============================================================ */

/* ---------- باکس اصلی ---------- */
.dodo .price-kharid {
    position: sticky;
    top: 85px;
    z-index: 999;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 24px 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #eaeef2;
    transition: all 0.3s ease;
}

.dodo .price-kharid:hover {
    box-shadow: 0 12px 40px rgba(41, 146, 251, 0.12);
    border-color: #2992FB;
}

/* ---------- برچسب تخفیف ---------- */
.dodo .price-kharid .onsale {
    display: none !important;
}

.dodo .price-kharid::before {
    content: "🔥 تخفیف ویژه";
    position: absolute;
    top: -11px;
    right: 18px;
    background: #2992FB;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 50px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(41, 146, 251, 0.25);
}

/* ---------- بخش قیمت ---------- */
.dodo .price-kharid .price {
    display: flex !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px 14px !important;
    margin-bottom: 18px !important;
    padding-bottom: 16px !important;
    border-bottom: 2px solid #f0f4f8 !important;
}

/* قیمت جدید */
.dodo .price-kharid .price ins {
    color: #2992FB !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    order: 1 !important;
}

.dodo .price-kharid .price ins .woocommerce-Price-currencySymbol {
    font-size: 18px !important;
    font-weight: 600 !important;
}

/* قیمت قبل */
.dodo .price-kharid .price del {
    color: #a0aec0 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
    order: 2 !important;
}

.dodo .price-kharid .price del .woocommerce-Price-currencySymbol {
    font-size: 1px !important;
}

/* ---------- بخش تعداد (حرفه‌ای) ---------- */
.dodo .price-kharid .quantity-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 20px !important; /* افزایش فاصله از دکمه خرید */
}

.dodo .price-kharid .quantity {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #f7fafc !important;
    height: 44px !important;
    transition: all 0.3s ease !important;
}

.dodo .price-kharid .quantity:hover {
    border-color: #2992FB !important;
    background: #ffffff !important;
}

/* دکمه منفی */
.dodo .price-kharid .quantity-controlsghgggffrrrr button.minus {
    width: 42px !important;
    height: 44px !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    font-size: 22px !important;
    font-weight: 300 !important;
    color: #4a5568 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border-right: 2px solid #e2e8f0 !important;
    transition: all 0.2s ease !important;
}

.dodo .price-kharid .quantity-controlsghgggffrrrr button.minus:hover {
    background: #2992FB !important;
    color: #fff !important;
}

/* دکمه مثبت */
.dodo .price-kharid .quantity-controlsghgggffrrrr button.plus {
    width: 42px !important;
    height: 44px !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    font-size: 22px !important;
    font-weight: 300 !important;
    color: #4a5568 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border-left: 2px solid #e2e8f0 !important;
    transition: all 0.2s ease !important;
}

.dodo .price-kharid .quantity-controlsghgggffrrrr button.plus:hover {
    background: #2992FB !important;
    color: #fff !important;
}

.dodo .price-kharid .quantity-controlsghgggffrrrr button:active {
    transform: scale(0.92) !important;
}

/* عدد وسط */
.dodo .price-kharid .quantity input.qty {
    width: 54px !important;
    height: 44px !important;
    text-align: center !important;
    border: none !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    background: transparent !important;
    color: #2d3748 !important;
    padding: 0 !important;
    -moz-appearance: textfield !important;
}

.dodo .price-kharid .quantity input.qty::-webkit-outer-spin-button,
.dodo .price-kharid .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* ---------- دکمه افزودن به سبد خرید (با فاصله مناسب) ---------- */
.dodo .price-kharid .single_add_to_cart_button {
    width: 100% !important;
    padding: 16px 24px !important;
    margin-top: 20px !important;
    background: #2992FB !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    letter-spacing: 0.5px !important;
    position: relative !important;
    overflow: hidden !important;
}

/* افکت شیشه‌ای روی دکمه */
.dodo .price-kharid .single_add_to_cart_button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.08), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.dodo .price-kharid .single_add_to_cart_button:hover::after {
    left: 100%;
}

.dodo .price-kharid .single_add_to_cart_button:hover {
    background: #1a7ad4 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(41, 146, 251, 0.35) !important;
}

.dodo .price-kharid .single_add_to_cart_button:active {
    transform: translateY(0px) !important;
    box-shadow: 0 4px 12px rgba(41, 146, 251, 0.2) !important;
}

/* آیکون سبد خرید داخل دکمه */
.dodo .price-kharid .single_add_to_cart_button::before {
    content: "🛒";
    font-size: 18px;
}

/* ---------- دکمه علاقه‌مندی ---------- */
.dodo .price-kharid .yith-wcwl-add-to-wishlist {
    margin-top: 14px !important;
    text-align: center !important;
}

.dodo .price-kharid .yith-wcwl-add-to-wishlist a {
    color: #718096 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.3s ease !important;
}

.dodo .price-kharid .yith-wcwl-add-to-wishlist a:hover {
    color: #2992FB !important;
}

.dodo .price-kharid .yith-wcwl-add-to-wishlist a svg {
    width: 18px !important;
    height: 18px !important;
}

/* ---------- حالت sticky فعال ---------- */
.dodo .price-kharid.sticky-active {
    box-shadow: 0 12px 40px rgba(41, 146, 251, 0.12) !important;
    border-color: #2992FB !important;
}

/* ---------- حالت نمایش روی موبایل ---------- */
@media (max-width: 768px) {
    .dodo .price-kharid {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        border-radius: 16px 16px 0 0 !important;
        padding: 16px 18px 20px !important;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08) !important;
        z-index: 9999 !important;
        border: none !important;
        border-top: 3px solid #2992FB !important;
    }

    .dodo .price-kharid .price ins {
        font-size: 22px !important;
    }

    .dodo .price-kharid .price del {
        font-size: 13px !important;
    }

    .dodo .price-kharid .price {
        margin-bottom: 14px !important;
        padding-bottom: 12px !important;
    }

    .dodo .price-kharid .quantity-wrapper {
        margin-bottom: 16px !important;
    }

    .dodo .price-kharid .quantity {
        height: 38px !important;
    }

    .dodo .price-kharid .quantity input.qty {
        width: 44px !important;
        height: 38px !important;
        font-size: 16px !important;
    }

    .dodo .price-kharid .quantity-controlsghgggffrrrr button.minus,
    .dodo .price-kharid .quantity-controlsghgggffrrrr button.plus {
        width: 36px !important;
        height: 38px !important;
        font-size: 18px !important;
    }

    .dodo .price-kharid .single_add_to_cart_button {
        padding: 14px 16px !important;
        font-size: 14px !important;
        margin-top: 2px !important;
    }

    .dodo .price-kharid .single_add_to_cart_button::before {
        font-size: 16px !important;
    }

    .dodo .price-kharid::before {
        font-size: 10px !important;
        top: -10px !important;
        right: 14px !important;
        padding: 2px 14px !important;
    }
}

/* ---------- حالت دسکتاپ با صفحه کوچک ---------- */
@media (max-width: 1024px) and (min-width: 769px) {
    .dodo .price-kharid .price ins {
        font-size: 22px !important;
    }
    
    .dodo .price-kharid .quantity {
        height: 38px !important;
    }
    
    .dodo .price-kharid .quantity input.qty {
        height: 38px !important;
        width: 44px !important;
    }
    
    .dodo .price-kharid .quantity-controlsghgggffrrrr button.minus,
    .dodo .price-kharid .quantity-controlsghgggffrrrr button.plus {
        height: 38px !important;
        width: 36px !important;
    }

    .dodo .price-kharid .quantity-wrapper {
        margin-bottom: 18px !important;
    }
}
