/* Tarjetas estilo marketplace legacy — paleta nuevo */
.mc-legacy-page .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.mc-legacy-page .product-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.mc-legacy-page .product-card:hover {
  transform: translateY(-8px);
  border-color: var(--mc-accent, #689D0F);
  box-shadow: 0 12px 24px rgba(104, 157, 15, 0.15);
}

.mc-legacy-page .product-image {
  position: relative;
  width: 100%;
  height: 200px;
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mc-legacy-page .product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease, filter 0.35s ease;
}

.mc-legacy-page .product-card:hover .product-image img {
  transform: scale(1.05);
  filter: blur(3px);
}

.mc-legacy-page .product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
  z-index: 3;
}

.mc-legacy-page .product-card:hover .product-overlay {
  opacity: 1;
}

.mc-legacy-page .quick-view-btn {
  background: white;
  color: var(--mc-accent, #689D0F);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.mc-legacy-page .product-card:hover .quick-view-btn {
  transform: translateY(0);
}

.mc-legacy-page .quick-view-btn:hover {
  background: var(--mc-accent, #689D0F);
  color: white;
}

.mc-legacy-page .product-badge {
  background: #ef4444;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mc-legacy-page .product-type-badge {
  background: var(--mc-navy, #0A2540);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
}

.mc-legacy-page .product-info {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.mc-legacy-page .product-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--mc-accent, #689D0F);
  margin-bottom: 0.5rem;
}

.mc-legacy-page .product-title a {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  text-decoration: none;
  line-height: 1.3;
}

.mc-legacy-page .product-title a:hover {
  color: var(--mc-accent, #689D0F);
}

.mc-legacy-page .product-rating {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.mc-legacy-page .product-rating i {
  font-size: 0.85rem;
}

.mc-legacy-page .product-location {
  font-size: 0.85rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
}

.mc-legacy-page .product-footer {
  padding: 0.85rem 1.15rem;
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
}

.mc-legacy-page .product-footer__start {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.mc-legacy-page .product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #111827;
}

.mc-legacy-page .price-old {
  font-size: 0.85rem;
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 500;
}

.mc-legacy-page .price-new {
  color: #dc2626;
  font-weight: 700;
}

.mc-legacy-page .btn-add-cart {
  background: var(--mc-accent, #689D0F);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.mc-legacy-page .btn-add-cart:hover {
  background: var(--mc-accent-dark, #5a8a0c);
  transform: translateY(-2px);
  color: #fff;
}

.mc-legacy-page .btn-add-cart.loading {
  pointer-events: none;
  opacity: 0.6;
}

.mc-legacy-page .btn-add-cart .spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: mcSpin 0.6s linear infinite;
}

.mc-legacy-page .btn-add-cart.loading .spinner {
  display: inline-block;
}

.mc-legacy-page .btn-add-cart.loading .bi-cart-plus {
  display: none;
}

@keyframes mcSpin {
  to { transform: rotate(360deg); }
}
