/* =====================================================================
   THAT HOCKEY × NITEX — the product stage (single product), concept port.
   Lime glow + giant outlined ghost word + floating garment, big side
   arrows to the previous / next product, an under-image pager, the dock
   (meta / name / price / description + buy panel), thumbs, "More from the
   drop", and the hockey slapshot add-to-cart. Scoped to body.th-nx.
   ===================================================================== */

body.th-nx #nx-pdp { position: relative; }

/* ---------- stage ---------- */
body.th-nx .nx-stage { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; padding-top: 70px; }
body.th-nx .nx-stage-center { position: relative; flex: 1; min-height: 58vh; perspective: 1200px; }
body.th-nx .nx-glow {
    position: absolute; left: 50%; top: 50%; width: min(80vw, 760px); height: min(80vw, 760px); transform: translate(-50%, -48%);
    z-index: 1; pointer-events: none; border-radius: 50%;
    background: radial-gradient(circle, rgba(215, 255, 0, 0.26) 0%, rgba(215, 255, 0, 0.07) 36%, transparent 66%);
    filter: blur(6px); will-change: transform;
}
body.th-nx .nx-ghost {
    position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-54%); z-index: 2; pointer-events: none; user-select: none;
    text-align: center; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(215, 255, 0, 0.34);
    font-family: var(--nx-anton); text-transform: uppercase; line-height: 0.84; letter-spacing: -0.01em;
    font-size: clamp(84px, 25vw, 420px); will-change: transform;
}
body.th-nx .nx-ghost b { font-weight: 400; }

body.th-nx .nx-garment-wrap { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; pointer-events: none; will-change: transform; }
body.th-nx .nx-garment { position: relative; width: min(74vw, 560px); max-height: 100%; aspect-ratio: 1 / 1; animation: nx-bob 7s ease-in-out infinite; }
body.th-nx .nx-garment img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1;
    filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.6)); opacity: 0;
    transition: transform 0.6s var(--nx-ease), opacity 0.45s ease; will-change: transform, opacity;
}
body.th-nx .nx-garment img.on { opacity: 1; }
body.th-nx .nx-garment img:not([src]) { display: none; }
@keyframes nx-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* big side arrows: switch product */
body.th-nx .nx-navarrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 12; width: 54px; height: 54px;
    display: flex; align-items: center; justify-content: center; background: rgba(18, 18, 18, 0.5);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid var(--nx-line); color: var(--nx-ink);
    font-family: var(--nx-mono); font-size: 24px; line-height: 1; text-decoration: none;
    transition: background 0.2s var(--nx-ease), color 0.2s var(--nx-ease), border-color 0.2s var(--nx-ease), transform 0.2s var(--nx-ease);
}
body.th-nx .nx-navarrow:hover { background: var(--nx-acid); color: #000; border-color: var(--nx-acid); }
body.th-nx .nx-navarrow:active { transform: translateY(-50%) scale(0.92); }
body.th-nx .nx-navarrow.prev { left: clamp(10px, 3vw, 40px); }
body.th-nx .nx-navarrow.next { right: clamp(10px, 3vw, 40px); }

/* under-image pager: this product's images */
body.th-nx .nx-gnav { position: absolute; left: 50%; bottom: clamp(14px, 4vh, 42px); transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: clamp(10px, 1.6vw, 16px); }
body.th-nx .nx-gnav-btn {
    width: 44px; height: 44px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; padding: 0;
    background: rgba(18, 18, 18, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border: 1px solid var(--nx-line); border-radius: 0; color: var(--nx-ink); cursor: pointer; font-family: var(--nx-mono); font-size: 19px; line-height: 1;
    transition: background 0.2s var(--nx-ease), color 0.2s var(--nx-ease), border-color 0.2s var(--nx-ease), transform 0.2s var(--nx-ease);
}
body.th-nx .nx-gnav-btn:hover { background: var(--nx-acid); color: #000; border-color: var(--nx-acid); }
body.th-nx .nx-gnav-btn:active { transform: scale(0.92); }
body.th-nx .nx-gnav-mid {
    display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 118px; padding: 8px 16px;
    background: rgba(18, 18, 18, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid var(--nx-line);
}
body.th-nx .nx-gnav-view { font-family: var(--nx-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--nx-ink); }
body.th-nx .nx-gnav-count { font-family: var(--nx-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--nx-dim); white-space: nowrap; }
body.th-nx .nx-gnav-count b { color: var(--nx-acid); font-weight: 400; }

/* ---------- dock ---------- */
body.th-nx .nx-dock {
    position: relative; z-index: 20; margin-top: auto; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end;
    padding: 0 var(--nx-bleed) clamp(28px, 4vh, 56px);
}
body.th-nx .nx-info { max-width: 46ch; }
body.th-nx .nx-meta { font-family: var(--nx-mono); text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; color: var(--nx-acid); margin-bottom: 14px; }
body.th-nx .nx-pname {
    font-family: var(--nx-anton); font-weight: 400; text-transform: uppercase; line-height: 0.84; letter-spacing: -0.01em;
    font-size: clamp(2.6rem, 6vw, 5.4rem); margin: 0; color: var(--nx-ink);
}
body.th-nx .nx-price { font-family: var(--nx-mono); font-size: 1.35rem; color: var(--nx-acid); margin: 14px 0 22px; }
body.th-nx .nx-price .amount, body.th-nx .nx-price bdi { color: var(--nx-acid); }
body.th-nx .nx-price del { color: var(--nx-faint); margin-right: 8px; }
body.th-nx .nx-price del .amount, body.th-nx .nx-price del bdi { color: var(--nx-faint); }
body.th-nx .nx-price ins { text-decoration: none; }
body.th-nx .nx-pdesc { border-top: 1px solid var(--nx-line); padding-top: 18px; max-width: 46ch; color: var(--nx-dim); font-size: clamp(0.95rem, 1.4vw, 1.05rem); line-height: 1.6; }
body.th-nx .nx-pdesc p { margin: 0 0 0.8em; }
body.th-nx .nx-pdesc p:last-child { margin-bottom: 0; }

/* ---------- buy panel ---------- */
body.th-nx .nx-buy {
    width: min(92vw, 360px); background: rgba(18, 18, 18, 0.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid var(--nx-line); padding: 22px;
}
body.th-nx .nx-buy-form { margin: 0; }
body.th-nx .nx-sizes-set { border: 0; padding: 0; margin: 0; min-width: 0; }
body.th-nx .nx-buy-label {
    width: 100%; float: none; font-family: var(--nx-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--nx-dim);
    margin: 0 0 12px; padding: 0; display: flex; justify-content: space-between; gap: 12px; line-height: 1.4;
}
body.th-nx .nx-buy-label .pick { color: var(--nx-acid); }
body.th-nx .nx-buy-label .pick.warn { color: #ff5a3c; }
body.th-nx .nx-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; margin-bottom: 18px; }
body.th-nx .nx-sizes.shake { animation: nx-shake 0.4s ease; }
body.th-nx .nx-size { position: relative; display: block; margin: 0; cursor: pointer; }
body.th-nx .nx-size input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
body.th-nx .nx-size span {
    display: flex; align-items: center; justify-content: center; font-family: var(--nx-mono); font-size: 13px; padding: 13px 0;
    border: 1px solid var(--nx-line); color: var(--nx-ink);
    transition: background 0.2s var(--nx-ease), color 0.2s var(--nx-ease), border-color 0.2s var(--nx-ease), transform 0.2s var(--nx-ease);
}
body.th-nx .nx-size:hover span { border-color: var(--nx-acid); }
body.th-nx .nx-size input:checked + span { background: var(--nx-acid); color: #000; border-color: var(--nx-acid); transform: translateY(-2px); }
body.th-nx .nx-size input:focus-visible + span { outline: 2px solid var(--nx-acid); outline-offset: 2px; }
body.th-nx .nx-size.is-out { cursor: not-allowed; }
body.th-nx .nx-size.is-out input { cursor: not-allowed; }
body.th-nx .nx-size.is-out span { color: var(--nx-faint); border-color: var(--nx-line2); text-decoration: line-through; }
body.th-nx .nx-size.is-out:hover span { border-color: var(--nx-line2); }

body.th-nx .nx-addbtn {
    position: relative; width: 100%; overflow: hidden; border: 1px solid var(--nx-acid); border-radius: 0; background: var(--nx-acid); color: #000; cursor: pointer;
    font-family: var(--nx-mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; padding: 17px 0;
    display: flex; align-items: center; justify-content: center; gap: 10px; isolation: isolate; transition: color 0.4s var(--nx-ease);
}
body.th-nx .nx-addbtn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--nx-bg); transform: translateY(101%); transition: transform 0.4s var(--nx-ease); }
body.th-nx .nx-addbtn:hover:not(:disabled) { color: var(--nx-acid); }
body.th-nx .nx-addbtn:hover:not(:disabled)::before { transform: translateY(0); }
body.th-nx .nx-addbtn:focus-visible { outline: 2px solid var(--nx-acid); outline-offset: 3px; }
body.th-nx .nx-addbtn.done { color: #000; }
body.th-nx .nx-addbtn.done::before { transform: translateY(101%); }
body.th-nx .nx-addbtn:disabled { background: transparent; color: var(--nx-faint); border-color: var(--nx-line); cursor: not-allowed; }
body.th-nx .nx-addbtn.committing { animation: nx-add-pop 0.45s var(--nx-ease); }
@keyframes nx-add-pop { 0% { transform: scale(1); } 28% { transform: scale(0.94); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
body.th-nx .nx-buy-note { font-family: var(--nx-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--nx-dim); margin-top: 12px; text-align: center; }
body.th-nx .nx-buy-err { font-family: var(--nx-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #ff5a3c; margin-top: 10px; text-align: center; }
body.th-nx .nx-buy-err:empty { display: none; }

/* Woo's own form (products with several variation attributes) inside the panel */
body.th-nx .nx-buy form.cart table.variations { width: 100%; margin-bottom: 14px; color: var(--nx-ink); }
body.th-nx .nx-buy form.cart table.variations th,
body.th-nx .nx-buy form.cart table.variations td { display: block; padding: 0 0 6px; text-align: left; font-family: var(--nx-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--nx-dim); }
body.th-nx .nx-buy form.cart select { width: 100%; background: var(--nx-bg); color: var(--nx-ink); border: 1px solid var(--nx-line); border-radius: 0; padding: 12px; font-family: var(--nx-mono); }
body.th-nx .nx-buy form.cart .reset_variations { color: var(--nx-dim); font-family: var(--nx-mono); font-size: 10px; text-transform: uppercase; }
body.th-nx .nx-buy form.cart .single_variation .price { color: var(--nx-acid); font-family: var(--nx-mono); }
body.th-nx .nx-buy form.cart .quantity { display: none; }
body.th-nx .nx-buy form.cart .single_add_to_cart_button {
    width: 100%; background: var(--nx-acid) !important; color: #000 !important; border: 1px solid var(--nx-acid) !important; border-radius: 0;
    font-family: var(--nx-mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; padding: 17px 0;
}

/* thumbs */
body.th-nx .nx-thumbs { display: flex; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--nx-line2); overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
body.th-nx .nx-thumbs::-webkit-scrollbar { display: none; }
body.th-nx .nx-thumb {
    flex: 0 0 54px; width: 54px; height: 54px; padding: 0; border: 1px solid var(--nx-line2); border-radius: 0; background: var(--nx-img);
    cursor: pointer; overflow: hidden; transition: border-color 0.25s var(--nx-ease), transform 0.25s var(--nx-ease);
}
body.th-nx .nx-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
body.th-nx .nx-thumb:hover { border-color: var(--nx-line); }
body.th-nx .nx-thumb.sel { border-color: var(--nx-acid); transform: translateY(-2px); }
body.th-nx .nx-thumb:focus-visible { outline: 2px solid var(--nx-acid); outline-offset: 2px; }

/* notices above the stage (no-JS add / errors) */
body.th-nx #nx-pdp > .woocommerce-notices-wrapper:not(:empty) { position: relative; z-index: 30; padding: 90px var(--nx-bleed) 0; margin-bottom: -70px; }
body.th-nx #nx-pdp .woocommerce-message,
body.th-nx #nx-pdp .woocommerce-error,
body.th-nx #nx-pdp .woocommerce-info { background: var(--nx-panel); color: var(--nx-ink); border: 1px solid var(--nx-line); border-left: 3px solid var(--nx-acid); border-radius: 0; font-family: var(--nx-mono); font-size: 12px; }
body.th-nx #nx-pdp .woocommerce-message a,
body.th-nx #nx-pdp .woocommerce-error a { color: var(--nx-acid); }

/* ---------- related ---------- */
body.th-nx .nx-related { padding: clamp(72px, 10vw, 150px) var(--nx-bleed); border-top: 1px solid var(--nx-line); }
body.th-nx .nx-rel-eyebrow { display: flex; align-items: baseline; gap: 14px; font-family: var(--nx-mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; color: var(--nx-dim); margin-bottom: clamp(26px, 4vw, 44px); }
body.th-nx .nx-rel-eyebrow .no { color: var(--nx-acid); }
body.th-nx .nx-rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); }
body.th-nx .nx-rel-card { display: flex; flex-direction: column; background: var(--nx-bg); color: var(--nx-ink); text-decoration: none; }
body.th-nx .nx-rel-grid > .nx-rel-card:nth-child(2) { transition-delay: 0.07s; }
body.th-nx .nx-rel-grid > .nx-rel-card:nth-child(3) { transition-delay: 0.14s; }
body.th-nx .nx-rel-imgwrap { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--nx-img); }
body.th-nx .nx-rel-imgwrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 11%; transition: transform 0.9s var(--nx-ease); z-index: 1; }
body.th-nx .nx-rel-card:hover .nx-rel-imgwrap img { transform: scale(1.06); }
body.th-nx .nx-rel-imgwrap::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border: 1px solid transparent; transition: border-color 0.4s var(--nx-ease); }
body.th-nx .nx-rel-card:hover .nx-rel-imgwrap::after,
body.th-nx .nx-rel-card:focus-visible .nx-rel-imgwrap::after { border-color: var(--nx-acid); }
body.th-nx .nx-rel-card:focus-visible { outline: none; }
body.th-nx .nx-rel-no { position: absolute; top: 12px; left: 12px; z-index: 4; font-family: var(--nx-mono); font-size: 11px; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.7); mix-blend-mode: difference; }
body.th-nx .nx-rel-view {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 12px; background: var(--nx-acid); color: #000;
    font-family: var(--nx-mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; text-align: center;
    transform: translateY(100%); transition: transform 0.45s var(--nx-ease);
}
body.th-nx .nx-rel-card:hover .nx-rel-view,
body.th-nx .nx-rel-card:focus-visible .nx-rel-view { transform: translateY(0); }
body.th-nx .nx-rel-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 2px 2px; }
body.th-nx .nx-rel-name { font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; }
body.th-nx .nx-rel-price { font-family: var(--nx-mono); font-size: 12px; color: var(--nx-acid); white-space: nowrap; }

/* ---------- hockey slapshot ---------- */
.nx-puck {
    position: fixed; z-index: 1410; pointer-events: none; width: 46px; height: 30px; border-radius: 50%;
    background: radial-gradient(58% 54% at 50% 36%, #3c3c3c 0%, #161616 56%, #000 100%);
    box-shadow: 0 9px 18px rgba(0, 0, 0, 0.6), inset 0 2px 2px rgba(255, 255, 255, 0.16), inset 0 -3px 5px rgba(0, 0, 0, 0.75);
    border: 1px solid #000; will-change: transform, opacity;
}
.nx-puck::after { content: ""; position: absolute; left: 16%; right: 16%; top: 46%; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); }
.nx-slap-streak {
    position: fixed; z-index: 1405; pointer-events: none; height: 3px; transform-origin: left center; border-radius: 3px;
    background: linear-gradient(90deg, rgba(215, 255, 0, 0) 0%, rgba(215, 255, 0, 0.8) 86%, #fff 100%);
    filter: blur(0.4px); opacity: 0; will-change: transform, opacity;
}
.nx-slap-burst { position: fixed; z-index: 1406; pointer-events: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #d7ff00; opacity: 0; }
.nx-goal-light {
    position: fixed; z-index: 1404; pointer-events: none; width: 170px; height: 170px; border-radius: 50%; opacity: 0;
    background: radial-gradient(circle, rgba(215, 255, 0, 0.55) 0%, rgba(215, 255, 0, 0.2) 42%, rgba(215, 255, 0, 0) 70%);
}
.nx-goal-stamp {
    position: fixed; z-index: 1412; pointer-events: none; font-family: 'Anton', 'Archivo', sans-serif; text-transform: uppercase;
    letter-spacing: 0.01em; line-height: 0.9; color: #d7ff00; font-size: 26px; opacity: 0; white-space: nowrap; text-align: center;
    text-shadow: 0 2px 0 #000, 0 0 1px #000;
}
.nx-goal-stamp small { display: block; font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 0.24em; color: #fff; margin-top: 4px; opacity: 0.8; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
    body.th-nx .nx-stage { min-height: auto; padding-top: 64px; }
    body.th-nx .nx-stage-center { flex: none; height: 54vh; min-height: 320px; }
    body.th-nx .nx-garment { width: min(74vw, 330px); }
    body.th-nx .nx-navarrow { width: 42px; height: 42px; font-size: 19px; }
    body.th-nx .nx-gnav { gap: 8px; bottom: 10px; }
    body.th-nx .nx-gnav-btn { width: 40px; height: 40px; font-size: 18px; }
    body.th-nx .nx-gnav-mid { min-width: 96px; }
    body.th-nx .nx-dock { grid-template-columns: 1fr; gap: 22px; margin-top: 0; padding-top: 10px; }
    body.th-nx .nx-buy { width: 100%; }
    body.th-nx .nx-pdesc, body.th-nx .nx-info { max-width: none; }
    body.th-nx .nx-rel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) { body.th-nx .nx-rel-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
    body.th-nx .nx-garment { animation: none; }
    body.th-nx .nx-garment img { transition: opacity 0.3s ease; }
    body.th-nx .nx-sizes.shake,
    body.th-nx .nx-addbtn.committing { animation: none; }
}
