.studio-piece {
  clear: both;
  margin-top: 10px;
  padding-top: 4px;
}

.studio-piece select {
  width: 100%;
  margin: 6px 0 12px;
  padding: 9px 24px 9px 10px;
  border: 1px solid #ddd6cb;
  border-radius: 0;
  background: #fcfbf8;
  color: var(--ink);
  font: 12px var(--sans);
}

.studio-piece select:focus-visible {
  outline: 2px solid #8e744b;
  outline-offset: 3px;
}

.studio-piece-current {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 12px;
}

.studio-piece-current img {
  width: 54px;
  height: 54px;
  object-fit: cover;
}

.studio-piece-current figcaption {
  display: grid;
  gap: 5px;
}

.studio-piece-current figcaption span:first-child {
  font: 14px/1.2 var(--serif);
}

.studio-piece-current figcaption span:last-child {
  font-size: 10px;
  color: #746a5d;
}

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

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

.catalog-filters button {
  padding: 8px 12px;
  border: 1px solid var(--line);
  font-size: 11px;
  color: #635543;
}

.catalog-filters button[aria-pressed='true'] {
  background: #eae1d3;
  border-color: #b8a68d;
}

.catalog-count {
  color: #746a5d;
  font-size: 11px;
}

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

.catalog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.catalog-card > img,
.catalog-gallery-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--sand);
}

.catalog-gallery {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--sand);
}

.catalog-gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.catalog-gallery-track::-webkit-scrollbar {
  display: none;
}

.catalog-gallery-track:focus-visible {
  outline: 2px solid #8e744b;
  outline-offset: -3px;
}

.catalog-gallery-slide {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  scroll-snap-align: start;
}

.catalog-gallery-slide img {
  display: block;
}

.catalog-gallery-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0 0 3px;
  border: 1px solid rgba(90, 73, 53, .2);
  border-radius: 50%;
  background: rgba(252, 251, 248, .88);
  color: #544633;
  font: 24px/1 var(--sans);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .2s ease, opacity .2s ease;
}

.catalog-gallery-arrow:hover {
  background: #fff;
}

.catalog-gallery-arrow:focus-visible {
  outline: 2px solid #8e744b;
  outline-offset: 2px;
}

.catalog-gallery-previous { left: 8px; }
.catalog-gallery-next { right: 8px; }

.catalog-gallery-count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 7px;
  border-radius: 99px;
  background: rgba(252, 251, 248, .9);
  color: #544633;
  font-size: 10px;
  line-height: 1;
}

.catalog-card h2 {
  margin: 12px 0 4px;
  font: 18px/1.25 var(--serif);
}

.catalog-card-details {
  margin-bottom: 9px;
}

.catalog-price,
.catalog-pending {
  color: #746a5d;
  font-size: 11px;
  line-height: 1.6;
}

.catalog-pending {
  margin-top: 3px;
}

.catalog-preview-link {
  align-self: flex-start;
  margin-top: auto;
  padding: 5px 0;
  font-size: 11px;
}

.note-card.handwritten:not(.empty) .card-words {
  color: #453c34;
}

@media (max-width: 1050px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }

  .catalog-card h2 {
    font-size: 16px;
  }

  .catalog-filters button {
    padding: 8px 9px;
    font-size: 10px;
  }
}
