/*
 * Quantum Sphere catalog v69
 * Apple-inspired seasonal highlights with protected, no-crop artwork.
 * Motion belongs to the outer cards; composed artwork never zooms or floats.
 */

.shirt-gallery-section {
  --qs-highlight-gap: clamp(18px, 2vw, 28px);
  background:
    radial-gradient(circle at 18% 4%, rgba(21, 87, 255, .18), transparent 31%),
    radial-gradient(circle at 86% 94%, rgba(211, 19, 42, .12), transparent 34%),
    #050914;
  padding-top: clamp(72px, 7vw, 112px);
  padding-bottom: clamp(82px, 8vw, 124px);
}

.shirt-gallery-heading {
  align-items: end;
  max-width: 1440px;
  margin-bottom: clamp(34px, 4vw, 58px);
}

.shirt-gallery-heading h2 {
  max-width: 980px;
  font-size: clamp(3.5rem, 6.7vw, 7.3rem);
}

.shirt-gallery-heading > p:last-child {
  max-width: 470px;
}

.shirt-flow {
  position: relative;
  display: flex;
  gap: var(--qs-highlight-gap);
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: 8px 0 28px;
  overflow-x: auto;
  overflow-y: hidden;
  list-style: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  touch-action: pan-x pan-y;
}

.shirt-flow::-webkit-scrollbar {
  display: none;
}

.shirt-card-shell {
  min-width: 0;
  width: auto;
  margin-top: 0;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  flex: 0 0 clamp(390px, 43vw, 600px);
  touch-action: pan-x pan-y;
}

.shirt-card-shell:nth-child(2n) {
  width: auto;
  margin-top: 0;
}

.shirt-card-motion {
  height: 100%;
  transform: none !important;
  transition: none;
  will-change: auto;
  touch-action: pan-x pan-y;
}

.shirt-card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
  background: #0b111d;
  border-color: rgba(255, 255, 255, .22);
  border-radius: clamp(24px, 2.2vw, 32px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .38);
  transition:
    transform 220ms var(--ease-out),
    border-color 180ms ease,
    box-shadow 220ms var(--ease-out),
    background-color 180ms ease;
  touch-action: pan-x pan-y;
}

.shirt-card:hover,
.shirt-card:focus-visible {
  background: #0d1523;
  border-color: rgba(255, 255, 255, .58);
  transform: translateY(-4px);
  box-shadow: 0 34px 88px rgba(0, 0, 0, .5);
}

.shirt-card.is-selected {
  border-color: #83a8ff;
  box-shadow:
    0 0 0 1px rgba(21, 87, 255, .72),
    0 30px 78px rgba(0, 0, 0, .44);
}

.shirt-card-art {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 0;
  background: transparent;
  border-bottom: 0;
}

.shirt-card-art:after {
  display: none;
}

.shirt-card-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

.shirt-card:hover .shirt-card-art img,
.shirt-card:focus-visible .shirt-card-art img {
  transform: none !important;
  animation: none !important;
}

.shirt-card-meta {
  position: static;
  display: flex;
  min-height: 154px;
  padding: clamp(20px, 2.2vw, 28px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .035), transparent 62%),
    #0b111d;
}

.shirt-card-meta small {
  color: #9ab6ff;
}

.shirt-card-meta strong {
  max-width: 92%;
  font-size: clamp(1.75rem, 2.5vw, 2.7rem);
}

.shirt-card-meta em {
  margin-top: auto;
  padding-top: 17px;
  color: rgba(255, 255, 255, .7);
}

.shirt-flow-hint {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  max-width: 1440px;
  margin: 2px auto 0;
  color: rgba(255, 255, 255, .6);
  letter-spacing: .11em;
  text-align: right;
  text-transform: uppercase;
  font-size: .66rem;
  font-weight: 760;
}

.shirt-flow-hint:after {
  content: "→";
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  font-size: .85rem;
}

/* Complete catalog artwork stays fully visible when customers compare items. */
.product-image img {
  object-fit: contain;
  object-position: 50% 50%;
  transform: none !important;
  transition: opacity 180ms ease;
}

.product-card:hover .product-image img,
.product-card:focus-visible .product-image img {
  transform: none !important;
}

/* Keep the existing hero collage, while protecting the content inside each tile. */
.hero-tile img {
  object-fit: contain;
  object-position: 50% 50%;
  transform: none !important;
  animation: none !important;
  padding: 4px;
}

@media (width <= 980px) {
  .shirt-gallery-heading {
    row-gap: 20px;
  }

  .shirt-flow {
    display: flex;
    max-width: none;
    gap: 20px;
    overflow-x: auto;
  }

  .shirt-card-shell,
  .shirt-card-shell:nth-child(2n) {
    width: auto;
    flex-basis: min(72vw, 620px);
  }
}

@media (width <= 640px) {
  .shirt-gallery-section {
    padding: 64px 18px 76px;
  }

  .shirt-gallery-heading {
    margin-bottom: 28px;
  }

  .shirt-gallery-heading h2 {
    font-size: clamp(3.1rem, 14.5vw, 5rem);
  }

  .shirt-flow {
    width: calc(100% + 18px);
    margin-inline: 0;
    gap: 16px;
    padding: 5px 18px 22px 0;
    scroll-padding-inline: 0 18px;
  }

  .shirt-card-shell {
    flex-basis: calc(100vw - 52px);
  }

  .shirt-card-shell:nth-child(2n) {
    flex-basis: calc(100vw - 52px);
  }

  .shirt-card-meta {
    min-height: 146px;
    padding: 20px;
  }

  .shirt-card-meta strong {
    font-size: clamp(1.72rem, 8vw, 2.3rem);
  }

  .shirt-flow-hint {
    justify-content: flex-start;
    margin-top: 0;
    text-align: left;
  }
}

@media (hover: none) and (pointer: coarse) {
  .shirt-card:hover,
  .product-card:hover {
    transform: none;
    box-shadow: initial;
  }

  .shirt-card:active,
  .product-card:active {
    transform: scale(.992);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shirt-card {
    transition: none !important;
    transform: none !important;
  }

  .shirt-card-motion,
  .shirt-card-art img,
  .product-image img,
  .hero-tile img {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }

  .shirt-flow {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }
}
