/* Shared shopping guidance. Opt-in classes keep page and configurator styles
   intact while restoring the reading rhythm removed by the global reset. */
.commerce-info,
.commerce-cta {
  --commerce-ink: var(--heading, #0f172a);
  --commerce-accent: var(--cta-bg, #1D4E89);
  --commerce-action-ink: var(--cta-text, #fff);
  --commerce-muted: var(--text-muted, #5f6e84);
  --commerce-line: #dfe3e6;
  color: var(--commerce-ink);
}

.commerce-info {
  padding-block: 24px;
  font-size: 16px;
  line-height: 1.6;
}

.commerce-info h2,
.commerce-cta h2 {
  margin: 0 0 12px;
  color: var(--commerce-ink);
  font-size: clamp(1.375rem, 1.15rem + 0.6vw, 1.75rem);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-transform: none;
}

.commerce-info h3 {
  margin: 20px 0 8px;
  color: var(--commerce-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}
.commerce-info :is(p, ul, ol) + h2 { margin-top: 24px; }

.commerce-info p,
.commerce-cta p {
  margin: 0 0 12px;
  color: var(--commerce-muted);
  font-size: 16px;
  line-height: 1.6;
}

.commerce-info strong { color: var(--commerce-ink); }
.commerce-info > p,
.commerce-info__reading,
.commerce-info__intro { max-width: 78ch; }
.commerce-info__reading { margin-inline: auto; }
.commerce-info__reading > :last-child,
.commerce-info > :last-child,
.commerce-cta__copy > :last-child { margin-bottom: 0; }

.commerce-info ul,
.commerce-info ol {
  margin: 12px 0;
  padding-left: 24px;
  list-style: disc;
}
.commerce-info ol { list-style: decimal; }
.commerce-info li { margin-block: 6px; }
.commerce-info li::marker { color: var(--commerce-accent); }

.commerce-info a {
  color: var(--commerce-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.commerce-info a:hover { text-decoration-thickness: 2px; }
.commerce-info a:focus-visible,
.commerce-cta a:focus-visible {
  outline: 2px solid var(--commerce-accent);
  outline-offset: 4px;
}

.commerce-info .commerce-info__facts,
.commerce-info .commerce-info__categories,
.commerce-info .commerce-info__links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.commerce-info__facts > li,
.commerce-info__categories > li,
.commerce-info__links > li {
  min-width: 0;
  margin: 0;
}
.commerce-info__facts > li {
  padding: 20px;
  border-radius: 8px;
  background: #f4f5f5;
  border-top: 3px solid var(--commerce-accent);
  color: var(--commerce-muted);
}
.commerce-info__facts > li strong { font-weight: 750; }
.commerce-info__categories > li {
  padding: 16px 20px;
  border: 1px solid var(--commerce-line);
  border-radius: 8px;
  color: var(--commerce-muted);
}
.commerce-info__categories a { font-weight: 750; }
.commerce-info__links > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  min-height: 56px;
  padding: 16px 20px;
  border: 1px solid var(--commerce-line);
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}
.commerce-info__links > li > a::after {
  content: "→";
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1;
}
.commerce-info__links > li > a:hover {
  border-color: var(--commerce-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.commerce-info .commerce-info__note {
  margin: 20px 0 0;
  padding: 16px 20px;
  border-radius: 8px;
  background: #f4f5f5;
  border-left: 4px solid var(--commerce-accent);
}
.commerce-info .commerce-info__facts + p,
.commerce-info .commerce-info__note + p { margin-top: 12px; }

.commerce-cta { padding-block: 24px; }
.commerce-cta__panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--commerce-line);
  border-radius: 8px;
  background: #f4f5f5;
}
.commerce-cta__copy { min-width: 0; max-width: 72ch; }
.commerce-cta .commerce-cta__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  width: 100%;
  padding: 12px 20px;
  border: 1px solid var(--commerce-accent);
  border-radius: 8px;
  background: var(--commerce-accent);
  color: #fff;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  transform: none;
}
.commerce-cta .commerce-cta__action svg { flex-shrink: 0; }
.commerce-cta .commerce-cta__action::before { background: none; }
.commerce-cta .commerce-cta__action:hover {
  background: var(--cta-bg-hover, #173F70);
  border-color: var(--cta-bg-hover, #173F70);
  color: #fff;
  box-shadow: none;
  transform: none;
}

@media (min-width: 768px) {
  .commerce-info .commerce-info__categories,
  .commerce-info .commerce-info__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commerce-cta__panel { padding: 24px; }
  .commerce-cta .commerce-cta__action { width: auto; }
}

@media (min-width: 1024px) {
  .commerce-info .commerce-info__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .commerce-cta__panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
  .commerce-cta__action { flex-shrink: 0; }
}

/* ---------------------------------------------------------------------
   Folded category copy (assets/js/shop-content.js)
   Long text below the products shows a short preview with "Lees meer",
   as bol.com and Coolblue do. The text stays in the DOM for search.
   --------------------------------------------------------------------- */
.shop-listing .shop-fold.is-folded {
  max-height: 10.5em; /* about six lines of body copy */
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.shop-listing .shop-fold--compact.is-folded { max-height: 6.5em; }
.shop-listing .shop-fold--closed.is-folded { display: none; }
.shop-listing .type-guide__lead { margin-bottom: 0; }
.shop-listing .type-guide__more { margin-top: var(--space-md); }
.shop-listing .shop-fold__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  margin: var(--space-xs) 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cta-bg, #1D4E89);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.shop-listing .shop-fold__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.shop-listing .shop-fold__toggle:focus-visible {
  outline: 2px solid var(--cta-bg, #1D4E89);
  outline-offset: 3px;
}
/* Folded type guides read as a compact list of topics. */
.shop-listing .type-guide:has(.shop-fold.is-folded) { padding-block: var(--space-md); border-top: 1px solid var(--shop-line, #dfe3e6); }
@media print {
  .shop-listing .shop-fold--closed.is-folded { display: block; }
  .shop-listing .shop-fold.is-folded { max-height: none; -webkit-mask-image: none; mask-image: none; }
  .shop-listing .shop-fold__toggle { display: none; }
}
