/* ═══ CATALOG TEMPLATE PAGE (data-driven, see templates/_catalog_page.html) ═══ */
.tp-hero {
  padding: 110px 20px 40px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, var(--tp-accent-light, rgba(217,80,48,0.08)), transparent 55%),
    var(--bg-warm);
  border-bottom: 1px solid var(--border-light);
}
.tp-hero-inner { max-width: 620px; margin: 0 auto; }
.tp-hero-emoji { font-size: 64px; line-height: 1; display: block; margin-bottom: 14px; }
.tp-hero-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 100px;
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-soft); margin-bottom: 16px;
}
.tp-hero h1 {
  font-family: 'Fraunces', serif; font-size: 44px; font-weight: 800;
  letter-spacing: -1px; line-height: 1.08; margin: 0 0 12px;
}
.tp-hero-sub { font-size: 17px; color: var(--text-mid); line-height: 1.6; margin: 0 auto 26px; max-width: 520px; }
.tp-stats { display: flex; justify-content: center; gap: 32px; margin-bottom: 24px; }
.tp-stat-num { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 700; }
.tp-stat-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-soft); }
.tp-serving {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 100px;
  padding: 6px 8px; margin-bottom: 22px;
}
.tp-serving-label { font-size: 13px; font-weight: 600; color: var(--text-soft); padding: 0 8px; }
.tp-serving-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-warm); border: 1px solid var(--border);
  font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit; color: var(--text);
}
.tp-serving-btn:hover { background: var(--border-light); }
.tp-serving-count { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 700; min-width: 36px; text-align: center; }
.tp-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.tp-btn {
  padding: 13px 26px; border-radius: 100px; border: none; cursor: pointer;
  font-family: 'Nunito Sans', sans-serif; font-size: 15px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; text-decoration: none;
}
.tp-btn-primary { background: var(--accent); color: white; }
.tp-btn-primary:hover { background: var(--accent-dark); }
.tp-btn-secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.tp-btn-secondary:hover { border-color: var(--text-faint); }

.tp-body { max-width: 640px; margin: 0 auto; padding: 32px 20px 0; }
.tp-tips { display: grid; gap: 10px; margin-bottom: 28px; }
.tp-tip {
  display: flex; gap: 12px; padding: 14px 16px;
  background: var(--mango-light); border: 1px solid rgba(229,153,62,0.25); border-radius: 12px;
}
.tp-tip-icon { font-size: 18px; line-height: 1.2; }
.tp-tip-title { font-size: 13px; font-weight: 800; margin-bottom: 2px; }
.tp-tip-text { font-size: 13px; color: var(--text-mid); line-height: 1.5; }

.tp-section { margin-bottom: 22px; }
.tp-section-label { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tp-section-icon { font-size: 18px; }
.tp-section-title { font-family: 'Fraunces', serif; font-size: 19px; font-weight: 700; }
.tp-section-count { font-size: 11px; font-weight: 700; color: var(--text-soft); background: var(--bg-warm); padding: 3px 8px; border-radius: 100px; }
.tp-section-line { flex: 1; height: 1px; background: var(--border-light); }
.tp-items { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 14px; overflow: hidden; }
.tp-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border-light); }
.tp-item:last-child { border-bottom: none; }
.tp-item-name { font-size: 15px; font-weight: 600; }
.tp-item-note { font-size: 12px; color: var(--text-soft); margin-top: 1px; }
.tp-item-qty { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-mid); white-space: nowrap; background: var(--bg-warm); padding: 3px 8px; border-radius: 6px; }

.tp-cta {
  margin: 36px 0 0; padding: 26px 22px; text-align: center;
  background: var(--bg-dark); color: white; border-radius: 18px;
}
.tp-cta h2 { font-family: 'Fraunces', serif; font-size: 24px; margin: 0 0 6px; }
.tp-cta p { color: rgba(255,255,255,0.65); margin: 0 0 16px; font-size: 14px; }

.tp-related { max-width: 640px; margin: 36px auto 0; padding: 0 20px; }
.tp-related h3 { font-family: 'Fraunces', serif; font-size: 20px; margin: 0 0 12px; }
.tp-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tp-related-card {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 12px;
  text-decoration: none; color: inherit; font-size: 13px; font-weight: 700; transition: all 0.2s;
}
.tp-related-card:hover { border-color: var(--border); box-shadow: var(--shadow); transform: translateY(-1px); }
.tp-related-emoji { font-size: 20px; }

/* Hub page */
.tp-hub { max-width: 840px; margin: 0 auto; padding: 110px 20px 0; }
.tp-hub-header { text-align: center; margin-bottom: 32px; }
.tp-hub-header h1 { font-family: 'Fraunces', serif; font-size: 40px; font-weight: 800; letter-spacing: -1px; margin: 0 0 10px; }
.tp-hub-header p { color: var(--text-mid); font-size: 16px; max-width: 520px; margin: 0 auto; }
.tp-hub-group { margin-bottom: 36px; }
.tp-hub-group h2 { font-family: 'Fraunces', serif; font-size: 22px; margin: 0 0 4px; }
.tp-hub-group-sub { font-size: 14px; color: var(--text-soft); margin: 0 0 14px; }
.tp-hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tp-hub-card {
  display: block; padding: 18px 16px;
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 14px;
  text-decoration: none; color: inherit; transition: all 0.2s;
}
.tp-hub-card:hover { border-color: var(--border); box-shadow: var(--shadow); transform: translateY(-2px); }
.tp-hub-card-emoji { font-size: 30px; display: block; margin-bottom: 8px; }
.tp-hub-card-name { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.tp-hub-card-desc { font-size: 13px; color: var(--text-soft); line-height: 1.45; }
.tp-hub-card-meta { font-size: 11px; color: var(--text-faint); margin-top: 8px; font-weight: 700; }

@media (max-width: 640px) {
  .tp-hero h1 { font-size: 34px; }
  .tp-stats { gap: 22px; }
  .tp-related-grid, .tp-hub-grid { grid-template-columns: 1fr 1fr; }
  .tp-hub-header h1 { font-size: 32px; }
}
