/* Product-first presentation, using the supplied clothing photography. */
.apparel-visual {
  position: relative;
  height: 330px;
  overflow: hidden;
  background: #f3f5f9;
  touch-action: pan-y pinch-zoom;
}
.apparel-visual .apparel-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px 20px;
  filter: drop-shadow(0 9px 7px #14233f16);
  transform-origin: 70% center;
}
.apparel-visual::after {
  content: "";
  position: absolute;
  inset: 12% 16% 12% auto;
  width: 7%;
  opacity: 0;
  background: linear-gradient(
    90deg,
    transparent,
    #ffffff55,
    #14233f12,
    transparent
  );
  pointer-events: none;
}
.is-swiping .apparel-photo {
  animation: apparel-fold-swipe 620ms cubic-bezier(0.22, 0.7, 0.25, 1) both;
}
.is-swiping::after {
  animation: apparel-fold-light 620ms ease-out both;
}
@keyframes apparel-fold-swipe {
  0%,
  100% {
    transform: translateX(0) skewY(0) scaleX(1);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  32% {
    transform: translateX(5%) skewY(-1.5deg) scaleX(0.94);
    clip-path: polygon(0 0, 94% 2%, 99% 100%, 0 100%);
  }
  62% {
    transform: translateX(-3%) skewY(0.7deg) scaleX(0.98);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}
@keyframes apparel-fold-light {
  0%,
  100% {
    opacity: 0;
    transform: translateX(0);
  }
  35% {
    opacity: 0.55;
    transform: translateX(-35px) skewY(-2deg);
  }
  65% {
    opacity: 0.15;
    transform: translateX(15px);
  }
}
.merch-grid .merch-card {
  display: flex;
  flex-direction: column;
}
.merch-grid .card-copy {
  flex: 1;
  padding: 24px;
  gap: 18px;
}
.merch-grid .card-copy h3 {
  margin: 0;
  font-size: 25px;
}
.merch-grid .merchandise-enquiry {
  margin-top: auto;
  justify-content: space-between;
  min-width: 148px;
  border-radius: 5px;
}
.clothing-card .card-copy {
  min-height: 144px;
}
.merch-intro {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 365px;
}
.merch-intro p {
  margin: 0;
  font-size: 17px;
}
#product-motion {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--navy);
  background: white;
  font-size: 18px;
}
@media (max-width: 600px) {
  .apparel-visual {
    height: 320px;
  }
  .merch-grid .merch-card {
    display: flex;
    flex-direction: column;
  }
  .merch-grid .card-copy {
    flex: 1;
    padding: 22px;
  }
  .merch-intro {
    margin-top: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-swiping .apparel-photo,
  .is-swiping::after {
    animation: none;
  }
}
/* Useful interaction stays optional: every product and enquiry works without it. */
.merch-grid .product-description {
  margin: 0;
  min-height: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.catalogue-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product-filters button {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-weight: 600;
}
.product-filters button[aria-pressed="true"] {
  background: var(--blue);
  color: white;
}
#catalogue-status {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.merch-image {
  position: relative;
}
.product-look {
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-height: 44px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 6px;
  background: white;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 3px 16px #14233f16;
}
.product-look span {
  font-size: 20px;
}
.product-preview-open {
  overflow: hidden;
}
#product-preview {
  max-width: 900px;
  width: calc(100% - 32px);
  max-height: calc(100svh - 32px);
  overflow: auto;
  padding: 32px;
  border-radius: 12px;
}
.preview-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--navy);
  font-size: 28px;
  z-index: 1;
}
.preview-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
}
.preview-photo {
  background: #f3f5f9;
  border-radius: 8px;
}
#preview-image {
  display: block;
  width: 100%;
  height: 390px;
  object-fit: contain;
  padding: 16px;
}
#product-preview h2 {
  font-size: 30px;
  line-height: 1.2;
  margin: 12px 0 18px;
}
#preview-description {
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 18px;
}
#product-preview .preview-help {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}
.preview-share {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 12px;
  background: transparent;
  border: 0;
  padding: 10px 0;
  color: var(--blue);
  font-weight: 600;
}
#product-preview #share-status {
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0 0;
}
.preview-fallback {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}
.preview-fallback input {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  min-height: 44px;
  font-size: 14px;
}
.preview-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}
.preview-navigation button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}
#product-preview #preview-position {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.product-filters button:focus-visible,
.product-look:focus-visible,
#product-preview button:focus-visible,
#preview-enquiry:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
@media (hover: hover) {
  .product-look:hover,
  .preview-share:hover {
    color: var(--blue);
  }
  .product-filters button:not([aria-pressed="true"]):hover {
    background: #e7edf8;
  }
}
@media (max-width: 600px) {
  .catalogue-tools {
    gap: 10px;
  }
  .product-filters button {
    padding: 10px 12px;
    font-size: 14px;
  }
  #product-preview {
    padding: 24px;
  }
  .preview-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  #preview-image {
    height: 250px;
  }
  .preview-navigation {
    gap: 6px;
  }
  .preview-navigation button {
    padding: 10px;
    font-size: 13px;
  }
}
