@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: normal;
    src: url('fonts/iransans/woff2/IRANSansWeb(FaNum).woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: IRANSansBold;
    font-style: normal;
    font-weight: bold;
    src: url('fonts/iransans/woff2/IRANSansWeb(FaNum)_Bold.woff2') format('woff2');
    font-display: swap;
}

h1,h2,h3,h4,h5,h6,input,strong,button,textarea,p,a,tr,th,
div.post-summary,
span.time time.post-published,
div.footer-copy-row,
div.section-heading span.h-text {
    font-family: IRANSans !important;
    font-weight: 300;
}

h1,h2,h3 {
    font-family: IRANSansBold !important;
    font-weight: bold;
}

.wd-account-style-text .wd-tools-text {
    font-family: IRANSans !important;
}

.wd-search-cat-btn>span {
    font-family: IRANSans !important;
}

/*کاشی های فروشگاه -------------------------------*/
@media (max-width: 768px) {

    .woocommerce ul.products li.product,
    ul.products li.product,
    .products .product {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        height: auto !important;
    }

    .woocommerce ul.products li.product .button,
    ul.products li.product .button,
    .products .product .button,
    .woocommerce ul.products li.product a.button,
    ul.products li.product a.button,
    .products .product a.button {
        margin-top: auto !important;
        width: 100% !important;
        border-radius: 9px !important;
    }

}

@media (max-width: 768px) {

    .woocommerce ul.products li.product,
    ul.products li.product,
    .products .product {
        padding-bottom: 10px !important;
        margin-bottom: 10px !important;
    }
}

.wd-products .product-grid-item,
.woocommerce ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.wd-products .product-grid-item .product-element-bottom,
.woocommerce ul.products li.product .product-element-bottom {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
}

.wd-products .product-grid-item .button,
.wd-products .product-grid-item a.button,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button {
    margin-top: auto !important;
    width: 100% !important;
    min-height: 44px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/*
        فقط کارت محصولات وودمارت
        بدون دستکاری پاپ‌آپ، آیکن‌های شناور و Quick View
        */

.wd-products .product-grid-item {
    height: auto !important;
}

.wd-products .product-grid-item>.product-wrapper {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.wd-products .product-grid-item>.product-wrapper>.product-element-bottom {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
}

/*
        عنوان‌ها کمی ارتفاع ثابت بگیرند تا کارت‌ها منظم‌تر شوند
        */
.wd-products .product-grid-item .product-element-bottom .wd-entities-title {
    min-height: 42px !important;
    margin-bottom: 8px !important;
}

/*
        قیمت‌ها هم فضای مشخص بگیرند
        اگر محصول قیمت نداشت یا قیمت 0 بود، جای دکمه نپرد
        */
.wd-products .product-grid-item .product-element-bottom .price {
    min-height: 26px !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
}

/*
        فقط دکمه اصلی پایین کارت
        نه آیکن‌های کنار عکس
        نه دکمه‌های پاپ‌آپ
        */
.wd-products .product-grid-item .product-element-bottom .wd-add-btn {
    margin-top: auto !important;
    width: 100% !important;
}

.wd-products .product-grid-item .product-element-bottom .wd-add-btn a,
.wd-products .product-grid-item .product-element-bottom .wd-add-btn .button {
    width: 100% !important;
    min-height: 52px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 !important;
}

/*
        اگر دکمه انتخاب گزینه‌ها مستقیم بیرون wd-add-btn بود
        */
.wd-products .product-grid-item .product-element-bottom>a.button,
.wd-products .product-grid-item .product-element-bottom>.button {
    width: 100% !important;
    min-height: 52px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-top: auto !important;
}

/*
        جلوگیری از اثرگذاری روی دکمه‌های شناور روی تصویر محصول
        */
.wd-products .product-grid-item .product-element-top .wd-buttons,
.wd-products .product-grid-item .product-element-top .wrap-buttons,
.wd-products .product-grid-item .product-element-top .wd-action-btn {
    margin-top: initial !important;
    width: auto !important;
}

.wd-products .product-grid-item .product-element-top .wd-buttons a,
.wd-products .product-grid-item .product-element-top .wrap-buttons a,
.wd-products .product-grid-item .product-element-top .wd-action-btn a {
    width: auto !important;
    min-height: initial !important;
    border-radius: inherit !important;
    display: inline-flex !important;
}

/*
        موبایل
        */
@media (max-width: 768px) {
    .wd-products .product-grid-item .product-element-bottom .wd-entities-title {
        min-height: 38px !important;
    }

    .wd-products .product-grid-item .product-element-bottom .price {
        min-height: 24px !important;
    }

    .wd-products .product-grid-item .product-element-bottom .wd-add-btn a,
    .wd-products .product-grid-item .product-element-bottom .wd-add-btn .button,
    .wd-products .product-grid-item .product-element-bottom>a.button,
    .wd-products .product-grid-item .product-element-bottom>.button {
        min-height: 46px !important;
        border-radius: 9px !important;
    }
}

body .cart-widget-side.wd-side-hidden,
body .cart-widget-side {
    width: 380px !important;
    max-width: 300px !important;
    min-width: 300px !important;
}

@media (max-width: 480px) {

    body .cart-widget-side.wd-side-hidden,
    body .cart-widget-side {
        width: 70vw !important;
        max-width: 70vw !important;
        min-width: unset !important;
    }
}

body .cart-widget-side .widget_shopping_cart,
body .cart-widget-side .shopping-cart-widget-body,
body .cart-widget-side .widget_shopping_cart_content {
    width: 100% !important;
    max-width: 100% !important;
}

/* متن دکمه حساب کاربری */
.wd-tools-element .wd-tools-text,
.wd-header-my-account .wd-tools-text,
.wd-header-my-account .wd-tool-text,
.wd-header-my-account span {
    white-space: nowrap;
}

/* کمی بزرگ‌تر شدن آیکن سبد خرید */
.wd-tools-element.wd-header-cart .wd-tools-icon,
.wd-header-cart .wd-tools-icon,
.wd-header-cart .wd-tools-inner,
.wd-header-cart .wd-tools-icon i {
    transform: scale(1.12);
    transform-origin: center;
}

/* کمی بزرگ‌تر شدن خود دکمه سبد خرید */
.wd-tools-element.wd-header-cart,
.wd-header-cart {
    min-width: 42px;
}

/* استایل badge تعداد سبد خرید */
.wd-cart-number,
.wd-tools-count,
.woocommerce-mini-cart__count,
.wd-header-cart .count {
    background-color: #a8b98b !important;
    color: #fff !important;
    border-radius: 50px !important;
    min-width: 18px !important;
    height: 18px !important;
    line-height: 18px !important;
    text-align: center !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* فقط وقتی خالی نیست، چشمک بزند */
.wd-cart-number:not(:empty),
.wd-tools-count:not(:empty),
.woocommerce-mini-cart__count:not(:empty),
.wd-header-cart .count:not(:empty) {
    animation: zeloniCartBlink 1s infinite ease-in-out;
    box-shadow: 0 0 0 rgba(168, 185, 139, 0.4);
}

@keyframes zeloniCartBlink {
    0% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(168, 185, 139, 0.45);
    }

    50% {
        opacity: 0.55;
        transform: scale(1.12);
        box-shadow: 0 0 0 8px rgba(168, 185, 139, 0);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(168, 185, 139, 0);
    }
}

/* موبایل: کمی بهتر دیده شود */
@media (max-width: 768px) {

    .wd-tools-element.wd-header-cart .wd-tools-icon,
    .wd-header-cart .wd-tools-icon,
    .wd-header-cart .wd-tools-inner,
    .wd-header-cart .wd-tools-icon i {
        transform: scale(1.18);
    }

    .wd-cart-number,
    .wd-tools-count,
    .woocommerce-mini-cart__count,
    .wd-header-cart .count {
        min-width: 19px !important;
        height: 19px !important;
        line-height: 19px !important;
        font-size: 11px !important;
    }
}

ul.wc_payment_methods.payment_methods.methods li {
    font-family: IRANSans !important;
}