/* 
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 */

/* ================================
   Base Header Style
================================ */

.custom-site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

body.home .custom-site-header {
    background-color: transparent;
    box-shadow: none;
}

body.home .custom-site-header:hover,
body.home .custom-site-header.header-scrolled {
    background-color: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

body:not(.home) .custom-site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

body:not(.home) {
    padding-top: 90px;
}






body.home .custom-site-header:not(.header-scrolled):not(:hover) .menu-item-title {
    color: #ffffff !important;
}

body.home .custom-site-header:hover .menu-item-title,
body.home .custom-site-header.header-scrolled .menu-item-title,
body:not(.home) .custom-site-header .menu-item-title {
    color: #222222 !important;
}
/* وقتی موس مستقیم روی خودِ لینک منو می‌رود */
.custom-site-header .ha-navigation-menu-wrapper ul.menu > li > a:hover .menu-item-title {
    color: #806C5C !important; 
}

body.home .custom-site-header:not(.header-scrolled):not(:hover) .ha-navigation-menu-wrapper ul.menu > li > a:hover .menu-item-title {
    color: #ffcc00 !important;
}
/* رنگ آیتم فعال در منو */
.custom-site-header .ha-navigation-menu-wrapper ul.menu > li.current-menu-item > a .menu-item-title {
    color: #ff6600 !important;
}




/* تبدیل لوگو به کاملاً سفید با فیلتر */
body.home .custom-site-header:not(.header-scrolled):not(:hover) .main-logo-svg {
    filter: brightness(0) invert(1) !important;
}

/* برگرداندن لوگو به حالت رنگ اصلی */
body.home .custom-site-header.header-scrolled .main-logo-svg,
body.home .custom-site-header:hover .main-logo-svg,
body:not(.home) .main-logo-svg {
    filter: none !important;
}



a#elementor-menu-cart__toggle_button {
    border: none;
}




body.home .custom-site-header:not(.header-scrolled):not(:hover) .elementor-menu-cart__toggle_button,
body.home .custom-site-header:not(.header-scrolled):not(:hover) .elementor-menu-cart__toggle_button *,
body.home .custom-site-header:not(.header-scrolled):not(:hover) .e-toggle-cart-custom-icon::before {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

body.home .custom-site-header.header-scrolled .elementor-menu-cart__toggle_button,
body.home .custom-site-header.header-scrolled .elementor-menu-cart__toggle_button *,
body.home .custom-site-header:hover .e-toggle-cart-custom-icon::before,
body.home .custom-site-header.header-scrolled .e-toggle-cart-custom-icon::before,
body:not(.home) .custom-site-header .elementor-menu-cart__toggle_button,
body:not(.home) .custom-site-header .elementor-menu-cart__toggle_button *,
body:not(.home) .custom-site-header .e-toggle-cart-custom-icon::before {
    color: #222222 !important;
    fill: #222222 !important;
    stroke: #222222 !important;
}


body.home .custom-site-header:not(.header-scrolled):not(:hover) .elementor-menu-cart__toggle_button * {
	color: #806C5C !important;
}







/* حذف حاشیه و استایل پیش‌فرض فیلد جت‌سرچ */
.jet-ajax-search__field {
    border: none !important;
    border-bottom: 1px solid #eee !important; /* خط زیرین نازک */
    font-size: 24px !important;
    padding: 20px 0 !important;
    border-radius: 0 !important;
}

/* استایل‌دهی به نتایج (Results Grid) */
.jet-ajax-search__results-area {
    box-shadow: none !important;
    border: none !important;
    padding-top: 30px !important;
}

/* چیدمان محصولات به صورت گرید (شبیه عکس) */
.jet-ajax-search__results-list {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important; /* نمایش ۵ محصول در هر ردیف */
    gap: 20px !important;
}

/* استایل هر محصول در نتایج */
.jet-ajax-search__item {
    border: none !important;
    text-align: left !important;
}

.jet-ajax-search__item-thumbnail {
    width: 100% !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.jet-ajax-search__item-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-top: 10px !important;
}

/* دکمه مشاهده همه نتایج (See all results) */
.jet-ajax-search__full-results {
    background: #222 !important;
    color: #fff !important;
    border-radius: 30px !important;
    padding: 12px 30px !important;
    text-align: center;
    margin: 20px auto !important;
    display: block !important;
    width: fit-content !important;
}










/* ================================
   HEADER SEARCH POPUP - HARD RESET
   ================================ */

/* خود فرم جت‌سرچ */
.jet-ajax-search,
.jet-ajax-search *,
.jet-ajax-search *::before,
.jet-ajax-search *::after {
    box-sizing: border-box !important;
}

/* نگهدارنده فیلدها */
.jet-ajax-search .jet-ajax-search__fields-holder,
.jet-ajax-search .jet-ajax-search__form,
.jet-ajax-search form {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* حذف کادر مشکی دور input در همه حالت‌ها */
.jet-ajax-search input,
.jet-ajax-search input[type="search"],
.jet-ajax-search input[type="text"],
.jet-ajax-search .jet-ajax-search__field {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

/* حذف کادر مشکی مخصوص focus */
.jet-ajax-search input:focus,
.jet-ajax-search input:focus-visible,
.jet-ajax-search input[type="search"]:focus,
.jet-ajax-search input[type="search"]:focus-visible,
.jet-ajax-search .jet-ajax-search__field:focus,
.jet-ajax-search .jet-ajax-search__field:focus-visible {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

/* استایل نهایی input: فقط خط زیرین */
.jet-ajax-search .jet-ajax-search__field {
    width: 100% !important;
    height: auto !important;
    min-height: 72px !important;
    padding: 10px 0 18px 0 !important;

    font-size: 34px !important;
    font-weight: 300 !important;
    line-height: 1.2 !important;
    color: #111 !important;

    border-bottom: 1px solid #dcdcdc !important;
}

/* خط زیرین در حالت فوکوس */
.jet-ajax-search .jet-ajax-search__field:focus {
    border-bottom: 1px solid #111 !important;
}

/* حذف ضربدر/clear button پیش‌فرض مرورگر داخل search input */
.jet-ajax-search input[type="search"]::-webkit-search-cancel-button,
.jet-ajax-search input[type="search"]::-webkit-search-decoration,
.jet-ajax-search input[type="search"]::-webkit-search-results-button,
.jet-ajax-search input[type="search"]::-webkit-search-results-decoration {
    display: none !important;
    -webkit-appearance: none !important;
}

/* حذف ضربدر آبی JetSearch */
.jet-ajax-search .jet-ajax-search__clear,
.jet-ajax-search .jet-ajax-search__clear-icon,
.jet-ajax-search .jet-ajax-search__clear-button,
.jet-ajax-search .jet-search-clear,
.jet-ajax-search .jet-search-clear-icon,
.jet-ajax-search .jet-ajax-search__field-clear,
.jet-ajax-search .jet-ajax-search__field-icon,
.jet-ajax-search .jet-ajax-search__reset,
.jet-ajax-search .jet-ajax-search__reset-button {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* اگر ضربدر با svg یا i داخل فرم آمده باشد */
.jet-ajax-search .jet-ajax-search__fields-holder > svg,
.jet-ajax-search .jet-ajax-search__fields-holder > i,
.jet-ajax-search .jet-ajax-search__fields-holder button[type="reset"],
.jet-ajax-search button[type="reset"] {
    display: none !important;
}

/* حذف دکمه submit اگر مزاحم است */
.jet-ajax-search .jet-ajax-search__submit {
    display: none !important;
}

/* حذف دسته‌بندی کنار سرچ اگر نمی‌خواهی */
.jet-ajax-search .jet-ajax-search__categories,
.jet-ajax-search .jet-ajax-search__categories-select,
.jet-ajax-search select {
    display: none !important;
}

/* فرم سرچ تمام عرض شود */
.jet-ajax-search .jet-ajax-search__form,
.jet-ajax-search .jet-ajax-search__fields-holder {
    width: 100% !important;
}

/* فاصله داخلی پاپ‌آپ */
.elementor-popup-modal .dialog-widget-content {
    background: #fff !important;
}

/* دکمه بستن اصلی پاپ‌آپ المنتور */
.elementor-popup-modal .dialog-close-button {
    color: #111 !important;
    font-size: 34px !important;
    top: 28px !important;
    right: 28px !important;
    z-index: 999999 !important;
}

.elementor-popup-modal .dialog-close-button i,
.elementor-popup-modal .dialog-close-button svg {
    color: #111 !important;
    fill: #111 !important;
}

















