/* ==========================================================================
   KADRI ORGANICS — BUNDLE CARD (component)
   Kit-strip card for multi-product bundles. Extends the product card:
   load AFTER components/product-card.css. Used by home, shop, and later
   the campaign page.
   ========================================================================== */

/* Shared with product-card.css — whichever loads last wins, definition is identical */
@keyframes badge-dot-pulse {
  0%, 100% { opacity: 1;    transform: scale(1);   }
  50%       { opacity: 0.3;  transform: scale(0.55); }
}

.bundle-card .kit-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--color-paper-raised);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
}

.bundle-card .kit-strip.is-quad { grid-template-columns: repeat(4, 1fr); }

/* Full-area click-through to the bundle detail page. The add-to-cart
   button lives in the card footer below, outside .kit-strip, so it's
   never covered by this overlay — both "click the card" and "click add"
   are always separate, reliable click targets. */
.bundle-card .kit-strip-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.bundle-card .kit-strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.item-count-pill {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  background: var(--color-amber);
  color: var(--color-ink);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bundle-card:hover .item-count-pill {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@keyframes pill-pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
  50% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 0 0 4px rgba(8, 49, 1, 0.457); }
}

.item-count-pill {
  animation: pill-pulse 2.5s ease-in-out infinite;
}

.bundle-card .contents-line {
  font-size: 0.76rem;
  color: var(--color-ink-soft);
  margin: 4px 0 6px;
  line-height: 1.45;
}

/*
  Bundle status band — sits between the kit-strip and the card text,
  full-width, no border-radius. Each type has a distinct visual weight
  that avoids competing with the product imagery above it.
*/
.bundle-card .bundle-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 7px 12px;
  line-height: 1;
  white-space: nowrap;
  /* square corners: sits flush against kit-strip above, card text below */
  border-radius: 0;
  /* default fallback */
  background: var(--color-ink);
  color: var(--color-paper);
}

.bundle-card .bundle-badge.is-best-seller {
  background: var(--color-amber);
  color: var(--color-paper);
}

.bundle-card .bundle-badge.is-best-seller::before {
  content: '★';
  font-size: 0.7em;
  line-height: 1;
}

.bundle-card .bundle-badge.is-new {
  background: var(--color-ink);
  color: var(--color-paper);
}

.bundle-card .bundle-badge.is-new::before {
  content: '';
  display: block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-amber);
  flex-shrink: 0;
  animation: badge-dot-pulse 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .bundle-card .bundle-badge.is-new::before { animation: none; }
}

.bundle-card .bundle-badge.is-limited {
  background: rgba(201, 162, 75, 0.07);
  color: var(--color-gold-line);
  border-top: 1px solid rgba(201, 162, 75, 0.28);
  border-bottom: 1px solid rgba(201, 162, 75, 0.28);
  letter-spacing: 0.14em;
}

.bundle-card .bundle-badge.is-popular {
  background: var(--color-amber-tint);
  color: var(--color-amber-dark);
}

/* Detail page: inline pill below the kicker */
.detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.60rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 5px;
  line-height: 1;
  margin-bottom: 10px;
  background: var(--color-ink);
  color: var(--color-paper);
}

.detail-badge.is-best-seller {
  background: var(--color-amber);
  color: var(--color-paper);
  box-shadow: 0 2px 10px rgba(232, 130, 27, 0.4);
}

.detail-badge.is-new {
  background: var(--color-ink);
  color: var(--color-paper);
}

.detail-badge.is-new::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-amber);
  flex-shrink: 0;
  animation: badge-dot-pulse 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .detail-badge.is-new::before { animation: none; }
}

.detail-badge.is-limited {
  background: transparent;
  color: var(--color-gold-line);
  border: 1.5px solid var(--color-gold-line);
  padding: 3.5px 9.5px;
}

.detail-badge.is-popular {
  background: var(--color-amber-tint);
  color: var(--color-amber-dark);
}

.wax-choice-note {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-amber-dark);
  background: var(--color-amber-tint);
  border-radius: 100px;
  padding: 3px 9px;
  margin-top: 2px;
}
