/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
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
*/

/* Add your custom styles here */
#archive-desc,
#archive-accordion {
  display: none !important;
}

/* ۲. فقط در صفحات دسته‌بندی محصول (Product Category Archive) نمایش داده شوند */
body.tax-product_cat #archive-desc,
body.tax-product_cat #archive-accordion {
  display: block !important;
}

/* ۳. فاصله‌ی مناسب بالای هر ویجت در صفحات دسته‌بندی */
body.tax-product_cat #archive-desc,
body.tax-product_cat #archive-accordion {
  margin-top: 20px !important;
}

/* ۴. اختیاری: اگر در بعضی قالب‌ها Flex نیاز باشد برای تراز شدن محتوا */
body.tax-product_cat #archive-desc .elementor-widget-container,
body.tax-product_cat #archive-accordion .elementor-widget-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

/* ۵. اطمینان از شکستن صحیح خطوط در توضیحات آرشیو */
#archive-desc .elementor-icon-box-content,
#archive-desc .elementor-icon-box-description {
  display: flex !important;
  flex-direction: column !important;
  white-space: normal !important;
  line-height: 1.4 !important;
  gap: 6px !important;
}
#archive-desc .elementor-icon-box-description br {
  display: block !important;
  content: "" !important;
  margin-bottom: 4px !important;
}
