/* House of Elki: Gifting Catalogue (catalogue.html + assets/js/catalogue.js). Screen layout, then an A4 print layout. */
.cat-cover { padding-block: clamp(56px, 8vw, 104px); }
.cat-cover-inner { display: grid; gap: 18px; max-width: 900px; }
.cat-logo { width: 150px; height: auto; margin-bottom: 8px; }
.cat-cover h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); line-height: 1.04; color: var(--ink); max-width: 18ch; }
.cat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 6px; }
.cat-actions .link-arrow { color: var(--ink); }
.cat-tip { font-size: .8125rem; color: var(--muted); }
.cat-body { padding-block: clamp(48px, 6vw, 88px); display: grid; gap: clamp(56px, 7vw, 96px); }
.cat-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding-bottom: 14px; margin-bottom: 24px; border-bottom: 2px solid var(--navy); }
.cat-section-head h2 { font-size: clamp(1.875rem, 3vw, 2.5rem); }
.cat-section-head p { color: var(--text-muted); font-size: .9375rem; }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; list-style: none; padding: 0; margin: 0; }
.cat-item { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: start; padding-bottom: 24px; border-bottom: 1px solid var(--hairline); break-inside: avoid; }
.cat-item img, .cat-bundle img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: color-mix(in srgb, var(--navy) 8%, var(--paper)); }
.cat-item-body { display: grid; gap: 6px; }
.cat-craft { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); }
.cat-item h3, .cat-bundle h3 { font-size: 1.375rem; line-height: 1.15; }
.cat-item h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cat-short { font-size: .875rem; line-height: 1.55; color: var(--text-muted); }
.cat-facts { display: grid; gap: 3px; margin: 4px 0 0; font-size: .8125rem; }
.cat-facts div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; }
.cat-facts dt { color: var(--navy); font-weight: 600; }
.cat-facts dd { margin: 0; color: var(--text-muted); }
.cat-swatches { display: inline-flex; gap: 3px; vertical-align: -1px; }
.cat-swatches i { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--hairline); }
.cat-price { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; color: var(--navy); margin-top: 2px; }
.cat-price small { font-family: var(--font-body); font-size: .75rem; font-weight: 400; color: var(--text-muted); }
.cat-bundles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.cat-bundle { display: grid; gap: 12px; align-content: start; break-inside: avoid; }
.cat-bundle-items { display: grid; gap: 2px; padding-left: 16px; list-style: disc; font-size: .8125rem; color: var(--text-muted); }
.cat-order-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.cat-order h3 { font-size: 1.5rem; margin-bottom: 12px; }
.cat-brand-list { display: grid; gap: 0; list-style: none; padding: 0; margin: 0 0 12px; border-top: 1px solid var(--hairline); }
.cat-brand-list li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--hairline); font-size: .875rem; }
.cat-brand-list span { color: var(--text-muted); text-align: right; }
.cat-steps { display: grid; gap: 8px; padding-left: 20px; margin: 0 0 14px; font-size: .9375rem; color: var(--text-muted); }
.cat-steps b { color: var(--navy); }
.cat-contact { font-size: .9375rem; margin-bottom: 8px; }
.cat-fine { font-size: .75rem; color: var(--text-muted); }
@media (max-width: 899px) {
  .cat-grid, .cat-order-grid { grid-template-columns: minmax(0, 1fr); }
  .cat-bundles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 499px) {
  .cat-item { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .cat-bundles { grid-template-columns: minmax(0, 1fr); }
}

/* a light outline button for the navy cover */
.btn--outline-light { background: transparent; color: var(--ink); border: 1px solid rgba(246, 241, 233, .55); }
.btn--outline-light:hover { background: rgba(246, 241, 233, .12); }

/* ---------- print: A4, full-bleed cover, products flowing in two columns ---------- */
@page { size: A4; margin: 14mm 12mm 16mm; @bottom-right { content: "House of Elki  ·  " counter(page); font: 8pt Inter, sans-serif; color: #7b8094; } }
@page cover { size: A4; margin: 0; @bottom-right { content: none; } }
@media print {
  .announce, .site-header, .site-footer, .skip-link, .no-print, .toast, .drawer, .scroll-progress, .box-bar { display: none !important; }
  html, body { background: #fff !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .container { width: 100%; max-width: none; }
  /* the cover fills the whole sheet, edge to edge */
  .cat-cover { page: cover; height: 297mm; min-height: 297mm; display: grid; align-content: center; padding: 0 22mm; break-after: page; border-radius: 0; }
  .cat-cover .eyebrow { color: var(--gold) !important; }
  .cat-logo { width: 46mm; }
  .cat-cover h1 { font-size: 40pt; }
  .cat-body { padding: 0; gap: 0; display: block; }
  /* categories flow one after another, so pages are full; a heading never ends a page alone */
  #cat-sections { display: block; }
  .cat-section { break-before: auto; margin-bottom: 9mm; }
  .cat-section-head { break-after: avoid; break-inside: avoid; margin-bottom: 5mm; padding-bottom: 2mm; }
  .cat-section-head h2 { font-size: 20pt; }
  .cat-section-head p { font-size: 9pt; }
  /* multi-column keeps cards intact across pages (CSS grid splits badly when printed) */
  .cat-grid { display: block; columns: 2; column-gap: 9mm; }
  .cat-item { display: grid; grid-template-columns: 36mm minmax(0, 1fr); gap: 4mm; padding-bottom: 4mm; margin-bottom: 4mm; break-inside: avoid; page-break-inside: avoid; }
  .cat-item h3 { font-size: 13pt; }
  .cat-item h3 a { text-decoration: none; }
  .cat-craft { font-size: 6.5pt; }
  .cat-short { font-size: 8pt; line-height: 1.45; }
  .cat-facts { font-size: 7.5pt; }
  .cat-facts div { grid-template-columns: 17mm minmax(0, 1fr); }
  .cat-price { font-size: 13pt; }
  .cat-price small { font-size: 7pt; }
  .cat-order { break-before: page; }
  .cat-bundles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8mm; }
  .cat-bundle { break-inside: avoid; }
  .cat-bundle h3 { font-size: 13pt; }
  .cat-bundle-items { font-size: 8pt; }
  .cat-order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10mm; }
  .cat-order h3 { font-size: 15pt; }
  .cat-brand-list li, .cat-steps, .cat-contact { font-size: 9pt; }
  .cat-fine { font-size: 7pt; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
