.elementor-40 .elementor-element.elementor-element-c1455f7{--display:flex;}.elementor-40 .elementor-element.elementor-element-1e3778b{--update-cart-automatically-display:none;--sections-border-color:#AA8961;--sections-title-color:#AA8961;--links-normal-color:#AA8961;--sections-radio-buttons-color:#AA8961;--forms-fields-normal-color:#AA8961;--forms-buttons-normal-text-color:#AA8961;--forms-buttons-border-color:#AA8961;--order-summary-color:#AA8961;--product-link-normal-color:#AA8961;--order-summary-items-divider-color:#AA8961;--order-summary-quantity-border-color:#AA8961;--order-summary-remove-icon-normal-color:#AA8961;--totals-color:#AA8961;--totals-divider-color:#AA8961;--checkout-button-normal-text-color:#AA8961;}.elementor-40 .elementor-element.elementor-element-1e3778b {--sections-descriptions-color:#AA8961;}.e-woo-select2-wrapper .select2-results__option{color:#AA8961;}.elementor-40 .elementor-element.elementor-element-1e3778b .select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#AA8961 transparent transparent transparent;}.elementor-40 .elementor-element.elementor-element-1e3778b .woocommerce-cart-form{--order-summary-title-color:#AA8961;}.elementor-40 .elementor-element.elementor-element-962362e{--display:flex;}.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-40 .elementor-element.elementor-element-a783137{text-align:center;}.elementor-40 .elementor-element.elementor-element-a783137 .elementor-heading-title{font-family:"Cairo", Sans-serif;font-weight:bold;color:#AA8961;}/* Start custom CSS for shortcode, class: .elementor-element-dbdad1d *//* استدعاء خط كايرو */
@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;
}/* End custom CSS */