/*
Theme Name: dehshiribazar
Text Domain: dehshiribazar
Version: 1
Description: this theme designed by neda
Author: neda
Author URI: https://dehshiribazar.ir
Theme URI: https://dehshiribazar.ir
*/
@font-face{
    font-family: 'seo90';
    src: url(fonts/Vazir-Light-FD.woff) format('woff');
}
*{
    padding: 0;
    margin: 0;
}
li{
    list-style: none;
}
a,a:hover{
    text-decoration: none;
}
html {
    overflow-x: hidden;
}
body{
    font-family: 'seo90';
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}
img{
    max-width: 100%;
}
h1{
    font-size: 24px !important;
    line-height: 2;
}
h2{
    font-size: 22px !important;
    line-height: 2;
}
h3{
    font-size: 20px !important;
    line-height: 2;
}
h4{
    font-size: 18px !important;
    line-height: 2;
}
h5{
    font-size: 16px !important;
    line-height: 2;
}
h6{
    font-size: 14px !important;
    line-height: 2;
    display: block;
    max-width: 200px; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tooltip-inner{
    font-family: 'seo90';
}
.title-box{
    width: 100%;
    padding: 10px 10px 35px 0;
}
.title-box span{
    display: inline-block;
    font-size: 15px;
    position: relative;
}
.title-box span:before{
    content: "";
    position: absolute;
    right: 0;
    bottom: -11px;
    width: 10px;
    height: 2px;
    background-color: #89a7fb;
}
.title-box span:after{
    content: "";
    position: absolute;
    right: 15px;
    bottom: -11px;
    width: 30px;
    height: 2px;
    background-color: #89a7fb;
}
.owl-theme .owl-dots .owl-dot {
    outline: 0;
}
.nopadding{
    padding: 0;
}
/*
list
1.top-access
2.main-menu
3.slider-wrap
4.product-item
5.category-slider
6.latest-products
7.spec-offer
8.index-ads
9.pre-sale
10.index-blog
11.footer-wrap
12.bread-crumbs
13.pages-body
14.product
15.product-gallery
16.sidebar-post
17.releated-products
18.single-body
19.sidebar-post
20.archieve-post
21.post-search-box
22.foures-b-404
23.paginate-box
24.comments
*/
/*1.top-access*/
.top-access{
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
}
.top-access .access-right span{
    padding-left: 15px;
}
.top-wrap{
    width: 100%;
    background-color: #fff;
    padding: 10px 0;
}
.top-wrap .top-cart-box img{
    float: right;
    height: 40px;
    width: auto;
    margin-top: 7px;
    filter: grayscale(0.5);
}
.top-wrap .top-cart-box ul{
    margin-bottom: 0;
    margin-top: 8px;
}
.top-wrap .top-cart-box ul li{
    display: inline-block;
    margin-left: 1px;
    color: #000d13;
    cursor: pointer;
    width: 40px;
    height: 20px;
    line-height: 42px;
    text-align: center;
    font-size: 20px;
}
.top-wrap .form-seach{
    padding-top: 4px;
}
.top-wrap .form-seach form{
    width: 100%;
    position: relative;
    border: 1px solid #ddd;
    border-radius: 60px;
}
.top-wrap .form-seach form input{
    width: 45%;
    height: 40px;
    background-color: transparent;
    border: 0;
    border-right: 1px solid #ddd;
    padding-right: 8px;
    outline: 0;
    position: relative;
    right: 48%;
}
.top-wrap .form-seach form select{
    position: absolute;
    border: 0;
    outline: 0;
    top: 6px;
    border-radius: 100px;
    height: 28px;
    padding-right: 5px;
    background-color: transparent;
    width: 42%;
}
.top-wrap .form-seach form button{
    position: absolute;
    left: 0;
    border: 0;
    color: #10069f;
    height: 40px;
    width: 40px;
    outline: 0;
    background: transparent;
    font-size: 20px;
}
/*2.main-menu*/
.main-menu{
    text-align: end;
    width: 100%;
    background-color: #ffffff;
    height: 55px;
    border-top: 1px solid #eee;
}
.main-menu .menu-box ul li{
    display: inline-block;
    padding-left: 10px;
    position: relative;
}
.main-menu .menu-box ul li a{
    color: #444;
    padding: 23px 0 23px 15px;
    display: inline-block;
    position: relative;
}
.main-menu .menu-box ul li a:before{
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: #8c6969;
    right: -15px;
    top: 32px;
    border-radius: 50%;
}
.main-menu .menu-box ul li:first-child a:before{
    width: 0;
}
.main-menu .menu-box ul li ul{
    position: absolute;
    top: 63px;
    right: 0;
    background-color: #fff;
    width: 190px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    border: 1px solid #dcdcdc;
}
.main-menu .menu-box ul > li:hover > ul{
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}
.main-menu .menu-box ul li ul li a:before{
    content: "\f104";
    font-family: FontAwesome;
    width: 0;
    right: 8px;
    top: 10px;
}
.main-menu .menu-box ul li ul li{
    width: 100%;
    padding-left: 0;
    padding: 0 8px;
}
.main-menu .menu-box ul li ul li a{
    display: block;
    color: #000;
    padding: 10px;
    padding-right: 20px;
    border-bottom: 1px solid #e5e5e545;
}
.main-menu .menu-box ul li ul li ul{
    right: 100%;
    top: 0;
}
/*3.slider-wrap*/
.slider-wrap{
    margin-top: 15px;
}
.slider-wrap .slider-box .item img{
    border-radius: 4px;
}
/*4.product-item*/
.product-item{
    position: relative;
    border: 2px solid #ebebeb;
    box-shadow: 0 4px 6px rgb(0 0 0 / 13%);
    background-color: white;
}
}
.product-item:after{
    position: absolute;
    content: "";
    height: 100%;
    width: 1px;
    background-color: #f3f1f1;
    left: -6px;
    top: 0;
}
.product-item figure{
    width: 100%;
    height: 175px;
    overflow: hidden;
    position: relative;
    text-align: center;
}
.product-item figure figcaption{
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    transition: all 0.4s ease;
}
.product-item figure figcaption img{
    height: 175px;
    display: table;
    margin: 0 auto;
    object-fit: contain;
}
.product-item figure figcaption.cap-2{
    opacity: 0;
}
.product-item figure:hover figcaption.cap-1{
    opacity: 0;
    transition: all 0.4s ease;
}
.product-item figure:hover figcaption.cap-2{
    opacity: 1;
    transition: all 0.4s ease;
}
.product-item .product-excp {
    padding: 0 8px 8px 8px;
}
}
.product-item .product-excp h6{
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.product-item .product-excp .pr-price{
    line-height: 2;
    height: 80px;
    overflow: hidden;
}

.product-item .product-excp .pr-price bdi{
    font-size: 16px;
    color: #000;
    height: 32px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}
.product-item .product-excp .pr-price del{
    display: block;
    font-size: 14px;
    color: #516067;
    height: 32px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-item .product-excp a.a_buy{
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-align: center;
    margin: 10px auto;
    display: table;
}
/*5.category-slider*/
.category-slider-wrap{
    margin-bottom: 40px;
}
.category-slider-wrap .cat-slider {
    padding: 25px 0;
}
.category-slider-wrap .cat-slider .item img{
    height: 80px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 50px;
    box-shadow: 1px 5px 9px #10069f63;
}

/*6.latest-products*/
.latest-products{
    margin: 25px 0;
}
.latest-products .sl-bx{
    padding: 10px 10px 25px 10px;
    position: relative;
}
.latest-products .sl-bx a.see-all-a{
    position: absolute;
    left: 15px;
    top: 25px;
    font-size: 13px;
}
.latest-products .sl-bx a.see-all-a i{
    font-size: 12px;
    position: relative;
    transition: all 0.3s ease;
    right: 0;
}
.latest-products .sl-bx a.see-all-a:hover i{
    right: 3px;
    transition: all 0.3s ease;
}
.latest-products-slider .product-item:after {
    left: -8px;

}

/*7.spec-offer*/
.spec-offer{
    position: relative;
    padding: 30px;
}
.spec-offer::before{
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    background:url("img/rfbg.png");
    background-repeat: repeat;
}
.spec-offer .sl-bx{
    background: #fff;
    padding: 20px 10px 15px 10px;
}
.spec-offer .desc .counter-box {
    margin-top: 20px;
    margin-bottom: 40px;
}
.spec-offer .desc .counter-box span{
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 52px;
    background: #21aeea;
    color: #fff;
    border-radius: 50%;
    font-size: 25px;
    box-shadow: 0 0 3px #687ecc;
    position: relative;
    margin: 0 3px;
}
.spec-offer .desc .counter-box sub{
    display: inline-block;
    font-size: 14px;
    position: absolute;
    bottom: -17px;
    color: #333;
    right: 0;
    left: 0;
}

/*8.index-ads*/
.index-ads{
    width: 100%;
    margin: 40px 0 10px 0;
}
.index-ads .ads-box figure{
    width: 100%;
    height: 200px;
    background-color: #000;
    position: relative;
    overflow: hidden;
}
.index-ads .ads-box figure img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    opacity: 0.7;
}
.index-ads .ads-box figure figcaption{
    text-align: center;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    padding-top: 45px; 
    outline: 1px solid #fff;
    outline-offset: -8px;
}
/*9.pre-sale*/
.pre-sale .sl-bx{
    background: #fff;
    padding: 15px 10px 55px 10px;
    box-shadow: 0 0 2px #ddd;
    position: relative;
}
.pre-sale .sl-bx:before{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50%;
    height: 100%;
    background-image: url(img/rfbg.png);
}
.pre-sale .pre-sale-bx{
    margin-bottom: 30px;
}
.pre-sale .pre-sale-bx figure{
    background-color: #f9f8f8;
    text-align: center;
    border: 1px solid transparent;
}
.pre-sale .pre-sale-bx figure img{
    height: 180px;
    object-fit: contain;
}
.pre-sale .pre-sale-bx figure.one-fig {
    background-color: #fff;
}
.pre-sale .pre-sale-bx figure.one-fig img{
    height: 390px;
    object-fit: contain;
}
.bg-white{
    background-color: #fff !important;
}
.border-e{
    border: 1px solid #eee !important;
    border-radius: 4px;
}

/*10.index-blog*/
.index-blog .sl-bx{
    padding: 15px 10px 7px 10px;
    position: relative; 
    margin-bottom: 40px; 
}
.index-blog .sl-bx:after{
    position: absolute;
    content: "";
    width: 100%;
    height: 2px;
    border-top: 1px dashed #ddd;
    right: 0;
    bottom: -47px;
}
.index-blog .blog-slider figure{
    position: relative;
    background-color: #000;
}

.index-blog .blog-slider img{
    height: 200px;
    object-fit: cover;
    opacity: 0.9;
}
.index-blog .blog-slider .item{
    background-color: #fdfdfd;
    margin: 0 5px 0 5px;
}
.nopadding-r{
    padding-right: 0;
}
.index-blog .blog-slider .index-blog-text{
    line-height: 2;
    padding: 5px 15px 15px 15px;
}
.index-blog .blog-slider .index-blog-text span{
    color: #a08383;
    font-size: 12px;
    margin: 0 10px;
}
.index-blog .blog-slider .index-blog-text h5{
    color: #615c5c;
    overflow: hidden;
    font-size: 14px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.index-blog .blog-slider .index-blog-text p{
    text-align: justify;
    height: 80px;
    overflow: hidden;
    line-height: 1.9;
    font-size: 13px;
    padding: 2px;
    color: #777;
}
.index-blog .blog-slider .index-blog-text .text-left a{
    font-size: 12px;
    margin-left: 8px;
    color: #111;
}
.brands-box {
    margin: 40px 0 40px 0;
}
.brands-slider .item img{
    height: 80px;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
}
.instagram-posts{
    width: 100%;
}
.instagram-posts .item figure{
    width: 100%;
    height: 150px;
    overflow: hidden;
    position: relative;
    background-color: #000;
}
.instagram-posts .item figure img{
    width: 100%;
    height: 120px;
    object-fit: cover;
    opacity: 0.9;
}
.instagram-posts .item figure figcaption{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    background-color: transparent;
    outline: 1px solid #fff;
    outline-offset: -5px;
    padding-top: 60px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
}
.instagram-posts .item figure:hover figcaption{
    transition: all 0.3s ease;
    opacity: 1;
}
.instagram-posts .item figure figcaption span{
    display: inline-block;
    background-color: #fff;
    padding: 5px 12px;
    color: #121212;
}

/*12.bread-crumbs*/
.bread-crumbs{
    background-color: #d4d4d4fa;
    padding: 12px 0;
    color: white;
    margin-top: 14px;
    margin-bottom: 14px;
}
.bread-crumbs p{
   margin-bottom: 0;
   padding: 0 15px 0 0;
}
.bread-crumbs a{
    display: inline-block;
    padding: 5px 0;
    margin-left: 8px;
}
.breadcrumb_last{
    padding-right: 8px;    
}
/*13.pages-body*/
.pages-body{
    display: inline-block;
    width: 100%;
    background-color: #fff;
    padding: 15px 0;
    border: 1px solid #eee;
    margin: 15px 0;
    border-radius: 4px;
}
.pages-body img{
    display: table;
    margin: 0 auto;
}
/*14.product*/
.pages-body .product-exp{
    padding: 0 10px 10px 10px;
}
.pages-body .product-exp h1{
    margin: 0;
    font-size: 18px !important;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-top: 20px;
}
.pages-body .product-exp .prod-meta{
    padding: 15px 10px 0 0;
    border-bottom: 1px solid #eee;
}
.pages-body .product-exp .prod-meta a{
    font-size: 13px;
}
.pages-body .product-exp .prod-meta span.si-comment-c{
    color: #515151;
    margin-right: 10px;
    font-size: 12px;
}
.pages-body .product-exp .prod-meta span.si-price{
    display: block;
    margin: 15px 0;
    font-size: 18px;
    color: #001253;
}
.pages-body .product-exp .si-text{
    line-height: 2;
    font-size: 15px;
    text-align: justify;
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: inline-block;
}
.pages-body .product-exp .si-text p{
    margin-bottom: 0;
}
.pages-body .product-exp .si-buy{
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: inline-block;
    width: 100%;
}
.pages-body .product-exp .si-buy .si-rating{
    padding: 10px 0;
}
.pages-body .product-exp .si-buy .si-rating i{
    color: #ffc107;
    font-size: 16px;
    margin-left: 2px;
}
.pages-body .product-exp .si-buy .si-buy-btn a{
    display: block;
    padding: 10px 32px;
    border-radius: 20px;
    color: #9f1d1d;
    text-align: center;
}
.pages-body .product-exp .si-buy .si-buy-btn input{
    height: 40px;
    border: 1px solid #c3c2c2;
    padding-right: 8px;
    background: #fff;
    width: 100%;
}
.pages-body .product-exp .si-buy .si-buy-btn button[type="submit"]{
    display: inline-block;
    padding: 10px 27px;
    background-color: #001253;
    color: #fff;
    border: 0;
    margin-top: 8px;
}
.pages-body .product-exp .si-tags{
    padding-right: 10px;
}
.pages-body .product-exp .si-tags a{
    font-size: 12px;
}

/*15.product-gallery*/
.pages-body .product-gallery figure{
    background-color:#f9f6f6;
    text-align: center;
    margin-bottom: 10px;
}
.pages-body .product-gallery figure img{
    display: table;
    margin: 0 auto;
    max-height: 400px;
}
.pages-body .product-gallery .gallery-items figure{
    background-color: #f9f6f6;
    text-align: center;
}
.pages-body .product-gallery .gallery-items figure img{
    display: table;
    margin: 0 auto;
    height: 100px;
    object-fit: contain;
}
/*16.sidebar-post*/
.sidebar-product .prod-sidebar-bx{
    margin-bottom: 30px;
    padding-left: 10px;
}
.sidebar-product .prod-sidebar-bx span.title{
    display: block;
    font-size: 15px;
    padding: 10px 0 20px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}
.sidebar-product .prod-sidebar-bx span.title:before{
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    width: 60px;
    height: 2px;
    background-color: #1d90c2;
}
.sidebar-product .prod-sidebar-bx ul li {
    width: 100%;
    margin: 2px 0;
}
.sidebar-product .prod-sidebar-bx ul li a{
    display: block;
    padding: 8px;
    border-bottom: 1px solid #f1ebeb;
    margin-left: 10px;
    color: #777;
    position: relative;
}
.sidebar-product .prod-sidebar-bx ul li a:before{
    content: "\f104";
    font-family: FontAwesome;
    position: absolute;
    right: 0;
    top: 10px;
    font-size: 12px;
}
.sidebar-product .prod-sidebar-bx ul li a:hover{
    color: #000;
}
.sidebar-product .prod-sidebar-bx ul li:last-child a{
    border-bottom: 0;
}
/*17.releated-products*/
.releated-products{
    padding: 0 10px;
    margin: 25px 0 10px 0;
}
.releated-products .product-item{
    margin: 15px;
}
.releated-products .product-item:after {
    left: -17px;
}
.releated-products  span.title{
    display: block;
    font-size: 15px;
    padding: 10px 0 20px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}
.releated-products  span.title:before{
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    width: 60px;
    height: 2px;
    background-color: #1d90c2;
}
.product-review{
    padding: 10px;
}
.product-review .tab-content{
    line-height: 2.2;
    font-size: 15px;
    color: #515151;
    text-align: justify;
    padding: 5px 15px;
}
.products-body .product-item{
    margin-bottom: 30px;
    border: 1px solid #eee;
    padding: 3px;
}
.products-body .product-item:after{
    width: 0;
}
.pages-body span.page-title{
    display: block;
    padding: 5px 10px 0 0;
}

/*18.single-body*/
.single-body .single-content .single-post-meta{
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
}
.single-body .single-content .single-post-meta h1{
    margin: 0;
    padding: 10px 0;
    font-size: 17px !important;
    color: #1d90c2;
    border-bottom: 1px solid #eee;
}
.single-body .single-content .single-post-meta .si-p-cat a{
    font-size: 13px;
    color: rgb(180, 178, 178);
    display: inline-block;
    padding: 8px;
}
.single-body .single-content .single-post-meta .si-p-comment{
    margin: 15px 0 15px 10px;
    color: #9aa5ab;
    font-size: 13px;
}
.single-body .single-content .single-post-meta .si-excerpt{
    margin: 15px 0;
    line-height: 2;
    font-size: 12px;
    text-align: justify;
    color: #8c6969;
}
.single-body .single-content .single-post-meta .si-excerpt p{
    padding: 0 10px;
}
.single-body .single-content .single-pic figure{
    border-radius: 4px;
}
.single-body .single-content .single-pic figure img{
    display: table;
    margin: 0 auto;
    border-radius: 4px;
}
.single-body .single-content .post-content {
    margin: 10px 0;
}
.single-body .single-content .post-content p{
    font-size: 15px;
    line-height: 2.3;
    color: #000;
}
.single-body .single-content .si-tags a{
    display: inline-block;
    padding: 5px;
    font-size: 13px;
}

/*19.sidebar-post*/
.single-body .sidebar-post .share-post{
    text-align: center;
    margin-bottom: 30px;
    background-color: #21aeea;
    border-radius: 4px;
    padding: 8px 5px;
}
.single-body .sidebar-post .share-post ul{
    margin: 0;
}
.single-body .sidebar-post .share-post li{
    display: inline-block;
}
.single-body .sidebar-post .share-post li a{
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 33px;
    background-color: #fff;
    color: #21aeea;
    text-align: center;
    font-size: 18px;
    border-radius: 4px;
}
.single-body .sidebar-post .side-post-content span.title{
    display: block;
    font-size: 15px;
    padding: 10px 0 20px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}
.single-body .sidebar-post .side-post-content span.title:before{
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    width: 60px;
    height: 2px;
    background-color: #1d90c2;
}
.single-body .sidebar-post .side-post-content{
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
    padding-bottom: 30px;
}
.single-body .sidebar-post .side-post-content ul li{
    width: 100%;
    line-height: 2;
    margin-bottom: 5px;
}
.single-body .sidebar-post .side-post-content ul li a{
    display: block;
    padding: 5px 10px 5px 0;
    position: relative;
}
.single-body .sidebar-post .side-post-content ul {
    padding-top: 20px;
}
.single-body .sidebar-post .side-post-content ul li a:before{
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    border:2px solid #1d90c2;
    top: 0;
    right: 0;
}
.single-body .sidebar-post .side-post-content ul li a:after{
    content: "";
    position: absolute;
    width: 1px;
    height: 68%;
    background-color: #1d90c2;
    top: 7px;
    right: 2px;
}
.single-body .sidebar-post .side-post-content ul li a:hover:before{
    border:2px solid #111;
}
.single-body .sidebar-post .side-post-ads{
 margin-bottom: 30px;
}
.single-body .sidebar-post .side-post-ads img{
    display: table;
    margin: 10px auto;
    border-radius: 4px;
}
.single-body .sidebar-post .side-post-cats{
    margin-bottom: 30px;
}
.single-body .sidebar-post .side-post-cats span.title{
    display: block;
    font-size: 15px;
    padding: 10px 0 20px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}
.single-body .sidebar-post .side-post-cats span.title:before{
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    width: 60px;
    height: 2px;
    background-color: #1d90c2;
}
.single-body .sidebar-post .side-post-cats ul{
    padding-top: 20px;
}
.single-body .sidebar-post .side-post-cats ul li{
    width: 100%;
    margin-bottom: 5px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}
.single-body .sidebar-post .side-post-cats ul li:last-child{
    border-bottom: 0;
}
.single-body .sidebar-post .side-post-cats ul li a{
    display: block;
    padding: 8px 12px 8px 0;
    color: #444;
    overflow: hidden;
    width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    transition: all 0.3s ease;
}
.single-body .sidebar-post .side-post-cats ul li a:hover{
    padding-right: 18px;
    transition: all 0.3s ease;
}
.single-body .sidebar-post .side-post-cats ul li a:before{
    content:"";
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 5px;
    background-color: #1d90c2;
    border-radius: 50% 0 0 50%;
}

/*20.archieve-post*/

.archive-post .item{
    display: inline-block;
    width: 100%;
    border: 1px solid #eee;
    margin-bottom: 30px;
    padding: 5px;
}
.archive-post .item h5{
    font-size: 14px !important;
    height: 28px;
    overflow: hidden;
    color: #687ecc;
}

.archive-post .item span{
    font-size: 12px;
    padding-left: 10px;
}
.archive-post .item p{
    font-size: 13px;
    text-align: justify;
    margin: 5px;
    line-height: 1.7;
    height: 88px;
    overflow: hidden;
}
.archive-post .item img{
    height: 253.39px;
    object-fit: cover;
}
/*21.post-search-box*/
.post-search-box{
    margin: 0 15px;
}
.post-search-box form{
    width: 100%;
    position: relative;
}
.post-search-box form input{
    width: 100%;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    padding-right: 10px;
    outline: 0;
}
.post-search-box form button{
    width: 40px;
    height: 40px;
    border: 1px solid #5368b3;
    border-radius: 4px;
    background-color: #5368b3;
    color: #fff;
    position: absolute;
    top: 0;
    left: 0;
    outline: 0;
}
/*22.foures-b-404*/
.foures-b .not-found{
    margin: 50px 0;
}
.foures-b .not-found span.num{
    font-size: 60px;
}
.foures-b .not-found a{
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    margin: 10px 3px;
    background-color: #5368b3;
    color: #fff;
}
.foures-b .not-found form{
    margin-top: 20px;
}
.page_blank_b{
    line-height: 2;
    font-size: 15px;
    color: #515151;
}
/*23.paginate-box*/
.paginate-box li>a, .paginate-box li>span {
    position: relative;
    float: left;
    padding: 6px 12px;
    margin-left: -1px;
    line-height: 1.42857143;
    color: #627382;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
}
.paginate-box li>span.current{
    color: #000;
    font-weight: bold;
}
.paginate-box li{
    float: right;
}
 .paginate-box ul{
    display: table;
    margin: 0 auto;
 }

 /* 24.comments */
.mycomments-body {
	margin: 30px 0;
}
.comment-author {
	margin-bottom: 10px;
	color: #222;
	display: inline-block;
}
.comments h3#comments {
	font-size: 16px !important;
	margin-bottom: 18px;
}
#comments h2.comments-title {
	font-size: 16px !important;
	margin-bottom: 18px;
}
#respond #reply-title {
	font-size: 17px !important;
}
#respond #reply-title:before {
	content: "\f0e5";
	font-family: FontAwesome;
	margin-left: 5px;
	color: #21aeea;
}
#respond p.comment-notes {
	padding-right: 20px !important;
	margin-bottom: 17px !important;
	line-height: 2;
}
#commentform label {
	display: inline-block;
	width: 15%;
}
#commentform input::placeholder,
#commentform textarea::placeholder {
	color: rgb(143, 141, 141);
}
#commentform textarea {
	width: 100%;
	resize: none;
	background-color: #fdfcfc6b;
	border: 1px solid #e2e0e0;
	padding: 8px;
	border-radius: 4px;
}
#commentform textarea:focus {
	outline: 0 !important;
}
#commentform input {
	width: 100%;
	height: 40px;
	background-color: #fdfcfc6b;
	border: 1px solid #e2e0e0;
	padding-right: 8px;
	border-radius: 4px;
}
.comment-form-cookies-consent {
	display: none;
}
#commentform input[type="submit"] {
	width: auto;
	height: 35px;
	padding: 0 5px;
	color: #ffff;
	background-color: #21aeea;
	margin: 0 0 20px 14px;
	font-size: 13px;
	float: left;
}
#commentform input[type="submit"]:hover {
	color: #21aeea;
        background-color: #ffff;
}
.comment-meta {
	border-bottom: 1px dotted #f3efef;
	padding-bottom: 10px;
	display: inline-block;
}
.comment-meta a {
	color: #21aeea;
}
.comment-body {
	width: 100%;
	background-color: #f7f3f32e;
	margin: 5px 0;
	padding: 12px;
	border: 1px solid #f4f4f4;
	border-right: 3px solid #c5c01c;
}
h3#comments {
	margin-bottom: 25px;
}
ul.children .comment-body {
	border-right: 3px solid #d7e6f5 !important;
}
.comment-body p {
	color: #616161;
	font-size: 13px;
	line-height: 2;
	padding: 0px 0;
	margin-bottom: 0;
}
.comment-notes span {
	width: 100% !important;
}
.comment-notes .required {
	display: none !important;
}
.comment-reply-link {
	padding: 6px;
	margin: 8px 0;
	color: rgb(8, 211, 238);
	background-color: transparent;
	border-radius: 2px;
	width: 60px;
	display: inline-block;
	text-align: center;
	height: 33px;
	font-size: 15px;
	border: 1px solid rgb(8, 211, 238);
	display: none;
}
.avatar {
	width: 55px;
	height: 55px;
	margin-left: 8px;
	border-radius: 3px;
}
.comments-body #comments {
	font-size: 20px;
}
.comments-body #comments:before {
	content: "\f112";
	font-family: FontAwesome;
	margin-left: 5px;
	color: #21aeea;
}
.commentlist ul.children {
	width: 98%;
	margin-right: 2%;
}
.commentlist ul.children li {
	padding: 0;
}
.comment-body cite.fn {
	font-style: normal !important;
}
.comment-body span.says {
	display: none;
}
.vc_tta-panel-body p {
	padding-bottom: 0 !important;
}
#learning-comments-box h3#comments {
	margin-bottom: 20px;
	font-size: 15px !important;
}
.author-meta-box {
	padding: 15px;
	border: 1px solid #eee;
	border-radius: 4px;
	margin-bottom: 30px;
}
.author-meta-box p {
	line-height: 2;
	font-size: 13px;
	color: #414141;
	padding: 15px 10px 10px 10px;
	border-top: 1px dashed #eee;
	margin-top: 20px;
	text-align: justify;
}
.author-meta-box a.user-social {
	font-size: 22px;
	padding-left: 5px;
}
.order{
    text-align:left;
}
.order p{
    padding: 20px 0 0 0;
    display: inline-block;
    font-size: 15px;
}
.order form{
    display: inline-block;  
}
.order form select{
    height: 40px;
    border: 1px solid #eee;
    padding-right: 5px;
    margin-right: 10px;
}
.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th {
    padding: 8px;
    line-height: 2;
    vertical-align: middle;
    border: 1px solid #ddd;
    text-align:right !important;
    width:50%;
}
.table>tbody>tr>td p, .table>tbody>tr>th p, .table>tfoot>tr>td p, .table>tfoot>tr>th p, .table>thead>tr>td p, .table>thead>tr>th p{
    margin-bottom:0;
}
.panel .table>tbody>tr>td,.panel .table>tbody>tr>th,.panel .table>tfoot>tr>td,.panel .table>tfoot>tr>th,.panel .table>thead>tr>td,.panel .table>thead>tr>th{
   width: auto;
   text-align: center !important;
}
.si-buy-btn table{
   text-align: right;
   width: 100%;
}
.si-buy-btn span.price{
   font-size: 18px;
}
.term_description{
   border: 1px solid #eee;
   padding: 10px 15px;
   line-height: 2;
   font-size: 14px;
   color: #222;
}
/*Others*/
.panel-heading{
   padding: 9px 15px 10px 15px;
   border-bottom: 0;
   border-top-left-radius:0;
   border-top-right-radius:0;
}
.panel-info>panel-heading{
   color: #eee;
   border: 0;
   background-color: #54e3e6;
   font-size: 17px;
}
.pages-body form input{
   height: 40px;
   border-radius: 0;
   background: #fff;
   padding-right: 8px;
   border: 1px solid #ddd;
   box-shadow: none;
}
.pages-body form button,.pages-body form input[type="submit"]{
   background-color: #2823b8;
   border: 0;
   height: 40px;
   width: auto;
   border-radius: 0;
   padding: 0 30px;
   color: white;
}
/* --- استایل سفارشی فقط برای چک‌باکس "مرا به خاطر بسپار" در فرم ورود --- */
.woocommerce-form-login .form-row input[type="checkbox"]{
   opacity: 0;
   width: 0;
   height: 0;
}
.woocommerce-form-login label.woocommerce-form__label-for-checkbox{
   display: inline-block !important;
   position: relative;
   width: 50px;
   height: 24px;
   margin: 0 10px;
}
.woocommerce-form-login label.woocommerce-form__label-for-checkbox:before{
   content: "مرا به خاطر بسپار";
   position: absolute; 
   width: 200px;
   right: 60px;
   top: -3px;
}
.woocommerce-form-login label.woocommerce-form__label-for-checkbox span{
   display: none;
}
.woocommerce-form-login .sslider{
   display: block !important;
   position: absolute;
   cursor: pointer;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background-color: #ccc;
   -webkit-transition: .4s;
   transition: .4s;
   height: 100%; 
}
.woocommerce-form-login .sslider:before{
   position: absolute;
   content: "";
   height: 16px;
   width: 16px;
   left: 4px;
   bottom: 4px;
   background-color: white;
   -webkit-transition: .4s;
   transition: .4s;
}
.woocommerce-form-login input:checked + span + .sslider{
   background-color: #2196f3;
}
.woocommerce-form-login input:focus + span + .sslider{
   box-shadow: 0 0 1px #2196f3;
}
.woocommerce-form-login input:checked + span + .sslider:before{
   -webkit-transform: translateX(26px);
   -ms-transform: translateX(26px);
   transform: translateX(26px);
}
/* Rounded sliders */
.woocommerce-form-login .sslider.round{
   border-radius: 34px;
}
.woocommerce-form-login .sslider.round:before{
   border-radius: 50%;
}
.list-group-item-success{
   background-color: #194587;
}
.list-group-item-success a{
    display: block;
    color: #eee;
    width: 100%;
}
.list-group-item a{
    display: block;
    width: 100%;
}
.list-group{
   border: 1px solid #ececec;
}
.list-group-item{
  border: 0;
  border-bottom: 1px solid #ececec;
  margin-bottom: 0;
}

.list-group-item:last-child{
  border: 0;
}
/* Responsive */
@media only screen and (max-width: 768px) {
   .menu-box{
     display:none;
  }
}
@media only screen and (max-width: 768px) {
    .product-item .product-excp .pr-price bdi{
        font-size: 13px;
    }
}
/* Star Rating Styles */
.comment-form-rating {
    margin-bottom: 20px;
}

.comment-form-rating label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}


.comment-form-rating .stars a {
    display: inline-block;
    font-size: 0;
    text-decoration: none;
    margin-left: 2px;
    position: relative;
    width: 20px;
    height: 20px;
}

.star-1,
.star-2,
.star-3,
.star-4,
.star-5 {
    font-size: 0;
}

.star-1::before,
.star-2::before,
.star-3::before,
.star-4::before,
.star-5::before{
    content: "\f006";
    font-family: 'fontawesome';
    font-size: 14px;
    float: right;
    transition: color 0.2s ease;
    color: #ffc107;
}

.woo-star::before{
   content: "\f005";
}

.comment-form-rating .stars a:hover::before {
    color: #ffc107;
}

.comment-form-rating .stars a:hover ~ a::before {
    color: #ddd;
}
#commentform #submit {
   margin: 0;
   padding: 0 15px;
}

.on-sale {
    position: absolute;
    right: 1px;
    top: -7px;
    width: 70px;
    height: 70px;
    line-height: 65px;
    text-align: center;
    color: white;
    font-weight: bold;
    background-image: url(/wp-content/uploads/2025/10/sale.png);
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* پیشفرض دکمه مخفی در دسکتاپ */
.mobile-menu-wrapper {
     display:none;
}

@media (max-width: 768px) {
    .mobile-menu-wrapper {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        width: 100%;
        position: relative;
    }

    /* دکمه همبرگر */
    .mobile-menu-toggle {     
        font-size: 21px;
        background: #ffffff;
        border: 1px solid #ffffff;
        cursor: pointer;
        z-index: 900;
        position: relative;
        padding: 10px 15px 10px 15px;
        color: #10069f;
        margin: 2px 0 0 -13px;
    }

    /* overlay پشت منو */
    .mobile-menu-overlay {
        display: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 1000;
    }
    .mobile-menu-overlay.active {
       display: block;
       opacity: 1;
       visibility: visible;
    }

    /* منوی موبایل */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -60%;
        width: 60%;
        height: 100%;
        background: #ffff;
        box-shadow: -2px 0 10px rgba(0,0,0,0.3);
        transition: right 0.3s ease;
        z-index: 99999;
        padding: 20px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-menu.open {
        right: 0;
    }

    .mobile-menu.open + .mobile-menu-overlay {
       display: block !important;
    }
    .mobile-menu-close {
        background: none;
        border: none;
        font-size: 16px;
        position: absolute;
        top: 10px;
        left: 10px;
        cursor: pointer;
    }

    .mobile-menu-items {
        list-style: none;
        padding: 23px 0 0 0;
        text-align: right;
    }

    .mobile-menu-items li {
        margin: 8px 0;
        padding: 8px 8px 8px 0;
    }

    .mobile-menu-items a {
        text-decoration: none;
        color: #000000;
        font-size: 14px;
    }
}
.mobile-menu .mobile-menu-items a {
    font-size: 14px !important;
    color: #000000;
    text-align: right;
    display: block;
    border-bottom: 1px solid #d0d0d0;
    background-color: #ffffffd6;
    padding: 8px;
}
/* فقط موبایل */
@media (max-width: 991px) {
    .mobile-menu .mobile-menu-items .sub-menu {
        display: none;
        padding-top: 8px;
    }

    .submenu-toggle {
        float: left;
        cursor: pointer;
        font-size: 18px;
        margin-left: 10px;
        color: #333;
    }

    /* دکمه toggle کنار لینک */
    .mobile-menu .submenu-toggle {
        display: inline-block;
        cursor: pointer;
        font-size: 21px;
        line-height: 1;
        user-select: none;
        margin: -28px 0 0 0;
        color: #686868de;
        padding: 2px 10px 2px 10px;
    }
}
.mobile-menu .mobile-menu-items li a {
    display: block;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}
@media (max-width: 991px) {
    .mobile-footer-menu {
        position: fixed;
        bottom: 10px;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: space-around;
        padding: 20px 0;
        box-shadow: 1px -1px 4px rgb(0 0 0 / 13%);
        z-index: 950;
        border-radius: 50px;
        background-color: #f1f1f1f7;
    }
    .top-cart-box {
        display: none;
    }
}
@media (min-width: 992px) {
    .mobile-footer-menu {
        display: none !important;
    }
}
@media (max-width: 768px) {
    .col-md-9 {
        display: flex;
        flex-wrap: wrap;
    }
    .col-6 {
        width: 50% !important;
        flex: 0 0 50%;
        max-width: 50%;
        display: block !important;
    }
}
.product-categories {
    font-size: 12px;         
    color: #999;                 
    margin-top: 4px;
    white-space: nowrap;   
    overflow: hidden;   
    text-overflow: ellipsis;
}
.product-categories a {
    color: #999; 
    text-decoration: none;
}
.product-categories a:hover {
    text-decoration: underline;
}
.woocommerce-terms-and-conditions-checkbox-text {
    padding-right: 20px !important;
}
.woocommerce-checkout button#place_order,
.woocommerce-checkout #place_order,
.woocommerce button#place_order {
    background-color: #2823b8;
    border: 0;
    height: 40px;
    padding: 0 30px;
    color: white;
    cursor: pointer;
}
@media (max-width: 768px) {
    .woocommerce-checkout button#place_order {
        width: 100% !important;
        display: block;
        font-size: 16px;
        padding: 12px !important;
    }
}


/* ========================================
   Flowise - Mobile Bottom Navigation
======================================== */

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 767px) {

    .mobile-bottom-nav {
        display: flex;
        align-items: center;
        justify-content: space-around;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        min-height: 68px;
        background: #ffffff;
        border-top: 1px solid #eeeaf7;
        padding: 7px 5px;
        padding-bottom: calc(7px + env(safe-area-inset-bottom));
        z-index: 9970;
        box-shadow: 0 -3px 15px rgba(16, 6, 159, 0.07);
        direction: rtl;
        box-sizing: border-box;
    }


    /* Navigation Item */

    .mobile-bottom-nav .mobile-nav-item {
        display: flex;
        flex: 1;

        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 4px;

        text-decoration: none !important;

        color: #10069f !important;

        min-width: 0;
        padding: 2px 0;

        -webkit-tap-highlight-color: transparent;
    }


    /* Icons */

    .mobile-bottom-nav .mobile-nav-icon {
        position: relative;

        display: flex;
        align-items: center;
        justify-content: center;

        width: 27px;
        height: 27px;

        color: #10069f;
    }

    .mobile-bottom-nav .mobile-nav-icon svg {
        width: 24px;
        height: 24px;

        fill: none;
        stroke: #10069f;

        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;

        display: block;
    }


    /* Labels */

    .mobile-bottom-nav .mobile-nav-label {
        font-size: 11px;
        font-weight: 500;

        line-height: 1.5;

        color: #10069f;

        white-space: nowrap;
    }


    /* Cart Count */

    .mobile-bottom-nav .cart-count {
        position: absolute;
        top: -5px;
        right: -7px;
        min-width: 16px;
        height: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 3px;
        background: #ff0000;
        color: #ffffff;

        font-size: 10px;
        font-weight: 600;

        border-radius: 20px;
        line-height: 1;
    }


    /* Remove link hover effects */

    .mobile-bottom-nav .mobile-nav-item:hover,
    .mobile-bottom-nav .mobile-nav-item:focus {
        color: #10069f !important;
        text-decoration: none !important;
    }


    /* Page bottom spacing */

    body {
        padding-bottom: calc(75px + env(safe-area-inset-bottom));
    }

}


/* Hide on desktop */

@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}


/* ========================================
   Flowise Shop Filters (Desktop)
======================================== */

.flowise-shop-filter {
    direction: rtl;
    text-align: right;
    padding: 25px;
    background: #fff;
}

.flowise-filter-heading {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.flowise-sale-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    cursor: pointer;
}

.flowise-filter-group {
    margin-bottom: 18px;
}

.flowise-filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.flowise-filter-group select {
    width: 100%;
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0 10px;
    background: #fff;
    font-family: inherit;
    font-size: 13px;
}

.flowise-filter-submit {
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 5px;
    background: #10069f;
    color: #fff;
    font-family: inherit;
    cursor: pointer;
    margin-top: 5px;
}

.flowise-filter-reset {
    display: block;
    text-align: center;
    margin-top: 13px;
    font-size: 12px;
    color: #777;
}


/* ==========================================
   FLOWISE - MOBILE SHOP FILTER
========================================== */

/* در دسکتاپ فیلتر موبایل نمایش داده نشود */
.flowise-mobile-filter {
    display: none;
}


/* ==========================================
   MOBILE
========================================== */

@media screen and (max-width: 767px) {

    /* مخفی کردن سایدبار دسکتاپ */
    .shop-sidebar-col {
        display: none !important;
    }

    /* نمایش بخش فیلتر موبایل */
    .flowise-mobile-filter {
        display: block !important;
    }

    /* ======================================
       دکمه شناور فیلتر
    ====================================== */

    .flowise-mobile-filter-button {
        display: flex !important;
        align-items: center;
        justify-content: center;

        position: fixed !important;
        top: 42% !important;
        right: 0 !important;
        left: auto !important;
        bottom: auto !important;

        transform: translate3d(0, -50%, 0) !important;
        -webkit-transform: translate3d(0, -50%, 0) !important;

        z-index: 999 !important;

        width: 48px;
        height: 52px;
        padding: 0;

        border: none !important;
        border-radius: 10px 0 0 10px;

        background: #a3a3a3bd !important;
        color: #eeeeee !important;

        font-size: 0;
        cursor: pointer;

        box-shadow: 0 2px 10px rgba(0, 0, 0, .16);

        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    /* حذف متن دکمه */
    .flowise-mobile-filter-button span:first-child {
        display: none !important;
    }

    /* مخفی کردن آیکون متنی قبلی */
    .flowise-mobile-filter-button span:last-child {
        font-size: 0;
    }

    /* آیکون فیلتر */
    .flowise-mobile-filter-button span:last-child::before {
        content: "";
        display: block;

        width: 24px;
        height: 24px;

        background: #eeeeee;

        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M7 12h10m-7 5h4'/%3E%3C/svg%3E") center / contain no-repeat;

        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M7 12h10m-7 5h4'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    .flowise-mobile-filter-button:hover,
    .flowise-mobile-filter-button:focus,
    .flowise-mobile-filter-button:active {
        background: #777 !important;
        color: #eeeeee !important;
        outline: none !important;
    }


    /* ======================================
       لایه اصلی پنل
    ====================================== */

    .flowise-mobile-filter-overlay {
        position: fixed !important;
        inset: 0;
        width: 100%;
        height: 100%;
        height: 100dvh;
        z-index: 9990 !important;
        visibility: hidden;
        pointer-events: none;

        transition: visibility .3s ease;
    }

    .flowise-mobile-filter-overlay.is-open {
        visibility: visible;
        pointer-events: auto;
    }


    /* ======================================
       پس زمینه تیره
    ====================================== */

    .flowise-mobile-filter-backdrop {
        position: absolute;
        inset: 0;

        display: block;

        width: 100%;
        height: 100%;

        padding: 0;
        border: none;

        background: rgba(0, 0, 0, .55);

        opacity: 0;
        transition: opacity .3s ease;
    }

    .flowise-mobile-filter-overlay.is-open
    .flowise-mobile-filter-backdrop {
        opacity: 1;
    }


    /* ======================================
       پنل کشویی از پایین
    ====================================== */

    .flowise-mobile-filter-panel {
        position: absolute;
        bottom: 0;
        left: 0;

        width: 100%;
        max-height: 85vh;
        max-height: 85dvh;

        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;

        background: #fff;

        border-radius: 18px 18px 0 0;

        padding: 18px 16px 30px;
        padding-bottom: calc(30px + env(safe-area-inset-bottom));

        transform: translateY(100%);
        -webkit-transform: translateY(100%);

        transition: transform .3s ease;
        -webkit-transition: -webkit-transform .3s ease;

        box-shadow: 0 -5px 25px rgba(0, 0, 0, .12);

        direction: rtl;
        text-align: right;
    }

    .flowise-mobile-filter-overlay.is-open
    .flowise-mobile-filter-panel {
        transform: translateY(0);
        -webkit-transform: translateY(0);
    }


    /* ======================================
       سربرگ پنل
    ====================================== */

    .flowise-mobile-filter-header {
        display: flex;
        align-items: center;
        justify-content: space-between;

        padding-bottom: 15px;
        margin-bottom: 15px;

        border-bottom: 1px solid #eee;

        font-size: 15px;
    }

    .flowise-mobile-filter-header strong {
        font-weight: 700;
    }


    /* ======================================
       دکمه بستن
    ====================================== */

    .flowise-mobile-filter-close {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 34px;
        height: 34px;

        padding: 0;
        border: none;
        border-radius: 50%;

        background: #f2f2f2;
        color: #333;

        font-size: 17px;
        cursor: pointer;
    }


    /* ======================================
       محتوای فیلتر
    ====================================== */

    .flowise-mobile-filter-content {
        padding-bottom: 10px;
    }

    .flowise-mobile-filter-content .shop-sidebar {
        margin-bottom: 0;
    }


    /* ======================================
       جلوگیری از اسکرول صفحه پشت پنل
    ====================================== */

    body.flowise-filter-open {
        overflow: hidden !important;
        touch-action: none;
    }


    /* فضای انتهای محصولات */
    .products-body {
        padding-bottom: 75px;
    }

}


/* ==========================================
   توضیحات دسته بندی - دسکتاپ
========================================== */

.flowise-term-accordion {
    width: 100%;
}

.flowise-term-accordion-button {
    display: none;
}

.flowise-term-accordion-content {
    display: block;
}


/* توضیحات دسته بندی - موبایل */

@media (max-width: 767px) {

    .flowise-term-accordion {
        width: 100%;
        margin-top: 20px;
    }

    .flowise-term-accordion-button {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 16px;
        background: #f5f5f5;
        border: 1px solid #e5e5e5;
        border-radius: 6px;
        color: #333;
        font-family: inherit;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        text-align: right;
    }

    .flowise-term-accordion-icon {
        flex-shrink: 0;
        transition: transform 0.3s ease;
    }

    .flowise-term-accordion-button[aria-expanded="true"] {
        border-radius: 6px 6px 0 0;
    }

    .flowise-term-accordion-button[aria-expanded="true"] 
    .flowise-term-accordion-icon {
        transform: rotate(180deg);
    }

    .flowise-term-accordion-content {
        display: none;
        padding: 15px;
        border: 1px solid #e5e5e5;
        border-top: none;
        border-radius: 0 0 6px 6px;
    }

    .flowise-term-accordion-content.is-open {
        display: block;
    }

}
@media screen and (max-width: 767px) {
    .flowise-term-accordion-button {
        display: flex !important;
    }
}

@media screen and (min-width: 768px) {
    .flowise-term-accordion-button {
        display: none !important;
    }

    .flowise-term-accordion-content {
        display: block !important;
    }
}

/* ================================
   Flowise Mobile Header
================================ */

@media screen and (max-width: 768px) {

    /* مخفی کردن دو بخش بالایی */
    body .top-access,
    body .top-wrap {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    .main-menu .col-md-9 {
        width: 100%;
        float: none;
    }

    .main-menu .col-md-3 {
        display: none !important;
    }

    /* ساختار اصلی هدر */
    .mobile-menu-wrapper {
        display: flex !important;
        position: relative;
        flex-direction: row;
        align-items: center;
        justify-content: space-between !important;
        direction: ltr;
        width: 100%;
        min-height: 62px;
        padding: 8px 12px;
        box-sizing: border-box;
    }

    /* لوگو وسط */
    .flowise-mobile-logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 45%;
    }

    .flowise-mobile-logo img {
        display: block;
        width: auto;
        height: auto;
        max-width: 135px;
        max-height: 45px;
    }

    /* دکمه‌های منو و جست‌وجو */
    .flowise-mobile-actions {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        direction: ltr;
        order: 1;
    }

    .flowise-mobile-search-toggle,
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0;
        border: none;
        border-radius: 10px;
        background: #fff;
        color: #10069f;
        font-size: 20px;
        cursor: pointer;
        box-shadow: none;
    }

    .flowise-mobile-search-toggle:focus,
    .mobile-menu-toggle:focus {
        outline: none;
    }

    /* پنجره شیشه‌ای جست‌وجو */
    .flowise-mobile-search-overlay {
        position: fixed;
        inset: 0;
        z-index: 1000010;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: 100px 20px 20px;
        background: rgba(20, 20, 20, 0.48);
        backdrop-filter: blur(9px);
        -webkit-backdrop-filter: blur(9px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .25s ease, visibility .25s ease;
        box-sizing: border-box;
    }

    .flowise-mobile-search-overlay.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .flowise-mobile-search-panel {
        position: relative;
        width: 100%;
        max-width: 480px;
        padding: 65px 18px 22px;
        border: 1px solid rgba(255,255,255,.55);
        border-radius: 18px;
        background: rgba(255,255,255,.88);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-sizing: border-box;
        transform: translateY(-12px);
        transition: transform .25s ease;
    }

    .flowise-mobile-search-overlay.is-open
    .flowise-mobile-search-panel {
        transform: translateY(0);
    }

    .flowise-mobile-search-close {
        position: absolute;
        top: 14px;
        left: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border: none;
        border-radius: 50%;
        background: #ededed;
        color: #555;
        font-size: 18px;
        cursor: pointer;
    }

    .flowise-mobile-search-form {
        display: flex;
        align-items: center;
        width: 100%;
        height: 52px;
        direction: rtl;
        border: 1px solid #dedede;
        border-radius: 10px;
        background: #fff;
        overflow: hidden;
    }

    .flowise-mobile-search-form input[type="search"] {
        flex: 1;
        min-width: 0;
        width: 100%;
        height: 100%;
        padding: 0 14px;
        border: none;
        outline: none;
        background: transparent;
        color: #333;
        font-family: inherit;
        font-size: 14px;
        box-shadow: none;
    }

    .flowise-mobile-search-form button {
        flex: 0 0 52px;
        height: 100%;
        border: none;
        background: #10069f;
        color: #fff;
        font-size: 18px;
        cursor: pointer;
    }

    body.flowise-search-open {
        overflow: hidden;
    }

}

@media screen and (max-width: 768px) {

    .mobile-menu-wrapper {
        position: relative !important;
        display: flex !important;
        width: 100% !important;
        min-height: 62px;
        direction: ltr !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }

    /* لوگو دقیقاً وسط */
    .flowise-mobile-logo {
        position: absolute !important;
        left: 50% !important;
        right: auto !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 2;
    }

    /* ظرف آیکون‌ها تمام عرض */
    .flowise-mobile-actions {
        position: absolute !important;
        inset: 0 12px !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: auto !important;
        gap: 0 !important;
        direction: ltr !important;
        z-index: 3;
        pointer-events: none;
    }

    /* خود دکمه‌ها قابل کلیک باشند */
    .flowise-mobile-actions button {
        pointer-events: auto;
    }

    /* سرچ سمت چپ */
    .flowise-mobile-search-toggle {
        order: 1 !important;
    }

    /* همبرگر سمت راست */
    .mobile-menu-toggle {
        order: 2 !important;
    }

}

/* ========================================
   FLOWISE PROFESSIONAL FOOTER
======================================== */

.footer-mega {
    direction: rtl;
    background: #20252b;
    color: #e9edf1;
    padding: 48px 0 0;
    margin-top: 40px;
    clear: both;
}

.flowise-footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.6fr 1fr;
    gap: 28px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(255,255,255,0.13);
}

.footer-mega .footer-menu {
    min-width: 0;
    text-align: right;
}

.footer-mega .footer-menu .title {
    display: block;
    position: relative;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 23px;
    padding-bottom: 13px;
}

.footer-mega .footer-menu .title::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 36px;
    height: 2px;
    background: #a7b2bd;
    border-radius: 5px;
}

.footer-mega .footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-mega .footer-menu li {
    list-style: none;
    margin: 0 0 13px;
    padding: 0;
    border: 0;
    width: auto;
}

.footer-mega .footer-menu li a {
    display: inline-block;
    color: #c5cbd1;
    font-size: 13px;
    text-decoration: none;
    transition: all .2s ease;
}

.footer-mega .footer-menu li a:hover {
    color: #fff;
    padding-right: 5px;
}


/* ========================================
   CONTACT
======================================== */

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 22px;
}

.footer-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 9px;
    background: rgba(255,255,255,.09);
    color: #fff;
}

.footer-contact-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-contact-label {
    display: block;
    color: #9da8b2;
    font-size: 11px;
    margin-bottom: 6px;
}

.footer-contact-item a {
    display: inline-block;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    direction: ltr;
}

.footer-contact-item a:hover {
    color: #cbd5df;
}

.footer-contact-item p {
    color: #c5cbd1;
    font-size: 12px;
    line-height: 2.1;
    margin: 0;
    overflow-wrap: anywhere;
}


/* ========================================
   ENAMAD
======================================== */

.footer-enamad {
    text-align: center !important;
}

.footer-enamad .title::after {
    right: 50%;
    transform: translateX(50%);
}

.footer-enamad > a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 115px;
    padding: 10px;
    background: #fff;
    border-radius: 10px;
    transition: transform .2s ease;
}

.footer-enamad > a:hover {
    transform: translateY(-3px);
}

.footer-enamad img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 125px;
}



/* ========================================
   SOCIAL MEDIA
======================================== */

.flowise-footer-social {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 23px 0;
    border-bottom: 1px solid rgba(255,255,255,.13);
}

.footer-social-title {
    color: #c5cbd1;
    font-size: 13px;
}

.flowise-footer-social ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.flowise-footer-social li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.flowise-footer-social li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    transition: opacity .2s ease;
}

.flowise-footer-social li a i,
.flowise-footer-social li a svg {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

.flowise-footer-social a:hover {
    opacity: .7;
}


/* ========================================
   COPYRIGHT
======================================== */

.flowise-footer-copyright {
    padding: 18px 0;
    color: #929ba4;
    font-size: 11px;
    text-align: center;
    line-height: 2;
}


/* ========================================
   LAPTOP (کوچک)
======================================== */

@media (max-width: 1199px) {

    .flowise-footer-main {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 30px 22px;
    }

}


/* ========================================
   TABLET
======================================== */

@media (max-width: 992px) {

    .flowise-footer-main {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 30px 22px;
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

    .footer-mega {
        padding: 35px 18px 0;
    }

    .flowise-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 18px;
    }

    .footer-mega .footer-menu .title {
        font-size: 14px;
        margin-bottom: 17px;
    }

    .footer-mega .footer-menu li a {
        font-size: 12px;
    }

    .footer-contact-item a {
        font-size: 13px;
    }

    .footer-contact-item p {
        font-size: 11px;
        line-height: 2;
    }

    .footer-enamad {
        text-align: right !important;
    }

    .footer-enamad .title::after {
        right: 0;
        transform: none;
    }

    .footer-enamad > a {
        min-height: 95px;
    }

    .footer-enamad img {
        max-height: 100px;
    }

    .flowise-footer-social {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .flowise-footer-social ul {
        justify-content: flex-start;
        gap: 15px;
    }

}


/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 360px) {

    .flowise-footer-main {
        grid-template-columns: 1fr;
    }

}
/* ==========================================================
   Flowise - Single Product Page (v2)
   این کد را به انتهای style.css اضافه کنید.
   ========================================================== */

:root {
    --fw-primary: #10069f;
    --fw-primary-dark: #0b0470;
    --fw-primary-soft: #eeedfb;
    --fw-text: #222;
    --fw-muted: #7a7a85;
    --fw-border: #eceaf3;
    --fw-bg: #f7f7fb;
    --fw-success: #1a9b52;
    --fw-danger: #e53935;
    --fw-star: #ffb400;
    --fw-radius: 12px;
}

.fw-product-page {
    padding: 15px 0 40px;
    direction: rtl;
    text-align: right;
}

/* ---------- Breadcrumb ---------- */
.fw-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--fw-muted);
    padding: 12px 0 18px;
}
.fw-breadcrumb a { color: var(--fw-muted); }
.fw-breadcrumb a:hover { color: var(--fw-primary); }
.fw-breadcrumb .sep { opacity: .5; }
.fw-breadcrumb .current {
    color: var(--fw-text);
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Layout ---------- */
.fw-product-main {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 36px;
    background: #fff;
    border: 1px solid var(--fw-border);
    border-radius: var(--fw-radius);
    padding: 28px;
    align-items: start;
}

/* ---------- Gallery ---------- */
.fw-gallery { min-width: 0; }

.fw-gallery-stage {
    position: relative;
    background: var(--fw-bg);
    border-radius: var(--fw-radius);
    overflow: hidden;
}
.fw-main-slider .item a {
    display: block;
    overflow: hidden;
    cursor: zoom-in;
}
.fw-main-slider .item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    transition: transform .25s ease;
    margin: 0 auto;
}
.fw-discount-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    background: var(--fw-danger);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
}
.fw-main-slider .owl-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    display: none;
}
.fw-main-slider .owl-dots .owl-dot span {
    width: 8px;
    height: 8px;
    margin: 0 4px;
    background: #cfcfd8;
}
.fw-main-slider .owl-dots .owl-dot.active span { background: var(--fw-primary); }

.fw-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.fw-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    padding: 3px;
    border: 2px solid var(--fw-border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease;
}
.fw-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
    display: block;
}
.fw-thumb:hover { border-color: #b9b5ec; }
.fw-thumb.is-active { border-color: var(--fw-primary); }
.fw-thumb:focus { outline: none; }

/* ---------- Info ---------- */
.fw-info { min-width: 0; }

h1.fw-title {
    margin: 0 0 12px;
    font-size: 22px !important;
    line-height: 1.8;
    color: var(--fw-text);
}

.fw-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
}
.fw-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fw-muted);
    font-size: 13px;
}
.fw-rating:hover { color: var(--fw-primary); }
.fw-stars i { color: var(--fw-star); font-size: 15px; margin-left: 1px; }
.fw-rating-empty .fw-stars i { color: #d5d5dd; }
.fw-views { color: var(--fw-muted); font-size: 13px; }

.fw-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    padding: 14px 0;
    border-top: 1px solid var(--fw-border);
    border-bottom: 1px solid var(--fw-border);
    font-size: 13px;
    color: var(--fw-muted);
}
.fw-facts a { color: var(--fw-primary); }
.fw-facts b { color: var(--fw-text); font-weight: 600; }
.fw-stock { font-weight: 600; }
.fw-stock .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 5px;
}
.fw-stock.in { color: var(--fw-success); }
.fw-stock.in .dot { background: var(--fw-success); }
.fw-stock.out { color: var(--fw-danger); }
.fw-stock.out .dot { background: var(--fw-danger); }

.fw-short {
    margin: 16px 0 0;
    font-size: 14px;
    line-height: 2.1;
    color: #555;
    text-align: justify;
}
.fw-short p:last-child { margin-bottom: 0; }

/* ---------- Price ---------- */
.fw-price-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 16px;
    padding: 16px 18px;
    background: var(--fw-primary-soft);
    border-radius: var(--fw-radius);
}
.fw-price { font-size: 26px; font-weight: 700; color: var(--fw-primary); line-height: 1.6; }
.fw-price .woocommerce-Price-amount { font-weight: 700; }
.fw-price del {
    display: inline-block;
    font-size: 15px;
    font-weight: 400;
    color: var(--fw-muted);
    margin-left: 10px;
}
.fw-price ins { text-decoration: none; background: transparent; }
.fw-discount-pill {
    background: var(--fw-danger);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 11px;
    border-radius: 20px;
}

/* ---------- Add to cart ---------- */
.fw-buy { margin-bottom: 18px; }
.fw-buy form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0;
}
.fw-buy .quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d9d7e6;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    height: 48px;
}
.fw-buy .quantity input.qty {
    width: 48px;
    height: 100%;
    border: 0;
    border-right: 1px solid var(--fw-border);
    border-left: 1px solid var(--fw-border);
    text-align: center;
    font-size: 15px;
    padding: 0;
    background: transparent;
    -moz-appearance: textfield;
    appearance: textfield;
}
.fw-buy .quantity input.qty::-webkit-outer-spin-button,
.fw-buy .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fw-qty-btn {
    width: 40px;
    height: 100%;
    border: 0;
    background: #fff;
    font-size: 20px;
    color: var(--fw-primary);
    cursor: pointer;
    transition: background .2s;
}
.fw-qty-btn:hover { background: var(--fw-primary-soft); }

.fw-buy .single_add_to_cart_button {
    flex: 1 1 200px;
    height: 48px;
    padding: 0 24px;
    border: 0 !important;
    border-radius: 10px !important;
    background: var(--fw-primary) !important;
    color: #fff !important;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
}
.fw-buy .single_add_to_cart_button:hover { background: var(--fw-primary-dark) !important; }
.fw-buy .single_add_to_cart_button:active { transform: scale(.98); }
.fw-buy .single_add_to_cart_button.disabled,
.fw-buy .single_add_to_cart_button:disabled { opacity: .5; cursor: not-allowed; }

/* محصول متغیر */
.fw-buy table.variations { width: 100%; margin-bottom: 14px; }
.fw-buy table.variations td,
.fw-buy table.variations th { padding: 6px 0; text-align: right !important; border: 0 !important; width: auto; }
.fw-buy table.variations select {
    width: 100%;
    height: 44px;
    border: 1px solid #d9d7e6;
    border-radius: 8px;
    padding: 0 10px;
    background: #fff;
    font-family: inherit;
}
.fw-buy .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
.fw-buy .reset_variations { font-size: 12px; color: var(--fw-muted); }
.fw-buy .woocommerce-variation-price {
    margin-bottom: 10px;
    font-size: 18px !important;
    font-weight: 700;
    color: var(--fw-primary);
}

.fw-buy .woocommerce-variation-price .price,
.fw-buy .woocommerce-variation-price .woocommerce-Price-amount,
.fw-buy .woocommerce-variation-price .woocommerce-Price-amount bdi {
    font-size: 18px !important;
    font-weight: 700;
}

/* ---------- Trust badges ---------- */
.fw-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0 0 16px;
    padding: 0;
}
.fw-trust li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px;
    background: var(--fw-bg);
    border-radius: 10px;
    text-align: center;
    font-size: 12px;
    color: #555;
    line-height: 1.7;
}
.fw-trust li i { font-size: 20px; color: var(--fw-primary); }

.fw-tags { font-size: 12px; color: var(--fw-muted); }
.fw-tags a {
    display: inline-block;
    margin: 3px 2px;
    padding: 2px 10px;
    border: 1px solid var(--fw-border);
    border-radius: 20px;
    color: var(--fw-muted);
}
.fw-tags a:hover { border-color: var(--fw-primary); color: var(--fw-primary); }

/* ---------- Tabs ---------- */
.fw-tabs {
    margin-top: 28px;
    background: #fff;
    padding: 0 !important;
    overflow: hidden;
}
.fw-tabs .nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0;
    padding: 0 12px;
    border-bottom: 1px solid var(--fw-border);
    background: #fcfcfe;
}
.fw-tabs .nav-tabs > li { float: none; margin: 0; flex: 0 0 auto; }
.fw-tabs .nav-tabs > li > a {
    margin: 0;
    padding: 16px 20px;
    border: 0 !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0;
    background: transparent !important;
    color: var(--fw-muted);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.fw-tabs .nav-tabs > li > a:hover { color: var(--fw-primary); }
.fw-tabs .nav-tabs > li.active > a,
.fw-tabs .nav-tabs > li.active > a:focus,
.fw-tabs .nav-tabs > li.active > a:hover {
    color: var(--fw-primary);
    border-bottom-color: var(--fw-primary) !important;
}
.fw-tabs .tab-content { padding: 24px 26px; }

/* جدول ویژگی‌ها */
.fw-tabs table.woocommerce-product-attributes,
.fw-tabs table.shop_attributes {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--fw-border);
    border-radius: 8px;
    overflow: hidden;
}
.fw-tabs table.shop_attributes th,
.fw-tabs table.shop_attributes td,
.fw-tabs table.woocommerce-product-attributes th,
.fw-tabs table.woocommerce-product-attributes td {
    padding: 12px 16px;
    border: 1px solid var(--fw-border);
    text-align: right;
}
.fw-tabs table.shop_attributes th,
.fw-tabs table.woocommerce-product-attributes th {
    width: 30%;
    font-weight: 700;
    color: var(--fw-text);
    background: var(--fw-bg);
}
.fw-tabs table.shop_attributes tr:nth-child(even) td,
.fw-tabs table.woocommerce-product-attributes tr:nth-child(even) td { background: #fcfcfe; }
.fw-tabs table p { margin: 0; }

/* ---------- Related products ---------- */
.releated-products {
    margin-top: 28px;
    padding: 20px 10px 10px;
    background: #fff;
    border: 1px solid var(--fw-border);
    border-radius: var(--fw-radius);
}
.releated-products span.title { margin: 0 10px 10px; }
.releated-products .product-item {
    border: 1px solid var(--fw-border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(16, 6, 159, .05);
    transition: transform .25s ease, box-shadow .25s ease;
    overflow: hidden;
}
.releated-products .product-item:after { display: none; }
.releated-products .product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(16, 6, 159, .12);
}
.releated-products .product-item a.a_buy {
    border-color: var(--fw-primary);
    color: var(--fw-primary);
    border-radius: 8px;
    transition: all .2s;
}
.releated-products .product-item a.a_buy:hover {
    background: var(--fw-primary);
    color: #fff;
}

/* ---------- Sticky mobile bar ---------- */
.fw-sticky-bar { display: none; }

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
    .fw-product-main { gap: 24px; padding: 20px; }
    h1.fw-title { font-size: 19px !important; }
    .fw-trust { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    .fw-product-page { padding-bottom: 90px; }

    .fw-product-main {
        grid-template-columns: 1fr;
        padding: 14px;
        gap: 18px;
        border-radius: 10px;
    }
    .fw-breadcrumb .current { max-width: 180px; }

    .fw-main-slider .owl-dots { display: block; }
    .fw-thumbs { display: none; }

    .fw-price { font-size: 22px; }
    .fw-buy .single_add_to_cart_button { flex: 1 1 100%; }
    .fw-tabs .tab-content { padding: 16px; }
    .fw-tabs .nav-tabs > li > a { padding: 14px 14px; font-size: 13px; }

    .fw-sticky-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: fixed;
        right: 0;
        left: 0;
        bottom: calc(68px + env(safe-area-inset-bottom));
        z-index: 9960;
        padding: 10px 14px;
        background: #fff;
        border-top: 1px solid var(--fw-border);
        box-shadow: 0 -4px 14px rgba(16, 6, 159, .08);
        direction: rtl;
        transform: translateY(150%);
        transition: transform .3s ease;
    }
    .fw-sticky-bar.is-visible { transform: translateY(0); }
    .fw-sticky-price {
        font-size: 15px;
        font-weight: 700;
        color: var(--fw-primary);
        line-height: 1.5;
        min-width: 0;
    }
    .fw-sticky-price del { display: block; font-size: 12px; font-weight: 400; color: var(--fw-muted); }
    .fw-sticky-price ins { text-decoration: none; background: transparent; }
    .fw-sticky-btn {
        flex: 0 0 auto;
        height: 44px;
        padding: 0 22px;
        border: 0;
        border-radius: 10px;
        background: var(--fw-primary);
        color: #fff;
        font-family: inherit;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
    }
}

/* ---------- ریسپانسیو کوچک ---------- */
@media (max-width: 360px) {
    .fw-trust { grid-template-columns: 1fr 1fr; gap: 8px; }
    .fw-sticky-btn { padding: 0 14px; font-size: 13px; }
}
/* نمایش علامت مثبت و منفی تعداد محصول */
.fw-buy .fw-qty-btn.minus::before {
    content: "−" !important;
}

.fw-buy .fw-qty-btn.plus::before {
    content: "+" !important;
}

.fw-buy .fw-qty-btn::before {
    display: inline-block !important;
    font-family: Arial, sans-serif !important;
    font-size: 20px !important;
    color: #10069f !important;
}
/* ==========================================================
   Flowise - Cart Page
   این کد را به انتهای style.css اضافه کنید.
   از متغیرهای --fw-* که قبلاً در :root تعریف کرده‌اید استفاده می‌کند.
   ========================================================== */

.fw-cart {
    direction: rtl;
    text-align: right;
    padding: 5px 0 30px;
}
.fw-cart [hidden] { display: none !important; }

/* ---------- چیدمان اصلی ---------- */
.fw-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 24px;
    align-items: start;
}
.fw-cart-layout > .woocommerce-cart-form {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    margin: 0;
}
/* collaterals "شفاف" می‌شود تا خلاصه سفارش و محصولات مرتبط مستقیم در گرید بنشینند */
.fw-cart-layout > .cart-collaterals { display: contents; }
.fw-cart .cart-collaterals .cross-sells {
    grid-column: 1 / -1;
    grid-row: 2;
    float: none;
    width: 100%;
}

/* ---------- نوار ارسال رایگان ---------- */
.fw-ship-progress {
    background: var(--fw-primary-soft);
    border-radius: var(--fw-radius);
    padding: 14px 18px;
    margin-bottom: 16px;
}
.fw-ship-progress p {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--fw-primary);
    font-weight: 600;
}
.fw-ship-bar {
    height: 8px;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
}
.fw-ship-bar span {
    display: block;
    height: 100%;
    border-radius: 20px;
    background: var(--fw-primary);
    transition: width .4s ease;
}
.fw-ship-progress.is-done { background: #e8f6ee; }
.fw-ship-progress.is-done p { color: var(--fw-success); }
.fw-ship-progress.is-done .fw-ship-bar span { background: var(--fw-success); }

/* ---------- لیست محصولات ---------- */
.fw-cart-items {
    background: #fff;
    border: 1px solid var(--fw-border);
    border-radius: var(--fw-radius);
    overflow: hidden;
}
.fw-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #fcfcfe;
    border-bottom: 1px solid var(--fw-border);
    font-size: 14px;
}
.fw-cart-head span { color: var(--fw-muted); font-size: 13px; }

.fw-cart-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto 130px 40px;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--fw-border);
}
.fw-cart-item:last-child { border-bottom: 0; }

.fw-item-thumb img {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: contain;
    background: var(--fw-bg);
    border-radius: 10px;
}

.fw-item-info a {
    color: var(--fw-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.9;
}
.fw-item-info a:hover { color: var(--fw-primary); }
.fw-item-info dl.variation {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--fw-muted);
}
.fw-item-info dl.variation dt { float: right; margin-left: 4px; font-weight: 400; }
.fw-item-info dl.variation dd { margin: 0; }
.fw-item-info dl.variation dd p { margin: 0; }
.fw-item-info .backorder_notification { font-size: 12px; color: var(--fw-danger); margin: 4px 0 0; }
.fw-item-unit {
    margin-top: 4px;
    font-size: 12px;
    color: var(--fw-muted);
}

/* انتخاب تعداد */
.fw-cart .fw-qty-wrap {
    display: inline-flex;
    align-items: center;
    height: 40px;
    border: 1px solid #d9d7e6;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.fw-cart .fw-cart-qty-btn {
    width: 36px;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: var(--fw-primary);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s;
}
.fw-cart .fw-cart-qty-btn:hover { background: var(--fw-primary-soft); }
.fw-cart .fw-qty-wrap .quantity { display: block; float: none; margin: 0; }
.fw-cart .fw-qty-wrap input.qty {
    width: 44px;
    height: 40px;
    padding: 0;
    border: 0;
    border-right: 1px solid var(--fw-border);
    border-left: 1px solid var(--fw-border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
    font-size: 14px;
    -moz-appearance: textfield;
    appearance: textfield;
}
.fw-cart .fw-qty-wrap input.qty::-webkit-outer-spin-button,
.fw-cart .fw-qty-wrap input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* جمع ردیف */
.fw-item-sub {
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    color: var(--fw-primary);
}
.fw-item-sub .fw-label { display: none; }

/* حذف */
.fw-cart .fw-item-remove { text-align: center; }
.fw-cart a.fw-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #a3a3b0;
    background: transparent;
    transition: color .2s, background .2s;
}
.fw-cart a.fw-remove:hover,
.fw-cart a.fw-remove:focus {
    color: var(--fw-danger);
    background: #fdecec;
    outline: none;
}

/* ---------- کد تخفیف ---------- */
.fw-cart-actions { margin-top: 14px; }
.fw-coupon {
    background: #fff;
    border: 1px solid var(--fw-border);
    border-radius: var(--fw-radius);
}
.fw-cart .fw-coupon-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: auto;
    padding: 14px 20px;
    border: 0;
    border-radius: var(--fw-radius);
    background: transparent;
    color: var(--fw-text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.fw-cart .fw-coupon-toggle::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--fw-muted);
    border-bottom: 2px solid var(--fw-muted);
    transform: rotate(45deg);
    transition: transform .25s;
}
.fw-cart .fw-coupon-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); }
.fw-coupon-body {
    display: flex;
    gap: 10px;
    padding: 0 20px 18px;
}
.fw-cart .fw-coupon-body input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #d9d7e6;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
    font-family: inherit;
}
.fw-cart .fw-coupon-body input[type="text"]:focus { border-color: var(--fw-primary); outline: none; }
.fw-cart .fw-coupon-body button {
    height: 44px;
    padding: 0 22px;
    border: 1px solid var(--fw-primary);
    border-radius: 10px;
    background: #fff;
    color: var(--fw-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.fw-cart .fw-coupon-body button:hover { background: var(--fw-primary); color: #fff; }

/* دکمه به‌روزرسانی (مخفی، خودکار) */
.fw-cart .fw-update-cart { display: none !important; }

/* ---------- خلاصه سفارش ---------- */
.fw-cart .cart_totals.fw-summary {
    grid-column: 2;
    grid-row: 1;
    float: none;
    width: 100%;
    position: sticky;
    top: 20px;
    background: #fff;
    border: 1px solid var(--fw-border);
    border-radius: var(--fw-radius);
    padding: 20px;
}
.fw-summary-title {
    font-size: 16px;
    font-weight: 700;
    padding-bottom: 14px;
    margin-bottom: 6px;
}
.fw-summary-table { width: 100%; border: 0; border-collapse: collapse; margin: 0; }
.fw-summary-table th,
.fw-summary-table td {
    padding: 12px 0;
    border: 0;
    border-bottom: 1px dashed var(--fw-border);
    font-size: 14px;
    vertical-align: top;
    background: transparent;
}
.fw-summary-table th {
    text-align: right;
    font-weight: 500;
    color: var(--fw-muted);
    width: 38%;
}
.fw-summary-table td { text-align: left; color: var(--fw-text); font-weight: 600; }
.fw-summary-table .cart-discount td { color: var(--fw-success); }
.fw-summary-table .cart-discount td a { color: var(--fw-danger); font-size: 12px; margin-right: 6px; }

/* روش‌های ارسال */
.fw-summary-table tr.shipping td,
.fw-summary-table tr.woocommerce-shipping-totals td { text-align: right; font-weight: 400; font-size: 13px; }
.fw-summary-table ul#shipping_method { margin: 0; padding: 0; list-style: none; }
.fw-summary-table ul#shipping_method li { margin: 0 0 8px; line-height: 1.9; }
.fw-summary-table ul#shipping_method input { margin-left: 6px; vertical-align: middle; }
.fw-summary-table .woocommerce-shipping-destination { font-size: 12px; color: var(--fw-muted); margin: 6px 0 0; }
.fw-summary-table .shipping-calculator-button { font-size: 12px; color: var(--fw-primary); }

.fw-summary-table .order-total th,
.fw-summary-table .order-total td {
    border-bottom: 0;
    padding-top: 18px;
    color: var(--fw-text);
    font-size: 15px;
    font-weight: 700;
}
.fw-summary-table .order-total td { color: var(--fw-primary); font-size: 18px; }

/* دکمه ادامه خرید */
.fw-cart .wc-proceed-to-checkout { margin: 8px 0 0; padding: 0; }
.fw-cart .wc-proceed-to-checkout .checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    float: none;
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--fw-primary);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    transition: background .2s, transform .15s;
}
.fw-cart .wc-proceed-to-checkout .checkout-button:hover { background: var(--fw-primary-dark); }
.fw-cart .wc-proceed-to-checkout .checkout-button:active { transform: scale(.98); }
.fw-cart-sticky { display: none; }

/* ---------- محصولات پیشنهادی ---------- */
.fw-cart .cross-sells h2 { font-size: 16px !important; margin: 10px 0 14px; }

/* ---------- سبد خالی ---------- */
.fw-cart-empty {
    max-width: 440px;
    margin: 40px auto;
    padding: 40px 20px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--fw-border);
    border-radius: var(--fw-radius);
    direction: rtl;
}
.fw-cart-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--fw-primary-soft);
    color: var(--fw-primary);
}
.fw-cart-empty-title { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--fw-text); }
.fw-cart-empty-text { margin: 0 0 22px; font-size: 13px; color: var(--fw-muted); line-height: 2; }
.fw-cart-empty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 30px;
    border-radius: 10px;
    background: var(--fw-primary);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    transition: background .2s;
}
.fw-cart-empty-btn:hover { background: var(--fw-primary-dark); }

/* ---------- تبلت ---------- */
@media (max-width: 991px) {
    .fw-cart-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; }
    .fw-cart-item { grid-template-columns: 72px minmax(0, 1fr) auto 36px; }
    .fw-cart-item .fw-item-sub { grid-column: 2 / 4; grid-row: 2; text-align: right; }
    .fw-item-thumb img { width: 72px; height: 72px; }
}

/* ---------- موبایل ---------- */
@media (max-width: 767px) {
    .fw-cart { padding-bottom: 90px; }

    .fw-cart-layout { display: block; }
    .fw-cart-layout > .cart-collaterals { display: block; }
    .fw-cart .cart-collaterals .cross-sells { margin-top: 20px; }

    .fw-cart-item {
        grid-template-columns: 72px minmax(0, 1fr) 36px;
        grid-template-areas:
            "thumb info remove"
            "qty   qty  sub";
        gap: 12px;
        padding: 14px;
    }
    .fw-cart-item .fw-item-thumb  { grid-area: thumb; }
    .fw-cart-item .fw-item-info   { grid-area: info; }
    .fw-cart-item .fw-item-remove { grid-area: remove; align-self: start; }
    .fw-cart-item .fw-item-qty    { grid-area: qty; }
    .fw-cart-item .fw-item-sub    {
        grid-area: sub;
        grid-column: auto;
        grid-row: auto;
        text-align: left;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        font-size: 14px;
    }
    .fw-item-sub .fw-label { display: block; font-size: 11px; font-weight: 400; color: var(--fw-muted); }

    .fw-cart-head { padding: 14px; }
    .fw-coupon-toggle { padding: 14px; }
    .fw-coupon-body { padding: 0 14px 16px; }

    .fw-cart .cart_totals.fw-summary {
        position: static;
        margin-top: 16px;
        padding: 16px;
    }
    /* در موبایل دکمه ثابت پایین جایگزین دکمه داخل کارت می‌شود */
    .fw-cart .wc-proceed-to-checkout { display: none; }

    .fw-cart-sticky {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: fixed;
        right: 0;
        left: 0;
        bottom: calc(68px + env(safe-area-inset-bottom));
        z-index: 99990;
        padding: 10px 14px;
        background: #fff;
        border-top: 1px solid var(--fw-border);
        box-shadow: 0 -4px 14px rgba(16, 6, 159, .08);
        direction: rtl;
    }
    .fw-cart-sticky-total { min-width: 0; line-height: 1.5; }
    .fw-cart-sticky-total small { display: block; font-size: 11px; color: var(--fw-muted); }
    .fw-cart-sticky-total span { font-size: 15px; font-weight: 700; color: var(--fw-primary); }
    .fw-cart-sticky-btn {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 44px;
        padding: 0 22px;
        border-radius: 10px;
        background: var(--fw-primary);
        color: #fff !important;
        font-size: 14px;
        font-weight: 700;
    }
}

@media (max-width: 360px) {
    .fw-cart-sticky-btn { padding: 0 14px; font-size: 13px; }
}


/* ==========================================================
   اصلاحیه v2 - خلاصه سفارش دسکتاپ
   ========================================================== */

/* sticky با overflow-x:hidden کار نمی‌کند؛ clip اسکرول‌کانتینر نمی‌سازد */
html,
body {
    overflow-x: clip;
}

.fw-cart {
    width: 100%;
    box-sizing: border-box;
}

/* غلبه بر استایل‌های پیش‌فرض ووکامرس (float و width: 48%) */
.fw-cart .cart-collaterals .cart_totals.fw-summary,
.woocommerce-cart .fw-cart .cart-collaterals .cart_totals.fw-summary {
    grid-column: 2;
    grid-row: 1;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.fw-summary-table {
    table-layout: auto;
}
.fw-summary-table th {
    overflow-wrap: anywhere;
}
.fw-summary-table td {
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    .fw-cart .cart-collaterals .cart_totals.fw-summary,
    .woocommerce-cart .fw-cart .cart-collaterals .cart_totals.fw-summary {
        grid-column: auto;
        grid-row: auto;
        position: static;
        margin-top: 16px !important;
    }
}


/* ==========================================================
   اصلاحیه v3 - سازگاری با کلاس‌های shop_table (افزونه حمل‌ونقل)
   ========================================================== */

/* جلوگیری از تکرار برچسب‌ها در موبایل توسط استایل responsive ووکامرس */
.fw-summary-table td::before,
.fw-summary-table th::before {
    content: none !important;
    display: none !important;
}
.fw-summary-table tr {
    display: table-row !important;
}
.fw-summary-table th,
.fw-summary-table td {
    display: table-cell !important;
}
/* ==========================================================
   Flowise - Checkout Page
   این کد را به انتهای style.css اضافه کنید (بعد از استایل سبد خرید).
   ========================================================== */

.fw-checkout {
    direction: rtl;
    text-align: right;
    width: 100%;
    box-sizing: border-box;
    padding: 5px 0 30px;
}

/* ---------- چیدمان ---------- */
.fw-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 24px;
    align-items: start;
}
.fw-co-main { min-width: 0; }
.fw-co-summary {
    position: sticky;
    top: 20px;
    background: #fff;
    border: 1px solid var(--fw-border);
    border-radius: var(--fw-radius);
    padding: 20px;
}

.fw-co-card {
    background: #fff;
    border: 1px solid var(--fw-border);
    border-radius: var(--fw-radius);
    padding: 22px 24px;
    margin-bottom: 18px;
}
.fw-co-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--fw-text);
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--fw-border);
}
.fw-co-title small { font-size: 12px; font-weight: 400; color: var(--fw-muted); }
.fw-co-summary > .fw-co-title { margin-bottom: 6px; }

/* ---------- فیلدها ---------- */
.fw-checkout .woocommerce-billing-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
.fw-checkout .form-row {
    float: none;
    width: auto;
    margin: 0 0 16px;
    padding: 0;
}
.fw-checkout .form-row-wide { grid-column: 1 / -1; }
.fw-checkout .form-row-first,
.fw-checkout .form-row-last { grid-column: auto; }
.fw-checkout .fw-hidden-field { display: none !important; }

.fw-checkout .form-row label {
    display: block;
    margin: 0 0 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fw-text);
}
.fw-checkout .form-row label .required { color: var(--fw-danger); text-decoration: none; border: 0; }
.fw-checkout .form-row label .optional { font-weight: 400; color: var(--fw-muted); font-size: 12px; }

.fw-checkout .woocommerce-input-wrapper { display: block; }

.fw-checkout .form-row input.input-text,
.fw-checkout .form-row textarea,
.fw-checkout .form-row select {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #d9d7e6;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
    font-family: inherit;
    font-size: 14px;
    color: var(--fw-text);
    transition: border-color .2s, box-shadow .2s;
}
.fw-checkout .form-row textarea {
    height: auto;
    min-height: 92px;
    padding: 12px 14px;
    line-height: 2;
    resize: vertical;
}
.fw-checkout .form-row input.input-text:focus,
.fw-checkout .form-row textarea:focus,
.fw-checkout .form-row select:focus {
    border-color: var(--fw-primary);
    box-shadow: 0 0 0 3px rgba(16, 6, 159, .08);
    outline: none;
}
.fw-checkout .form-row input::placeholder,
.fw-checkout .form-row textarea::placeholder { color: #a8a8b4; }

/* شماره موبایل چپ‌چین */
.fw-checkout #billing_phone { direction: ltr; text-align: right; }

/* خطا */
.fw-checkout .form-row.woocommerce-invalid input.input-text,
.fw-checkout .form-row.woocommerce-invalid textarea,
.fw-checkout .form-row.woocommerce-invalid select,
.fw-checkout .form-row.woocommerce-invalid .select2-selection { border-color: var(--fw-danger); }

/* select2 (استان) */
.fw-checkout .select2-container { width: 100% !important; }
.fw-checkout .select2-container .select2-selection--single {
    height: 46px;
    border: 1px solid #d9d7e6;
    border-radius: 10px;
    background: #fff;
}
.fw-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--fw-text);
    text-align: right;
}
.fw-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
    left: 8px;
    right: auto;
}
.fw-checkout .select2-container--open .select2-selection--single,
.fw-checkout .select2-container--focus .select2-selection--single { border-color: var(--fw-primary); }

/* توضیحات سفارش: برچسب فیلد مخفی (عنوان کارت کافی است) */
.fw-co-notes .form-row label {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.fw-co-notes .form-row { margin-bottom: 0; }

/* ---------- جدول سفارش ---------- */
.fw-co-summary table.shop_table {
    width: 100%;
    border: 0;
    border-collapse: collapse;
    margin: 0;
}
.fw-co-summary table.shop_table thead { display: none; }
.fw-co-summary table.shop_table th,
.fw-co-summary table.shop_table td {
    padding: 12px 0;
    border: 0;
    border-bottom: 1px dashed var(--fw-border);
    background: transparent;
    font-size: 13.5px;
    vertical-align: middle;
}
.fw-co-summary table.shop_table td::before,
.fw-co-summary table.shop_table th::before { content: none !important; display: none !important; }

.fw-co-summary tbody td.product-name { text-align: right; }
.fw-co-summary tbody td.product-total { text-align: left; white-space: nowrap; font-weight: 600; color: var(--fw-primary); }

.fw-co-item { display: flex; align-items: center; gap: 12px; }
.fw-co-thumb { flex: 0 0 56px; }
.fw-co-thumb img {
    display: block;
    width: 56px;
    height: 56px;
    margin: 0;
    object-fit: contain;
    background: var(--fw-bg);
    border-radius: 8px;
}
.fw-co-item-text { min-width: 0; line-height: 1.9; color: var(--fw-text); font-weight: 600; font-size: 13px; }
.fw-co-item-text .product-quantity { color: var(--fw-muted); font-weight: 400; margin-right: 4px; }
.fw-co-item-text dl.variation { margin: 2px 0 0; font-size: 12px; font-weight: 400; color: var(--fw-muted); }
.fw-co-item-text dl.variation dt { float: right; margin-left: 4px; font-weight: 400; }
.fw-co-item-text dl.variation dd { margin: 0; }
.fw-co-item-text dl.variation dd p { margin: 0; }

.fw-co-summary tfoot th {
    text-align: right;
    font-weight: 500;
    color: var(--fw-muted);
    width: 38%;
}
.fw-co-summary tfoot td { text-align: left; font-weight: 600; color: var(--fw-text); }
.fw-co-summary tfoot .cart-discount td { color: var(--fw-success); }

/* روش‌های ارسال (افزونه حمل‌ونقل) */
.fw-co-summary tfoot tr.shipping td,
.fw-co-summary tfoot tr.woocommerce-shipping-totals td { text-align: right; font-weight: 400; font-size: 13px; }
.fw-co-summary ul#shipping_method { margin: 0; padding: 0; list-style: none; }
.fw-co-summary ul#shipping_method li { margin: 0 0 8px; line-height: 1.9; }
.fw-co-summary ul#shipping_method input { margin-left: 6px; vertical-align: middle; }

.fw-co-summary tfoot .order-total th,
.fw-co-summary tfoot .order-total td {
    border-bottom: 0;
    padding-top: 18px;
    font-size: 15px;
    font-weight: 700;
    color: var(--fw-text);
}
.fw-co-summary tfoot .order-total td { color: var(--fw-primary); font-size: 18px; }

/* ---------- پرداخت و دکمه ثبت ---------- */
.fw-checkout #payment {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin-top: 6px;
}
.fw-checkout #payment ul.wc_payment_methods {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    border: 0;
}
.fw-checkout #payment ul.fw-single-gateway { display: none; }
.fw-checkout #payment ul.wc_payment_methods li { margin: 0 0 8px; padding: 10px 12px; border: 1px solid var(--fw-border); border-radius: 10px; }
.fw-checkout #payment div.payment_box {
    margin: 8px 0 0;
    padding: 10px 12px;
    background: var(--fw-bg);
    border-radius: 8px;
    font-size: 12.5px;
    color: #555;
    line-height: 2;
}
.fw-checkout #payment div.payment_box::before { display: none; }

.fw-pay-note {
    margin: 0 0 14px;
    padding: 12px 14px;
    background: var(--fw-primary-soft);
    border-radius: 10px;
    color: var(--fw-primary);
    font-size: 13px;
    font-weight: 600;
    line-height: 2;
}

.fw-checkout #payment .place-order { margin: 0; padding: 0; }
.fw-checkout .woocommerce-terms-and-conditions-wrapper { margin-bottom: 14px; font-size: 12px; color: var(--fw-muted); line-height: 2; }
.fw-checkout #payment #place_order {
    display: flex;
    align-items: center;
    justify-content: center;
    float: none;
    width: 100%;
    height: 54px;
    padding: 0 20px !important;
    border: 0;
    border-radius: 12px;
    background: var(--fw-primary);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .15s;
}
.fw-checkout #payment #place_order:hover { background: var(--fw-primary-dark); }
.fw-checkout #payment #place_order:active { transform: scale(.98); }

/* ---------- تبلت ---------- */
@media (max-width: 991px) {
    .fw-checkout-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; }
}

/* ---------- موبایل ---------- */
@media (max-width: 767px) {
    .fw-checkout { padding-bottom: 30px; }
    .fw-checkout-layout { display: block; }
    .fw-co-summary { position: static; margin-top: 4px; padding: 16px; }
    .fw-co-card { padding: 18px 16px; }

    .fw-checkout .woocommerce-billing-fields__field-wrapper { grid-template-columns: 1fr; }
    .fw-checkout .form-row-first,
    .fw-checkout .form-row-last { grid-column: 1 / -1; }

    .fw-checkout #payment #place_order { font-size: 16px; height: 52px; }
}
#billing_phone_field label .optional {
    display: none !important;
}
/* حذف ستاره قرمز فیلدهای اجباری در تسویه حساب */
.woocommerce-checkout .required,
.woocommerce-checkout abbr.required {
    display: none !important;
}


/* ==========================================
   FLOWISE - FOOTER TRUST LOGOS
========================================== */

.footer-menu.footer-enamad {
    width: 100%;
}

.footer-trust-logos {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start;
    gap: 18px;
    margin-top: 15px;
    flex-wrap: nowrap !important;
}

.footer-trust-logo {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    width: 105px;
    min-width: 105px;
    min-height: 110px;
    margin: 0 !important;
    transition: transform 0.2s ease;
}

.footer-trust-logo:hover {
    transform: translateY(-3px);
}

.footer-trust-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 90px;
    max-height: 105px;
    object-fit: contain;
}

.footer-enamad-logo img {
    max-width: 85px;
    max-height: 100px;
}

.footer-emalls-logo img {
    width: 75px;
    height: 112px;
    object-fit: contain;
}

/* موبایل */
@media (max-width: 767px) {

    .footer-menu.footer-enamad {
        width: 100% !important;
    }

    .footer-menu.footer-enamad .footer-trust-logos {
        justify-content: center !important;
        gap: 12px !important;
    }

}


/* ==========================================================
   FLOWISE - MENU BRAND & CATEGORY IMAGES
========================================================== */

.menu-box .flowise-menu-taxonomy-item,
.mobile-menu .flowise-menu-taxonomy-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    direction: rtl;
}

.menu-box .flowise-menu-taxonomy-icon,
.mobile-menu .flowise-menu-taxonomy-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
    display: inline-block;
    border-radius: 4px;
}

.flowise-menu-taxonomy-title {
    display: inline-block;
}


/* ==========================================================
   Flowise - Product Reviews (v3)
   این بلوک جایگزین بلوک قدیمی «FLOWISE - PRODUCT REVIEWS DESIGN» می‌شود.
   (از کامنت آن بلوک تا قبل از «Flowise - Product Card» را پاک کنید
   و این کد را همان‌جا بگذارید.)
   ========================================================== */

/* ---------- اعلان پس از ثبت دیدگاه ---------- */
.fw-review-notice {
    margin: 0 0 18px;
    padding: 14px 18px;
    background: #e8f6ee;
    border: 1px solid #c9e9d6;
    border-radius: var(--fw-radius);
    color: var(--fw-success);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 2;
    direction: rtl;
}

/* ---------- محیط کلی ---------- */
body .fw-tabs #reviews {
    direction: rtl;
    text-align: right;
    color: var(--fw-text);
}
body .fw-tabs #reviews #comments { margin-bottom: 26px; }

body .fw-tabs #reviews h2.woocommerce-Reviews-title {
    margin: 0 0 18px;
    font-size: 17px !important;
    font-weight: 700;
    line-height: 1.8;
    color: var(--fw-text);
}

/* ---------- لیست دیدگاه‌ها ---------- */
body .fw-tabs #reviews #comments ol.commentlist {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    background: transparent;
}
body .fw-tabs #reviews #comments ol.commentlist li {
    position: static;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    background: transparent;
    border: 0;
}
body .fw-tabs #reviews #comments ol.commentlist li .comment_container {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--fw-border);
    border-radius: var(--fw-radius);
    transition: border-color .2s ease, box-shadow .2s ease;
}
body .fw-tabs #reviews #comments ol.commentlist li .comment_container:hover {
    border-color: #dcd9f0;
    box-shadow: 0 6px 18px rgba(16, 6, 159, .06);
}

/* آواتار: حرف اول نام */
.fw-avatar {
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--fw-primary-soft);
    color: var(--fw-primary);
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
}

body .fw-tabs #reviews #comments ol.commentlist li .comment-text {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
}
body .fw-tabs #reviews #comments ol.commentlist li .comment-text p.meta {
    margin: 0 0 6px;
    font-size: 12px;
    color: var(--fw-muted);
}
body .fw-tabs #reviews .woocommerce-review__author {
    font-size: 14px;
    font-weight: 700;
    color: var(--fw-text);
}
body .fw-tabs #reviews .woocommerce-review__dash { display: none; }
body .fw-tabs #reviews .woocommerce-review__published-date {
    margin-right: 8px;
    font-size: 11.5px;
    color: var(--fw-muted);
}
body .fw-tabs #reviews .woocommerce-review__awaiting-approval {
    font-size: 12px;
    font-style: normal;
    color: var(--fw-primary);
}
body .fw-tabs #reviews #comments ol.commentlist li .comment-text .description {
    margin: 0;
    font-size: 13.5px;
    line-height: 2.1;
    color: #555;
    text-align: justify;
}
body .fw-tabs #reviews #comments ol.commentlist li .comment-text .description p { margin: 0; }

/* وقتی هنوز دیدگاهی نیست */
body .fw-tabs #reviews p.woocommerce-noreviews {
    margin: 0;
    padding: 14px 18px;
    background: var(--fw-primary-soft);
    border-radius: 10px;
    color: var(--fw-primary);
    font-size: 13.5px;
    line-height: 2;
}

/* ---------- فرم ثبت دیدگاه ---------- */
body .fw-tabs #review_form_wrapper {
    margin-top: 6px;
    padding: 22px;
    background: var(--fw-bg);
    border: 1px solid var(--fw-border);
    border-radius: var(--fw-radius);
}

body .fw-tabs #review_form #respond #reply-title {
    display: block;
    margin: 0 0 18px;
    font-size: 16px !important;
    font-weight: 700;
    color: var(--fw-text);
}
/* آیکون‌های تکراری عنوان (از قالب و بلوک قدیمی) حذف می‌شوند */
body .fw-tabs #review_form #respond #reply-title::before { content: none !important; }

body .fw-tabs #review_form #commentform p { margin: 0 0 16px; }

body .fw-tabs #review_form #commentform label {
    display: block;
    width: auto;
    margin: 0 0 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fw-text);
}
body .fw-tabs #review_form #commentform label .required {
    color: var(--fw-danger);
    border: 0;
    text-decoration: none;
}

body .fw-tabs #review_form #commentform .comment-form-author input,
body .fw-tabs #review_form #commentform .comment-form-comment textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #d9d7e6;
    border-radius: 10px;
    box-shadow: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    color: var(--fw-text);
    transition: border-color .2s ease, box-shadow .2s ease;
}
body .fw-tabs #review_form #commentform .comment-form-author input { height: 46px; }
body .fw-tabs #review_form #commentform .comment-form-comment textarea {
    height: auto;
    min-height: 120px;
    padding: 12px 14px;
    line-height: 2;
    resize: vertical;
}
body .fw-tabs #review_form #commentform .comment-form-author input:focus,
body .fw-tabs #review_form #commentform .comment-form-comment textarea:focus {
    border-color: var(--fw-primary);
    box-shadow: 0 0 0 3px rgba(16, 6, 159, .08);
}
body .fw-tabs #review_form #commentform input::placeholder,
body .fw-tabs #review_form #commentform textarea::placeholder { color: #a8a8b4; }

/* دکمه ثبت دیدگاه */
body .fw-tabs #review_form #commentform p.form-submit { margin: 4px 0 0; }
body .fw-tabs #review_form #commentform button.fw-review-submit {
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 46px;
    margin: 0;
    padding: 0 28px;
    background: var(--fw-primary);
    border: 0;
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
}
body .fw-tabs #review_form #commentform button.fw-review-submit:hover { background: var(--fw-primary-dark); }
body .fw-tabs #review_form #commentform button.fw-review-submit:active { transform: scale(.98); }

/* ==========================================================
   امتیاز ستاره‌ای: ورودی در فرم + نمایش در هر دیدگاه
   ========================================================== */

/* ---------- انتخاب امتیاز در فرم ---------- */
body .fw-tabs #review_form #commentform .comment-form-rating { margin: 0 0 16px; }

body .fw-tabs #review_form #commentform .fw-rate-label {
    display: block;
    margin: 0 0 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fw-text);
}

body .fw-tabs #review_form #commentform .fw-rate {
    position: relative;
    display: inline-flex;
    flex-direction: row-reverse;   /* ستاره اول سمت راست */
}
body .fw-tabs #review_form #commentform .fw-rate input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}
body .fw-tabs #review_form #commentform .fw-rate label {
    display: inline-block;
    width: auto;
    margin: 0;
    padding: 0 3px;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    color: #d5d5dd;
    cursor: pointer;
    transition: color .15s ease, transform .15s ease;
}
body .fw-tabs #review_form #commentform .fw-rate label .fa { display: block; }
body .fw-tabs #review_form #commentform .fw-rate input:checked ~ label,
body .fw-tabs #review_form #commentform .fw-rate label:hover,
body .fw-tabs #review_form #commentform .fw-rate label:hover ~ label {
    color: var(--fw-star);
}
body .fw-tabs #review_form #commentform .fw-rate label:hover { transform: scale(1.12); }
body .fw-tabs #review_form #commentform .fw-rate input:focus-visible + label {
    outline: 2px solid var(--fw-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- نمایش ستاره‌ها در هر دیدگاه ---------- */
body .fw-tabs #reviews #comments ol.commentlist li .comment-text .star-rating {
    position: relative;
    float: none;
    display: block;
    width: 80px;
    height: 16px;
    margin: 0 0 8px;
    overflow: hidden;
    font-family: FontAwesome;
    font-size: 15px;
    line-height: 16px;
    letter-spacing: 2px;
    direction: rtl;
    text-align: right;
}
body .fw-tabs #reviews #comments ol.commentlist li .comment-text .star-rating::before {
    content: "\f006\f006\f006\f006\f006";
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    float: none;
    white-space: nowrap;
    color: #d5d5dd;
}
body .fw-tabs #reviews #comments ol.commentlist li .comment-text .star-rating span {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    float: none;
    height: 100%;
    overflow: hidden;
    padding: 0;
    font-size: 0;
    color: transparent;
}
body .fw-tabs #reviews #comments ol.commentlist li .comment-text .star-rating span::before {
    content: "\f005\f005\f005\f005\f005";
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    font-size: 15px;
    white-space: nowrap;
    color: var(--fw-star);
}

/* ---------- موبایل ---------- */
@media (max-width: 767px) {
    body .fw-tabs #reviews h2.woocommerce-Reviews-title { font-size: 15px !important; }

    body .fw-tabs #reviews #comments ol.commentlist li .comment_container {
        gap: 10px;
        padding: 14px;
    }
    .fw-avatar { flex-basis: 38px; width: 38px; height: 38px; font-size: 15px; }
    body .fw-tabs #reviews #comments ol.commentlist li .comment-text .description {
        font-size: 13px;
        line-height: 2;
    }

    body .fw-tabs #review_form_wrapper { padding: 16px 14px; }
    body .fw-tabs #review_form #commentform button.fw-review-submit { width: 100%; }
}
/* ==========================================================
   Flowise - Product Card (shop / related / sliders)
   این کد را به انتهای style.css اضافه کنید.
   ========================================================== */

/* ---------- شبکه محصولات صفحه فروشگاه ---------- */
/* flex باعث می‌شود کارت‌های هم‌ردیف قد برابر داشته باشند (کارت متغیر بلندتر است) */
.products-body .col-md-9 {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}
.products-body .col-md-9 > .col-md-12,
.products-body .col-md-9 > .flowise-term-accordion {
    flex: 0 0 100%;
    width: 100%;
}
.products-body .col-md-9 > .col-6 {
    margin-bottom: 20px;
}
@media (min-width: 769px) and (max-width: 991px) {
    .products-body .col-md-9 > .col-6 {
        flex: 0 0 33.3333%;
        width: 33.3333%;
        max-width: 33.3333%;
    }
}

/* ---------- کارت ---------- */
.product-item.fw-pc {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    background: #fff;
    border: 1px solid var(--fw-border);
    border-radius: 14px;
    box-shadow: none;
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.product-item.fw-pc:after { display: none; }
.products-body .product-item.fw-pc { margin-bottom: 0; }
.product-item.fw-pc:hover {
    border-color: #dcd9f0;
    box-shadow: 0 10px 24px rgba(16, 6, 159, .09);
    transform: translateY(-2px);
}

/* ---------- تصویر ---------- */
.fw-pc .fw-pc-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--fw-bg);
}
.fw-pc .fw-pc-link {
    position: absolute;
    inset: 0;
    display: block;
}
.fw-pc .fw-pc-media img {
    position: absolute;
    top: 10px;
    left: 10px;
    display: block;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    max-width: none;
    margin: 0;
    object-fit: contain;
    transition: opacity .35s ease;
}
.fw-pc .fw-pc-img-2 { opacity: 0; }
@media (hover: hover) {
    .fw-pc .fw-pc-link.has-alt:hover .fw-pc-img-1 { opacity: 0; }
    .fw-pc .fw-pc-link.has-alt:hover .fw-pc-img-2 { opacity: 1; }
}

.fw-pc .fw-pc-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--fw-danger);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.7;
}
.fw-pc .fw-pc-badge--oos { background: #8d8d99; }

/* ---------- بدنه ---------- */
.fw-pc .fw-pc-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 12px 14px 14px;
}
.fw-pc .fw-pc-cat {
    margin-bottom: 2px;
    font-size: 11.5px;
    color: var(--fw-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fw-pc h3.fw-pc-title {
    margin: 0 0 10px;
    height: 3.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px !important;
    line-height: 1.9 !important;
    font-weight: 600;
    max-width: none;
    white-space: normal;
}
.fw-pc h3.fw-pc-title a { color: var(--fw-text); }
.fw-pc h3.fw-pc-title a:hover { color: var(--fw-primary); }

/* ---------- انتخاب گزینه‌ها ---------- */
.fw-pc .fw-pc-vars { margin-bottom: 8px; }
.fw-pc .fw-pc-attr { margin-bottom: 8px; }
.fw-pc .fw-pc-attr-label {
    display: block;
    margin-bottom: 5px;
    font-size: 11.5px;
    color: var(--fw-muted);
}
.fw-pc .fw-pc-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.fw-pc .fw-pc-opt {
    height: 28px;
    padding: 0 11px;
    border: 1px solid #e3e1ef;
    border-radius: 8px;
    background: #fff;
    color: #555;
    font-family: inherit;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.fw-pc .fw-pc-opt:hover { border-color: var(--fw-primary); }
.fw-pc .fw-pc-opt.is-active {
    border-color: var(--fw-primary);
    background: var(--fw-primary-soft);
    color: var(--fw-primary);
    font-weight: 700;
}
.fw-pc .fw-pc-opt.is-unavailable {
    opacity: .45;
    text-decoration: line-through;
}
.fw-pc .fw-pc-select {
    display: block;
    width: 100%;
    height: 38px;
    padding: 0 12px 0 32px;
    border: 1px solid #e3e1ef;
    border-radius: 10px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a7a85' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 11px center;
    box-shadow: none;
    color: #444;
    font-family: inherit;
    font-size: 12.5px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: border-color .15s, background-color .15s;
}
.fw-pc .fw-pc-select:hover { border-color: var(--fw-primary); }
.fw-pc .fw-pc-select:focus { border-color: var(--fw-primary); outline: none; }
.fw-pc .fw-pc-select option.is-unavailable { color: #9b9ba6; }
.fw-pc .fw-pc-attr.is-hint .fw-pc-opts,
.fw-pc .fw-pc-attr.is-hint .fw-pc-select {
    outline: 1px dashed var(--fw-danger);
    outline-offset: 3px;
    border-radius: 8px;
    animation: fw-pc-shake .35s ease;
}
@keyframes fw-pc-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

/* ---------- قیمت و دکمه ---------- */
.fw-pc .fw-pc-foot { margin-top: auto; }
.fw-pc .fw-pc-price {
    min-height: 26px;
    margin: 2px 0 10px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
    color: var(--fw-text);
}
.fw-pc .fw-pc-price del {
    display: inline-block;
    margin-left: 6px;
    font-size: 12px;
    font-weight: 400;
    color: var(--fw-muted);
}
.fw-pc .fw-pc-price ins {
    text-decoration: none;
    background: transparent;
    color: var(--fw-primary);
}

.fw-pc .fw-pc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: var(--fw-primary-soft);
    color: var(--fw-primary);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s, opacity .2s;
}
.fw-pc .fw-pc-btn.is-ready:hover,
.fw-pc .fw-pc-btn.is-link:hover {
    background: var(--fw-primary);
    color: #fff;
}
.fw-pc .fw-pc-btn.is-incomplete {
    background: #f1f1f6;
    color: var(--fw-muted);
}
.fw-pc .fw-pc-btn.is-out {
    background: #f1f1f6;
    color: #a3a3b0;
    cursor: not-allowed;
}
.fw-pc .fw-pc-btn.is-loading { opacity: .6; pointer-events: none; }
.fw-pc .fw-pc-btn.is-added { background: var(--fw-success); color: #fff; }

/* لینک «مشاهده سبد» که اسکریپت ووکامرس ممکن است اضافه کند */
.fw-pc .added_to_cart { display: none !important; }

/* ---------- پیام افزوده شدن ---------- */
.fw-pc-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: calc(100% - 32px);
    padding: 12px 18px;
    border-radius: 12px;
    background: #20252b;
    color: #fff;
    font-size: 13px;
    line-height: 1.8;
    direction: rtl;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
    opacity: 0;
    transform: translate(-50%, 20px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}
.fw-pc-toast.is-show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.fw-pc-toast a { color: #b9b5ec; font-weight: 700; white-space: nowrap; }
.fw-pc-toast.is-error { background: #7d1f1c; }
.fw-pc-toast.is-error a { color: #ffd2cf; }

/* ---------- موبایل ---------- */
@media (max-width: 767px) {
    .fw-pc .fw-pc-body { padding: 10px 10px 12px; }
    .fw-pc h3.fw-pc-title { font-size: 13px !important; }
    .fw-pc .fw-pc-price { font-size: 14px; }
    .fw-pc .fw-pc-btn { height: 40px; font-size: 13px; }
    .fw-pc .fw-pc-opt { height: 26px; padding: 0 9px; font-size: 11.5px; }
    .fw-pc-toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
}
/* ==========================================================
   نوار مرتب‌سازی صفحه فروشگاه
   ========================================================== */
.order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0 18px;
    text-align: right;
}

/* متن «نمایش ... نتیجه» */
.order p.woocommerce-result-count,
.order p {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: var(--fw-muted);
}

.order form.woocommerce-ordering {
    display: block;
    margin: 0;
}

/* منوی مرتب‌سازی */
.order form.woocommerce-ordering select.orderby {
    display: block;
    min-width: 230px;
    height: 42px;
    margin: 0;
    padding: 0 14px 0 38px;
    border: 1px solid #e3e1ef;
    border-radius: 10px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a7a85' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 13px center;
    box-shadow: none;
    color: var(--fw-text);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: border-color .15s, box-shadow .15s;
}
.order form.woocommerce-ordering select.orderby:hover {
    border-color: var(--fw-primary);
}
.order form.woocommerce-ordering select.orderby:focus {
    border-color: var(--fw-primary);
    box-shadow: 0 0 0 3px rgba(16, 6, 159, .08);
    outline: none;
}

@media (max-width: 767px) {
    .order {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .order form.woocommerce-ordering select.orderby {
        width: 100%;
        min-width: 0;
    }
}