.elementor-9 .elementor-element.elementor-element-5f8e3580{padding:0px 0px 0px 0px;}.elementor-9 .elementor-element.elementor-element-ff88ae0{--display:flex;--flex-direction:row;--container-widget-width:initial;--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;--gap:0px 0px;--row-gap:0px;--column-gap:0px;}.elementor-9 .elementor-element.elementor-element-a03147d{--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-heading .elementor-heading-title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );color:var( --e-global-color-primary );}.elementor-9 .elementor-element.elementor-element-ebedf7d{text-align:center;}.elementor-9 .elementor-element.elementor-element-ebedf7d .elementor-heading-title{font-family:"Cairo", Sans-serif;font-weight:bold;color:#AA8961;}.elementor-9 .elementor-element.elementor-element-7de8414{--display:flex;}.elementor-9 .elementor-element.elementor-element-eeeeb97{--display:flex;}.elementor-9 .elementor-element.elementor-element-8c1f2c0{--display:flex;}.elementor-9 .elementor-element.elementor-element-d89dad3{padding:0px 0px 0px 0px;}.elementor-9 .elementor-element.elementor-element-922e50b{--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-9 .elementor-element.elementor-element-5026ae8 img{border-radius:5px 5px 5px 5px;}.elementor-9 .elementor-element.elementor-element-0cfd25b{--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;}@media(min-width:768px){.elementor-9 .elementor-element.elementor-element-a03147d{--width:100%;}}/* Start custom CSS for shortcode, class: .elementor-element-fe75a60 *//* تنسيق جملة غير متوفر في المخزون */
.ast-shop-product-out-of-stock {
    display: block !important;
    color: red !important;   
    font-size: 12px !important; /* الحجم أصغر للنص */
    font-weight: bold !important;
    text-align: center !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    clear: both !important;
    line-height: 1.4 !important; /* يقلل المسافة بين الأسطر */
}

/* موبايل فقط */
@media (max-width: 768px) {
    .ast-shop-product-out-of-stock {
        font-size: 10px !important; /* أصغر كمان على الموبايل */
        margin-top: 5px !important;
        margin-bottom: 5px !important;
    }
}/* End custom CSS */
/* Start custom CSS for shortcode, class: .elementor-element-19d2aa5 *//* تنسيق جملة غير متوفر في المخزون */
.ast-shop-product-out-of-stock {
    display: block !important;
    color: red !important;   
    font-size: 12px !important; /* الحجم أصغر للنص */
    font-weight: bold !important;
    text-align: center !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    clear: both !important;
    line-height: 1.4 !important; /* يقلل المسافة بين الأسطر */
}

/* موبايل فقط */
@media (max-width: 768px) {
    .ast-shop-product-out-of-stock {
        font-size: 10px !important; /* أصغر كمان على الموبايل */
        margin-top: 5px !important;
        margin-bottom: 5px !important;
    }
}/* End custom CSS */
/* Start custom CSS for shortcode, class: .elementor-element-d86c113 *//* استدعاء خط كايرو */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

/* شكل البطاقة */
.woocommerce ul.products li.product {
  font-family: 'Cairo', sans-serif !important;
  background: #fff;
  border-radius: 18px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease-in-out;
  overflow: hidden;
  position: relative;
}

/* عند المرور */
.woocommerce ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* صورة المنتج */
.woocommerce ul.products li.product img {
  border-radius: 12px;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}
.woocommerce ul.products li.product:hover img {
  transform: scale(1.05);
}

/* اخفاء التصنيف */
.woocommerce ul.products li.product .posted_in,
.woocommerce ul.products li.product .woocommerce-loop-category__title {
  display: none !important;
}

/* عنوان المنتج */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 17px;
  font-weight: 600;
  color: #222;
  margin: 6px 0;
}

/* السعر */
.woocommerce ul.products li.product .price {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin: 6px 0;
}

/* تقييم النجوم */
.woocommerce .star-rating {
  font-size: 15px;
  margin: 4px auto 0;
  display: flex;
  justify-content: center;
  color: #FFD700;
}
.woocommerce .star-rating span::before {
  content: "★★★★☆"; /* 4 نجوم */
  color: #FFD700;
}
.woocommerce .star-rating::before {
  content: "½"; /* النص */
  color: #FFD700;
  font-size: 14px;
  position: relative;
  left: -3px;
}

/* زر السلة نخفيه (لو مش عايزه يظهر) */
.woocommerce ul.products li.product .button {
  display: none !important;
}

/* أيقونة القلب (wishlist) */
.woocommerce ul.products li.product::after {
  content: "❤";
  font-size: 18px;
  color: #e91e63;
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff;
  border-radius: 50%;
  padding: 5px 7px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
/* نجوم ثابتة 4.5 */
.woocommerce ul.products li.product .star-rating {
  display: block !important;
  font-size: 15px;
  margin: 4px auto;
  text-align: center;
  color: #FFD700;
  font-family: 'Cairo', sans-serif;
}
.woocommerce ul.products li.product .star-rating::before {
  content: "★★★★☆"; /* 4 نجوم */
  color: #FFD700;
}
.woocommerce ul.products li.product .star-rating span::before {
  content: "½"; /* النص */
  position: relative;
  left: 2px;
  color: #FFD700;
}
/* اخفاء التصنيف */
.woocommerce ul.products li.product .posted_in,
.woocommerce ul.products li.product .woocommerce-loop-category__title {
  display: none !important;
}

/* زر السلة نخفيه */
.woocommerce ul.products li.product .button {
  display: none !important;
}
.woocommerce ul.products li.product .button {
  display: inline-block !important;
  background: #aa8961 !important;
  color: #fff !important;
  font-family: 'Cairo', sans-serif !important;
  font-weight: 600;
  border-radius: 12px;
  padding: 10px 20px;
  margin-top: 10px;
  transition: all 0.3s ease-in-out;
  border: none;
}
.woocommerce ul.products li.product .button:hover {
  background: #333 !important;
  transform: scale(1.08);
}
/* عنوان المنتج */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Cairo', sans-serif !important;
  font-size: 18px;
  font-weight: 600;
  color: #222;
  text-align: center;
}
.woocommerce ul.products li.product {
  text-align: center !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .star-rating {
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}
// تغيير نص زر السلة + إضافة أيقونة SVG
add_filter('woocommerce_product_add_to_cart_text', 'custom_add_to_cart_button_text');
add_filter('woocommerce_product_single_add_to_cart_text', 'custom_add_to_cart_button_text');

function custom_add_to_cart_button_text($text) {
    // أيقونة SVG للسلة
    $svg = '<svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="#fff"><path d="m480-560-56-56 63-64H320v-80h167l-64-64 57-56 160 160-160 160ZM280-80q-33 0-56.5-23.5T200-160q0-33 23.5-56.5T280-240q33 0 56.5 23.5T360-160q0 33-23.5 56.5T280-80Zm400 0q-33 0-56.5-23.5T600-160q0-33 23.5-56.5T680-240q33 0 56.5 23.5T760-160q0 33-23.5 56.5T680-80ZM40-800v-80h131l170 360h280l156-280h91L692-482q-11 20-29.5 31T622-440H324l-44 80h480v80H280q-45 0-68.5-39t-1.5-79l54-98-144-304H40Z"/></svg>';

    return $svg . ' إضافة للسلة';
}
.woocommerce ul.products li.product .button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #aa8961 !important;
  color: #fff !important;
  font-family: 'Cairo', sans-serif !important;
  font-weight: 600;
  border-radius: 12px;
  padding: 10px 18px;
  margin-top: 12px;
  transition: all 0.3s ease-in-out;
  border: none;
}

.woocommerce ul.products li.product .button:hover {
  background: #333 !important;
  transform: scale(1.05);
}
.star-rating {
    display: block;
    text-align: center !important;
    font-family: 'Cairo', sans-serif !important;
    margin: 10px auto;
}
.woocommerce .star-rating {
    float: none !important;
    margin-left: auto;
    margin-right: auto;
}
/* إلغاء أي قلب مضاف بالـ CSS */
.woocommerce ul.products li.product::after,
.ast-article-single.product::after {
  content: none !important;
  display: none !important;
}/* End custom CSS */