/* =====================================================
   DESIGNR PRO ELEMENTOR PRODUCT SHELF - RESET
===================================================== */

/* Force shelf to scroll horizontally on all devices */
.elementor-widget-woocommerce-products ul.products {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-template-rows: repeat(2, auto) !important;
  grid-auto-columns: 250px !important;
  gap: 18px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  margin: 0 !important;
  padding: 0 14px 18px !important;
  scrollbar-width: none !important;
}


.elementor-widget-woocommerce-products ul.products::-webkit-scrollbar {
  display: none !important;
}

/* Card sizing */
.elementor-widget-woocommerce-products ul.products li.product {
  float: none !important;
  clear: none !important;
  flex: 0 0 250px !important;
  width: 250px !important;
  max-width: 250px !important;
  min-width: 250px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Card shell */
.elementor-widget-woocommerce-products ul.products li.product .product-block {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
  border: 1px solid #dbe7fb !important;
  border-radius: 16px !important;
  padding: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);

}

/* Hide theme floating icons */
.elementor-widget-woocommerce-products ul.products li.product .group-action,
.elementor-widget-woocommerce-products ul.products li.product .shop-action,
.elementor-widget-woocommerce-products ul.products li.product .yith-wcwl-add-to-wishlist,
.elementor-widget-woocommerce-products ul.products li.product .compare,
.elementor-widget-woocommerce-products ul.products li.product .woosc-btn,
.elementor-widget-woocommerce-products ul.products li.product .woosq-btn {
  display: none !important;
}



/* Important: product-image wrapper must fill the frame */
.elementor-widget-woocommerce-products ul.products li.product .product-image {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Important: link wrapper must fill the frame too */
.elementor-widget-woocommerce-products ul.products li.product .product-image a,
.elementor-widget-woocommerce-products ul.products li.product a.woocommerce-LoopProduct-link {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Bigger images, centered */
.elementor-widget-woocommerce-products ul.products li.product img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 185px !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 auto !important;
  display: block !important;
}

/* Caption */
.elementor-widget-woocommerce-products ul.products li.product .product-caption,
.elementor-widget-woocommerce-products ul.products li.product .product-caption-bottom {
  position: static !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  text-align: left !important;
}

/* Title */
.elementor-widget-woocommerce-products ul.products li.product .woocommerce-loop-product__title {
  margin: 0 0 6px !important;
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-align: left !important;

  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 36px !important;
}

/* Price */
.elementor-widget-woocommerce-products ul.products li.product .price {
  display: block !important;
  margin: 0 0 10px !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-align: left !important;
}

/* Button right below price */
.elementor-widget-woocommerce-products ul.products li.product a.button,
.elementor-widget-woocommerce-products ul.products li.product a.add_to_cart_button {
  position: static !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;

  width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 12px !important;

  border: 0 !important;
  border-radius: 10px !important;
  background: #0866ff !important;
  color: #fff !important;

  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 38px !important;
  text-align: center !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Mobile: still horizontal, not one per row */
@media (max-width: 768px) {
 .elementor-widget-woocommerce-products ul.products {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-template-rows: repeat(2, auto) !important;
  grid-auto-columns: 205px !important;
  gap: 12px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 0 10px 18px !important;
}


  .elementor-widget-woocommerce-products ul.products li.product {
    flex: 0 0 205px !important;
    width: 205px !important;
    max-width: 205px !important;
    min-width: 205px !important;
  }

  .elementor-widget-woocommerce-products ul.products li.product .content-product-imagin,
  .elementor-widget-woocommerce-products ul.products li.product .product-transition {
    height: 160px !important;
    min-height: 160px !important;
  }

  .elementor-widget-woocommerce-products ul.products li.product img {
    max-height: 155px !important;
  }
}
/* Bigger product images */
.elementor-widget-woocommerce-products ul.products li.product .content-product-imagin,
.elementor-widget-woocommerce-products ul.products li.product .product-transition {
  height: 210px !important;
  min-height: 210px !important;
}

.elementor-widget-woocommerce-products ul.products li.product img {
  width: 100% !important;
  height: 100% !important;
  max-height: 210px !important;
  object-fit: contain !important;
}
