@import url("/css/components/energy-package-7a2fe06d36de943208bab20a83124a18.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:hover .product-card__img {
  transform: scale(1.05);
}

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

.product-card__summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-card__meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card__categories {
  font-size: 11px;
  font-weight: 500;
  color: #999;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  line-height: 1.6;
  min-height: calc(1.6em * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.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: 0;
  min-height: calc(1.4em * 2);
}

.product-card__title a {
  color: var(--text-dark);
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

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

/* ── Sale badge ── */
.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.product-card__badge--sale {
  background: var(--primary);
  color: #fff;
}

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

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

.product-card__price--sale {
  color: var(--primary);
}

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

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

/* ── Omnibus (EU Directive 2019/2161) ── */
.product-card__omnibus {
  font-size: 11px;
  color: #666;
  margin-bottom: 0;
  line-height: 1.45;
}

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

.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__choose-btn-mobile {
  display: none;
}

.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;
}
