/* Marketplace (Temu-style) product card — home + shop */

a.product-card.mkpc-card {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease;
}

a.product-card.mkpc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -8px rgba(15, 23, 42, 0.12), 0 6px 12px -6px rgba(15, 23, 42, 0.08);
}

a.product-card.mkpc-card .product-image-contain {
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

a.product-card.mkpc-card:hover .product-image-contain {
  transform: scale(1.06);
}

.mkpc-footer {
  padding: 0.35rem 0.65rem 0.85rem;
  border-top: 1px solid rgb(241 245 249 / 0.95);
  background: linear-gradient(to bottom, #fff 0%, rgb(248 250 252 / 0.85) 100%);
}

@media (min-width: 640px) {
  .mkpc-footer {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
}

.mkpc-deal-badge {
  background: linear-gradient(
    135deg,
    var(--gmingo-mkpc-primary, #2c64d3) 0%,
    var(--gmingo-mkpc-navy, #1a3a7c) 100%
  );
}

.mkpc-deal-ico-svg {
  width: 0.7rem;
  height: 0.7rem;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12));
}

.mkpc-title {
  transition: color 0.2s ease;
}

a.product-card.mkpc-card:hover .mkpc-title {
  color: var(--gmingo-mkpc-primary, #2c64d3);
}

.mkpc-sold-pill {
  transition: color 0.2s ease, transform 0.2s ease;
}

a.product-card.mkpc-card:hover .mkpc-sold-pill {
  color: rgb(51 65 85);
}

.mkpc-cart-btn {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

a.product-card.mkpc-card:hover .mkpc-cart-btn {
  box-shadow: 0 2px 10px color-mix(in srgb, var(--gmingo-mkpc-primary, #2c64d3) 30%, transparent);
}

.mkpc-cart-btn:hover {
  transform: scale(1.08);
}

.mkpc-cart-btn:active {
  transform: scale(0.96);
}

/* Promotional strip: layered “smart” gradient — light sheen + depth + rich blue sweep */
/* Scoped under the card anchor so these rules win over Tailwind CDN utilities on narrow viewports. */
a.product-card.mkpc-card .mkpc-savings-bar {
  color: #1f3a6f;
  background-color: #d6e8ff;
  background-image: linear-gradient(180deg, #e4f0ff 0%, #cfe4ff 100%);
  border: 1px solid rgba(44, 100, 211, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
}

@media (min-width: 640px) {
  a.product-card.mkpc-card .mkpc-savings-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
}

a.product-card.mkpc-card .mkpc-savings-bar .mkpc-savings-text {
  color: #1f3a6f;
  text-shadow: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  width: 100%;
  flex: 1 1 auto;
}

@media (min-width: 640px) {
  a.product-card.mkpc-card .mkpc-savings-bar .mkpc-savings-text {
    width: auto;
    flex: 1 1 0%;
  }
}

a.product-card.mkpc-card .mkpc-savings-bar .mkpc-timer {
  color: #1f3a6f;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(44, 100, 211, 0.28);
  animation: mkpc-timer-pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
  box-sizing: border-box;
  align-self: stretch;
  width: 100%;
  text-align: center;
  line-height: 1.35;
  min-height: 1.7rem;
  font-size: 0.6875rem;
}

@media (min-width: 640px) {
  a.product-card.mkpc-card .mkpc-savings-bar .mkpc-timer {
    align-self: center;
    width: auto;
    min-width: 5.75rem;
    font-size: 0.75rem;
  }
}

.mkpc-timer.mkpc-timer-ended {
  animation: none;
  opacity: 0.9;
}

@keyframes mkpc-timer-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
  50% {
    opacity: 0.96;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.18);
  }
}

.mkpc-highlight {
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a.product-card.mkpc-card:hover .mkpc-highlight {
  color: var(--gmingo-mkpc-orange, #ff8f3d);
}

.mkpc-brand-badge {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.product-card.mkpc-card:hover .mkpc-brand-badge {
  box-shadow: 0 1px 5px color-mix(in srgb, var(--gmingo-mkpc-primary, #2c64d3) 28%, transparent);
}

.mkpc-star-seller {
  transition: transform 0.2s ease, filter 0.2s ease;
}

a.product-card.mkpc-card:hover .mkpc-star-seller {
  filter: brightness(1.05);
}

.mkpc-stars span {
  width: 0.85rem;
  text-align: center;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  a.product-card.mkpc-card,
  a.product-card.mkpc-card .product-image-contain,
  .mkpc-cart-btn,
  .mkpc-brand-badge,
  .mkpc-star-seller {
    transition: none;
  }

  a.product-card.mkpc-card:hover {
    transform: none;
  }

  a.product-card.mkpc-card:hover .product-image-contain {
    transform: none;
  }

  .mkpc-timer {
    animation: none;
  }
}
