.shop-page {
  padding: 56px var(--gutter) 72px;
  border-bottom: 1px solid var(--line);
}
.shop-heading { margin-bottom: 40px; }
.shop-heading h1 {
  margin-top: 20px;
  font-size: clamp(64px, 8vw, 120px);
  line-height: .9;
  letter-spacing: -.065em;
}
.catalogue-collection + .catalogue-collection { margin-top: 72px; }
.collection-masthead {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 20px 0;
  margin-bottom: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.collection-masthead h2 { margin: 0; font-size: 15px; font-weight: 400; letter-spacing: .04em; }
.collection-status, .collection-count { font-size: 10px; letter-spacing: .06em; color: #777770; line-height: 1.5; }
.collection-count { margin-left: auto; }
.rail-cue { font-size: 9px; line-height: 1.5; letter-spacing: .06em; color: #777770; }
.product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(300px, 32vw, 440px);
  gap: clamp(24px, 3vw, 48px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 6px;
  padding: 6px clamp(28px, 3vw, 48px) 24px 6px;
  scrollbar-width: thin;
  scrollbar-color: #b8b8b0 transparent;
}
.product-rail:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.product-rail.is-enhanced { scrollbar-width: none; }
.product-rail.is-enhanced::-webkit-scrollbar { display: none; }
.product-rail.is-dragging { user-select: none; }
.product-card {
  min-width: 0;
  width: 100%;
}
.product-card > a { display: block; }
.product-card-image {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #eeeee9;
  overflow: hidden;
}
/* Negative space mounts the photo; both views share one centered 4:5 area. */
.product-card-image img {
  position: absolute;
  inset: 10%;
  width: 80%;
  height: 80%;
  object-fit: contain;
}
.product-card-image::before, .product-card-image::after {
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  border-top: 1px solid #d0d0c9;
  pointer-events: none;
}
.product-card-image::before { top: 8%; }
.product-card-image::after { bottom: 8%; }
.product-archive-header, .product-archive-caption {
  position: absolute;
  left: 6%;
  right: 6%;
  font-size: clamp(7px, .65vw, 9px);
  line-height: 1.5;
  letter-spacing: .09em;
  color: #777770;
  pointer-events: none;
}
.product-archive-header { top: 3%; display: flex; justify-content: space-between; gap: 12px; }
.product-archive-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.product-archive-caption { bottom: 3%; }
.archive-view-back { display: none; }
.product-card-back { opacity: 0; transition: opacity .2s; }
.product-card-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
}
.product-card h3 {
  margin: 0;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.product-card-price { flex-shrink: 0; font-size: 11px; letter-spacing: .04em; line-height: 1.5; }
.product-card-status { margin-top: 10px; font-size: 10px; line-height: 1.5; letter-spacing: .06em; color: #666; }
.catalogue-message { font-size: 16px; line-height: 1.6; }

@media (hover: hover) and (pointer: fine) {
  .product-rail.is-scrollable, .product-rail.is-scrollable a { cursor: grab; }
  .product-rail.is-dragging, .product-rail.is-dragging a { cursor: grabbing; }
  .product-card > a:hover .product-card-back { opacity: 1; }
  .product-card > a:hover .has-back .archive-view-front { display: none; }
  .product-card > a:hover .has-back .archive-view-back { display: inline; }
}
@media (max-width: 650px) {
  .shop-page { padding-top: 36px; padding-bottom: 48px; }
  .shop-heading { margin-bottom: 30px; }
  .product-rail {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
  }
  .product-card-copy { padding-top: 16px; }
  .collection-masthead { gap: 12px 20px; margin-bottom: 24px; }
  .collection-masthead h2 { flex-basis: 100%; }
}
