/* ═══════════════════════════════════════════════════════════════
   CUE — Shop
   Two specimen cards on cream paper. Inherits hero/lede from apply.css.
   ═══════════════════════════════════════════════════════════════ */

.shop-body { background: var(--cream); }

.shop-main {
  max-width: 1080px;
}

/* ───── Grid ───── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem);
}

/* ───── Specimen card ───── */
.sticker {
  display: flex;
  flex-direction: column;
  background: var(--cream-deep);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s var(--ease-soft),
              transform 0.25s var(--ease-soft),
              box-shadow 0.25s var(--ease-soft);
}

.sticker:hover {
  border-color: var(--rule-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(34, 23, 26, 0.10);
}

.sticker__art {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--cream);
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border-bottom: 1px solid var(--rule);
}

/* Faint paper-grid behind the sticker — sells the "specimen" feel without
   competing with the artwork. */
.sticker__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(34, 23, 26, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 23, 26, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
}

.sticker__art img {
  position: relative;
  max-width: 78%;
  max-height: 78%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(34, 23, 26, 0.18));
  transition: transform 0.4s var(--ease-out);
}

.sticker:hover .sticker__art img {
  transform: rotate(-1.4deg) scale(1.02);
}

/* Guarantee the vinyl renders as a true circle even if the source PNG has
   leftover background halo — the disc itself is inscribed in the square. */
.sticker__art--vinyl img {
  clip-path: circle(49.5% at 50% 50%);
}

/* The kanji sticker is portrait-oriented and reads better a touch larger. */
.sticker__art--mono img {
  max-width: 62%;
  max-height: 82%;
}

/* ───── Custom-day specimen ─────
   Thumbnail "polaroid" preview built from real type — no PNG, since the
   actual sticker is rendered per order from the buyer's diary. The
   placeholder shows the same silhouette the final print will follow:
   date header rule, square art block, title + artist. Sized smaller
   than 100% so the surrounding paper-grid (inherited from .sticker__art)
   reads the same way it does behind the vinyl and kanji designs.        */

.sticker__art--custom .custom-preview {
  position: relative;
  z-index: 1;
  width: 60%;
  max-width: 200px;
  aspect-ratio: 4 / 5;
  background: var(--cream);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(34, 23, 26, 0.18);
  padding: 0.7rem 0.7rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.custom-preview__rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-quiet);
  position: relative;
}

.custom-preview__rule::before,
.custom-preview__rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.custom-preview__star {
  color: var(--plum);
  font-size: 7px;
  line-height: 1;
}

.custom-preview__date {
  font-style: normal;
  font-weight: 500;
  color: var(--ink);
  font-size: 11px;
}

.custom-preview__art {
  flex: 1;
  background:
    linear-gradient(135deg, var(--lavender) 0%, var(--plum) 100%);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.custom-preview__art::after {
  content: "♪";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.6rem;
  opacity: 0.55;
}

.custom-preview__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1;
  color: var(--ink);
  text-align: center;
  letter-spacing: -0.01em;
}

.custom-preview__artist {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.65rem;
  line-height: 1;
  color: var(--ink-quiet);
  text-align: center;
}

.sticker:hover .custom-preview { transform: rotate(-1.4deg) scale(1.02); }
.custom-preview { transition: transform 0.4s var(--ease-out); }

/* The custom card's CTA is an <a> not a <button>; share the pill styling
   and lose default link decoration. */
.sticker__buy--link {
  text-decoration: none;
}

.sticker__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: clamp(1.1rem, 2.4vw, 1.5rem) clamp(1.2rem, 2.6vw, 1.6rem) clamp(1.1rem, 2.4vw, 1.4rem);
}

.sticker__name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}

.sticker[data-sku="mono_no_aware"] .sticker__name {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--plum);
  letter-spacing: 0.04em;
}

.sticker__detail {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-quiet);
  line-height: 1.5;
}

.sticker__detail em {
  color: var(--plum);
  font-style: italic;
}

.sticker__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.7rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--rule);
}

.sticker__price {
  font-family: var(--display);
  font-size: 1.55rem;
  color: var(--ink);
  font-feature-settings: "onum" 1, "lnum" 0;
}

/* ───── Buy button ───── */
.sticker__buy {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 1.4em;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.18s var(--ease-soft),
              transform 0.18s var(--ease-soft);
}

.sticker__buy:hover {
  background: var(--plum);
  transform: translateY(-1px);
}

.sticker__buy:active {
  transform: translateY(0);
}

.sticker__buy[disabled],
.sticker__buy[aria-busy="true"] {
  opacity: 0.65;
  cursor: progress;
}

/* ───── Paused state ───── */
.sticker--paused .sticker__art img {
  filter: drop-shadow(0 8px 18px rgba(34, 23, 26, 0.18)) grayscale(0.15);
  opacity: 0.92;
}

.sticker__paused-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  padding: 0.55em 1em;
  border: 1px dashed var(--rule);
  border-radius: 999px;
}

/* ───── Status note ───── */
.shop-note {
  min-height: 1.4em;
  margin: 0.4rem 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-quiet);
  text-align: center;
}

.shop-note[data-state="error"] { color: #b94a3a; }

/* ───── Footer ───── */
.shop-foot {
  padding: 2rem 0 0;
  border-top: 1px solid var(--rule);
}

.shop-foot__line {
  margin: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ───── Thank-you page ───── */
.shop-link {
  color: var(--plum);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.shop-back {
  display: inline-block;
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.2em;
  transition: color 0.18s var(--ease-soft);
}

.shop-back:hover {
  color: var(--plum);
}

/* ───── Small screens ───── */
@media (max-width: 640px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
}
