/* Shop-specific styles, layered on top of styles.css */

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: clamp(28px, 3.5vw, 46px);
  align-items: start;
}

.product-card {
  background: var(--paper);
  padding: 12px 12px 16px;
  border-radius: 2px;
  box-shadow: var(--shadow-soft);
  position: relative;
  transform: rotate(var(--tilt, 0deg));
  transition: transform .28s cubic-bezier(.22,1.4,.36,1), box-shadow .28s;
  cursor: pointer;
}
.product-card:hover, .product-card:focus-visible {
  transform: rotate(0deg) translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-lift);
  z-index: 5;
}

.product-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 1px;
  background: var(--cream-2);
}
.product-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.product-card.is-sold .product-photo img { filter: grayscale(.55) brightness(.85); }

.sold-stamp {
  position: absolute;
  top: 14px; right: -30px;
  background: var(--pipsi-red);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .12em;
  padding: 4px 40px;
  transform: rotate(35deg);
  box-shadow: 0 3px 8px rgba(0,0,0,.25);
}

.product-tag {
  position: absolute;
  left: 8px; bottom: 8px;
  font-family: var(--hand);
  font-weight: 700;
  font-size: .85rem;
  color: var(--sage-deep);
  background: rgba(255,253,244,.92);
  padding: 2px 10px;
  border-radius: 999px;
}

.product-body { padding-top: 12px; }
.product-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 2px;
}
.product-price {
  font-family: var(--body);
  font-weight: 700;
  color: var(--sage-deep);
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.product-price .was {
  color: var(--ink-soft);
  font-weight: 500;
  text-decoration: line-through;
  margin-right: 6px;
  font-size: .92em;
}

.buy-btn {
  width: 100%;
  justify-content: center;
  font-size: .95rem;
  padding: 10px 18px;
}
.buy-btn.sold-btn {
  width: 100%;
  justify-content: center;
  font-size: .95rem;
  padding: 10px 18px;
  background: var(--cream-2);
  color: var(--ink-soft);
  border: 2px dashed rgba(122,140,86,.4);
  cursor: default;
}

/* Lightbox additions for shop */
.shop-lightbox-frame #lightbox-price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--sage-deep);
  text-align: center;
  margin: 2px 0 8px;
}
.shop-cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-top: 10px;
  flex: none;
}
