.product-catalog-section { background: #f7f7f4; }
.product-catalog-head { display: grid; grid-template-columns: .78fr 1.22fr; gap: 72px; align-items: end; }
.product-catalog-head .section-copy { max-width: 720px; }
.product-filters { position: sticky; top: 74px; z-index: 12; margin-top: 56px; padding: 14px 0; display: flex; gap: 9px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; border-top: 1px solid #171715; border-bottom: 1px solid #d4d5d1; background: rgba(247,247,244,.96); backdrop-filter: blur(10px); }
.product-filter { min-height: 38px; padding: 8px 12px; display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; border: 1px solid #c8c9c4; background: #fff; color: #575854; font-size: 12px; line-height: 1.2; transition: background 160ms ease, color 160ms ease, border-color 160ms ease; }
.product-filter span { color: inherit; font-family: Georgia, serif; font-size: 10px; opacity: .72; }
.product-filter:hover, .product-filter:focus-visible, .product-filter.active { border-color: #171715; background: #171715; color: #fff; }
.product-result-count { margin: 24px 0 0; color: #696a66; font-size: 12px; }
.product-gallery { margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 42px 18px; align-items: start; }
.catalog-product { min-width: 0; margin: 0; scroll-margin-top: 154px; }
.catalog-product[hidden] { display: none; }
.catalog-product-link { display: block; }
.catalog-product-media { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden; background: #eceae5; }
.catalog-product-media::after { content: "↗"; position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(23,23,21,.2); background: rgba(255,255,255,.88); color: #171715; font-size: 13px; opacity: 0; transform: translateY(3px); transition: opacity 160ms ease, transform 160ms ease; }
.catalog-product-link:hover .catalog-product-media::after, .catalog-product-link:focus-visible .catalog-product-media::after { opacity: 1; transform: none; }
.catalog-product img { width: 100%; height: 100%; object-fit: contain; transition: transform 260ms ease; }
.catalog-product-link:hover img, .catalog-product-link:focus-visible img { transform: scale(1.018); }
.catalog-product figcaption { padding-top: 13px; display: grid; gap: 4px; border-top: 1px solid #d3d4cf; }
.catalog-product figcaption > span { color: #6d6f6a; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.catalog-product figcaption strong { color: #171715; font-size: 14px; font-weight: 500; line-height: 1.45; }
.catalog-product figcaption small { color: #777973; font-size: 10px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-catalog-cta { margin-top: 72px; padding: 28px 0 4px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; border-top: 1px solid #171715; }
.product-catalog-cta h2 { margin: 0; font-size: clamp(24px, 2.6vw, 38px); font-weight: 500; line-height: 1.28; }
.product-catalog-cta p:not(.eyebrow) { max-width: 720px; margin: 14px 0 0; color: #696a66; font-size: 14px; }
.product-catalog-cta .text-link { white-space: nowrap; }

body.product-lightbox-open { overflow: hidden; }
.product-lightbox { position: fixed; inset: 0; z-index: 1000; padding: 34px 72px; display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; gap: 22px; align-items: center; background: rgba(19,19,18,.96); color: #fff; }
.product-lightbox[hidden] { display: none; }
.product-lightbox figure { min-width: 0; max-width: 1320px; height: calc(100svh - 68px); margin: 0 auto; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 15px; }
.product-lightbox figure > img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.product-lightbox figcaption { display: grid; gap: 3px; text-align: center; }
.product-lightbox figcaption span, .product-lightbox figcaption small { color: #aaaDA7; font-size: 11px; }
.product-lightbox figcaption strong { font-size: 15px; font-weight: 500; }
.product-lightbox-close, .product-lightbox-arrow { border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.18); color: #fff; cursor: pointer; }
.product-lightbox-close { position: absolute; right: 22px; top: 20px; width: 44px; height: 44px; font-size: 28px; line-height: 1; }
.product-lightbox-arrow { width: 52px; height: 52px; font-size: 22px; }

@media (max-width: 1080px) {
  .product-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-catalog-head { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 720px) {
  .product-filters { top: 68px; margin-top: 38px; margin-left: -16px; margin-right: -16px; padding: 11px 16px; }
  .product-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 10px; }
  .catalog-product figcaption strong { font-size: 13px; }
  .catalog-product figcaption small { -webkit-line-clamp: 1; }
  .catalog-product-media::after { opacity: 1; transform: none; }
  .product-catalog-cta { margin-top: 48px; grid-template-columns: 1fr; gap: 18px; }
  .product-catalog-cta .text-link { white-space: normal; }
  .product-lightbox { padding: 64px 12px 20px; grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 6px; }
  .product-lightbox figure { height: calc(100svh - 92px); }
  .product-lightbox-arrow { width: 42px; height: 48px; }
  .product-lightbox-close { right: 12px; top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-product img, .catalog-product-media::after { transition: none; }
}
