.shop-intro {
  padding: 42px 0 0;
}
.shop-intro h1 {
  font-size: clamp(36px, 4vw, 52px);
}
.shop-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}
.shop-heading p {
  max-width: 800px;
  color: var(--muted);
  margin: 16px 0 0;
  font-size: 19px;
}
.shop-heading .call-link {
  flex-shrink: 0;
}
.illustration-note {
  border-left: 2px solid #b99961;
  padding: 4px 12px;
  font-size: 14px;
  margin: 23px 0 0;
  line-height: 1.6;
  color: var(--muted);
}
.illustration-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid var(--line);
  padding-block: 22px 20px;
  margin-top: 30px;
  font-size: 15px;
}
.shop-toolbar span:last-child {
  color: var(--muted);
}
.shop-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}
.shop-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  overflow: hidden;
  scroll-margin-top: 140px;
}
.product-media {
  position: relative;
  background: #fff;
}
.product-photo {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  border-radius: 0;
  aspect-ratio: 1;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.product-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: opacity 0.2s;
}
.product-photo .view-top {
  opacity: 0;
}
.product-media[data-view="top"] .view-front {
  opacity: 0;
}
.product-media[data-view="top"] .view-top {
  opacity: 1;
}
.product-zoom {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 50%;
  color: var(--green);
}
.product-zoom svg {
  width: 21px;
  height: 21px;
}
.view-picker {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 0 12px 15px;
  background: #fff;
}
.view-picker button {
  font-size: 14px;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 10px 1px;
  color: var(--muted);
  min-height: 40px;
}
.view-picker button[aria-pressed="true"] {
  border-color: var(--green);
  color: var(--green);
}
.product-information {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 1px solid #edf0ea;
}
.product-information h2 {
  font-size: 24px;
  line-height: 1.3;
  margin: 0;
}
.product-information p {
  color: var(--muted);
  margin: 12px 0 25px;
  line-height: 1.55;
  font-size: 16px;
}
.product-contact {
  width: 100%;
  margin-top: auto;
  min-height: 54px;
  border-radius: 3px;
  font-size: 17px;
  justify-content: center;
  gap: 10px;
}
.product-contact svg {
  flex-shrink: 0;
  width: 23px;
  height: 23px;
}
.catalog-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
  border-top: 1px solid var(--line);
  padding-block: 42px 55px;
  margin-top: 45px;
}
.catalog-contact h2 {
  font-size: 30px;
}
.catalog-contact p {
  max-width: 600px;
  font-size: 18px;
  color: var(--muted);
  margin: 15px 0 0;
}
.catalog-contact .actions {
  flex-shrink: 0;
  align-items: start;
  flex-direction: column;
  gap: 12px;
}
.product-viewer {
  padding: 24px;
  border: 0;
  border-radius: 4px;
  width: min(880px, 96vw);
  max-height: 94dvh;
  background: #fff;
  color: var(--ink);
  overflow: auto;
}
.product-viewer::backdrop {
  background: #14261fbd;
}
.viewer-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.viewer-header h2 {
  font-size: 27px;
}
.viewer-header button {
  font-size: 30px;
  flex-shrink: 0;
}
.viewer-controls {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-block: 16px;
}
.viewer-controls > div {
  display: flex;
  gap: 10px;
}
.viewer-controls button {
  border: 1px solid var(--line);
  padding: 9px 15px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  min-height: 44px;
  border-radius: 3px;
}
.viewer-controls button[aria-pressed="true"] {
  border-color: var(--green);
  background: var(--sage);
}
.viewer-canvas {
  height: min(65dvh, 650px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #edf0ea;
  background: #fff;
  touch-action: pan-x pan-y pinch-zoom;
}
.viewer-canvas img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: none;
}
.viewer-canvas[data-zoomed="true"] img {
  width: 200%;
  height: auto;
  min-height: 200%;
  object-fit: contain;
}
.viewer-caption {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.product-viewer:focus {
  outline: none;
}
body.modal-open {
  overflow: hidden;
}
.product-photo:focus-visible,
.product-zoom:focus-visible,
.view-picker button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: -4px;
}
@media (prefers-reduced-motion: reduce) {
  .product-photo img {
    transition: none;
  }
}
@media (max-width: 1080px) {
  .shop-heading {
    align-items: start;
    flex-direction: column;
    gap: 15px;
  }
  .shop-products {
    gap: 22px;
  }
  .product-information {
    padding: 20px;
  }
  .product-contact {
    font-size: 16px;
    padding-inline: 12px;
  }
  .catalog-contact {
    gap: 30px;
  }
}
@media (max-width: 760px) {
  .shop-intro {
    padding-top: 30px;
  }
  .shop-heading p {
    font-size: 18px;
  }
  .shop-products {
    grid-template-columns: 1fr;
    gap: 27px;
  }
  .shop-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .product-information {
    border-top: 0;
    border-left: 1px solid #edf0ea;
  }
  .shop-toolbar {
    font-size: 14px;
    gap: 15px;
  }
  .shop-toolbar span:last-child {
    text-align: right;
  }
  .catalog-contact {
    flex-direction: column;
    align-items: start;
    gap: 23px;
    margin-top: 32px;
    padding-block: 32px 44px;
  }
  .catalog-contact .actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .product-viewer {
    padding: 16px;
  }
  .viewer-header h2 {
    font-size: 24px;
  }
}
@media (max-width: 520px) {
  .shop-intro {
    padding-top: 25px;
  }
  .shop-intro .eyebrow {
    margin-bottom: 13px;
  }
  .shop-heading {
    gap: 10px;
  }
  .shop-heading p {
    margin-top: 12px;
  }
  .illustration-note {
    margin-top: 16px;
  }
  .shop-toolbar {
    margin-top: 22px;
    padding-block: 16px;
    display: block;
  }
  .shop-toolbar span {
    display: block;
  }
  .shop-toolbar span:last-child {
    text-align: left;
    margin-top: 4px;
  }
  .shop-card {
    display: flex;
  }
  .product-information {
    border-left: 0;
    border-top: 1px solid #edf0ea;
    padding: 22px;
  }
  .product-photo {
    aspect-ratio: 1.08;
  }
  .product-contact {
    font-size: 17px;
  }
  .viewer-controls button {
    font-size: 15px;
    padding-inline: 10px;
  }
  .catalog-contact .actions {
    flex-direction: column;
  }
}
