/**
 * NY Chatbot - WooCommerce Product Cards Module
 *
 * Loaded only when WooCommerce is active.
 * Renders product recommendation cards inside chat bubbles.
 */

.ny-message-content .product-card {
  display: block;
  width: 100%;
  background: var(--ny-card-bg);
  border: 1px solid var(--ny-card-border);
  border-radius: 10px;
  overflow: hidden;
  direction: rtl;
  transition: all 0.2s ease;
  box-sizing: border-box;
  margin-bottom: 8px;
}
.ny-message-content .product-card:last-child {
  margin-bottom: 0;
}
.ny-message-content .product-card:hover {
  background: var(--ny-card-hover-bg);
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.15);
  border-color: var(--ny-card-border);
}
.ny-message-content .product-card .product-content-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 10px;
  text-decoration: none;
  color: inherit;
}
.ny-message-content .product-card .product-image {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
}
.ny-message-content .product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.ny-message-content .product-card .left-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ny-message-content .product-card .product-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ny-card-title);
  line-height: 1.4;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.ny-message-content .product-card .price-section {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.ny-message-content .product-card .price {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ny-card-price);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.ny-message-content .product-card .old-price,
.ny-message-content .product-card .price del {
  color: var(--ny-card-old-price);
  font-size: 0.75rem;
  font-weight: 400;
  text-decoration: line-through;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ny-message-content .product-card a {
  all: unset;
  cursor: pointer;
}
@media (max-width: 768px) {
  .ny-message-content .product-card .product-image {
    width: 60px;
    height: 60px;
  }
  .ny-message-content .product-card .product-content-row {
    padding: 8px;
    gap: 10px;
  }
  .ny-message-content .product-card .product-title {
    font-size: 0.7rem;
  }
  .ny-message-content .product-card .price {
    font-size: 0.7rem;
  }
}
