/* ============================================================
   Home banner — newest cards, made automatically
   ============================================================ */
.nw-hero.has-products { background: var(--nw-navy); }
.nw-hero-product {
  --acc: 60, 200, 236;             /* accent colour (r, g, b) per slide */
  color: #fff; overflow: hidden;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center;
  padding: 44px 56px 110px;
  background:
    radial-gradient(circle at 78% 45%, rgba(var(--acc), .55), transparent 38%),
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, .08), transparent 40%),
    linear-gradient(135deg, #0b2a5b 0%, #10336e 55%, #0b2a5b 100%);
}
.nw-hero-product.is-active { display: grid; }
.nw-hero-product.is-gold   { --acc: 255, 196, 0; }
.nw-hero-product.is-purple { --acc: 150, 110, 255; }
.nw-hero-product.is-pink   { --acc: 255, 90, 150; }
.nw-hero-product.is-green  { --acc: 40, 210, 140; }
/* Soft dotted texture */
.nw-hero-product::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, transparent 100%);
}

.nw-hp-text { position: relative; z-index: 2; max-width: 560px; }
.nw-hp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.nw-hp-tags span { padding: 6px 12px; border-radius: 99px; font-size: .8rem; font-weight: 900; letter-spacing: .03em; }
.nw-hp-new { background: var(--nw-yellow); color: var(--nw-navy); text-transform: uppercase; }
.nw-hp-when { background: rgba(255, 255, 255, .12); color: #dbe9ff; }
.nw-hp-graded { background: rgba(var(--acc), .25); color: #fff; border: 1px solid rgba(var(--acc), .6); }
.nw-hero-product h2 { font-size: clamp(1.8rem, 3.2vw, 2.9rem); line-height: 1.08; margin: 0 0 10px; letter-spacing: -.5px; }
.nw-hero-product h2 a { color: #fff; }
.nw-hero-product h2 a:hover { text-decoration: none; color: #fff; opacity: .9; }
.nw-hp-sub { color: #aac6ee; font-weight: 800; font-size: 1.05rem; margin: 0 0 20px; }
.nw-hp-price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 24px; }
.nw-hp-price { font-size: 2.4rem; font-weight: 900; color: var(--nw-yellow); line-height: 1; }
.nw-hp-price del { font-size: .5em; color: #aac6ee; margin-right: 6px; }
.nw-hp-price ins { text-decoration: none; }
.nw-hp-cond { padding: 6px 12px; border-radius: 10px; background: rgba(255, 255, 255, .1); font-weight: 800; font-size: .9rem; }
.nw-hp-left { color: #ffb4b8; font-weight: 900; font-size: .9rem; }
.nw-btn-glass { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.nw-btn-glass:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.nw-hero-product .added_to_cart { color: #fff; font-weight: 900; align-self: center; }

/* The card itself, tilted with a glow and a moving shine */
.nw-hp-art { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; height: 100%; }
.nw-hp-glow {
  position: absolute; width: 330px; height: 330px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--acc), .75), transparent 65%); filter: blur(10px);
}
.nw-hp-card {
  position: relative; display: block; width: 255px; aspect-ratio: 63 / 88; border-radius: 14px; overflow: hidden;
  transform: rotate(-5deg); box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .15);
  transition: transform .35s ease; background: #fff;
}
.nw-hp-card img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.nw-hp-art:hover .nw-hp-card { transform: rotate(0deg) scale(1.04); }
.nw-hp-shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 45%, transparent 60%);
  transform: translateX(-120%);
}
.nw-hero-slide.is-active .nw-hp-shine { animation: nwShine 2.4s ease .6s 1 both; }
@keyframes nwShine { to { transform: translateX(120%); } }
.nw-hero-slide.is-active .nw-hp-text > * { animation: nwRise .5s ease both; }
.nw-hero-slide.is-active .nw-hp-text > *:nth-child(2) { animation-delay: .05s; }
.nw-hero-slide.is-active .nw-hp-text > *:nth-child(3) { animation-delay: .1s; }
.nw-hero-slide.is-active .nw-hp-text > *:nth-child(4) { animation-delay: .15s; }
.nw-hero-slide.is-active .nw-hp-text > *:nth-child(5) { animation-delay: .2s; }
.nw-hero-slide.is-active .nw-hp-card { animation: nwCardIn .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes nwRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes nwCardIn { from { opacity: 0; transform: rotate(6deg) translateY(30px) scale(.92); } to { opacity: 1; transform: rotate(-5deg); } }

/* Picture thumbnails along the bottom (click to jump) */
.nw-hero-dots.nw-hero-thumbs {
  bottom: 18px; left: 56px; right: auto; justify-content: flex-start; gap: 10px;
  padding: 8px; border-radius: 16px; background: rgba(5, 20, 48, .45); backdrop-filter: blur(6px);
}
.nw-hero-thumbs button {
  width: 44px; height: 60px; padding: 0; border-radius: 8px; overflow: hidden; background: #fff;
  opacity: .55; box-shadow: 0 0 0 2px transparent; transition: opacity .2s, transform .2s, box-shadow .2s;
}
.nw-hero-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.nw-hero-thumbs button:hover { opacity: .9; transform: translateY(-2px); }
.nw-hero-thumbs button.is-active { opacity: 1; box-shadow: 0 0 0 3px var(--nw-yellow); background: #fff; }

/* Timer bar across the top */
.nw-hero-progress { position: absolute; left: 0; right: 0; top: 0; height: 4px; z-index: 3; background: rgba(255, 255, 255, .12); }
.nw-hero-progress span { display: block; height: 100%; width: 0; background: var(--nw-yellow); }
.nw-hero-progress.is-running span { animation: nwProgress 6s linear forwards; }
.nw-hero:hover .nw-hero-progress span { animation-play-state: paused; }
@keyframes nwProgress { to { width: 100%; } }

@media (max-width: 900px) {

  .nw-hero-product { grid-template-columns: 1fr; padding: 28px 22px 100px; text-align: center; }
  .nw-hp-art { order: -1; margin-bottom: 18px; }
  .nw-hp-card { width: 170px; }
  .nw-hp-glow { width: 220px; height: 220px; }
  .nw-hp-tags, .nw-hp-price-row, .nw-hero-product .nw-hero-buttons { justify-content: center; }
  .nw-hp-text { max-width: none; }
  .nw-hero-dots.nw-hero-thumbs { left: 50%; transform: translateX(-50%); max-width: calc(100% - 24px); overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .nw-hero-slide.is-active .nw-hp-text > *, .nw-hero-slide.is-active .nw-hp-card, .nw-hero-slide.is-active .nw-hp-shine { animation: none; }
}

/* ── One fixed size for every slide, so the banner never jumps ── */
.nw-hero { height: 470px; }
.nw-hero-slide { position: absolute; inset: 0; min-height: 0; height: 100%; }
.nw-hero-product.is-active { display: grid; }
.nw-hero-product { height: 100%; }
.nw-hero-slide.has-image .nw-hero-content, .nw-hero-default .nw-hero-content { min-height: 0; height: 100%; }
/* Long names can't make it taller */
.nw-hero-product h2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nw-hp-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-hp-art { max-height: 100%; }
.nw-hp-card { max-height: 330px; width: auto; height: 330px; }
/* Picture-only slides fill the same box: the picture fits inside,
   with a soft blurred copy of itself filling the edges. */
.nw-hero-slide.is-image-only { background: var(--nw-navy); }
.nw-hero-slide.is-image-only .nw-hero-backdrop {
  position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); max-height: none;
  object-fit: cover; filter: blur(24px) brightness(.8); transform: scale(1.05);
}
.nw-hero-slide.is-image-only .nw-hero-picture { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.nw-hero-slide.is-image-only .nw-hero-picture img { position: static; width: 100%; height: 100%; max-height: none; object-fit: contain; }

@media (max-width: 900px) {
  .nw-hero { height: 590px; }
  .nw-hp-card { height: 210px; }
  .nw-hero-product { align-content: center; }
}
@media (max-width: 600px) {
  .nw-hero { height: 560px; }
  .nw-hero-product h2 { font-size: 1.5rem; }
  .nw-hp-price { font-size: 1.9rem; }
}

/* ── Buttons under the card, plain dots instead of card pictures ── */
.nw-hero-product { padding: 36px 56px 44px; }
.nw-hp-right { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; height: 100%; }
.nw-hp-art { height: auto; flex: 0 0 auto; }
.nw-hp-card { height: 300px; }
.nw-hp-buttons { justify-content: center; flex-wrap: nowrap; gap: 10px; }
.nw-hp-buttons .nw-btn { padding: 12px 22px; font-size: 1rem; white-space: nowrap; }
.nw-hero.has-products .nw-hero-dots { bottom: 16px; }
.nw-hero.has-products .nw-hero-dots button { width: 26px; height: 7px; background: rgba(255, 255, 255, .3); }
.nw-hero.has-products .nw-hero-dots button.is-active { background: var(--nw-yellow); width: 38px; }

@media (max-width: 900px) {
  .nw-hero-product { padding: 24px 20px 40px; }
  .nw-hp-right { order: -1; height: auto; gap: 14px; margin-bottom: 14px; }
  .nw-hp-art { order: 0; margin-bottom: 0; }
  .nw-hp-card { height: 190px; }
}

/* ============================================================
   3D: single cards spin, everything else turns on a display tile
   ============================================================ */
.nw-hp-art { perspective: 1100px; }
.nw-hp-art::after {                     /* soft shadow on the "floor" */
  content: ""; position: absolute; left: 50%; bottom: -18px; width: 180px; height: 22px; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .45), transparent); z-index: -1;
}
.nw-hp-card {
  transform-style: preserve-3d; -webkit-transform-style: preserve-3d;
  overflow: visible; background: none; box-shadow: none; border-radius: 0; transform: none;
}
.nw-hp-face {
  position: absolute; inset: 0; border-radius: 14px; overflow: hidden; background: #fff;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .15);
}
.nw-hp-front img { width: 100%; height: 100%; object-fit: contain; }

/* NerdWare card back */
.nw-hp-back {
  transform: rotateY(180deg); display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 210, 63, .95) 0 21%, transparent 21.5%),
    radial-gradient(circle at 50% 50%, #0b2a5b 0 25%, transparent 25.5%),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .25), transparent 40%),
    linear-gradient(160deg, #3cc8ec 0%, #1d74d0 45%, #0b2a5b 100%);
  box-shadow: inset 0 0 0 9px #0b2a5b, inset 0 0 0 12px var(--nw-aqua), 0 30px 60px rgba(0, 0, 0, .45);
}
.nw-hp-back-logo {
  font-weight: 900; font-size: 1.35rem; letter-spacing: -.5px; color: var(--nw-navy); transform: rotate(-12deg);
}
.nw-hp-back-logo span { color: #fff; text-shadow: 0 2px 0 var(--nw-navy); }

/* Display tile for boxes, ETBs, packs, slabs, plush */
.nw-hp-card.is-tile { height: 290px; aspect-ratio: 1 / 1; }
.nw-hp-card.is-tile .nw-hp-face { border-radius: 22px; padding: 16px; }
.nw-hp-card.is-tile .nw-hp-front img { border-radius: 10px; }

/* Movement */
.nw-hero-slide.is-active .nw-hp-card.is-spin {
  animation: nwSpinIn 1.8s cubic-bezier(.15, .7, .2, 1) both, nwSway 6s ease-in-out 1.8s infinite;
}
.nw-hero-slide.is-active .nw-hp-art:hover .nw-hp-card.is-spin { animation: nwSpinHover 1.1s ease-in-out both; }
.nw-hero-slide.is-active .nw-hp-card.is-tile {
  animation: nwTileIn 1s cubic-bezier(.2, .8, .2, 1) both, nwSwayWide 7s ease-in-out 1s infinite;
}
@keyframes nwSpinIn {
  0%   { transform: rotateY(-720deg) scale(.7); opacity: 0; }
  12%  { opacity: 1; }
  100% { transform: rotateY(0deg) scale(1); opacity: 1; }
}
@keyframes nwSpinHover { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
@keyframes nwSway {
  0%, 100% { transform: rotateY(0deg) rotateX(0deg) translateY(0); }
  25%      { transform: rotateY(16deg) rotateX(3deg) translateY(-6px); }
  75%      { transform: rotateY(-16deg) rotateX(-2deg) translateY(4px); }
}
@keyframes nwTileIn {
  from { transform: rotateY(-70deg) translateY(24px) scale(.85); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
@keyframes nwSwayWide {
  0%, 100% { transform: rotateY(0deg) translateY(0); }
  25%      { transform: rotateY(22deg) rotateX(4deg) translateY(-8px); }
  75%      { transform: rotateY(-22deg) rotateX(-3deg) translateY(4px); }
}

@media (max-width: 900px) {
  .nw-hp-card.is-tile { height: 190px; }
  .nw-hp-art::after { width: 130px; }
  .nw-hp-back-logo { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .nw-hero-slide.is-active .nw-hp-card.is-spin, .nw-hero-slide.is-active .nw-hp-card.is-tile,
  .nw-hero-slide.is-active .nw-hp-art:hover .nw-hp-card.is-spin { animation: none; }
}

/* Real card back (e.g. Pokémon) — the picture fills the whole back */
.nw-hp-back.has-picture { background: #1c2f6e; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.nw-hp-back.has-picture img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Bigger cards, same banner size (470px) ── */
.nw-hero-product { padding: 16px 56px 34px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.nw-hp-right { gap: 14px; }
.nw-hp-card { height: 352px; }
.nw-hp-card.is-tile { height: 330px; }
.nw-hp-glow { width: 420px; height: 420px; }
.nw-hp-art::after { width: 220px; bottom: -14px; }
.nw-hp-back-logo { font-size: 1.6rem; }

@media (max-width: 900px) {
  .nw-hero-product { padding: 20px 20px 38px; }
  .nw-hp-card { height: 230px; }
  .nw-hp-card.is-tile { height: 220px; }
  .nw-hp-glow { width: 270px; height: 270px; }
  .nw-hp-art::after { width: 150px; }
}
@media (max-width: 600px) {
  .nw-hp-card { height: 215px; }
  .nw-hp-card.is-tile { height: 200px; }
}

/* Fix: fading the spinning card in made the browser flatten it, so its front
   showed back-to-front instead of the card back. The fade now happens on the
   holder around it, and the card itself only turns. */
@keyframes nwSpinIn {
  0%   { transform: rotateY(-720deg) scale(.7); }
  100% { transform: rotateY(0deg) scale(1); }
}
@keyframes nwTileIn {
  from { transform: rotateY(-70deg) translateY(24px) scale(.85); }
  to   { transform: none; }
}
@keyframes nwArtFade { from { opacity: 0; } to { opacity: 1; } }
.nw-hero-slide.is-active .nw-hp-art { animation: nwArtFade .35s ease both; }

/* ── Quick menu down the right of the banner ── */
.nw-hero-menu {
  position: absolute; top: 22px; right: 22px; bottom: 22px; width: 250px; z-index: 4;
  display: flex; flex-direction: column; gap: 8px; padding: 18px 16px;
  border-radius: 20px; background: rgba(5, 20, 48, .38); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.nw-hero-menu h3 { color: #aac6ee; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 4px 4px; }
.nw-hero-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-radius: 12px; background: rgba(255, 255, 255, .08);
  color: #fff; font-weight: 800; font-size: .95rem; transition: background .15s, color .15s, transform .15s;
}
.nw-hero-menu a:hover { background: var(--nw-yellow); color: var(--nw-navy); text-decoration: none; transform: translateX(-3px); }
.nw-hm-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-hm-count { flex-shrink: 0; font-size: .75rem; font-weight: 900; padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, .14); }
.nw-hero-menu a:hover .nw-hm-count { background: rgba(11, 42, 91, .15); }
.nw-hero-menu a.nw-hm-all { margin-top: auto; justify-content: center; background: transparent; color: var(--nw-yellow); box-shadow: inset 0 0 0 2px rgba(255, 210, 63, .5); }
.nw-hero-menu a.nw-hm-all:hover { background: var(--nw-yellow); color: var(--nw-navy); }

/* Make room for it: slides and dots use the space to its left. */
.nw-hero.has-menu .nw-hero-product { padding-right: 294px; }
.nw-hero.has-menu .nw-hero-dots { right: 272px; }
.nw-hero.has-menu .nw-hero-progress { right: 0; }

@media (max-width: 1100px) {
  .nw-hero-menu { display: none; }
  .nw-hero.has-menu .nw-hero-product { padding-right: 56px; }
  .nw-hero.has-menu .nw-hero-dots { right: 0; }
}
@media (max-width: 900px) {
  .nw-hero.has-menu .nw-hero-product { padding-right: 20px; }
}
.nw-hero-menu { width: 272px; }
.nw-hero-menu a { font-size: .9rem; padding: 11px 12px; }
.nw-hero.has-menu .nw-hero-product { padding-right: 314px; }
.nw-hero.has-menu .nw-hero-dots { right: 294px; }
@media (max-width: 1100px) {
  .nw-hero.has-menu .nw-hero-product { padding-right: 56px; }
  .nw-hero.has-menu .nw-hero-dots { right: 0; }
}
@media (max-width: 900px) {
  .nw-hero.has-menu .nw-hero-product { padding-right: 20px; }
}

/* ============================================================
   The banner menu is the home page menu (left side)
   ============================================================ */
.nw-hero-menu { left: 22px; right: auto; width: 262px; gap: 5px; padding: 16px 14px; overflow: visible; }
.nw-hero-menu h3 { margin-bottom: 2px; }
.nw-hm-item { position: static; }
.nw-hero-menu .nw-hm-item > a { padding: 8px 12px; font-size: .9rem; }
.nw-hm-arrow { font-size: 1.2rem; line-height: 1; margin-left: -4px; opacity: .7; }
.nw-hm-item > a .nw-hm-label { flex: 1; }
.nw-hm-item:hover > a, .nw-hm-item:focus-within > a { background: var(--nw-yellow); color: var(--nw-navy); transform: none; }
.nw-hm-item:hover > a .nw-hm-count { background: rgba(11, 42, 91, .15); }

/* Drop-out panel: opens over the banner, same height as the menu */
.nw-hm-fly {
  display: none; position: absolute; top: -1px; bottom: -1px; left: 100%; z-index: 6;
  width: min(760px, calc(100vw - 420px)); overflow: auto;
  border-left: 12px solid transparent; background-clip: padding-box;   /* hover bridge */
}
.nw-hm-fly::before { content: ""; position: absolute; inset: 0; border-radius: 20px; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); z-index: -1; }
.nw-hm-item.has-fly:hover .nw-hm-fly, .nw-hm-item.has-fly:focus-within .nw-hm-fly { display: block; }
.nw-hm-fly { padding: 20px 24px; color: var(--nw-ink); isolation: isolate; }
.nw-hm-fly-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--nw-line); }
.nw-hm-fly-head b { font-size: 1.25rem; color: var(--nw-navy); font-weight: 900; }
.nw-hero-menu .nw-hm-fly a { display: inline; padding: 0; background: none; color: var(--nw-blue); font-size: inherit; border-radius: 0; box-shadow: none; transform: none; }
.nw-hero-menu .nw-hm-fly a:hover { background: none; color: var(--nw-blue-dark); text-decoration: underline; }
.nw-hm-fly-head a { font-weight: 900; }
.nw-hm-fly-cols { display: flex; gap: 26px; flex-wrap: wrap; }
.nw-hm-fly-col { flex: 1 1 190px; min-width: 0; }
.nw-hm-fly-cols:has(> .nw-hm-fly-col:only-child) ul { columns: 3; column-gap: 24px; }
.nw-hm-fly-col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px; }
.nw-hero-menu .nw-hm-fly-col h4 a { color: var(--nw-navy); font-weight: 900; }
.nw-hm-fly-col ul { list-style: none; margin: 0; padding: 0; }
.nw-hm-fly-col li { break-inside: avoid; }
.nw-hero-menu .nw-hm-fly-col li a { display: block; padding: 4px 0; color: var(--nw-ink); font-weight: 700; font-size: .92rem; }
.nw-hero-menu .nw-hm-fly-col li a:hover { color: var(--nw-blue); }
.nw-hm-fly-col li a span { color: var(--nw-muted); font-weight: 600; font-size: .85em; }
.nw-hero-menu .nw-hm-fly-all { display: inline-block; margin-top: 8px; font-weight: 900; font-size: .9rem; }

/* Room for the menu on the left */
.nw-hero.has-menu .nw-hero-product { padding-left: 314px; padding-right: 56px; }
.nw-hero.has-menu .nw-hero-dots { left: 290px; right: 0; }

/* Home page: the banner menu replaces the top menu on big screens */
@media (min-width: 1101px) {
  body.home:has(.nw-hero-menu) .nw-nav { display: none; }
}
@media (max-width: 1100px) {
  .nw-hero.has-menu .nw-hero-product { padding-left: 56px; padding-right: 56px; }
  .nw-hero.has-menu .nw-hero-dots { left: 0; }
}
@media (max-width: 900px) {
  .nw-hero.has-menu .nw-hero-product { padding-left: 20px; padding-right: 20px; }
}

/* ── Drop-out: picture tiles for sets ── */
.nw-hm-fly { width: min(800px, calc(100vw - 420px)); overflow: hidden; }
.nw-hm-fly-head { margin-bottom: 14px; }
.nw-hm-fly-body { display: grid; grid-template-columns: 1fr; gap: 22px; }
.nw-hm-fly-body.has-side { grid-template-columns: minmax(0, 1fr) 190px; }
.nw-hm-sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.nw-hm-sec-head h4, .nw-hm-side-group h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--nw-muted); margin: 0; }
.nw-hero-menu .nw-hm-sec-head a { font-weight: 900; font-size: .88rem; }

.nw-set-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.nw-hero-menu .nw-hm-fly a.nw-set-tile {
  display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 8px 10px;
  border-radius: 14px; background: var(--nw-bg); border: 2px solid transparent; color: var(--nw-ink);
  text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s, background .15s;
}
.nw-hero-menu .nw-hm-fly a.nw-set-tile:hover {
  background: #fff; border-color: var(--nw-aqua); transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(11, 42, 91, .14); text-decoration: none; color: var(--nw-ink);
}
.nw-set-pic {
  height: 84px; border-radius: 10px; margin-bottom: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: radial-gradient(circle at 50% 60%, #d8f4fc, #eaf3fb 70%);
}
.nw-set-pic img { height: 74px; width: auto; object-fit: contain; transform: rotate(-6deg); filter: drop-shadow(0 4px 6px rgba(11, 42, 91, .25)); transition: transform .2s; }
.nw-set-tile:hover .nw-set-pic img { transform: rotate(0deg) scale(1.08); }
.nw-set-none { font-size: 2rem; }
.nw-set-name {
  font-weight: 900; font-size: .82rem; line-height: 1.2; color: var(--nw-navy);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em;
}
.nw-set-count { font-size: .74rem; font-weight: 700; color: var(--nw-muted); }

.nw-hm-fly-side { border-left: 1px solid var(--nw-line); padding-left: 18px; display: grid; align-content: start; gap: 16px; }
.nw-hm-side-group h4 { margin-bottom: 8px; }
.nw-hero-menu .nw-hm-side-group h4 a { color: var(--nw-navy); font-weight: 900; }
.nw-hm-side-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nw-hero-menu .nw-hm-side-group li a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px;
  background: var(--nw-bg); color: var(--nw-ink); font-weight: 800; font-size: .88rem;
}
.nw-hero-menu .nw-hm-side-group li a:hover { background: var(--nw-yellow); color: var(--nw-navy); text-decoration: none; }
.nw-hm-side-group li b { font-size: .72rem; padding: 2px 8px; border-radius: 99px; background: #fff; color: var(--nw-muted); }
.nw-hm-fly { padding: 16px 20px; }
.nw-hm-fly-head { margin-bottom: 10px; padding-bottom: 8px; }
.nw-set-pic { height: 70px; }
.nw-set-pic img { height: 62px; }
/* The top category you are in */
.nw-hm-item.is-here > a { box-shadow: inset 0 0 0 2px var(--nw-yellow); }
.nw-hm-item.is-here > a .nw-hm-label::before { content: "● "; color: var(--nw-yellow); }

/* Drop-outs are opened by the menu code (is-open), not by plain hover,
   so they don't vanish while the mouse travels to them. */
.nw-hero-menu.js-menu .nw-hm-fly { display: none !important; }
.nw-hero-menu.js-menu .nw-hm-item.has-fly.is-open .nw-hm-fly { display: block !important; }
.nw-hero-menu.js-menu .nw-hm-item:hover > a { background: rgba(255, 255, 255, .16); color: #fff; }
.nw-hero-menu.js-menu .nw-hm-item.is-open > a,
.nw-hero-menu.js-menu .nw-hm-item:focus-within > a { background: var(--nw-yellow); color: var(--nw-navy); }
.nw-hero-menu.js-menu .nw-hm-item.is-open > a .nw-hm-count { background: rgba(11, 42, 91, .15); }
/* Wider invisible bridge between the menu and its drop-out */
.nw-hm-fly { border-left-width: 20px; margin-left: -8px; }

/* ============================================================
   Shop pages: drop-down menu (sub-categories open inside the menu)
   ============================================================ */
.nw-hero-menu.is-dropdown .nw-hm-row { display: flex; align-items: stretch; gap: 4px; }
.nw-hero-menu.is-dropdown .nw-hm-row > a { flex: 1; min-width: 0; padding: 8px 12px; font-size: .9rem; }
.nw-hero-menu.is-dropdown .nw-hm-row > a:hover { background: rgba(255, 255, 255, .16); color: #fff; transform: none; }
.nw-hm-toggle {
  width: 36px; flex-shrink: 0; border: 0; border-radius: 12px; cursor: pointer; font-size: 1rem; font-weight: 900;
  background: rgba(255, 255, 255, .08); color: #cfe3ff; transition: background .15s, transform .2s;
}
.nw-hm-toggle:hover { background: var(--nw-yellow); color: var(--nw-navy); }
.nw-hm-item.is-expanded .nw-hm-toggle { transform: rotate(180deg); background: var(--nw-yellow); color: var(--nw-navy); }
.nw-hm-drop { display: none; margin: 6px 0 4px 10px; padding: 6px 0 6px 12px; border-left: 2px solid rgba(255, 210, 63, .5); }
.nw-hm-item.is-expanded .nw-hm-drop { display: block; animation: nwDrop .2s ease both; }
@keyframes nwDrop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.nw-hm-drop ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 2px; }
.nw-hero-menu.is-dropdown .nw-hm-drop a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 9px;
  background: none; color: #dbe9ff; font-weight: 700; font-size: .86rem; transform: none;
}
.nw-hero-menu.is-dropdown .nw-hm-drop a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-hero-menu.is-dropdown .nw-hm-drop a b { flex-shrink: 0; font-size: .7rem; color: #aac6ee; }
.nw-hero-menu.is-dropdown .nw-hm-drop a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.nw-hero-menu.is-dropdown .nw-hm-drop a.is-current { background: var(--nw-yellow); color: var(--nw-navy); }
.nw-hero-menu.is-dropdown .nw-hm-drop a.is-current b { color: var(--nw-navy); }
.nw-hero-menu.is-dropdown a.nw-hm-drop-head { color: #fff; font-weight: 900; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.nw-hero-menu.is-dropdown a.nw-hm-drop-all { color: var(--nw-yellow); font-weight: 900; }
.nw-hero-menu.is-dropdown .nw-hm-item.is-here > .nw-hm-row > a { box-shadow: inset 0 0 0 2px var(--nw-yellow); }

/* ── Buttons on the left under the price; the card gets the whole right side ── */
.nw-hp-text .nw-hp-buttons { justify-content: flex-start; margin-top: 4px; }
.nw-hp-text .nw-hp-buttons .nw-btn { padding: 13px 24px; font-size: 1rem; }
.nw-hero-product { padding-top: 14px; padding-bottom: 30px; }
.nw-hp-right { gap: 0; }
.nw-hp-card { height: 410px; }
.nw-hp-card.is-tile { height: 360px; }
.nw-hp-glow { width: 480px; height: 480px; }
.nw-hp-art::after { width: 250px; bottom: -12px; }
@media (max-width: 900px) {
  .nw-hp-card { height: 250px; }
  .nw-hp-card.is-tile { height: 230px; }
  .nw-hp-glow { width: 300px; height: 300px; }
  .nw-hp-text .nw-hp-buttons { justify-content: center; }
}
/* Let the banner card use its full new size */
.nw-hp-card { max-height: none; height: 420px; width: auto; }
.nw-hp-card.is-tile { max-height: none; height: 370px; }
@media (max-width: 900px) { .nw-hp-card { height: 250px; } .nw-hp-card.is-tile { height: 230px; } }

/* ============================================================
   Sealed products: the real box floats in 3D (no white tile)
   ============================================================ */
.nw-hp-card.is-cutout {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  width: 440px; height: 360px; transform-style: preserve-3d; background: none; box-shadow: none;
}
.nw-cut-img {
  position: relative; z-index: 2; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .55)) drop-shadow(0 0 30px rgba(var(--acc), .35));
}
/* A light sweep that only lands on the box itself */
.nw-cut-shine {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  -webkit-mask: var(--cut) center bottom / contain no-repeat; mask: var(--cut) center bottom / contain no-repeat;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .5) 47%, transparent 58%) 0 0 / 250% 100% no-repeat;
  background-position: 130% 0;
}
.nw-hero-slide.is-active .nw-cut-shine { animation: nwCutShine 4.5s ease-in-out 1s infinite; }
@keyframes nwCutShine { 0% { background-position: 130% 0; } 45%, 100% { background-position: -40% 0; } }
/* Mirror reflection on a glossy floor */
.nw-cut-reflect {
  position: absolute; left: 50%; top: 100%; z-index: 1; max-width: 100%; max-height: 100%; width: auto; height: auto;
  transform: translateX(-50%) scaleY(-1); opacity: .28; filter: blur(1px);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, .9), transparent 35%); mask-image: linear-gradient(to top, rgba(0, 0, 0, .9), transparent 35%);
}
.nw-hp-art:has(.is-cutout)::after { width: 380px; height: 34px; bottom: -6px; opacity: .9; }
/* Slow 3D turn and float */
.nw-hero-slide.is-active .nw-hp-card.is-cutout {
  animation: nwCutIn 1s cubic-bezier(.2, .8, .2, 1) both, nwCutSway 8s ease-in-out 1s infinite;
}
@keyframes nwCutIn {
  from { transform: perspective(1000px) rotateY(-55deg) translateY(30px) scale(.85); opacity: 0; }
  to   { transform: perspective(1000px) rotateY(-14deg); opacity: 1; }
}
@keyframes nwCutSway {
  0%, 100% { transform: perspective(1000px) rotateY(-14deg) rotateX(2deg) translateY(0); }
  50%      { transform: perspective(1000px) rotateY(14deg) rotateX(-1deg) translateY(-10px); }
}
@media (max-width: 900px) {
  .nw-hp-card.is-cutout { width: 280px; height: 220px; }
  .nw-hp-art:has(.is-cutout)::after { width: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .nw-hero-slide.is-active .nw-hp-card.is-cutout, .nw-hero-slide.is-active .nw-cut-shine { animation: none; }
}
.nw-hp-card.is-cutout img { background: none !important; border-radius: 0; box-shadow: none; }

/* ============================================================
   Graded slabs: a clear acrylic case with a grading label
   ============================================================ */
.nw-hp-card.is-slab-case {
  --lab: #c8102e; --lab-bg: #fff; --lab-ink: #0b1a33;   /* PSA-style red by default */
  height: 430px; width: auto; aspect-ratio: 0.6; background: none; box-shadow: none; transform-style: preserve-3d;
}
.nw-hp-card.is-slab-case.is-ace { --lab: #111; --lab-bg: linear-gradient(135deg, #1b1b1b, #3a3a3a); --lab-ink: #f5d27a; }
.nw-hp-card.is-slab-case.is-cgc { --lab: #1d4fa0; --lab-bg: #fff; --lab-ink: #0b1a33; }
.nw-hp-card.is-slab-case.is-bgs { --lab: #9aa4b2; --lab-bg: linear-gradient(135deg, #e9edf2, #c9d1db); --lab-ink: #0b1a33; }
.nw-slab {
  position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; padding: 10px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, .08) 45%, rgba(255, 255, 255, .22));
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .55), inset 0 0 0 7px rgba(255, 255, 255, .12),
    0 30px 60px rgba(0, 0, 0, .5), 0 0 40px rgba(var(--acc), .35);
  backdrop-filter: blur(2px);
}
.nw-slab-label {
  position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 2px 8px; align-items: center;
  padding: 8px 10px; border-radius: 8px; background: var(--lab-bg); color: var(--lab-ink);
  box-shadow: inset 0 0 0 3px var(--lab), 0 2px 6px rgba(0, 0, 0, .25);
}
.nw-slab-name { min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.nw-slab-name b { font-size: .78rem; font-weight: 900; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-slab-name small { font-size: .62rem; font-weight: 800; opacity: .75; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-slab-grade { grid-row: 1 / 3; grid-column: 2; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.nw-slab-grade small { font-size: .55rem; font-weight: 900; letter-spacing: .04em; }
.nw-slab-grade b { font-size: 1.9rem; font-weight: 900; }
.nw-slab-grader { grid-column: 1; font-size: .62rem; font-weight: 900; letter-spacing: .1em; color: var(--lab); }
.is-ace .nw-slab-grader { color: #f5d27a; }
.nw-slab-window {
  flex: 1; margin-top: 10px; display: flex; align-items: center; justify-content: center; border-radius: 8px; overflow: hidden;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.nw-hp-card.is-slab-case .nw-slab-window img { height: 96%; width: auto; max-width: 96%; object-fit: contain; border-radius: 6px; background: none; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
/* Glass shine sweeping across the case */
.nw-slab-glass {
  position: absolute; inset: 0; border-radius: 16px; pointer-events: none; overflow: hidden;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .45) 48%, transparent 58%) 0 0 / 260% 100% no-repeat;
  background-position: 130% 0;
}
.nw-hero-slide.is-active .nw-slab-glass { animation: nwCutShine 5s ease-in-out 1s infinite; }
/* 3D turn */
.nw-hero-slide.is-active .nw-hp-card.is-slab-case {
  animation: nwCutIn 1s cubic-bezier(.2, .8, .2, 1) both, nwCutSway 8s ease-in-out 1s infinite;
}
@media (max-width: 900px) { .nw-hp-card.is-slab-case { height: 260px; } .nw-slab-grade b { font-size: 1.3rem; } }
@media (prefers-reduced-motion: reduce) {
  .nw-hero-slide.is-active .nw-hp-card.is-slab-case, .nw-hero-slide.is-active .nw-slab-glass { animation: none; }
}

/* Slabs with a front AND back photo: turn right round, back shows when facing away */
.nw-hp-card.is-slab-flip { height: 430px; aspect-ratio: .62; width: auto; transform-style: preserve-3d; background: none; box-shadow: none; }
.nw-flip-face {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 14px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.nw-flip-face img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: none !important;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, .5)); }
.nw-flip-back { transform: rotateY(180deg); }
.nw-hero-slide.is-active .nw-hp-card.is-slab-flip { animation: nwArtFade .4s ease both, nwSlabFlip 9s ease-in-out .4s infinite; }
@keyframes nwSlabFlip {
  0%, 30%   { transform: perspective(1100px) rotateY(-12deg); }
  45%, 75%  { transform: perspective(1100px) rotateY(168deg); }
  90%, 100% { transform: perspective(1100px) rotateY(348deg); }
}
.nw-hero-slide.is-active .nw-hp-art:hover .nw-hp-card.is-slab-flip { animation-play-state: paused; }
@media (max-width: 900px) { .nw-hp-card.is-slab-flip { height: 260px; } }
@media (prefers-reduced-motion: reduce) { .nw-hero-slide.is-active .nw-hp-card.is-slab-flip { animation: none; } }

/* Pictures that can't be cut out (e.g. slab photos on a coloured background):
   the photo itself floats — no white tile around it. */
.nw-hp-card.is-photo { height: 420px; width: auto; aspect-ratio: auto; }
.nw-hp-card.is-photo .nw-hp-face { position: relative; inset: auto; height: 100%; padding: 0; background: none; border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5), 0 0 40px rgba(var(--acc), .35); }
.nw-hp-card.is-photo .nw-hp-front img { width: auto; height: 100%; max-width: 440px; object-fit: contain; border-radius: 12px; background: none; }
@media (max-width: 900px) { .nw-hp-card.is-photo { height: 250px; } .nw-hp-card.is-photo .nw-hp-front img { max-width: 280px; } }
/* Real photos: fit inside the banner, no escaping shine */
.nw-hp-card.is-photo { height: 370px; }
.nw-hp-card.is-photo .nw-hp-front img { max-width: 400px; }
.nw-hp-card.is-photo .nw-hp-shine, .nw-hp-card.is-tile .nw-hp-shine { display: none; }
.nw-hero { overflow: hidden; }
@media (max-width: 900px) { .nw-hp-card.is-photo { height: 240px; } }
