/* Product card + product tile — shared by the store and the admin live preview.
   Self-contained (dark theme) so it renders the same on either page. */

.tile {
  --h: 265;
  position: relative; overflow: hidden; aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  background: radial-gradient(90% 80% at 50% 100%, hsl(var(--h) 70% 45% / 0.35), transparent 70%), linear-gradient(160deg, hsl(var(--h) 25% 15%), hsl(var(--h) 30% 9%));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-icon {
  height: 38%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 22%;
  background: hsl(var(--h) 25% 18%); color: hsl(var(--h) 85% 75%);
  box-shadow: inset 0 0 0 1px hsl(var(--h) 70% 70% / 0.2), 0 14px 34px -12px hsl(var(--h) 80% 50% / 0.55);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tile-icon svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.pcard { display: block; color: #f3f2f7; text-decoration: none; font-family: "Inter", system-ui, sans-serif; text-align: left; }
.pcard-media { position: relative; }
.pcard:hover .tile-icon { transform: scale(1.05); }
.pcard:hover .tile > img { transform: scale(1.03); }
.tile > img { transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.pcard-badge {
  position: absolute; right: 10px; top: 10px; z-index: 1;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
  background: #f3f2f7; color: #0d0c12;
}
.pcard-badge.soldout { background: rgba(11, 10, 16, 0.85); color: #f3f2f7; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.pcard-badge.accent { background: #7c4dff; color: #fff; }
.pcard-title { margin: 12px 0 0; font-size: 15px; font-weight: 500; line-height: 1.4; letter-spacing: 0.01em; }
.pcard:hover .pcard-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pcard-price { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 15px; color: #f3f2f7; }
.pcard-price s { font-size: 14px; color: rgba(243, 242, 247, 0.45); }
.pcard-price small { font-size: 14px; color: rgba(243, 242, 247, 0.6); }
.pcard.is-soldout .tile { opacity: 0.5; }
