:root {
  --bg: #09030f;
  --panel: rgba(26, 8, 42, 0.82);
  --panel-strong: rgba(34, 9, 55, 0.94);
  --border: rgba(209, 76, 255, 0.27);
  --border-bright: rgba(228, 109, 255, 0.55);
  --text: #fbf5ff;
  --muted: #cbb0db;
  --soft: #a78cba;
  --purple: #ad32ed;
  --pink: #ee42c5;
  --kick: #53fc18;
  --max: 1360px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  background:
    radial-gradient(circle at 50% -20%, rgba(161, 42, 235, 0.34), transparent 38rem),
    radial-gradient(circle at 93% 30%, rgba(231, 49, 189, 0.14), transparent 25rem),
    linear-gradient(180deg, #0d0316 0%, #07020d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.17;
  background: url("/images/purple-flame-background.svg") center / cover fixed;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.merch-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 28px 68px;
}

.merch-hero {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 385px;
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
  min-height: 480px;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid var(--border);
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 50%, rgba(211, 58, 255, 0.25), transparent 26rem),
    linear-gradient(130deg, rgba(39, 9, 64, 0.92), rgba(11, 3, 18, 0.95));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.merch-eyebrow {
  margin: 0 0 11px;
  color: #ed73ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.merch-hero h1 {
  margin: 0 0 18px;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(4rem, 7vw, 6.5rem);
  font-style: italic;
  letter-spacing: -0.045em;
  line-height: 0.94;
  text-transform: uppercase;
}

.merch-hero h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(100deg, #d38aff, #eb3fd0);
  background-clip: text;
  -webkit-background-clip: text;
}

.merch-hero-copy > p:not(.merch-eyebrow) {
  max-width: 610px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.merch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 25px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 150ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(110deg, #7525df, #bd38fa 56%, #e53ccc);
  box-shadow: 0 12px 30px rgba(171, 41, 245, 0.3);
}

.button.secondary {
  border: 1px solid rgba(217, 100, 255, 0.38);
  color: #ecd9fa;
  background: rgba(106, 30, 160, 0.15);
}

.merch-badge-card {
  display: grid;
  justify-items: center;
  gap: 13px;
  padding: 38px 28px;
  border: 1px solid rgba(229, 85, 255, 0.35);
  border-radius: 28px;
  background:
    radial-gradient(circle, rgba(179, 53, 255, 0.23), transparent 62%),
    rgba(16, 3, 27, 0.72);
  text-align: center;
}

.merch-badge-card img {
  width: min(100%, 275px);
  height: 265px;
  object-fit: contain;
  filter: drop-shadow(0 0 34px rgba(197, 45, 255, 0.46));
}

.merch-badge-card strong {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 34px;
  font-style: italic;
  letter-spacing: -0.02em;
}

.merch-badge-card span {
  color: #bd9cd3;
  font-weight: 600;
}

.featured-section {
  margin-top: clamp(48px, 8vw, 78px);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 30px;
}

.section-heading h2,
.store-cta h2 {
  margin: 0 0 13px;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(2.3rem, 4vw, 3.25rem);
  line-height: 1;
  text-transform: uppercase;
}

.section-heading > p:last-child,
.store-cta p:not(.merch-eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.store-cta {
  margin-top: clamp(48px, 8vw, 76px);
  padding: clamp(25px, 5vw, 42px);
  border: 1px solid var(--border-bright);
  border-radius: 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  background:
    radial-gradient(circle at 88% 30%, rgba(231, 49, 189, 0.16), transparent 25rem),
    var(--panel-strong);
}

.store-cta > div {
  max-width: 680px;
}

.button.large {
  min-width: 215px;
}

.merch-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 27px 28px 38px;
  border-top: 1px solid rgba(215, 70, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--soft);
  font-size: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #f5e7ff;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer-brand strong {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 23px;
  font-style: italic;
  text-transform: uppercase;
}

.merch-footer > a:last-child {
  color: #e66cff;
  font-weight: 750;
}

@media (max-width: 1120px) {
  .merch-hero {
    grid-template-columns: 1fr;
  }

  .merch-badge-card {
    max-width: 480px;
    justify-self: center;
  }
}

@media (max-width: 850px) {
  .store-cta,
  .merch-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .merch-shell,
  .merch-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .merch-hero {
    padding: 26px 19px;
    border-radius: 23px;
  }

  .merch-badge-card img {
    height: 205px;
  }

  }

/* COMPACT MERCH PRODUCT CARDS */
.merch-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.merch-product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid rgba(209, 76, 255, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(155deg, rgba(37, 10, 57, 0.9), rgba(15, 4, 24, 0.96));
  transition:
    transform 160ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.merch-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(231, 92, 255, 0.56);
  box-shadow: 0 16px 34px rgba(145, 30, 202, 0.24);
}

.merch-product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 12px;
  background:
    radial-gradient(circle at 50% 45%, rgba(179, 53, 255, 0.16), transparent 62%),
    rgba(8, 2, 14, 0.7);
  border-bottom: 1px solid rgba(209, 76, 255, 0.13);
}

.merch-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.merch-product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 13px;
  padding: 14px;
}

.merch-product-info h3 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

.merch-product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.merch-product-bottom span {
  color: #edc9ff;
  font-size: 14px;
  font-weight: 800;
}

.merch-product-bottom strong {
  color: #e763ff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .merch-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .merch-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .merch-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .merch-product-info {
    padding: 11px;
  }

  .merch-product-info h3 {
    font-size: 13px;
  }
}

/* ===== MERCH VERTICAL SLIDE-OUT NAV START ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.merch-side-header {
  position: relative;
  z-index: 100;
}

.merch-corner-brand {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 102;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(219, 92, 255, 0.4);
  border-radius: 18px;
  background: rgba(17, 4, 29, 0.86);
  box-shadow: 0 14px 36px rgba(104, 15, 159, 0.3);
  backdrop-filter: blur(14px);
}

.merch-corner-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 11px rgba(198, 54, 255, 0.48));
}

.merch-hover-nav {
  position: fixed;
  top: 15vh;
  left: 0;
  z-index: 101;
  display: flex;
  align-items: stretch;
  gap: 0;
  width: min(315px, calc(100vw - 16px));
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateX(calc(-100% + 54px));
  transition: transform 230ms ease;
}

.merch-hover-nav:hover,
.merch-hover-nav:focus-within,
.merch-hover-nav.open {
  transform: translateX(0);
}

.merch-nav-tab {
  order: 2;
  width: 54px;
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(221, 91, 255, 0.48);
  border-left: 0;
  border-radius: 0 18px 18px 0;
  background:
    radial-gradient(circle at 45% 20%, rgba(242, 55, 212, 0.32), transparent 48%),
    linear-gradient(180deg, rgba(107, 26, 171, 0.96), rgba(32, 7, 52, 0.98));
  box-shadow: 12px 0 31px rgba(83, 12, 122, 0.28);
}

.merch-nav-tab span {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.merch-nav-panel {
  order: 1;
  width: calc(100% - 54px);
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  padding: 0.8rem;
  border: 1px solid rgba(212, 83, 255, 0.38);
  border-left: 0;
  border-radius: 0 0 22px 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(235, 54, 210, 0.18), transparent 38%),
    rgba(13, 3, 24, 0.96);
  box-shadow: 20px 24px 48px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(15px);
}

.merch-hover-nav .merch-nav-panel > a,
.merch-hover-nav .member-nav-actions .member-link,
.merch-hover-nav .member-nav-actions button.member-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 2.7rem;
  padding: 0.67rem 0.82rem;
  border: 1px solid rgba(191, 75, 249, 0.16);
  border-radius: 12px;
  color: #e7d8f5;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  text-align: left;
  background: rgba(83, 21, 130, 0.12);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 100ms ease;
}

.merch-hover-nav .merch-nav-panel > a:hover,
.merch-hover-nav .member-nav-actions .member-link:hover,
.merch-hover-nav .member-nav-actions button.member-link:hover {
  color: #fff;
  border-color: rgba(226, 95, 255, 0.5);
  background: rgba(153, 39, 226, 0.23);
  box-shadow: 0 0 23px rgba(170, 42, 240, 0.17);
}

.merch-hover-nav .merch-nav-panel > a:active,
.merch-hover-nav .member-nav-actions .member-link:active {
  transform: translateY(1px) scale(0.98);
}

.merch-hover-nav .merch-nav-panel > a.active,
.merch-hover-nav .merch-nav-panel > a[aria-current="page"],
.merch-hover-nav .member-nav-actions .member-link.register,
.merch-hover-nav .member-nav-actions .member-link.profile {
  color: #fff;
  border-color: rgba(245, 128, 255, 0.52);
  background: linear-gradient(110deg, #7525df, #bd38fa 56%, #e53ccc);
  box-shadow: 0 8px 22px rgba(171, 41, 245, 0.32);
}

.merch-hover-nav .member-nav-divider {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0.42rem 0 0.18rem;
  background: rgba(205, 79, 255, 0.25);
}

.merch-hover-nav .member-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.merch-hover-nav .member-nav-actions .member-link.admin {
  color: #d9ffcc;
  border-color: rgba(83, 252, 24, 0.3);
  background: rgba(83, 252, 24, 0.08);
}

.merch-mobile-menu {
  display: none;
}

@media (max-width: 760px) {
  .merch-corner-brand {
    position: absolute;
    top: 0.9rem;
    left: 1rem;
  }

  .merch-mobile-menu {
    position: absolute;
    top: 1.2rem;
    right: 1rem;
    z-index: 103;
    width: 47px;
    height: 45px;
    display: grid;
    place-content: center;
    gap: 5px;
    border: 1px solid rgba(219, 92, 255, 0.4);
    border-radius: 12px;
    background: rgba(17, 4, 29, 0.88);
  }

  .merch-mobile-menu span:not(.sr-only) {
    width: 21px;
    height: 2px;
    background: #f8eaff;
  }

  .merch-hover-nav {
    top: 5.1rem;
    left: 1rem;
    width: calc(100vw - 2rem);
    display: none;
    transform: none;
  }

  .merch-hover-nav.open {
    display: flex;
  }

  .merch-nav-tab {
    display: none;
  }

  .merch-nav-panel {
    width: 100%;
    border-left: 1px solid rgba(212, 83, 255, 0.38);
    border-radius: 20px;
  }

  .merch-shell {
    padding-top: 92px;
  }
}
/* ===== MERCH VERTICAL SLIDE-OUT NAV END ===== */
