/*
Theme Name: Shoptimizer Child
Theme URI: https://www.commercegurus.com/wordpress-themes/shoptimizer/
Description: Child theme for Shoptimizer
Author: Ashkan
Template: shoptimizer
Version: 1.0.0
Text Domain: shoptimizer-child
*/

@font-face {
    font-family: 'YekanBakh';
    src: url('./assets/fonts/YekanBakh-VF.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YekanBakhFaNum';
    src: url('./assets/fonts/YekanBakhFaNum-VF.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --wp--preset--font-family--primary: 'YekanBakh', sans-serif;
    --e-a-font-family: 'YekanBakh', sans-serif;
}

* {
    box-sizing: border-box
}

body {
    color: #383838;
}

::placeholder,
button,
select,
input {
    font-family: 'YekanBakh', sans-serif!important;
}

button {
    font-weight: 600;
}

input {
    font-size: 16px;
}

input:focus {
    outline: 0 !important;
    transform: none;
    border: 1px solid #346EFF !important;
}

input::placeholder {
    direction: rtl;
    text-align: right;
}

input[type="tel"],
input[type="email"],
input[name="coupon_code"],
#billing_national_code,
#billing_postcode {
    direction: ltr;
    text-align: left;
}

.rtl.search-results .content-area {
    float: right;
}

.rtl .col-full {
    max-width: 1500px;
}

.woocommerce-checkout .col-full,
.woocommerce-cart .site-content .col-full {
    max-width: 1170px;
}

.woocommerce-checkout p#billing_address_1_field, .woocommerce-checkout p#shipping_address_1_field {
    margin: 0 0 1.21575rem;
}

.woocommerce-form__label-for-checkbox {
    display: none;
}

.woocommerce-cart ul.checkout-bar li.active:before,
.woocommerce-checkout ul.checkout-bar li.active:before,
.woocommerce-checkout ul.checkout-bar li.next:before {
    background: #326eff;
}

.woocommerce-checkout-review-order-table tbody td {
    display: block;
    border: 0;
}
.woocommerce-checkout-review-order-table .product-name {
    padding-bottom: 0;
}
.woocommerce-checkout-review-order-table td.product-total {
    padding: 0;
    border-bottom: 1px solid #d4d4d4;
    padding-bottom: 12px;
}
.woocommerce-checkout-review-order-table tbody tr:last-child td {
    padding-bottom: 0;
}
.woocommerce-checkout-review-order-table tbody tr:last-child td:last-child {
    padding-bottom: 28px;
}

ul#shipping_method li:only-child label:before {
    display: none;
}

ul#shipping_method li:only-child {
    font-size: 14px;
}

.woocommerce-checkout-review-order-table tfoot th {
    width: 100%;
}

.woocommerce-checkout-review-order-table tfoot .cart-discount td {
    font-size: 16px!important;
    white-space: nowrap;
    direction: ltr;
}

.woocommerce-checkout-review-order-table .cart-discount .woocommerce-Price-currencySymbol {
    display: none;
}

@media(max-width: 993px) {
    .rtl .woocommerce-MyAccount-content .form-row-first {
        float: unset;
        margin-left: unset;
    }

    form.checkout h3 {
        margin-bottom: 12px;
    }

    .woocommerce-billing-fields {
        border: 1px solid #DEDEDE;
        border-radius: 8px;
        padding: 0 16px;
    }

    .woocommerce-billing-fields h3 {
        margin-top: 16px;
        margin-bottom: 0;
    }

    .woocommerce-billing-fields h3 + .woocommerce-billing-fields__field-wrapper{
        padding-top: 0;
    }

    #order_review_heading {
        margin: 4px;
    }
}

.woocommerce-MyAccount-content .select2-selection.select2-selection--single {
    padding-top :6px;
    height: 40px;
}

.woocommerce-MyAccount-content .rtl .select2-container--default[dir=rtl] .select2-selection--single .select2-selection__arrow {
    top: 7px;
}

.woocommerce-billing-fields__field-wrapper {
    overflow: hidden;
}


/* Single page */
body.single-product:has(.woocommerce-breadcrumb) .site-main {
    background-color: #fff;
    padding: 20px 0 ;
}

.rtl .summary h1 {
    padding: 0;
    font-size: 22px;
    letter-spacing: -1px;
}

.rtl .summary table td {
    padding-left: 0;
}

.woocommerce-variation-price .price,
.rtl .product p.price {
    text-align: left;
    float: unset;
    display: flex;
    flex-direction: column;
    font-weight: 700!important;
    font-family: "YekanBakhFaNum";
    justify-content: end;
} 

.product-type-variable p.price {
    display: none!important;
}

.woocommerce-variation-price .price del,
.rtl .product p.price del {
    font-weight: 500!important;
    margin: 0;
}

.woocommerce-variation-price .price ins,
.rtl .product p.price ins {
    font-weight: 700!important;
}

.woocommerce-variation-price .price .amount {
    font-size: 18px;
    color: #212121;
}

.woocommerce-variation-price .price del .amount {
    color: #616161;
    font-size: 14px;
}
.summary .onsale {
    display: none;
}

.cg-main-swiper.swiper-container {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.shoptimizer-sticky-add-to-cart__content-button {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    margin: 0;
    width: 100%;
}

.rtl .shoptimizer-sticky-add-to-cart__content-price {
    display: flex;
    flex-direction: column;
    font-weight: 700;
    font-family: "YekanBakhFaNum";
}

.rtl .shoptimizer-sticky-add-to-cart__content-price del {
    font-weight: 500;
    font-size: 14px;
}

.rtl .shoptimizer-sticky-add-to-cart__content-price ins {
    font-weight: 700;
    font-size: 17px;
}

.rtl .shoptimizer-sticky-add-to-cart__content-product-info {
    display: none;
}

.site .shoptimizer-sticky-add-to-cart__content-button a.button {
    width: 50%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -.5px;
}

.reset_variations {
    display: none !important;
}

.woocommerce-variation-price .price {
    min-height: 48px;
}

.commercekit-sticky-add-to-cart__content {
    padding: 0;
}

.commercekit-sticky-add-to-cart__content-button a.button {
    min-height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -.5px;
}

.product table.variations {
    padding: 0 2px;
}

/* Cart page */
.rtl .cart_totals table.shop_table_responsive tr td, .rtl.product-align-right ul.products li.product, .rtl table.shop_table_responsive tbody tr td.product-subtotal, table.cart td.product-quantity .quantity .qty {
    font-family: "YekanBakhFaNum"!important;
    font-weight: 700;
}

.rtl .cart_totals table.shop_table_responsive tr td, .rtl.product-align-right ul.products li.product, .rtl table.shop_table_responsive tbody tr td.product-subtotal, table.cart td.product-quantity .quantity .qty {
    font-size: 15px;
    letter-spacing: -.5px;
}

.m-cart table.cart tr td[data-title]:before {
    font-size: 14px;
}

.rtl table.shop_table_responsive tr td.product-quantity {
    justify-items: left;
}

.rtl table.shop_table_responsive tbody tr td.product-subtotal {
    padding-left: 0;
}


/* Checkout */

.rtl .woocommerce-checkout-review-order-table td.product-total,
.rtl table.cart th.product-subtotal,
.rtl .woocommerce-checkout-review-order-table tfoot td {
    font-family: "YekanBakhFaNum";
    font-weight: 700;
    font-size: 17px;
}

#payment .payment_methods > .wc_payment_method > label {
    padding: 0 12px;
}

.woocommerce-checkout-review-order-table {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.rtl .woocommerce-checkout-review-order-table td.product-total {
    padding-right: 8px;
}

.rtl .woocommerce-checkout-review-order-table tfoot {
    display: flex;
    flex-direction: column;
}

.rtl .woocommerce-checkout-review-order-table tfoot>tr.shipping {
    display: flex;
    width: 100%;
    flex-direction: column;
}

.rtl #order_review .shop_table tr.shipping th,
.rtl #order_review .shop_table tr.shipping td {
    width: 100%;
}

.rtl .woocommerce-checkout-review-order-table tr.order-total td,
.rtl .woocommerce-checkout-review-order-table tr.cart-subtotal th {
    width: 100%;
}

.checkout-inline-error-message {
    font-size: 13px;
    font-weight: 400;
    margin-top: 6px;
    color: red;
    margin-bottom: 0;
}

@media (max-width: 500px) {
    .site ul.checkout-bar li span {
        visibility: visible;
    }
}

.snapppay-baner-single {
    max-height: 120px;
    object-fit: cover;
    border-radius: 12px;
}


/* Header */
.rtl .shoptimizer-cart .amount,
.rtl .shoptimizer-cart a.cart-contents .count {
    font-family: "YekanBakhFaNum";
}

.main-navigation ul.menu {
    font-size: 14px;
    font-weight: 500;
}

.main-navigation ul.menu ul li a {
    display: block;
    margin-bottom: 8px;
}

.main-navigation ul.menu li.full-width > .sub-menu-wrapper li.menu-item-has-children > a {
    margin-bottom: 12px;
}

/* Sidebar */ 
.rtl .shoptimizer-mini-cart-wrap .widget_shopping_cart .woocommerce-mini-cart__total .woocommerce-Price-amount,
.widget_shopping_cart .woocommerce-mini-cart-item .amount,
.shoptimizer-mini-cart-wrap .product_list_widget li .quantity {
    font-family: "YekanBakhFaNum";
}


/* Product cart */

ul.products {
    gap: 12px;
    align-items: stretch;
} 
.rtl ul.products {
    margin: 0;
}

ul.products li.product:not(.product-category):before {
    display: none;
}

ul.products li.product .product-label {
    top: 0;
    right: unset;
    left: 0;
}

ul.products li.product {
    align-self: stretch;
    height: auto;
    min-height: 0;
    max-width: 220px;
    margin: 0;
    padding: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
}

ul.products li.product.outofstock img {
    filter: saturate(.3);
}
ul.products li.product.outofstock .product-label {
    display: none;
}

.no-cta-buttons ul.products li.product:not(.product-category) {
    padding-bottom: 8px;
    margin-bottom: 0;
}

.woocommerce-card__header {
    padding-top: 0;
}

ul.products li.product .woocommerce-loop-product__title {
    display: -webkit-box;
    min-height: 3em;
    max-height: 3em;
    margin-bottom: .75rem;
    overflow: hidden;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -.4px;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
}

.site .elementor-products-grid ul.products.elementor-grid li.product {
    padding-bottom: 15px;
}

ul.products li.product:focus-within::before, ul.products li.product:hover::before {
    display: none;
}

ul.products li.product {
    transition: .2s ease-in-out all;
}

ul.products li.product:hover {
    transform: translateY(-3px);
}

li.product:hover .woocommerce-image__wrapper {
    transform: unset;
}

ul.products li.product .price {
    margin-bottom: 0;
    height: 46px;
    justify-content: flex-end;
}
 
.rtl li.product .price,
.rtl .product-label.type-bubble {
    text-align: left;
    font-family: "YekanBakhFaNum";
}

.rtl li.product .price del {
    font-size: 14px;
    display: block;
    font-weight: 500;
    margin: 0;
}
.rtl li.product .price del .woocommerce-Price-currencySymbol {
    visibility: hidden;
    font-size: 17px;
    line-height: 13px;
}

ul.products li.product .price,
.rtl li.product .price ins {
    display: flex;
    font-size: 17px;
    font-weight: 700;
    float: unset !important;
    flex-direction: column-reverse;
}

ul.products li.product .price ins {
    color: unset;
}

.rtl .product-label.type-bubble {
    right: -6px;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    padding: 4px;
}
.cross-sells ul.products li.product .woocommerce-card__header, .mobile-scroll ul.products li.product .woocommerce-card__header, .related.products ul.products li.product .woocommerce-card__header, .upsells.products ul.products li.product .woocommerce-card__header {
    box-shadow: unset;
}

@media (max-width: 992px) {
    .cross-sells ul.products li.product, .mobile-scroll ul.products li.product, .related.products ul.products li.product, .upsells.products ul.products li.product {
        display: flex;
        max-width: 220px;
        min-width: 220px;
        flex-direction: column;
        scroll-snap-align: center;
        padding: 0;
    }

    .cross-sells ul.products li.product .woocommerce-card__header, .mobile-scroll ul.products li.product .woocommerce-card__header, .related.products ul.products li.product .woocommerce-card__header, .upsells.products ul.products li.product .woocommerce-card__header {
        box-shadow:unset;
        padding: 0 12px;
    }
}

/* Shop pages */
@media (min-width: 993px) {
    .rtl .shoptimizer-sorting {
        justify-content: flex-start;
    }
}

.widget_price_filter .price_slider_amount {
    font-family: "YekanBakhFaNum";
}