:root {
  --bg: #050b12;
  --panel: #09111d;
  --panel-2: #0d1623;
  --text: #f7f8fb;
  --muted: #9ba7b7;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #d9b86b;
  --gold-2: #f0cf7b;
  --green: #47d18c;
  --red: #ff6677;
  --discord: #5865f2;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(217, 184, 107, 0.12), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(88, 101, 242, 0.12), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 12px clamp(18px, 3vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 11, 18, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(217, 184, 107, 0.35);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(38, 91, 150, 0.24);
}

.brand strong {
  display: block;
  max-width: 210px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav a,
.pill,
.btn {
  border: 1px solid transparent;
  border-radius: 8px;
}

.site-nav a {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  transition: 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  border-color: rgba(217, 184, 107, 0.35);
  background: rgba(217, 184, 107, 0.1);
  color: var(--text);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 76vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(48px, 9vw, 110px) clamp(20px, 5vw, 80px);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(5, 11, 18, 0.9) 38%, rgba(5, 11, 18, 0.2)),
    url("./assets/hero/prime-supply-showroom.jpg") center / cover;
  opacity: 0.95;
}

.hero::after,
.grid-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-logo {
  width: 180px;
  height: 90px;
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid rgba(217, 184, 107, 0.28);
  border-radius: 10px;
  background: rgba(8, 15, 24, 0.75);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.eyebrow,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(217, 184, 107, 0.38);
  border-radius: 8px;
  background: rgba(217, 184, 107, 0.12);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(48px, 9vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.hero p {
  max-width: 610px;
  margin-top: 24px;
  color: #c2cad6;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  cursor: pointer;
  transition: 180ms ease;
}

.btn-primary {
  background: var(--gold);
  color: #13100a;
  font-weight: 800;
  box-shadow: 0 18px 46px rgba(217, 184, 107, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--gold-2);
}

.btn-outline {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn-outline:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 184, 107, 0.45);
}

.btn-discord {
  border-color: rgba(88, 101, 242, 0.48);
  background: #5865f2;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 18px 46px rgba(88, 101, 242, 0.24);
}

.btn-discord:hover {
  transform: translateY(-2px);
  background: #6975ff;
}

.text-link {
  color: var(--gold-2);
  font-weight: 800;
}

.page {
  padding: clamp(34px, 6vw, 78px) clamp(20px, 5vw, 80px);
}

.page.narrow {
  max-width: 760px;
}

.section {
  padding: clamp(36px, 6vw, 78px) clamp(20px, 5vw, 80px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 46px);
}

.muted {
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat,
.card,
.category-card,
.panel,
.product-info {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(9, 17, 29, 0.76);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.stat {
  padding: 20px;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 32px;
}

.categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  display: block;
  min-height: 138px;
  padding: 20px;
  transition: 180ms ease;
}

.category-card:hover,
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 184, 107, 0.42);
}

.category-card strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 20px;
}

.category-card span {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 28px;
  border: 1px solid rgba(217, 184, 107, 0.3);
  border-radius: 8px;
  color: var(--gold-2);
  font-size: 13px;
}

.category-card p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.category-card small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.category-card em {
  display: inline-flex;
  margin-top: 18px;
  color: var(--gold-2);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.categories.compact {
  margin: 28px 0;
}

.category-filter {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 30px 0 34px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.category-filter::-webkit-scrollbar {
  display: none;
}

.category-filter a {
  flex: 0 0 auto;
  padding: 0 0 12px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.category-filter a:hover,
.category-filter a.active {
  border-color: var(--gold);
  color: var(--text);
}

.category-filter span {
  margin-left: 5px;
  color: var(--gold-2);
  font-size: 11px;
}

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

.card {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: 180ms ease;
}

.card-image {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0b111a;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 420ms ease;
}

.card:hover .card-image img {
  transform: scale(1.025);
}

.card:hover {
  transform: none;
}

.card:hover .card-image {
  border-color: rgba(217, 184, 107, 0.42);
}

.card-status {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(5, 11, 18, 0.78);
  color: #f7f8fb;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.card-status.available {
  border-color: rgba(71, 209, 140, 0.4);
}

.card-status.sold {
  border-color: rgba(255, 102, 119, 0.42);
  color: #ffc0c8;
}

.badge-row {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 11, 18, 0.68);
  color: var(--text);
  font-size: 12px;
  backdrop-filter: blur(12px);
}

.badge.available {
  border-color: rgba(71, 209, 140, 0.35);
  color: #a9f5cf;
}

.badge.sold {
  border-color: rgba(255, 102, 119, 0.4);
  color: #ffc0c8;
}

.card-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 2px 0;
}

.card-copy {
  min-width: 0;
}

.brand-name {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-title {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price {
  flex: 0 0 auto;
  margin-top: 16px;
  color: var(--gold-2);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
  white-space: nowrap;
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.sizes span {
  min-width: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #d7dde8;
  font-size: 13px;
  text-align: center;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.discord {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 78% 12%, rgba(88, 101, 242, 0.32), transparent 32%),
    rgba(9, 17, 29, 0.86);
}

.discord-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  padding: clamp(24px, 5vw, 54px);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.step {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 11, 18, 0.42);
}

.step strong {
  display: block;
  margin-bottom: 8px;
}

.discord-card {
  align-self: center;
  padding: 28px;
  border: 1px solid rgba(88, 101, 242, 0.35);
  border-radius: 12px;
  background: rgba(5, 11, 18, 0.44);
  text-align: center;
}

.discord-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  border: 1px solid rgba(88, 101, 242, 0.45);
  border-radius: 14px;
  background: rgba(88, 101, 242, 0.18);
  color: #c4caff;
  font-size: 34px;
}

.discord h2 {
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 48px);
}

.discord p {
  margin-top: 18px;
  color: #c2cad6;
  line-height: 1.7;
}

.discord-card strong {
  display: block;
  margin-bottom: 16px;
}

.inventory-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.inventory-count {
  min-width: 150px;
  padding: 18px;
}

.inventory-header h1 {
  margin-top: 10px;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 720;
}

.inventory-header p {
  max-width: 720px;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.product-detail {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 26px;
}

.gallery-main {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b111a;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.thumbs button {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b111a;
  cursor: pointer;
}

.thumbs button.active {
  border-color: var(--gold);
}

.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: clamp(20px, 4vw, 34px);
}

.product-info h1 {
  font-size: clamp(38px, 5vw, 62px);
}

.product-info .description {
  margin-top: 18px;
  color: #c4ccd8;
  line-height: 1.7;
}

.detail-price {
  margin-top: 24px;
  color: var(--gold-2);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
}

.details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
}

.details div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 11, 18, 0.34);
}

.details dt {
  color: var(--muted);
  font-size: 12px;
}

.details dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  color: var(--muted);
}

.detail-list li {
  list-style: none;
}

.detail-list li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--green);
}

.footer {
  padding: 32px clamp(20px, 5vw, 80px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.terms {
  max-width: 900px;
  margin-top: 18px;
  color: rgba(155, 167, 183, 0.48);
  font-size: 10px;
  line-height: 1.7;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: 320px;
  padding: 13px 15px;
  border: 1px solid rgba(217, 184, 107, 0.3);
  border-radius: 10px;
  background: rgba(9, 17, 29, 0.94);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

.editor-list,
.editor-form {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(9, 17, 29, 0.76);
  padding: 18px;
}

.editor-item {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.editor-item.active {
  border-color: rgba(217, 184, 107, 0.5);
  background: rgba(217, 184, 107, 0.12);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--muted);
  font-size: 13px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 11, 18, 0.78);
  color: var(--text);
  padding: 11px 12px;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.empty {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(9, 17, 29, 0.7);
  color: var(--muted);
  text-align: center;
}

.editor-link {
  opacity: 0.55;
}

@media (max-width: 1080px) {
  .stats,
  .categories,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail,
  .discord-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 12px;
  }

  .brand strong {
    max-width: 160px;
  }

  .hero {
    min-height: 720px;
  }

  .actions .btn {
    width: 100%;
  }

  .stats,
  .categories,
  .steps {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 26px;
  }

  .card-body {
    display: block;
    padding-top: 10px;
  }

  .card-title {
    font-size: 14px;
  }

  .price {
    margin-top: 5px;
    font-size: 14px;
  }

  .card-status {
    top: 8px;
    left: 8px;
    padding: 6px 7px;
    font-size: 9px;
  }

  .section-head,
  .inventory-header,
  .footer-top {
    flex-direction: column;
    align-items: stretch;
  }

  .thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
}
