.elementor-723 .elementor-element.elementor-element-269200b{--display:flex;}.elementor-widget-wc-archive-products.elementor-wc-products ul.products li.product .woocommerce-loop-product__title{color:var( --e-global-color-primary );}.elementor-widget-wc-archive-products.elementor-wc-products ul.products li.product .woocommerce-loop-category__title{color:var( --e-global-color-primary );}.elementor-widget-wc-archive-products.elementor-wc-products ul.products li.product .woocommerce-loop-product__title, .elementor-widget-wc-archive-products.elementor-wc-products ul.products li.product .woocommerce-loop-category__title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );}.elementor-widget-wc-archive-products.elementor-wc-products ul.products li.product .price{color:var( --e-global-color-primary );font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );}.elementor-widget-wc-archive-products.elementor-wc-products ul.products li.product .price ins{color:var( --e-global-color-primary );}.elementor-widget-wc-archive-products.elementor-wc-products ul.products li.product .price ins .amount{color:var( --e-global-color-primary );}.elementor-widget-wc-archive-products{--products-title-color:var( --e-global-color-primary );}.elementor-widget-wc-archive-products.products-heading-show .related-products > h2, .elementor-widget-wc-archive-products.products-heading-show .upsells > h2, .elementor-widget-wc-archive-products.products-heading-show .cross-sells > h2{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );}.elementor-widget-wc-archive-products.elementor-wc-products ul.products li.product .price del{color:var( --e-global-color-primary );}.elementor-widget-wc-archive-products.elementor-wc-products ul.products li.product .price del .amount{color:var( --e-global-color-primary );}.elementor-widget-wc-archive-products.elementor-wc-products ul.products li.product .price del {font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );}.elementor-widget-wc-archive-products.elementor-wc-products ul.products li.product .button{font-family:var( --e-global-typography-accent-font-family ), Sans-serif;font-weight:var( --e-global-typography-accent-font-weight );}.elementor-widget-wc-archive-products.elementor-wc-products .added_to_cart{font-family:var( --e-global-typography-accent-font-family ), Sans-serif;font-weight:var( --e-global-typography-accent-font-weight );}.elementor-widget-wc-archive-products .elementor-products-nothing-found{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-723 .elementor-element.elementor-element-f841a4e.elementor-wc-products  ul.products{grid-column-gap:20px;grid-row-gap:40px;}.elementor-723 .elementor-element.elementor-element-f841a4e.elementor-wc-products ul.products li.product .woocommerce-loop-product__title{color:#AA8961;}.elementor-723 .elementor-element.elementor-element-f841a4e.elementor-wc-products ul.products li.product .woocommerce-loop-category__title{color:#AA8961;}.elementor-723 .elementor-element.elementor-element-f841a4e.elementor-wc-products ul.products li.product .price{color:#1BFF26;}.elementor-723 .elementor-element.elementor-element-f841a4e.elementor-wc-products ul.products li.product .price ins{color:#1BFF26;}.elementor-723 .elementor-element.elementor-element-f841a4e.elementor-wc-products ul.products li.product .price ins .amount{color:#1BFF26;}.elementor-723 .elementor-element.elementor-element-f841a4e.elementor-wc-products ul.products li.product span.onsale{display:block;}@media(max-width:1024px){.elementor-723 .elementor-element.elementor-element-f841a4e.elementor-wc-products  ul.products{grid-column-gap:20px;grid-row-gap:40px;}}@media(max-width:767px){.elementor-723 .elementor-element.elementor-element-f841a4e.elementor-wc-products  ul.products{grid-column-gap:20px;grid-row-gap:40px;}}/* Start custom CSS for wc-archive-products, class: .elementor-element-f841a4e *//* استدعاء خط كايرو */
@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;
}
 
/* شكل النص بشكل عام */
.ast-shop-product-out-of-stock {
    font-size: 14px;       /* حجم الخط */
    color: #ff0000;        /* اللون */
    font-weight: bold;     /* سمك الخط */
    background: #fff3f3;   /* خلفية خفيفة */
    padding: 4px 8px;      /* مسافة داخلية */
    border-radius: 6px;    /* زوايا مدورة */
    display: inline-block; /* يخليه في شكل بطاقة صغيرة */
}

/* تعديل خاص للموبايل */
@media (max-width: 768px) {
    .ast-shop-product-out-of-stock {
        font-size: 12px;       /* أصغر شوية */
        padding: 2px 6px;      /* مساحة أقل */
        text-align: center;    /* توسيط النص */
        display: block;        /* يخلي الكلمة في سطر مستقل */
        margin: 5px auto;      /* وسط الشاشة */
    }
}
/* إلغاء أي قلب مضاف بالـ CSS */
.woocommerce ul.products li.product::after,
.ast-article-single.product::after {
  content: none !important;
  display: none !important;
}/* End custom CSS */