/* ============ PRODUCT CARD ============ */
.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Image Wrapper */
.product-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--cream);
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-placeholder {
  font-size: 48px;
  opacity: 0.3;
}

/* Product Body */
.product-body {
  padding: 12px;
}

.product-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 4px;
  line-height: 1.3;

  /* Truncate to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.6em;
}

.product-origin {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-origin i {
  font-size: 12px;
}

/* Footer */
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 16px;
  color: var(--amber);
}

.product-unit {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-light);
  font-weight: 400;
}

/* Add Button */
.btn-add {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-mid);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.btn-add i {
  font-size: 20px;
  font-weight: 700;
}

.btn-add:hover {
  background: var(--green-dark);
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.btn-add:active {
  transform: scale(0.95);
}