/* Overview pages (/kategorier, /rabatgrupper): cards with three sets each, the featured season list,
   the discount split bar and the plain list of other groups. The page header comes from listing.css. */

.overview { gap: 32px; }
.overview .listing-head { max-width: 760px; }
.overview-section { display: flex; flex-direction: column; gap: 14px; }

.overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* CARD: name and count, a line on what's in it, three sets, the link */
.list-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  text-decoration: none;
}

.list-card:hover { color: var(--ink); border-color: var(--line-strong); }
.list-card:hover .list-card__more { text-decoration: underline; }

.list-card__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.list-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.list-card__head--band { align-items: flex-end; }
.list-card__title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.list-card__title--band { flex-direction: column; align-items: flex-start; gap: 4px; }

.list-card__name {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.list-card__count { flex-shrink: 0; font-size: 14px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.list-card__desc { font-size: 15px; line-height: 22px; color: var(--ink-2); }
.list-card__more { margin-top: auto; font-size: 15px; font-weight: 700; color: var(--cta); }

.list-card__thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

.list-card__thumbs > span {
  display: block;
  aspect-ratio: 4 / 3;
  padding: 8px;
  background: var(--image-bg);
  border-radius: 10px;
}

.list-card__thumbs img { width: 100%; height: 100%; object-fit: contain; }

/* The holiday list in season: on top of /kategorier, wide, and again (without the pill) under Højtider */
.now-pill {
  flex-shrink: 0;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  background: var(--red-tint);
  border-radius: var(--r-pill);
  color: var(--cta);
  font-size: 12px;
  font-weight: 800;
}

.list-card__title .now-pill { align-self: center; }

.list-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 20px;
  padding: 28px;
  border-radius: var(--r-xl);
}

.list-card--featured .list-card__text { gap: 10px; }
.list-card--featured .now-pill { height: 26px; padding: 0 10px; font-size: 13px; }
.list-card--featured .list-card__head { justify-content: flex-start; align-items: baseline; flex-wrap: wrap; }
.list-card--featured .list-card__name { font-size: 44px; line-height: 1; letter-spacing: -0.02em; }
.list-card--featured .list-card__count { font-size: 15px; }
.list-card--featured .list-card__desc { font-size: 16px; line-height: 24px; }
.list-card--featured .list-card__more { margin-top: 4px; font-size: 16px; }
.list-card--featured .list-card__thumbs { gap: 10px; }

/* Phones see the season list as an ordinary card with the pill instead */
.overview-now { display: none; }

/* BAND CARD: the size of the discount carries it */
.band-card__pct {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cta);
  white-space: nowrap;
}

.band-card__name { font-size: 16px; font-weight: 700; }

/* DISCOUNT SPLIT: the reduced sets across the bands, darker red = bigger discount */
.discount-summary {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding: 24px 28px;
  background: var(--surface);
  border-radius: var(--r-xl);
}

.discount-summary__total { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 15px; color: var(--ink-2); }
.discount-summary__label { font-size: 15px; font-weight: 700; color: var(--ink-3); }

.discount-summary__number {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.discount-summary__split { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.split-bar { display: flex; gap: 3px; height: 18px; }
.split-bar span { flex-basis: 0; flex-shrink: 1; min-width: 6px; border-radius: 4px; }

.split-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-2); }
.split-legend li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.split-legend strong { color: var(--ink); }
.split-legend__key { width: 10px; height: 10px; border-radius: 3px; }

.split--70 { background: #8c1d1b; }
.split--60 { background: #b0302d; }
.split--50 { background: var(--cta); }
.split--40 { background: #e46a67; }
.split--30 { background: #ef9b98; }
.split--20 { background: #f6c9c7; }
.split--10 { background: var(--empty-2); }

/* The groups that don't get a card */
.row-list { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border-radius: 18px; }

.row-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 18px;
  color: var(--ink);
  text-decoration: none;
}

.row-list__item + .row-list__item { border-top: 1px solid var(--line-soft); }
.row-list__name { flex: 1; font-size: 16px; font-weight: 700; }
.row-list__count { font-size: 14px; color: var(--ink-3); }

@media (max-width: 1023px) {
  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .overview { gap: 22px; }
  .overview-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .list-card { padding: 16px; }
  .list-card__name { font-size: 26px; }
  .band-card__pct { font-size: 36px; }

  .list-card--featured { display: none; }
  .overview-now { display: grid; }

  .discount-summary { display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding: 18px 16px; }
  .discount-summary__number { font-size: 34px; }
}
