.collection-entry {
  display: flex;
  align-items: center;
  gap: clamp(1rem,2vw,2rem);
  padding: 1rem 0;
  color: inherit;
  text-decoration: none;
}
.collection-entry:hover strong {text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em}
.collection-entry img {width: clamp(85px,11vw,155px); height: clamp(64px,7vw,106px); object-fit: cover}
.catalog-main {padding-top: 83px; background: #f6f6f6}
.catalog-cover {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.08fr);
  align-items: center;
  gap: 6%;
  padding-block: clamp(38px,5vw,90px);
  background: var(--silver);
}
.catalog-cover h1 {margin: 28px 0 18px; font-size: clamp(48px,6.3vw,104px); line-height:1.02; letter-spacing: -.04em}
.catalog-cover p {max-width: 45ch; color: #4f4f4f}
.catalog-cover > img {width: 100%; height: clamp(220px,25vw,430px); object-fit: cover}
.catalog-content {padding-block: clamp(35px,5vw,80px); scroll-margin-top: 80px}
.catalog-tools {display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 23px}
.catalog-tools label {font-size: 14px; width: min(100%,340px)}
.catalog-tools input,.catalog-tools select {background-color:#fafafa}
#result-count {font-size: 14px; padding-top: 10px}
.catalog-group {margin-block: 32px 64px; scroll-margin-top: 100px}
.catalog-group h2 {font-size: clamp(28px,3.2vw,52px); margin: 0 0 24px}
.product-grid {display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px 22px}
.product-grid.sample-grid {grid-template-columns: repeat(auto-fill,minmax(135px,1fr))}
.product {min-width: 0; scroll-margin-top: 96px}
.product a {display: block}
.product-image {background: #eaeaea; overflow: hidden}
.product-image img {width: 100%; height: auto; aspect-ratio: 4/3; object-fit: contain}
.product h3 {font-size: clamp(19px,1.6vw,27px); line-height:1.25; letter-spacing: -.035em; margin-top: 12px}
.design:hover h3 {text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px}
.product small {display: block; font-size: 13px; color:#5e5e5e; margin-top:4px}
.sample-grid .product-image img {aspect-ratio: 1; object-fit: cover}
.back-catalog {margin-top: 10px}
#design-view {width: min(920px,94vw); background: #f6f6f6}
#design-view .dialog-close {z-index:1}
#design-view .design-image {padding:0; background:#e9e9e9}
#large-photo {width:100%; height: min(54svh,600px); background:transparent; object-fit:contain}
.design-details {display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px}
.design-details h2 {font-size: clamp(22px,3.2vw,38px); line-height:1.15}
#gallery-controls {display:flex; align-items:center; justify-content:center; gap:16px; border-top:1px solid var(--line); font-size:14px}
#gallery-controls button {padding:8px; text-decoration:underline; text-underline-offset:3px}
@media(max-width:960px){.catalog-main{padding-top:73px}}
@media(max-width:760px) {
  .catalog-main {padding-top:65px}
  .catalog-cover {grid-template-columns:1fr; gap:26px}
  .catalog-cover > img {height:clamp(160px,44vw,310px)}
  .catalog-cover h1 {margin-top:18px}
  .product-grid {grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 14px}
  .catalog-tools label {flex:1 1 220px}
}
@media(max-width:450px){
  .catalog-tools {gap:12px}
  .catalog-group h2 {margin-bottom:16px}
  .product-grid.sample-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
  .product h3 {font-size:17px}
}
