.shade-swatches{padding:32px 7% 52px;scroll-margin-top:80px}
.shade-swatches h2{margin:0}
.shade-swatches p{margin:4px 0 20px}
.shade-swatch-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,150px),1fr));gap:14px}
.shade-swatch-grid button{padding:0;border:1px solid #d8dacf;border-radius:5px;overflow:hidden;background:#fff;color:var(--ink);cursor:zoom-in}
.shade-swatch-grid button:hover,.shade-swatch-grid button:focus-visible{outline:2px solid #79543a;outline-offset:2px}
.shade-swatch-grid img{display:block;width:100%;aspect-ratio:4/3;object-fit:contain;background:#f2f0ea}
.shade-swatch-grid span{display:block;padding:6px;font-size:14px}
#roller-swatch img{width:100%;max-height:76dvh;object-fit:contain}

#zebra-fabrics .shade-swatch-grid,
#shangri-la-fabrics .shade-swatch-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 20px;
}

#shangri-la-fabrics .shade-swatch-grid img {
  aspect-ratio: 3 / 4;
}

#butterfly-fabrics .shade-swatch-grid span,
#zebra-fabrics .shade-swatch-grid span,
#shangri-la-fabrics .shade-swatch-grid span {
  font-size: 16px;
}

.shade-swatch-grid[data-fabric-directory="roller-fabrics"] {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
}

.shade-swatch-grid[data-fabric-directory="roller-fabrics"] img {
  aspect-ratio: 3 / 2;
}

#butterfly-fabrics .shade-swatch-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
}

#butterfly-fabrics .shade-swatch-grid img {
  aspect-ratio: 4 / 3;
  background: #fff;
}

.fabric-preview-card {
  display: grid;
  align-content: start;
  gap: 5px;
}

.fabric-preview-card .try-fabric {
  padding: 6px 10px;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
}

.fabric-preview-card .try-fabric[aria-pressed="true"] {
  background: #79543a;
}
