/* Novalis catalogue: collections index, category product lists and product pages.
   Same language as the home "Our Collections" slabs: navy, gold, Luxia headings, Sohne text. */
.nv-catalog-page {
  --nv-navy: #263450;
  --nv-gold: #ba8d40;
  --nv-ink: rgba(38, 52, 80, 0.72);
  --nv-line: rgba(38, 52, 80, 0.14);
  --nv-stone: #f4f5f6;
  --nv-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --nv-gutter: clamp(16px, 4vw, 72px);
  background: #fff;
}

.nv-catalog-page .main-wrapper {
  color: var(--nv-navy);
  font-family: Sohne, Arial, sans-serif;
}

/* Shared pieces */
.nv-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.25rem;
  font-family: Sohne, Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--nv-navy);
}

.nv-eyebrow::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nv-gold);
}

.nv-eyebrow a {
  color: inherit;
  text-decoration: none;
}

.nv-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
}

.nv-crumbs a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nv-crumbs a:hover,
.nv-crumbs a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--nv-gold);
  text-underline-offset: 0.3em;
}

.nv-crumbs [aria-current] {
  color: #fff;
}

.nv-crumbs--dark {
  color: var(--nv-ink);
}

.nv-crumbs--dark [aria-current] {
  color: var(--nv-navy);
}

.nv-catalog-page h1 em,
.nv-catalog-page h2 em {
  font-family: 'Luxia Display', Georgia, serif;
  font-style: normal;
  color: var(--nv-gold);
}

.nv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0 1.75rem;
  font-family: Sohne, Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.nv-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.nv-btn--gold {
  background: var(--nv-navy);
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--nv-gold);
}

.nv-btn--gold:hover,
.nv-btn--gold:focus-visible {
  background: var(--nv-navy-raised);
  color: #fff;
}

.nv-btn--line {
  border-color: var(--nv-line);
  color: var(--nv-navy);
}

.nv-btn--line:hover,
.nv-btn--line:focus-visible {
  border-color: var(--nv-gold);
  color: var(--nv-navy);
}

.nv-link {
  display: inline-flex;
  gap: 0.6rem;
  padding-bottom: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nv-navy);
  text-decoration: none;
  border-bottom: 1px solid var(--nv-gold);
  transition: color 0.3s ease;
}

.nv-link:hover,
.nv-link:focus-visible {
  color: var(--nv-navy);
  border-bottom-color: var(--nv-navy);
}

.nv-catalog-page a:focus-visible,
.nv-catalog-page button:focus-visible {
  outline: 2px solid var(--nv-gold);
  outline-offset: 3px;
}

.nv-chip {
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--nv-line);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--nv-navy);
  white-space: nowrap;
}

/* Placeholder photos show a detail of a shared image (see 'crop' in includes/catalog.php). */
.nv-crop {
  object-fit: cover;
  object-position: var(--nv-x, 50%) var(--nv-y, 50%);
  transform-origin: var(--nv-x, 50%) var(--nv-y, 50%);
  transform: scale(var(--nv-zoom, 1));
}

/* Collections index */
.nv-index {
  padding: clamp(9rem, 14vw, 12rem) var(--nv-gutter) clamp(5rem, 9vw, 8rem);
  max-width: calc(var(--nv-col, 1680px) + 2 * var(--nv-gutter));
  margin: 0 auto;
}

.nv-index__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.nv-index__title,
.nv-info__title,
.nv-related__title,
.nv-help__title {
  margin: 0;
  font-family: Luxia, Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
}

.nv-index__title {
  font-size: clamp(2.5rem, 4.5vw, 4.25rem);
  color: var(--nv-navy);
}

.nv-index__intro {
  max-width: 24rem;
  margin: 0;
  line-height: 1.7;
  color: var(--nv-ink);
}

.nv-index__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.nv-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}

.nv-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--nv-ease);
}

.nv-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21, 28, 44, 0.85) 0%, rgba(21, 28, 44, 0.2) 50%, rgba(21, 28, 44, 0.1) 100%);
}

.nv-tile::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  height: 3px;
  background: var(--nv-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--nv-ease);
}

.nv-tile:hover img,
.nv-tile:focus-visible img {
  transform: scale(1.06);
}

.nv-tile:hover::before,
.nv-tile:focus-visible::before {
  transform: scaleX(1);
}

.nv-tile__num {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.8);
}

.nv-tile__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: clamp(1.25rem, 2vw, 2rem);
}

.nv-tile__name {
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.nv-tile__title {
  font-family: Luxia, Georgia, serif;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.15;
}

.nv-tile__meta {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

/* Page hero: the shared navy hero from includes/page-hero.php (same as the Collections page),
   clearing the hanging logo plaque, with breadcrumbs above the title on sub-pages. */
.nv-catalog-page .nv-page-hero {
  padding-top: clamp(8.5rem, 12vw, 11.5rem);
}

/* Simple content section under the page hero (Export, Utilities). */
.nv-page-body {
  max-width: calc(var(--nv-col, 1680px) + 2 * var(--nv-gutter));
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) var(--nv-gutter);
}

.nv-page-body__text {
  max-width: 36rem;
  margin: 0 0 2rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--nv-ink);
}

/* Product list and filters */
.nv-list {
  max-width: calc(var(--nv-col, 1680px) + 2 * var(--nv-gutter));
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) var(--nv-gutter) clamp(5rem, 9vw, 8rem);
}

.nv-list__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--nv-line);
}

.nv-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
}

.nv-filters__head,
.nv-list__toggle {
  display: none;
}

.nv-filters__group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.nv-filters__label,
.nv-info__label {
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--nv-muted);
}

.nv-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.nv-filter {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--nv-line);
  background: #fff;
  font-family: Sohne, Arial, sans-serif;
  font-size: 0.8125rem;
  color: var(--nv-navy);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.nv-filter:hover {
  border-color: var(--nv-gold);
}

.nv-filter[aria-pressed="true"],
.nv-filter[aria-checked="true"] {
  border-color: var(--nv-navy);
  background: var(--nv-navy);
  color: #fff;
}

.nv-list__status {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.8125rem;
  color: var(--nv-ink);
}

.nv-list__clear {
  color: var(--nv-navy);
  text-decoration: underline;
  text-decoration-color: var(--nv-gold);
  text-underline-offset: 0.3em;
}

.nv-list__clear[hidden],
.nv-list__empty[hidden],
.nv-card[hidden] {
  display: none;
}

.nv-list__empty {
  padding: 4rem 0;
  text-align: center;
  color: var(--nv-ink);
}

.nv-list__empty a {
  color: var(--nv-navy);
}

/* Product grid and cards */
.nv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 3vw, 3rem) clamp(0.75rem, 1.5vw, 1.5rem);
}

.nv-grid--row {
  grid-template-columns: repeat(4, 1fr);
}

.nv-card {
  display: flex;
  flex-direction: column;
  color: var(--nv-navy);
  text-decoration: none;
}

.nv-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--nv-stone);
}

.nv-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 1.2s var(--nv-ease), opacity 0.6s ease;
}

.nv-card__img--room {
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
}

.nv-card:hover .nv-card__img--room,
.nv-card:focus-visible .nv-card__img--room {
  opacity: 1;
  transform: scale(1);
}

/* Gold edge grows along the bottom of the photo, like the open home slab. */
.nv-card__media::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--nv-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--nv-ease);
}

.nv-card:hover .nv-card__media::after,
.nv-card:focus-visible .nv-card__media::after {
  transform: scaleX(1);
}

/* Product code sits in the meta line under the photo, never on the picture itself. */
.nv-card__code {
  flex: none;
  letter-spacing: 0.12em;
  color: var(--nv-muted);
}

.nv-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 1.1rem;
}

.nv-card__meta {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nv-muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.nv-card__name {
  font-family: Luxia, Georgia, serif;
  font-size: clamp(1.25rem, 1.6vw, 1.6rem);
  line-height: 1.2;
}

.nv-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

/* Cards rise in a stagger when the grid scrolls into view (class set by novalis-catalog.js). */
.nv-reveal .nv-card,
.nv-reveal .nv-tile {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.8s ease calc(var(--i, 0) * 0.07s), transform 0.9s var(--nv-ease) calc(var(--i, 0) * 0.07s);
}

.nv-reveal.is-inview .nv-card,
.nv-reveal.is-inview .nv-tile {
  opacity: 1;
  transform: none;
}

/* Help strip */
.nv-help {
  background: var(--nv-navy);
  color: #fff;
  padding: clamp(3.5rem, 7vw, 6rem) var(--nv-gutter);
}

.nv-help__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  max-width: var(--nv-col, 1680px);
  margin: 0 auto;
}

.nv-help__title {
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  color: #fff;
}

.nv-help__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nv-help .nv-btn--line {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.nv-help .nv-eyebrow {
  color: #fff;
}

.nv-help .nv-btn--gold {
  background: #fff;
  color: var(--nv-navy);
}

.nv-help .nv-btn--gold:hover,
.nv-help .nv-btn--gold:focus-visible {
  background: rgba(255, 255, 255, 0.9);
  color: var(--nv-navy);
}

/* Product page */
.nv-product {
  max-width: calc(var(--nv-col, 1680px) + 2 * var(--nv-gutter));
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--nv-gutter) clamp(4rem, 7vw, 6rem);
}

.nv-product__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
}

.nv-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nv-gallery__main {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--nv-stone);
  cursor: zoom-in;
  touch-action: pan-y;
}

.nv-gallery__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.nv-gallery__slide.is-active {
  opacity: 1;
}

.nv-gallery__slide img,
.nv-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nv-gallery__zoom {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}

.nv-gallery__zoom svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: var(--nv-navy);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.nv-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.nv-gallery__thumb {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--nv-stone);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.nv-gallery__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 2px var(--nv-gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nv-gallery__thumb:hover,
.nv-gallery__thumb[aria-pressed="true"] {
  opacity: 1;
}

.nv-gallery__thumb[aria-pressed="true"]::after {
  opacity: 1;
}

.nv-info {
  position: sticky;
  top: 7rem;
}

.nv-info__title {
  font-size: clamp(2.5rem, 4.2vw, 4rem);
  color: var(--nv-navy);
}

.nv-info__code {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nv-ink);
}

.nv-info__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin: 2rem 0 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--nv-line);
  border-bottom: 1px solid var(--nv-line);
}

.nv-info__facts dt {
  margin-bottom: 0.3rem;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nv-muted);
}

.nv-info__facts dd {
  margin: 0;
  font-size: 0.9375rem;
}

.nv-info__options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.nv-info__desc {
  margin: 1.75rem 0 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--nv-ink);
}

.nv-info__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.nv-btn--wa {
  flex: 1 1 16rem;
}

.nv-specs {
  width: 100%;
  margin-top: 2.5rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.nv-specs caption {
  margin-bottom: 0.75rem;
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-align: left;
  text-transform: uppercase;
  color: var(--nv-muted);
}

.nv-specs th,
.nv-specs td {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--nv-line);
  text-align: left;
  vertical-align: top;
}

.nv-specs th {
  width: 42%;
  font-weight: 400;
  color: var(--nv-ink);
}

/* Related rows */
.nv-related {
  max-width: calc(var(--nv-col, 1680px) + 2 * var(--nv-gutter));
  margin: 0 auto;
  padding: 0 var(--nv-gutter) clamp(4rem, 7vw, 6rem);
}

.nv-related__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--nv-line);
}

.nv-related__title {
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  color: var(--nv-navy);
}

.nv-wa-sticky {
  display: none;
}

/* Lightbox (built by novalis-catalog.js) */
.nv-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 4rem 1rem;
  background: rgba(21, 28, 44, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.nv-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease;
}

.nv-lightbox img {
  max-width: min(100%, 1100px);
  max-height: 100%;
  object-fit: contain;
}

.nv-lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.nv-lightbox__close { top: 1.25rem; right: 1.25rem; }
.nv-lightbox__prev { left: 1.25rem; top: 50%; }
.nv-lightbox__next { right: 1.25rem; top: 50%; }

/* Tablet */
@media (max-width: 991px) {
  .nv-index__grid,
  .nv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nv-grid--row {
    grid-template-columns: repeat(2, 1fr);
  }
  .nv-product__grid {
    grid-template-columns: 1fr;
  }
  .nv-info {
    position: static;
  }
}

/* Phones: filters move into a bottom sheet; WhatsApp stays in reach. */
@media (max-width: 767px) {
  .nv-index__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .nv-index__grid {
    grid-template-columns: 1fr;
  }
  .nv-tile {
    aspect-ratio: 4 / 3;
  }
  .nv-grid,
  .nv-grid--row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 0.6rem;
  }
  .nv-card__name {
    font-size: 1.05rem;
  }
  .nv-card__chips .nv-chip:nth-child(n + 3) {
    display: none;
  }
  .nv-list__bar {
    align-items: center;
    flex-wrap: nowrap;
  }
  .nv-list__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    border: 1px solid var(--nv-navy);
    background: #fff;
    font-family: Sohne, Arial, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--nv-navy);
  }
  .nv-list__toggle-count {
    display: grid;
    place-items: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--nv-gold);
    color: #fff;
    font-size: 0.6875rem;
    letter-spacing: 0;
  }
  .nv-list__toggle-count[hidden] {
    display: none;
  }
  .nv-filters {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1500;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 1.5rem;
    max-height: 80vh;
    padding: 1.25rem 16px 2rem;
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 -1rem 3rem rgba(21, 28, 44, 0.25);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.45s var(--nv-ease), visibility 0s linear 0.45s;
  }
  .nv-filters.is-open {
    transform: none;
    visibility: visible;
    transition: transform 0.45s var(--nv-ease);
  }
  .nv-filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }
  .nv-filters__close {
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    background: transparent;
    font-size: 1.75rem;
    color: var(--nv-navy);
  }
  .nv-info__actions .nv-btn--wa {
    flex-basis: 100%;
  }
  .nv-wa-sticky {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    background: var(--nv-gold);
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 0.75rem 2rem rgba(21, 28, 44, 0.3);
    transform: translateY(calc(100% + 24px));
    transition: transform 0.4s var(--nv-ease);
  }
  .nv-wa-sticky.is-shown {
    transform: none;
  }
  .nv-help__actions,
  .nv-help__actions .nv-btn {
    width: 100%;
  }
  .nv-lightbox__prev,
  .nv-lightbox__next {
    top: auto !important;
    bottom: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nv-catalog-page *,
  .nv-catalog-page *::before,
  .nv-catalog-page *::after {
    animation: none !important;
    transition: none !important;
  }
  .nv-reveal .nv-card,
  .nv-reveal .nv-tile {
    opacity: 1;
    transform: none;
  }
}

/* Catalogue cards (collection pages): no photo. A stone card with a large faint gold initial, a PDF mark,
   the name, the sizes it covers, and Open / Download (or "PDF coming soon"). */
.nv-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nv-grid--catalogues {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: clamp(1.25rem, 2vw, 2rem);
}

.nv-cat {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 17rem;
  padding: 1.6rem 1.5rem 1.5rem;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--nv-stone);
  color: var(--nv-navy);
  transition: box-shadow 0.4s var(--nv-ease), transform 0.4s var(--nv-ease);
}

.nv-cat:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.75rem 2.25rem rgba(21, 28, 44, 0.12);
}

.nv-cat[hidden] {
  display: none;
}

.nv-cat__mono {
  position: absolute;
  top: -1.6rem;
  right: -0.4rem;
  font-family: 'Luxia Display', Georgia, serif;
  font-size: 10rem;
  line-height: 1;
  color: rgba(186, 141, 64, 0.16);
  pointer-events: none;
  user-select: none;
  transition: color 0.4s ease;
}

.nv-cat:hover .nv-cat__mono {
  color: rgba(186, 141, 64, 0.26);
}

.nv-cat__icon {
  position: relative;
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: var(--nv-gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nv-cat__name {
  position: relative;
  margin: 1rem 0 0.6rem;
  font-family: Luxia, Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--nv-navy);
}

.nv-cat__sizes {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: Sohne, Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--nv-ink);
}

.nv-cat__actions {
  position: relative;
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.nv-cat__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border-radius: 0.25rem;
  font-family: Sohne, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nv-cat__btn svg {
  flex: none;
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  transform: rotate(90deg);
}

.nv-cat__btn--open {
  background: #fff;
  color: var(--nv-navy);
}

.nv-cat__btn--download {
  background: var(--nv-gold);
  color: #fff;
}

.nv-cat__btn--open:hover,
.nv-cat__btn--open:focus-visible {
  background: var(--nv-navy);
  color: #fff;
}

.nv-cat__btn--download:hover,
.nv-cat__btn--download:focus-visible {
  background: var(--nv-navy);
  color: #fff;
}

.nv-cat__btn--soon {
  border: 1px dashed var(--nv-line);
  color: var(--nv-ink);
  cursor: default;
}

/* Catalogue form popup (category.php): asked once before the first catalogue opens or downloads. */
.nv-lead {
  width: min(100% - 2rem, 34rem);
  max-height: calc(100% - 2rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-top: 3px solid var(--nv-gold);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--nv-navy);
  box-shadow: 0 1.5rem 4rem rgba(21, 28, 44, 0.3);
}

.nv-lead::backdrop {
  background: rgba(21, 28, 44, 0.6);
}

/* Rendered open without JavaScript (not as a modal): keep it in view above the page. */
.nv-lead[open]:not(:modal) {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.nv-lead__form {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.nv-lead__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--nv-navy);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.nv-lead__close:hover,
.nv-lead__close:focus-visible {
  background: var(--nv-stone);
}

.nv-lead .nv-eyebrow {
  margin-bottom: 0.9rem;
}

.nv-lead__title {
  margin: 0 2rem 0.75rem 0;
  font-family: Luxia, Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--nv-navy);
}

.nv-lead__title em {
  font-style: normal;
  color: var(--nv-gold);
}

.nv-lead__intro {
  margin: 0 0 1.5rem;
  font-family: Sohne, Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--nv-ink);
}

.nv-lead__error {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  background: #fbeceb;
  color: #9b2c25;
  font-family: Sohne, Arial, sans-serif;
  font-size: 0.875rem;
}

.nv-lead__error[hidden] {
  display: none;
}

.nv-lead__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.nv-lead__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.nv-lead__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: Sohne, Arial, sans-serif;
}

.nv-lead__field span {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nv-ink);
}

.nv-lead__field input {
  width: 100%;
  min-height: 3rem;
  padding: 0 0.9rem;
  border: 1px solid var(--nv-line);
  border-radius: 0.25rem;
  background: #fff;
  color: var(--nv-navy);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nv-lead__field input:focus {
  outline: none;
  border-color: var(--nv-gold);
  box-shadow: 0 0 0 3px rgba(186, 141, 64, 0.2);
}

.nv-lead__field.is-invalid input {
  border-color: #b4372e;
}

.nv-lead__msg {
  min-height: 1rem;
  font-size: 0.75rem;
  color: #b4372e;
}

.nv-lead__submit {
  width: 100%;
  margin-top: 1.25rem;
  border: 0;
  cursor: pointer;
}

.nv-lead__submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

.nv-lead__note {
  margin: 0.9rem 0 0;
  font-family: Sohne, Arial, sans-serif;
  font-size: 0.75rem;
  color: var(--nv-ink);
  text-align: center;
}

@media (max-width: 520px) {
  .nv-lead__grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.nv-reveal .nv-cat {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.8s ease calc(var(--i, 0) * 0.07s), transform 0.9s var(--nv-ease) calc(var(--i, 0) * 0.07s), box-shadow 0.4s var(--nv-ease);
}

.nv-reveal.is-inview .nv-cat {
  opacity: 1;
  transform: none;
}

.nv-reveal.is-inview .nv-cat:hover {
  transform: translateY(-0.25rem);
}

@media (max-width: 767px) {
  .nv-grid--catalogues {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nv-reveal .nv-cat {
    opacity: 1;
    transform: none;
  }
}
