:root {
  color-scheme: dark;
  --page: #0f1014;
  --surface: #17181d;
  --surface-2: #111218;
  --line: rgba(255, 255, 255, .13);
  --muted: #a9abb5;
  --blue: #4d88ef;
  --cyan: #27c9ed;
}

* { box-sizing: border-box; }

body.cs2-page {
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: #fff;
  font-family: Poppins, Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: rgba(15, 16, 20, .97);
}

.site-header__inner {
  position: relative;
  width: min(1300px, calc(100% - 40px));
  min-height: 96px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-logo img {
  display: block;
  width: 82px;
  height: 72px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 800;
}

.site-nav a:hover,
.site-nav summary:hover,
.site-action-icon:hover { color: #7fb0ff; }

.site-menu {
  position: relative;
}

.site-menu summary {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  cursor: pointer;
  list-style: none;
}

.site-menu summary::-webkit-details-marker { display: none; }

.site-menu__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: -14px;
  z-index: 20;
  display: none;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #17181d;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .36);
}

.site-menu[open] .site-menu__dropdown,
.site-menu:hover .site-menu__dropdown { display: grid; }

.site-menu__dropdown::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 13px;
}

.site-menu__dropdown a {
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 13px;
  white-space: nowrap;
}

.site-menu__dropdown a:hover { background: rgba(255, 255, 255, .07); }

.site-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-search,
.site-locale,
.site-action-icon {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 14px;
  color: #d7d8df;
  font-size: 13px;
  font-weight: 700;
}

.site-search svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.site-locale img { width: 20px; height: 15px; object-fit: cover; }
.site-locale i { color: #5d606b; font-style: normal; }
.site-locale svg {
  width: 10px;
  height: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.site-action-icon {
  width: 42px;
  justify-content: center;
  padding: 0;
}

.site-action-icon svg {
  width: 20px;
  height: 21px;
}

.cart-link {
  border-color: transparent;
}

.cart-link svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.discord-link {
  border-color: #5865f2;
  background: #5865f2;
  color: #fff;
}

.discord-link:hover {
  border-color: #6d78f5;
  background: #6d78f5;
  color: #fff;
}

.discord-link svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.product-page {
  width: min(1300px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 90px;
}

.product-view {
  display: grid;
  grid-template-columns: minmax(360px, 1.1fr) minmax(360px, .9fr);
  gap: clamp(44px, 7vw, 92px);
  align-items: start;
}

.product-image {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080a23;
}

.product-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.product-view,
.product-gallery,
.product-info {
  min-width: 0;
  max-width: 100%;
}

.product-info { padding-top: 8px; }

.product-kicker {
  margin: 0 0 10px;
  color: #7faaf4;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-info h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.product-description {
  max-width: 620px;
  margin: 0 0 22px;
  color: #c8c9d0;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 13px;
}

.product-price strong { font-size: 28px; }
.product-price s { color: #747783; font-size: 16px; }

.stock-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 13px 0 28px;
  color: #aeb0ba;
  font-size: 13px;
  font-weight: 700;
}

.stock-line > span:first-child {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ed47a;
  box-shadow: 0 0 0 4px rgba(46, 212, 122, .1);
}

.stock-line.is-sold-out {
  color: #ff8b8b;
}

.stock-line.is-sold-out > span:first-child {
  background: #ef5350;
  box-shadow: 0 0 0 4px rgba(239, 83, 80, .1);
}

.purchase-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: end;
  gap: 12px;
}

.quantity-field {
  min-width: 0;
}

.quantity-label {
  display: block;
  margin: 0 0 7px;
  color: #a9abb4;
  font-size: 11px;
  font-weight: 700;
}

.quantity {
  height: 50px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  overflow: hidden;
  border: 1px solid #383b44;
  border-radius: 7px;
  background: #111217;
  transition: border-color .18s ease;
}

.quantity:focus-within { border-color: #5a8ee7; }

.quantity button,
.quantity input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-align: center;
}

.quantity button {
  cursor: pointer;
  color: #b8bbc4;
  font-size: 18px;
  transition: background-color .18s ease, color .18s ease;
}
.quantity button:hover { background: #20232b; color: #fff; }
.quantity button:first-child { border-right: 1px solid #292c34; }
.quantity button:last-child { border-left: 1px solid #292c34; }
.quantity input { width: 100%; appearance: textfield; }
.quantity input::-webkit-inner-spin-button { appearance: none; }

.quantity button:disabled,
.quantity input:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.buy-button {
  min-height: 50px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(110deg, var(--blue), var(--cyan));
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 9px 24px rgba(55, 146, 232, .25);
}

.buy-button:disabled {
  background: #2a2c33;
  color: #888b95;
  cursor: not-allowed;
  box-shadow: none;
}

.purchase-total {
  margin: 10px 0 0;
  color: #92949e;
  font-size: 12px;
  text-align: right;
}

.delivery-flow {
  position: relative;
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.delivery-flow::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: #3f78d7;
}

.delivery-flow div {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.delivery-flow span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  z-index: 1;
  border-radius: 50%;
  background: #477fe0;
  font-size: 13px;
  font-weight: 900;
}

.delivery-flow strong { margin-top: 5px; font-size: 13px; }
.delivery-flow small { color: #9699a5; font-size: 11px; }

.product-notes {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  border-top: 1px solid var(--line);
}

.product-note {
  min-width: 0;
  padding: 18px 0 0;
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-note__copy { min-width: 0; }
.product-note__copy strong,
.product-note__copy small { display: block; }
.product-note__copy strong { font-size: 13px; line-height: 1.4; }
.product-note__copy small { margin-top: 5px; color: #9699a5; font-size: 11px; line-height: 1.5; }

.product-note--link strong { color: #8cb5ff; transition: color .18s ease; }
.product-note--link small span { display: inline; color: #8cb5ff; }
.product-note--link:hover strong { color: #fff; }

@media (max-width: 980px) {
  .site-locale { display: none; }
  .product-view { grid-template-columns: 1fr; gap: 30px; }
  .product-gallery { max-width: 680px; }
}

@media (max-width: 700px) {
  .site-header__inner { width: min(100% - 24px, 1300px); min-height: 76px; gap: 16px; }
  .site-logo img { width: 62px; height: 58px; }
  .site-nav, .site-search { display: none; }
  .site-actions {
    position: absolute;
    top: 19px;
    right: 0;
    width: 122px !important;
    flex: 0 0 122px;
    display: grid;
    grid-template-columns: repeat(3, 38px);
    justify-content: end;
    gap: 4px;
  }
  .site-action-icon { width: 38px; min-height: 38px; flex: 0 0 38px; padding: 0; }
  .product-page { width: min(100% - 24px, 1300px); padding-top: 28px; }
  .product-info h1 { font-size: 32px; }
  .purchase-row { grid-template-columns: 124px minmax(0, 1fr); }
  .delivery-flow small { display: none; }
}

@media (max-width: 460px) {
  .purchase-row { grid-template-columns: 1fr; }
  .buy-button { width: 100%; }
  .product-notes { grid-template-columns: 1fr; gap: 13px; }
  .product-note + .product-note { padding-top: 0; }
}
