
/********************** Product Item Horizontal Story *************************/
.product-item-story{
    width: 260px;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    color: black!important;
    text-decoration: none!important;
}
.product-item-story > img{
    width: 60px!important;
    height: 60px!important;
    border-radius: 10px!important;
    margin-left: 10px;
    flex-shrink: 0;
}
.product-item-h-content{
    display: flex;
    flex-direction: column;
    width: calc(100% - 75px);
}
.product-item-story .product-title{
    color: black;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    max-width: 100%;
    font-size: 12px;
    margin-bottom: 5px;
}
.product-item-h-content-price{
    font-size: 13px;
}

/********************** Product Price *************************/

.product-price-container{
    display: flex;
    align-items: center;
    margin-top: 15px;
}
.product-price-container .price-discount-percent{
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--colorText);
    border: 1px solid var(--colorText);
    background: rgba(var(--colorSecondaryRGB),.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 19px;
    font-weight: bold;
    padding-top: 2px;
    flex-shrink: 0;
}
.product-price-container{
    display: flex;
    align-items: center;
}

.price-discount-percent{
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--colorSecondary);
    background: rgba(var(--colorSecondaryRGB),.2);
    font-size: 20px;
    font-weight: bold;
    margin-left: 15px;
}
.product-price{
    display: flex;
    flex-direction: column;
    justify-content: start;
}
.product-price .current-price{
    font-weight: bold;
    font-size: 20px;
    line-height: normal;
    color: var(--colorPrimary);
}
.product-price .old-price{
    font-weight: normal;
    line-height: normal;
    font-size: 15px;
    color: var(--colorSecondary);
    text-decoration: line-through;
}
.tooman{
    text-decoration: none!important;
    font-weight: normal;
}


/********************** Product Card 1 *************************/
.product-card{
    background: #fff;
    border-radius: var(--productCardBorderRadius);
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    padding: 10px;
    border: 1px solid transparent;
    transition: 400ms;
}
.product-card-unavailable{
    -webkit-filter: grayscale(1);
}
.product-card:hover{
    border-color: var(--colorPrimary);
    box-shadow: 0 0 30px rgba(var(--colorPrimaryRGB),0.3);
}
.product-card-1{
    overflow: hidden;
}
.product-card-image{
    position: relative;
    padding: 10px;
    overflow: hidden;
}
.product-card-image img{
    width: 100%;
    height: auto;
    /* same box for every image, whatever its original size (ratio / fit are widget controls) */
    aspect-ratio: var(--jiawaz-card-image-ratio, 1 / 1);
    object-fit: var(--jiawaz-card-image-fit, contain);
    border-radius: var(--productCardBorderRadius) !important;
    transition: 800ms;
}
.product-card-content{
    padding: 10px 12px;
}

/* equal-height cards: the column / slide stretches, the card fills it and the price sits at the bottom */
.jiawaz-card-col,
.products-swiper .swiper-slide{
    display: flex;
    flex-direction: column;
    height: auto;
}
.jiawaz-card-col > .product-card,
.products-swiper .swiper-slide > .product-card{
    flex: 1 1 auto;
}
.product-card{
    display: flex;
    flex-direction: column;
}
.product-card > .product-card-content{
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start!important;
}
.product-card > .product-card-content > .product-price-container,
.product-card > .product-card-content > .product-card-footer > .product-price-container{
    margin-top: auto;
}

/* price + mobile cart button wrapper (cards 1 & 4): no box on desktop, a row on mobile */
.product-card-footer{
    display: contents;
}
.product-card-mobile-cart{
    display: none!important;
}
.product-card-content .title{
    font-weight: bold;
    font-size: 15px;
    display: block;
    color: var(--colorText);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    height: 3em;
}
.product-card-1 .product-card-content{
    text-align: center;
}

.card-content-right{
    text-align: right!important;
    justify-content: start!important;
}
.card-content-center{
    text-align: center!important;
    justify-content: center!important;
}
.card-content-center .product-price-container{
    justify-content: center!important;
}
.card-content-left{
    text-align: left!important;
    justify-content: end!important;
}

.card-content-left .star-rating{
    margin-right: auto!important;
    margin-left: 0!important;
}
.card-content-right .star-rating{
    margin-left: auto!important;
    margin-right: 0!important;
}

.product-card-1 .product-price-container{
    justify-content: center;
}

.card-content-right .product-price-container{
    justify-content: start!important;
}
.card-content-left .product-price-container{
    justify-content: end!important;
}

.product-card-image-overly{
    position: absolute;
    width: 100%;
    height: 100%;
    top: -100%;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.product-card-overly-btn{
    display: flex!important;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    box-shadow: 0 0 12px rgba(0,0,0,0.2);
    cursor: pointer;
    background: #fff;
    color: var(--colorPrimary);
    font-size: 18px;
    transform: translate(0,-10px);
    transition: 200ms;
    opacity: 0;
}
.product-card-overly-btn .circle-loader,
.ajax-add-to-cart .circle-loader
{
    width: 24px;
    height: 24px;
}
.product-card-image-overly .product-card-overly-btn:nth-child(2){
    transition: 400ms;
}
.product-card-image-overly .product-card-overly-btn:nth-child(3){
    transition: 600ms;
}
.product-card-overly-btn:hover{
    background: var(--colorPrimary);
    color: #fff;
    box-shadow: 0 0 12px rgba(var(--colorPrimaryRGB),0.6);
}
.product-card-overly-btn:hover .circle-loader{
    border-top-color:rgba(255,255,255,0.2);
    border-right-color: rgba(255,255,255,0.2);
    border-bottom-color: rgba(255,255,255,0.2);
    border-left-color: #fff;
}
.product-card-2-cart .circle-loader,
.product-card-3-cart .circle-loader,
.product-card-4-cart .circle-loader
{
    border-bottom-color: #fff;
}
.product-card:hover .product-card-image-overly
{
    top: 0;
}
.product-card:hover .product-card-overly-btn{
    opacity: 1;
    transform: translate(0,0);
}
.product-card-1:hover .product-card-image img,
.product-card-2:hover .product-card-image img
{
    opacity: 0.3;
}

.products-swiper .swiper-wrapper
{
    padding: 30px 0 30px!important;
}
.product-card p.stars a{
    color: #d68e04;
}
.product-card .star-rating span::before{
    color: #d68e04;
}
.star-rating{
    float: none!important;
}
.product-card:not(.product-card-2) .star-rating{
    margin: 0 auto 5px auto;
}


/********************** Product Card 2 *************************/
.product-card-2{
    padding-bottom: 0;
    margin-bottom: 40px;
    position: relative; /* reference box of the cart button's card positions */
}
.product-card-2-cart{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--colorPrimary);
    box-shadow: 0 0 20px rgba(var(--colorPrimaryRGB),0.8);
    display: flex!important;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    position: absolute;
    /* placed by the widget's "Position" / distance controls (Jiawaz_Product_Card_2_Trait), which only set
       these variables; the fallbacks are the default spot next to the price */
    top: var(--jz-cart-top, auto);
    bottom: var(--jz-cart-bottom, -20px);
    left: var(--jz-cart-left, 20px);
    right: var(--jz-cart-right, auto);
    transform: var(--jz-cart-transform, none);
    z-index: 2; /* above the image when placed on it */
    transition: 300ms;
    cursor: pointer;
}
.product-card-2 .product-card-content{
    position: var(--jz-cart-anchor, relative);
    padding-bottom: 0;
}
.product-card-2 .product-price-container{
    padding-bottom: 15px;
}
.product-card-2:hover .product-card-2-cart{
    box-shadow: 0 0 20px rgba(var(--colorPrimaryRGB),0.8);
}

/********************** Product Card 3 *************************/
.product-card-3{
    overflow: hidden;
}
.product-card-3-buttons{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}
.product-card-3-cart,
.product-card-3-view{
    height: 50px;
    width: 100%;
    background: rgba(var(--colorPrimaryRGB),0.1);
    color: var(--colorPrimary);
    border-radius: 12px;
    display: flex!important;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: 300ms;
    cursor: pointer;
    flex-shrink: 0;
}
.product-card-3-cart{
    width: 50px;
    position: relative;
    justify-content: start;
    transition: 200ms;
    overflow: hidden;
    background: var(--colorPrimary);
    color: #fff;
    box-shadow: 0 0 20px rgba(var(--colorPrimaryRGB),0.8);

}
.product-card-3-cart-icon{
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card-3-cart .card-3-btn-title{
    position: absolute;
    top: 0;
    bottom: 0;
    right: 50px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    width: calc(100% - 50px);
    color: #fff;

}
.product-card-3-cart .card-3-btn-title:after{
    content: "\e9c0";
    font-family: 'jiawaz-icomoon' !important;
    margin-right: auto;
    margin-left: 15px;
    font-size: 19px;
    transition: 300ms;
}

.product-card-3-cart:hover{
    width: 100%;
}

.product-card-3-view{
    width: calc(100% - 52px);
}
.card-3-btn-title{
    color: var(--colorText);
    font-size: 13px;
    transition: 300ms;
    font-weight:600;
    margin-right: 4px;
}
.product-card-3-cart:hover,
.product-card-3-view:hover
{
    background: var(--colorPrimary);
    box-shadow: 0 0 20px rgba(var(--colorPrimaryRGB),0.8);

    color: #fff;
}

.product-card-3-cart:hover .card-3-btn-title,
.product-card-3-cart:hover .card-3-btn-title:after,
.product-card-3-view:hover .card-3-btn-title
{
    color: #fff;
}


/********************** Product Card 4 *************************/

.product-card-4{
    display: flex;
    flex-direction: row;
    padding: 0;
}
.product-card-4 .product-card-image{
    width: 140px;
    height: 140px;
    margin: 0;
    flex-shrink: 0;
    overflow: hidden;
}
.product-card-4 .price-discount-percent{
    border-radius: 12px;
    width: 40px;
    height: 40px;
    font-size: 16px;
}
.product-card-4 .product-price-container{
    margin-top: 8px;
}
.product-card-4 .product-card-content .title{
    font-size: 14px;
}
.product-card-4 .product-card-content{
    padding: 15px;
    width: calc(100% - 150px);
}
.product-card-4 .product-price .current-price{
    font-size: 16px;
}
.product-card-4 .product-price .old-price,
.product-card-4 .product-price{
    font-size: 13px;
}
.product-card-4-cart,
.product-card-4-view
{
    background: var(--colorPrimary);
    border-radius: 0 0 8px 8px;
    position: absolute;
    right: 0;
    left: 0;
    top: -54px;
    height: 60px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    margin: auto;
    cursor: pointer;
    transition: 300ms;
}


.product-card-4-view{
    border-radius: 8px 8px 0 0;
    top: auto;
    bottom: -54px;
}
.product-card-4:hover .product-card-4-cart{
    top: -10px;
}
.product-card-4:hover .product-card-4-view{
    bottom: -10px;
}
.product-card-4:hover .product-card-image img{
    opacity: 0.3;
}

.product-card-4-cart:hover{
    top: 0!important;

}
.product-card-4-view:hover{
    bottom: 0!important;
}


/******************************************** TABS ***************************/


/********************* tabs *********************/
.bcp-tabs{
    display: block;
    width: 100%;
}
.bcp-tabs-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.bcp-tabs-head-title {
    font-size: 18px;
    font-weight: 400;
    color: #111;
    border-bottom: 3px solid var(--colorPrimary);
}
.bcp-tabs-nav{
    display: flex;
    align-items: center;
    justify-content: start;
    flex-wrap: wrap;
    width: 100%;
    gap: 10px;
}
.bcp-tabs-nav-item{
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #666;
    cursor: pointer;
    text-decoration: none!important;
    margin-left: 10px;
    padding: 3px 0;
    line-height: 30px;
    position: relative;
    transition: 300ms;
    font-size: 16px;
    font-weight: 500;
    flex-shrink: 0;
    z-index: 1;
}

.bcp-tabs-nav .bcp-tabs-nav-item:last-of-type{
    margin-left: 0!important;
}
.bcp-tabs-nav-item:before{
    content: '';
    display: inline-block;
    width: 10px;
    height: 2px;
    background: transparent;
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    transition: 300ms;
    z-index: -1;
    border-radius: 6px;
}
.bcp-tabs-nav-item.active:before{
    width: 100%!important;
    background: var(--colorPrimary);
}
.bcp-tabs-nav-item i{
    font-size: 28px;
    color: #bbb;
}
.bcp-tabs-nav-item i,
.bcp-tabs-nav-item svg,
.bcp-tabs-nav-item path
{
    transition: 300ms;
}
.bcp-tabs-nav-item svg{
    width: 36px;
    height: 36px;
}
.bcp-tabs-nav-item.active i,
.bcp-tabs-nav-item.active svg
{
    color: var(--colorPrimary);
    stroke: var(--colorPrimary);
}

.bcp-tabs-nav-item:hover:before{
    background: var(--colorPrimary);
}
.bcp-tabs-nav-item:hover{
    color: var(--colorPrimary);
}
.bcp-tabs-nav-item.active{
    color: var(--colorPrimary);
}
.bcp-tabs-content{
    position: relative;
}
.bcp-tab-content{
    width: 100%;
}
.bcp-tab-content:not(.active){
    display: none;
}












.autoplay-progress {
    position: absolute;
    right: 16px;
    top: 40px;
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    background-color: var(--colorPrimary);
    padding: 30px;
    border-radius: 50%;
    box-shadow: -10px 5px 30px rgba(var(--colorPrimaryRGB),0.6);
}

.autoplay-progress svg {
    --progress: 0;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    z-index: 10;
    width: 80%;
    height: 80%;
    stroke-width: 3px;
    stroke: #fff;
    fill: none;
    stroke-dashoffset: calc(125.6px * (1 - var(--progress)));
    stroke-dasharray: 125.6;
    transform: rotate(-90deg);
}


.out-of-stock-text{
    color: #ca3748;
    font-size: 14px;
    display: block;
}



/* Touch screens / mobile (no hover):
 * - quick view is hidden (the product page is just as fast on a phone)
 * - wishlist becomes a small heart in the image corner
 * - add to cart sits next to the price (cards 1 & 4 via .product-card-mobile-cart, card 2 already does) */
@media (max-width: 992px), (hover: none) {
    .product-card .quick-look-button{
        display: none!important;
    }

    /* overlay -> corner holder for the wishlist heart only */
    .product-card .product-card-image-overly,
    .product-card:hover .product-card-image-overly{
        top: 16px!important;
        inset-inline-end: 16px;
        right: auto;
        width: auto;
        height: auto!important;
        z-index: 2;
    }
    .product-card .product-card-image-overly .product-card-overly-btn:not(.custom-wishlist-button){
        display: none!important;
    }
    .product-card .product-card-image-overly .custom-wishlist-button{
        width: 32px;
        height: 32px;
        font-size: 16px;
        border-radius: 50%;
        opacity: 1;
        transform: none;
        background: rgba(255,255,255,0.9);
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    }
    .product-card-1:hover .product-card-image img,
    .product-card-2:hover .product-card-image img,
    .product-card-4:hover .product-card-image img{
        opacity: 1;
    }

    /* card 4: no buttons on the small side image */
    .product-card-4 .product-card-4-cart,
    .product-card-4 .product-card-4-view{
        display: none!important;
    }

    /* price + cart button row */
    .product-card-footer{
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-top: auto;
    }
    .product-card > .product-card-content > .product-card-footer > .product-price-container{
        margin-top: 0;
        flex: 1 1 auto;
        min-width: 0;
    }
    .product-card-mobile-cart{
        display: flex!important;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--colorPrimary);
        color: #fff;
        font-size: 17px;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(var(--colorPrimaryRGB),0.35);
    }
    .product-card-mobile-cart:hover{
        color: #fff;
    }
    .product-card-mobile-cart .circle-loader{
        width: 20px;
        height: 20px;
        border-bottom-color: #fff;
    }

    /* card 3: keep only the labelled cart button */
    .product-card-3 .product-card-3-view{
        display: none!important;
    }
}
/********************** Product grids: AJAX pages / infinite load / AJAX filters (js/jiawaz-products-pager.js) *************************/
.jz-products .jz-products-items{
    transition: opacity 200ms;
}
/* while the cards are replaced (other page, sorting, filters) they show the skeleton of css/main.css (.jz-pager-refreshing) */
/* infinite load: the next page comes by itself; the links stay for no-JS / search engines */
.jz-products--infinite.jz-pager-ready .bcp-pagination{
    display: none!important;
}
.jz-pager-status{
    display: flex;
    justify-content: center;
    min-height: 1px;
}
.jz-pager-status.is-loading,
.jz-pager-status.is-end,
.jz-pager-status.is-error{
    padding: 24px 0;
}
.jz-pager-spinner{
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid rgba(var(--colorPrimaryRGB), .2);
    border-top-color: var(--colorPrimary);
    animation: jzPagerSpin 800ms linear infinite;
}
@keyframes jzPagerSpin{
    to { transform: rotate(360deg); }
}
.jz-pager-end{
    font-size: 13px;
    opacity: .6;
}
.jz-pager-retry{
    border: 0;
    border-radius: 12px;
    padding: 10px 22px;
    background: var(--colorPrimary);
    color: #fff;
    cursor: pointer;
}
.jz-pager-status .screen-reader-text{
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
/* toolbar above the cards: result count + sorting (WooCommerce floats both; here they share one row) */
.jz-products-toolbar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.jz-products-toolbar .woocommerce-result-count,
.jz-products-toolbar .woocommerce-ordering{
    float: none!important;
    margin: 0!important;
}
.jz-products-toolbar .woocommerce-ordering{
    margin-inline-start: auto!important; /* stays at the end of the row, also without a count */
}
