/* ================================================================ Written and developed by Naeime abbasi - WPHelper - start ==================================================*/
/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= font - start =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
@font-face {
	font-family: IRANSans;
	font-style: normal;
	font-weight: 100;
	src: url('fonts/IRANSansWebFaNum_UltraLight.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
	font-family: IRANSans;
	font-style: normal;
	font-weight: 300;
	src: url('fonts/IRANSansWebFaNum_Light.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
	font-family: IRANSans;
	font-style: normal;
	font-weight: normal;
	src: url('fonts/IRANSansWebFaNum.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
	font-family: IRANSans;
	font-style: normal;
	font-weight: 500;
	src: url('fonts/IRANSansWebFaNum_Medium.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
	font-family: IRANSans;
	font-style: normal;
	font-weight: 600;
	src: url('fonts/IRANSansWebFaNum_Medium.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
	font-family: IRANSans;
	font-style: normal;
	font-weight: 700;
	src: url('fonts/IRANSansWebFaNum_Bold.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
	font-family: IRANSans;
	font-style: normal;
	font-weight: 800;
	src: url('fonts/IRANSansWebFaNum_Black.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
	font-family: IRANSans;
	font-style: normal;
	font-weight: 900;
	src: url('fonts/IRANSansWebFaNum_Black.woff') format('woff'); /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}


 body {
    font-family: 'IRANSans';
	font-weight: normal;   
}
h1,h2,h3,h4,h5,h6,p,ul,li,a,span,div,input::placeholder, textarea::placeholder, button{
	font-family: 'IRANSans' !important;
}

/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= fibosearch box -desktop - start =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
.dgwt-wcas-search-input {
    border-radius: 10px !important;
    padding: 7px 35px 7px 48px !important;
    font-size: 15px !important;
	  font-family: 'IRANSans' !important;
}
.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
    min-height: 24px;
    min-width: 24px;
    height: 24px;
    width: 24px;
}
.dgwt-wcas-search-input {
    padding-right: 40px !important;
    padding-left: 40px !important;
}
.dgwt-wcas-search-submit {
    right:20px !important;
    left: auto !important;
}
.dgwt-wcas-preloader {
    left: 20px !important; 
    right: auto !important;
}
a.dgwt-wcas-suggestion.js-dgwt-wcas-suggestion-more.dgwt-wcas-suggestion-more {
    padding: 10px !important;
    color: #000000 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}
/* fibosearch box -desktop - end */
/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= fibosearch box -mobile - start=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
.js-dgwt-wcas-enable-mobile-form.dgwt-wcas-enable-mobile-form {
    border-style: none;
    box-shadow: -4px 2px 12px 0px rgb(172 172 172 / 30%);
    padding: 20px;
    border-radius: 12px;
	margin: -10px -10px;
}
.dgwt-wcas-overlay-mobile .dgwt-wcas-om-bar.js-dgwt-wcas-om-bar {
    border-bottom: 1px solid #eee !important;
}
.dgwt-wcas-search-wrapp-mobile input[type=search].dgwt-wcas-search-input {
    height: auto !important;
}
/* fibosearch box -mobile - end */

/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= submenu arrow - start =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
.elementor-nav-menu .sub-menu li.menu-item-has-children > a,
.elementor-nav-menu .sub-menu li.menu-item-has-children > .elementor-sub-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-align: right !important;
}
/*submenu arrow - end */

/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= blog sidebar - start =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
.wph-category-title div h5 {
    font-family: "IRANSans", Sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 30px;
    color: #1A1A1B;
    margin: 0px;

}
.wph-category-title a {
    font-family: "IRANSans", Sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 30px;
    color: #363636;
}
/*blog sidebar - end */

/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= product page - start =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
.single-product .woocommerce-tabs .woocommerce-Tabs-panel > .elementor,
.single-product .woocommerce-tabs .woocommerce-Tabs-panel .elementor-section,
.single-product .woocommerce-tabs .woocommerce-Tabs-panel .e-con,
.single-product .woocommerce-tabs .woocommerce-Tabs-panel .e-con-inner {
    width: 100% !important;
    max-width: 100% !important;
}

.woocommerce div.product form.cart .variations select {
    height: 37px;
    font-family: 'IRANSans';
    padding-right: 10px;
}
a.woocommerce-product-gallery__trigger {
    z-index: 1 !important;
}
/*product page - end */

/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= variable product price - start =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
.woocommerce div.product .woocommerce-variation-price span.price {
  color: #e31e24 !important;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.woocommerce div.product .woocommerce-variation-price span.woocommerce-Price-amount.amount {
  color: #e31e24 !important;
  font-weight: 700;
}

.woocommerce div.product .woocommerce-variation-price .woocommerce-Price-currencySymbol {
  color: #e31e24 !important;
}
/* variable product price - end */

/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= product page - variable table - start =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
table.variations {
    width: 100% !important;
    margin-bottom: 0 !important;
}
/* تنظیم سطر جدول برای تراز وسط */
table.variations tr {
    justify-content: flex-start !important;
    width: 100% !important;
    padding: 10px 0 !important;
}
/* خودِ فیلد انتخاب */
table.variations td.value select {
    width: 100% !important;
    box-sizing: border-box !important;
	background-color: #FFF !important;
    border: none;
    border-radius: 4px;
}
/*product page - variable table - end */

/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= sidebar cart - start =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail {
    border: 1px solid #dfdfdf;
    border-radius: 6px;
}
/*sidebar cart - end */

/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= blog comments style - start =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
/* فونت فرم نظرات */
.comment-form {
    font-family: 'IRANSans' !important;
}

/* ردیف فیلدها */
.comment-form-author,
.comment-form-email,
.comment-form-url {
    width: 32%;
    display: inline-block;
    vertical-align: top;
    margin-left: 1.3%;
    margin-bottom: 15px;
}

.comment-form-author {
    margin-left: 0;
}

/* استایل فیلدها */
.comment-form-author input,
.comment-form-email input,
.comment-form-url input,
.comment-form-comment textarea {
    width: 100% !important;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 15px;
    font-family: 'IRANSans' !important;
    box-sizing: border-box;
    background: #fff;
}

/* فاصله textarea */
.comment-form-comment {
    margin-bottom: 20px;
}

/* دکمه */
.comment-form .submit {
    background: #E31E24 !important;
    border: 1px solid #E31E24 !important;
    color: #fff !important;
    border-radius: 6px;
    padding: 12px 25px;
    font-family: 'IRANSans' !important;
}

/* موبایل */
@media (max-width: 767px) {
    .comment-form-author,
    .comment-form-email,
    .comment-form-url {
        width: 100%;
        display: block;
        margin-left: 0;
    }
}
/*blog comments style - end */

/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= sort filter on shop page - start =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
.custom-sorting-wrapper {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    gap: 12px;
    direction: rtl;
    text-align: right;
    width: auto;
    max-width: 100%;
    margin: 0;
    position: relative;
    z-index: 20;
}

.sorting-trigger {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.sorting-label-desktop {
    display: flex;
    align-items: center;
    margin: 0;
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.8;
    white-space: nowrap;
}

.sorting-icon-mobile {
    display: none;
}

.sorting-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sorting-options li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.sorting-options li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 4px;
    background-color: #ebebeb;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.sorting-options li.active a,
.sorting-options li a:hover {
    background-color: #e31e24 !important;
    color: #fff !important;
}

@media (max-width: 767px) {
    .custom-sorting-wrapper {
        display: inline-block;
        width: auto;
        vertical-align: middle;
        z-index: 30 !important;
    }

    .sorting-trigger {
        cursor: pointer;
    }

    .sorting-label-desktop {
        display: none;
    }

    .sorting-icon-mobile {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 36px;
        padding: 6px 10px;
        border-radius: 4px;
        background-color: #ebebeb;
        color: #1a1a1a;
        font-size: 13px;
        line-height: 1.5;
    }

    .custom-sorting-wrapper.is-open .sorting-icon-mobile,
    .sorting-icon-mobile:hover {
        background-color: #e31e24;
        color: #fff;
    }

    .sorting-icon-mobile svg {
        width: 20px;
        height: 20px;
        flex: 0 0 auto;
    }

    .sorting-options {
        display: none;
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        right: auto;
        width: 185px;
        background: #fff;
        border: 1px solid #e5e5e5;
        border-radius: 4px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
        overflow: hidden;
        z-index: 40 !important;
    }

    .custom-sorting-wrapper.is-open .sorting-options {
        display: block !important;
    }

    .sorting-options li a {
        display: flex;
        justify-content: flex-start;
        width: 100%;
        min-height: 40px;
        padding: 10px 12px;
        border-radius: 0;
        background-color: #ebebeb;
        color: #1a1a1a;
        border-bottom: 1px solid #fff;
        font-size: 13px;
    }

    .sorting-options li:last-child a {
        border-bottom: 0;
    }

    .sorting-options li.active a,
    .sorting-options li a:hover {
        background-color: #e31e24 !important;
        color: #fff !important;
    }
}
/* sort filter on shop page - end */

/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= onsale & outofstack filter - start =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
.status-filter-wrapper {
    direction: rtl;
    text-align: right;
    margin: 15px 0;
    font-family: inherit;
}

.filter-headline { 
    font-size: 17px;
    margin: 0px 0px 20px 0px;
    color: #333;
    font-weight: 600;
}

.filter-row { 
    display: flex; 
    align-items: center; 
    justify-content: flex-start;
    position: relative; 
    margin-bottom: 12px; 
    cursor: pointer; 
    user-select: none;
    width: fit-content;
}

/* استایل متن و تغییر رنگ به قرمز در حالت هاور */
.filter-text { 
    font-size: 15px;
    font-weight: 600;
    color: #383838;
    margin-right: 10px; /* ایجاد فاصله بین چک‌باکس سمت راست و متن */
    transition: color 0.2s ease;
}

.filter-row:hover .filter-text { 
    color: #ff0000 !important; 
}

/* مخفی سازی چک‌باکس سیستم */
.filter-row input { 
    position: absolute; 
    opacity: 0; 
    cursor: pointer; 
    height: 0; 
    width: 0; 
}

/* استایل ظاهری چک‌باکس (مربع) */
.filter-box { 
    height: 13px; 
    width: 13px; 
    background-color: #fff; 
    border: 1px solid #767676; 
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0; /* جلوگیری از تغییر سایز مربع */
    margin-right: 10px;
}

/* رنگ پس‌زمینه چک‌باکس در حالت انتخاب شده */
.filter-row input:checked ~ .filter-box { 
    background-color: #555; 
    border-color: #555; 
}

/* علامت تیک سفید داخل مربع */
.filter-box:after { 
    content: ""; 
    position: absolute; 
    display: none; 
    left: 5px; 
    top: 2px; 
    width: 4px; 
    height: 8px; 
    border: solid white; 
    border-width: 0 2px 2px 0; 
    transform: rotate(45deg); 
}

.filter-row input:checked ~ .filter-box:after { 
    display: block; 
}
/*onsale & outofstack filter - end*/
/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= button on brands filter - start =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
 button.pwb-apply-filter{
    background-color: #e31e24;
    padding: 5px 20px;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
}
button.pwb-remove-filter {
    background-color: #ebebeb;
    padding: 5px 7px;
    border: none;
    border-radius: 5px;
    color: #1a1a1a;
    font-size: 14px; 
}
/* حذف کامل استایل لیست از والد */
.pwb-filter-products ul {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.woocommerce.widget_product_categories h5 {
    font-size: 18px;
    margin: 0px;
}
.elementor-widget-wp-widget-filter_by_brand div h5{
    font-size: 18px;
	margin: 0px 0px 16px 0px;
}
/* button on brands filter - end */

/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= product categorypage -  title color - start =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
.wph-archive-description .term-description h1 span,
.wph-archive-description .term-description h2 span,
.wph-archive-description .term-description h3 span,
.wph-archive-description .term-description h4 span,
.wph-archive-description .term-description h5 span,
.wph-archive-description .term-description h6 span {
    color: #1a1a1a !important;
}
/* product categorypage -  title color - end */

/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= show or hide product category description - start =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
body.no-cat-desc .elementor-widget-theme-archive-title {
    display: none !important;
}

/* اگر می‌خواهید فاصله خالی ویجت هم از بین برود: */
body.no-cat-desc .elementor-widget-theme-archive-title {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* show or hide product category description - end */

/* show related product on blog page - start */
.custom-product-cards-container {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
    direction: rtl;
    margin: 20px 0;
}
.custom-p-card {
    flex: 0 0 calc(33.333% - 20px);
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 15px;
    background: #f5f5f5;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.p-card-image img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border: none;
}
.p-card-title {
    font-size: 14px;
    font-weight: 500;
    margin: 10px 0;
    line-height: 1.4;
    min-height: 40px;
    color: #444;
}
.p-card-price {
    color: #d32f2f;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 15px;
}
.p-card-btn {
    background-color: #e31e24 !important;
    color: #fff !important;
    padding: 6px 10px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: bold;
    display: block;
    margin-top: auto; 
    text-align: center;
}
@media (max-width: 768px) {
    .custom-p-card {
        flex: 0 0 100%;
    }
}
/* show related product on blog page - end */

/** =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= add + & - button on quantity add to cart button - start =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= **/
/* فرم هدف */
.wph-product-cart-form .e-atc-qty-button-holder {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* کانتینر اصلی شمارنده */
.wph-product-cart-form .wph-custom-qty-container {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: row !important;
    width: 132px !important;
    min-width: 132px !important;
    height: 48px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    direction: ltr !important;
    box-sizing: border-box !important;
}

/* حذف لیبل */
.wph-product-cart-form .wph-custom-qty-container label,
.wph-product-cart-form .wph-custom-qty-container .screen-reader-text {
    display: none !important;
}

/* input وسط */
.wph-product-cart-form .wph-custom-qty-container input.qty,
.wph-product-cart-form .wph-custom-qty-container input[name="quantity"] {
    display: block !important;
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #222222 !important;
    text-align: center !important;
    font-size: 16px !important;
    font-family: 'IRANSans' !important;
    font-weight: 600 !important;
    line-height: 48px !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
    box-sizing: border-box !important;
}

/* حذف فلش‌های پیش‌فرض مرورگر */
.wph-product-cart-form .wph-custom-qty-container input.qty::-webkit-outer-spin-button,
.wph-product-cart-form .wph-custom-qty-container input.qty::-webkit-inner-spin-button,
.wph-product-cart-form .wph-custom-qty-container input[name="quantity"]::-webkit-outer-spin-button,
.wph-product-cart-form .wph-custom-qty-container input[name="quantity"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* دکمه‌های مثبت و منفی */
.wph-product-cart-form .wph-custom-qty-container .wph-qty-ctrl-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: #f7f7f7 !important;
    color: #222222 !important;
    font-size: 22px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.wph-product-cart-form .wph-custom-qty-container .wph-qty-ctrl-btn:hover {
    background: #eeeeee !important;
    color: #000000 !important;
}

/* خط جداکننده */
.wph-product-cart-form .wph-custom-qty-container .wph-qty-minus {
    border-right: 1px solid #d9d9d9 !important;
}

.wph-product-cart-form .wph-custom-qty-container .wph-qty-plus {
    border-left: 1px solid #d9d9d9 !important;
}

/* خود دکمه افزودن به سبد خرید */
.wph-product-cart-form .single_add_to_cart_button,
.wph-product-cart-form .wph-product-add-cart {
    height: 48px !important;
    border-radius: 8px !important;
}
/** add + & - button on quantity add to cart button - start **/

/*============================================ Written and developed by Naeime abbasi - WPHelper - End ======================================================*/