/* ==========================================================================
   Ag Scoop — category page styles
   Extends shared.css. Same crate-stencil language as the rest of the site.
   ========================================================================== */

/* --- Breadcrumb --- */
.breadcrumb { padding: 18px 0 0; }
.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--line-strong); }
.breadcrumb li[aria-current] { color: var(--ink); font-weight: 600; }

/* --- Hero --- */
.category-hero { padding: 28px 0 44px; border-bottom: 1px solid var(--line); }

.category-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.category-eyebrow {
  font-family: 'Archivo', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wheat);
  margin-bottom: 12px;
}

.category-hero h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 16px;
}

.category-hero p {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 50ch;
  margin-bottom: 28px;
}

.category-stats { display: flex; gap: 40px; }
.category-stat-num {
  font-family: 'Archivo', sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--green);
  line-height: 1;
}
.category-stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  margin-top: 4px;
}

/* Hero crate panel: big stencilled category word instead of an illustration */
.category-hero-panel {
  border-radius: var(--radius);
  aspect-ratio: 5 / 4;
  box-shadow: var(--shadow);
}
.category-hero-panel .crate { width: 100%; height: 100%; }
.category-hero-panel .crate-word { font-size: clamp(40px, 6vw, 76px); }
.category-hero-panel .crate-sub {
  position: absolute;
  top: 18px;
  left: 20px;
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* --- Filter bar --- */
.filter-bar {
  position: sticky;
  top: 83px;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.filter-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.filter-chip {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.12s ease;
}
.filter-chip:hover { border-color: var(--ink-3); color: var(--ink); }
.filter-chip[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.filter-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.filter-select {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.filter-select:hover { border-color: var(--ink-3); }

.filter-count { font-size: 13.5px; color: var(--ink-3); white-space: nowrap; }

/* --- Deals grid --- */
.deals-section { padding: 44px 0 8px; }

.deals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* favourite button on a card */
.deal-favourite {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 30px;
  height: 30px;
  border-radius: 99px;
  border: none;
  background: var(--paper);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.12s ease, transform 0.12s ease;
}
.deal-favourite:hover { transform: scale(1.08); }
.deal-favourite[aria-pressed="true"] { color: var(--clay); }
.deal-favourite[aria-pressed="true"] svg { fill: var(--clay); }

.deal-card.is-hidden { display: none; }

.no-results {
  display: none;
  text-align: center;
  padding: 48px 0;
  color: var(--ink-2);
  font-size: 16px;
}

/* --- Editorial band --- */
.editorial {
  margin: 56px 0;
  background: var(--green);
  color: #f2efe2;
  border-radius: var(--radius);
}
.editorial-inner { padding: 48px 56px; max-width: none; }
.editorial h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 16px;
  max-width: 22ch;
}
.editorial p {
  font-size: 16.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 70ch;
  margin-bottom: 14px;
}
.editorial-signature {
  margin-top: 20px;
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--wheat);
}

/* --- Load more --- */
.load-more-wrap { text-align: center; padding: 32px 0 8px; }

@media (max-width: 920px) {
  .category-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .category-hero-panel { aspect-ratio: 2 / 1; }
  .deals-grid { grid-template-columns: 1fr; }
  .filter-bar { position: static; }
  .filter-bar-inner { flex-direction: column; align-items: stretch; }
  .filter-controls { justify-content: space-between; }
  .editorial-inner { padding: 36px 28px; }
  .category-stats { gap: 28px; }
}
