.shopsart-art-catalog {
  --shopsart-art-red: #d20c0c;
  --shopsart-art-red-hover: #ae0909;
  --shopsart-art-text: #282828;
  --shopsart-art-muted: #666;
  --shopsart-art-line: #e6e6e6;
  color: var(--shopsart-art-text);
  font-family: inherit;
  margin: 32px 0 48px;
}

.shopsart-art-group + .shopsart-art-group { margin-top: 52px; }
.shopsart-art-group-title {
  color: inherit;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 26px;
  text-transform: uppercase;
}
.shopsart-art-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 28px;
}
.shopsart-art-card { min-width: 0; margin: 0; }
.shopsart-art-image-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 794 / 561;
  padding: 0;
  background: #f6f4ef;
  box-sizing: border-box;
}
.shopsart-art-catalog .shopsart-art-image-trigger {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #f6f4ef;
  color: inherit;
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  letter-spacing: normal;
  line-height: normal;
  text-align: inherit;
  text-transform: none;
  touch-action: manipulation;
}
.shopsart-art-catalog .shopsart-art-image-trigger:focus-visible { outline: 2px solid #222; outline-offset: 3px; }
.shopsart-art-card-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
  object-position: center;
}
.shopsart-art-image-missing { color: var(--shopsart-art-muted, #666); font: inherit; }
.shopsart-art-sold {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  background: #fff;
  color: #444;
  border: 1px solid #ddd;
  font-size: 13px;
  line-height: 1.4;
}
.shopsart-art-card-body { display: flex; flex-direction: column; align-items: flex-start; padding-top: 16px; }
.shopsart-art-card-title {
  color: inherit;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  min-height: 2.7em;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
  text-transform: none;
}
.shopsart-art-price { min-height: 1.4em; color: inherit; font-size: 18px; font-weight: 600; line-height: 1.4; margin: 0 0 16px; white-space: nowrap; }
.shopsart-art-more,
.shopsart-art-close,
.shopsart-art-thumbnail {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  cursor: pointer;
  font: inherit;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.35;
  margin: 0;
  text-shadow: none;
  text-transform: none;
  touch-action: manipulation;
}
.shopsart-art-more {
  min-height: 44px;
  padding: 11px 24px;
  border: 1px solid var(--shopsart-art-red, #d20c0c);
  border-radius: 3px;
  background: var(--shopsart-art-red, #d20c0c);
  color: #fff;
  box-shadow: none;
  font-size: 16px;
}
.shopsart-art-more:hover { border-color: var(--shopsart-art-red-hover, #ae0909); background: var(--shopsart-art-red-hover, #ae0909); color: #fff; }
.shopsart-art-more:focus-visible,
.shopsart-art-close:focus-visible,
.shopsart-art-thumbnail:focus-visible { outline: 2px solid #222; outline-offset: 3px; }
.shopsart-art-scroll-locked { overflow: hidden; }
.shopsart-art-dialog {
  --shopsart-art-red: #d20c0c;
  --shopsart-art-text: #282828;
  --shopsart-art-line: #e6e6e6;
  box-sizing: border-box;
  width: min(1120px, calc(100vw - 32px));
  max-width: none;
  max-height: 92vh;
  max-height: 92dvh;
  padding: 0;
  margin: auto;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: var(--shopsart-art-text);
  font-family: inherit;
  box-shadow: 0 16px 64px rgb(0 0 0 / 25%);
}
.shopsart-art-dialog:not([open]) { display: none; }
.shopsart-art-dialog[open] { display: flex; flex-direction: column; }
.shopsart-art-dialog::backdrop { background: rgb(0 0 0 / 65%); }
.shopsart-art-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex: 0 0 auto; padding: 20px 20px 20px 28px; }
.shopsart-art-dialog-title {
  min-width: 0;
  margin: 7px 0 0;
  color: inherit;
  font-family: inherit;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-transform: none;
}
.shopsart-art-dialog-title:focus { outline: none; }
.shopsart-art-close {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fff;
  color: #282828;
  box-shadow: none;
  font-size: 31px;
  line-height: 1;
}
.shopsart-art-close:hover { background: #f4f4f4; color: #282828; }
.shopsart-art-dialog-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 28px 28px; scrollbar-gutter: stable; }
.shopsart-art-dialog-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: start; gap: 28px; }
.shopsart-art-dialog-visual,
.shopsart-art-dialog-copy { min-width: 0; }
.shopsart-art-dialog-figure { display: flex; justify-content: center; align-items: center; margin: 0; padding: 12px; background: #fafafa; }
.shopsart-art-dialog-image { display: block; width: 100%; height: auto; max-height: 64vh; max-height: 64dvh; object-fit: contain; object-position: center; }
.shopsart-art-gallery { display: flex; flex-wrap: wrap; max-width: 100%; gap: 8px; margin-top: 12px; }
.shopsart-art-thumbnail { display: flex; align-items: center; justify-content: center; flex: 0 0 72px; width: 72px; height: 72px; min-height: 72px; padding: 4px; border: 1px solid #d5d5d5; border-radius: 0; background: #fff; color: #282828; box-shadow: none; }
.shopsart-art-thumbnail[aria-pressed="true"] { border: 2px solid var(--shopsart-art-red, #d20c0c); padding: 3px; }
.shopsart-art-thumbnail img { display: block; width: 100%; height: 100%; object-fit: contain; }
.shopsart-art-dialog-price { color: inherit; font-size: 24px; font-weight: 600; line-height: 1.3; margin: 0 0 18px; white-space: nowrap; }
.shopsart-art-sold-note { margin: 0 0 12px; color: #666; font-size: 15px; font-weight: 600; }
.shopsart-art-description { color: inherit; font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.shopsart-art-description p { margin: 0 0 1em; }
.shopsart-art-description p:last-child { margin-bottom: 0; }
.shopsart-art-description a { color: var(--shopsart-art-red, #d20c0c); text-decoration: underline; text-underline-offset: 2px; }
.shopsart-art-description a:focus-visible { outline: 2px solid #222; outline-offset: 3px; }
.shopsart-art-details { margin: 24px 0 0; padding: 10px 0 0; border-top: 1px solid var(--shopsart-art-line, #e6e6e6); font-size: 14px; line-height: 1.5; }
.shopsart-art-detail-row { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--shopsart-art-line, #e6e6e6); }
.shopsart-art-detail-label { margin: 0; color: #666; font-weight: 400; }
.shopsart-art-detail-value { margin: 0; color: #282828; overflow-wrap: anywhere; }

/* Keep the catalogue readable inside the site's smaller page-copy typography. */
.shopsart-art-catalog .shopsart-art-price { font-size: 18px; line-height: 1.4; }
.shopsart-art-dialog .shopsart-art-dialog-price { font-size: 24px; font-weight: 600; line-height: 1.3; }
.shopsart-art-dialog .shopsart-art-description p { font-size: 16px; line-height: 1.65; text-transform: none; }
.shopsart-art-dialog .shopsart-art-details,
.shopsart-art-dialog .shopsart-art-detail-label,
.shopsart-art-dialog .shopsart-art-detail-value { text-transform: none; font-size: 14px; }

@media (max-width: 900px) {
  .shopsart-art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; }
  .shopsart-art-dialog-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .shopsart-art-dialog-image { max-height: 48vh; max-height: 48dvh; }
  .shopsart-art-dialog-title { font-size: 23px; }
}
@media (max-width: 480px) {
  .shopsart-art-catalog { margin: 24px 0 36px; }
  .shopsart-art-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .shopsart-art-group + .shopsart-art-group { margin-top: 40px; }
  .shopsart-art-group-title { margin-bottom: 20px; font-size: 20px; }
  .shopsart-art-card-title { min-height: 0; font-size: 16px; }
  .shopsart-art-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  .shopsart-art-dialog-header { gap: 12px; padding: 12px 12px 16px 16px; }
  .shopsart-art-dialog-title { margin-top: 8px; font-size: 21px; }
  .shopsart-art-dialog-scroll { padding: 0 16px 20px; }
  .shopsart-art-dialog .shopsart-art-dialog-price { font-size: 22px; }
  .shopsart-art-detail-row { grid-template-columns: minmax(0, 1fr); gap: 3px; }
}
