/*
Theme Name:         Bakala Theme Child
Theme URI:          https://www.zhaket.com/web/bakala-woocommerce-theme
Author:             Design Core™ Co
Author URI:         https://designcore.shop/
Description:        فروشگاهی فوق پیشرفته جهت تجارت الکترونیک به صورت حرفه ای
Version:            1.0.0
Text Domain:        bakala-child
Template:           bakala
*/

/**
 * ====================================================================
 * ۱. متغیرهای بیس (CSS Custom Properties)
 * تمامی متغیرها با پیشوند hg- تعریف شده‌اند تا کاملاً مستقل باشند و برای پروژه‌های دیگر قابل تغییر سریع باشند.
 * ====================================================================
 */
:root {
    /* 🎨 HG Colors (قابل تغییر برای تم سایت) */
    --hg-color-primary: #cc2484;     /* رنگ اصلی: بنفش (منو، border، آیکون‌ها) */
    --hg-color-secondary: #cc2484;   /* رنگ ثانویه: قرمز (دکمه‌های مهم، خطرات) */
    --hg-color-accent: #1ba3a7;      /* رنگ تأکیدی: فیروزه‌ای (لینک‌ها) */

    --hg-color-text-dark: #222;      /* رنگ متن تیره */
    --hg-color-text-light: #ffffff;  /* رنگ متن/پس‌زمینه روشن */
    --hg-color-bg-base: #ffffff;     /* پس‌زمینه عمومی (Modal/Product Info) */
    --hg-color-bg-light: #ffffff;    /* پس‌زمینه سفید */
    --hg-color-highlight: #f0f0f0;   /* هایلایت/پس‌زمینه دکمه‌ها (کمتر اشباع) */
    --hg-color-hover: #24CC6C;       /* رنگ هاور منو */

    /* 🎨 HG Fixed Colors (رنگ‌های دقیق مورد نیاز که بر اساس تم تغییر نمی‌کنند) */
    --hg-color-fixed-dark-purple: #5b3161;
    --hg-color-fixed-gray: #888888;
    --hg-color-fixed-light-purple: #a886ad;
    --hg-color-fixed-blue-green: #7fe1b4; /* رنگ ثابت برای متفرقه */
    --hg-color-fixed-gallery-bg: rgb(252 232 255); /* پس‌زمینه گالری محصول */
   --hg-color-fixed-pagination-border: #e9cbed; /* رنگ حاشیه pagination */

    /* 📏 HG Spacing Scale (استفاده از rem برای مقیاس‌بندی) */
    --hg-spacing-xs: 0.25rem; /* 4px */
    --hg-spacing-sm: 0.5rem;  /* 8px */
    --hg-spacing-md: 1rem;    /* 16px */
    --hg-spacing-lg: 1.5625rem;  /* 25px */
    --hg-spacing-xl: 1.875rem; /* 30px */
   --hg-spacing-20px: 20px;
    --hg-spacing-40px: 40px;
    --hg-spacing-50px: 50px;

    /* 📐 HG Borders & Radius */
    --hg-border-radius-sm: 8px;
    --hg-border-radius-md: 15px;
    --hg-border-radius-full: 50px;
    --hg-border-radius-20: 20px;
    --hg-border-radius-40: 40px;
    --hg-border-color-default: #ddd;

    /* 🖋️ HG Typography */
    --hg-font-size-xs: 12px;
    --hg-font-size-sm: 13px;
    --hg-font-size-base: 14px;
    --hg-font-size-large: 18px;
    --hg-font-weight-normal: 400;
    --hg-font-weight-bold: 700;
    --hg-font-weight-semi-bold: 600;
}

/**
 * ====================================================================
 * ۲. ری‌ست و حذف سایه (Box-Shadow Removal & Base Utility)
 * ====================================================================
 */
/* حذف سایه برای تمامی المان‌های مشخص شده - حفظ !important برای اطمینان از Override */
.bakala_ai_comment, .ai-comments, .cart-box .cart-items-count, .woocommerce div.product .product-info-box .button.external-product-btn, .swal2-styled.swal2-confirm, .bakala_reading_time i::before, .post .post-meta i.icon-clock-icon:before, .bakala_must_login_comment a.bakala_lr_btn:before, .bakala_must_login_comment .bakala_lr_btn.popup:before, .product-info-box .seller-info .header-section:before, .purchase_records_modal_show::before, .dgwt-wcas-sf-wrapp::before, .woocommerce div.product .woocommerce-tabs ul.tabs li.reviews_tab a::before, .woocommerce div.product .woocommerce-tabs ul.tabs li.ask_tab a::before, .woocommerce div.product .woocommerce-tabs ul.tabs li.additional_information_tab a::before, .woocommerce div.product .woocommerce-tabs ul.tabs li.desc_tab a::before, .icon-stock-notice::before, .vendor-warranty::before, .short_tab_title::before, .product-info-box .leadTime-info i.icon::before, span.bakala-sizes-product-size-chart-button::before, a.c-navi-list__basket-submit, .dk-button-container.small button, #feedback_submit, .form-submit input#submit, li#tab-title-reviews a:after, li#tab-title-ask a:after, .product_bar, .product-info-box .dk-button-discount, .woocommerce div.product .bakala_product_float_box .product-info-box .button, .bakala_add_onMoreShow, .btn.product-dle-btn, .woocommerce div.product form.cart .button.dk-button, a.bk-factor-button, a.back_to_home.btn, .woocommerce #payment #place_order, .woocommerce-page #payment #place_order, #sms-newsletter button, .bk_purchasing-process--navigation-item--current .bk_purchasing-process--navigation-item-icon, .profile-section__more a i.fa.fa-chevron-left:before, .woocommerce-address-fields .woocommerce-Button.button, .woocommerce-MyAccount-content .order-status i.fa-chevron-left:before, span.edit-info, .woocommerce-MyAccount-content .active .order-count, li.woocommerce-MyAccount-navigation-link.is-active:before, .wishlist-item .btn.btn-blue.woocommerce-Button.button, .elementor-widget-posts_carousel a.boxmore:after, .elementor-widget-container .section-products-carousel header .boxmore a:after, .bk_purchasing-process--navigation-item--current .bk_purchasing-process--navigation-item-icon, .rememberpassword .dk-button-container .dk-button.blue, #login-register .input-box.lr_btn_wrap button:not(#edit-phone-number), .elementor .sale-perc, .bakala_add_to_cart_button, .return-to-shop .button.wc-backward, .ar-spender, body.woocommerce-cart .post-title .next-shopping.active .count, body.woocommerce-cart .post-title .cart.active .count, .ar-order, a.checkout-button.button.wc-forward, footer.bk_carousel_modern_footer .add_to_cart_btn, a.button.product_type_external, a.button.product_type_simple, .products-box .loop-add-to-cart .button.product_type_simple.add_to_cart_button.ajax_add_to_cart, .bakala-select-options, button.back-to-product, .loop-saving-percentage, .bakala-icon.icon-arr-circle, .bk_carousel_modern_price_off b, .section-products-carousel .sale-perc, .bakala-best-sellers-head-section-more svg g path, .bakala_recent_visits_style2_showmore svg g path, .bakala_recent_visits_style2_item_showmore svg, .bakala-best-sellers-head-section-more i {
    box-shadow: unset !important;
}

/**
 * ====================================================================
 * ۳. هدر و منوی اصلی (Header & Main Menu) - استفاده از Flexbox
 * ====================================================================
 */
.hg header.site-header.sticky-header {
    background-color: var(--hg-color-bg-base);
}

.hg .bakala {
    margin-right: unset;
}

.hg .row.header {
    padding-bottom: unset;
    background: unset;
}

.hg .header-logo {
    margin-top: unset;
}

.hg .navbar-primary .container-bakala {
    width: auto;
    justify-content: center;
}

.hg .header .container-bakala {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

.hg .bk_menu {
    height: unset;
    width: 100%;
}

.hg .sticky-header .navbar-primary.nav-down {
    background-color: var(--hg-color-primary);
    margin-top: 0;
    transform: unset;
    padding-top: unset;
    border-bottom: unset;
}

.hg .main-menu-div {
    padding-right: var(--hg-border-radius-20); /* 20px */
    padding-left: var(--hg-border-radius-20);  /* 20px */
    padding-top: 0.625rem; /* 10px */
    padding-bottom: 0.625rem; /* 10px */
}

.hg .bk_menu > .bakala > ul {
    position: relative;
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hg .bk_vertical_menu .bakala > ul > li:first-child {
    height: unset;
}

.hg .bk_menu .bakala > ul > li svg {
    margin-right: 2px;
}

.hg .navbar-primary .bk_menu.bk_vertical_menu.level a {
    padding: unset;
    font-weight: var(--hg-font-weight-normal);
    font-size: var(--hg-font-size-base);
    color: var(--hg-color-text-light) !important;
}

.hg .bk_menu.bk_new_menu .bakala > ul > li > span.title a {
    color: var(--hg-color-text-light);
    font-weight: var(--hg-font-weight-normal) !important;
	font-size: 16px;
}

.hg .bk_menu a:focus {
    color: var(--hg-color-text-light) !important;
}

/* استایل‌دهی زیرمنو (Submenu) */
.hg .bk_menu.bk_new_menu .bakala > ul > li > ul.level {
   display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    position: absolute;
    top: 100%;
    right: 50%;
    transform: translateX(50%);
    list-style: none;
    padding: 0.625rem;
    margin: 0;
    min-width: 12rem;
    width: auto;
    background-color: var(--hg-color-bg-base);
    border-radius: var(--hg-border-radius-sm);
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease-in-out;
    align-items: center;
    height: auto;
   max-height: 30vh;
}

.hg .bk_menu.bk_new_menu .bakala > ul > li > ul.level > .submenu {
    display: inline-block;
    min-width: auto;
    flex-grow: 1;
    flex-basis: 0;
    margin-left: unset;
}

/* نمایش زیرمنو هنگام هاور */
.hg .bk_menu.bk_new_menu .bakala > ul > li:hover > ul.level {
    visibility: visible;
    opacity: 1;
}

/* استایل‌دهی آیتم‌های داخل زیرمنو */
.hg .bk_menu.bk_new_menu .submenu .title a {
    display: block;
    padding: 0.5rem 0;
    color: #2e2e2e !important;
    font-size: 16px;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 400 !important;
}

.hg .bk_menu.bk_new_menu .submenu .title a:hover {
    color: var(--hg-color-primary) !important;
    border: unset;
}

.hg .bk_menu.bk_new_menu .submenu .title a:before {
    display: none;
}

.hg a.all-items-link {
    display: none;
}

.hg .submenu .item,
.hg .submenu .title {
    margin: 0;
}

.hg .bk_menu.bk_new_menu .submenu .item {
    padding: 5px 10px;
    margin: 0;
}

.hg .bk_menu.bk_new_menu .submenu .item a {
	font-size: var(--hg-font-size-base);
}

.hg .bk_menu.bk_new_menu .submenu .item a:hover {
    color: var(--hg-color-accent);
}

.hg .bk_menu.bk_new_menu .submenu .item a:focus {
	color: var(--hg-color-primary) !important;
}

/* افکت‌های هاور منو */
.hg .bk_menu .bakala > ul > li:hover > span > a {
    color: var(--hg-color-hover) !important;
}

.hg .navbar-primary .bk_menu .bakala > ul > li:hover > svg path {
    stroke: var(--hg-color-hover) !important;
}

.hg .navbar-primary .bk_menu li:hover > svg path,
.hg .navbar-primary .bk_menu li > svg path {
    stroke: var(--hg-color-text-light);
}

/**
 * ====================================================================
 * ۴. جستجو (Search)
 * ====================================================================
 */
.rtl.hg .dgwt-wcas-no-submit .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input {
    width: 100%;
    height: 40px;
    background-color: #f0f0f0;
    margin-top: unset !important;
    padding: 0.625rem var(--hg-border-radius-full) 0.625rem 0.9375rem !important; /* 10px 50px 10px 15px */
    border-radius: var(--hg-border-radius-40) !important;
    font-weight: var(--hg-font-weight-normal);
    border: 1px solid var(--hg-border-color-default);
    /* حذف بخش @supports (corner-shape: round) که غیر استاندارد است */
}

.hg .dgwt-wcas-sf-wrapp:before {
    border-radius: var(--hg-border-radius-full);
    color: var(--hg-color-fixed-gray);
    font-size: 20px;
    margin: unset;
    padding-top: unset !important;
    background: unset;
    box-shadow: unset !important;
    top: 15px;
    right: 15px;
    cursor: pointer;
    width: auto;
    height: auto;
    display: block;
    border: none !important;
}

.hg .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input::placeholder {
    font-weight: var(--hg-font-weight-normal);
}

.hg .popular-search {
    width: 100%;
}

.hg .bakala_pro_carousel .item img {
    max-width: 210px!important;
    max-height: 210px!important;
}

/**
 * ====================================================================
 * ۵. حساب کاربری و سبد خرید (Account & Cart) - استفاده از Flexbox
 * ====================================================================
 */
.hg .bakala-header-account-text small {
    display: none;
}

.hg .not-logged-in .bakala-header-account {
    flex-direction: row-reverse;
}

.hg .not-logged-in i.bakala-header-account-icon.bakala-icon.icon-account {
    margin-right: unset;
}

.hg .not-logged-in .c-header__btn-container {
    margin-top: unset !important;
    background-color: var(--hg-color-secondary);
    padding: 10px 15px;
    border-radius: var(--hg-border-radius-full);
}

.hg .c-header__btn-container {
    margin-top: unset;
    height: 37px;
}

.hg .bakala-header-account {
    height: 37px;
    gap: 10px;
}

.logged-in.hg .bakala-header-account {
    gap: 5px;
}

.hg .not-logged-in .bakala-header-account-text {
    display: flex;
    flex-direction: column;
    font-size: var(--hg-font-size-xs) !important; /* 12px */
    top: -1px;
    position: relative;
    line-height: var(--hg-font-size-xs); /* 12px */
    align-items: flex-end;
}

.hg i.bakala-header-account-icon.bakala-icon.icon-account {
    margin-right: unset;
    height: 37px;
}

.hg .not-logged-in .bakala_account_cart {
    gap: 40px;
}

.hg .bakala_account_cart {
    gap: 30px;
    margin-top: unset;
    align-items: center;
}

.hg .bakala_account_cart .tbar {
    padding: unset !important;
    margin: unset !important;
}

.logged-in.hg .bakala_account_cart .tbar {
    padding: 10px !important;
    margin-top: unset;
    margin-left: unset;
    line-height: unset;
    height: 37px;
    background-color: var(--hg-color-secondary);
    /* حذف بخش @supports (corner-shape: round) که غیر استاندارد است */
}

.hg .header .dk-button-container .dk-button i.dk-button-icon.dk-button-icon-cart:before {
    margin-right: unset;
    margin-top: unset;
    content: "\E01b";
    font-size: var(--hg-spacing-xl); /* 30px */
    font-weight: 100;
    line-height: normal;
    color: var(--hg-color-primary);
}

.hg .cart-box .cart-items-count {
    background-color: var(--hg-color-secondary);
    left: 20px !important;
    top: 4px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    font-size: var(--hg-font-size-base) !important;
    line-height: normal !important;
    margin-top: unset !important;
    padding: unset !important;
}

.hg .cart-box {
    margin-top: unset !important;
}

.hg .bakala-header-account-text strong {
    margin-top: unset;
    font-size: var(--hg-font-size-base);
    font-weight: var(--hg-font-weight-normal);
    color: var(--hg-color-text-light);
}

.hg .not-logged-in .bakala-icon.icon-account:before {
    font-size: 20px;
    content: "\E037";
    color: var(--hg-color-text-light);
    line-height: normal;
    top: -5px;
    position: relative;
}

.hg .not-logged-in i.bakala-header-account-icon.bakala-icon.icon-arrow {
    display: none;
}

.logged-in.hg .bakala-icon.icon-arrow:before {
    content: "\E17A";
    color: var(--hg-color-text-light);
    font-size: 20px;
    right: unset;
    top: 2px;
}

.hg .bakala-icon.icon-account:before {
    position: relative;
    bottom: 6px;
    right: 3px;
    font-size: 20px;
    content: "\E037";
    line-height: normal;
    color: var(--hg-color-text-light);
    height: 27px;
}

.logged-in.hg .bakala-header-account-text,
.hg .header-cart-text {
    display: none !important;
}

/**
 * ====================================================================
 * ۶. پاپ‌آپ ورود و ثبت نام (Login/Register Pop-up)
 * ====================================================================
 */
.hg #bakala_login .modal-content {
    background: var(--hg-color-bg-base);
}

.hg #bakala_login.bakala_login_style_two .modal-content {
    padding: var(--hg-border-radius-20); /* 20px */
    min-width: 20vw;
    max-width: 22vw;
    box-shadow: 0 8px 20px #ffe7ff30; /* 30% شفافیت رنگ هایلایت */
}

.hg .close-icon:before {
    width: 30px;
    height: 30px;
    content: "\E162";
    font-size: var(--hg-spacing-xl); /* 30px */
    line-height: 34px;
    color: #ef505066; /* 40% شفافیت رنگ ثانویه */
}

.hg #modal-video-gallery .close-icon:hover:before,
.hg .close-icon:hover:before {
    border-radius: 14px;
    color: #F44336 !important;
}

.hg .c-input__field.c-input__field--ltr.lr-phone-number,
.hg #login-register input#phone:not([type="checkbox"]) {
    letter-spacing: 1px;
    font-size: var(--hg-font-size-base) !important;
    font-weight: var(--hg-font-weight-normal) !important;
}

.hg .auth-modal__title {
    color: var(--hg-color-primary);
}

.hg #bakala_login #login-register button:not(#edit-phone-number):disabled {
    background: var(--hg-color-highlight) !important;
    color: var(--hg-color-fixed-light-purple) !important;
    box-shadow: none !important;
    opacity: 1 !important;
    cursor: not-allowed;
}

.hg #login-register button:not(#edit-phone-number),
.hg #login-register-c button:not(#edit-phone-number-c),
.hg #login-register-cl button:not(#edit-phone-number-cl),
.hg #login-register-e button:not(#edit-phone-number-e) {
    font-weight: var(--hg-font-weight-normal);
}

.hg .lr-box .user-privacy .custom-control-label {
    line-height: 1.75;
    color: #333;
    font-size: var(--hg-font-size-xs); /* 12px */
    font-weight: var(--hg-font-weight-normal);
}

.hg .lr-box .user-privacy .custom-control-label:after {
    top: 1px;
}

.hg .lr-box .user-privacy .custom-control-label:before {
    top: 2px;
}

.hg #login-register input:not([type=checkbox]),
.hg #login-register-c input:not([type=checkbox]),
.hg #login-register-cl input:not([type=checkbox]),
.hg #login-register-e input:not([type=checkbox]) {
    color: #333;
    background: var(--hg-color-bg-base);
}

.hg #login-register .icon-profile-input-login:before,
.hg #login-register-c .icon-profile-input-login:before,
.hg #login-register-cl .icon-profile-input-login:before,
.hg #login-register-e .icon-profile-input-login:before {
    color: var(--hg-color-primary);
}

.hg #show-code,
.hg #show-code:hover,
.hg #show-pass:hover,
body.hg button#show-pass {
    margin: 0 auto;
    font-weight: var(--hg-font-weight-normal) !important;
    color: var(--hg-color-primary) !important;
    font-size: var(--hg-font-size-base) !important;
    border: 1px solid var(--hg-color-primary) !important;
    border-radius: var(--hg-border-radius-sm) !important;
    padding: 5px 10px !important;
}

.hg #login-register button:not(#edit-phone-number, #send, #lr-btn) {
    /* حذف @supports (corner-shape: round) */
    border-radius: var(--hg-border-radius-sm) !important;
}

.hg #bakala_login .forget {
    border: 1px solid var(--hg-color-primary);
    border-radius: var(--hg-border-radius-sm);
    display: flex;
    padding: 5px 10px;
    margin: 15px auto 0 !important;
    width: auto;
    height: 40px;
    color: var(--hg-color-primary) !important;
    font-weight: var(--hg-font-weight-normal);
    align-items: center;
}

.hg .auth-footer button#show-pass::before {
    font-size: 20px;
    top: 4px;
}

.hg .auth-footer .forget.btn:after {
    top: 2px;
}

.hg .auth-footer button#show-code:before {
    font-size: 23px;
    top: 5px;
}

.hg .input-icon.icon-password-input-login.font-icon:before {
    color: var(--hg-color-primary);
}

.hg .password-toggle-eye.bakala-icon:before {
    margin-left: 7px;
    margin-top: 4px;
    color: var(--hg-color-primary);
}

.hg .lr-box .user-privacy .custom-control-label {
    padding-right: 23px;
}

.hg .lr-box .user-privacy a {
    margin-left: 0;
}


/**
 * ====================================================================
 * ۷. اسلایدر و محصولات (Slider & Products)
 * ====================================================================
 */
.hg .bakala-best-sellers-head-section,
.hg .bakala_pro_carousel_modern_head_section {
    margin-bottom: unset;
    padding: 10px;
}

.hg .bakala-best-sellers-head-section-right,
.hg .bakala_pro_carousel_modern_head_section_right {
    background-color: unset;
    padding-left: unset;
}

.hg .bakala_pro_carousel_modern_head_section:after {
    display: none;
}

.hg .elementor-widget-products_carousel_modern a.bakala_pro_carousel_modern_head_section_more {
    font-size: var(--hg-font-size-xs); /* 12px */
    width: auto;
    gap: 5px;
    background-color: var(--hg-color-highlight);
    padding: 5px 10px !important;
    border-radius: var(--hg-border-radius-full);
    font-weight: var(--hg-font-weight-normal);
    color: var(--hg-color-primary);
    display: flex; /* اضافه شده برای اعمال gap */
    align-items: center; /* اضافه شده برای تراز */
}

.hg .bakala-best-sellers-head-section-more i,
.hg .bakala-icon.icon-arr-circle {
    margin-right: unset;
    padding: unset !important;
    border-radius: unset;
    background-color: unset;
    box-shadow: unset !important;
    font-size: 10px;
    color: var(--hg-color-primary);
}

.hg .slick-track {
    padding: 5px 0;
}

.hg article.item.bk_carousel_modern_item {
    border-radius: var(--hg-border-radius-md);
    padding: var(--hg-border-radius-md); /* 15px */
    margin: var(--hg-border-radius-md); /* 15px */
    height: 350px;
    border: unset;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.hg .bk_carousel_modern_item figure {
    margin-bottom: 0 !important;
    height: auto;
    /* فلکس‌دایرکشن در کد اصلی شما بود: */
    flex-direction: column;
}

.hg .elementor-widget-container .slick-slide img {
    max-width: 70%;
    margin: 0 auto;
}

.hg .bk_carousel_modern_product_title {
    height: 50px;
    display: block;
}

.hg a.bk_carousel_modern_product_title h3 {
    font-size: var(--hg-font-size-base); /* 14px */
    line-height: 1.75;
    text-align: center;
}

.hg article.item.bk_carousel_modern_item.slick-slide figure::after {
    content: "";
    position: relative;
    display: block;
    width: 100%;
    height: 1px;
    background-color: rgb(154 93 163 / 36%);
    margin: 10px 0;
}

.hg .owl-next,
.hg .owl-prev {
    position: absolute;
    background: var(--hg-color-highlight);
    top: 50%;
    height: 30px;
    width: 30px;
    border-radius: var(--hg-border-radius-full) !important;
    border: none !important;
    /* حذف بخش @supports (corner-shape: round) که غیر استاندارد است */
}

.hg button.owl-prev {
    right: -25px !important;
}

.hg button.owl-next {
    left: -25px !important;
}

.hg .owl-next:before,
.hg .slick-next,
.hg .owl-prev:before,
.hg .slick-prev {
    color: var(--hg-color-primary);
    line-height: 17px;
    font-size: 23px;
    margin: 0;
}

.hg .owl-prev:before,
.hg .slick-prev {
    content: "\E192";
    line-height: 15px;
    left: 1px;
}

.hg footer.bk_carousel_modern_footer .add_to_cart_btn {
    font-weight: var(--hg-font-weight-normal);
    padding: 10px;
}

.hg footer.bk_carousel_modern_footer {
    align-items: flex-end;
    margin-top: 0;
    min-height: 50px;
    display: flex;
}

.hg .loop-saving-percentage {
    padding: 4px 5px 2px;
}

.hg .icon-love:before {
    color: var(--hg-color-secondary);
    font-size: 19px;
}

.hg a.product_type_simple.add_to_cart_button.ajax_add_to_cart.add_to_cart_btn.loading.adding_to_cart {
    height: 36px;
}

.hg .bk_carousel_modern_stock_star {
    margin-bottom: unset;
}

.hg .bk_carousel_modern_stock {
    color: var(--hg-color-secondary);
    font-size: var(--hg-font-size-xs); /* 12px */
    font-weight: var(--hg-font-weight-normal);
}

.hg .section-products-carousel .productItem {
    width: 270px;
	display: flex;
    justify-content: space-evenly;
}

.hg .section-products-carousel .scroller .productItem b, .hg .section-products-carousel .scroller .productItem h5 {
    text-align: center;
    font-size: var(--hg-font-size-sm); /* 13px */
    height: 50px;
    line-height: 1.75;
    color: var(--hg-color-text-dark) !important;
    font-weight: var(--hg-font-weight-normal) !important;
    margin: 0 !important;
    padding: 0 0.5rem;
}


/**
 * ====================================================================
 * ۸. صفحه محصول (Single Product Page)
 * ====================================================================
 */
.hg.single-product main#content {
    max-width: 85vw !important;
    padding: unset;
}

.hg .breadcrumb {
    height: auto;
    margin-right: 0;
    margin-bottom: 0;
}

.hg.woocommerce .woocommerce-breadcrumb {
    padding: 0;
    font-weight: var(--hg-font-weight-normal);
    color: var(--hg-color-fixed-dark-purple);
}

.hg.woocommerce .woocommerce-breadcrumb span:last-child:before, .woocommerce-breadcrumb a:after {
    margin-left: 2px;
    padding-right: 2px;
    top: 2px;
}

.hg .woocommerce-breadcrumb a:after {
    font-size: 16px;
}

.hg span.posted_in a { /* سلکتور اضافه شده */
    font-size: var(--hg-font-size-sm); /* 13px */
    font-weight: var(--hg-font-weight-normal);
    color: var(--hg-color-accent) !important;
}

.hg.woocommerce #content div.product div.images, .woocommerce div.product div.images, .woocommerce-page #content div.product div.images, .woocommerce-page div.product div.images {
    padding-right: unset;
}

.hg .bakala_product_gallery_style_two .woocommerce-product-gallery__image {
    background: transparent !important;
}

.hg.woocommerce div.product div.images img.wp-post-image {
    padding: 0 0 var(--hg-spacing-lg); /* 25px */
    mix-blend-mode: unset;
}

.hg .bakala_product_gallery_style_two .bakala-control-thumbs li {
    padding: 5px!important;
}

.hg .bakala_product_gallery_style_two .product-gallery-warp ul {
    background-color: var(--hg-color-fixed-gallery-bg) !important;
}

.hg .product-gallery-warp ul li {
    padding: 0px;
}

.hg .bakala_product_gallery_style_two .product-gallery-warp ul li {
    height: 40px;
    margin: 3px 0 0 !important;
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hg .bakala_product_gallery_style_two .icon:before {
    color: #a458af !important;
}

.hg .product-title {
    flex-direction: row-reverse;
    justify-content: space-between;
}

.hg .product-title .brand {
    margin-left: unset;
}

.hg .product-info-box {
    background: var(--hg-color-bg-base);
}

.hg.woocommerce div.product form.cart .button.dk-button,
.hg.woocommerce button.button {
    background-color: var(--hg-color-secondary) !important;
}

.hg .product-info-box .woocommerce-variation-price {
	text-align: left;
}

.hg .product-det .info-header h1 {
    font-size: var(--hg-font-size-large); /* 18px */
    font-weight: var(--hg-font-weight-bold);
    color: var(--hg-color-text-dark);
    margin: 0;
}

.hg .product-english-name {
    color: #7e6989;
    line-height: 1.75;
    position: relative;
    display: block;
    text-align: left;
    font-family: sans-serif;
    font-weight: var(--hg-font-weight-semi-bold);
    background: var(--hg-color-bg-base);
    padding: 0.2rem 0.5rem;
    border-radius: var(--hg-border-radius-sm);
    margin: 0.5rem 0 0;
}

.hg .product-det .info-header .posted_in {
    border-top: unset !important;
}

.hg .product-det .info-header .posted_in span {
    font-weight: var(--hg-font-weight-normal);
    color: var(--hg-color-fixed-dark-purple) !important;
}

.hg .main-features-title {
    line-height: normal;
    display: block;
    color: var(--hg-color-text-dark);
    margin-top: unset;
	
}

.hg .main-features-title::after {
    /* از متغیر primary استفاده شد، زیرا --accent_color2 تعریف نشده بود */
    background-color: var(--hg-color-primary);
    border-radius: .25rem;
    content: '';
    display: block;
    height: .15rem;
    width: 75px;
    margin: .3rem 0 1rem;
}

.hg .product-det .header {
    display: flex;
    min-height: unset;
    margin-bottom: var(--hg-spacing-md);
}

.hg .bakala-product-specification-item-value {
    font-weight: var(--hg-font-weight-semi-bold);
    color: #56375b;
}

.hg .bakala-product-specification-item-value:hover {
    text-align: right;
}

.hg .product-info-box .seller-info .header-section:before, .hg.woocommerce div.product .woocommerce-tabs ul.tabs li.reviews_tab a::before, .hg.woocommerce div.product .woocommerce-tabs ul.tabs li.ask_tab a::before, .hg.woocommerce div.product .woocommerce-tabs ul.tabs li.additional_information_tab a::before, .hg.woocommerce div.product .woocommerce-tabs ul.tabs li.desc_tab a::before, .hg i.bakala-icon.tick::before, .hg .icon-stock-notice::before, .hg .vendor-warranty::before, .short_tab_title::before, .hg .product-info-box .leadTime-info i.icon::before {
    background: var(--hg-color-accent);
}

.hg .header-section {
    display: flex;
    align-items: center;
    gap: .8rem;
	width: 100%;
}

.hg span.more_icon {
    margin-right: auto;
    width: 20px;
    height: 20px;
}

.hg .product-info-box .more_icon:before {
    left: unset;
    top: unset;
}

.hg.woocommerce div.product .product-info-box p.price {
	float: left;
}

.hg .product-info-box .product-remain {
    margin: 0 0 var(--hg-spacing-md) 0;
    padding: 7px 15px;
    display: flex !important;
    align-items: center;
    gap: .8rem;
    color: var(--hg-color-secondary);
    font-size: var(--hg-font-size-sm); /* 13px */
    font-weight: var(--hg-font-weight-normal);
}

.hg .product-info-box .icon-stock-notice:before {
    right: unset;
}

.hg .icon-stock-notice:before {
    top: unset;
}

.hg i.icon.icon-stock-notice {
    width: 35px;
    height: 35px;
}

.hg.woocommerce div.product form.cart div.quantity {
    background: var(--hg-color-bg-light);
	border: 1px solid var(--hg-color-primary);
    box-shadow: unset;
}

.hg .product-info-box .leadTime-info .header-section i.icon.ready:before {
    right: unset;
    top: unset !important;
    margin-left: unset;
}

.hg .quantity .icon {
	color: #b97ac3;
    font-size: 23px;
    line-height: var(--hg-border-radius-full); /* 50px */
}

.hg.woocommerce .product-info-box .quantity .qty {
    color: #7b4483;
    margin-top: -1px;
    font-size: 20px;
    border: 1px solid var(--hg-color-primary) !important;
    border-bottom: 0 !important;
    border-top: 0 !important;
    border-radius: unset !important;
}

.hg .product-info-box .add-to-cart-holder {
    margin: 0 auto 0 0;
    width: 55%;
}

.hg .product-info-box span.return {
    margin-bottom: var(--hg-spacing-md);
}

.hg .product-info-box .quantity {
    box-shadow: unset;
    border: 1px solid #9a5da3;
}

/* متفرقه */
.bk_menu.bk_vertical_menu.level .submenu .title a:hover,
.hg .navbar-primary .bk_menu.bk_vertical_menu.level li:hover a:hover,
.product_info *,
.woocommerce-cart .checkout-headers.no_minimal ul li.nav:last-child p,
.woocommerce-cart .checkout-headers.no_minimal ul li.nav:nth-child(3) p {
    color: var(--hg-color-fixed-blue-green) !important;
}


/**
 * ====================================================================
 * ۹. فوتر (Footer)
 * ====================================================================
 */
.hg div#js-jump-to-top.static svg {
    display: none !important;
}

.hg .bakala-jump-to-top {
    width: auto;
    background: rgb(255 231 255);
    color: var(--hg-color-text-light);
    padding: 5px 10px;
    gap: 10px;
    display: flex;
    align-items: center;
}

.hg div#js-jump-to-top.static * {
    color: var(--hg-color-primary);
    font-weight: var(--hg-font-weight-normal);
    font-size: var(--hg-font-size-base);
    margin-left: unset;
}

.hg .c-new-footer__jump-to-top-icon {
    padding-right: unset;
}

.hg .c-new-footer__jump-to-top-icon::after {
    color: var(--hg-color-primary) !important;
    font-weight: var(--hg-font-weight-semi-bold);
}

.hg .bakala_mt_footer {
    padding: 0 var(--hg-border-radius-20) 50px; /* 20px */
    max-width: 1700px;
    margin: 0 auto;
}

.hg .bakala_mt_prefooter {
    background: var(--hg-color-bg-light) !important;
    border-radius: var(--hg-border-radius-20) var(--hg-border-radius-20) 0 0 !important;
}

.hg .footer-newsletter .container-bakala {
    padding: 0 10px;
}

.hg .copyright-bar {
    padding: 0 var(--hg-border-radius-20) 35px; /* 20px */
    border-radius: 0 0 var(--hg-border-radius-20) var(--hg-border-radius-20);
}

.hg .footer-newsletter ul {
    margin-right: unset;
    margin-top: unset;
    padding: 0 15px;
}

.hg .copyright-bar .copyright-bar-text {
    border-top: 1px solid var(--hg-color-primary);
}

.hg #sms-newsletter button, .hg button.tnp-submit {
    height: var(--hg-border-radius-full); /* 50px */
    background: var(--hg-color-primary) !important;
    border-radius: 18px 0 0 18px !important;
    color: var(--hg-color-highlight);
    width: auto;
    float: right;
    margin-right: unset !important;
    box-shadow: unset !important;
}

.hg #newsletter_phone,
.hg #verification_code,
.hg #verification_code_newsletter,
.hg .footer-newsletter input[type=email],
.hg .footer-newsletter input[type=text] {
    border-radius: 0 18px 18px 0 !important;
    background-color: #ffeeff;
    color: var(--hg-color-primary);
}

.hg .footer-newsletter input[type=text]::placeholder {
    color: var(--hg-color-primary);
    font-weight: var(--hg-font-weight-normal) !important;
}

.hg .bakala_mt_footer .footer-newsletter ul li a .icon {
    background-color: var(--hg-color-highlight);
    padding: 3px;
    border-radius: 30px;
    width: 40px !important;
    height: 40px !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hg .icon-footer-facebook:before,
.hg .icon-footer-twitter:before,
.hg .icon-footer-googleplus:before,
.hg .icon-footer-instagram:before,
.hg .icon-footer-telegram:before {
    /* حفظ مقدار فونت اصلی، فقط رنگ تغییر کرده */
    font: 25px /30px bakala;
    color: var(--hg-color-primary);
    height: 30px;
}

.hg .icon-footer-aparat:before {
    /* حفظ مقدار فونت اصلی، فقط رنگ تغییر کرده */
    font: 25px /32px bakala;
    color: var(--hg-color-primary);
    height: 26px;
}

.hg .button-more .more-link:before, .hg .footer_more:before {
    content: "\E17a";
    color: var(--hg-color-primary);
    font-size: 20px;
    margin-top: -6px;
    margin-right: -23px;
}

.hg .bakala_mt_footer .about-bar .col-md-3 img {
    background-color: unset;
    padding: 10px;
    border: 1px solid var(--hg-color-primary);
    border-radius: var(--hg-border-radius-20) !important;
	width: 100px!important;
	height: 100px!important;
}

.hg.single-product .bakala_mt_prefooter, .hg.single-product .footer-newsletter, .hg.single-product .about-bar, .hg.single-product .copyright-bar {
    background: var(--hg-color-bg-base) !important;
}

.hg.single-product .bakala_mt_footer .about-bar .col-md-3 img {
	mix-blend-mode: darken;
}

/**
 * ====================================================================
 * 8. Swatches
 * ====================================================================
 */

.hg.woocommerce div.product form.cart .variations label {
   display: contents;
    padding-right: 0;
   line-height: normal;
}

.hg.woocommerce div.product form.cart .variations td.label {
    line-height: normal !important;
    padding-left: unset;
   margin-bottom: 0.8rem;
}

.hg.woocommerce div.product form.cart .variations label::after {
    content: ":";
    display: block;
    position: relative;
    margin: 0 .2rem;
}

.hg .vi-wpvs-label-selected {
    font-weight: 400;
    line-height: normal !important;
    margin-left: unset;
}

.hg.woocommerce div.product form.cart .variations td, .hg.woocommerce div.product form.cart .variations th {
    vertical-align: middle;
}

 .hg .vi-wpvs-variation-wrap-color .vi-wpvs-option-wrap {
    align-items: center;
    justify-content: space-between;
   gap: .5rem;
    padding: 5px 10px!important;
}

.hg .vi-wpvs-variation-wrap-color .vi-wpvs-option-wrap:before {
    position: relative;
    right: 0;
}

.hg .vi-wpvs-variation-wrap.vi-wpvs-variation-wrap-image.vi-wpvs-variation-wrap-variationswatchesdesign .vi-wpvs-option-wrap, .hg .vi-wpvs-variation-wrap.vi-wpvs-variation-wrap-variation_img.vi-wpvs-variation-wrap-variationswatchesdesign .vi-wpvs-option-wrap, .hg .vi-wpvs-variation-wrap.vi-wpvs-variation-wrap-color.vi-wpvs-variation-wrap-variationswatchesdesign .vi-wpvs-option-wrap {
    width: auto !important;
}

.hg .vi-wpvs-variation-wrap-color .vi-wpvs-option.vi-wpvs-option-color {
    width: 20px!important;
    height: 22px!important;
    border-radius: 17px!important;
    border: 1px solid #766279 !important;
    position: relative;
}

.hg .vi-wpvs-variation-wrap-color .vi-wpvs-option-wrap.vi-wpvs-option-wrap-selected span:before {
   position: relative;
    width: 20px;
    height: 20px;
    font-size: 8px;
    line-height: 24px;
    color: #fff;
    right: -4px;
}

.hg .vi_wpvs_variation_form:not(.vi_wpvs_loop_variation_form) .vi-wpvs-variation-wrap-wrap, .hg .vi_wpvs_variation_form:not(.vi_wpvs_loop_variation_form) .vi-wpvs-variation-wrap-wrap .vi-wpvs-variation-wrap {
    justify-content: flex-start;
}

/*
 * ====================================================================
 * فروشگاه و صفحه محصولات (Shop & Product Grid)
 * ====================================================================
 */
.hg.woocommerce ul.products, .woocommerce-page ul.products {
    gap: var(--hg-spacing-10px);
    justify-content: center;
}

.hg.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
    min-width: 23%!important;
    width: 23%!important;
	padding-top: 0;
	height: 400px;
}

.hg.woocommerce ul.products::before {
	display: none;
}

.hg .shop-page .col-md-10 {
    margin-right: unset;
    margin-top: unset;
}

.hg .filters-panel {
    margin-top: var(--hg-spacing-50px);
}

.hg .bakala_pagination .pagination .page-numbers {
    width: var(--hg-border-radius-40);
    height: var(--hg-border-radius-40);
    border: 1px solid var(--hg-color-fixed-pagination-border); /* #e9cbed */
    background: var(--hg-color-highlight);
    box-shadow: unset;
    color: var(--hg-color-primary);
    font-size: var(--hg-font-size-large);
    font-weight: var(--hg-font-weight-normal);
}

.hg .bakala_pagination .page-numbers.current {
    color: var(--hg-color-text-light);
    background: var(--hg-color-primary);
}

.hg .products__item-image {
    max-width: 200px!important;
    max-height: 200px!important;
    margin-top: 0.625rem !important; /* 10px */
}

.hg .products-box .products__item-fatitle {
	text-align: center;
    margin-top: var(--hg-spacing-20px);
}

.hg .products__item-fatitle a {
    font-weight: var(--hg-font-weight-normal);
}

.hg .products__item-info {
    display: flex;
    padding: 0 var(--hg-border-radius-md) 0.625rem; /* 0 15px 10px */
    text-align: left;
    flex-direction: column;
    gap: 0.3rem;
}

.hg.woocommerce ul.products li.product a img {
    margin: 0;
}

.hg.woocommerce ul.products li.product .products__item-price {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hg .product-box-inner .products__item-price--final span.out_stock {
    margin-top: var(--hg-border-radius-40)!important; /* 40px */
}

.hg .products__item-price--final span.out_stock {
    box-shadow: unset;
}

.hg.content-box-shop ins .woocommerce-Price-amount.amount {
    line-height: normal;
}

.hg.content-box-shop del {
    position: relative;
    bottom: 0.4rem;
}

@media screen and (max-width: 1024px) {
	
.hg .bakala_ai_comment:hover, .hg.woocommerce div.product .product-info-box .button.external-product-btn:hover, .hg.single-product .add-to-cart-holder-normal button.single_add_to_cart_button.button.alt:hover, .hg .swal2-styled.swal2-confirm:hover, .hg #bakala_login #login-register button#send:hover, .hg .matrix-widget-apply-filter:hover, .hg .dk-button-container.small button:hover, .hg .add-to-cart-holder .add-to-cart-button .single_add_to_cart_button.button.alt.has-icon:hover, .hg .add-to-cart-holder button.button.dk-button.has-icon:hover, .hg #feedback_submit:hover, .hg .woocommerce-Button.button:hover, .hg .form-submit input#submit:hover, .hg.woocommerce div.product .bakala_product_float_box .product-info-box .button:hover, .hg .bakala_add_onMoreShow:hover, .hg .btn.product-dle-btn:hover, .hg.woocommerce div.product form.cart .button.dk-button:hover, .hg a.bk-factor-button:hover, a.back_to_home.btn:hover, .hg.woocommerce #payment #place_order:hover, .hg.woocommerce-page #payment #place_order:hover, .hg #sms-newsletter button:hover, .hg .profile-section__more a i.fa.fa-chevron-left:hover:before, .hg .woocommerce-address-fields .woocommerce-Button.button:hover, .woocommerce-MyAccount-content .order-status i.fa-chevron-left:hover:before, span.edit-info:hover, li.woocommerce-MyAccount-navigation-link.is-active:hover:before, .wishlist-item .btn.btn-blue.woocommerce-Button.button:hover, .rememberpassword .dk-button-container .dk-button.blue:hover, .hg #login-register .input-box.lr_btn_wrap button:not(#edit-phone-number):hover, .hg .section-products-carousel .button.product_type_external:hover, .hg .bakala-icon.icon-arr-circle:hover, .hg .bakala_recent_visits_style2_item_showmore svg:hover, .hg .bakala_recent_visits_style2 .bakala-icon.icon-arr-circle:hover, .hg footer.bk_carousel_modern_footer .add_to_cart_btn:hover, .hg .section-products-carousel a.button.product_type_simple:hover, .hg .ar-order:hover, .hg .loop-add-to-cart .button.product_type_simple.add_to_cart_button.ajax_add_to_cart:hover, .hg .bakala_add_to_cart_button:hover, .hg .return-to-shop .button.wc-backward:hover, .hg .ar-order:hover, a.checkout-button.button.wc-forward:hover, .hg button.tnp-submit:hover, .hg #sms-newsletter button:hover, .hg button.tnp-submit:hover {
   box-shadow: 3px 4px 9px 0 rgb(154 93 163 / 30%) !important;
    transition: box-shadow .5s cubic-bezier(.4, 0, 1, 1), transform .5s cubic-bezier(.4, 0, 1, 1)!important;
}
	
.hg div#sms-newsletter {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
	
.hg #sms-newsletter button, .hg button.tnp-submit {
    height: 45px;
    margin: unset !important;
    float: left;
}
	
.hg footer.bk_carousel_modern_footer {
     justify-content: flex-end;
}

.hg .namad.col-md-3 img {
    padding: 3px;
}

.hg footer.bk_carousel_modern_footer .add_to_cart_btn {
    background: #9a5da3;
}
	
.hg #newsletter_phone, #verification_code {
    width: 82%;
}

.hg.single-product main#content {
    max-width: 100vw !important;
}
	
.hg .footer-section .socials {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hg i.bakala-cart-icon:before {
       content: "\E009";
    color: #9a5da3;
    line-height: 50px;
    background-color: #f7f7f7 !important;
}

.hg .mobile-bottom-nav__item #BasketHeaderCount {
    right: 0px;
    background: #ef5050;
    animation: unset;
}
	
.hg.logged-in .product-tooltips.sticky .icon.icon-account:after,
.hg.logged-in i.mobile-bottom-nav__item-icon.bakala-account-icon:after {
    line-height: 16px;
    color: #ef5050;
    height: 13px;
    width: 13px;
}
	
.hg .copyright-bar {
    padding: 0 0 70px;
}

.hg div#js-jump-to-top * {
    margin-left: 3px;
}

.hg .c-new-footer__jump-to-top-container {
    padding: 2px 9px 3px 3px;
}
	
.hg .socials li {
    background: var(--hg-color-highlight)!important;
}

.hg .socials i.icon {
    width: 25px!important;
    height: 25px!important;
    margin-top: unset;
}

.hg ul.socials li a {
    display: block;
    height: 36px;
    margin-top: 5px;
}
	
.hg .icon-footer-facebook:before,
.hg .icon-footer-twitter::before,
.hg .icon-footer-googleplus:before,
.hg .icon-footer-instagram:before,
.hg .icon-footer-aparat::before,
.hg .icon-footer-telegram:before
 {
    background-color: #9a5da3;
}
	
.hg .c-new-footer__jump-to-top-container {
    border: unset;
    background: #ffe7ff;
    color: #9a5da3;
}

.hg .c-new-footer__logo img {
    margin-top: 0;
}
	
.hg .loop-saving-percentage, .sale-perc {
    background: #ef5050;
}
	
.hg .purchase_records_modal_show::before, .hg .recomendation-product i.bakala-icon.tick::before, .hg .icon-stock-notice::before, .hg .c-seller__info--leadTime i.icon.ready::before,.hg .vendor-warranty::before, .hg .short_tab_title::before, .hg .add-comment-text::before, .hg .add-question-text::before {
    background: #1ba3a7;
}

.hg .icon-stock-notice::before {
    right: unset;
}

.hg .c-seller__info.c-seller__info--leadTime {
    display: flex;
    margin: 10px 0 0!important;
    gap: 5px;
}

.hg .product__title {
    font-weight: 400;
}

.hg .carousel__header .related-title, .carousel__header h2, .carousel__header h3, .carousel__header strong {
    border-bottom: 3px solid var(--hg-color-primary);
}

.hg .woocommerce-product-gallery__image img {
    max-height: 300px;
}

.hg span.en-title {
    font-size: 12px;
    margin: 15px 0;
    font-weight: 400;
text-align: left;
}

.hg div#js-jump-to-top * {
    color: #9a5da3;
}
	
}

.c-new-footer__logo {
    width: 100%;
}