@import url("/css/components/energy-package.css");

.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}

.product-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/* ── Image ── */
.product-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 24px 16px;
  aspect-ratio: 1;
  background: #fff;
}

.product-card__img {
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.product-card__sale-ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.28);
}

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

/* ── Body ── */
.product-card__body {
  padding: 0 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__categories {
  font-size: 11px;
  font-weight: 500;
  color: #999;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 6px;
  line-height: 1.6;
}

.product-card__category {
  color: #999;
  transition: color 0.2s;
}

.product-card__category:hover {
  color: var(--primary);
}

.product-card__category-sep {
  color: #ccc;
}

.product-card__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
}

.product-card__title a {
  color: var(--text-dark);
  transition: color 0.2s;
}

.product-card__title a:hover {
  color: var(--primary);
}

/* ── Price ── */
.product-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.product-card__price {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
}

.product-card__price-range-sep {
  font-size: 18px;
  font-weight: 700;
  color: #666;
}

.product-card__price-old {
  font-size: 14px;
  color: #aaa;
  text-decoration: line-through;
}

/* ── Omnibus price (EU Directive 2019/2161) ── */
.product-card__omnibus {
  font-size: 11px;
  color: #999;
  margin: -4px 0 12px;
}

/* ── Energy label (EU law) ── */
.product-card__energy {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  margin-top: auto;
}

.product-card__energy .energy-package__datasheet {
  margin-left: auto;
}

/* ── Actions ── */
.product-card__actions {
  display: flex;
  gap: 8px;
  padding: 0 20px 20px;
}

.product-card__cart-btn,
.product-card__choose-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 2px solid var(--primary);
  border-radius: 8px;
  background: transparent;
  color: var(--primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.product-card__cart-btn:hover,
.product-card__choose-btn:hover {
  background: var(--primary);
  color: #fff;
}

.product-card__cart-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.product-card__cart-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.product-card__cart-btn:disabled:hover {
  background: transparent;
  color: var(--primary);
}

.product-card__wish-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.product-card__wish-btn:hover {
  color: #e53935;
  border-color: #e53935;
}

.product-card__wish-btn svg {
  width: 18px;
  height: 18px;
}

.product-card__wish-btn.is-wishlisted svg {
  fill: #ef4444;
  stroke: #ef4444;
}
