/*
 * Pindo Slider - Frontend Stylesheet
 */

/* --- 1. Font Definitions --- */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: bold; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'digikala';
    src: url('../fonts/Digikala.woff2') format("woff2");
    font-display: swap;
}
@font-face {
    font-family: 'cube';
    src: url('../fonts/cube.fb40288e.woff') format("woff");
    font-weight: 400; font-style: normal; font-display: block;
}
@font-face {
    font-family: 'YekanBakhFaNumBold';
    src: url('../fonts/YekanBakhFaNum-Bold.woff2') format("woff2");
    font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'YekanBakhFaNumLight';
    src: url('../fonts/YekanBakhFaNum-Light.woff2') format("woff2");
    font-weight: normal; font-style: normal; font-display: swap;
}

@font-face {
    font-family: 'YekanBakhFaNumRegular';
    src: url('../fonts/YekanBakhFaNum-Regular.woff2') format("woff2");
    font-weight: normal; font-style: normal; font-display: swap;
}

@font-face {
    font-family: 'YekanBakhFaNumSemiBold';
    src: url('../fonts/YekanBakhFaNum-SemiBold.woff2') format("woff2");
    font-weight: normal; font-style: normal; font-display: swap;
}

[class*=" cube-"], [class^=cube-] {
    font-family: 'cube', sans-serif !important;
    font-style: normal;
    font-weight: 400;
}
.cube-payment-wallet::before {
    content: "";
}

/* --- 2. Main Wrapper & Card Styles --- */
.pindo-slider-wrapper {
    font-family: 'BYekan', sans-serif;
    direction: rtl;
    margin: 0 0 20px 0;
    position: relative;
    padding: 0 15px;
    max-width: 1200px;
    box-sizing: border-box;
}

.pindo-card {
    background-color: #fff;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    transition: all 0.3s ease;
    width: 100%;
    padding: 7px;
    box-sizing: border-box;
    /* box-shadow: 0 -2px 25px -3px rgba(209, 218, 239, 0.41); */
    justify-content: space-between;
}

.pindo-card-link:hover .pindo-card {

}

.pindo-card__image-container {
    position: relative;
    width: 100%;
    background-color: #eef1f5;
    flex-shrink: 0;
    height: 200px;
    margin-bottom: 5px;
    border-radius: 10px;
}

.pindo-card__slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background-color: #fff;
}

.pindo-card__slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 25px;
}

.pindo-card__placeholder-svg {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
.pindo-card__placeholder-svg img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    opacity: .5;
    filter: grayscale(1);
}
.pindo-card__verified-badge {
    position: absolute;
    background-color: rgba(0,0,0,.49);
    color: #fff;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    z-index: 2;
    width: 120px;
    height: 21px;
    inset: 0;
    margin: auto auto 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pindo-card__verified-badge img {
    width: 18px;
    height: 18px;
    margin-left: 5px;
    fill: currentColor;
}
.pindo-card__content {
    padding: 0px 15px;
    display: flex;
    flex-direction: column;
}
.pindo-card__title {
    font-size: 15px!important;
    font-weight: 500!important;
    font-family: 'YekanBakhFaNumSemiBold'!important;
    color: #555;
    line-height: 1.5!important;
    height: 3em!important;
    overflow: hidden!important;
    text-overflow: ellipsis!important;
    display: -webkit-box!important;
    -webkit-line-clamp: 2!important;
    -webkit-box-orient: vertical!important;
    margin: 20px 0px 20px 0px!important;
    transition:color 0.3s!important;
    cursor:pointer!important;
}
.pindo-card__title:hover{
    color:#FBB600
}
.pindo-card__price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
        min-height: 48px;
    max-height: 48px;

}
.pindo-card__discount-badge {
    background-color: #FF1A1A;
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}
.price-values-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-right: auto;
}
.price-stack {
    display: flex;
    flex-wrap: wrap;
    text-align: left;
    justify-content: end;
    gap: 5px;
}
.price-trust-icon {
    width: 12px;
}
.original-price {
    color: #777777;
    font-size: 14px;
    text-decoration: line-through;
    margin-top: -5px;
    font-family: 'YekanBakhFaNumRegular';
    width: 100%;
}
.pindo-card__price-item {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
}
.pindo-card__price-value {
    font-weight: 700;
    font-size: 15px!important;
    color: #222;
    font-family: 'YekanBakhFaNumRegular';
}
.pindo-card__price-value.final {
    color: #000;
    font-family: 'YekanBakhFaNumBold';
}
.tooman-text {
    font-size: 14px;
    color: #50575e;
    font-family: 'YekanBakhFaNumRegular';
}
.pindo-card__cart-button {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 50%;
    background-color: #FBB600;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    padding: 0!important;
    transition: all 0.3s;
    box-shadow: none;
    cursor: pointer;
}
.pindo-card__cart-button:hover{
    background-color: #28367f;
}
.pindo-card__cart-button:hover img{
    filter:brightness(0) saturate(100%) invert(84%) sepia(82%) saturate(999%) hue-rotate(310deg) brightness(82%) contrast(101%)
}
.pindo-card__footer {
    padding: 10px 0px 5px 0px;
    font-size: .8rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #E9E8E8;
    margin-top: 12px;

}
.pindo-card__seller-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-height: 15px;
    flex-direction: row-reverse;
       font-family: 'YekanBakhFaNumRegular';
       font-size: 11px;
}
.seller-details {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    color: #1d2327;
    flex: 1;
    max-width: 86%;
}
.seller-details img {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
.seller-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    color: #666666;
 
}
.location-details {
    font-size: 11px;
    color: #666666;
    text-align: right;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.separator-city {
    width: 3px;
    height: 3px;
    background-color: #8b8b8b;
    border-radius: 100%;
    margin: 0 5px;
    color: #666666;
}
.pindo-card__installments {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #165db0;
    font-size: 11.5px;
    font-weight: 400;
}
.pindo-card__installments img {
    width: 15px;
}
.immediateLabel {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    background-color: hsla(0,0%,100%,.9);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    border-radius: 47px;
    color: #b2001a;
    border: 1px solid #b2001a;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

/* --- 3. Fixes and Enhancements --- */
.pindo-swiper-slider .swiper-wrapper {
    align-items: stretch;
    border-radius: 16px;
}
.pindo-swiper-slider .swiper-slide {
    height: auto;
    display: flex;
}

.pindo-card-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex-grow: 1;
    text-decoration: none !important;
    color: inherit;
}
.pindo-card-link:hover .pindo-card__title {
    color: #FBB600;
}

.swiper-slide .pindo-card__discount-badge {
    background-color: #FF1A1A;
    color: white;
    position: absolute !important;
    border-radius: 7px;
    font-size: 12px;
    top: 5px !important;
    right: 5px !important;
    left: auto;
    width: 50px;
    height: 23px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 0;
    padding: 0;
    font-family:'YekanBakhFaNumRegular';
}
.ast-article-single img{
    box-shadow: none!important;
}

/* --- 4. New Styles for External Controls --- */
.pindo-slider-wrapper .swiper-button-next,
.pindo-slider-wrapper .swiper-button-prev {
    top: 60%;
    transform: translateY(-50%);
    margin-top: -20px;
    --swiper-navigation-color: #000;
    --swiper-navigation-size: 30px;
    background-color: #FFFFFF;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #28367F24;
    border-radius: 50% 50% 50% 50%;
    padding: 23px;
    z-index: 1;

}

.pindo-slider-wrapper .swiper-button-prev {
    /* left: 10px; */
}

.pindo-slider-wrapper .swiper-button-next {
    /* right: 10px; */
}
.pindo-slider-wrapper .swiper-button-prev::after,
.pindo-slider-wrapper .swiper-button-next::after{
    font-size: 12px;
    color: #28367f;
}
.pindo-slider-wrapper .swiper-button-next:hover,.pindo-slider-wrapper .swiper-button-prev:hover {
background: var( --e-global-color-secondary )
}

.pindo-slider-wrapper .swiper-button-next:hover:after,.pindo-slider-wrapper .swiper-button-prev:hover:after {
color:#fff;
}

.pindo-slider-wrapper .swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}

.pindo-slider-wrapper .swiper-pagination-bullet {
    background-color: #000;
    width: 8;
    height: 8;
}

.pindo-slider-wrapper .swiper-pagination-bullet-active {
    background-color: #165db0;
}

.pindo-post-slider-wrapper-footer, .shortecode-slider {
    background: rgba(40, 54, 127, 0.06);
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    
}

@media (min-width: 768px) {
    .pindo-slider-wrapper {
        padding: 0 40px;
    }
    .pindo-post-slider-wrapper-footer, .shortecode-slider {
        padding: 29px 39px;
    }
    .pindo-slider-header-title{
        font-size:18px!important;
    }


}


 .pindo-slider-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;

 }
 .pindo-slider-header-title{
    font-family: 'YekanBakhFaNumBold';
    font-size:20px;
 color:#222;
 }
.pindo-slider-header-link{
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--e-global-color-accent);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    transition: all 0.3s;
}

.pindo-slider-header-link:hover {
	Background:#222;
}
.pindo-slider-header-link:hover span{
    Color:   var(--e-global-color-accent)!important;
}
.pindo-slider-header-link:hover svg path{
   stroke: var(--e-global-color-accent);
}
.pindo-slider-header-link span{
    font-family: 'YekanBakhFaNumRegular';
    font-size:14px;
    font-weight: 600;
    color: #444;
}

.pindo-card__cart-button-section span{
    display: none;
    color: #222222;
}

.pindo-card__cart-button img{

}
.pindo-post-slider-wrapper-sidebar{
    padding: 0;
    min-height: 436px;
    border-radius: 16px;
}
.pindo-slider-sidebar-title{
    width: 100%;
    background-color:#FBB600;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row-reverse;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    gap: 10px;
    height:61px;
}
.pindo-slider-sidebar-title span{
    font-size: 18px;
    font-family: 'YekanBakhFaNumBold';
    color:#222222
}
.pindo-slider-sidebar-title img{
    width: 34px;
    height: 37px;
}
.pindo-post-slider-wrapper-sidebar .swiper-button-prev,
.pindo-post-slider-wrapper-sidebar .swiper-button-next{
    border: 1px solid rgba(40, 54, 127, 0.13);
    border-radius: 100px;
        padding: 20px;
    width:36px;
    height:36px;

    transition: all 0.3s;
}
.pindo-post-slider-wrapper-sidebar .swiper-button-prev::after,
.pindo-post-slider-wrapper-sidebar .swiper-button-next::after{
    font-size: 10px;
    font-weight: bold;
 
}
.pindo-post-slider-wrapper-sidebar .swiper-button-prev:hover,
.pindo-post-slider-wrapper-sidebar .swiper-button-next:hover{
    background-color:#28367f;
    color: #FBB600;
}
.pindo-post-slider-wrapper-sidebar .pindo-card__title{
    max-width: 198px;
    text-align: center;
    align-self:center
}
.pindo-post-slider-wrapper-sidebar .pindo-card__price{
    flex-direction: column;
        min-height: 38px!important;
    max-height: unset;
}
.pindo-post-slider-wrapper-sidebar .price-values-wrapper{
    margin-right: 0;
}
.pindo-post-slider-wrapper-sidebar .pindo-card__cart-button-section {
    display: flex;
    align-items: center;
    background-color: rgba(251, 182, 0, 0.37);
    width: 184px;
    height: 46px;
    border-radius: 24px;
    transition: background-color 0.3s;
    margin-bottom: 12px;
    cursor: pointer;
}
.pindo-post-slider-wrapper-sidebar .pindo-card__cart-button-section:hover{
    background-color: #FBB600;
}
.pindo-post-slider-wrapper-sidebar .pindo-card__cart-button-section button{
    margin-left: auto;
    width: 46px;
    height: 46px;
}
.pindo-post-slider-wrapper-sidebar .pindo-card__cart-button-section span{
    display: block;
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-family: 'YekanBakhFaNumBold';
}

.pindo-post-slider-wrapper-sidebar .pindo-card__footer{
    display: none;
}
.pindo-post-slider-wrapper-sidebar .pindo-card__title{
    color:#555555
}
.pindo-post-slider-wrapper-sidebar .pindo-card__title:hover{
    color:#FBB600;
}
.pindo-post-slider-wrapper-sidebar .pindo-card__image-container,
.pindo-post-slider-wrapper-sidebar .pindo-card__slider{
    height: 200px;
}
.pindo-post-slider-wrapper-sidebar .pindo-card__image-container{
    margin-bottom: 15px;
}
.pindo-post-slider-wrapper-sidebar .original-price{
    width: 100%;
    margin-top: -15px;
    text-align: center;
}
.pindo-post-slider-wrapper-sidebar .price-stack {
    min-height: 53px;
    justify-content: center;
}
.pindo-post-slider-wrapper-sidebar .pindo-swiper-slider{
    background-color: #fff;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}

.pindo-post-slider-wrapper-sidebar .pindo-card{
    box-shadow: none;
    
}

.pindo-post-slider-wrapper-sidebar  .pindo-card__content{
    align-items: center;
    Padding:0 25px 25px;
}

.pindo-post-slider-wrapper-sidebar .pindo-card__cart-button:hover{
    background-color: #FBB600;
}
.pindo-post-slider-wrapper-sidebar .pindo-card__cart-button:hover img{
    filter: none;
}
.pindo-slider-wrapper  .swiper-pagination {
    position: relative!important;
    margin-top: 30px!important;
    transition: all 0.5s;
}
.pindo-slider-wrapper  .swiper-pagination-bullet{
    background-color: #FBB600!important;
    transition: all 0.5s;
	width:8px;
	height:8px;
}
.pindo-slider-wrapper  .swiper-pagination-bullet-active{
    width: 25px!important;
    border-radius: 5px;
    transition: all 0.5s;
}
.pindo-slider-wrapper.pindo-post-slider-wrapper-sidebar .pindo-card__slider img{
	padding:15px;
}
.pindo-post-slider-wrapper-sidebar .pindo-card__title{
	margin-top:5px;
}
.pindo-slider-wrapper{
	margin:0;
}
.pindo-post-slider-wrapper-sidebar  .pindo-card__discount-badge{
	top:15px!important;
	right:15px!important;
}
/* --- Loading Indicator Styles --- */

/* Initial loader for the whole slider */
.pindo-slider-initial-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px;
    padding: 50px 0;
    width: 100%; 
}
.pindo-slider-initial-loader div {
    width: 10px;
    height: 10px;
    background-color: #165db0;
    border-radius: 100%;
    display: inline-block;
    animation: pindo-bouncedelay 1.4s infinite ease-in-out both;
    margin: 0 4px;
}
.pindo-slider-initial-loader div:nth-child(1) {
    animation-delay: -0.32s;
}
.pindo-slider-initial-loader div:nth-child(2) {
    animation-delay: -0.16s;
}
@keyframes pindo-bouncedelay {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

/* Styles for Swiper's built-in lazy loading preloader (for individual images) */
.swiper-lazy-preloader {
    width: 32px;
    height: 32px;
    margin-top: -16px; 
    margin-left: -16px; 
    border: 3px solid #e0e0e0;
    border-top-color: #165db0;
}

.pindo-skeleton-card-frontend {
    background-color: #fff;
    border-radius: 18px;
    border: 1px solid #e0e6ed;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 7px;
    box-sizing: border-box;
    width: 20%
}

.pindo-skeleton-card-frontend .image {
    padding-top: 100%;
    background-color: #eef1f5;
    border-radius: 10px;
    height: 200px;
}

.pindo-skeleton-card-frontend .content {
    padding: 15px;
}

.pindo-skeleton-card-frontend .line {
    background-color: #eef1f5;
    height: 16px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.pindo-skeleton-card-frontend .line.short {
    width: 60%;
}

.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: pindo-shimmer 1.5s infinite;
}

@keyframes pindo-shimmer {
    100% {
        transform: translateX(100%);
    }
}

.shortecode-slider .pindo-slider-wrapper{
 max-width: auto;
}
.pindo-slider-header-link svg{
	transform: rotateZ(360deg)!important;
}

@media(max-width:640px){
.pindo-slider-header {
    align-items: flex-start;
    flex-direction: column;
	}
	.pindo-slider-header-link{
		margin-top:25px;
	}
	.pindo-slider-header-title {
    	font-size: 19px;
	}
}