/* Shop only; load after style.css. Shopify iframe contents are styled in shop.html. */
.page-shop .shop-grid {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  width: min(1280px, calc(100% - 32px));
  margin: 12px auto 0;
  align-items: stretch;
}
.page-shop .shop-grid > div[id^="product-component-"] {
  box-sizing: border-box;
  min-width: 0;
  /* Paint all three panels before Shopify loads; allow longer content to grow. */
  min-height: 660px;
  padding: 18px;
  background: rgba(16, 29, 62, 0.84);
  border: 1px solid rgba(197, 214, 255, 0.32);
  color: #f3f7ff;
  box-shadow: 0 9px 28px rgba(5, 13, 35, 0.20);
  border-radius: 12px;
}
.page-shop .shop-grid iframe { display: block; max-width: 100%; }
@media (min-width: 821px) {
  .page-shop .shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px);
  }
  .page-shop footer { padding-block: 12px; }
}
/* Let smaller screens scroll naturally; never clip products or checkout controls. */
@media (max-width: 820px) {
  .page-shop .shop-grid { max-width: 480px; }
}

/* Keep Shopify image/gallery backgrounds transparent against the cards. */
.page-shop .shop-grid > div[id^="product-component-"] { overflow: hidden; }


/* Merch product cards — unified fade-in */
@keyframes merch-card-fade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in the entire panel, including its Shopify content */
.page-shop .shop-grid > div[id^="product-component-"] {
    animation: merch-card-fade 450ms ease-out 200ms both;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .page-shop .shop-grid > div[id^="product-component-"] {
        animation: none;
    }
}
