/* 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; } }
