/*
Theme Name:   hello-elementor-child
Template:     hello-elementor
Version:      1.0.0
Author:       kiarash rahimi
Author URI:   https://kiarashrahimi.ir
Text Domain:  kavian-child-theme
*/

/* Peyda Font - Anti Cache Version */

/* Thin - 100 */
@font-face {
    font-family: 'Peyda';
    src: url('/wp-content/themes/hello-elementor-child/assets/fonts/PeydaWeb-Thin.woff2?v=1') format('woff2'),
         url('/wp-content/themes/hello-elementor-child/assets/fonts/PeydaWeb-Thin.woff?v=1') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

/* ExtraLight - 200 */
@font-face {
    font-family: 'Peyda';
    src: url('/wp-content/themes/hello-elementor-child/assets/fonts/PeydaWeb-ExtraLight.woff2?v=1') format('woff2'),
         url('/wp-content/themes/hello-elementor-child/assets/fonts/PeydaWeb-ExtraLight.woff?v=1') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

/* Light - 300 */
@font-face {
    font-family: 'Peyda';
    src: url('/wp-content/themes/hello-elementor-child/assets/fonts/PeydaWeb-Light.woff2?v=1') format('woff2'),
         url('/wp-content/themes/hello-elementor-child/assets/fonts/PeydaWeb-Light.woff?v=1') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Regular - 400 */
@font-face {
    font-family: 'Peyda';
    src: url('/wp-content/themes/hello-elementor-child/assets/fonts/PeydaWeb-Regular.woff2?v=1') format('woff2'),
         url('/wp-content/themes/hello-elementor-child/assets/fonts/PeydaWeb-Regular.woff?v=1') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Medium - 500 */
@font-face {
    font-family: 'Peyda';
    src: url('/wp-content/themes/hello-elementor-child/assets/fonts/PeydaWeb-Medium.woff2?v=1') format('woff2'),
         url('/wp-content/themes/hello-elementor-child/assets/fonts/PeydaWeb-Medium.woff?v=1') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* SemiBold - 600 */
@font-face {
    font-family: 'Peyda';
    src: url('/wp-content/themes/hello-elementor-child/assets/fonts/PeydaWeb-SemiBold.woff2?v=1') format('woff2'),
         url('/wp-content/themes/hello-elementor-child/assets/fonts/PeydaWeb-SemiBold.woff?v=1') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Bold - 700 */
@font-face {
    font-family: 'Peyda';
    src: url('/wp-content/themes/hello-elementor-child/assets/fonts/PeydaWeb-Bold.woff2?v=1') format('woff2'),
         url('/wp-content/themes/hello-elementor-child/assets/fonts/PeydaWeb-Bold.woff?v=1') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ExtraBold - 800 */
@font-face {
    font-family: 'Peyda';
    src: url('/wp-content/themes/hello-elementor-child/assets/fonts/PeydaWeb-ExtraBold.woff2?v=1') format('woff2'),
         url('/wp-content/themes/hello-elementor-child/assets/fonts/PeydaWeb-ExtraBold.woff?v=1') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Black - 900 */
@font-face {
    font-family: 'Peyda';
    src: url('/wp-content/themes/hello-elementor-child/assets/fonts/PeydaWeb-Black.woff2?v=1') format('woff2'),
         url('/wp-content/themes/hello-elementor-child/assets/fonts/PeydaWeb-Black.woff?v=1') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* فونت سراسری برای همه المنت‌ها از جمله ووکامرس */
*, body, input, textarea, select, button, .woocommerce {
    font-family: 'Peyda', sans-serif !important;
}

/*=============style==============*/

::selection{
    background-color: #7C3AED33 !important; 
}

img{
    border-radius: 10px !important;
}

#kavian-btn-header-hover{
    transition: 480ms !important;
    cursor: pointer !important;
    border-radius: 10px !important;
}

#kavian-btn-header-hover:hover, .e-search-input-wrapper .e-search-submit:hover, .global-button:hover{
    box-shadow: 1px 1px 6px 1px #7C3AED33 !important;
}

#kavian-btn-header-hover .icon-iconsax-user-6a38c8915083::before, #kavian-btn-header-hover .elementor-icon-wrapper .elementor-icon .icon-iconsax-search-8e7adb4f07e7::before, .e-search-submit .icon-iconsax-search-8e7adb4f07e7::before {
    color: #7C3AED !important;
    font-size: 20px !important;
}

.icon-iconsax-category-fb6c037f9d0e::before{
    color: #4D5057 !important;
}

/*search box and menu*/

.e-search-submit:hover {
    box-shadow: 0px 0px 8px 2px #f2ebff;
}

.kaviansearchbox{
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: fixed !important;
    top:0 !important;
    right: -100% !important;
    z-index: 99999 !important;
    overflow-y: none !important;
    transition: 580ms !important;
    background-color: rgb(252, 252, 252, 0.1) !important;
    backdrop-filter: blur(20px) !important;
}


.kaviansearchbox.active{
    right: 0 !important;
}

.kavianmenumobile{
    width: 100vw !important;
    height: 100vh !important;
    position: fixed !important;
    top:0 !important;
    right: -100% !important;
    z-index: 9999 !important;
    overflow-y: scroll !important;
    transition: 500ms !important;
}

.kavianmenumobile.active{
    right: 0 !important;
}

/*user navbar*/

.q_access .icon-iconsax-shopping-bag-9b9f1309ab6a::before, q_access .icon-iconsax-shop-3ead1b80e220::before, .q_access .icon-iconsax-user-6a38c8915083::before, .q_access .icon-iconsax-search-8e7adb4f07e7::before{
    font-size: 22px !important;
    color: #8c8e92 !important;
}

.icon-iconsax-shop-3ead1b80e220::before {
  color: #8e8e8e !important;
}

/*تکی*/

.elementor-element.elementor-element-749535a.elementor-add-to-cart--layout-stacked.elementor-add-to-cart--align-justify.button-shadow-kav.elementor-widget.elementor-widget-woocommerce-product-add-to-cart {
  width: 100% !important;
}


/* گالری محصولات ووکامرس در سمت راست عکس اصلی */
@media (min-width: 768px) {
    .single-product div.product .woocommerce-product-gallery {
        display: flex !important;
        flex-direction: row-reverse;
        align-items: flex-start;
        gap: 10px;
    }

    /* تصاویر کوچک گالری */
    .single-product div.product
    .woocommerce-product-gallery .flex-control-thumbs {
        display: flex !important;
        flex-direction: column;
        gap: 8px;
        width: 80px !important;
        flex: 0 0 80px;
        margin: 0 !important;
        padding: 0 !important;
    }

    .single-product div.product
    .woocommerce-product-gallery .flex-control-thumbs li {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
    }

    /* عکس اصلی */
    .single-product div.product
    .woocommerce-product-gallery .flex-viewport {
        flex: 1 1 auto;
        min-width: 0;
    }

    .single-product div.product .woocommerce-product-gallery {
        gap: 0 !important;
        column-gap: 0 !important;
    }

    .single-product div.product
    .woocommerce-product-gallery .flex-control-thumbs {
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    .single-product div.product
    .woocommerce-product-gallery .flex-viewport {
        margin: 0 !important;
        padding: 0 !important;
    }

    .single-product div.product
    .woocommerce-product-gallery .flex-viewport img {
        display: block;
    }

}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product .stock {
  color: #8b8b8b;
  padding: 0px 20px !important;
}

.single_add_to_cart_button.button.alt, .woo-kav-cart .wc-proceed-to-checkout{
    box-shadow: 0px 0px 12px 2px #b586ffeb !important;
    outline: 0 !important;
}

.price {
  margin-bottom: 0 !important;
}

ins {
  text-decoration: none !important;
}

simple-translate-system-theme, simple-translate-panel, div#simple-translate{
    display: none !important;
}

.variations label{
    padding-top: 20px !important;
}

/*ریست جدول*/

table tbody tr:nth-child(odd),
table tbody tr:nth-child(even) {
    background-color: transparent !important;
}

table tbody tr,
table tbody tr td,
table tbody tr th {
    background-color: transparent !important;
}

.icon-iconsax-star-33309534f250::before,.icon-iconsax-clipboard-text-f8d0bf607903::before{
  color: #53565d !important;
}

/*============== scroll ================*/

/* Horizontal Loop Grid */
.kav-related-scroll .elementor-loop-container.elementor-grid {
    display: grid !important;
    grid-template-columns: none !important;
    grid-template-rows: auto !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 25% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

/* Desktop: 4 Cards */
@media (min-width: 1025px) {
    .kav-related-scroll .elementor-loop-container.elementor-grid {
        grid-auto-columns: 25% !important;
    }
}

/* Tablet: 3 Cards */
@media (min-width: 768px) and (max-width: 1024px) {
    .kav-related-scroll .elementor-loop-container.elementor-grid {
        grid-auto-columns: 33.333333% !important;
    }
}

/* Mobile: 1 Card */
@media (max-width: 767px) {
    .kav-related-scroll .elementor-loop-container.elementor-grid {
        grid-auto-columns: 94% !important;
    }
}

/*//*//*/ ======== product cart ======== /*//*//*/

.elementor-element.elementor-element-f40af99.elementor-widget-divider--view-line.elementor-widget.elementor-widget-divider, .woo-kav-product-cart .price del .woocommerce-Price-amount bdi .woocommerce-Price-currencySymbol{
    display: none !important;
}

.elementor-element.elementor-element-318c92c.e-con-full.e-flex.e-con.e-parent {
    padding: 4px !important;
}

.woo-kav-product-cart{
    border-radius: 10px !important;
    border: 1px solid #CDCDCD !important;
    padding: 10px 10px 0px 10px !important;
}

.elementor-element.elementor-element-7f5ca19.e-con-full.woo-kav-product-text.e-flex.e-con.e-child {
    gap: 10px !important;
}

.woo-kav-product-Technical{
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 1px solid #CDCDCD !important;
    padding: 12px 0px !important;
}

.woo-kav-product-title p{
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #212123 !important;
}

.woo-kav-product-price p{
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: #212123 !important;
}

.woo-kav-product-cart .price .woocommerce-Price-amount bdi{
    display: flex !important;
    flex-direction: column !important;
}

.woo-kav-product-summery, .woo-kav-product-cart .price .woocommerce-Price-amount bdi .woocommerce-Price-currencySymbol{
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    color: #8C8E92 !important;
}

.woo-kav-product-cart .price del .woocommerce-Price-amount bdi{
    font-size: 0.8rem !important;
}

.woo-kav-product-cart .price{
    display: flex !important;
    flex-direction: row-reverse !important;
    gap: 4px !important;
}

.woo-kav-product-summery{
    margin-bottom: 10px !important;
}

.woo-kav-product-text{
    padding: 2px !important;
}

.woo-kav-product-button .elementor-button.elementor-button-link.elementor-size-sm{
    background-color: #7C3AED !important;
    border-radius: 10px !important;
    padding: 12px !important;
}

.woo-kav-product-button .elementor-button.elementor-button-link.elementor-size-sm .icon.icon-arrow-left{
  font-size: 17px;
  font-weight: bold !important;
}

.woo-kav-product-archive .elementor-loop-container {
    align-items: stretch !important;
}

.woo-kav-product-archive .elementor-loop-container > .e-loop-item {
    display: flex !important;
}

.woo-kav-product-archive .woo-kav-product-cart {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.woo-kav-product-cart:hover {
    box-shadow: 0px 0px 8px 2px #8f8f8f47;
}

@media (max-width: 767px) {

    .elementor-element.elementor-element-b4a3323.e-con-full.woo-kav-product-cart.e-flex.e-con.e-child {
        flex-flow: row !important;
        align-items: center !important;
    }

    .elementor-element.elementor-element-78bcec1.woo-kav-product-image.elementor-widget.elementor-widget-theme-post-featured-image.elementor-widget-image {
        width: 35% !important;
    }

    .woo-kav-product-title p{
        font-size: 13.5px !important;
    }

    .woo-kav-product-summery #text{
        font-size: 9.5px !important;
    }

    .woo-kav-product-price p{
        font-size: 13px !important;
    }

    .woo-kav-product-button .elementor-button.elementor-button-link.elementor-size-sm .icon.icon-arrow-left {
        font-size: 13px !important;
    }
    
    .elementor-element.elementor-element-7f5ca19.e-con-full.woo-kav-product-text.e-flex.e-con.e-child {
        gap: 2px !important;
    }
    .woo-kav-product-Technical{
        padding: 6px 0px !important;
    }

    .woo-kav-product-cart .price del .woocommerce-Price-amount bdi{
        font-size: 10px !important;
    }

    .woo-kav-product-archive .elementor-element.elementor-element-318c92c.e-con-full.e-flex.e-con.e-parent {
        padding: 2px 0px !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .woo-kav-product-title p{
        font-size: 14.5px !important;
    }

    .woo-kav-product-summery #text{
        font-size: 10px !important;
    }

    .woo-kav-product-price p{
        font-size: 14px !important;
    }

    .woo-kav-product-button .elementor-button.elementor-button-link.elementor-size-sm .icon.icon-arrow-left {
        font-size: 14px !important;
    }
    
    .elementor-element.elementor-element-7f5ca19.e-con-full.woo-kav-product-text.e-flex.e-con.e-child {
        gap: 2px !important;
    }

    .woo-kav-product-cart .price del .woocommerce-Price-amount bdi{
        font-size: 12px !important;
    }

    .woo-kav-product-archive .elementor-element.elementor-element-318c92c.e-con-full.e-flex.e-con.e-parent {
        padding: 2px !important;
    }
}

/*//*//*/ ======== product archive======== /*//*//*/

.woo-kav-menu-max-width{
    max-width: 80% !important;
}

.woo-kav-product-archive{
    margin-top: 10px !important;
}

.woo-kav-menu-moblie nav ul{
    overflow-x: scroll !important;
    flex-wrap: nowrap !important; 
}

/*//*//*/ ======== cart ======== /*//*//*/

.woo-kav-cart .woocommerce-shipping-calculator, .woo-kav-cart .woocommerce-shipping-destination{
    display: none !important;
}

.woocommerce-cart .wc-proceed-to-checkout{
    border-radius: 10px !important;
    padding: 0 !important;
}

.woo-kav-cart elementor-widget-container {
    width: 100% !important;
}

.woo-kav-cart .woocommerce-cart-form {
    width: 100% !important;
}

.woo-kav-cart .e-cart__container {
    display: flex;
    justify-content: space-between !important;
    gap: 10px !important;
}

.elementor-element.elementor-element-32bb761.woo-kav-cart.e-cart-layout-two-column.elementor-widget.elementor-widget-woocommerce-cart {
    width: 100% !important;
}


/* =========================================
   KAVIAN CART - LAYOUT & PRODUCT CARDS
========================================= */

/* 01 - Main Elementor Cart Layout */

.woocommerce-cart .e-cart__container {
    display: grid !important;
    grid-template-columns: minmax(0, 7fr) minmax(260px, 3fr) !important;
    direction: rtl;
    align-items: start;
    gap: 24px !important;
    width: 100%;
}

.woocommerce-cart .e-cart__column {
    width: 100% !important;
    min-width: 0;
    max-width: none !important;
    margin: 0 !important;
}

.woocommerce-cart .e-cart__column-start,
.woocommerce-cart .e-cart__column-end {
    grid-row: 1;
}

.woocommerce-cart .e-cart__column-start {
    grid-column: 1;
}

.woocommerce-cart .e-cart__column-end {
    grid-column: 2;
}

.woocommerce-cart .e-cart__column-inner {
    width: 100%;
    max-width: none !important;
    position: static;
}

/* 02 - Product Table Reset */

.woocommerce-cart .woocommerce-cart-form__contents {
    width: 100% !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: fixed;
}

.woocommerce-cart .woocommerce-cart-form__contents thead {
    display: none !important;
}

.woocommerce-cart .woocommerce-cart-form__contents tbody {
    display: block;
    width: 100%;
}

/* 03 - Product Card */

.woocommerce-cart tr.cart_item {
    direction: ltr !important;

    display: grid !important;

    grid-template-columns:
        48px
        160px
        minmax(120px, 1fr)
        minmax(140px, 1fr);

    grid-template-rows: 190px 82px;

    grid-template-areas:
        "remove thumbnail name name"
        "subtotal subtotal quantity price";

    align-items: center;

    width: 100%;
    box-sizing: border-box;

    position: relative;

    padding: 16px 20px;

    margin: 0 0 18px !important;

    border: 1px solid #e7e7ed !important;
    border-radius: 16px;

    background: #fff;

    overflow: hidden;
}

.woocommerce-cart tr.cart_item > td {
    display: block !important;

    min-width: 0;
    width: 100%;

    box-sizing: border-box;

    direction: rtl;

    padding: 8px !important;

    border: 0 !important;

    position: relative;
    z-index: 1;
}

/* 04 - Remove Button */

.woocommerce-cart tr.cart_item .product-remove {
    grid-area: remove;
    align-self: start;
    justify-self: center;
}

.woocommerce-cart tr.cart_item .product-remove a.remove {
    width: 40px;
    height: 40px;

    display: flex !important;
    align-items: center;
    justify-content: center;

    font-size: 0 !important;
    color: transparent !important;

    background: #fff;
    border-radius: 10px;

    transition: background .2s ease;

    position: relative;
}

.woocommerce-cart tr.cart_item .product-remove a.remove::before {
    content: "";
    display: block;

    width: 24px;
    height: 24px;

    background-color: #9297a0;

    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 5L19 19M5 19L19 5' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;

    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 5L19 19M5 19L19 5' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.woocommerce-cart tr.cart_item .product-remove a.remove:hover {
    background: #f7f7f9;
}

.woocommerce-cart tr.cart_item .product-remove a.remove:hover::before {
    background-color: #777e89;
}

/* 05 - Product Image */

.woocommerce-cart tr.cart_item .product-thumbnail {
    grid-area: thumbnail;
}

.woocommerce-cart tr.cart_item .product-thumbnail img {
    display: block;

    width: 150px !important;
    max-width: 100%;

    height: auto;

    margin: auto;
}

/* 06 - Product Name & Details */

.woocommerce-cart tr.cart_item .product-name {
    grid-area: name;

    text-align: right;

    font-size: 16px;
    font-weight: 600;

    line-height: 1.9;
}

.woocommerce-cart tr.cart_item .product-name > a {
    color: #25252b;
    text-decoration: none;
}

/* Attribute chips: label + value as one joined chip */

.woocommerce-cart tr.cart_item .product-name dl.variation {
    display: flex !important;
    flex-wrap: wrap;

    align-items: center;

    direction: rtl;

    gap: 0;

    margin: 12px 0 0 !important;

    font-size: 13px;
    font-weight: 400;
}

.woocommerce-cart tr.cart_item .variation dt,
.woocommerce-cart tr.cart_item .variation dd {
    margin: 0 !important;

    padding: 8px 10px;

    background: #f5f1ff;

    color: #777080;

    line-height: 1.5;
}

.woocommerce-cart tr.cart_item .variation dt {
    border-radius: 0 24px 24px 0;
    padding-left: 3px;
}

.woocommerce-cart tr.cart_item .variation dd {
    border-radius: 24px 0 0 24px;
    padding-right: 3px;

    margin-left: 10px !important;
}

.woocommerce-cart tr.cart_item .variation dd p {
    margin: 0 !important;
}

/* 07 - Bottom Divider */

.woocommerce-cart tr.cart_item::after {
    content: "";

    position: absolute;

    left: 20px;
    right: 20px;

    bottom: 98px;

    height: 1px;

    background: #ededf1;
}

/* 08 - Subtotal */

.woocommerce-cart tr.cart_item .product-subtotal {
    grid-area: subtotal;

    text-align: left;

    white-space: nowrap;

    font-size: 14px;
    font-weight: 600;
}

/* 09 - Price */

.woocommerce-cart tr.cart_item .product-price {
    grid-area: price;

    text-align: right;

    white-space: nowrap;

    font-size: 14px;
    font-weight: 600;
}

/* 10 - Custom Quantity Control */

.woocommerce-cart tr.cart_item .product-quantity {
    grid-area: quantity;

    display: flex !important;
    justify-content: center;
    align-items: center;
}

.woocommerce-cart tr.cart_item .quantity.kav-quantity-control {
    display: flex !important;

    align-items: center;
    justify-content: space-between;

    width: 116px;
    height: 46px;

    padding: 4px 7px;

    box-sizing: border-box;

    border: 1px solid #e4e4eb;
    border-radius: 13px;

    background: #fff;
}

.woocommerce-cart tr.cart_item .kav-quantity-control input.qty {
    width: 42px !important;
    height: 36px !important;

    padding: 0 !important;

    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;

    background: transparent !important;

    text-align: center;
    direction: ltr;

    font-size: 15px;
    color: #292933;

    -moz-appearance: textfield;
    appearance: textfield;
}

.woocommerce-cart tr.cart_item .kav-quantity-control input.qty::-webkit-inner-spin-button,
.woocommerce-cart tr.cart_item .kav-quantity-control input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Custom arrow buttons */

.woocommerce-cart .kav-qty-btn {
    width: 29px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 8px;

    background: transparent;

    color: #9298a3;

    cursor: pointer;

    transition: .2s ease;
}

.woocommerce-cart .kav-qty-btn:hover {
    background: #f5f1ff;
    color: #7c3aed;
}

.woocommerce-cart .kav-qty-btn svg {
    width: 17px;
    height: 17px;

    display: block;

    stroke: currentColor;
    stroke-width: 2;
    fill: none;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.woocommerce-cart .kav-qty-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* 11 - Remove Extra Actions Row */

.woocommerce-cart .woocommerce-cart-form__contents tbody > tr:not(.cart_item) {
    display: none !important;
}

/* 12 - Responsive */

@media (max-width: 767px) {

    .woocommerce-cart .e-cart__container {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 18px !important;
    }

    .woocommerce-cart .e-cart__column-start {
        grid-column: 1;
        grid-row: 1;
    }

    .woocommerce-cart .e-cart__column-end {
        grid-column: 1;
        grid-row: 2;
    }

    .woocommerce-cart tr.cart_item {
        grid-template-columns: 38px 95px minmax(0, 1fr);

        grid-template-rows: 125px 65px 65px;

        grid-template-areas:
            "remove thumbnail name"
            "price price price"
            "subtotal subtotal quantity";

        padding: 10px;
    }

    .woocommerce-cart tr.cart_item .product-thumbnail img {
        width: 90px !important;
    }

    .woocommerce-cart tr.cart_item .product-name {
        font-size: 13px;
    }

    .woocommerce-cart tr.cart_item .product-price {
        text-align: center;
    }

    .woocommerce-cart tr.cart_item::after {
        bottom: 145px;
    }
}

@media (min-width: 1025px) {
    .e-cart__column-start {
        position: sticky;
        top: 20px;
        align-self: flex-start;
    }
}

/* حذف پس‌زمینه قرمز حالت کلیک دکمه‌های + و - */
.kav-qty-btn:active, .kav-qty-btn:focus, .kav-qty-btn:hover { 
    background-color: transparent !important;
    color: inherit !important; 
    box-shadow: none !important;
}

/* =========================================
   KAVIAN CART - MOBILE RESPONSIVE
========================================= */

@media (max-width: 767px) {

    /* ترتیب محصولات و خلاصه سفارش */
    .e-cart__container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .e-cart__column.e-cart__column-start,
    .e-cart__column.e-cart__column-end {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        min-width: 0;
    }

    .e-cart__column-end .e-cart__column-inner {
        position: static;
        width: 100%;
    }

    .e-cart__column-end .cart_totals {
        width: 100%;
    }

    /* حذف عنوان ستون‌ها */
    .woocommerce-cart-form table.shop_table thead {
        display: none;
    }

    /* کارت محصول */
    .woocommerce-cart-form tr.cart_item {
        display: grid;
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 10px;
        position: relative;
        padding: 10px;
        margin-bottom: 12px;
        border: 1px solid #eee;
        border-radius: 12px;
        background: #fff;
    }

    .woocommerce-cart-form tr.cart_item td {
        display: block;
        width: auto;
        padding: 0;
        border: 0;
        text-align: right;
    }

    /* تصویر محصول */
    .woocommerce-cart-form tr.cart_item .product-thumbnail {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
    }

    .woocommerce-cart-form tr.cart_item .product-thumbnail img {
        width: 82px;
        height: 82px;
        object-fit: contain;
        border-radius: 8px;
    }

    /* نام محصول و ویژگی‌ها */
    .woocommerce-cart-form tr.cart_item .product-name {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        min-width: 0;
        padding: 0 !important;
        text-align: right;
        direction: rtl;
    }

    .woocommerce-cart-form tr.cart_item .product-name::before {
        display: none !important;
        content: none !important;
    }

    .woocommerce-cart-form tr.cart_item .product-name > a {
        display: block;
        width: 100%;
        margin: 0;
        text-align: right;
        line-height: 1.8;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .woocommerce-cart-form tr.cart_item .product-name dl.variation {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin: 8px 0 0;
    }

    .woocommerce-cart-form tr.cart_item .product-name dl.variation dt {
        display: none;
    }

    .woocommerce-cart-form tr.cart_item .product-name dl.variation dd {
        display: flex;
        align-items: center;
        gap: 2px;
        margin: 0;
        padding: 3px 7px;
        border: 1px solid #CDCDCD;
        border-radius: 10px;
        color: #8C8E92;
        font-size: 11px;
    }

    .woocommerce-cart-form tr.cart_item .product-name dl.variation dd p {
        margin: 0;
    }

    /* قیمت، تعداد و جمع */
    .woocommerce-cart-form tr.cart_item .product-price,
    .woocommerce-cart-form tr.cart_item .product-quantity,
    .woocommerce-cart-form tr.cart_item .product-subtotal {
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 9px;
        border-top: 1px solid #f1f1f1;
        font-size: 13px;
    }

    .woocommerce-cart-form tr.cart_item .product-price {
        grid-row: 2;
    }

    .woocommerce-cart-form tr.cart_item .product-quantity {
        grid-row: 3;
    }

    .woocommerce-cart-form tr.cart_item .product-subtotal {
        grid-row: 4;
    }

    .woocommerce-cart-form tr.cart_item .product-price::before {
        content: "قیمت:";
        color: #8C8E92;
    }

    .woocommerce-cart-form tr.cart_item .product-quantity::before {
        content: "تعداد:";
        color: #8C8E92;
    }

    .woocommerce-cart-form tr.cart_item .product-subtotal::before {
        content: "جمع:";
        color: #8C8E92;
    }

    /* دکمه حذف */
    .woocommerce-cart-form tr.cart_item .product-remove {
        position: absolute !important;
        top: 2px !important;
        right: 8px !important;
        left: auto;
        z-index: 2;
    }

    .woocommerce-cart tr.cart_item .product-remove {
        grid-area: initial !important;
    }

    .woocommerce-cart-form tr.cart_item .product-remove a {
        color: #999 !important;
    }

    .woocommerce-cart-form__cart-item.cart_item {
        padding: 10px !important;
    }

    .product-name {
        margin-top: 50px !important;
    }

    .woo-kav-cart .product-thumbnail::before {
        display: none !important;
    }
}

/* ==========================================
   KAVIAN CART - TABLET
   Products first, summary below
========================================== */

@media (min-width: 768px) and (max-width: 1024px) {

    /* Stack cart columns */
    .woocommerce-cart .e-cart__container {
        display: flex !important;
        flex-direction: column !important;
        gap: 22px !important;
        align-items: stretch !important;
    }

    /* Product section */
    .woocommerce-cart .e-cart__column-start {
        order: 1 !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    /* Order summary below products */
    .woocommerce-cart .e-cart__column-end {
        order: 2 !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    /* Disable sticky summary */
    .woocommerce-cart .e-sticky-right-column {
        position: static !important;
        top: auto !important;
        width: 100% !important;
    }

    /* Summary width */
    .woocommerce-cart .e-cart-totals,
    .woocommerce-cart .cart_totals {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
}

/*=================================== filter ===================================*/
/* ========================================
   WOO KAV - PRICE FILTER POPUP
======================================== */

.elementor-element.elementor-element-75cd2f0.elementor-mobile-position-inline-end.woo-kav-filter-archive.elementor-view-default.elementor-position-block-start.elementor-widget.elementor-widget-icon-box {
  cursor: pointer;
}

/* Main Popup */
.woo-kav-price-popup {
    display: none !important;
    position: absolute !important;
    z-index: 99 !important;

    width: 350px !important;
    max-width: calc(100vw - 20px) !important;
    box-sizing: border-box !important;

    padding: 10px !important;

    background: #ffffff !important;
    border: 1px solid #e7d8fd !important;
    border-radius: 10px !important;

    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12) !important;

    direction: rtl !important;
}

.woo-kav-price-popup.is-open {
    display: block !important;
}


/* Popup Header */
.woo-kav-price-popup__header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;

    direction: rtl !important;
    margin-bottom: 10px !important;
}

.woo-kav-price-popup__close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 10px !important;

    cursor: pointer !important;
}

.woo-kav-price-popup__close svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
}


/* Price Filter Form */
.woo-kav-price-filter {
    width: 100% !important;
    margin: 0 !important;
}

.woo-kav-price-filter__fields {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;

    width: 100% !important;
}


/* Price Input Field */
.woo-kav-price-filter__field {
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) 28px !important;
    align-items: center !important;

    min-width: 0 !important;
    min-height: 56px !important;

    padding: 4px !important;
    box-sizing: border-box !important;

    direction: ltr !important;

    background: #ffffff !important;
    border: 1px solid #e7d8fd !important;
    border-radius: 10px !important;
}


/* Price Input */
.woo-kav-price-filter__input {
    grid-column: 2 !important;

    width: 100% !important;
    min-width: 0 !important;

    padding: 8px 2px !important;
    box-sizing: border-box !important;

    background: transparent !important;
    color: #333333 !important;

    border: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;

    font: inherit !important;
    font-size: 16px !important;
    text-align: center !important;
    direction: ltr !important;
}


/* Increase / Decrease Buttons */
.woo-kav-price-filter__step {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 28px !important;
    height: 36px !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 10px !important;

    color: #8c8e92 !important;
    cursor: pointer !important;

    box-shadow: none !important;
}

.woo-kav-price-filter__decrease {
    grid-column: 1 !important;
}

.woo-kav-price-filter__increase {
    grid-column: 3 !important;
}

.woo-kav-price-filter__step svg {
    display: block !important;

    width: 18px !important;
    height: 18px !important;

    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.7 !important;

    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.woo-kav-price-filter__step:hover {
    color: #7c3aed !important;
    background: transparent !important;
}

.woo-kav-price-filter__step:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
}


/* Submit Button */
.woo-kav-price-filter__submit {
    grid-column: 1 / -1 !important;

    width: 100% !important;
    box-sizing: border-box !important;

    padding: 10px !important;

    background: #f6f0ff !important;
    color: #7c3aed !important;

    border: 1px solid #e7d8fd !important;
    border-radius: 10px !important;

    font: inherit !important;
    cursor: pointer !important;
}

/* ==================== Checkout ==================== */

@media (min-width: 1024px){
    .elementor-widget-woocommerce-checkout-page .e-checkout__container{
        grid-template-columns: 65% auto !important;
    }
}

.elementor-widget-woocommerce-checkout-page .e-checkout__container{
    column-gap: 6px !important;
    row-gap: 6px !important;
}

.e-checkout__column-inner.e-sticky-right-column.e-sticky-right-column--active{
    display: grid !important;
    row-gap: 6px !important;
}

#billing_first_name_field {
    width: 100% !important;
}

#billing_state_field .select2-selection--single {
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: rtl;
    padding: 0 12px;
}

#billing_state_field .select2-selection__rendered {
    padding: 0 !important;
    margin: 0 !important;
    text-align: right;
    flex: 1;
}

#billing_state_field .select2-selection__arrow {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin-left: 0;
    flex-shrink: 0;
}

/* Option Hover */
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected],
.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option[data-selected="true"]{
    background-color: #7C3AED33 !important;
    color: #7C3AED !important;
}

.elementor-widget-woocommerce-checkout-page .woocommerce-checkout #payment .place-order{
    box-shadow: 0px 0px 12px 2px #b586ffeb !important;
    border-radius: 10px !important;
}
