.elementor-371 .elementor-element.elementor-element-99bfbba{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-371 .elementor-element.elementor-element-914df68{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-widget-image .widget-image-caption{color:var( --e-global-color-text );font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );}.elementor-371 .elementor-element.elementor-element-b0a3444 img{width:100%;max-width:100%;height:388px;}.elementor-371 .elementor-element.elementor-element-f77f8e8{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}:root{--page-title-display:none;}@media(max-width:1024px){.elementor-371 .elementor-element.elementor-element-b0a3444 img{height:301px;}}@media(max-width:767px){.elementor-371 .elementor-element.elementor-global-358{width:var( --container-widget-width, 142px );max-width:142px;--container-widget-width:142px;--container-widget-flex-grow:0;}.elementor-371 .elementor-element.elementor-global-358 > .elementor-widget-container{margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;}.elementor-371 .elementor-element.elementor-global-358.elementor-element{--align-self:flex-start;}.elementor-371 .elementor-element.elementor-element-b0a3444 img{height:156px;}}/* Start custom CSS for global, class: .elementor-global-358 *//* الصندوق */
.elementor-371 .elementor-element.elementor-global-358 { position: relative; }

/* حقل البحث + الحواف + مساحة للأيقونة (ديسكتوب) */
.elementor-371 .elementor-element.elementor-global-358 input[type="search"],
.elementor-371 .elementor-element.elementor-global-358 .elementor-search-form__input,
.elementor-371 .elementor-element.elementor-global-358 .woocommerce-product-search .search-field{
  width: 100%;
  border: 1px solid #cfd8dc;
  background-color: #fff;
  border-radius: 8px;
  padding: 12px 16px 12px 44px;        /* مساحة للأيقونة يسار مع RTL */
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  direction: rtl;

  /* أيقونة العدسة كخلفية — ديسكتوب */
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232BB673' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\
<circle cx='11' cy='11' r='7'/>\
<line x1='21' y1='21' x2='16.65' y2='16.65'/>\
</svg>");
  background-repeat: no-repeat;
  background-position: 14px 50%;
  background-size: 18px 18px;
}

/* إخفاء زر الإرسال نهائيًا (يُفعل لاحقًا على الجوال فقط) */
.elementor-371 .elementor-element.elementor-global-358 .elementor-search-form__submit,
.elementor-371 .elementor-element.elementor-global-358 button[type="submit"],
.elementor-371 .elementor-element.elementor-global-358 input[type="submit"],
.elementor-371 .elementor-element.elementor-global-358 .woocommerce-product-search button{
  display: none !important;
}

/* تركيز جميل */
.elementor-371 .elementor-element.elementor-global-358 input[type="search"]:focus,
.elementor-371 .elementor-element.elementor-global-358 .elementor-search-form__input:focus,
.elementor-371 .elementor-element.elementor-global-358 .woocommerce-product-search .search-field:focus{
  border-color: #2BB673;
  box-shadow: 0 0 0 3px rgba(43,182,115,.18);
  outline: none;
}

/*////////////////*/
/*////////////////*/
/*////////////////*/
/* جوال: إظهار العدسة مرة واحدة فقط عبر الزر */
@media (max-width: 768px) {

  /* الحاوية */
  .elementor-371 .elementor-element.elementor-global-358 {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 40px !important;          /* يبدأ أيقونة فقط */
    height: 38px !important;
    overflow: hidden;
    transition: width 0.25s ease;
  }

  /* الحقل مصغّر، ونوقف خلفية الأيقونة على الجوال لمنع التكرار */
  .elementor-371 .elementor-element.elementor-global-358 input[type="search"],
  .elementor-371 .elementor-element.elementor-global-358 .elementor-search-form__input {
    width: 0 !important;
    height: 38px !important;
    line-height: 38px !important;
    border: 1px solid #ddd !important;
    border-radius: 999px !important;
    padding-inline-end: 36px !important;
    transition: width 0.25s ease, padding 0.25s ease, opacity 0.2s ease !important;
    opacity: 0 !important;

    /* منع تكرار الأيقونة على الجوال: نلغي خلفية الحقل هنا */
    background-image: none !important;
  }

  /* زر الإرسال: نفرض وجوده ونعرض الأيقونة الخضراء فقط منه */
  .elementor-371 .elementor-element.elementor-global-358 button[type="submit"],
  .elementor-371 .elementor-element.elementor-global-358 .elementor-search-form__submit {
    position: absolute !important;
    inset-inline-end: 6px !important;
    inset-block-start: 50% !important;
    transform: translateY(-50%) !important;
    width: 26px !important;
    height: 26px !important;
    border: 0 !important;
    background: none !important;
    padding: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 5 !important;

    /* خلي الضغط يمرّ للحقل ليفتحه */
    pointer-events: none !important;
  }

  /* اخفاء أي محتوى داخلي قد يغطي على الأيقونة */
  .elementor-371 .elementor-element.elementor-global-358 button[type="submit"] > *,
  .elementor-371 .elementor-element.elementor-global-358 .elementor-search-form__submit > * {
    display: none !important;
  }

  /* الأيقونة الخضراء (مرّة واحدة) على الزر */
  .elementor-371 .elementor-element.elementor-global-358 button[type="submit"]::after,
  .elementor-371 .elementor-element.elementor-global-358 .elementor-search-form__submit::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    margin: auto !important;
    width: 20px !important;
    height: 20px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 20px !important;
    display: block !important;
    /* نفس الأخضر #2BB673 */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232BB673' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") !important;
  }

  /* افتح الصندوق عند التركيز داخل الودجت */
  .elementor-371 .elementor-element.elementor-global-358:focus-within {
    width: min(280px, 90vw) !important;
  }
  .elementor-371 .elementor-element.elementor-global-358:focus-within input[type="search"],
  .elementor-371 .elementor-element.elementor-global-358:focus-within .elementor-search-form__input {
    width: 100% !important;
    opacity: 1 !important;
    padding: 0 40px 0 14px !important;
  }

  /* دعم RTL */
  html[dir="rtl"] .elementor-371 .elementor-element.elementor-global-358 input[type="search"],
  html[dir="rtl"] .elementor-371 .elementor-element.elementor-global-358 .elementor-search-form__input {
    padding-inline-start: 40px !important;
    padding-inline-end: 14px !important;
  }
  html[dir="rtl"] .elementor-371 .elementor-element.elementor-global-358 button[type="submit"],
  html[dir="rtl"] .elementor-371 .elementor-element.elementor-global-358 .elementor-search-form__submit {
    inset-inline-start: 6px !important;
    inset-inline-end: auto !important;
  }
}

/* ديسكتوب يرجع طبيعي */
@media (min-width: 769px) {
  .elementor-371 .elementor-element.elementor-global-358 { width: auto !important; overflow: visible !important; }
  .elementor-371 .elementor-element.elementor-global-358 input[type="search"],
  .elementor-371 .elementor-element.elementor-global-358 .elementor-search-form__input { width: auto !important; opacity: 1 !important; }
  .elementor-371 .elementor-element.elementor-global-358 button[type="submit"],
  .elementor-371 .elementor-element.elementor-global-358 .elementor-search-form__submit { pointer-events: auto !important; }
}

/* — خيار لون أبيض (احتياطي) لو الخلفية داكنة — */
/*
.elementor-371 .elementor-element.elementor-global-358 button[type="submit"]::after,
.elementor-371 .elementor-element.elementor-global-358 .elementor-search-form__submit::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") !important;
}
*//* End custom CSS */