.product-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  color: #111;
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1.08;
  background: #efefef;
  overflow: hidden;
}

.product-link {
  display: block;
  width: 100%;
  height: 100%;
}

.product-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* precio sobre imagen */
.product-price-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  padding: 6px 10px;
  z-index: 3;
}

.price-old {
  color: #8a8a8a;
  text-decoration: line-through;
  font-size: 14px;
  font-weight: 500;
}

.price-current {
  color: #19b84a;
  font-size: 14px;
  font-weight: 700;
}

/* botón + */
.product-add {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid #111;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 4;
}

/* overlay tallas */
.size-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 3;
}

.product-card.show-sizes .size-overlay {
  opacity: 1;
  pointer-events: auto;
}

.size-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 12px;
}

.size-btn {
  min-width: 42px;
  height: 42px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 12px;
}

.size-btn:hover {
  background: #111;
  color: #fff;
}

.product-body {
  padding: 12px 6px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.product-title {
  display: block;
  color: #111;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.product-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  color: #666;
  text-align: center;
}

.product-gallery {
  width: 100%;
  height: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.product-gallery::-webkit-scrollbar {
  display: none;
}

.product-gallery img {
  flex: 0 0 100%;
  min-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  scroll-snap-align: start;
}

/* ── Lock overlay ─────────────────────────────────────── */
.lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 5;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lock-icon {
  font-size: 28px;
  line-height: 1;
}

.lock-label {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0 8px;
}

.product-card.unlocked .lock-overlay {
  opacity: 0;
  pointer-events: none;
}

.product-card:not(.unlocked) .product-add,
.product-card:not(.unlocked) .size-btn {
  pointer-events: none;
}

.product-card.locked .product-link {
  cursor: not-allowed;
}

.product-card.locked .product-add {
  opacity: 0.45;
  cursor: not-allowed;
}

html[data-theme="dark"] .product-card,
html[data-theme="dark"] .product-title {
  color: #f2f2f5;
}

html[data-theme="dark"] .product-media {
  background: #17171f;
}

html[data-theme="dark"] .product-note {
  color: #aaaab5;
}

html[data-theme="dark"] .product-price-badge {
  background: rgba(23, 23, 31, 0.92);
}

html[data-theme="dark"] .product-add,
html[data-theme="dark"] .size-btn {
  border-color: #d8d8df;
  background: #17171f;
  color: #f2f2f5;
}

html[data-theme="dark"] .size-overlay {
  background: rgba(11, 11, 16, 0.82);
}

html[data-theme="dark"] .lock-overlay {
  background: rgba(4, 4, 8, 0.72);
}
