:root {
  --bg: #02040a;
  --ink: #f7fbff;
  --muted: #b9c4d3;
  --cyan: #2fc7ff;
  --blue: #076dff;
  --violet: #b72cff;
  --gold: #f4c75d;
  --line: rgba(103, 198, 255, 0.34);
  --panel: rgba(3, 8, 18, 0.92);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Rajdhani", system-ui, sans-serif;
  overflow: hidden;
}

button {
  font: inherit;
}

.concept-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #000;
}

.concept-stage {
  position: relative;
  width: min(100vw, 150vh);
  aspect-ratio: 3 / 2;
  max-height: 100vh;
}

.concept-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.hotspot {
  position: absolute;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hotspot:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.join-main {
  left: 5.7%;
  top: 51.5%;
  width: 9.1%;
  height: 4.8%;
}

.discover-main {
  left: 16.7%;
  top: 51.6%;
  width: 9.4%;
  height: 4.7%;
}

.nav-shop {
  left: 19.7%;
  top: 3.3%;
  width: 7.5%;
  height: 5.8%;
}

.nav-teams {
  left: 27.8%;
  top: 3.3%;
  width: 7.2%;
  height: 5.8%;
}

.nav-creations {
  left: 36%;
  top: 3.3%;
  width: 9.9%;
  height: 5.8%;
}

.nav-events {
  left: 46.5%;
  top: 3.3%;
  width: 9.9%;
  height: 5.8%;
}

.nav-community {
  left: 57.1%;
  top: 3.3%;
  width: 10.5%;
  height: 5.8%;
}

.nav-about {
  left: 68.5%;
  top: 3.3%;
  width: 8.1%;
  height: 5.8%;
}

.shop-card {
  left: 2.7%;
  bottom: 7.1%;
  width: 19%;
  height: 26.6%;
}

.teams-card {
  left: 22.3%;
  bottom: 7.1%;
  width: 18.2%;
  height: 26.6%;
}

.creations-card {
  left: 41.1%;
  bottom: 7.1%;
  width: 18.1%;
  height: 26.6%;
}

.events-card {
  left: 59.6%;
  bottom: 7.1%;
  width: 17.1%;
  height: 26.6%;
}

.community-card {
  right: 2.7%;
  bottom: 7.1%;
  width: 20.5%;
  height: 26.6%;
}

.cart-hotspot {
  right: 13.6%;
  top: 2.3%;
  width: 3.4%;
  height: 5.8%;
}

.cart-hotspot span {
  position: absolute;
  right: -8px;
  top: 0;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(183, 44, 255, 0.75);
  background: rgba(3, 8, 18, 0.86);
  color: var(--gold);
  font-family: "Orbitron", sans-serif;
  font-size: 0.78rem;
  box-shadow: 0 0 18px rgba(183, 44, 255, 0.55);
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.cart-hotspot.has-items span {
  opacity: 1;
  transform: scale(1);
}

.hotspot:hover {
  box-shadow:
    inset 0 0 24px rgba(183, 44, 255, 0.2),
    0 0 24px rgba(47, 199, 255, 0.28);
}

.panel,
.cart-panel {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  background:
    radial-gradient(circle at 30% 50%, rgba(183, 44, 255, 0.28), transparent 38%),
    radial-gradient(circle at 80% 50%, rgba(47, 199, 255, 0.23), transparent 36%),
    rgba(0, 0, 0, 0.78);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.panel.is-open,
.cart-panel.is-open {
  opacity: 1;
  pointer-events: auto;
}

.panel-shell,
.cart-shell {
  align-self: center;
  justify-self: center;
  width: min(1450px, calc(100vw - 54px));
  max-height: min(880px, calc(100vh - 54px));
  overflow: auto;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(10, 23, 48, 0.94), rgba(2, 4, 10, 0.95)),
    var(--panel);
  border: 1px solid var(--line);
  clip-path: polygon(24px 0, calc(100% - 24px) 0, 100% 24px, 100% calc(100% - 24px), calc(100% - 24px) 100%, 24px 100%, 0 calc(100% - 24px), 0 24px);
  box-shadow: 0 0 40px rgba(47, 199, 255, 0.18), 0 0 80px rgba(183, 44, 255, 0.18);
}

.cart-panel {
  justify-items: end;
}

.cart-shell {
  justify-self: end;
  width: min(480px, 100vw);
  height: 100vh;
  max-height: none;
  clip-path: polygon(24px 0, 100% 0, 100% 100%, 24px 100%, 0 calc(100% - 24px), 0 24px);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(103, 198, 255, 0.24);
}

.panel-head p {
  margin: 0 0 8px;
  color: var(--cyan);
  font-family: "Orbitron", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel-head h1 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.7rem, 4vw, 3.8rem);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(47, 199, 255, 0.45);
}

.panel-close,
.filter,
.add-button,
.checkout,
.qty button,
.remove-item,
.custom-form select,
.custom-form input {
  border: 1px solid var(--line);
  background: rgba(7, 16, 32, 0.74);
  color: var(--ink);
  cursor: pointer;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.panel-close {
  width: 48px;
  height: 48px;
  color: var(--cyan);
  font-size: 1.8rem;
}

.shop-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
}

.shop-sidebar {
  padding: 18px;
  border: 1px solid rgba(103, 198, 255, 0.24);
  background: rgba(2, 8, 19, 0.76);
}

.shop-sidebar img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(244, 199, 93, 0.42);
}

.shop-sidebar h2,
.product-card h3 {
  margin: 16px 0 8px;
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
}

.shop-sidebar p,
.product-card p,
.cart-empty {
  color: var(--muted);
  line-height: 1.45;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.filter {
  min-height: 40px;
  padding: 9px 12px;
  font-size: 0.76rem;
}

.filter.is-active {
  color: var(--gold);
  border-color: rgba(244, 199, 93, 0.76);
  box-shadow: 0 0 16px rgba(244, 199, 93, 0.24);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.content-shell {
  width: min(1180px, calc(100vw - 54px));
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.content-card {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(103, 198, 255, 0.28);
  background:
    linear-gradient(145deg, rgba(183, 44, 255, 0.2), transparent 52%),
    linear-gradient(315deg, rgba(47, 199, 255, 0.18), transparent 48%),
    rgba(2, 8, 19, 0.82);
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%, 0 18px);
}

.content-card.featured {
  grid-column: span 2;
  min-height: 330px;
  background:
    url("assets/sars-pdf-design.png") center / cover;
}

.content-card.featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(2, 6, 14, 0.96), rgba(2, 6, 14, 0.28) 62%),
    linear-gradient(135deg, rgba(183, 44, 255, 0.22), transparent 48%),
    linear-gradient(315deg, rgba(47, 199, 255, 0.2), transparent 50%);
}

.content-card > * {
  position: relative;
  z-index: 1;
}

.content-card h2 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.25rem, 2vw, 2rem);
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(47, 199, 255, 0.45);
}

.content-card p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.content-tag {
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(244, 199, 93, 0.55);
  color: var(--gold);
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.product-card {
  display: grid;
  grid-template-rows: 210px auto;
  min-height: 420px;
  border: 1px solid rgba(103, 198, 255, 0.28);
  background:
    linear-gradient(145deg, rgba(183, 44, 255, 0.16), transparent 48%),
    linear-gradient(315deg, rgba(47, 199, 255, 0.16), transparent 45%),
    rgba(2, 8, 19, 0.82);
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%, 0 18px);
}

.product-visual {
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(103, 198, 255, 0.2);
}

.product-visual img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(47, 199, 255, 0.32));
}

.product-info {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
}

.product-meta,
.cart-footer div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.product-buy {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr);
  align-items: center;
  gap: 14px;
}

.product-meta {
  color: var(--cyan);
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.product-card h3,
.product-card p {
  margin: 0;
}

.price,
.cart-footer strong {
  color: var(--gold);
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
}

.add-button,
.checkout {
  min-height: 42px;
  padding: 10px 14px;
  color: var(--cyan);
}

.add-button {
  width: 100%;
  white-space: nowrap;
}

.add-button:hover,
.checkout:hover,
.panel-close:hover,
.filter:hover,
.custom-form select:hover,
.custom-form input:hover {
  border-color: var(--violet);
  box-shadow: 0 0 18px rgba(183, 44, 255, 0.42);
}

.custom-shell {
  width: min(1280px, calc(100vw - 54px));
}

.custom-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(340px, 1.05fr);
  gap: 22px;
}

.custom-preview {
  min-height: 560px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px solid rgba(103, 198, 255, 0.28);
  background:
    radial-gradient(circle at 50% 38%, rgba(183, 44, 255, 0.24), transparent 36%),
    radial-gradient(circle at 55% 62%, rgba(47, 199, 255, 0.18), transparent 34%),
    rgba(2, 8, 19, 0.82);
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%, 0 18px);
}

.preview-stack {
  width: min(100%, 520px);
  display: grid;
  gap: 18px;
}

.preview-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--cyan);
  font-family: "Orbitron", sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.mug-preview,
.jersey-preview {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(244, 199, 93, 0.35);
  background:
    linear-gradient(135deg, rgba(183, 44, 255, 0.18), transparent),
    #040914;
}

.mug-preview {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 26px;
}

.mug-side {
  position: relative;
  width: 100%;
  aspect-ratio: 0.82;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(103, 198, 255, 0.28);
  border-radius: 8px 36px 36px 8px;
  background: var(--mug-bg, linear-gradient(135deg, #111827, #1d4ed8));
  box-shadow: inset -18px 0 32px rgba(255, 255, 255, 0.1);
}

.mug-side::after {
  content: "";
  position: absolute;
  right: -18px;
  width: 44px;
  height: 118px;
  border: 10px solid rgba(255, 255, 255, 0.24);
  border-left: 0;
  border-radius: 0 50px 50px 0;
}

.mug-side.back {
  --mug-bg: var(--mug-back-bg);
}

.mug-character {
  width: 58%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--custom-color);
  font-family: "Orbitron", sans-serif;
  font-size: 4rem;
  text-shadow: 0 0 22px currentColor;
}

.mug-name,
.jersey-name {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 22px;
  color: var(--custom-color);
  font-family: var(--custom-font);
  font-size: clamp(1.1rem, 2.3vw, 2rem);
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 18px currentColor;
}

.jersey-preview {
  padding: 30px;
}

.jersey-shape {
  position: relative;
  width: min(84%, 360px);
  aspect-ratio: 0.82;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 28%),
    var(--jersey-color);
  clip-path: polygon(24% 0, 76% 0, 100% 18%, 84% 40%, 84% 100%, 16% 100%, 16% 40%, 0 18%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  filter: drop-shadow(0 0 30px rgba(47, 199, 255, 0.25));
}

.jersey-shape::before {
  content: "";
  position: absolute;
  left: 38%;
  top: 0;
  width: 24%;
  height: 18%;
  background: rgba(2, 8, 19, 0.9);
  clip-path: polygon(0 0, 100% 0, 76% 100%, 24% 100%);
}

.jersey-logo {
  position: absolute;
  left: 50%;
  top: 34%;
  width: 34%;
  transform: translate(-50%, -50%);
  opacity: 0.9;
}

.jersey-name {
  bottom: 28%;
}

.jersey-number {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12%;
  color: var(--custom-color);
  font-family: var(--custom-font);
  font-size: 4.6rem;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 0 18px currentColor;
}

.custom-form {
  display: grid;
  align-content: start;
  gap: 16px;
}

.custom-field {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(103, 198, 255, 0.22);
  background: rgba(2, 8, 19, 0.68);
}

.custom-field label {
  color: var(--cyan);
  font-family: "Orbitron", sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.custom-form select,
.custom-form input {
  min-height: 44px;
  padding: 10px 12px;
  font-family: "Rajdhani", sans-serif;
  font-size: 1rem;
  text-transform: none;
}

.custom-form input[type="color"] {
  padding: 3px;
}

.custom-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(103, 198, 255, 0.25);
  background: rgba(2, 8, 19, 0.78);
}

.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
}

.cart-item h3 {
  margin: 0 0 4px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.qty button,
.remove-item {
  width: 30px;
  height: 30px;
}

.cart-empty {
  display: none;
  padding: 18px;
  border: 1px dashed rgba(103, 198, 255, 0.34);
}

.cart-empty.is-visible {
  display: block;
}

.cart-footer {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(103, 198, 255, 0.24);
  background: rgba(3, 8, 18, 0.96);
}

.cart-footer span {
  color: var(--muted);
  font-size: 1.2rem;
}

.cart-footer strong {
  font-size: 1.7rem;
}

.checkout {
  width: 100%;
  color: var(--ink);
  background: linear-gradient(90deg, rgba(183, 44, 255, 0.92), rgba(47, 199, 255, 0.92));
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 40;
  transform: translate(-50%, 120%);
  padding: 12px 18px;
  border: 1px solid rgba(244, 199, 93, 0.6);
  background: rgba(2, 8, 19, 0.92);
  color: var(--gold);
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  transition: transform 0.22s ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .shop-layout,
  .custom-layout,
  .product-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .content-card.featured {
    grid-column: auto;
  }

  .shop-sidebar img {
    max-height: 260px;
    object-fit: cover;
  }

  .panel-shell {
    width: calc(100vw - 22px);
    max-height: calc(100vh - 22px);
    padding: 16px;
  }
}
