/********************************************************
  Flash Label & Free Shipping
*********************************************************/
span.onsale.product-label.free-shipping {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    width: fit-content;
    background-color: #caa44e !important;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    border-radius: 5px;
}

.product-labels1.labels-rounded.sale-quantity.free-shipping {
    position: absolute;
    right: 10px !important;
    bottom: 0 !important;
    left: auto !important;
    top: auto!important;
    z-index: 10;
    width: 88px;
    height: auto;
}

.product-labels1.labels-rounded.sale-quantity.free-shipping img {
    padding: 0 !important;
}

/********************************************************
  Related Products
*********************************************************/
.related-products .product-labels1.labels-rounded.free-shipping {
    right: 10px !important;
    bottom: 10px !important;
}

/********************************************************
  Old Price Label
*********************************************************/
.old-price-label {
    position: absolute;
    left: 10px !important;
    bottom: 0 !important;
    right: auto !important;
    top: auto;
    z-index: 10;
    width: 88px;
    height: auto;
}

.old-price-label img {
    padding: 0 !important;
}

/********************************************************
  Responsive – Labels
*********************************************************/
@media (max-width: 768px) {
    .related-products .product-labels1.labels-rounded.old-price-label {
        right: 5px !important;
        bottom: 45px !important;
    }
}

@media (max-width: 480px) {
    .product-labels1.labels-rounded.sale-quantity.free-shipping,
    .old-price-label {
        width: 75px;
    }
}

@media (max-width: 376px) {
    .product-labels1.labels-rounded.sale-quantity.free-shipping,
    .old-price-label {
        width: 65px;
    }
}

@media (max-width: 320px) {
    .product-labels1.labels-rounded.sale-quantity.free-shipping,
    .old-price-label {
        width: 55px;
    }
}

/********************************************************
  Single Product Page
*********************************************************/
.single-product .woocommerce-product-gallery 
.product-labels1.labels-rounded.sale-quantity.free-shipping {
    right: 10px !important;
    bottom: 10px !important;
    left: auto !important;
    width: fit-content;
}

.single-product .woocommerce-product-gallery 
.product-labels1.labels-rounded.old-price-label {
    right: 10px !important;
    bottom: 50px !important;
    left: auto !important;
    width: fit-content;
}

/********************************************************
  Gift Label
*********************************************************/
.product-label-gift {
    position: absolute;
    top: 0 !important;
    left: 7px !important;
    z-index: 10;
    width: 60px !important;
}

@media (max-width: 768px) {
    .product-label-gift {
        top: -4px !important;
        left: -3px !important;
        width: 50px;
    }
}

@media (max-width: 480px) {
    .product-label-gift {
        top: -8px !important;
        left: -6px !important;
        width: 40px;
    }
}

/********************************************************
  BFC Custom Labels
*********************************************************/
.product-labels.labels-rounded.bfc-custom {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    position: absolute !important;
    top: 2px !important;
    left: 3px !important;
    z-index: 100 !important;
}

.product-labels.labels-rounded.bfc-custom .bfc-circle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

.product-labels.labels-rounded.bfc-custom .bfc-circle:first-child {
    background-color: #000 !important;
}

.product-labels.labels-rounded.bfc-custom .bfc-circle:last-child {
    background-color: rgb(225, 29, 72) !important;
}

.product-labels.labels-rounded.bfc-custom .bfc-plus {
    font-size: 16px !important;
    font-weight: bold !important;
    color: #333 !important;
}

/********************************************************
  General Product Card Styles
*********************************************************/
.labels-rounded {
    top: 0;
    right: 0;
}

.labels-rounded .product-label {
    border-radius: 0;
    border-bottom-left-radius: 24px;
    border-top-right-radius: 8px;
    font-family: 'IRANSans';
    font-size: 13px;
    font-weight: 400;
}

.star-rating {
    display: none !important;
}

.product-wrapper {
    padding: 0 0 16px 0 !important;
}

.product-wrapper img {
    padding: 16px !important;
}

.wd-entities-title {
    margin: 4px 10px;
    text-align: right;
}

.wd-product .price {
    display: block;
    padding: 0 10px;
    text-align: left;
}

.product-wrapper .price del {
    display: block;
}

.wrapp-buttons {
    display: none;
}

.out-of-stock {
    max-width: 65px !important;
    font-family: 'IRANSans_Medium';
    font-size: 12px !important;
    font-weight: 500;
}





/* Slider container */
.custom-cat-swiper {
    padding: 24px 40px 32px;
    position: relative;
}

/* Prevent slides from vertical centering */
.custom-cat-swiper .swiper-wrapper {
    align-items: flex-start; /* Important: use flex-start instead of center */
}

.custom-cat-swiper .swiper-slide {
    display: flex;
    justify-content: center;
}


.custom-product-cat-item {
    width: 132px;
    text-align: center;
    margin: 0 8px;
    font-family: inherit;
    display: flex;              /* Important */
    flex-direction: column;     /* Image on top, text below */
    align-items: center;
}


.custom-product-cat-item .cat-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: none;
    text-decoration: none;
}


.custom-product-cat-item .cat-image {
    width: 78%;
    height: 78%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 0;
    background-color: transparent;
}


.cat-image-bg {
    display: none !important;
}


.custom-product-cat-item .cat-name {
    font-size: 13px;
    font-weight: 400;
    color: #424750;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;          /* Max 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.7;
    min-height: 3.4em;              /* Fixed height for 2 lines */
    white-space: normal;
}


.custom-cat-swiper .swiper-button-next,
.custom-cat-swiper .swiper-button-prev {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 0 6px rgba(0,0,0,0.08);
    color: #9e9fb1;
    top: 50%;
    transform: translateY(-50%);
}

.custom-cat-swiper .swiper-button-next::after,
.custom-cat-swiper .swiper-button-prev::after {
    font-size: 16px;
    font-weight: 700;
}

/* Swap left/right buttons */
html[dir="rtl"] .custom-cat-swiper .swiper-button-prev { right: 8px; left: auto; }
html[dir="rtl"] .custom-cat-swiper .swiper-button-next { left: 8px; right: auto; }
html[dir="ltr"] .custom-cat-swiper .swiper-button-prev { right: 8px; left: auto; }
html[dir="ltr"] .custom-cat-swiper .swiper-button-next { left: 8px; right: auto; }

/* Responsive: mobile shows 3 items */
@media (max-width: 576px) {
    .custom-cat-swiper {
        padding: 16px 24px 24px;
    }

    .custom-product-cat-item {
        width: 96px;
        margin: 0 4px;
    }

    .custom-product-cat-item .cat-image-link {
        width: 96px;
        height: 96px;
    }
}

@media (max-width: 768.98px) {
    .woocommerce-ordering.wd-ordering-mb-icon select option {
        font-size: 14px;
        color: #000;
    }
}
/********************************************************
  Bestseller Label (پرفروش)
*********************************************************/
.bestseller-label {
    position: absolute;
    left: 10px !important;
    bottom: 0 !important;
    right: auto !important;
    top: auto !important;
    z-index: 10;
    width: 75px;
    height: auto;
}
.bestseller-label img {
    padding: 0 !important;
    display: block;
    width: 100%;
    height: auto;
}
.related-products .bestseller-label {
    left: 10px !important;
    bottom: 10px !important;
}
@media (max-width: 480px) {
    .bestseller-label {
        width: 65px;
    }
}
@media (max-width: 376px) {
    .bestseller-label {
        width: 55px;
    }
}
@media (max-width: 320px) {
    .bestseller-label {
        width: 45px;
    }
}
.single-product .woocommerce-product-gallery .bestseller-label {
    left: 10px !important;
    bottom: 10px !important;
    right: auto !important;
    width: fit-content;
}
