/* =========================================================================
   Cigarista — public catalog pages (/cigars, /cigars/[brand], /cigars/[line])
   Ported from /tmp/design/cigarista-seo-proposal mockups, rebuilt on the
   production tokens (tokens.css). All selectors are `cat-`-prefixed and scoped
   under `.catalog-shell` so nothing here leaks into the landing styles. Reuses
   the shared Nav/Footer/.container/.btn from styles.css.
   ========================================================================= */

.catalog-shell {
  --cat-gold-line: rgba(242, 191, 102, 0.18);
  --cat-hairline: rgba(255, 255, 255, 0.06);
  --cat-max: 1060px;
  background: linear-gradient(180deg, #1a0e03 0%, #000 45%);
  min-height: 100vh;
  color: var(--text-primary);
  font: 400 15px/1.6 var(--font-sans);
}

/* The shared nav is position:fixed + transparent on the landing page (it relies
   on the hero behind it). Catalog pages have no hero, so make it a solid sticky
   bar that occupies flow space — content never hides beneath it. */
.catalog-shell .nav {
  position: sticky;
  background: rgba(10, 6, 0, 0.9);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid rgba(242, 191, 102, 0.08);
}

.cat-container {
  max-width: var(--cat-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Breadcrumbs ─────────────────────────────────────────────────────────── */
.cat-crumbs {
  padding: 22px 0 0;
  font-size: 13px;
  color: var(--text-tan);
}
.cat-crumbs a { color: var(--text-tan); text-decoration: none; }
.cat-crumbs a:hover { color: var(--gold-yellow); }
.cat-crumbs .sep { margin: 0 8px; color: var(--brown-medium); }
.cat-crumbs .here { color: var(--text-offwhite); }

/* ── Eyebrow + headings ──────────────────────────────────────────────────── */
.cat-eyebrow {
  font: 700 11px/14px var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tan);
}
.cat-eyebrow .flag {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 1px;
}
.cat-h1 {
  font: 600 clamp(30px, 4.4vw, 38px)/1.15 var(--font-sans);
  color: var(--gold-warm);
  letter-spacing: -0.01em;
  margin: 10px 0 6px;
}
.cat-section { padding: 34px 0; border-top: 1px solid var(--cat-hairline); }
.cat-h2 { font: 700 20px/1.3 var(--font-sans); color: var(--gold-yellow); margin-bottom: 8px; }
.cat-sub { color: var(--text-tan); font-size: 13.5px; margin-bottom: 20px; }

/* ── Buttons (match shared .btn-primary but usable on bare <a>) ───────────── */
.cat-cta-link {
  display: inline-block;
  background: var(--gold-yellow);
  color: var(--text-on-gold);
  font: 600 14px/1 var(--font-sans);
  padding: 13px 22px;
  border-radius: 9999px;
  white-space: nowrap;
  text-decoration: none;
}
.cat-cta-link:hover { background: var(--gold-warm); color: var(--text-on-gold); }

/* ── LINE PAGE ───────────────────────────────────────────────────────────── */
.cat-hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  padding: 30px 0 38px;
  align-items: start;
}
.cat-byline { font-size: 15px; color: var(--text-tan); margin-bottom: 16px; }
.cat-byline a { color: var(--gold-yellow); text-decoration: none; }
.cat-byline a:hover { color: var(--gold-warm); }

.cat-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 24px; }
.cat-chip {
  border: var(--border-gold-soft);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 12.5px;
  color: var(--text-offwhite);
}
.cat-chip strong { color: var(--gold-yellow); font-weight: 600; }
.cat-chip.strength { background: rgba(211, 47, 47, 0.12); border-color: rgba(211, 47, 47, 0.35); }

.cat-hero-desc { color: var(--text-primary); max-width: 60ch; }
.cat-hero-desc p { margin: 0 0 12px; }
.cat-hero-desc p:last-child { margin-bottom: 0; }

/* Camera-shy / photo band card */
.cat-band-card {
  background: var(--gradient-featured);
  border: var(--border-gold-soft);
  border-radius: 16px;
  padding: 26px;
  text-align: center;
}
.cat-band-art {
  position: relative;
  background: linear-gradient(180deg, #1f1208 0%, #120a02 100%);
  border-radius: 10px;
  height: 220px;
  overflow: hidden;
}
.cat-band-art img.shy {
  position: absolute;
  top: 56%; left: 56%;
  width: 88%;
  transform: translate(-50%, -50%) rotate(-12deg);
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.65));
  opacity: 0.92;
  pointer-events: none;
}
.cat-band-art .shy-label { position: absolute; top: 18px; left: 18px; text-align: left; }
.cat-band-art .shy-wordmark {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.18em;
  color: var(--gold-yellow);
  text-transform: uppercase;
  line-height: 1;
}
.cat-band-art .shy-caption {
  font: 600 9.5px/1.3 var(--font-sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(184, 168, 152, 0.7);
  max-width: 160px;
  margin-top: 6px;
}
.cat-band-art img.stock {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.cat-band-caption { margin-top: 14px; font-size: 12px; color: var(--text-tan); }

/* Spec sheet */
.cat-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--cat-hairline);
  border: 1px solid var(--cat-hairline);
  border-radius: 12px;
  overflow: hidden;
}
.cat-spec { background: var(--brown-card); padding: 14px 18px; }
.cat-spec .k {
  font: 700 10.5px/14px var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tan);
}
.cat-spec .v { font: 600 15px/1.4 var(--font-sans); color: var(--text-offwhite); margin-top: 3px; }

/* Vitola table */
.cat-table-wrap { overflow-x: auto; }
.cat-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cat-table th {
  text-align: left;
  font: 700 11px/14px var(--font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tan);
  padding: 10px 14px;
  border-bottom: var(--border-gold-soft);
  white-space: nowrap;
}
.cat-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--cat-hairline);
  color: var(--text-primary);
  vertical-align: top;
}

/* Review section */
.cat-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-review-card { background: var(--brown-card); border: 1px solid var(--cat-hairline); border-radius: 12px; padding: 18px; }
.cat-review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cat-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--brown-review);
  color: var(--gold-yellow);
  display: flex; align-items: center; justify-content: center;
  font: 700 14px/1 var(--font-sans);
  flex-shrink: 0;
}
.cat-review-user { font: 600 13.5px/1.2 var(--font-sans); color: var(--gold-yellow); text-decoration: none; }
.cat-review-user:hover { color: var(--gold-warm); }
.cat-review-date { font-size: 11.5px; color: var(--text-tan); margin-top: 2px; }
.cat-review-stars { color: var(--gold-yellow); font-size: 13px; letter-spacing: 1px; margin-bottom: 8px; }
.cat-review-body { font-size: 13.5px; color: var(--text-primary); line-height: 1.55; }

/* Aggregate rating row (5+ only) */
.cat-rating-row { display: flex; align-items: center; gap: 12px; margin: 4px 0 20px; flex-wrap: wrap; }
.cat-stars { color: var(--gold-yellow); font-size: 18px; letter-spacing: 2px; }
.cat-rating-num { font: 700 22px/1 var(--font-sans); color: var(--text-offwhite); }
.cat-rating-meta { font-size: 13px; color: var(--text-tan); }

/* No-review honest invite (0 reviews) */
.cat-invite {
  background: var(--brown-card);
  border: 1px dashed var(--cat-gold-line);
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.cat-invite p { margin: 0; color: var(--text-offwhite); font-size: 14.5px; }
.cat-invite .hint { color: var(--text-tan); font-size: 13px; margin-top: 4px; }

.cat-see-all { display: inline-block; margin-top: 18px; font-weight: 600; font-size: 14px; color: var(--gold-yellow); text-decoration: none; }
.cat-see-all:hover { color: var(--gold-warm); }

/* CTA band */
.cat-cta-band {
  background: linear-gradient(160deg, #2a1808 0%, #15090a 70%);
  border: var(--border-gold-soft);
  border-radius: 16px;
  padding: 34px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cat-cta-band h3 { font: 700 21px/1.3 var(--font-sans); color: var(--gold-warm); margin-bottom: 6px; }
.cat-cta-band p { color: var(--text-tan); font-size: 14px; max-width: 52ch; margin: 0; }

/* Similar lines */
.cat-similar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-similar {
  background: var(--brown-card);
  border: 1px solid var(--cat-hairline);
  border-radius: 12px;
  padding: 16px;
  display: block;
  transition: border-color 0.15s;
  text-decoration: none;
}
.cat-similar:hover { border-color: var(--cat-gold-line); }
.cat-similar .name { font: 600 14px/1.35 var(--font-sans); color: var(--text-offwhite); margin-bottom: 6px; }
.cat-similar .meta { font-size: 12px; color: var(--text-tan); }

/* FAQ */
.cat-faq-item { border-bottom: 1px solid var(--cat-hairline); padding: 16px 0; max-width: 76ch; }
.cat-faq-item h3 { font: 600 15.5px/1.4 var(--font-sans); color: var(--text-offwhite); margin-bottom: 6px; }
.cat-faq-item p { font-size: 14px; color: var(--text-tan); margin: 0; }

/* ── BRAND PAGE ──────────────────────────────────────────────────────────── */
.cat-brand-hero { padding: 30px 0 8px; }
.cat-blurb { max-width: 66ch; color: var(--text-primary); }
.cat-stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 28px 0 8px; }
.cat-stat { background: var(--wash-gold-soft); border: var(--border-gold-soft); border-radius: 14px; padding: 18px 20px; }
.cat-stat .v { font: 700 26px/1.1 var(--font-sans); color: var(--gold-yellow); }
.cat-stat .k {
  font: 700 10.5px/14px var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tan);
  margin-top: 7px;
}

.cat-line-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-line-card {
  background: var(--brown-card);
  border: 1px solid var(--cat-hairline);
  border-radius: 12px;
  padding: 20px;
  display: block;
  transition: border-color 0.15s;
  text-decoration: none;
}
.cat-line-card:hover { border-color: var(--cat-gold-line); }
.cat-line-card .name { font: 600 16px/1.35 var(--font-sans); color: var(--text-offwhite); margin-bottom: 7px; }
.cat-line-card .meta { font-size: 12.5px; color: var(--text-tan); margin-bottom: 12px; }
.cat-line-card .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cat-line-card .score { font-size: 13px; color: var(--gold-yellow); font-weight: 600; }
.cat-line-card .logs { font-size: 12px; color: var(--text-tan); }

/* ── INDEX PAGE (665 brands, alpha-grouped) ──────────────────────────────── */
.cat-index-hero { padding: 30px 0 10px; }
.cat-featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-az-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.cat-az-nav a {
  display: inline-flex;
  align-items: center; justify-content: center;
  min-width: 34px; height: 34px;
  padding: 0 8px;
  border: 1px solid var(--cat-hairline);
  border-radius: 8px;
  background: var(--brown-card);
  color: var(--text-offwhite);
  font: 600 13px/1 var(--font-sans);
  text-decoration: none;
}
.cat-az-nav a:hover { border-color: var(--cat-gold-line); color: var(--gold-warm); }

.cat-az-group { padding-top: 28px; scroll-margin-top: 80px; }
.cat-az-letter {
  font: 700 22px/1 var(--font-display);
  letter-spacing: 0.08em;
  color: var(--gold-yellow);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--cat-hairline);
}
.cat-brand-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-brand-chip {
  border: 1px solid var(--cat-hairline);
  background: var(--brown-card);
  border-radius: 9999px;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--text-offwhite);
  text-decoration: none;
}
.cat-brand-chip:hover { border-color: var(--cat-gold-line); color: var(--gold-warm); }
.cat-brand-chip .n { color: var(--text-tan); font-size: 11.5px; margin-left: 6px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .cat-hero { grid-template-columns: 1fr; }
  .cat-spec-grid, .cat-review-grid { grid-template-columns: 1fr 1fr; }
  .cat-similar-grid { grid-template-columns: 1fr 1fr; }
  .cat-line-grid, .cat-featured-grid { grid-template-columns: 1fr; }
  .cat-stats-strip { grid-template-columns: 1fr 1fr; }
  .cat-cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .cat-spec-grid, .cat-review-grid, .cat-similar-grid { grid-template-columns: 1fr; }
}
