#catalogue-view {
  --zc-ink: var(--ink, #171b1b);
  --zc-muted: var(--muted, #5c5750);
  --zc-accent: var(--accent, #e1a16b);
  --zc-paper: var(--surface, #f4f2ed);
  --zc-line: var(--line, #d9d5cb);
  --zc-tint: #f7eee2;
  --zc-accent-ink: #8b4c24;
  background: var(--zc-paper);
  color: var(--zc-ink);
}

#catalogue-view[hidden] { display: none; }
#catalogue-view * { box-sizing: border-box; }
#catalogue-view a { color: inherit; }
#catalogue-view h1, #catalogue-view h2, #catalogue-view h3, #catalogue-view p { margin: 0; }
#catalogue-view :where(a, button, input, select):focus-visible { outline: 2px solid var(--zc-accent-ink); outline-offset: 3px; }
#catalogue-view [data-zc-heading]:focus { outline: none; }

.zc-wrap { width: min(100% - 64px, 1240px); margin-inline: auto; }
.zc-header { padding-bottom: 58px; background: var(--zc-ink); color: #fff; }
.zc-crumbs { padding-block: 23px 26px; }
.zc-crumbs ol { display: flex; flex-wrap: wrap; gap: 8px 12px; list-style: none; padding: 0; margin: 0; font-size: .82rem; }
.zc-crumbs li { display: flex; align-items: center; gap: 12px; }
.zc-crumbs li + li::before { content: "/"; opacity: .5; }
.zc-crumbs li a { text-underline-offset: 3px; }
.zc-crumbs li[aria-current] { opacity: .76; }
.zc-header .zc-crumbs { padding-bottom: 39px; }
.zc-header h1, .zc-detail h1 { max-width: 22ch; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.02; letter-spacing: -.055em; }
.zc-detail h1 { font-size: clamp(2.2rem, 4vw, 3.55rem); }
.zc-label { font-size: .72rem; line-height: 1.3; text-transform: uppercase; font-weight: 760; letter-spacing: .105em; }
#catalogue-view .zc-kicker { margin-bottom: 15px; }
.zc-header .zc-kicker { color: var(--zc-accent); }
#catalogue-view .zc-intro { margin-top: 17px; max-width: 59ch; font-size: 1rem; line-height: 1.65; }
.zc-header .zc-intro { color: #dfd9cf; }
.zc-detail .zc-intro { color: var(--zc-muted); }

.zc-browse, .zc-model, .zc-detail { padding-bottom: 72px; }
.zc-browse, .zc-model { padding-top: 35px; }
.zc-filters { display: grid; grid-template-columns: minmax(10rem, .5fr) minmax(15rem, 1fr) auto; align-items: end; gap: 14px; padding: 17px; background: #fff; border: 1px solid var(--zc-line); }
.zc-filters label { display: block; margin-bottom: 8px; font-weight: 700; font-size: .87rem; }
.zc-filters :is(input, select) { display: block; width: 100%; min-height: 47px; border: 1px solid #b6bdb2; border-radius: 0; padding: 8px 12px; background: #fff; color: var(--zc-ink); font: inherit; font-size: .94rem; }
.zc-button { display: inline-flex; min-height: 47px; align-items: center; justify-content: center; gap: 14px; padding: 10px 17px; border: 1px solid var(--zc-ink); background: var(--zc-ink); color: #fff; text-decoration: none; font: inherit; font-weight: 730; font-size: .89rem; line-height: 1.3; text-align: center; cursor: pointer; }
.zc-button:hover { background: #403832; }
.zc-outline { background: transparent; color: var(--zc-ink); }
.zc-outline:hover { background: var(--zc-tint); }
.zc-button span { color: var(--zc-accent); font-size: 1rem; }
.zc-results-head { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-block: 40px 16px; }
.zc-results-head h2, .zc-group h2, .zc-fitment h2, .zc-empty h2 { font-size: clamp(1.45rem, 2.8vw, 2.22rem); letter-spacing: -.035em; line-height: 1.08; }
.zc-results-head p { color: var(--zc-muted); font-size: .9rem; }
.zc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.zc-card { display: grid; background: #fff; border: 1px solid var(--zc-line); }
.zc-card > a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.zc-card > a:hover .zc-arrow { color: var(--zc-ink); background: var(--zc-accent); }
.zc-card > a:hover :is(img, canvas) { transform: scale(1.035); }
.zc-photo { position: relative; display: grid; align-items: center; justify-items: center; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.zc-photo :is(img, canvas) { display: block; position: absolute; width: 100%; height: 100%; padding: 9%; object-fit: contain; transition: transform .2s ease; }
.zc-photo-placeholder { display: none; }
.zc-photo-empty { background: repeating-linear-gradient(135deg, #f1eee8 0, #f1eee8 18px, #ebe7df 18px, #ebe7df 19px); color: var(--zc-muted); }
.zc-photo-empty :is(img, canvas) { display: none; }
.zc-photo-empty .zc-photo-placeholder { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: .83rem; }
.zc-photo-placeholder svg { width: 56px; max-width: 40vw; }
.zc-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; border-top: 1px solid var(--zc-line); }
.zc-card-body .zc-label { color: var(--zc-muted); }
.zc-card h3 { font-size: clamp(1.08rem, 1.6vw, 1.32rem); letter-spacing: -.027em; line-height: 1.2; }
.zc-card-specs { color: var(--zc-muted); font-size: .86rem; line-height: 1.4; }
.zc-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 5px; width: 100%; margin-top: auto; padding-top: 5px; color: var(--zc-muted); font-size: .8rem; }
.zc-arrow { display: grid; width: 32px; height: 32px; place-items: center; flex: none; color: var(--zc-ink); border: 1px solid var(--zc-line); border-radius: 50%; font-size: 1rem; line-height: 1; }
.zc-empty { padding: clamp(24px, 5vw, 60px); border: 1px solid var(--zc-line); background: #fff; text-align: center; }
.zc-empty p { padding-block: 12px 20px; color: var(--zc-muted); }
.zc-missing { min-height: 55vh; padding-block: 55px; }

.zc-group { margin-block: 38px; }
.zc-group-head { margin-bottom: 16px; }
.zc-group-head p, .zc-fitment p { padding-top: 8px; color: var(--zc-muted); line-height: 1.55; }
.zc-fitment { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: clamp(19px, 3vw, 35px); border: 1px solid var(--zc-line); background: #fff; }
.zc-fitment .zc-button { flex: none; }
#catalogue-view .zc-notice { margin-block: 14px; border-left: 3px solid var(--zc-accent-ink); padding: 10px 14px; color: var(--zc-muted); background: var(--zc-tint); font-size: .91rem; line-height: 1.55; }
.zc-detail-main { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 70px); padding-block: 10px 18px; }
.zc-detail-image .zc-photo { aspect-ratio: 1.1; border: 1px solid var(--zc-line); }
.zc-detail-image :is(img, canvas) { padding: 7%; }
#catalogue-view .zc-image-caption { margin-top: 8px; color: var(--zc-muted); font-size: .82rem; }
.zc-full-image { display: inline-block; min-height: 40px; margin-top: 5px; padding: 0; border: 0; background: transparent; color: inherit; font-size: .88rem; font-weight: 730; text-decoration: underline; text-underline-offset: 4px; }
.zc-image-viewer { width: min(96vw, 1280px); max-height: 90vh; padding: 0; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; }
.zc-image-viewer::backdrop { background: rgb(17 25 23 / .75); }
.zc-image-viewer form { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.zc-image-viewer button { min-height: 42px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: inherit; }
.zc-image-scroll { overflow: auto; max-height: calc(90vh - 64px); padding: 12px; }
.zc-image-scroll :is(img, canvas) { max-width: none; height: auto; margin-inline: auto; }
.zc-detail-content { padding-top: clamp(8px, 2vw, 22px); }
.zc-detail-content .zc-kicker { color: var(--zc-muted); }
.zc-facts { padding: 0; margin: 18px 0; border-top: 1px solid var(--zc-line); }
.zc-facts div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--zc-line); font-size: .9rem; }
.zc-facts dt { color: var(--zc-muted); }
.zc-facts dd { margin: 0; font-weight: 720; }
.zc-features { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 16px 0 0; padding: 0; }
.zc-features li { padding: 7px 10px; border: 1px solid var(--zc-line); background: var(--zc-tint); font-weight: 720; font-size: .86rem; }
.zc-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.zc-comparison figure { margin: 0; border: 1px solid var(--zc-line); background: #fff; }
.zc-comparison .zc-photo { aspect-ratio: 1.26; }
.zc-comparison :is(img, canvas) { padding: 0; object-fit: cover; }
.zc-comparison figcaption { padding: 13px 15px; font-weight: 720; font-size: .85rem; }
.zc-detail-crop .zc-photo { width: min(100%, 900px); aspect-ratio: 2; border: 1px solid var(--zc-line); }
.zc-detail-crop :is(img, canvas) { padding: 0; }
.zc-back { padding-top: 10px; font-size: .9rem; font-weight: 730; }

.zc-variant-section { margin-block: 5px 50px; }
#catalogue-view .zc-variant-section .zc-label,
#catalogue-view .zc-case-hardware .zc-label { margin-bottom: 8px; padding: 0; color: var(--zc-accent-ink); }
.zc-variant-section h2, .zc-case-panel h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
  letter-spacing: -.04em;
  line-height: 1.08;
}
.zc-variant-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--zc-ink); }
.zc-variant {
  display: grid;
  grid-template-columns: minmax(6rem, .65fr) minmax(10rem, 1.7fr) minmax(13rem, 1.6fr) auto;
  align-items: center;
  gap: 16px;
  padding: 13px clamp(12px, 2vw, 24px);
  border-bottom: 1px solid var(--zc-line);
  background: #fbfaf7;
  text-decoration: none;
}
.zc-variant:hover { background: var(--zc-tint); }
.zc-variant-ref span, .zc-variant-ref small { display: block; }
.zc-variant-ref span { color: var(--zc-accent-ink); font-size: .83rem; font-weight: 740; letter-spacing: .05em; }
.zc-variant-ref small { margin-top: 3px; color: var(--zc-muted); font-size: .75rem; }
.zc-variant-cue { font-size: .92rem; line-height: 1.4; }
.zc-variant-facts { display: grid; grid-template-columns: 1fr .75fr 1fr; gap: 8px; margin: 0; }
.zc-variant-facts dt { color: var(--zc-muted); font-size: .72rem; }
.zc-variant-facts dd { margin: 3px 0 0; font-size: .85rem; font-weight: 700; }
.zc-variant-arrow { color: var(--zc-accent-ink); font-weight: 800; }
#catalogue-view .zc-visual-cue { margin-top: 13px; color: var(--zc-muted); font-size: .9rem; line-height: 1.5; }
.zc-visual-cue strong { display: block; color: var(--zc-ink); }
.zc-detail-main--case { grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr); align-items: start; }
.zc-detail-main--case .zc-detail-content { padding-top: 0; }
.zc-case-panel { padding: clamp(13px, 2vw, 24px); border: 1px solid var(--zc-line); background: #fbfaf7; }
.zc-case-heading { margin-bottom: 16px; }
#catalogue-view .zc-case-heading .zc-label { margin-bottom: 7px; color: var(--zc-accent-ink); }
.zc-case-panel .zc-comparison { gap: 9px; }
.zc-case-panel .zc-comparison .zc-photo { aspect-ratio: 1.13; }
.zc-case-panel .zc-comparison :is(img, canvas) { object-fit: contain; }
.zc-case-panel .zc-comparison figcaption { display: flex; align-items: center; gap: 8px; padding: 8px 10px; line-height: 1.25; }
.zc-comparison figcaption span { color: var(--zc-accent-ink); font-size: .75rem; }
#catalogue-view .zc-case-source { margin-top: 12px; color: var(--zc-muted); font-size: .8rem; line-height: 1.4; }
.zc-case-verification { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 22px; border: 1px solid var(--zc-line); border-top: 2px solid var(--zc-ink); background: var(--zc-line); }
.zc-case-verification > div { padding: clamp(14px, 2.5vw, 29px); background: #fbfaf7; }
#catalogue-view .zc-case-verification h2 { margin-bottom: 7px; color: var(--zc-accent-ink); font-size: 1.02rem; }
#catalogue-view .zc-case-verification p { color: var(--zc-muted); font-size: .92rem; line-height: 1.55; }
.zc-case-images { display: grid; gap: 16px; max-width: 720px; }
.zc-case-images--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
.zc-case-images .zc-photo { aspect-ratio: 1.65; }

@media (max-width: 950px) {
  .zc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .zc-wrap { width: calc(100% - 32px); }
  .zc-header { padding-bottom: 38px; }
  .zc-header .zc-crumbs { padding-bottom: 27px; }
  .zc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .zc-filters { grid-template-columns: 1fr; gap: 11px; padding: 13px; }
  .zc-filters .zc-button { justify-self: start; }
  .zc-card-body { padding: 11px; }
  .zc-card-body .zc-label { font-size: .65rem; }
  .zc-detail-main { grid-template-columns: 1fr; }
  .zc-detail-main--case .zc-detail-content { grid-row: 1; }
  .zc-detail-image .zc-photo { aspect-ratio: 4 / 3; }
  .zc-fitment { align-items: flex-start; flex-direction: column; }
  .zc-variant { grid-template-columns: 1fr auto; gap: 6px 10px; }
  .zc-variant-ref { grid-row: 1; }
  .zc-variant-cue { grid-row: 2; }
  .zc-variant-facts { grid-row: 3; }
  .zc-variant-arrow { grid-area: 1 / 2 / 4 / 3; }
  .zc-case-verification, .zc-case-images--pair { grid-template-columns: 1fr; }
}

@media (max-width: 350px) {
  .zc-grid, .zc-comparison { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .zc-photo img { transition: none; }
}
