/* Product sheet: the full story on a part (opens over any page, link = #p=<id>) */
a.pname { color: inherit; text-decoration: none; display: block; }
a.pname:hover, a.pname:focus-visible { color: var(--yellow); }
.card .pimg, .slide .pimg, .spotlight__media, .citem .pimg, .citem__name { cursor: pointer; }
.card .pimg img, .slide .pimg img { transition: transform .3s; }
.card:hover .pimg img { transform: scale(1.04); }

html.psheet-lock { overflow: hidden; }
.psheet {
  position: fixed; inset: 0; z-index: 110; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--nav-h, 70px) * .4 + 12px) 16px 40px;
  background: rgba(6,4,3,.72); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .2s;
}
.psheet.is-open { opacity: 1; }
.psheet__panel {
  position: relative; max-width: 1060px; margin: 0 auto; padding: 28px;
  background: linear-gradient(180deg, #1c1511, #120d0a 60%); color: var(--paper);
  border: 1px solid rgba(255,255,255,.08); border-top: 3px solid var(--red); border-radius: 14px;
  box-shadow: 0 40px 90px rgba(0,0,0,.8);
  transform: translateY(18px); transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.psheet.is-open .psheet__panel { transform: none; }
.psheet__close {
  position: absolute; top: 10px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  font-size: 1.8rem; line-height: 1; color: var(--paper); background: rgba(0,0,0,.45); cursor: pointer;
  border: 1px solid rgba(255,255,255,.14);
}
.psheet__close:hover { background: var(--red); border-color: var(--red); }

.psheet__top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.psheet__media { position: sticky; top: 0; }
.psheet__main {
  position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 42%, #f4efe7 0, #e6ddd0 55%, #c9bba8 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.2);
}
.psheet__main img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.psheet__main svg { width: 55%; height: auto; color: var(--ink); }
.psheet__media.is-toy .psheet__main img { padding: 22%; }          /* Hot Wheels stay small */
.psheet__media.is-logo .psheet__main { background: #fff; }
.psheet__main .stamp { position: absolute; top: 12px; left: 12px; }
.psheet__thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.psheet__thumbs button {
  width: 64px; height: 64px; border-radius: 8px; overflow: hidden; cursor: pointer; padding: 0;
  background: #efe8dd; border: 2px solid transparent; opacity: .7;
}
.psheet__thumbs button.is-on, .psheet__thumbs button:hover { border-color: var(--yellow); opacity: 1; }
.psheet__thumbs img { width: 100%; height: 100%; object-fit: contain; }

.psheet__info { padding-top: 6px; }
.psheet__name { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.12; letter-spacing: .01em; margin: 4px 44px 8px 0; }
.psheet__detail { color: var(--muted); font-size: .95rem; line-height: 1.45; margin-bottom: 8px; }
.psheet__meta { font-size: .82rem; color: var(--muted); letter-spacing: .03em; }
.psheet__price { font-family: var(--display); font-size: 2.2rem; color: var(--yellow); margin: 14px 0 6px; }
.psheet__price s { font-family: var(--body); font-size: 1rem; color: var(--muted); margin-left: 6px; }
.psheet__stock { margin-bottom: 6px; }
.psheet__buy { display: flex; gap: 12px; align-items: center; margin: 16px 0 20px; flex-wrap: wrap; }
.psheet__add { flex: 1; min-width: 180px; }
.qty--lg { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; overflow: hidden; }
.qty--lg button { width: 42px; height: 48px; font-size: 1.3rem; color: var(--paper); background: #1d1714; cursor: pointer; }
.qty--lg button:hover { background: #2b211c; color: var(--yellow); }
.qty--lg span { min-width: 40px; text-align: center; font-weight: 700; font-size: 1.05rem; }

.psheet__fit, .psheet__sec {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; margin-top: 16px;
}
.psheet__fit h3, .psheet__sec h3 {
  font-family: var(--cond); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; color: var(--yellow); margin-bottom: 10px;
}
.psheet__fit p { font-size: .92rem; line-height: 1.5; color: #ddd3c7; }
.fitv { display: inline-block; padding: 7px 12px; border-radius: 8px; font-weight: 600; margin-bottom: 10px; }
.fitv--yes { background: rgba(46,230,107,.12); color: #7CFF8A !important; border: 1px solid rgba(46,230,107,.35); }
.fitv--maybe { background: rgba(246,185,23,.12); color: var(--yellow) !important; border: 1px solid rgba(246,185,23,.35); }
.fitv--no { background: rgba(215,38,45,.12); border: 1px solid rgba(215,38,45,.4); }
.fitv a, .psheet__policy a { color: var(--yellow); }
.fitlist { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 14px; font-size: .9rem; }
.fitlist li::before { content: "✓ "; color: #7CFF8A; }
.fitlist__more::before { content: "" !important; }
.fitlist__more { color: var(--muted); }
.psheet__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.psheet__links .btn { font-size: .85rem; padding: 10px 16px; }

.psheet__about { font-size: .95rem; line-height: 1.6; color: #ddd3c7; max-width: 78ch; }
.psheet__about p + p { margin-top: 10px; }
.psheet__about h4 { font-family: var(--cond); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; color: var(--paper); margin: 16px 0 6px; }
.psheet__about ul { margin: 8px 0 4px 1.1em; }
.psheet__about li { margin: 3px 0; }
.psheet__about li::marker { color: var(--yellow); }
.psheet__about--plain { white-space: pre-line; }
.psheet__none { color: var(--muted); font-size: .92rem; }
.psheet__specs { width: 100%; max-width: 720px; border-collapse: collapse; font-size: .92rem; }
.psheet__specs th { text-align: left; width: 34%; padding: 9px 12px 9px 0; color: var(--muted); font-weight: 600; vertical-align: top; }
.psheet__specs td { padding: 9px 0; }
.psheet__specs tr + tr { border-top: 1px solid rgba(255,255,255,.06); }
.psheet__policy p, .psheet__mfg p { font-size: .92rem; line-height: 1.55; color: #ddd3c7; max-width: 78ch; }
.psheet__mfg dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin-top: 10px; font-size: .92rem; }
.psheet__mfg dt { color: var(--muted); }
.psheet__mfg a { color: var(--yellow); }

.psheet__rel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.relcard { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.relcard:hover { border-color: var(--yellow); }
.relcard .pimg { aspect-ratio: 1 / 1; height: auto; border-radius: 8px; }
.relcard__name { font-size: .82rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.relcard__price { font-weight: 700; color: var(--yellow); font-size: .9rem; }

@media (max-width: 820px) {
  .psheet { padding: 0; }
  .psheet__panel { border-radius: 0; min-height: 100%; padding: 18px 16px 40px; border-left: 0; border-right: 0; }
  .psheet__top { grid-template-columns: 1fr; gap: 18px; }
  .psheet__media { position: static; }
  .psheet__main { aspect-ratio: 4 / 3; }
  .psheet__rel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .psheet__specs th { width: 40%; }
}
@media (prefers-reduced-motion: reduce) { .psheet, .psheet__panel { transition: none; } }
.pwarranty { display: block; font-size: .72rem; font-weight: 600; color: #7CFF8A; letter-spacing: .02em; margin-top: 2px; }

/* order thank-you page */
.thanks { display: grid; place-items: center; text-align: center; }
.thanks__inner { max-width: 720px; }
.thanks__ref { margin-top: 18px; font-family: var(--cond); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); font-size: 1.1rem; }
.thanks__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 26px 0 18px; }
.thanks__note { font-size: .85rem; color: var(--muted); }
.thanks__note a { color: var(--yellow); }
.psheet__size { display: flex; align-items: center; gap: 10px; margin: 14px 0 -4px; font-family: var(--cond); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; }
.psheet__size select { width: auto; min-width: 150px; }

/* shop toolbar: one tap back to everything */
.shop-reset {
  flex: none; height: 44px; padding: 0 16px; border-radius: var(--radius); cursor: pointer; white-space: nowrap;
  background: var(--red); color: #fff; border: 1px solid var(--red);
  font-family: var(--cond); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .82rem;
  box-shadow: 0 0 0 0 rgba(215,38,45,.5); animation: resetPulse 1.8s ease-out 2;
}
.shop-reset:hover { background: #b81f25; }
@keyframes resetPulse { 0% { box-shadow: 0 0 0 0 rgba(215,38,45,.55); } 100% { box-shadow: 0 0 0 12px rgba(215,38,45,0); } }
.linkbtn { background: none; border: 0; padding: 0; color: var(--yellow); font: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 700px) { .shop-reset { width: 100%; } }
