/* Buyer catalogue cards and matched line-card strips.
   Maritime Navy tokens come from tokens.css. */

.hub-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: 148px 0 72px;
}
.hub-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/img-pantry.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.28;
}
.hub-hero .container { position: relative; z-index: 1; }
.hub-hero h1 {
  color: #fff;
  max-width: 16ch;
  margin: 12px 0 var(--s-3);
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}
.hub-hero h1 em { font-style: italic; color: var(--brand); font-weight: 400; }
.hub-hero .lead { color: rgba(255,255,255,0.92); max-width: 62ch; text-shadow: 0 1px 14px rgba(0,0,0,0.45); }
.hub-hero .eyebrow { color: var(--brand-2); }
.hub-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: var(--s-4); }

.crumbs { margin-bottom: 18px; font-size: var(--fs-micro); color: rgba(255,255,255,0.72); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; list-style: none; padding: 0; margin: 0; }
.crumbs a { color: rgba(255,255,255,0.84); }
.crumbs a:hover { color: var(--brand-2); }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li:not(:last-child)::after { content: '/'; color: rgba(196,163,90,0.7); }
.crumbs [aria-current="page"] { color: #fff; }
.crumbs--ink { color: var(--mute); }
.crumbs--ink a { color: var(--ink-2); }
.crumbs--ink a:hover { color: var(--brand-dark); }
.crumbs--ink li:not(:last-child)::after { color: var(--brand-dark); }
.crumbs--ink [aria-current="page"] { color: var(--ink); }

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-5);
}
@media (max-width: 980px) { .hub-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .hub-grid { grid-template-columns: 1fr; } }

.hub-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: var(--hairline);
  border-radius: 8px;
  overflow: hidden;
  min-width: 0;
}
.hub-card--feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) 1.2fr;
}
@media (max-width: 800px) {
  .hub-card--feature { grid-template-columns: 1fr; }
}
.hub-card__media {
  aspect-ratio: 3 / 2;
  background: var(--ink);
  overflow: hidden;
}
.hub-card--feature .hub-card__media { aspect-ratio: auto; min-height: 220px; }
.hub-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hub-card__type {
  height: 100%;
  min-height: 220px;
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  background:
    radial-gradient(ellipse at 20% 0%, #16325A 0%, #0B1F3A 62%);
  color: #fff;
}
.hub-card__type .eyebrow { color: var(--brand-2); }
.hub-card__type-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}
.hub-card__type p { color: rgba(255,255,255,0.78); font-size: var(--fs-small); max-width: 28ch; }
.hub-card__body {
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.hub-card__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.hub-card__title a:hover { color: var(--brand-dark); }
.hub-card__blurb { color: var(--ink-2); font-size: var(--fs-small); line-height: 1.6; }
.hub-card__body .btn { margin-top: auto; align-self: flex-start; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-dim);
  border-radius: 999px;
  padding: 4px 10px;
}

.lifestyle {
  background: var(--surface-2);
  border-top: 4px solid var(--brand);
}
.lifestyle__note {
  margin-top: var(--s-3);
  max-width: 62ch;
  color: var(--ink-2);
  font-size: var(--fs-small);
  line-height: 1.6;
}
.lifestyle__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: var(--s-5);
  align-items: start;
  margin-top: var(--s-5);
}
@media (max-width: 800px) { .lifestyle__layout { grid-template-columns: 1fr; } }
.lifestyle .hub-card { max-width: 460px; }

.hub-close { text-align: center; }
.hub-close .lead { margin-left: auto; margin-right: auto; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Matched downloads on category landers and the products strip */
.buyer-strip__actions,
.line-cards__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: var(--s-4); }
.buyer-strip__label {
  margin-top: var(--s-4);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-dark);
}
.buyer-strip__links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 10px; }
.buyer-strip__links a {
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: 600;
  border-bottom: 1px solid var(--brand-dark);
}
.buyer-strip__links a:hover { color: var(--brand-dark); }

.line-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-4);
}
.line-cards__grid--pair { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) {
  .line-cards__grid,
  .line-cards__grid--pair { grid-template-columns: 1fr; }
}
.line-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: var(--hairline);
  border-radius: 8px;
  overflow: hidden;
  border-top: 3px solid var(--brand);
  min-width: 0;
}
.line-card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  background: var(--ink);
}
.line-card__body { padding: var(--s-3); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.line-card__title { font-family: var(--font-display); font-size: 22px; font-weight: 500; line-height: 1.2; }
.line-card__meta { color: var(--mute); font-size: var(--fs-micro); }
.line-card .btn { margin-top: auto; align-self: flex-start; }
.line-cards__more { margin-top: var(--s-4); }
.line-cards__more a { color: var(--brand-dark); font-weight: 600; border-bottom: 1px solid var(--brand-dark); }

/* Bags and totes lander: calm, not a grocery hero */
.bags-hero { padding: 140px 0 var(--s-6); background: var(--paper); }
.bags-hero h1 { max-width: 14ch; margin: 12px 0 var(--s-3); }
.bags-hero h1 em { font-style: italic; color: var(--brand-dark); font-weight: 400; }
.bags-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--s-5);
  align-items: center;
}
@media (max-width: 800px) { .bags-hero__grid { grid-template-columns: 1fr; } }
.bags-hero__figure {
  background: var(--surface);
  border: var(--hairline);
  border-radius: 8px;
  overflow: hidden;
}
.bags-hero__figure img { width: 100%; height: auto; display: block; }
.bags-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: var(--s-4); }
.bags-note {
  margin-top: var(--s-3);
  color: var(--ink-2);
  font-size: var(--fs-small);
  max-width: 58ch;
  line-height: 1.6;
}
