/* 
Theme Name: Hello Child
Theme URI: https://elementor-site.ir/
Description: 
Author: Elementor Site
Author URI: https://elementor-site.ir/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/
p {
    margin-block-end: 0 !important;
}
 li#wp-admin-bar-custom-logo>a {
            padding: 6px 15px 0 5px !important;
    }
    
.woocommerce-product-gallery__trigger::after {
    content: '' !important;
    display: inline-block !important;
    width: 24px !important;
    height: 24px !important;
    background-image: url(./src/zoom.svg) !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    vertical-align: middle;
    margin-left: 0 !important;
    background-color: transparent !important;
    transform: translate(50%, -50%) rotate(0deg) !important;
    right: 50% !important;
    top: 50% !important;
}
 
 .woocommerce div.product div.images .woocommerce-product-gallery__trigger::before{
     display:none;
 }
 .woocommerce div.product div.images .woocommerce-product-gallery__trigger {
    background: rgba(224, 224, 224, 1);
    border: none;
    box-sizing: content-box;
    height: 36px;
    position: absolute;
    left: unset !important;
    top: unset !important;
    width: 36px;
    z-index: 99;
    border-radius: 5px !important;
    right: 15px !important;
    bottom: 165px !important;
}

.onsale-image {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}
.button-variable-items-wrapper li.variable-item.button-variable-item,
.button-variable-items-wrapper li.variable-item.button-variable-item.selected{
	    border-radius: 5px !important;
    min-width: fit-content !important;
    width: fit-content !important;
    padding: 0px 8px !important;
}
.woo-variation-items-wrapper span.variable-item-span.variable-item-span-button {
    border-radius: 0 !important;
}
.woo-variation-swatches.wvs-show-label .variations td, .woo-variation-swatches.wvs-show-label .variations th {
    background: transparent !important;
	padding: 0 !important;
}
.woocommerce div.product form.cart .variations label {
    font-weight: 600 !important;
    font-size: 12px;
}
.woocommerce div.product form.cart .variations select {
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 14px;
    color: #262626;
}
.woocommerce div.product form.cart .variations tbody tr {
    margin: 10px 0;
    display: block;
}
input[type=date], input[type=email], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=url], select, textarea {
    border-color: rgba(224, 224, 224, 1) !important;
    border-radius: 30px !important;
    margin-top: 5px !important;
}
.rank-math-breadcrumb a,
.rank-math-breadcrumb span{
    color:#fff;
    font-size:12px;
}

.rank-math-breadcrumb a:active, .rank-math-breadcrumb a:hover {
  color: var( --e-global-color-d553634 );
}
li.variable-item.button-variable-item {
    padding: 5px !important;
    min-height: 30px;
}
li.variable-item.image-variable-item {
    min-width: 40px;
    min-height: 40px;
}
p.woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received {
    color: rgba(25, 128, 56, 1);
    font-size: 22px;
    font-weight: 800;
    font-family: '"Yekan Bakh Bold", Sans-serif';
    margin-bottom: 10px;
    display: block;
}
p.woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received span{
	color:rgba(111, 111, 111, 1);
	font-size:14px;
	    line-height: 1.8;
}
.woocommerce ul.order_details {
    margin: 30px 0;
    list-style: none;
    padding: 0;
	flex: 0 0 100%;
}
.woocommerce ul.order_details li {
    border-left: unset !important;
    border: 1px solid var(--e-a-bg-active-bold) !important;
    border-radius: 8px !important;
    padding: 8px 5px !important;
    color: rgba(57, 57, 57, 1) !important;
    font-size: 14px !important;
    font-family: "Yekan Bakh Regular", Sans-serif;
    display: grid;
    gap: 6px;
	margin-left: 0 !important;
	    flex: 0 0 100%;
}
.woocommerce ul.order_details li  strong {
    font-size: 12px;
	color:rgba(111, 111, 111, 1);
}

@media screen and (min-width: 576px) {
.woocommerce-order {
    max-width: 70%;
}
}
.woocommerce ul.order_details {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.woocommerce ul.order_details::after, .woocommerce ul.order_details::before {
    content: none;
}
.woocommerce-order {
        display: flex;
        flex-wrap: wrap;
	    justify-content: center;
	    gap: 15px;
    }
.payment-img,
p.woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received {
       flex: 0 0 35%;
    max-width: 35%;
    align-content: center;
    display: grid;
    gap: 10px;
}
.payment-img {
    display: flex;
    justify-content: center;
}
.woocommerce-customer-details,
.woocommerce-order-details{
    flex: 0 0 49% !important;
    max-width: 49% !important;
}
.woocommerce .woocommerce-customer-details address {
    border: none;
    padding: 0;
    font-size: 14px;
    color: rgba(38, 38, 38, 1);
    font-family:"Yekan Bakh Regular", Sans-serif;
    line-height: 2;
}
h2.woocommerce-column__title,
h2.woocommerce-order-details__title {
    font-size: 16px;
    color: rgba(38, 38, 38, 1);
}
.elementor-widget-woocommerce-checkout-page .woocommerce .shop_table td, .elementor-widget-woocommerce-checkout-page .woocommerce .shop_table th, .elementor-widget-woocommerce-checkout-page .woocommerce .shop_table tr {
    padding-bottom: 5px;
    padding-top: 15px;
    padding-right: 0;
    font-family: "Yekan Bakh Regular", Sans-serif;
}
    .woocommerce-order {
        margin: 40px auto;
    }
a.woocommerce-button.button.view.order-actions-button {
    background: rgba(250, 77, 86, 1);
    color: #fff;
    min-width: 168px;
    text-align: center;
    height: 48px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}
 .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .order_details tfoot th {
    font-family: "Yekan Bakh Regular", Sans-serif;
}

/* My Account — empty orders: browse products button on its own line */
.woocommerce-MyAccount-content-wrapper-no-data .woocommerce-info a.woocommerce-Button.wc-forward {
    display: block;
    width: fit-content;
    margin-top: 16px;
    padding: 12px 28px;
    background-color: #5c3478 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px;
    font-family: "Yekan Bakh Regular", Sans-serif;
    text-align: center;
    text-decoration: none;
}

.woocommerce-MyAccount-content-wrapper-no-data .woocommerce-info a.woocommerce-Button.wc-forward:hover {
    background-color: #4a2a60 !important;
    color: #fff !important;
}

/* My Account — orders table: keep responsive stacked layout on mobile (fallback when WC smallscreen is absent) */
@media screen and (max-width: 768px) {
    .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-content,
    .elementor-widget-woocommerce-my-account .e-my-account-tab__orders .woocommerce-MyAccount-content-wrapper {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .elementor-widget-woocommerce-my-account table.shop_table_responsive.my_account_orders,
    .elementor-widget-woocommerce-my-account table.account-orders-table {
        width: 100%;
        max-width: 100%;
        table-layout: fixed;
    }

    .elementor-widget-woocommerce-my-account table.shop_table_responsive.my_account_orders thead,
    .elementor-widget-woocommerce-my-account table.account-orders-table thead {
        display: none;
    }

    .elementor-widget-woocommerce-my-account table.shop_table_responsive.my_account_orders tbody th,
    .elementor-widget-woocommerce-my-account table.account-orders-table tbody th {
        display: none;
    }

    .elementor-widget-woocommerce-my-account table.shop_table_responsive.my_account_orders tr,
    .elementor-widget-woocommerce-my-account table.account-orders-table tr {
        display: block;
    }

    .elementor-widget-woocommerce-my-account table.shop_table_responsive.my_account_orders tr td,
    .elementor-widget-woocommerce-my-account table.shop_table_responsive.my_account_orders tr th,
    .elementor-widget-woocommerce-my-account table.account-orders-table tr td,
    .elementor-widget-woocommerce-my-account table.account-orders-table tr th {
        display: block;
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
        text-align: right !important;
        white-space: normal;
        word-break: break-word;
        padding-right: 0;
        padding-left: 0;
    }

    .elementor-widget-woocommerce-my-account table.shop_table_responsive.my_account_orders tr td::before,
    .elementor-widget-woocommerce-my-account table.shop_table_responsive.my_account_orders tr th::before,
    .elementor-widget-woocommerce-my-account table.account-orders-table tr td::before,
    .elementor-widget-woocommerce-my-account table.account-orders-table tr th::before {
        content: attr(data-title) ": ";
        font-weight: 700;
        float: right;
        margin-left: 0.5em;
    }

    .elementor-widget-woocommerce-my-account table.shop_table_responsive.my_account_orders tr td.order-actions::before,
    .elementor-widget-woocommerce-my-account table.account-orders-table tr td.order-actions::before,
    .elementor-widget-woocommerce-my-account table.shop_table_responsive.my_account_orders tr td.woocommerce-orders-table__cell-order-actions::before,
    .elementor-widget-woocommerce-my-account table.account-orders-table tr td.woocommerce-orders-table__cell-order-actions::before {
        display: none;
    }
}

/* FiboSearch: full category breadcrumb text (no ellipsis) */
.dgwt-wcas-st-breadcrumbs {
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    line-height: 1.4;
    word-break: break-word;
}

.dgwt-wcas-has-img .dgwt-wcas-suggestion.dgwt-wcas-suggestion-product .dgwt-wcas-content-wrapp {
    align-items: flex-start;
}

.dgwt-wcas-has-img .dgwt-wcas-suggestion.dgwt-wcas-suggestion-product .dgwt-wcas-st {
    line-height: 1.35;
}

@media screen and (max-width: 576px) {
.payment-img, p.woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received {
    flex: 0 0 100%;
    max-width: 100%;
}
.woocommerce ul.order_details {
    grid-template-columns: repeat(2, 1fr);
}	
.woocommerce-customer-details, .woocommerce-order-details {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}	
	
}
.woocommerce-product-attributes-item--weight{
	display: none !important;
}

/*
 * Desktop: Elementor horizontal nav — submenus sit under hero/banner without a raised header stack.
 * Raises the header region and dropdown panels above the first content section.
 */

/* Sale price widget: badge + strikethrough + final on one line */
p.price:has(.discount-percentage),
.price-simple:has(.discount-percentage) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    margin: 0 !important;
    padding-inline-start: 0 !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
}

p.price:has(.discount-percentage) .shirini-price-badge-row,
.price-simple:has(.discount-percentage) .shirini-price-badge-row {
    display: inline-flex !important;
    width: auto !important;
    flex: 0 0 auto !important;
    line-height: 1 !important;
}

p.price .discount-percentage,
.price-simple .discount-percentage {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    display: inline-block !important;
    margin: 0 !important;
    float: none !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

p.price:has(.discount-percentage) del,
.price-simple:has(.discount-percentage) del,
p.price:has(.discount-percentage) ins,
.price-simple:has(.discount-percentage) ins {
    display: inline !important;
    width: auto !important;
    flex: 0 1 auto !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

p.price:has(.discount-percentage) ins,
.price-simple:has(.discount-percentage) ins {
    text-decoration: none !important;
}

/* Loop carousel 990421f: equal product image heights */
.elementor-element-990421f .elementor-element-2ca21c2b .elementor-widget-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 170px !important;
    min-height: 170px !important;
    overflow: hidden !important;
}

.elementor-element-990421f .elementor-element-2ca21c2b img {
    display: block !important;
    width: 100% !important;
    height: 170px !important;
    max-height: 170px !important;
    object-fit: contain !important;
    object-position: center center !important;
}

/* Bulk purchase: stacked price layout on product page */
body.single-product .woocommerce-variation-price {
    position: relative !important;
    overflow: visible !important;
    margin: 12px 0 !important;
}

body.single-product .woocommerce-variation-price .price.shirini-bulk-price-active {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 6px;
}

body.single-product .woocommerce-variation-price .price.shirini-bulk-price-active .discount-percentage {
    position: static !important;
    top: auto !important;
    right: auto !important;
}

body.single-product .woocommerce-variation-price .price.shirini-bulk-price-active del,
body.single-product .woocommerce-variation-price .price.shirini-bulk-price-active .shirini-bulk-regular-price,
body.single-product .woocommerce-variation-price .price.shirini-bulk-price-active del .woocommerce-Price-amount.amount bdi,
body.single-product .woocommerce-variation-price .price.shirini-bulk-price-active .discount-percentage del .woocommerce-Price-amount.amount bdi {
    display: block !important;
    width: 100% !important;
    color: #222 !important;
}

body.single-product .woocommerce-variation-price .shirini-bulk-final-price-wrap {
    display: block !important;
    width: 100% !important;
    margin-top: 2px;
}

body.single-product .woocommerce-variation-price .shirini-bulk-final-price-wrap ins .woocommerce-Price-amount.amount bdi {
    font-size: 22px !important;
    font-weight: 200 !important;
    color: #222 !important;
}

body.single-product .shirini-bulk-max-qty-notice {
    display: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0;
    color: #da1e28;
    font-size: 14px;
    line-height: 1.7;
    text-align: right;
}

body.single-product .shirini-bulk-atc-stack > .shirini-bulk-max-qty-notice.is-visible {
    display: block !important;
    order: 0 !important;
    margin-bottom: 10px !important;
}

body.single-product form.cart:not(.variations_form) > .shirini-bulk-max-qty-notice.is-visible {
    display: block !important;
    margin-bottom: 10px !important;
}

body.single-product form.cart:not(.variations_form):has(.shirini-bulk-atc-stack) {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.single-product .woocommerce-variation-add-to-cart .shirini-bulk-max-qty-notice,
body.single-product .e-atc-qty-button-holder .shirini-bulk-max-qty-notice {
    display: none !important;
}

body.single-product .shirini-bulk-atc-stack {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    clear: both !important;
    margin-top: 12px !important;
}

body.single-product .shirini-bulk-atc-stack > .woocommerce-variation-add-to-cart {
    display: block !important;
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    clear: both !important;
    float: none !important;
    position: static !important;
    margin: 0 !important;
}

body.single-product .shirini-bulk-atc-stack > .e-atc-qty-button-holder {
    order: 1 !important;
}

body.single-product .shirini-bulk-atc-stack .e-atc-qty-button-holder {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 8px;
}

body.single-product .shirini-bulk-atc-stack .quantity {
    width: auto !important;
    flex: 0 0 auto !important;
    max-width: 45% !important;
    margin: 0 !important;
}

body.single-product .shirini-bulk-atc-stack button.single_add_to_cart_button,
body.single-product .shirini-bulk-atc-stack .cart .button {
    width: auto !important;
    flex: 1 1 auto !important;
    max-width: 100% !important;
    margin: 0 !important;
}

@media (min-width: 1025px) {
	body:not(.elementor-editor-active) .elementor-location-header {
		position: relative;
		z-index: 10001;
	}

	.elementor-widget-nav-menu .elementor-nav-menu .menu-item-has-children {
		position: relative;
		z-index: 1;
	}

	.elementor-widget-nav-menu .elementor-nav-menu .menu-item-has-children:hover,
	.elementor-widget-nav-menu .elementor-nav-menu .menu-item-has-children:focus-within {
		z-index: 10002;
	}

	.elementor-widget-nav-menu .sub-menu.elementor-nav-menu--dropdown,
	.elementor-widget-nav-menu ul.elementor-nav-menu--dropdown {
		z-index: 10003 !important;
	}
}

/* Blog sidebar: horizontal guide line for category sub-items */
.widget_categories ul > li ul.children {
	padding: 5px 0 0 0;
}

.widget_categories ul.children {
	margin-top: 6px;
}

.widget_categories ul.children > li {
	margin-bottom: 8px;
}

.widget_categories ul.children > li:last-child {
	margin-bottom: 0;
}

.widget_categories ul.children > li > a::before {
	content: '';
	display: inline-block;
	width: 16px;
	height: 2px;
	background-color: #d9d9d9;
	margin-inline-end: 10px;
	vertical-align: middle;
}

.widget_categories ul.children ul.children > li > a::before {
	width: 12px;
	background-color: #e8e8e8;
}

/* Single post: hide sidebar (TOC + related posts / comments buttons) */
body.single-post .elementor-element.elementor-element-b48658e,
body.single .elementor-element.elementor-element-b48658e {
	display: none !important;
	--display: none !important;
}

body.single-post .elementor-element.elementor-element-95cfca3,
body.single .elementor-element.elementor-element-95cfca3 {
	--width: 100% !important;
	flex: 1 1 100% !important;
	max-width: 100% !important;
}

/* Buy-sure sticky popup (Elementor template #1558) — layout + price typography only */
.elementor-1558 .elementor-element-ed6f13a > .e-con-inner {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 8px !important;
}

.elementor-1558 .elementor-element-9c1edc1,
.elementor-1558 .elementor-element-1362600 {
	--width: auto !important;
	flex: 0 1 auto !important;
	width: auto !important;
	max-width: none !important;
}

.elementor-1558 .elementor-element-9c1edc1 {
	flex: 1 1 0 !important;
	min-width: 0 !important;
}

.elementor-1558 .elementor-element-1362600 {
	flex: 0 0 auto !important;
}

.elementor-1558 p.price:has(.discount-percentage) {
	flex-wrap: nowrap !important;
	gap: 2px !important;
}

.elementor-1558 p.price .woocommerce-Price-amount.amount {
	font-size: 18px !important;
}

.elementor-1558 p.price del {
	margin-inline-end: 2px !important;
}

/* Buy-sure popup CTA label — hide broken entity-encoded text, show clean label */
.elementor-1558 .elementor-element-124fa7f .elementor-button .elementor-button-text {
	font-size: 0 !important;
	line-height: 0 !important;
}

.elementor-1558 .elementor-element-124fa7f .elementor-button .elementor-button-text::after {
	content: "افزودن";
	font-size: 14px;
	line-height: 1.3;
	font-weight: inherit;
	color: inherit;
	display: inline-block;
}

/* Checkout: hide order review table header and subtotal row */
.woocommerce-checkout-review-order-table thead {
	display: none;
}

.woocommerce-checkout-review-order-table tr.cart-subtotal {
	display: none;
}
