.main-nav a.is-current {
  color: var(--accent);
}

.catalog-head {
  padding: calc(var(--header-h) + 64px) 0 40px;
}

.catalog-intro {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 640px;
}

.factory-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.factory-tabs a {
  white-space: nowrap;
  padding: 10px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: var(--white);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.factory-tabs a:hover { border-color: var(--accent); color: var(--accent); }

.factory-tabs a.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.catalog-body {
  padding: 0 0 120px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.catalog-filter {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.filter-block { display: flex; flex-direction: column; gap: 10px; }

.filter-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-transform: uppercase;
}

.catalog-filter input[type="text"] {
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  font-family: inherit;
}

.catalog-filter input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
}

.filter-item input { accent-color: var(--accent); }

.filter-all {
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 8px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--line);
}

.filter-group {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-olive);
  margin-top: 10px;
}

.filter-group:first-child { margin-top: 0; }

.filter-count {
  font-size: 12px;
  color: var(--ink-soft);
  opacity: .7;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.swatch-card {
  cursor: pointer;
  transition: transform .2s var(--ease);
}

.swatch-card:hover {
  transform: translateY(-2px);
}

.swatch-media {
  aspect-ratio: 4/3;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow .2s var(--ease);
}

.swatch-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.swatch-card:hover .swatch-media {
  box-shadow: 0 12px 28px rgba(33,31,28,0.15);
}

.swatch-info {
  padding: 12px 2px 4px;
}

.swatch-code {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.swatch-name {
  font-size: 15px;
  font-weight: 600;
  margin-top: 2px;
}

.swatch-collection {
  font-size: 12px;
  color: var(--ink-soft);
  opacity: .75;
  margin-top: 4px;
}

.other-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.other-list a {
  display: block;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 400;
  background: var(--white);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.other-list a:hover { border-color: var(--accent); color: var(--accent); }

.other-nav { padding-bottom: 24px; }

.product-section {
  padding: 40px 0 20px;
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.product-section:last-of-type { padding-bottom: 100px; }

.product-title {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 20px;
}

.product-section .catalog-empty { padding: 24px 0 8px; text-align: left; }

@media (max-width: 700px) {
  .other-list { grid-template-columns: 1fr; }
}

.catalog-empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 60px 0;
}

@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-filter { position: static; flex-direction: row; flex-wrap: wrap; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .catalog-grid { grid-template-columns: 1fr; }
}

/* Color pages: 4 columns; V Series / Moire colors take 2 columns at the same height */
.catalog-layout .catalog-grid {
  --cols: 4;
  --gap: 20px;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: var(--gap);
  container-type: inline-size;
}

.catalog-layout .swatch-card.is-wide { grid-column: span 2; }
/* a wide series always starts on a new row */
.catalog-layout .swatch-card.is-wide.series-start { grid-column: 1 / span 2; }

.catalog-layout .swatch-card.is-wide .swatch-media {
  aspect-ratio: auto;
  height: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols) * 0.75);
}

@media (max-width: 700px) {
  .catalog-layout .catalog-grid { --cols: 2; --gap: 14px; }
}

/* ---------- Acrylic Sinks page ---------- */
.model-intro { padding: 8px 0 64px; }

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.intro-title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 300;
  margin-bottom: 14px;
}

.intro-text {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 20px;
}

.check-list li {
  position: relative;
  padding: 9px 0 9px 28px;
  font-size: 14.5px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 13px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.intro-photos {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
}

.intro-photos .life-img { height: 360px; }
.intro-photos .life-img img { height: 100%; object-fit: cover; }

.life-img {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 4px;
}

.life-img img {
  display: block;
  width: 100%;
  transition: transform .5s var(--ease);
}

.life-img:hover img { transform: scale(1.03); }

.model-list { min-width: 0; }
.model-section + .model-section { margin-top: 72px; }

.model-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 300;
  margin-bottom: 18px;
}

.model-heading small { font-size: 13px; color: var(--ink-soft); font-weight: 400; }

.life-row { display: grid; gap: 12px; margin-bottom: 28px; }

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.model-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.model-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.model-photo,
.model-dwg {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--white);
  cursor: zoom-in;
}

.model-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  padding: 14px 18px;
}

.model-grid.cols-2 .model-photo img {
  aspect-ratio: auto;
  padding: 0;
}

.model-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.model-code {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
}

.model-sub { font-size: 12px; color: var(--ink-soft); }

.model-dwg img {
  display: block;
  width: 100%;
  padding: 10px 16px 14px;
}

/* Stainless Sinks page */
.series-note {
  max-width: 680px;
  margin: -6px 0 22px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.model-grid.two { grid-template-columns: repeat(2, 1fr); }

.spec-list {
  padding: 12px 16px 6px;
  font-size: 13px;
}

.spec-list > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.spec-list > div:last-child { border-bottom: 0; }
.spec-list dt { color: var(--ink-soft); }
.spec-list dd { color: var(--ink); }

.life-img.sink-photo { background: var(--white); border: 1px solid var(--line); }
.intro-photos .life-img.sink-photo img { object-fit: contain; padding: 18px; }

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .intro-photos { grid-template-columns: 1fr; }
  .intro-photos .life-img { height: 240px; }
  .model-grid,
  .model-grid.two,
  .model-grid.cols-2 { grid-template-columns: 1fr; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 19, 17, 0.92);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1800px;
  width: 100%;
}

.lightbox-media {
  position: relative;
  width: 100%;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-media img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 2px;
  background: #000;
}

/* Wide panoramas (e.g. V Series) fill the full width of the viewer */
.lightbox-media.is-wide img { width: 100%; }

/* Regular (non-panorama) photos keep the original viewer size */
.lightbox-media:not(.is-wide) { max-width: 900px; }

.lightbox-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 12px;
  color: var(--paper);
  background: rgba(0,0,0,0.5);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.lightbox-info {
  text-align: center;
  margin-top: 24px;
  color: var(--paper);
}

.lightbox-code {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-bright);
}

.lightbox-name {
  font-size: 22px;
  font-weight: 600;
  margin-top: 6px;
}

.lightbox-collection {
  font-size: 13px;
  color: #cfc9bd;
  margin-top: 4px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 32px;
  line-height: 1;
  color: var(--paper);
  z-index: 2;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  line-height: 1;
  color: var(--paper);
  padding: 10px 18px;
  z-index: 2;
}

.lightbox-nav:hover,
.lightbox-close:hover {
  color: var(--accent-bright);
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

@media (max-width: 560px) {
  .lightbox { padding: 16px; }
  .lightbox-nav { font-size: 30px; padding: 8px 10px; }
  .lightbox-name { font-size: 18px; }
}

/* The lightbox sets display:flex, which would otherwise override the hidden attribute */
.lightbox[hidden] { display: none; }

