:root {
    --btn-accented-brd-radius: 13px !important;
}
.ksh-product-cart {
    box-shadow: 0 0 12px 0 #7b869621;
    padding: 10px !important;
    border-radius: 16px !important;
    background: #fff;
}
.wd-product.wd-hover-fw-button .wd-add-btn {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}
.wd-quick-shop {
    border-radius: 16px !important;
    overflow: hidden !important;
}
.swiper-related .ksh-product-cart {
    min-width: 250px;
}
.wd-product.wd-hover-fw-button .wd-add-btn>a {
    width: 90% !important;
}
.content-layout-wrapper {
    flex-wrap: nowrap !important;
}

.ksh-thumbnail img {
    border-radius: 16px !important;
    margin-bottom: 10px;
}

.ksh-thumbnail {
    position: relative;
    overflow: hidden;
}

.ksh-product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.ksh-badge {
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    display: flex;
    width: 30px;
    height: 30px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.ksh-sale-badge {
    background-color: #faa61a;
}

.ksh-stock-badge.in-stock {
    background-color: #2ecc71;
}

.ksh-stock-badge.out-of-stock {
    background-color: #95a5a6;
}

h3.ksh-product-title {
    font-size: 15px;
    font-weight: 700;
    padding: 0 5px;
    margin: 0;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.swiper-related {
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding: 10px;
}

.swiper-related .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.ksh-thumbnail img {
    object-fit: cover;
}

.swiper-related .swiper-slide {

    height: 100%;
}

.widget_shopping_cart .elementor-menu-cart__footer-buttons a {
    background: #FAA61A;
    border-radius: 7px !important;
}

.widget_shopping_cart .elementor-menu-cart__subtotal {
    border-radius: 7px;
}

.widget_shopping_cart .amount {
    color: #585858 !important;
}
span.badge.badge-treasure {
    position: absolute;
    z-index: 10;
    left: 10px;
    top: 10px;
    background-color: rgb(249, 167, 29);
    color: #fff;
    padding: 0 5px;
    border-radius: 5px;
}
h3.ksh-product-en-name {
    font-size: 12px;
    margin: 6px 0;
    color: #585F68;
    font-weight: 700;
    padding: 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ksh-category-image {
    width: 25px;
    height: 25px;
    box-shadow: 0 0 5px 0 #7b869645;
    border-radius: 6px;
}

.ksh-category-image img {
    border-radius: 6px;
}

.ksh-price-sec {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

del .amount {
    color: #FCA5A5 !important;
    font-weight: 700 !important;
    font-size: 12px;
}

.amount {
    color: #20B164 !important;
    font-weight: 700 !important;
    font-size: 15px;
}

.ksh-before-btn {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    align-items: center;
    padding: 0 5px;
    height: 45px;
}

.ksh-btn-sec {
    display: flex;
    justify-content: center;
    width: 100%;
}
.wd-product {
    --wd-prod-gap: 8px !important;
}
.ksh-product-cart h3.wd-entities-title {
    font-size: 15px;
    font-weight: 700;
    padding: 0 5px;
    text-align: right;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
a.ksh-product-page-btn {
    display: flex;
    width: 80%;
    background: #FAA61A;
    height: 30px;
    justify-content: center;
    align-items: center;
    margin: 10px 0 5px 0;
    color: #fff;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
}

a.ksh-product-page-btn:hover {
    background: #e19515;
    color: #fff;
}

.ksh-category-icon svg {
    width: 80px;
    height: 80px;
    fill: #232425;
    transition: 300ms;
}

.ksh-category-icon svg:hover {
    fill: #FAA61A;
}

/*ksh main page post section*/
.ksh-post-header {
    /* box-shadow: 0 0 7px 0 #7b86964f; */
    border-radius: 15px;
    padding: 5px;
    margin: 5px;
}
.ksh-post-article {
    box-shadow: 0 0 7px 0 #7b86962b;
    margin-block: 20px;
    margin-inline: 3px;
    border-radius: 20px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.ksh-post-article:hover {
    box-shadow: 0 0 10px 0 #7b869663;
}
.ksh-post-img img {
    width: 250px;
    height: 215px !important;
    min-height: 215px;
    border-radius: 15px !important;
    object-fit: cover;
    margin-bottom: 10px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.ksh-post-header h3 {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px !important;
}

.ksh-post-header p {
    font-size: 10px;
    padding-bottom: 15px;
    margin: 0;
}

.ksh-read-time svg, .ksh-view svg {
    width: 16px;
    fill: #353535;
    transition: 0.3s ease;
}

.ksh-read-time, .ksh-view {
    font-size: 11px;
    font-weight: 500;
    color: #000;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ksh-view-sec {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    margin: 0 5px;
    padding-top: 5px;
    border-top: 1px solid #E2E8F0;
}

.ksh-post-link {
    display: flex;
    width: 70%;
    background: #B3B9C1;
    height: 30px;
    justify-content: center;
    align-items: center;
    margin: 10px 0 5px 0;
    color: #fff;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    transition: 0.3s ease;
}

.swiper-slide:hover .ksh-post-img img,
.has-post-thumbnail:hover .ksh-post-img img {
    filter: grayscale(0%);
}

.swiper-slide:hover .ksh-read-time svg,
.has-post-thumbnail:hover .ksh-read-time svg,
.has-post-thumbnail:hover .ksh-view svg,
.swiper-slide:hover .ksh-view svg {
    fill: #FAA61A;
}

.swiper-slide:hover .ksh-post-link,
.has-post-thumbnail:hover .ksh-post-link {
    background: #FAA61A;
}

.footer-logo {
    width: 80px;
    height: 80px;
    padding: 10px;
    box-shadow: 0 0 7px 0 #c5c5c580;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 17px;
}

.ks-pric-sec .price {
    width: fit-content;
    gap: 12px;
}

.footer-logo-sec {
    display: flex;
    gap: 15px;
    justify-content: center;
    width: 100%;
    padding: 15px;
    flex-wrap: wrap;
}

input#dgwt-wcas-search-input-1 {
    font-family: 'IRANSansx', serif;
    font-size: 13px;
    background: #F1F5F9;
    height: 37px;
    min-width: 600px;
    border-radius: 20px;
}

.sale-sec {
    position: relative;
}

.sale-img {
    position: absolute !important;
    left: -30px;
}

.swiper-wrapper {
    display: flex;
}

@media only screen and (max-width: 620px) {
    .footer-logo {
        width: 55px;
        height: 55px;
    }

    .footer-logo-sec {
        padding: 15px 0;
        gap: 10px;
    }

    input#dgwt-wcas-search-input-3 {
        padding: 5px 15px;
        font-family: 'IRANSansx', serif;
        min-height: 35px;
    }

    .dgwt-wcas-style-pirx.dgwt-wcas-style-pirx-compact .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
        border-radius: 30px !important;
        top: 11px !important;
        background: #FAA61A !important;
        width: 43px !important;
        left: 11px !important;
    }

    .dgwt-wcas-search-wrapp .dgwt-wcas-ico-magnifier, .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit svg path, .dgwt-wcas-om-bar .dgwt-wcas-om-return svg path {
        fill: #000 !important;
    }

    /*
    .wd-toolbar {
        background-color: #F9F9F9 !important;
       height: 66px !important;
    }
    */
    .sale-img {
        position: relative;
    }

    .ksh-category-icon svg {
        width: 39px;
        height: 39px;
    }

    h3.ksh-product-title {
        font-size: 13px;
    }

    h3.ksh-product-en-name {
        font-size: 10px;
    }

    del .amount {
        font-size: 8px;
    }

    .amount {
        font-size: 13px;
    }

    a.ksh-product-page-btn {
        font-size: 9px;
    }

    .ksh-post-img img {
        height: 166px !important;
    }

    .ksh-post-header h3 {
        font-size: 13px;
    }

    .ksh-post-header p {
        font-size: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        padding-bottom: 18px;
    }

    .blogSwiper .ksh-btn-sec {
        display: none;
    }

    .ksh-read-time, .ksh-view {
        font-size: 8px;
    }

    .ksh-read-time svg, .ksh-view svg {
        width: 12px;
    }

    .whb-header {
        margin-bottom: 0 !important;
        /*padding: 0 10px;*/
    }

    .whb-flex-row.whb-header-bottom-inner {
        padding-bottom: 15px;
    }

    .container {
        padding: 0 !important;
    }
}


/*single product page CSS*/
/*
.wd-carousel.wd-grid.wd-initialized.wd-horizontal.wd-rtl.wd-watch-progress.wd-backface-hidden.wd-thumbs .wd-carousel-wrap {
    gap: 10px;
}

.wd-carousel.wd-grid.wd-initialized.wd-horizontal.wd-rtl.wd-watch-progress.wd-backface-hidden.wd-thumbs {
    padding: 25px 17px 40px 45px;
}

.ks-img-product .wd-carousel-item.wd-slide-visible {
    padding: 5px;
    box-shadow: 0 0 24px 0 #00000020;
    border-radius: 11px;
}
*/

.ks-pric-sec .price {
    margin: 0;
    display: flex;
    justify-content: center;
    height: 32px;
    align-items: center;
    font-size: 15px;
}

.ks-pric-sec .amount {
    color: #444A53 !important;
}

.ks-size-guide svg {
    width: 30px;
    height: 30px;
}

.ks-size-guide {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    font-weight: 700;
    color: #141313;
}

.ks-buy-btn .selected {
    background: #FAA61A !important;
    color: #fff !important;
    border: none !important;
}

.ks-buy-btn .variable-item {
    box-shadow: none;
    -webkit-box-shadow: none;
    padding: 0;
    color: #585F68;
    height: 35px;
    width: 35px;
    font-size: 20px;
    border: 1px solid #585F68;
    border-radius: 7px;
}

.ks-buy-btn .disabled {
    border: 1px solid #FCA5A5;
    color: #FCA5A5;
}

.ks-buy-btn .elementor-button-content-wrapper {
    color: #fff;
}

.ks-buy-btn div.quantity input[type="button"] {
    min-width: 20px !important;
}

.ks-buy-btn .input-text.qty.text {
    width: 30px !important;
}

.ks-buy-btn .quantity {
    width: 60px;
}

.upsell-products-images {
    display: flex;
    flex-wrap: wrap;
    row-gap: 2.5px;
}

.upsell-products-images a {
    display: block;
    flex-basis: 20%;
    position: relative;
    padding: 5px;
}

.upsell-products-images a::before {
    content: '';
    display: block;
    padding-bottom: 100%;
}

.upsell-products-images img {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    object-fit: cover;
    border-radius: 15px !important;
}


.returned-role svg {
    width: 24px;
    height: 24px;
}

.returned-role {
    color: #000;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ks-info-table h3 {
    display: none !important;
}

.ks-info-table td, .ks-info-table th {
    border-bottom: 1px solid #ececec !important;
    font-size: .9em !important;
    line-height: 2 !important;
    padding: .5em !important;
    text-align: right !important;
    background: #fff !important;
}

.ks-related-product h4 {
    display: none !important;
}

/*product archive*/
.archive .sidebar-container {
    box-shadow: 0 0 12px 0 #7B869626 !important;
    border-radius: 16px !important;
    padding: 15px !important;
}

.archive .sidebar-widget {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

.archive .sidebar-widget .widget-title {
    height: 24px !important;
    font-size: 12px !important;
    padding: 0 12px 0 0 !important;
    display: flex !important;
    align-items: center !important;
    font-weight: 500 !important;
    border-radius: 5px !important;
    background: #F1F5F9 !important;
}

.archive .sidebar-container .cat-item {
    font-size: 11px;
    padding: 0 6px 0 0;
}

.archive .sidebar-container .cat-item {
    font-size: 11px;
    padding: 0 6px 0 0;
    font-weight: 400 !important;
    color: #000;
}

/*.archive .sidebar-container .current-cat a {*/
/*    background: #F1F5F9;*/
/*    padding: 5px;*/
/*    border-radius: 5px;*/
/*    font-weight: 400 !important;*/
/*}*/
.widget_product_categories .product-categories li a {
    color: #000 !important;
}

.archive .sidebar-container span.ui-slider-handle:after {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.widget_price_filter .ui-slider .ui-slider-range {
    margin-top: -3px !important;
    height: 5px !important;
}

.widget_price_filter .ui-slider-horizontal:before {
    margin-top: -3px !important;
    height: 5px !important;
}

.price_label {
    font-size: 12px;
}

.archive .sidebar-container .price_slider_amount button.button {
    background: #F1F5F9;
}

.archive .sidebar-container .price_slider_amount button.button:hover {
    background: #e2e5ea;
}

.archive .sidebar-container .wd-widget-stock-status a {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    justify-content: space-between;
    font-size: 12px;
    color: #6B6B6B;
}

.archive .sidebar-container .wd-widget-stock-status a:before {
    border-radius: 50%;
    font-size: 15px;
}

.archive .sidebar-container a.wd-entities-title {
    font-size: 12px !important;
}

.archive .sidebar-container .star-rating {
    display: none;
}

.archive .sidebar-container .amount {
    font-size: 12px;
    color: var(--wd-primary-color) !important;
}

.archive .products-footer .page-numbers a {
    background: #F1F5F9;
}

.archive .woocommerce-breadcrumb,
.archive .wd-products-per-page,
.archive .orderby {
    font-size: 12px !important;
}

a.shop-view {
    font-size: 90%;
}

.page-title-default {
    margin-block: -15px 40px !important;
    margin: 10px 15px;
}

@media (min-width: 1390px) {
    .page-title-default {
        width: 1380px;
        border-radius: 25px;
        margin: auto auto 35px;
        margin-block: -15px 40px !important;
    }

    .archive .sidebar-container {
        max-width: 260px !important;
    }

    .archive .shop-content-area {
        flex: auto !important;
        max-width: 1120px !important;
    }

    .archive .sidebar-container .wd-widget-stock-status a:after {
        inset-inline-start: revert !important;
        left: 12px !important;
    }
}

@media (max-width: 1390px) {
    .archive .sidebar-container .wd-widget-stock-status a:after {
        inset-inline-start: revert !important;
        left: 11px !important;
    }

    .page-title-default {
        margin: 10px 15px !important;
        border-radius: 25px;
        margin-block: -15px 40px !important;
    }
}

@media (max-width: 768px) {
    .archive .page-title-default {
        margin-block: 10px 40px !important;
    }

    .shop-content-area {
        padding: 0 25px !important;
    }
}

/*archive post (blog)*/

.ks-post-archive {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.ks-post-archive article {
    max-width: 260px;
}

.ksh-social-sec {
    width: 100%;
    display: flex;
    gap: 20px;
    padding: 10px 0;
}

.ksh-social-sec img {
    width: 50%;
}

.ksh-pagination {
    padding-top: 10px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.ksh-pagination .page-numbers {
    width: 37px;
    height: 37px;
    background: #F1F5F9;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    border-radius: 5px;
    color: #000;
}

.ksh-pagination .current {
    background: #FAA61A;
}

@media (max-width: 768px) {
    .ks-post-archive article {
        max-width: 200px;
    }
}

@media (max-width: 600px) {
    .ks-post-archive article {
        max-width: 176px;
    }
}


/*organizations section*/
.ksh-inner-organize {

}

.ksh-inner-organize img {
    background: #fff;
    padding: 10px;
    height: 100px !important;
    border-radius: 14px !important;
}

.ksh-organize-text-sec h3 {
    margin: 0;
    text-shadow: 0 2px #00000040;
    font-size: 32px;
    font-weight: 900;
    color: #fff;
}

.ksh-inner-organize {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #FBA71B;
    border-radius: 19px;
    justify-content: space-between;
    padding: 17px 25px 17px 17px;
}

.ksh-organize-text-sec p {
    margin: 0;
    color: #fff;
    text-shadow: 0 1px #00000040;
}

@media only screen and (max-width: 620px) {
    .main-page-wrapper {
        margin-top: 10px;
    }

    .wd-header-text.set-cont-mb-s.reset-last-child {
        margin-top: 25px;
    }

    input#dgwt-wcas-search-input-2 {
        font-family: 'IRANSansx', serif;
        background: #F1F5F9;
        height: 40px;
        border-radius: 12px;
    }

    .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
        top: 13px !important;
    }
}

.ks-cart-content {
    display: flex;
    gap: 25px;
}

form.woocommerce-cart-form {
    flex: 1 0 0;
}

.cart_totals {
    flex: .5;
}

/*ksh-size-guide modal*/
.ksh-size-guide-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.ksh-size-guide-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 800px;
    margin-top: 50px;
    max-height: -webkit-fill-available;
    overflow-y: auto;
    overflow-x: hidden;
}

.ksh-size-guide-close {
    position: absolute;
    top: -5px;
    left: 0;
    font-size: 24px;
    cursor: pointer;
}

.header-ksh-size-guide-modal {
    display: flex;
    justify-content: space-between;
    position: relative;
}

a#ksh-size-guide {
    height: 31.4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    background-color: #abaaaa;
    color: #fff;
    padding: 8px;
    border-radius: 8px;
}

@media (min-width: 768px) {
    a#ksh-size-guide {
        padding-inline: 5px;
    }
}

.ksh-size-guide svg {
    width: 15.4px;
    height: 15.4px;
}

.wd-sizeguide-title {
    display: none;
}


.term-description {
    position: relative;
    margin: 0 auto;
}

.description-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-wrapper {
    position: relative;
    overflow: hidden;
}

.description-content {
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: relative;
    z-index: 2;
}

.description-content.expanded {
    max-height: 1000px;
}

.fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
    z-index: 3;
}

.toggle-description {
    display: block;
    margin: 20px auto;
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    z-index: 4;
}

.toggle-description:hover {
    background-color: #005885;
}

button.toggle-description {
    display: flex;
    background: #FAA61A;
    height: 30px;
    justify-content: center;
    align-items: center;
    margin: 10px 0 5px 0;
    color: #fff;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
}

.hs-tracking {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    height: 40px;
}

.hs-post-tracking {
    height: 100%;
    background: #FAA61A;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    color: #fff;
    border: 2px solid #FAA61A;
    border-radius: 0 20px 20px 0;
}

.hs-post-tracking-code {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    padding: 0 15px;
    border-radius: 20px 0 0 20px;
    border: 2px solid #FAA61A;
    color: #000;
    cursor: pointer;
}

.tracking-front-sec {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 11px;
}

a.tracking-front {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid #007B4D;
    border-radius: 20px;
    color: #007B4D;
    background: #FFF;
    padding: 0 20px;
}

.e-con.e-flex > .e-con-inner > div {
    padding-inline: 10px;
}

.whb-col-mobile {
    padding-inline: 14px;
}

.whb-flex-row.whb-general-header-inner {
    padding-inline: 0;
}

.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
    left: 30px;
}

.input-sm {
    height: 40px !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    font-size: 0.9rem;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.custom-file-input {
    display: none;
}

.custom-file-label {
    display: inline-block;
    background-color: #f0f0f0;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #ccc;
    font-family: inherit;
}

.custom-file-label:hover {
    background-color: #e0e0e0;
}


/*for woocommerce product set*/

:root {
    --katooni-radius-md: 12px;
    --katooni-radius-lg: 18px;
    --katooni-anim-speed: 0.4s;
    --katooni-anim-ease: cubic-bezier(0.25, 1, 0.5, 1);
    --katooni-brand-color: #f9a61a
}

body.modal-open {
    overflow: hidden !important
}

.katooni-set-container {
    width: 100%;
    direction: rtl
}

.set-main-title {
    font-size: 20px;
    text-align: right;
    margin-bottom: 10px
}

.set-top-section {
    display: grid;
    grid-template-columns:1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
    align-items: start
}

.main-set-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: var(--katooni-radius-lg) !important
}

.set-summary {
    border: 1px solid #e9e9e9;
    border-radius: var(--katooni-radius-lg);
    padding: 30px;
    background-color: #fafafa
}

.set-summary h4 {
    margin-top: 0;
    font-size: 1.1em
}

.summary-description {
    font-size: .9em;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7
}

.summary-items-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    max-height: 250px;
    overflow-y: auto
}

ul.summary-items-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dotted #eee
}

ul.summary-items-list .summary-item-image {
    width: 50px;
    height: 50px;
    border-radius: var(--katooni-radius-md);
    object-fit: cover;
    flex-shrink: 0
}

.summary-item-details {
    flex-grow: 1;
    min-width: 0
}

.summary-item-title {
    display: block;
    font-weight: 700;
    color: #333;
    font-size: .9em
}

.summary-item-attributes {
    font-size: .85em;
    color: #777;
    margin-top: 4px;
    display: block;
    word-wrap: break-word
}

.summary-item-remove {
    font-size: 1.5em;
    color: #d32f2f;
    cursor: pointer;
    line-height: 1;
    transition: color .2s ease
}

.summary-item-remove:hover {
    color: #a00
}

.summary-total {
    border-top: 2px solid #e0e0e0;
    padding-top: 15px;
    font-size: 1.2em;
    font-weight: 700;
    display: flex;
    justify-content: space-between
}

#final-add-to-cart {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    font-size: 1.1em;
    background-color: #4caf50;
    color: #fff;
    border-radius: var(--katooni-radius-md)
}

.set-items-grid-wrapper {
    border-top: 1px solid #f0f0f0;
    padding-top: 40px;
    margin-top: 40px
}

.set-items-grid-wrapper h3 {
    font-size: 20px;
    text-align: right;
    margin-bottom: 15px;
    color: #333
}

.set-items-grid {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px
}

.set-item-card {
    border: 1px solid #e9e9e9;
    border-radius: var(--katooni-radius-lg);
    text-align: center;
    transition: all .3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #fff
}

.set-item-card.is-selected {
    border-color: var(--katooni-brand-color);
    box-shadow: 0 5px 25px rgba(0, 0, 0, .12)
}

.card-image {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background-color: #fff;
    padding: 10px;
    box-sizing: border-box
}

.card-image a {
    display: block;
    width: 100%;
    height: 100%
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--katooni-radius-md) !important;
    transition: transform .3s ease
}

.set-item-card:hover .card-image img {
    transform: scale(1.05)
}

.card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.card-content h4 {
    margin: 0 0 8px 0;
    font-size: .9em;
    line-height: 1.5;
    min-height: 42px;
    text-align: right
}

.card-price {
    color: #333;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: .9em
}

.card-footer {
    padding: 0 15px 15px 15px
}

.select-options-btn.button {
    width: 100%;
    text-align: center;
    padding: 12px !important;
    font-weight: 700 !important;
    cursor: pointer;
    background-color: var(--katooni-brand-color) !important;
    color: #fff !important;
    border-radius: var(--katooni-radius-md) !important;
    border: 0 !important;
    line-height: normal !important;
    transition: all .2s ease !important
}

.select-options-btn.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15)
}

.set-item-card.is-selected .select-options-btn {
    background-color: #4caf50 !important
}

.set-item-card.is-disabled {
    opacity: .5;
    filter: grayscale(80%)
}

.set-item-card.is-disabled .select-options-btn {
    cursor: not-allowed !important;
    background-color: #9e9e9e !important;
    transform: none !important;
    box-shadow: none !important
}

.set-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 999999 !important;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--katooni-anim-speed) ease-out, visibility .1s var(--katooni-anim-speed);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0)
}

.set-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
    background-color: rgba(0, 0, 0, .4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition-delay: 0s
}

.set-modal-content {
    background: #fff;
    border-radius: var(--katooni-radius-lg) var(--katooni-radius-lg) 0 0;
    width: 100%;
    max-width: 500px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: right;
    height: 93vh;
    max-height: min(93vh, 720px);
    transform: translateY(100%);
    transition: transform var(--katooni-anim-speed) var(--katooni-anim-ease)
}

.set-modal-content.is-dragging {
    transition: none
}

.set-modal-overlay.visible .set-modal-content {
    transform: translateY(0)
}

.modal-header {
    padding: 10px;
    text-align: center;
    flex-shrink: 0;
    cursor: grab;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center
}

.modal-grabber {
    width: 40px;
    height: 5px;
    background-color: #ccc;
    border-radius: 2.5px
}

.modal-close-btn {
    display: none !important
}

.modal-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
    padding: 0 15px 15px
}

.modal-title {
    font-size: 1.1em;
    font-weight: 700;
    text-align: center;
    padding: 15px 0 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 15px;
    flex-shrink: 0
}

.modal-image-column {
    display: flex;
    height: 35vh;
    margin-bottom: 15px;
    flex-shrink: 0;
    border-radius: var(--katooni-radius-lg) !important;
    overflow: hidden
}

.modal-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important
}

.modal-details-column {
    overflow-y: scroll;
    height: 250px;
    flex-grow: 1;
    padding: 5px
}

.set-attribute-row {
    margin-bottom: 20px
}

.set-attribute-row label {
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
    font-size: 0.95em
}

.set-swatch-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.set-swatch {
    border: 1px solid #bbb;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: var(--katooni-radius-md);
    background-color: #fff;
    color: #333;
    font-weight: 500;
    transition: all .2s ease
}

.set-swatch.selected {
    border-color: var(--katooni-brand-color) !important;
    background-color: var(--katooni-brand-color) !important;
    color: #fff !important;
    border-width: 2px
}

.set-swatch.disabled {
    opacity: .5;
    cursor: not-allowed;
    background-color: #f0f0f0;
    border-color: #e0e0e0;
    color: #999
}

.set-quantity-row .quantity-stepper-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    min-width: 120px
}

.quantity-stepper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: var(--katooni-radius-md);
    overflow: hidden
}

.quantity-stepper .set-quantity-input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    font-weight: 700;
    font-size: 1.1em;
    color: #333;
    -moz-appearance: textfield
}

.quantity-stepper .set-quantity-input::-webkit-outer-spin-button,
.quantity-stepper .set-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0
}

.quantity-stepper .quantity-btn {
    width: 35px;
    height: 40px;
    background-color: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 1.5em;
    line-height: 1;
    color: #555;
    transition: background-color .2s
}

.quantity-stepper .quantity-btn:hover {
    background-color: #e9e9e9
}

.quantity-stepper .quantity-minus {
    border-left: 1px solid #ddd
}

.quantity-stepper .quantity-plus {
    border-right: 1px solid #ddd
}

.stock-message {
    font-size: 0.85em;
    color: #777;
    height: 1.2em;
    display: block
}

.modal-action-bar {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-shrink: 0;
    box-shadow: 0 -5px 15px -5px rgba(0, 0, 0, .08)
}

.modal-price {
    font-size: 1.2em;
    font-weight: 700;
    flex-shrink: 0
}

.modal-price-value {
    color: var(--katooni-brand-color);
    margin-right: 5px
}

.confirm-selection-btn {
    border-radius: var(--katooni-radius-md) !important;
    padding: 12px 25px !important;
    font-size: 1em !important;
    flex-grow: 1
}

.confirm-selection-btn:not(:disabled) {
    background-color: var(--katooni-brand-color) !important;
    color: #fff !important
}

.confirm-selection-btn:disabled {
    cursor: not-allowed !important;
    background-color: #9e9e9e !important;
    color: #fff !important
}

.summary-item-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 15px
}

.summary-item-pricing {
    text-align: left;
    white-space: nowrap;
    min-width: 100px
}

.summary-item-line-total {
    font-weight: 700;
    font-size: 0.95em;
    color: #333
}

.summary-item-unit-price {
    font-size: 0.8em;
    color: #888;
    margin-top: 3px
}

.summary-item-price {
    display: none
}

.summary-item-quantity .quantity-stepper {
    border-color: #eee
}

.summary-item-quantity .quantity-stepper .set-quantity-input {
    width: 45px;
    height: 30px;
    font-size: 1em
}

.summary-item-quantity .quantity-stepper .quantity-btn {
    width: 28px;
    height: 30px;
    font-size: 1.2em
}

/* Desktop Overrides */
@media (min-width: 769px) {
    .set-modal-overlay {
        align-items: center;
        backdrop-filter: blur(0);
        -webkit-backdrop-filter: blur(0)
    }

    .set-modal-content {
        max-width: 800px;
        height: auto;
        border-radius: var(--katooni-radius-lg);
        transform: scale(.95);
        max-height: 90vh
    }

    .set-modal-overlay.visible .set-modal-content {
        transform: scale(1)
    }

    .modal-header {
        padding: 20px 25px;
        border-bottom: 1px solid #f0f0f0;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        cursor: default
    }

    .modal-grabber {
        display: none
    }

    .modal-title {
        flex-grow: 1;
        text-align: right;
        border-bottom: none;
        padding: 0;
        margin: 0
    }

    .modal-close-btn {
        display: block !important;
        position: relative;
        top: auto;
        left: auto;
        border-radius: var(--katooni-radius-md) !important;
        font-size: 20px
    }

    .modal-body {
        display: block;
        padding: 0;
        overflow: hidden
    }

    .modal-content-grid {
        display: grid;
        grid-template-columns:4fr 5fr;
        gap: 30px;
        padding: 20px 25px;
        align-items: start
    }

    .modal-image-column {
        height: auto;
        max-height: none;
        margin-bottom: 0
    }

    .modal-details-column {
        overflow-y: auto;
        height: 300px;
        max-height: calc(90vh - 200px)
    }

    .modal-action-bar {
        justify-content: flex-end;
        gap: 15px;
        padding: 15px 25px
    }

    .modal-price {
        order: 1;
        text-align: left
    }

    .confirm-selection-btn {
        order: 1;
        flex-grow: 0
    }
}

/* FIX: Revert main page layout on mobile */
@media (max-width: 992px) {
    .set-top-section {
        grid-template-columns:1fr !important
    }
}

@media (max-width: 768px) {
    .set-items-grid {
        grid-template-columns:1fr 1fr !important;
        gap: 15px !important
    }
}

/*archive product sets*/
.product-set-title {
    position: absolute;
    z-index: 10;
    right: 0;
    bottom: 0;
    margin-bottom: 0;
    padding: 50px 0 10px 0;
    text-align: center;
    background: linear-gradient(360deg, #00000091, transparent);
    width: 100%;
    color: #fff;
}

.archive-sets-page {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    margin: 30px 0 20px 0;
}

.product-set-item img {
    width: 100%;
    border-radius: 16px;
}

.product-set-item a {
    display: block;
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
}
article.product-set-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 12px 0 #7b869621;
    padding: 5px;
}
.aparat-video-wrapper iframe {
    width: 100%;
    max-width: 800px !important;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 12px 0 #7b869621;
}
.aparat-video-wrapper {
    display: flex;
    margin: 30px auto;
    justify-content: center;
}
.stock-filter label {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-direction: row-reverse;
    justify-content: space-between;
    font-size: 11px;
}

/* ==================================================================*/
/* Single Product Rate Section */
/* ==================================================================*/
.container-progress {
    max-width: 350px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    margin-inline: auto;
    gap: 10px;
    /* anything you want */
}

.container-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.box-title {
    font-size: 14px;
    font-weight: 700;
}

progress {
    direction: ltr;
    width: 100%;
    height: 10px;
}

progress[value] {
    --color: #faa61a; /* the progress color */
    --background: #d8d8d8; /* the background color */

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    margin: 0 10px;
    border-radius: 10em;
    background: var(--background);
}
progress[value]::-webkit-progress-bar {
    border-radius: 10em;
    background: var(--background);
}
progress[value]::-webkit-progress-value {
    border-radius: 10em;
    background: var(--color);
}
progress[value]::-moz-progress-bar {
    border-radius: 10em;
    background: var(--color);
}

.box-subtitle {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 12px;
}

.box-subtitle span {
    display: flex;
    width: auto;
}


/* ==================================================================*/
/* Single size */
/* ==================================================================*/
.wd-product.ks-single-size .ksh-product-cart {
    box-shadow: 0 0 11px 3px rgba(255, 0, 0, 0.59);
}
.wd-product.ks-single-size .wd-add-btn a {
    background-color: #000 !important;
}
.wd-product.ks-single-size .product-label.onsale {
    background-color: #000 !important;
}


.upsell-products-images .disabled {
    filter: grayscale(1);
    pointer-events: none;
}
.upsell-products-images .disabled::after {
    content: ""; /* محتوای خالی برای نمایش خط */
    position: absolute; /* موقعیت‌دهی مطلق برای قرار دادن خط روی تصویر */
    top: 50%; /* قرار دادن خط در وسط عمودی */
    left: 0;
    right: 0;
    width: 100%; /* عرض کامل */
    height: 2px; /* ضخامت خط */
    background-color: rgb(173, 34, 34); /* رنگ خط (می‌توانید تغییر دهید) */
    transform: rotate(-45deg); /* اریب کردن خط با زاویه 45 درجه */
    transform-origin: center; /* نقطه چرخش در مرکز */
}


.ksh-post-footer {
    display: flex;
    justify-content: center;
}

/* ==================================================================*/
/* KS Short Description */
/* ==================================================================*/
table.ks-short-description {
    margin-bottom: 10px;
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid #E3E3E3;
    border-radius: 8px;
    overflow: hidden;
}

table.ks-short-description td {
    padding: 10px;
    border: none;
    border-bottom: 2px solid #E3E3E3;
}

table.ks-short-description tr:last-child td {
    border-bottom: none;
}

td.ks-attribute-value {
    text-align: end;
}


/* ==================================================================*/
/* Custom Add To Cart Button */
/* ==================================================================*/

.mobile-navbar-items-sec{
    background: #fff;
    z-index: 398;
    width: 94%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    margin-bottom: 10px;
    margin-inline: auto;
    border-radius: 14px;
    box-shadow: 0 0 5px 0 #00000020;
    gap: 10px;
}
.mobile-navbar{
    position: fixed;
    bottom: 0;
    z-index: 398;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.mobile-add-to-cart-modal {
    position: fixed;
    bottom: -300px;
    z-index: 399;
    background: #fff;
    padding: 15px;
    transition: all 0.3s ease;
    width: 100%;
}
.mobile-add-to-cart-modal.active{
    bottom: 0;
}
.mobile-add-to-cart-background {
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 0;
    z-index: 397;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.mobile-add-to-cart-background.active{
    opacity: 1;
    visibility: visible;
}
.mobile-navbar-background {
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 0;
    z-index: 400;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.mobile-navbar-background.active{
    opacity: 1;
    visibility: visible;
}
.wd-single-price .price{
    text-align: left;
    margin-bottom: 10px;
}

.single_add_to_cart_button {
    width: 100%;
    max-width: 190px;
}
.mobile-add-to-cart-modal .woocommerce-variation-add-to-cart {
    justify-content: space-between;
}
.variations{
    margin: 0;
}
#box-widget-icon.active{
    display:none;
}
/* ==================================================================*/
/* Mobile NavBar */
/* ==================================================================*/
.mobile-bottom-nav-bar .wd-cart-number{
    position: absolute;
    top: -5px;
    width: 15px !important;
    height: 15px !important;
    left: -5px;
    background: var(--katooni-brand-color);
    color: #fff;
    font-size: 11px !important;
    border-radius: 50%;
    font-weight: 300 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2px;
}
.mobile-bottom-nav-bar .wd-tools-element .wd-tools-icon:before {
    font-size: 22px !important;
}
.mobile-bottom-nav-bar .wd-tools-element>a {
    padding-inline: 0;
}
body.dgwt-wcas-open {
    overflow: hidden !important;
}
.dgwt-wcas-overlay {
    z-index: 999999 !important;
}
.dgwt-wcas-search-wrapp {
    z-index: 1000000 !important;
}

.flex {
    display: flex;
}
.wd-header-mobile-nav {
    display: none;
}