/* Product card -- the reusable component used in grids/rails everywhere.
   Values match the original mockup (border, radius, shadows, spacing). */

.ecl-card {
  border: 1px solid var(--ecl-hairline);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ecl-card__media {
  display: block;
  position: relative;
  background: var(--ecl-surface);
  padding: 14px;
}
.ecl-card__media img {
  width: 100%;
  height: 178px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.ecl-card__wish {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 2px 8px rgba(17,17,18,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: transparent;
  stroke: #111112;
}
.ecl-card__wish svg { fill: none; stroke: #111112; }
.ecl-card__wish.is-active svg { fill: var(--ecl-sale-red); stroke: var(--ecl-sale-red); }

.ecl-card__body { padding: 14px 14px 16px; display: flex; flex-direction: column; flex: 1; }

.ecl-card__title { font-family: var(--ecl-font-primary); font-size: 15px; font-weight: 700; margin: 0 0 4px; color: var(--ecl-ink); }
.ecl-card__title a { color: var(--ecl-ink); }

.ecl-card__tag { font-size: 12.5px; color: var(--ecl-body-gray); margin: 0 0 10px; line-height: 1.4; }

.ecl-card__meta-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ecl-card__swatches { display: flex; gap: 5px; }
.ecl-card__swatches span { width: 13px; height: 13px; border-radius: 999px; border: 1px solid var(--ecl-border-gray); display: block; }
.ecl-card__rating { font-size: 11.5px; color: var(--ecl-meta-gray); margin-left: auto; white-space: nowrap; }

.ecl-card__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; margin-top: auto; }
.ecl-card__price-now { font-family: var(--ecl-font-primary); font-size: 18px; font-weight: 800; color: var(--ecl-navy); }
.ecl-card__price-now .woocommerce-Price-amount { font-family: var(--ecl-font-primary); font-size: 18px; font-weight: 800; color: var(--ecl-navy); }
.ecl-card__price-was { font-size: 12.5px; color: var(--ecl-meta-gray); text-decoration: line-through; }

.ecl-card__cta {
  display: block;
  width: 100%;
  height: 42px;
  line-height: 42px;
  text-align: center;
  border: none;
  border-radius: 999px;
  background: var(--ecl-navy);
  color: #fff;
  font-family: var(--ecl-font-primary);
  font-size: 14px;
  font-weight: 700;
}
.ecl-card__cta:hover { color: #fff; background: var(--ecl-navy-deep); }
.ecl-card__cta.loading { opacity: 0.6; pointer-events: none; }
.ecl-card__cta--disabled, .ecl-card__cta:disabled {
  background: var(--ecl-hairline);
  color: var(--ecl-meta-gray);
  cursor: default;
}

/* Grid/rail wrappers a future phase will use around repeated cards. */
.ecl-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1100px) { .ecl-card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .ecl-card-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 480px) { .ecl-card-grid { grid-template-columns: 1fr 1fr; } }

/* ===== Wandtattoowelt card refinements (2026-09-28) ===== */
.ecl-card { transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease; }
.ecl-card:hover { border-color: #E4D8EF; box-shadow: 0 12px 30px rgba(59,29,94,.12); transform: translateY(-2px); }
/* Image fills the frame (was a small image floating in a beige box) */
.ecl-card__media { padding: 0; aspect-ratio: 1 / 1; overflow: hidden; background: #fff; }
.ecl-card__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .5s ease; }
.ecl-card:hover .ecl-card__media img { transform: scale(1.04); }
.ecl-card__badge { z-index: 2; border-radius: 999px; padding: 4px 10px; font-weight: 800; letter-spacing: .01em; box-shadow: 0 4px 10px rgba(216,52,42,.25); }
/* Long supplier titles: two lines, equal card rhythm */
.ecl-card__title { font-size: 14.5px; line-height: 1.4; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.4em * 2); }
.ecl-card__title a:hover { color: var(--ecl-navy); }
.ecl-card__tag { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ecl-card__price { margin-top: auto; padding-top: 6px; }
.ecl-card__price-now, .ecl-card__price-now .woocommerce-Price-amount { font-size: 17px; }
.ecl-card__price:has(.ecl-card__price-was) .ecl-card__price-now, .ecl-card__price:has(.ecl-card__price-was) .ecl-card__price-now .woocommerce-Price-amount { color: var(--ecl-sale-red); }
/* Lighter CTA: tinted pill, solid on hover (16 solid dark buttons made the page heavy) */
.ecl-card__cta { background: var(--ecl-tint-navy); color: var(--ecl-navy); height: 40px; line-height: 40px; font-size: 13.5px; transition: background-color .2s ease, color .2s ease; }
.ecl-card__cta:hover, .ecl-card:hover .ecl-card__cta:not(.ecl-card__cta--disabled) { background: var(--ecl-navy); color: #fff; }
.ecl-card__cta.added { background: #1E7A45; color: #fff; }
.ecl-card__body > .added_to_cart { display: block; margin-top: 8px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--ecl-navy); }
@media (max-width: 480px) {
  .ecl-card__title { font-size: 13.5px; }
  .ecl-card__tag { display: none; }
  .ecl-card__cta { font-size: 12.5px; }
}