body[data-catalog] {
  background: #fbfdf8;
}

body[data-catalog] section[id] {
  scroll-margin-top: 96px;
}

.catalog-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
  min-height: 650px;
  padding-top: 76px;
  overflow: hidden;
  background: var(--green-soft);
  border-bottom: 1px solid var(--line);
}

.catalog-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(60px, 7vw, 110px) clamp(24px, 6vw, 88px);
}

.catalog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.catalog-breadcrumb a {
  text-decoration: none;
}

.catalog-breadcrumb a:hover,
.catalog-breadcrumb a:focus-visible {
  color: var(--green-deep);
}

.catalog-hero h1 {
  max-width: 690px;
  margin-bottom: 25px;
  font-size: clamp(3.1rem, 6vw, 6rem);
  line-height: 0.92;
}

.catalog-hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.catalog-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.catalog-hero-points span {
  padding: 9px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid #c9e4be;
  border-radius: 3px;
  font-size: 0.76rem;
  font-weight: 800;
}

.catalog-hero-media {
  position: relative;
  min-height: 500px;
  overflow: hidden;
}

.catalog-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--green-soft), transparent 22%);
  content: "";
}

[data-catalog="pet"] .catalog-hero-media img {
  object-position: center;
}

[data-catalog="paper"] .catalog-hero-media img {
  object-position: center 48%;
}

[data-catalog="lids"] .catalog-hero-media img {
  object-position: center 35%;
}

.catalog-switcher-wrap {
  position: sticky;
  top: 76px;
  z-index: 12;
  background: rgba(251, 253, 248, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.catalog-switcher {
  display: flex;
  gap: 6px;
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  padding: 14px clamp(20px, 5vw, 76px);
  overflow-x: auto;
}

.catalog-switcher a {
  flex: 0 0 auto;
  padding: 10px 15px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.catalog-switcher a:hover,
.catalog-switcher a:focus-visible {
  color: var(--ink);
  border-color: var(--line);
}

.catalog-switcher a[aria-current="page"] {
  color: var(--ink);
  background: var(--green-soft);
  border-color: #c8e8be;
}

.catalog-main {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 108px) clamp(20px, 5vw, 76px) clamp(80px, 10vw, 130px);
}

.catalog-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.catalog-heading-row h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.3rem, 4.5vw, 4.3rem);
  line-height: 0.98;
}

.catalog-heading-row > p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-button {
  padding: 9px 13px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.filter-button:hover,
.filter-button:focus-visible {
  border-color: var(--green-deep);
}

.filter-button.is-active {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.result-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 800;
}

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

.catalog-card {
  min-width: 0;
}

.catalog-card[hidden] {
  display: none;
}

.catalog-card-button {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.catalog-card-button:hover,
.catalog-card-button:focus-visible {
  border-color: #94c486;
  box-shadow: 0 16px 34px rgba(25, 61, 28, 0.1);
  outline: none;
  transform: translateY(-2px);
}

.catalog-art {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #070a08;
  border-bottom: 1px solid var(--line);
}

.catalog-source-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-page-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  padding: 7px 9px;
  color: #d8f7d0;
  background: rgba(11, 28, 17, 0.9);
  border: 1px solid rgba(189, 233, 174, 0.38);
  border-radius: 3px;
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.catalog-family {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  padding: 7px 9px;
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #cfe5c8;
  border-radius: 3px;
  font-size: 0.63rem;
  font-weight: 900;
  text-transform: uppercase;
}

.catalog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 21px 24px;
}

.catalog-capacity {
  margin-bottom: 7px;
  color: var(--green-deep);
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  font-weight: 900;
  line-height: 1;
}

.catalog-name {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 800;
}

.catalog-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.catalog-specs > span {
  min-width: 0;
}

.catalog-specs small,
.catalog-specs strong {
  display: block;
}

.catalog-specs small {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.catalog-specs strong {
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.catalog-action {
  margin-top: auto;
  padding-top: 22px;
  color: var(--green-deep);
  font-size: 0.76rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.accessory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.accessory-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 1.1 / 1;
  object-fit: cover;
  background: var(--green-pale);
}

.accessory-copy {
  position: relative;
  padding: 22px;
}

.accessory-index {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  color: var(--green-deep);
  background: var(--green-soft);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
}

.accessory-copy h3 {
  margin: 0 0 7px;
  font-size: 1.25rem;
}

.accessory-copy p {
  min-height: 48px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.catalog-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  margin-top: 48px;
  padding: 28px;
  background: var(--green-soft);
  border-left: 4px solid var(--green);
}

.catalog-note strong {
  display: block;
  margin-bottom: 5px;
}

.catalog-note p {
  max-width: 820px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.catalog-note a {
  white-space: nowrap;
}

.product-modal {
  width: min(720px, calc(100% - 32px));
  max-height: min(86vh, 820px);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 30px 100px rgba(16, 30, 18, 0.34);
}

.product-modal::backdrop {
  background: rgba(15, 25, 16, 0.62);
  backdrop-filter: blur(4px);
}

.modal-close {
  position: sticky;
  top: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 12px 12px -50px auto;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}

.modal-content {
  padding: 42px clamp(24px, 5vw, 48px) 38px;
}

.modal-family {
  margin: 0 0 8px;
  color: var(--green-deep);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.modal-heading h2 {
  margin: 0 0 6px;
  font-size: clamp(2.3rem, 6vw, 4.5rem);
  line-height: 0.94;
}

.modal-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.modal-source-image {
  display: block;
  width: 100%;
  margin: 26px 0 0;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #070a08;
  border: 1px solid var(--line);
}

.modal-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}

.modal-spec-grid > div {
  min-height: 82px;
  padding: 16px;
  background: var(--paper);
}

.modal-spec-grid span,
.modal-spec-grid strong {
  display: block;
}

.modal-spec-grid span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
}

.modal-spec-grid strong {
  font-size: 0.92rem;
}

.modal-note {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-actions .button {
  flex: 1 1 210px;
}

.modal-footnote {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

@media (max-width: 980px) {
  .catalog-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .catalog-hero-copy {
    min-height: 520px;
    padding-bottom: 62px;
  }

  .catalog-hero-media {
    min-height: 430px;
  }

  .catalog-hero-media::after {
    background: linear-gradient(180deg, var(--green-soft), transparent 18%);
  }

  .catalog-switcher-wrap {
    top: 68px;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accessory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-heading-row {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .catalog-hero {
    padding-top: 68px;
  }

  .catalog-hero-copy {
    min-height: auto;
    padding: 42px 20px 50px;
  }

  .catalog-breadcrumb {
    margin-bottom: 24px;
  }

  .catalog-hero h1 {
    font-size: clamp(2.9rem, 14vw, 4.4rem);
  }

  .catalog-hero-media {
    min-height: 330px;
  }

  .catalog-switcher {
    padding-inline: 16px;
  }

  .catalog-main {
    padding: 58px 20px 82px;
  }

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .accessory-grid {
    grid-template-columns: 1fr;
  }

  .catalog-art {
    aspect-ratio: 1.45 / 1;
  }

  .catalog-note {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .catalog-note a {
    width: 100%;
  }

  .modal-spec-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-card-button {
    transition: none;
  }
}
