/* =========================================================
   1. Global / Elementor / WooCommerce
========================================================= */

.wd-footer.footer-container
.elementor-widget-icon-box.elementor-position-inline-start
.elementor-icon-box-wrapper {
    flex-direction: unset;
}

.elementor .elementor-element.elementor-widget-n-tabs
.e-n-tab-title[aria-selected="true"],
.elementor .elementor-element.elementor-widget-n-tabs
.e-n-tab-title[aria-selected="false"]:hover {
    background-color: #e11d48 !important;
    color: #fff !important;
}

.page-title,
.page-header,
.breadcrumbs {
    display: none !important;
}

.woocommerce-cart .cart_totals .shipping,
.woocommerce-cart .cart-collaterals .shipping {
    display: none !important;
}

.wd-text-block.reset-last-child.text-right:last-child,
.term-description,
.custom-extra-tab-inner-content,
.comment-text .description {
    text-align: justify !important;
}


/* =========================================================
   2. Search Layout
========================================================= */

.wd-search-results {
    width: 100% !important;
}

.wd-scroll-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    padding: 0 0 16px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.wd-scroll-content .wd-search-area {
    order: 1;
}

.wd-scroll-content .wd-search-history {
    order: 2;
}

.wd-scroll-content .wd-search-requests {
    order: 3;
}


/* =========================================================
   3. Search Area / Slider
========================================================= */

.wd-scroll-content .wd-search-area {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 8px 16px 0;
    box-sizing: border-box;
}

.my-search-slider {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 14px;
}

.my-search-slider .my-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.my-search-slider .my-slide.active {
    z-index: 2;
    opacity: 1;
    pointer-events: auto;
}

.my-search-slider .my-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.my-search-slider .my-prev,
.my-search-slider .my-next {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
    transform: translateY(-50%);
}

.my-search-slider .my-prev {
    left: 10px;
}

.my-search-slider .my-next {
    right: 10px;
}

.my-search-slider .my-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    z-index: 5;
    display: flex;
    gap: 6px;
    transform: translateX(-50%);
}

.my-search-slider .my-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.my-search-slider .my-dots span.active {
    background: #fff;
}


/* =========================================================
   4. Search History / Requests
========================================================= */

.wd-scroll-content .wd-search-history {
    width: 100%;
    max-width: 900px;
    margin: 16px auto 0;
    padding: 12px 24px 16px;
    box-sizing: border-box;
    background: #fff;
}

.wd-scroll-content .wd-search-history .wd-sh-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.wd-scroll-content .wd-search-history
.wd-sh-head
.wd-sh-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    font-size: 12px;
}

.wd-scroll-content .wd-search-history li .wd-sh-clear {
    display: none;
}

.wd-scroll-content .wd-search-requests {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 12px 24px 16px;
    box-sizing: border-box;
    border-top: 1px solid #f3f4f6;
    background: #fff;
}

.wd-scroll-content .wd-search-history ul,
.wd-scroll-content .wd-search-requests ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: none;
}

.wd-scroll-content .wd-search-history ul::-webkit-scrollbar,
.wd-scroll-content .wd-search-requests ul::-webkit-scrollbar {
    display: none;
}

.wd-scroll-content .wd-search-history li,
.wd-scroll-content .wd-search-requests li {
    display: inline-flex !important;
    width: auto !important;
    max-width: none !important;
    margin: 0;
}

.wd-scroll-content .wd-search-history a,
.wd-scroll-content .wd-search-requests a {
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    padding: 6px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap !important;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.1s ease;
}

.wd-scroll-content .wd-search-history a::after,
.wd-scroll-content .wd-search-requests a::after {
    content: "‹";
    margin-right: 4px;
    color: #9ca3af;
    font-size: 12px;
}

.wd-scroll-content .wd-search-history a:hover,
.wd-scroll-content .wd-search-requests a:hover {
    border-color: #60a5fa;
    background: #e5f0ff;
    transform: translateY(-1px);
}


/* =========================================================
   5. Search Visibility / Dropdown
========================================================= */

.wd-searched .wd-search-history,
.wd-searched .wd-search-requests,
.wd-searched .wd-search-area,
.cas-has-query .wd-search-history,
.cas-has-query .wd-search-requests,
.cas-has-query .wd-search-area {
    display: none !important;
}

.wd-search-form:not(.cas-has-query):not(.wd-searched)
.wd-search-suggestions {
    display: none !important;
}

.wd-search-results.wd-dropdown-results {
    overflow: hidden;
    border-radius: 12px;
}

.wd-search-suggestions {
    position: relative !important;
    display: none;
    width: 100% !important;
    max-height: min(70vh, 520px) !important;
    margin: 0 !important;
    padding: 16px 20px 12px !important;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    border: 0 !important;
    border-radius: 0 0 14px 14px;
    background: #fff !important;
    box-shadow: none !important;
    direction: rtl;
    text-align: right;
}

.cas-has-query .wd-search-suggestions,
.wd-searched .wd-search-suggestions {
    display: block !important;
}

.wd-search-suggestions .wd-search-title,
.wd-search-suggestions .wd-suggestion,
.wd-search-suggestions .wd-suggestions-group,
.wd-search-suggestions .wd-suggestion-content {
    border: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
}

.wd-search-suggestions .wd-suggestion-content::after {
    display: none !important;
}


/* =========================================================
   6. Search Section Titles
========================================================= */

.wd-search-suggestions > .wd-search-title {
    display: flex !important;
    align-items: center;
    gap: 10px;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    box-sizing: border-box;
    background: transparent !important;
    color: #111 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.7 !important;
    text-align: right !important;
}

.wd-search-suggestions > .wd-search-title::after {
    flex: 1;
    height: 1px;
    content: "";
    background: #eef0f2;
}


/* =========================================================
   7. Categories / Brands
========================================================= */

.wd-search-suggestions
.wd-suggestions-group.wd-type-categories,
.wd-search-suggestions
.wd-suggestions-group.wd-type-brands {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100% !important;
    margin: 0 0 14px !important;
    padding: 0 0 15px !important;
    border-bottom: 1px solid #f1f3f5;
    overflow: visible;
}

.wd-search-suggestions
.wd-suggestions-group.wd-type-categories
.wd-suggestion,
.wd-search-suggestions
.wd-suggestions-group.wd-type-brands
.wd-suggestion {
    position: relative;
    display: flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: auto !important;
    max-width: 100%;
    min-height: 36px;
    margin: 0 !important;
    padding: 7px 16px !important;
    box-sizing: border-box;
    border: 1px solid #e4e7eb !important;
    border-radius: 8px !important;
    background: #fff !important;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.wd-search-suggestions
.wd-suggestions-group.wd-type-categories
.wd-suggestion:hover,
.wd-search-suggestions
.wd-suggestions-group.wd-type-brands
.wd-suggestion:hover {
    border-color: #1c957a !important;
    background: #f7fffc !important;
    transform: translateY(-1px);
}

.wd-search-suggestions
.wd-suggestions-group.wd-type-categories
.wd-entities-title,
.wd-search-suggestions
.wd-suggestions-group.wd-type-brands
.wd-entities-title {
    margin: 0 !important;
    padding: 0 !important;
    color: #333;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    white-space: nowrap;
}

.wd-search-suggestions
.wd-suggestions-group.wd-type-categories
.wd-suggestion:hover
.wd-entities-title,
.wd-search-suggestions
.wd-suggestions-group.wd-type-brands
.wd-suggestion:hover
.wd-entities-title {
    color: #1c957a;
}

.wd-search-suggestions
.wd-suggestions-group.wd-type-categories
.wd-fill,
.wd-search-suggestions
.wd-suggestions-group.wd-type-brands
.wd-fill {
    position: absolute;
    inset: 0;
}


/* =========================================================
   8. Products - Desktop Base
========================================================= */

.wd-search-suggestions
.wd-suggestions-group.wd-type-product {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0 12px;
    clear: both;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wd-search-suggestions
.wd-suggestions-group.wd-type-product
.wd-suggestion {
    position: relative;
    display: flex !important;
    align-items: center;
    width: 100% !important;
    min-width: 0;
    min-height: 88px;
    margin: 0 !important;
    padding: 10px 6px !important;
    box-sizing: border-box;
    border: 0 !important;
    border-bottom: 1px solid #f1f3f5 !important;
    border-radius: 0 !important;
    background: #fff !important;
    transition: background 0.2s ease;
}

.wd-search-suggestions
.wd-suggestions-group.wd-type-product
.wd-suggestion:hover {
    background: #fbfffd !important;
}

.wd-search-suggestions
.wd-suggestions-group.wd-type-product
.wd-suggestion-thumb {
    flex: 0 0 64px !important;
    width: 64px !important;
    height: 64px !important;
    margin: 0 0 0 10px !important;
    padding: 0 !important;
    box-sizing: border-box;
}

.wd-search-suggestions
.wd-suggestions-group.wd-type-product
.wd-suggestion-thumb img {
    display: block;
    width: 64px !important;
    height: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
}

.wd-search-suggestions
.wd-suggestions-group.wd-type-product
.wd-suggestion-content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
}

.wd-search-suggestions
.wd-suggestions-group.wd-type-product
.wd-entities-title {
    display: -webkit-box !important;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    color: #222;
    font-size: 12px !important;
    font-weight: 400;
    line-height: 1.7 !important;
    text-align: right !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wd-search-suggestions
.wd-suggestions-group.wd-type-product
.wd-suggestion:hover
.wd-entities-title {
    color: #1c957a;
}

.wd-search-suggestions
.wd-suggestions-group.wd-type-product
.price {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 4px;
    margin: 4px 0 0 !important;
    padding: 0 !important;
    color: #1c957a;
    font-size: 12px !important;
    line-height: 1.5;
    text-align: right !important;
}

.wd-search-suggestions
.wd-suggestions-group.wd-type-product
.price ins {
    order: 1;
    color: #1c957a !important;
    font-size: 12px !important;
    font-weight: 700;
    text-decoration: none !important;
}

.wd-search-suggestions
.wd-suggestions-group.wd-type-product
.price del {
    order: 2;
    margin: 0 !important;
    color: #a7adb5 !important;
    font-size: 11px !important;
}

.wd-search-suggestions
.wd-suggestions-group.wd-type-product
.wd-fill {
    position: absolute;
    inset: 0;
    z-index: 2;
}


/* =========================================================
   9. All Results Button
========================================================= */

.wd-search-suggestions a.wd-all-results {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    margin: 10px 0 0 !important;
    padding: 5px 0 !important;
    box-sizing: border-box;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #1c957a !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-decoration: none !important;
}

.wd-search-suggestions a.wd-all-results:hover,
.wd-search-suggestions a.wd-all-results:focus {
    background: transparent !important;
    color: #147a64 !important;
}

.wd-search-suggestions a.wd-all-results::after {
    content: none;
}

.wd-search-suggestions:has(.wd-not-found) {
    padding: 8px 16px !important;
}

.wd-search-suggestions:has(.wd-not-found)
a.wd-all-results {
    display: none !important;
}

.wd-search-suggestions .wd-not-found,
.wd-search-suggestions .wd-suggestion.wd-not-found {
    display: flex !important;
    align-items: center;
    justify-content: center;
    float: none !important;
    clear: both;
    width: 100% !important;
    min-height: 72px;
    margin: 0 !important;
    padding: 20px 12px !important;
    background: transparent !important;
    text-align: center;
}

.wd-search-suggestions .wd-not-found-msg {
    display: block;
    width: 100%;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}


/* =========================================================
   10. Mobile / Tablet Search
========================================================= */

@media (max-width: 1024px) {

    .wd-search-results,
    .wd-search-results-wrapper,
    .wd-dropdown-results,
    .wd-scroll-content {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

   .wd-scroll-content {
    max-height: calc(100dvh - 72px);
    padding: 0 0 12px;
    overflow-x: hidden;
    overflow-y: hidden;
    border-radius: 14px;
}

    .wd-scroll-content .wd-search-area {
        padding: 8px 12px 0;
    }

    .my-search-slider {
        height: 140px;
        border-radius: 12px;
    }

    .my-search-slider .my-slide img {
        height: 100%;
        border-radius: 12px;
    }

    .wd-scroll-content .wd-search-history,
    .wd-scroll-content .wd-search-requests,
    .wd-search-history,
    .wd-search-requests {
        max-width: 100%;
        margin: 10px 0 0;
        padding: 10px 12px 12px;
        border: 0;
        border-radius: 0;
        background: #fff;
    }

    .wd-scroll-content .wd-search-requests {
        border-top: 1px solid #f3f4f6;
    }

    .wd-search-history .wd-search-title,
    .wd-search-requests .wd-search-title,
    .wd-scroll-content .wd-search-history .wd-sh-head {
        margin-bottom: 10px;
        color: #111;
        font-size: 13px;
        font-weight: 700;
    }

    .wd-scroll-content .wd-search-history ul,
    .wd-scroll-content .wd-search-requests ul {
        flex-wrap: wrap !important;
        gap: 6px;
        overflow: visible;
    }

    .wd-search-history a,
    .wd-search-requests a,
    .wd-scroll-content .wd-search-history a,
    .wd-scroll-content .wd-search-requests a {
        padding: 7px 12px;
        border-radius: 999px !important;
        background: #f3f4f6;
        color: #111 !important;
        font-size: 12px;
        font-weight: 400 !important;
    }

    .wd-search-suggestions {
        max-height: calc(100dvh - 88px) !important;
        padding: 12px 14px 8px !important;
    }

    .wd-search-suggestions > .wd-search-title {
        margin-bottom: 9px !important;
        font-size: 13px !important;
    }

   
    .wd-search-suggestions
    .wd-suggestions-group.wd-type-categories,
    .wd-search-suggestions
    .wd-suggestions-group.wd-type-brands {
        flex-wrap: nowrap !important;
        gap: 6px;
        margin-bottom: 12px !important;
        padding-bottom: 12px !important;
        overflow-x: auto;
        border-bottom: 1px solid #f1f3f5;
        scrollbar-width: none;
    }

    .wd-search-suggestions
    .wd-suggestions-group.wd-type-categories::-webkit-scrollbar,
    .wd-search-suggestions
    .wd-suggestions-group.wd-type-brands::-webkit-scrollbar {
        display: none;
    }

    .wd-search-suggestions
    .wd-suggestions-group.wd-type-categories
    .wd-suggestion,
    .wd-search-suggestions
    .wd-suggestions-group.wd-type-brands
    .wd-suggestion {
        min-height: 36px;
        padding: 7px 12px !important;
    }

    .wd-search-suggestions
    .wd-suggestions-group.wd-type-categories
    .wd-entities-title,
    .wd-search-suggestions
    .wd-suggestions-group.wd-type-brands
    .wd-entities-title {
        max-width: 72vw;
        overflow: hidden;
        font-size: 12px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* محصولات موبایل: دو ستون */
    .wd-search-suggestions
    .wd-suggestions-group.wd-type-product {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 0 !important;
    }

    .wd-search-suggestions
    .wd-suggestions-group.wd-type-product
    .wd-suggestion {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        padding: 8px 8px 10px !important;
        border: 1px solid #eef0f2 !important;
        border-radius: 12px !important;
        background: #fff !important;
    }

    .wd-search-suggestions
    .wd-suggestions-group.wd-type-product
    .wd-suggestion-thumb {
        flex: none !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 0 8px !important;
    }

    .wd-search-suggestions
    .wd-suggestions-group.wd-type-product
    .wd-suggestion-thumb img {
        width: 100% !important;
        max-width: 100px;
        height: 100px !important;
        margin: 0 auto !important;
        object-fit: contain;
    }

    .wd-search-suggestions
    .wd-suggestions-group.wd-type-product
    .wd-suggestion-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 1;
        width: 100%;
        text-align: center !important;
    }

    .wd-search-suggestions
    .wd-suggestions-group.wd-type-product
    .wd-entities-title {
        display: -webkit-box !important;
        width: 100%;
        color: #333;
        font-size: 12px !important;
        line-height: 1.6 !important;
        text-align: center !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .wd-search-suggestions
    .wd-suggestions-group.wd-type-product
    .price {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        margin: 6px 0 0 !important;
        font-size: 12px !important;
        text-align: center !important;
    }

    .wd-search-suggestions
    .wd-suggestions-group.wd-type-product
    .price ins {
        order: 1;
        font-size: 13px !important;
    }

    .wd-search-suggestions
    .wd-suggestions-group.wd-type-product
    .price del {
        order: 2;
        margin: 0 !important;
        font-size: 11px !important;
    }

    
    .wd-search-suggestions a.wd-all-results {
        width: 100% !important;
        margin: 8px 0 0 !important;
        padding: 4px 0 !important;
        background: transparent !important;
        color: #1c957a !important;
        font-size: 13px !important;
        text-align: center !important;
    }

    .wd-search-suggestions a.wd-all-results::after {
        content: "‹" !important;
        color: #1c957a !important;
        font-size: 16px;
        line-height: 1;
    }

   
    .elementor-icon-box-wrapper {
        align-items: center !important;
        flex-direction: column !important;
    }

    .wd-footer.footer-container
    .elementor-widget-icon-box.elementor-position-inline-start
    .elementor-icon-box-wrapper {
        flex-direction: unset !important;
    }
}



@media (min-width: 769px) and (max-width: 1024px) {
    .wd-search-suggestions
    .wd-suggestions-group.wd-type-product {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}



@media (max-width: 480px) {
    .my-search-slider {
        height: 120px;
    }

    .wd-search-suggestions {
        padding: 12px 12px 8px !important;
    }
}

@media (max-width: 380px) {
    .wd-search-suggestions
    .wd-suggestions-group.wd-type-product {
        gap: 8px;
    }

    .wd-search-suggestions
    .wd-suggestions-group.wd-type-product
    .wd-suggestion-thumb img {
        height: 88px !important;
    }
}


/* =========================================================
   11. Cart Button
========================================================= */

.button.btn-cart.wc-forward {
    color: #fff !important;
}


/* =========================================================
   12. Product Labels
========================================================= */

/* Free Shipping */
span.onsale.product-label.free-shipping {
    display: flex;
    align-items: center;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: #caa44e !important;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.product-labels1.labels-rounded.sale-quantity.free-shipping {
    position: absolute;
    top: auto !important;
    right: 10px !important;
    bottom: 0 !important;
    left: auto !important;
    z-index: 10;
    width: 88px;
    height: auto;
}

.product-labels1.labels-rounded.sale-quantity.free-shipping img,
.old-price-label img,
.bestseller-label img {
    padding: 0 !important;
}

.related-products
.product-labels1.labels-rounded.free-shipping {
    right: 10px !important;
    bottom: 10px !important;
}


/* Old Price */
.old-price-label {
    position: absolute;
    top: auto;
    right: auto !important;
    bottom: 0 !important;
    left: 10px !important;
    z-index: 10;
    width: 88px;
    height: auto;
}


/* Gift */
.product-label-gift {
    position: absolute;
    top: 0 !important;
    left: 7px !important;
    z-index: 10;
    width: 60px !important;
}


/* Custom BFC Labels */
.product-labels.labels-rounded.bfc-custom {
    position: absolute !important;
    top: 2px !important;
    left: 3px !important;
    z-index: 100 !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !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-size: 14px !important;
    font-weight: 700 !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: #e11d48 !important;
}

.product-labels.labels-rounded.bfc-custom .bfc-plus {
    color: #333 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}


/* General Labels */
.labels-rounded {
    top: 0;
    right: 0;
}

.labels-rounded .product-label {
    border-radius: 0;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 24px;
    font-family: "IRANSans", sans-serif;
    font-size: 13px;
    font-weight: 400;
}


/* Bestseller */
.bestseller-label {
    position: absolute;
    top: auto !important;
    right: auto !important;
    bottom: 0 !important;
    left: 10px !important;
    z-index: 10;
    width: 95px;
    height: auto;
}

.bestseller-label img {
    display: block;
    width: 100%;
    height: auto;
}

.related-products .bestseller-label {
    bottom: 10px !important;
    left: 10px !important;
}


/* Single Product Labels */
.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;
}

.single-product .woocommerce-product-gallery
.bestseller-label {
    right: auto !important;
    bottom: 10px !important;
    left: 10px !important;
    width: fit-content;
}


/* Responsive Labels */
@media (max-width: 768px) {
    .related-products
    .product-labels1.labels-rounded.old-price-label {
        right: 5px !important;
        bottom: 45px !important;
    }

    .product-label-gift {
        top: -4px !important;
        left: -3px !important;
        width: 50px !important;
    }
}

@media (max-width: 480px) {
    .product-labels1.labels-rounded.sale-quantity.free-shipping,
    .old-price-label {
        width: 75px;
    }

    .product-label-gift {
        top: -8px !important;
        left: -6px !important;
        width: 40px !important;
    }

    .bestseller-label {
        width: 65px;
    }
}

@media (max-width: 376px) {
    .product-labels1.labels-rounded.sale-quantity.free-shipping,
    .old-price-label {
        width: 65px;
    }

    .bestseller-label {
        width: 55px;
    }
}

@media (max-width: 320px) {
    .product-labels1.labels-rounded.sale-quantity.free-shipping,
    .old-price-label {
        width: 55px;
    }

    .bestseller-label {
        width: 45px;
    }
}


/* =========================================================
   13. General Product Cards
========================================================= */

.star-rating {
    display: none !important;
}

.product-wrapper {
    padding: 0 0 16px !important;
}

.product-wrapper img {
    padding: 16px !important;
}

.wd-product .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;
    color: inherit;
    font-family: "IRANSans_Medium", sans-serif;
    font-size: 12px !important;
    font-weight: 500;
}


/* =========================================================
   14. Product Category Slider
========================================================= */

.custom-cat-swiper {
    position: relative;
    padding: 24px 40px 32px;
}

.custom-cat-swiper .swiper-wrapper {
    align-items: flex-start;
}

.custom-cat-swiper .swiper-slide {
    display: flex;
    justify-content: center;
}

.custom-product-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 132px;
    margin: 0 8px;
    font-family: inherit;
    text-align: center;
}

.custom-product-cat-item .cat-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    height: 132px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 50%;
    text-decoration: none;
}

.custom-product-cat-item .cat-image {
    width: 78%;
    height: 78%;
    border-radius: 0;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.cat-image-bg {
    display: none !important;
}

.custom-product-cat-item .cat-name {
    display: -webkit-box;
    min-height: 3.4em;
    overflow: hidden;
    color: #424750;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
    text-align: center;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.custom-cat-swiper .swiper-button-next,
.custom-cat-swiper .swiper-button-prev {
    top: 50%;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.08);
    color: #9e9fb1;
    transform: translateY(-50%);
}

.custom-cat-swiper .swiper-button-next::after,
.custom-cat-swiper .swiper-button-prev::after {
    font-size: 16px;
    font-weight: 700;
}

html[dir="rtl"] .custom-cat-swiper .swiper-button-prev,
html[dir="ltr"] .custom-cat-swiper .swiper-button-next {
    right: 8px;
    left: auto;
}

html[dir="rtl"] .custom-cat-swiper .swiper-button-next,
html[dir="ltr"] .custom-cat-swiper .swiper-button-prev {
    right: auto;
    left: 8px;
}

@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;
    }
}


/* =========================================================
   15. WooCommerce Ordering
========================================================= */

@media (max-width: 768.98px) {
    .woocommerce-ordering.wd-ordering-mb-icon select option {
        color: #000;
        font-size: 14px;
    }
}


/* =========================================================
   16. Elasticsearch Title
========================================================= */

.elasticsearch-title > span {
    margin-bottom: 11px;
    color: #635b5b;
}

.elasticsearch-title {
    width: fit-content;
    margin: 50px 0;
    border-bottom: 2px solid #6ec1e4;
    font-size: 18px;
}

@media (max-width: 768px) {

    .wd-search-results.wd-scroll-content {
        max-height: calc(100dvh - 72px) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .wd-search-suggestions {
        max-height: none !important;
        overflow: visible !important;
    }
    input.s.wd-search-inited::placeholder {
        font-size: 12px !important;
        color: #aaa !important;
        font-weight: 400 !important;
    }
}

