.plan-product {
    margin-bottom: 36%;
}
.content-area{
    margin-top: 16px;
}
.plan-product .body {
    position: relative;
    z-index: 3;
    margin-bottom: -36%;
}

.plan-product .body-inner {
    padding: 16px;
    min-height: 145px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.plan-product.kala .inner-box{
    min-height: 100px;
    background-color: var(--white_color);
    border-radius: 32px;
    -webkit-mask: linear-gradient(#fff 0 0), url(../img/exclude-bg.png);
    -webkit-mask-position: 0 calc(100% + 1px);
    -webkit-mask-repeat: no-repeat,no-repeat;
    -webkit-mask-composite: xor;
    -webkit-mask-size: 100% 100%, 80px 80px;

    mask: linear-gradient(#fff 0 0), url(../img/exclude-bg.png);
    mask-position: 0 calc(100% + 1px);
    mask-repeat: no-repeat,no-repeat;
    mask-composite: exclude;
    mask-size: 100% 100%, 80px 80px;
    transition: all 0.25s ease;
}
.plan-product.kala .inner-box-hover{
    filter: drop-shadow(-1px 2px var(--black-10)) drop-shadow(2px -1px var(--black-10));
}
.plan-product.kala .add-to-cart {
    position: absolute;
    left: 0;
    bottom: 0;
    min-width: 50px;
    width: 50px;
    height: 50px;
    font-size: 24px;
}

.plan-product.kala .add-to-cart:not(:hover) {
    background: var(--gray_color);
    color: var(--black_color);
}
.plan-product .inner {
    padding: 16px 8px;
    background-color: var(--white_color);
    border: 2px solid var(--black-10);
    border-radius: 32px;
}

.plan-product .head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 30px;
}

.plan-product .head .plan-product__image {
    width: 50px;
    height: 50px;
}

.plan-product .head .plan-product__image img,
.woocommerce ul.products li.product .plan-product .head .plan-product__image img {
    height: 100%;
    object-fit: cover;
    border-radius: 100%;
}

.plan-product .head .title-box {
    display: flex;
    flex-direction: column;
}



.plan-product .head .title-box .title {
    font-size: 16px;
    font-weight: 700;
    color: var(--black_color);
}

.plan-product .head .title-box p {
    font-size: 14px;
    font-weight: 500;
    color: var(--black-70);
    margin: 0;
}

.plan-product ul.options {
    padding-bottom: 12px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--black-10);
    padding-right: 0;
}

.plan-product .options li:not(:last-child) {
    margin-bottom: 16px;
}

.plan-product .options li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.plan-product .options li i {
    font-size: 24px;
    color: var(--primary_color);
}

.plan-product .options li span {
    font-size: 14px;
    font-weight: 300;
    color: var(--black_color);
}





.plan-product.beauty{
    margin-bottom: 140px;
}
.plan-product.beauty .inner{
    padding: 16px 8px 8px;
    border: 0;
}
.plan-product.beauty .head{
    border-bottom: 1px solid var(--black-10);
    padding-bottom: 20px;
    margin-bottom: 30px;
}
.plan-product.beauty .body-inner{
    padding: 0;
}
.plan-product.beauty ul.options{
    padding: 20px;
    background-color: var(--white_color);
    border-radius: 24px;
    border: 0;
    margin-bottom: 0;
    position: relative;
}
.plan-product.beauty ul.options:before{
    content:'';
    width: calc(100% + 16px);
    height: 100%;
    background-color: var(--gray_color);
    border-radius: 24px;
    position: absolute;
    left: -8px;
    top: -8px;
    z-index: -1;
}

.plan-product.beauty .body{
    background: linear-gradient(to bottom, transparent 30%, var(--white_color) 100%);
    padding: 8px;
    border-radius: 24px;
    margin-bottom: -140px;
}


.store-reg-plan-list ul li.product .plan-product.beauty .price,
.woocommerce ul.products li.product .plan-product.beauty .price{
    width: 100%;
    padding: 12px;
    border-top: 1px solid var(--black-10);
    height: auto;
}


.plan-product.pooshan .body{
    background-color: var(--white_color);
    border-radius: 32px;
    padding: 14px 14px 12px;
    border: 1px solid var(--black-10);
}

/*.store-reg-plan-list ul li.product .plan-product.pooshan .price,*/
/*.woocommerce ul.products li.product .plan-product.pooshan .price{*/
/*    width: calc(100% - 80px);*/
/*    padding-right: 8px;*/
/*}*/
.plan-product.pooshan .body-inner{
    padding: 0;
    min-height: auto;
}
.plan-product.pooshan ul.options{
    margin: 2px 10px 8px;
}
.plan-product.pooshan .price-btn-wrap{
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--black-10);
    border-radius: 16px;
    padding: 8px;
}
.plan-product.pooshan .btn-primary{
    width: 72px;
    height: 48px;
    font-size: 20px;
}











.plan-product .price,
.store-reg-plan-list ul li.product .plan-product .price,
.woocommerce ul.products li.product .plan-product .price {
    font-weight: 500;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    margin: 0;
    height: 42px;
    justify-content: center;
    width: max-content;
}
.plan-product .price ins,
.store-reg-plan-list ul li.product .plan-product .price ins,
.woocommerce ul.products li.product .plan-product .price ins {
    text-decoration: none;
}

.plan-product .price del bdi,
.store-reg-plan-list ul li.product .plan-product .price del bdi,
.woocommerce ul.products li.product .plan-product .price del bdi {
    font-size: 14px;
    font-weight: 500;
}


.plan-product .price del .woocommerce-Price-currencySymbol,
.store-reg-plan-list ul li.product .plan-product .price del .woocommerce-Price-currencySymbol,
.woocommerce ul.products li.product .plan-product .price del .woocommerce-Price-currencySymbol {
    display: none;
}

.plan-product .price-wrap{
    width: calc(100% - 60px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.plan-product.pooshan .price-wrap{
    width: calc(100% - 75px);
}
.plan-product.beauty .price-wrap{
    width: 100%;
    padding: 12px;
    height: 67px;
}

.plan-product__discount {
    min-width: 44px;
    min-height: 32px;
    /*margin-inline-start: auto;*/
    padding: 6px 10px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: var(--primary_color);
    color: var(--white_color);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}
.kala .plan-product__discount{
    min-width: 36px;
    min-height: 33px;
    padding: 9px 8px;
    border-radius: 2px 8px 8px 2px;
}

.pooshan .plan-product__discount{
    border-radius: var(--btn-radius-mirror);
    min-width: 36px;
    min-height: 36px;
}
.beauty .plan-product__discount{
    border-radius: 100%;
    min-width: 33px;
    min-height: 33px;
    padding: 0;
    font-size: 12px;
}

.seller-plans-grid .pooshan .plan-product__discount{
    display: none;
}

/* آرشیو فروشگاه و دسته‌بندی‌های ووکامرس */
.post-type-archive-product #primary,
.tax-product_cat #primary {
    width: min(1320px, calc(100% - 32px));
    margin: 48px auto;
}

.post-type-archive-product .woocommerce-products-header,
.tax-product_cat .woocommerce-products-header {
    margin-bottom: 28px;
}

.post-type-archive-product .woocommerce-products-header__title,
.tax-product_cat .woocommerce-products-header__title {
    color: var(--black_color);
    font-size: clamp(24px, 3vw, 38px);
    font-weight: var(--title_font_weight);
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap: 24px;
    clear: both;
    margin: 0;
    padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none
}

.woocommerce ul.products li.product {
    width: auto !important;
    margin: 0 !important;
    float: none !important;
}

.woocommerce ul.products li.product-category a {
    display: block;
    height: 100%;
    padding: 14px;
    border: 1px solid var(--black-10);
    border-radius: 28px;
    background: var(--white_color);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.woocommerce ul.products li.product-category a:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--primary_color) 35%, transparent);
    box-shadow: 0 18px 40px color-mix(in srgb, var(--black_color) 10%, transparent);
}

.woocommerce ul.products li.product-category img {
    width: 100%;
    /*aspect-ratio:4/3;*/
    margin: 0 0 16px;
    border-radius: 20px;
    object-fit: cover;
    background: var(--gray_color);
}

.woocommerce ul.products li.product-category .woocommerce-loop-category__title {
    margin: 0;
    padding: 4px 6px 8px;
    color: var(--black_color);
    font-size: 17px;
    font-weight: 700;
}

.woocommerce ul.products li.product-category mark {
    background: transparent;
    color: var(--black-50);
    font-size: 12px;
}

/* صفحه تکی کوتاه پلن */
.torob-wc-single {
    padding-top: 52px;
    padding-bottom: 72px;
}

.torob-wc-product__hero {
    display: grid;
    grid-template-columns:minmax(280px, .8fr) minmax(0, 1.2fr);
    gap: 48px;
    padding: 32px;
    border: 1px solid var(--black-10);
    border-radius: 36px;
    background: var(--white_color);
    box-shadow: 0 24px 60px color-mix(in srgb, var(--black_color) 7%, transparent);
}

.torob-wc-product__media {
    display: flex;
    min-height: 360px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 28px;
    background: var(--gray_color);
}

.torob-wc-product__media img {
    width: 100%;
    height: 100%;
    max-height: 460px;
    object-fit: contain;
}

.torob-wc-product__summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.torob-wc-product__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.torob-wc-product__categories a {
    padding: 7px 12px;
    border-radius: var(--btn-radius);
    background: var(--gray_color);
    font-size: 12px;
    font-weight: 600;
}

.torob-wc-product__summary h1 {
    margin: 0 0 12px;
    color: var(--black_color);
    font-size: clamp(25px, 3vw, 42px);
    font-weight: var(--title_font_weight);
}

.torob-wc-product__lead {
    margin: 0 0 24px;
    color: var(--black-70);
    font-size: 15px;
    line-height: 2;
}

.torob-wc-product__options {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
    margin: 0 0 28px;
    padding: 20px;
    border-radius: 24px;
    background: var(--gray_color);
}

.torob-wc-product__options li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--black_color);
    font-size: 14px;
}

.torob-wc-product__options i {
    color: var(--primary_color);
    font-size: 21px;
}

.torob-wc-product__purchase {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--black-10);
}

.torob-wc-product__price {
    color: var(--primary_color);
    font-size: 20px;
    font-weight: 700;
}

.torob-wc-product__price del {
    display: block;
    color: var(--black-50);
    font-size: 13px;
    font-weight: 500;
}

.torob-wc-product__price ins {
    text-decoration: none
}

.torob-wc-product__purchase form.cart {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
}

.torob-wc-product__purchase .quantity .qty {
    width: 72px;
    height: var(--btn-height);
    /*border: 1px solid var(--black-10);*/
    border-radius: var(--btn-radius);
    text-align: center;
}

.torob-wc-product__purchase .single_add_to_cart_button {
    min-height: var(--btn-height);
    padding: 10px 26px !important;
    border: 0 !important;
    border-radius: var(--btn-radius) !important;
    background: var(--btn-bg-color-gradient) !important;
    color: var(--btn-color) !important;
    font-weight: 700 !important;
}

.torob-wc-product__content {
    margin-top: 28px;
    padding: 28px 32px;
    border: 1px solid var(--black-10);
    border-radius: 30px;
    background: var(--white_color);
    color: var(--black-70);
    line-height: 2.1;
}

.torob-wc-product__content h2,
.torob-wc-section-heading h2 {
    margin: 0 0 14px;
    color: var(--black_color);
    font-size: 22px;
    font-weight: var(--title_font_weight);
}

.torob-wc-product__content p:last-child {
    margin-bottom: 0
}

.torob-wc-related {
    margin-top: 52px
}

.torob-wc-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.torob-wc-section-heading h2 {
    margin-bottom: 4px
}

.torob-wc-section-heading span {
    color: var(--black-50);
    font-size: 13px;
}

.torob-wc-section-heading > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}


.woocommerce-products-header__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
}

.woocommerce .woocommerce-result-count {
    display: none;
}
.woocommerce .woocommerce-ordering select {
    appearance: none;
    min-height: 56px;
    padding: 14px 52px 14px 20px;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 32px;
    background: transparent !important;
    color: var(--torob-ticket-dark);
    box-shadow: none !important;
    font-family: inherit;
    font-size: 16px;
}

.woocommerce .woocommerce-ordering {
    position: relative;
    display: flex;
    min-height: 56px;
    align-items: flex-start;
    margin-bottom: 20px;
    border-radius: 32px;
    background: var(--gray_color);
    width: max-content;
    float: unset;
    max-width: 100%;
}

.woocommerce .woocommerce-ordering:before {
    content: "\ed1b";
    font-family: 'kalazone' !important;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 16px;
    pointer-events: none;
}














@media (max-width: 991px) {
    .woocommerce ul.products {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }

    .torob-wc-product__hero {
        grid-template-columns:1fr;
        gap: 28px;
    }

    .torob-wc-product__media {
        min-height: 280px
    }
}

@media (max-width: 575px) {
    .post-type-archive-product #primary,
    .tax-product_cat #primary {
        width: min(100% - 24px, 1320px);
        margin: 28px auto
    }

    .woocommerce ul.products {
        grid-template-columns:1fr
    }

    .torob-wc-single {
        padding-top: 24px;
        padding-bottom: 48px
    }

    .torob-wc-product__hero {
        padding: 18px;
        border-radius: 26px
    }

    .torob-wc-product__media {
        min-height: 230px;
        border-radius: 20px
    }

    .torob-wc-product__options {
        grid-template-columns:1fr
    }

    .torob-wc-product__purchase {
        align-items: stretch;
        flex-direction: column;
    }

    .torob-wc-product__purchase form.cart {
        justify-content: space-between
    }

    .torob-wc-product__content {
        padding: 22px 20px
    }

    .torob-wc-section-heading {
        align-items: flex-start
    }
}
