/* Original packaging on the same white studio surface throughout the catalogue. */
.catalog-card .product-visual,
.home-featured > .catalog-card,
.catalog-product-photo {
  background: #fff;
  border: 1px solid var(--line, #e1e4dd);
  border-radius: 12px;
  box-shadow: none;
}

.home-featured .catalog-card .product-visual {
  border: 0;
  border-radius: 0;
}

.catalog-card .product-visual {
  isolation: isolate;
}

.catalog-card .product-visual::after {
  content: none;
}

.catalog-card .product-visual:hover,
.catalog-card .product-visual:focus-visible {
  border-color: var(--leaf, #8cbe5d);
  box-shadow: none;
}

.catalog-card .product-visual:hover img {
  opacity: 1;
}

/* Full studio sources already include their own base shadows. */
.catalog-card .source-packshot {
  clip-path: none;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent),
              linear-gradient(to bottom, transparent, #000 1%, #000 98%, transparent);
  mask-composite: intersect;
}

/* Catalogue artwork without separate packaging is framed using its own coordinates. */
.catalog-crop-viewport {
  position: absolute;
  inset: 50% auto auto 50%;
  height: 86%;
  max-width: 86%;
  aspect-ratio: var(--studio-ratio);
  overflow: hidden;
  transform: translate(-50%, -50%);
}

.catalog-card .catalog-crop-viewport img {
  position: absolute;
  top: var(--studio-top);
  left: var(--studio-left);
  width: var(--studio-width);
  max-width: none;
  height: auto;
  clip-path: var(--studio-shape);
}

.catalog-card .product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 8px;
  margin-bottom: 7px;
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1.5;
}

.studio-category {
  color: var(--green, #376633);
  font-weight: 650;
}

.studio-commodity {
  color: var(--muted, #615d55);
}

.studio-commodity::before {
  content: '·';
  margin-right: 8px;
}

.catalog-card .archive-badge,
.catalog-card .product-size {
  color: var(--muted, #615d55);
  font-size: 11px;
  line-height: 1.5;
}

.catalog-card .product-link {
  color: var(--green, #376633);
  font-size: 13px;
}

.catalog-card .product-placeholder,
.catalog-product-photo .product-placeholder {
  background: #fff;
  color: var(--muted, #615d55);
  border-radius: 0;
}

.catalog-card .product-placeholder svg,
.catalog-product-photo .product-placeholder svg {
  color: var(--green, #376633);
}

.catalog-thumbnails > button,
.catalog-archive-label {
  border-radius: 4px;
}

.catalog-archive-label {
  background: var(--cream, #f4f4f2);
  color: var(--ink, #4e4945);
}

@media (max-width: 580px) {
  .catalog-card .product-meta {
    gap: 2px 5px;
    font-size: 11px;
  }

  .studio-commodity::before {
    margin-right: 5px;
  }

  .catalog-card .archive-badge,
  .catalog-card .product-size {
    font-size: 10px;
  }
}

.collection-section {
  padding-block: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 3vw, 2.5rem);
}

.collection-section .section-heading {
  align-items: baseline;
  margin-bottom: 1.25rem;
}

.collection-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.13;
  letter-spacing: -.035em;
}

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

.collection-preview {
  --collection-accent: var(--green);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 1.7vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--pale);
  color: var(--ink);
  overflow: hidden;
}

.collection-phc {
  --collection-accent: #245943;
  border-color: #cbded4;
  background: #eff7f2;
}

.collection-protect {
  --collection-accent: #824713;
  border-color: #efd8bd;
  background: #fff5e9;
}

.collection-copy {
  min-width: 0;
}

.collection-copy h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 2.25rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -.045em;
  color: var(--collection-accent);
}

.collection-copy p {
  margin-top: .45rem;
  font-size: .9375rem;
  color: var(--muted);
}

.collection-action {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: .875rem;
  font-weight: 650;
  color: var(--collection-accent);
  text-decoration: underline;
  text-underline-offset: .25rem;
}

.collection-preview img {
  background: white;
  width: 42%;
  max-width: 11rem;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.collection-preview:hover,
.collection-preview:focus-visible {
  border-color: var(--collection-accent);
}

.catalog-section-page .catalog-search-panel {
  margin-bottom: 1.25rem;
}

.catalog-family-options {
  border: 0;
  min-width: 0;
  padding: 0;
  margin: 0 0 2rem;
}

.catalog-family-options legend {
  margin: 0 0 .5rem;
  padding: 0;
  font-size: .9375rem;
  font-weight: 650;
}

.catalog-family-options > div {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.catalog-family-options label {
  position: relative;
}

.catalog-family-options input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.catalog-family-options label > span {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem .9rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 600;
}

.catalog-family-options small {
  font-size: .8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.catalog-family-options input:checked + span {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.catalog-family-options label:hover span {
  border-color: var(--green);
}

.catalog-family-options input:focus-visible + span {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.current-catalog-card .product-visual {
  padding: 0;
}

.current-catalog-card .product-visual .catalog-current-art {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: contain;
  clip-path: none;
  border-radius: 0;
}

.catalog-label-preview {
  display: inline-block;
  padding: .12rem .5rem;
  border-radius: 5px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.5;
}

.catalog-product-summary > .catalog-label-preview {
  margin-top: .75rem;
}

.catalog-slide-caption {
  margin: .7rem 0 .5rem;
  color: var(--muted);
  font-size: .875rem;
  text-align: center;
}

@media (min-width: 581px) and (max-width: 960px) {
  .collection-preview { flex-direction: column-reverse; align-items: stretch; }
  .collection-preview img { width: 100%; max-width: 100%; height: 8.25rem; }
  .collection-copy { flex: 1; }
}

@media (max-width: 700px) {
  .collection-grid { gap: .75rem; }
  .collection-preview { padding: 1rem; gap: .75rem; }
}

@media (max-width: 580px) {
  .collection-grid { grid-template-columns: 1fr; }
  .collection-section .section-heading { gap: 1rem; }
  .collection-section .text-link { text-align: right; flex-shrink: 0; }
  .collection-preview img { width: 31%; max-width: 6.75rem; }
  .collection-action { margin-top: .75rem; }
  .catalog-family-options > div { gap: .4rem; }
  .catalog-family-options label > span { padding: .5rem .65rem; }
}
