/* ==========================================================================
   Shared product-card language
   Used by the Shop grid (products.html) and the featured subscription /
   archive cards on the Subscribe page, so the same product always looks and
   reads the same.

   Rules:
   - Pale pink pills (.kk-badge) name the product TYPE — never a price.
   - Prices (.kk-price) are plain text in one consistent style.
   - Card body order: type pill → name → price → CTA row (pinned to the bottom).
   - Navigation products (subscription, archive) use one .kk-cta;
     direct-purchase products keep Add + Buy Now.

   Loaded before each page's inline <style>, so a page can fine-tune sizes.
   ========================================================================== */

.kk-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Type pill + optional status pill */
.kk-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.kk-badge,
.kk-status {
  display: inline-block;
  align-self: flex-start;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.kk-badge {
  background: var(--soft-blush);
  color: var(--rosy-taupe);
  transform: rotate(-2deg);
}

/* Status (e.g. Coming Soon) is outlined so it never reads as a product type. */
.kk-status {
  background: transparent;
  border: 1.5px solid var(--rosy-taupe);
  color: var(--granite);
  padding: 0.15rem 0.55rem;
}

/* Title area always reserves two lines, so a wrapping name never pushes the
   price or buttons out of line with the cards beside it. */
.kk-card-title {
  margin: 0;
  min-height: calc(2 * 1.3em);
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--granite);
  text-shadow: none;
}

.kk-price {
  margin: 0.35rem 0 0;
  font-family: "Grandstander", cursive;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--deep-teal);
}

.kk-price--muted {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.kk-card-lede {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

/* CTA row sits at the bottom of every card. */
.kk-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.9rem;
}

/* Primary card CTA — same size and depth as the Shop's Buy Now button. */
.kk-cta {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.9rem 0.75rem;
  border: 2px solid var(--deep-teal);
  border-radius: var(--radius-pill);
  background: var(--deep-teal);
  color: var(--warm-white);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--color-teal-dark);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.kk-cta i {
  font-size: 0.8em;
}

.kk-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--color-teal-dark);
}

.kk-cta:active {
  transform: translateY(0);
  box-shadow: 0 0 0 var(--color-teal-dark);
}

.kk-cta:focus-visible {
  outline: 3px solid var(--deep-teal);
  outline-offset: 3px;
}
