/* ---------- Prompts page: square cards, cart, sign-in ---------- */
.pp .topbar .nav { justify-content: space-around; }
.pp .nav-link.is-active span { color: var(--graphite); font-weight: 600; }

.pp-main { max-width: 1240px; margin: 0 auto; padding: 130px var(--pad) 160px; }
.pp-head h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 7vw, 88px); line-height: 1; letter-spacing: -.02em; }
.pp-head p { margin: 14px 0 30px; max-width: 62ch; font-size: 16.5px; line-height: 1.55; color: #3b3a44; }

.pp-tabs { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; margin-bottom: 26px; }
.pp-tabs button { position: relative; z-index: 1; min-width: 170px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: 999px;
  font: 500 15px/1 inherit; font-family: inherit; color: var(--soft-ink); transition: color .25s; }
.pp-tabs button[aria-selected="true"] { color: var(--graphite); font-weight: 600; }
.pp-knob { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: #fff;
  box-shadow: 0 1px 0 #fff inset, 0 8px 18px -10px rgb(60 62 82 / .45), 0 0 0 1px rgb(132 138 160 / .14); transition: transform .45s var(--spring); }
.pp-tabs[data-on="1"] .pp-knob { transform: translateX(100%); }

.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pc { position: relative; border-radius: 24px; overflow: hidden; cursor: pointer; aspect-ratio: 1; background: #ecebf1;
  box-shadow: 0 0 0 1px rgb(132 138 160 / .18), 0 18px 30px -22px rgb(60 62 82 / .5); transition: transform .35s var(--spring), box-shadow .3s; }
.pc:hover { transform: translateY(-3px); }
.pc:focus-visible { outline: 2px solid #6d5bd0; outline-offset: 3px; }
.pc img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
  background: linear-gradient(to top, rgb(20 19 26 / .62), rgb(20 19 26 / 0)); color: #fff; }
.pc-info b { font-size: 14px; font-weight: 600; line-height: 1.25; }
.pc-info span { flex: none; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgb(255 255 255 / .9); color: var(--graphite); }
.pc-play { position: absolute; left: 12px; top: 12px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .85); }
.pc-play svg { width: 12px; height: 12px; fill: var(--graphite); margin-left: 2px; }
.pc-pick { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgb(255 255 255 / .85); box-shadow: 0 0 0 1.5px rgb(255 255 255 / .9), 0 6px 14px -6px rgb(0 0 0 / .4); transition: background .2s, transform .3s var(--spring); }
.pc-pick svg { width: 16px; height: 16px; fill: none; stroke: var(--graphite); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .35; }
.pc.on .pc-pick { background: #6d5bd0; transform: scale(1.06); }
.pc.on .pc-pick svg { stroke: #fff; opacity: 1; }
.pc.on { box-shadow: 0 0 0 2.5px #6d5bd0, 0 18px 30px -22px rgb(60 62 82 / .5); }
.pp-empty { grid-column: 1 / -1; padding: 50px 0; text-align: center; color: var(--soft-ink); }

/* details */
.pd { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; }
.pd[hidden] { display: none; }
.pd-card { position: relative; width: min(860px, 100%); max-height: calc(100svh - 40px); overflow: hidden auto; border-radius: 30px; display: grid; grid-template-columns: 1.05fr 1fr; animation: buyIn .5s var(--spring); }
.pd-media { background: #ecebf1; min-height: 100%; }
.pd-media img, .pd-media video { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.pd-body { padding: 30px 28px 26px; display: flex; flex-direction: column; gap: 14px; }
.pd-body .tag { align-self: flex-start; position: relative; inset: auto; transform: none; margin: 0; }
.pd-buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 16px; border-top: 1px solid rgb(35 36 39 / .08); }
.pd-price { font-size: 26px; font-weight: 600; }
.pd-add.in { background: #6d5bd0; color: #fff; }
.pd .buy-x { z-index: 3; }

@media (max-width: 700px) {
  .pp-main { padding-top: 150px; }
  .pp-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pc { border-radius: 18px; }
  .pc-info { padding: 30px 10px 9px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .pc-info b { font-size: 12.5px; }
  .pp-tabs button { min-width: 0; padding: 0 16px; font-size: 14px; }
  .pd-card { grid-template-columns: 1fr; }
  .pd-media img, .pd-media video { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) { .pc, .pp-knob, .cart-bar, .cart-panel, .pd-card { animation: none; transition: none; } }
