/**
 * Shider Product Cards – phase 1
 * Scoped to WooCommerce product loops only.
 */

:root {
  --shider-card-navy: #123b59;
  --shider-card-navy-hover: #0b2f49;
  --shider-card-cyan: #16aee8;
  --shider-card-surface: #ffffff;
  --shider-card-image-bg: #f3f8fa;
  --shider-card-border: #e4eef2;
  --shider-card-muted: #768995;
  --shider-card-radius: 18px;
}
/*
 * Propharm / Enovathemes compatibility layer
 * Actual Shider markup: .et-woo-products.grid li.product
 * The carousel can move cards outside .loop-products after initialization.
 */
.et-woo-products.grid li.product > .post-inner {
  box-sizing: border-box;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 14px 14px 16px;
  overflow: hidden;
  background: var(--shider-card-surface) !important;
  border: 1px solid var(--shider-card-border) !important;
  border-radius: var(--shider-card-radius) !important;
  box-shadow: 0 8px 26px rgba(18, 59, 89, 0.08) !important;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.et-woo-products.grid li.product:hover > .post-inner {
  transform: translateY(-5px);
  border-color: rgba(22, 174, 232, 0.38) !important;
  box-shadow: 0 17px 38px rgba(18, 59, 89, 0.14) !important;
}

.et-woo-products.grid li.product .post-image {
  flex: 0 0 auto;
  width: 100%;
  margin: 0 0 16px !important;
  padding: 0 !important;
  overflow: hidden;
  background: var(--shider-card-image-bg) !important;
  border: 0 !important;
  border-radius: 14px !important;
}

.et-woo-products.grid li.product .post-image > a {
  display: block;
  width: 100%;
}

.et-woo-products.grid li.product .image-container {
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  padding: 18px;
  overflow: hidden;
  background: var(--shider-card-image-bg) !important;
}

.et-woo-products.grid li.product .image-container img {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  border-radius: 0 !important;
  transform: none !important;
  transition: transform 260ms ease !important;
}

.et-woo-products.grid li.product:hover .image-container img {
  transform: scale(1.025) !important;
}

.et-woo-products.grid li.product .image-container .placeholder {
  display: none !important;
}

.et-woo-products.grid li.product .post-body,
.et-woo-products.grid li.product .post-body-inner {
  box-sizing: border-box;
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100% !important;
  min-width: 0;
  height: auto !important;
  padding: 0 !important;
  background: transparent !important;
}

/* Phase one: no quick view, wishlist or comparison controls. */
.et-woo-products.grid li.product .en-quick-view,
.et-woo-products.grid li.product .wishlist-toggle,
.et-woo-products.grid li.product .wishlist-title,
.et-woo-products.grid li.product .compare-toggle,
.et-woo-products.grid li.product .compare-title {
  display: none !important;
}

.et-woo-products.grid li.product .post-category {
  display: block !important;
  width: 100%;
  min-height: 21px;
  margin: 0 0 6px !important;
  overflow: hidden;
  color: var(--shider-card-cyan) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.7 !important;
  text-align: right !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.et-woo-products.grid li.product .post-category a {
  color: var(--shider-card-cyan) !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}

.et-woo-products.grid li.product .post-title {
  display: -webkit-box !important;
  min-height: 3.25em;
  margin: 0 0 7px !important;
  padding: 0 !important;
  overflow: hidden;
  color: var(--shider-card-navy) !important;
  font-size: clamp(14px, 1.05vw, 16px) !important;
  font-weight: 700 !important;
  line-height: 1.62 !important;
  text-align: right !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.et-woo-products.grid li.product .post-title a {
  color: var(--shider-card-navy) !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

.et-woo-products.grid li.product .star-rating-wrap {
  min-height: 20px;
  margin: 2px 0 8px !important;
  text-align: right !important;
}

.et-woo-products.grid li.product .star-rating {
  margin: 0 !important;
  color: #f6b526 !important;
}

.et-woo-products.grid li.product .price {
  display: block !important;
  width: 100%;
  margin: auto 0 13px !important;
  padding: 7px 0 0 !important;
  color: var(--shider-card-navy) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.65 !important;
  text-align: right !important;
}

.et-woo-products.grid li.product .price .amount,
.et-woo-products.grid li.product .price bdi,
.et-woo-products.grid li.product .price .woocommerce-Price-currencySymbol {
  color: var(--shider-card-navy) !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}

.et-woo-products.grid li.product .button,
.et-woo-products.grid li.product .added_to_cart {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 11px 13px !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  text-align: center !important;
  background: var(--shider-card-navy) !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.et-woo-products.grid li.product .button:hover,
.et-woo-products.grid li.product .added_to_cart:hover {
  color: #ffffff !important;
  background: var(--shider-card-navy-hover) !important;
}

@media (max-width: 767px) {
  .et-woo-products.grid li.product > .post-inner {
    padding: 10px 10px 12px;
    border-radius: 14px !important;
    box-shadow: 0 6px 18px rgba(18, 59, 89, 0.08) !important;
  }

  .et-woo-products.grid li.product:hover > .post-inner {
    transform: none;
  }

  .et-woo-products.grid li.product .post-image {
    margin-bottom: 12px !important;
    border-radius: 11px !important;
  }

  .et-woo-products.grid li.product .image-container {
    padding: 11px;
  }

  .et-woo-products.grid li.product .post-category {
    min-height: 19px;
    font-size: 10px !important;
  }

  .et-woo-products.grid li.product .post-title {
    min-height: 3.35em;
    font-size: 13px !important;
  }

  .et-woo-products.grid li.product .price {
    font-size: 13px !important;
  }

  .et-woo-products.grid li.product .button,
  .et-woo-products.grid li.product .added_to_cart {
    min-height: 42px !important;
    padding: 9px 8px !important;
    font-size: 11px !important;
    border-radius: 10px !important;
  }
}
