.elementor-30306 .elementor-element.elementor-element-361683a{--display:flex;--flex-direction:column;--container-widget-width:calc( ( 1 - var( --container-widget-flex-grow ) ) * 100% );--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--justify-content:center;--align-items:center;}.elementor-30306 .elementor-element.elementor-element-361683a.e-con{--align-self:center;}.elementor-30306 .elementor-element.elementor-element-542159a.elementor-element{--align-self:center;}/* Start custom CSS for wd_product_categories, class: .elementor-element-542159a *//* الكرت نفسه: خلي المحتوى بالنص عموديًا وأفقيًا */
.cats-center ul.products li.product-category a{
  display:grid !important;
  grid-template-rows: 1fr auto;   /* الصورة فوق، العنوان تحت */
  place-items:center !important;  /* توسيط شامل */
  text-align:center;
  min-height:320px;               /* عدّلي حسب ارتفاع الكرت الأبيض */
}

/* كل اللفّافات المحتملة للصورة (Woodmart) */
.cats-center ul.products li.product-category a .wd-entities-img,
.cats-center ul.products li.product-category a .wd-entity-img,
.cats-center ul.products li.product-category a .wd-cat-img,
.cats-center ul.products li.product-category a .wd-media,
.cats-center ul.products li.product-category a .category-image,
.cats-center ul.products li.product-category a figure{
  display:grid !important;
  place-items:center !important;
  width:100%;
  height:240px;                   /* ارتفاع ثابت للصورة داخل الكرت */
  background-position:center !important;   /* لو كانت background */
  background-size:contain !important;
  background-repeat:no-repeat !important;
}

/* لو الصورة <img> مش background */
.cats-center ul.products li.product-category a img{
  display:block !important;
  margin:0 auto !important;
  width:auto !important; height:auto !important;
  max-width:82% !important;       /* قلّلي/كبّري بحرّيتك */
  max-height:220px !important;
  object-fit:contain !important;
}

/* شيل أي عنوان/أوفرلاي فوق الصورة */
.cats-center .wd-overlay-content,
.cats-center .wd-entities-title.wd-on-img{ display:none !important; }

/* عنوان الكاتغوري تحت وبالنص */
.cats-center ul.products li.product-category h2.woocommerce-loop-category__title{
  margin:16px 0 0; text-align:center; width:100%;
}

/* تابلت وموبايل */
@media (max-width:1024px){
  .cats-center ul.products li.product-category a{ min-height:280px; }
  .cats-center ul.products li.product-category a .wd-entities-img,
  .cats-center ul.products li.product-category a .wd-entity-img,
  .cats-center ul.products li.product-category a .wd-cat-img,
  .cats-center ul.products li.product-category a .wd-media,
  .cats-center ul.products li.product-category a .category-image,
  .cats-center ul.products li.product-category a figure{ height:200px; }
  .cats-center ul.products li.product-category a img{ max-height:200px !important; }
}
@media (max-width:767px){
  .cats-center ul.products li.product-category a{ min-height:240px; }
  .cats-center ul.products li.product-category a .wd-entities-img,
  .cats-center ul.products li.product-category a .wd-entity-img,
  .cats-center ul.products li.product-category a .wd-cat-img,
  .cats-center ul.products li.product-category a .wd-media,
  .cats-center ul.products li.product-category a .category-image,
  .cats-center ul.products li.product-category a figure{ height:180px; }
  .cats-center ul.products li.product-category a img{ max-height:180px !important; }
}/* End custom CSS */