/* ==========================================================================
   16 · CATALOGUE
   Archive filters, the single design page, and the lightbox.
   ========================================================================== */

/* --- Filters --------------------------------------------------------------
   Three rows, one per filing axis, so it is visible that Povod / Tip / Stil
   are independent and can be combined rather than being one long list. */

.filter-row {
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--rule-soft);
}

.filter-row:first-of-type { border-top: 1px solid var(--rule); }

.filter-row__label {
  flex: none;
  width: 64px;
  color: var(--ink-3);
  font-size: var(--fs-100);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

.filter-row .chips {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.filter-clear {
  margin-top: var(--s-3);
  font-size: var(--fs-200);
}

.filter-clear a { color: var(--mulberry); }

.result-count {
  margin: var(--s-6) 0 var(--s-5);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: var(--fs-200);
}

.catalog-grid { row-gap: var(--s-7); }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-4);
  padding: var(--s-8) 0;
}

.archive-seo {
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
  font-size: var(--fs-300);
}

@media (max-width: 700px) {
  .filter-row { flex-direction: column; gap: var(--s-2); }
  .filter-row__label { width: auto; }
}


/* --- Single design -------------------------------------------------------- */

.design {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: start;
  gap: clamp(32px, 5vw, 80px);
}

.design__main {
  margin: 0;
  overflow: hidden;
  background: var(--linen);
}

.design__main img { width: 100%; }

.design__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: var(--s-2);
  margin-top: var(--s-2);
}

.design__thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), opacity 0.2s var(--ease);
  opacity: 0.7;
}

.design__thumb:hover { opacity: 1; }

.design__thumb.is-current {
  border-color: var(--mulberry);
  opacity: 1;
}

.design__thumb img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.design__info { position: sticky; top: calc(var(--admin-bar) + var(--header-h) + var(--s-5)); }

.design__title {
  font-size: var(--fs-800);
  line-height: var(--lh-tight);
}

.design__info .lede { margin-top: var(--s-4); }

.design__price {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  margin: var(--s-5) 0;
}

.design__price strong {
  font-family: var(--font-mono);
  font-size: var(--fs-600);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.design__price-note {
  color: var(--ink-3);
  font-size: var(--fs-200);
  line-height: 1.45;
}

.design__label {
  margin-bottom: var(--s-3);
  color: var(--ink-3);
  font-family: var(--font-body);
  font-size: var(--fs-100);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}


/* --- Spec table -----------------------------------------------------------
   Mono and tabular so the figures line up; this is the block that makes the
   page read as a real product rather than a photo with a price. */

.specs {
  margin: var(--s-6) 0;
  border-top: 1px solid var(--rule);
}

.specs__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--rule-soft);
}

.specs__row dt,
.specs__row span:first-child {
  flex: none;
  color: var(--ink-3);
  font-size: var(--fs-100);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

.specs__row dd,
.specs__row span:last-child {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--fs-200);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.specs--compact { margin-top: var(--s-3); }

.design__options { margin-top: var(--s-6); }

.design__cta {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
}

.design__inquiry-note {
  margin-bottom: var(--s-4);
  color: var(--ink-2);
  font-size: var(--fs-300);
}

.design__reply {
  margin-top: var(--s-3);
  color: var(--ink-3);
  font-size: var(--fs-200);
  text-align: center;
}

@media (max-width: 860px) {
  .design { grid-template-columns: 1fr; }
  .design__info { position: static; }
}


/* --- Lightbox ------------------------------------------------------------- */

.lb {
  position: fixed;
  inset: 0;
  top: var(--admin-bar);
  z-index: 200;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-4);
  padding: clamp(16px, 4vw, 48px);
  background: rgba(20, 18, 16, 0.92);
}

.lb__figure {
  margin: 0;
  justify-self: center;
  max-height: 88vh;
}

.lb__img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  background: none;
}

.lb__close {
  position: absolute;
  top: clamp(12px, 3vw, 28px);
  right: clamp(12px, 3vw, 28px);
  width: 44px;
  height: 44px;
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

.lb__nav {
  width: 52px;
  height: 52px;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s var(--ease);
}

.lb__nav:hover { opacity: 1; }

.lb__count {
  position: absolute;
  bottom: clamp(12px, 3vw, 28px);
  left: 0;
  right: 0;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: var(--fs-200);
  text-align: center;
}

.lb :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }


/* --- Printed catalogues ---------------------------------------------------
   A catalogue card leads with the cover, so it keeps the portrait crop of the
   invitation cards rather than the portfolio's landscape one. */

.calendar-grid { row-gap: var(--s-7); }

.card--calendar .card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: baseline;
}
