@font-face {
	font-weight: normal;
	font-style: normal;
	font-family: "woodmart-font";
	src: url("//tookajeans.com/wp-content/themes/woodmart/fonts/woodmart-font-2-400.woff2?v=7.3.1") format("woff2");
}

:is(.shop-content-area.wd-builder-off,.wd-wishlist-content,.related-and-upsells,.cart-collaterals,.wd-shop-product) .wd-products-with-bg, :is(.shop-content-area.wd-builder-off,.wd-wishlist-content,.related-and-upsells,.cart-collaterals,.wd-shop-product) .wd-products-with-bg .product-grid-item{
	--wd-prod-bg:rgb(165,161,152); --wd-bordered-bg:rgb(165,161,152);
}

:root{
--wd-cat-brd-radius: 50%;
}
.wd-popup.wd-promo-popup{
	background-color:rgb(245,154,87);
	background-image: none;
	background-repeat:no-repeat;
	background-size:contain;
	background-position:left center;
}

.header-banner{
	background-color:rgb(47,54,69);
	background-image: none;
}

.page-title-default{
	background-color:rgb(47,54,69);
	background-image: none;
	background-size:cover;
	background-position:center top;
}

.footer-container{
	background-color:rgb(47,54,69);
	background-image: none;
}

:root{
--wd-text-font:Yekanbakh, sans-serif;
--wd-text-font-weight:400;
--wd-text-color:#777777;
--wd-text-font-size:14px;
}
:root{
--wd-title-font:"IRansansX", Arial, Helvetica, sans-serif;
--wd-title-font-weight:700;
--wd-title-color:rgb(47,54,69);
}
:root{
--wd-entities-title-font:IRansansX, sans-serif;
--wd-entities-title-font-weight:700;
--wd-entities-title-color:rgb(47,54,69);
--wd-entities-title-color-hover:rgba(0, 53, 99, 0.66);
}
:root{
--wd-alternative-font:"IRansansX", Arial, Helvetica, sans-serif;
}
:root{
--wd-widget-title-font:"IRansansX", Arial, Helvetica, sans-serif;
--wd-widget-title-font-weight:700;
--wd-widget-title-transform:capitalize;
--wd-widget-title-color:rgb(181,0,0);
--wd-widget-title-font-size:16px;
}
:root{
--wd-header-el-font:"IRansansX", Arial, Helvetica, sans-serif;
--wd-header-el-font-weight:600;
--wd-header-el-transform:capitalize;
--wd-header-el-font-size:14px;
}
html .product-grid-item .price, html .product-grid-item .price > .amount, html .product-grid-item .price ins > .amount{
	font-family: IRansansX, sans-serif;font-weight: 600;font-size: 16px;color: rgb(12,44,206);
}

html .product.product-grid-item del, html .product.product-grid-item del .amount{
	font-family: IRansansX, sans-serif;font-weight: 500;font-size: 15px;
}

:root{
--wd-brd-radius: 7px;
}
:root{
--wd-primary-color:rgb(79,33,206);
}
:root{
--wd-alternative-color:rgb(44,87,166);
}
:root{
--wd-link-color:rgb(47,54,69);
--wd-link-color-hover:rgba(47,54,69,0.75);
}
.page .main-page-wrapper{
	background-image: none;
	background-repeat:no-repeat;
	background-size:inherit;
	background-attachment:fixed;
}

.woodmart-archive-shop:not(.single-product) .main-page-wrapper{
	background-image: none;
	background-repeat:repeat;
}

.single-product .main-page-wrapper{
	background-image: url(https://tookajeans.com/wp-content/uploads/2023/04/wd-furniture-background.jpg);
	background-repeat:repeat;
}

.woodmart-archive-blog .main-page-wrapper{
	background-color:rgb(104,104,104);
	background-image: url(https://tookajeans.com/wp-content/uploads/2023/04/wd-furniture-background.jpg);
	background-repeat:repeat;
}

.single-post .main-page-wrapper{
	background-image: url(https://tookajeans.com/wp-content/uploads/2023/04/wd-furniture-background.jpg);
	background-repeat:repeat;
}

:root{
--btn-default-transform:none;
}
:root{
--btn-default-bgcolor:rgb(47,54,69);
}
:root{
--btn-default-bgcolor-hover:#efefef;
}
:root{
--btn-accented-transform:none;
}
:root{
--btn-accented-bgcolor:rgb(44,87,166);
}
:root{
--btn-accented-bgcolor-hover:rgb(44,87,166);
}
:root{
--btn-transform:none;
}
html .wd-buy-now-btn{
	color: rgb(255,255,255);background: rgb(47,54,69);
}

html .wd-buy-now-btn:hover{
	color: rgb(255,255,255);background: rgb(47,54,69);
}

:root{
--notices-success-bg:#459647;
}
:root{
--notices-success-color:#fff;
}
:root{
--notices-warning-bg:#E0B252;
}
:root{
--notices-warning-color:#fff;
}
[class*="thumbs-grid-bottom"] .woocommerce-product-gallery__wrapper.wd-grid{
--wd-col: 2;
}
@media (max-width: 1024px) { 
 [class*="thumbs-grid-bottom"] .woocommerce-product-gallery__wrapper.wd-grid{
--wd-col: 2;
} 
}

@media (max-width: 768.98px) { 
 [class*="thumbs-grid-bottom"] .woocommerce-product-gallery__wrapper.wd-grid{
--wd-col: 2;
} 
}
[class*="thumbs-grid-bottom"] .woocommerce-product-gallery__wrapper.wd-grid{
--wd-gap: 20px;
}
@media (max-width: 1024px) { 
 [class*="thumbs-grid-bottom"] .woocommerce-product-gallery__wrapper.wd-grid{
--wd-gap: 20px;
} 
}

@media (max-width: 768.98px) { 
 [class*="thumbs-grid-bottom"] .woocommerce-product-gallery__wrapper.wd-grid{
--wd-gap: 10px;
} 
}


	:root{
									--wd-form-brd-radius: 35px;
			
			
					
					--wd-form-brd-width: 1px;
		
					--btn-default-color: #333;
		
					--btn-default-color-hover: #333;
		
					--btn-accented-color: #fff;
		
					--btn-accented-color-hover: #fff;
		
					
			
							--btn-default-brd-radius: 35px;
				--btn-default-box-shadow: none;
				--btn-default-box-shadow-hover: none;
			
					
					
			
							--btn-accented-brd-radius: 35px;
				--btn-accented-box-shadow: none;
				--btn-accented-box-shadow-hover: none;
			
					
							
		
			}

	
	
	
	
			div.wd-popup.popup-quick-view {
			max-width: 920px;
		}
	
	
	
	
			.woodmart-woocommerce-layered-nav .wd-scroll-content {
			max-height: 223px;
		}
	
	
	body, [class*=color-scheme-light], [class*=color-scheme-dark], .wd-search-form[class*="wd-header-search-form"] form.searchform, .wd-el-search .searchform {

									--wd-form-color: rgb(47,54,69);
					
									--wd-form-placeholder-color: rgb(73,73,73);
					
									--wd-form-brd-color: rgba(0,114,255,0.24);
					
							
									--wd-form-bg: rgba(55,66,76,0.04);
						}
.widget_price_filter [class*="price_slider_amount"] .button{
	color: #fff !important;
}
.mobile-nav .searchform input[type="text"]{
    background: #2C57A6;
}
span.wd-tools-inner {
    width: 120px;
}
.woocommerce-mini-cart__buttons .btn-cart
{
color:#fff !important ;
}
.wd-tools-element.wd-design-8 .wd-tools-inner{
    width: auto;
}

span.woocommerce-Price-currencySymbol {
    float: left;
    padding-right: 5px;
}
[class*="title-line-"] .wd-product .wd-entities-title{
display: inline-block !important;}

.product-wrapper {
    background: #fff;
}
h3.wd-entities-title {
    color: #000;
}
body.page-id-place .product-grid-item .product-element-top {
  overflow: hidden;
}
body.page-id-place .product-grid-item .product-element-top img {
  transition: transform 0.4s ease;
}
body.page-id-place .product-grid-item:hover .product-element-top img {
  transform: scale(1.15);
}

add_action('woocommerce_cart_calculate_fees', 'tooka_flatrate_extra_fee_per_item', 30);
function tooka_flatrate_extra_fee_per_item() {
    if (is_admin() && !defined('DOING_AJAX')) return;

    $cart = WC()->cart;
    if (!$cart) return;

    // تعداد اقلام در سبد
    $items_count = $cart->get_cart_contents_count();

    // فقط اگر بیشتر از 1 آیتم هست
    if ($items_count > 1) {

        // درصد افزایش برای هر آیتم اضافه
        $percent_per_extra_item = 5; // ← درصد دلخواه خودت

        // استخراج هزینه روش ارسال نرخ ثابت
        $chosen_methods = WC()->session->get('chosen_shipping_methods');
        if (empty($chosen_methods)) return;

        $chosen = $chosen_methods[0];
        $packages = WC()->shipping()->get_packages();
        $shipping_total = 0;

        foreach ($packages as $package) {
            if (isset($package['rates'][$chosen])) {
                $shipping_total += floatval($package['rates'][$chosen]->cost);
            }
        }

        // اگر نرخ ثابت مقدار داشت
        if ($shipping_total > 0) {
            $extra_items = $items_count - 1;
            $total_percent = $extra_items * $percent_per_extra_item;
            $extra_fee = $shipping_total * $total_percent / 100;

            $cart->add_fee('افزایش هزینه حمل‌ونقل (' . $total_percent . '%)', $extra_fee);
        }
    }
}
