/**
 * Woo / Elementor archive cards on bee1.co.il.
 * Titles clamp; add-to-cart full row; wishlist heart overlays image (top left).
 */

body.woocommerce ul.products li.product,
body.woocommerce-page ul.products li.product {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: start;
}

body.woocommerce ul.products li.product .woocommerce-LoopProduct-link,
body.woocommerce-page ul.products li.product .woocommerce-LoopProduct-link {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
}

body.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.woocommerce-page ul.products li.product .woocommerce-loop-product__title,
.elementor-widget-wc-archive-products ul.products li.product .woocommerce-loop-product__title {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  margin: 10px 0 6px;
  padding: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: 0;
  color: var(--bee1-ink, #3C3950);
}

body.woocommerce ul.products li.product .price,
body.woocommerce-page ul.products li.product .price {
  margin: 0 0 4px;
  font-size: 15px;
}

body.woocommerce ul.products li.product > .screen-reader-text,
body.woocommerce-page ul.products li.product > .screen-reader-text {
  position: absolute;
}

body.woocommerce ul.products li.product a.button,
body.woocommerce-page ul.products li.product a.button,
.elementor-widget-wc-archive-products ul.products li.product .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: 8px 0 0;
  padding: 10px 14px;
  border: 1px solid var(--bee1-ink, #3C3950);
  border-radius: 2px;
  background: var(--bee1-yellow, #FFDF48) !important;
  color: var(--bee1-ink, #3C3950) !important;
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  box-shadow: none;
  white-space: nowrap;
}

body.woocommerce ul.products li.product a.button:hover,
body.woocommerce ul.products li.product a.button:focus,
.elementor-widget-wc-archive-products ul.products li.product .button:hover,
.elementor-widget-wc-archive-products ul.products li.product .button:focus {
  background: var(--bee1-ink, #3C3950) !important;
  color: #fff !important;
  border-color: var(--bee1-ink, #3C3950);
}

body.woocommerce ul.products li.product a.added_to_cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  font-size: 13px;
}

body.woocommerce ul.products li.product .bee1-wl-btn.bee1-wl-btn-loop,
body.woocommerce-page ul.products li.product .bee1-wl-btn.bee1-wl-btn-loop {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0 !important;
  margin: 0;
  gap: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15) !important;
  color: var(--bee1-ink, #3C3950);
  box-shadow: none;
  transform: none;
  backdrop-filter: blur(2px);
}

body.woocommerce ul.products li.product .bee1-wl-btn.bee1-wl-btn-loop .bee1-wl-text {
  display: none !important;
}

body.woocommerce ul.products li.product .bee1-wl-btn.bee1-wl-btn-loop .bee1-wl-icon {
  width: 20px;
  height: 20px;
}

body.woocommerce ul.products li.product .bee1-wl-btn.bee1-wl-btn-loop:hover,
body.woocommerce ul.products li.product .bee1-wl-btn.bee1-wl-btn-loop:focus {
  background: rgba(255, 255, 255, 0.15) !important;
  color: var(--bee1-ink, #3C3950);
  transform: none;
}

body.woocommerce ul.products li.product .bee1-wl-btn.bee1-wl-btn-loop.bee1-wl-in-list {
  background: rgba(255, 223, 72, 0.15) !important;
  color: var(--bee1-ink, #3C3950);
}

@media (max-width: 767px) {
  body.woocommerce ul.products li.product .woocommerce-loop-product__title,
  body.woocommerce-page ul.products li.product .woocommerce-loop-product__title,
  .elementor-widget-wc-archive-products ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px !important;
    line-height: 1.3 !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  body.woocommerce ul.products li.product a.button,
  .elementor-widget-wc-archive-products ul.products li.product .button {
    font-size: 13px !important;
    min-height: 40px;
    padding: 8px 10px;
    width: 100%;
  }

  body.woocommerce ul.products li.product .bee1-wl-btn.bee1-wl-btn-loop {
    top: 6px;
    left: 6px;
    width: 32px;
    min-width: 32px;
    max-width: 32px;
    height: 32px;
    min-height: 32px;
    background: rgba(255, 255, 255, 0.15) !important;
  }

  body.woocommerce ul.products.elementor-grid.columns-4,
  body.woocommerce ul.products.elementor-grid.columns-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
