/* JG Moda · Tarjetas según la referencia del cliente.
   Todos los ajustes quedan limitados a estas tarjetas. */

.look-card.look-card--reference {
  --card-tag-size: 10px;
  --card-name-size: 23px;
  --card-meta-size: 12px;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-self: start;
  min-width: 0;
  aspect-ratio: auto;
  overflow: hidden;
  border: 1px solid #E6E6E6;
  border-radius: var(--radius-md, 16px);
  background: #FFFFFF;
  color: #1A1D1E;
  font-family: var(--font-body);
}

.look-card--reference .look-media {
  position: relative;
  display: block;
  flex: none;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #EEEEEE;
}

.look-card--reference .look-media > img,
.look-card--reference .look-card-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.look-card--reference .look-info {
  position: static;
  display: grid;
  grid-template-areas: "tags" "name" "meta";
  grid-template-rows: calc(var(--card-tag-size) * 3.2) calc(var(--card-name-size) * 2.44) calc(var(--card-meta-size) * 1.5);
  flex: none;
  gap: 7px;
  padding: 16px;
  background: #FFFFFF;
  color: inherit;
}

.look-card--reference .look-tags {
  grid-area: tags;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #555555;
  font-size: var(--card-tag-size);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.look-card--reference .look-badge {
  position: static;
  display: inline;
  padding: 0;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.look-card--reference .look-name {
  grid-area: name;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-family: var(--font-body);
  font-size: var(--card-name-size);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.look-card--reference .look-meta {
  grid-area: meta;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  color: #858585;
  font-size: var(--card-meta-size);
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.look-card--reference .look-footer {
  display: flex;
  flex: none;
  height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding: 8px 16px;
  background: #EEEEEE;
}

.look-card--reference .look-price-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

.look-card--reference .look-price-label {
  color: #858585;
  font-size: 10.5px;
  line-height: 1.2;
}

.look-card--reference .look-price {
  display: block;
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 1;
}

.look-card--reference .look-price--text {
  font-size: 13px;
  letter-spacing: 0;
}

.look-card--reference .look-cta {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 5px;
  padding: 0 0 1px;
  border-bottom: 1px solid currentColor;
  color: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
}

.look-card--reference .look-cta svg {
  flex: none;
  width: 16px;
  height: 16px;
}

@media (max-width: 640px) {
  .look-card.look-card--reference {
    --card-tag-size: 8.5px;
    --card-name-size: 18px;
    --card-meta-size: 10.5px;
  }
  .look-card--reference .look-info { gap: 6px; padding: 12px 10px; }
  .look-card--reference .look-tags { letter-spacing: 0.12em; }
  .look-card--reference .look-cta { gap: 3px; font-size: 11px; }
  .look-card--reference .look-cta svg { width: 14px; height: 14px; }
}

@container (max-width: 240px) {
  .look-card--reference .look-footer {
    height: 50px;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 2px;
    padding: 5px 10px;
  }
  .look-card--reference .look-price-block {
    flex-direction: row;
    align-items: baseline;
    gap: 4px;
  }
  .look-card--reference .look-price { font-size: 18px; line-height: 1.1; }
  .look-card--reference .look-price--text { font-size: 13px; }
  .look-card--reference .look-cta {
    align-self: flex-end;
    gap: 3px;
    font-size: 11px;
    line-height: 1.25;
  }
  .look-card--reference .look-cta svg { width: 14px; height: 14px; }
}

@container (max-width: 210px) {
  .look-card--reference .look-info {
    grid-template-rows: calc(var(--card-tag-size) * 3.2) calc(var(--card-name-size) * 2.44) calc(var(--card-meta-size) * 3);
  }
  .look-card--reference .look-meta { -webkit-line-clamp: 2; }
}
