:root {
  --ink: #102b3d;
  --navy: #0b1d2e;
  --navy-soft: #17364a;
  --blue: #2467d8;
  --cyan: #4ad8d2;
  --lime: #a2e34f;
  --coral: #ff806f;
  --cream: #f3f1eb;
  --paper: #ffffff;
  --mist: #e8efed;
  --line: #d9dfdc;
  --muted: #65747c;
  --shadow: 0 16px 36px rgba(16, 43, 61, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

body.drawer-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 12px max(24px, calc((100vw - 1440px) / 2 + 32px));
  color: #fff;
  background: var(--navy);
}

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

.brand-logo {
  display: block;
  width: 146px;
  height: 42px;
  object-fit: contain;
  object-position: center;
}

.brand-caption,
.sidebar-brand small,
.footer-brand small {
  display: block;
  color: #9db1ba;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.6px;
  line-height: 1.2;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.desktop-nav a {
  color: #b8c8cc;
  font-size: 14px;
  font-weight: 600;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.server-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c3d1d3;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.live-dot,
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(162, 227, 79, 0.12);
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 15px;
  color: var(--navy);
  background: var(--cyan);
  border: 0;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 800;
}

.cart-button:hover,
.hero-button:hover,
.checkout-button:hover:not(:disabled),
.add-button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.cart-count {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  color: #fff;
  background: var(--navy);
  border-radius: 50%;
  font-size: 11px;
}

.store-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  min-height: 362px;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}

.hero-banner {
  position: absolute;
  top: 0;
  right: 0;
  width: 61%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.hero-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: screen;
  opacity: 0.92;
}

.hero-content {
  position: relative;
  z-index: 1;
  grid-column: 1;
  padding: 62px 40px 58px max(32px, calc((100vw - 1440px) / 2 + 48px));
}

.eyebrow,
.section-kicker {
  margin: 0 0 13px;
  color: var(--coral);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--cyan);
}

.hero-content h1 {
  margin: 0;
  color: #fff;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.96;
}

.hero-content h1 span {
  color: var(--cyan);
}

.hero-text {
  max-width: 400px;
  margin: 22px 0 27px;
  color: #c2d0d1;
  font-size: 16px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 13px 17px;
  color: var(--navy);
  background: var(--coral);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 800;
  transition: transform 140ms ease, filter 140ms ease;
}

.store-layout {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  max-width: 1440px;
  margin: 0 auto;
  background: var(--paper);
}

.store-sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 34px 22px 30px;
  background: #f7f5ef;
  border-right: 1px solid var(--line);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 27px;
  border-bottom: 1px solid var(--line);
}

.sidebar-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.sidebar-brand strong {
  display: block;
  color: var(--navy);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.05;
}

.sidebar-brand small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1.2px;
}

.sidebar-label {
  margin: 27px 0 11px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.category-tabs {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.category-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.category-tab span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.category-tab:hover {
  background: #e8ece8;
}

.category-tab.active {
  color: #fff;
  background: var(--navy);
}

.category-tab.active span {
  color: var(--cyan);
}

.sidebar-world {
  margin-top: auto;
  padding-top: 30px;
}

.sidebar-card-mark {
  display: block;
  width: 72px;
  height: 72px;
  margin-bottom: 13px;
  object-fit: contain;
}

.sidebar-world strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 17px;
}

.sidebar-world p:not(.section-kicker) {
  max-width: 185px;
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 13px;
}

.sidebar-world a,
.catalog-note,
.footer a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.sidebar-world a:hover,
.catalog-note:hover,
.footer a:hover {
  text-decoration: underline;
}

.catalog-section {
  min-width: 0;
  padding: 48px 48px 70px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2,
.steps-heading h2 {
  margin: 0;
  color: var(--navy);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.05;
}

.section-copy {
  max-width: 520px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.catalog-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 31px 0 23px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(350px, 100%);
  min-height: 43px;
  padding: 0 13px;
  background: #f6f7f4;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.search-box > span {
  color: var(--blue);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.search-box input {
  width: 100%;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
}

.search-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 103, 216, 0.1);
}

.catalog-note {
  color: var(--muted);
  font-weight: 700;
}

.catalog-note:hover {
  color: var(--blue);
}

.notice {
  margin: 0 0 20px;
  padding: 11px 13px;
  color: #4b5b33;
  background: #eef6de;
  border-left: 3px solid var(--lime);
  font-size: 13px;
}

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

.loading-state,
.empty-results {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 170px;
  padding: 25px;
  color: var(--muted);
  background: #f7f8f5;
  border: 1px dashed #cfd8d5;
  border-radius: 6px;
  font-size: 14px;
}

.empty-results {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.empty-results strong {
  color: var(--navy);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 18px;
}

.loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #c6d6d3;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.product-card:hover {
  border-color: #a6c1c1;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.product-card.featured {
  border-top: 4px solid var(--coral);
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  height: 167px;
  overflow: hidden;
  background: var(--mist);
}

.product-media img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 20px;
  object-fit: contain;
}

.product-badge {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 1;
  padding: 4px 7px;
  color: var(--navy);
  background: var(--cyan);
  border-radius: 3px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 17px 16px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.product-meta span:last-child {
  color: var(--blue);
  text-align: right;
}

.product-card h3 {
  overflow: hidden;
  margin: 10px 0 6px;
  color: var(--navy);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-description {
  display: -webkit-box;
  overflow: hidden;
  min-height: 60px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.product-price {
  color: var(--navy);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.product-price small {
  display: block;
  color: var(--muted);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
}

.add-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 35px;
  padding: 0 11px;
  color: var(--navy);
  background: var(--lime);
  border: 0;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  transition: transform 140ms ease, filter 140ms ease;
}

.add-button span {
  font-size: 17px;
  line-height: 1;
}

.steps-section {
  display: grid;
  grid-template-columns: 0.8fr 1.7fr;
  gap: 60px;
  padding: 70px max(24px, calc((100vw - 1440px) / 2 + 48px));
  color: #fff;
  background: var(--navy);
}

.steps-heading h2 {
  color: #fff;
  font-size: 38px;
}

.steps-heading h2 span {
  color: var(--cyan);
}

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

.step {
  min-height: 170px;
  padding: 0 25px;
  border-left: 1px solid #315062;
}

.step:first-child {
  padding-left: 0;
  border-left: 0;
}

.step > span {
  display: block;
  margin-bottom: 30px;
  color: var(--coral);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.step h3 {
  margin: 0 0 9px;
  color: #fff;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 17px;
}

.step p {
  max-width: 190px;
  margin: 0;
  color: #aec0c4;
  font-size: 13px;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 25px;
  padding: 27px max(24px, calc((100vw - 1440px) / 2 + 48px));
  color: #b5c5c9;
  background: #071522;
  font-size: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
}

.footer-brand strong span {
  color: var(--cyan);
}

.footer-brand small {
  margin-top: 3px;
  color: #77909a;
  font-size: 7px;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--cyan);
}

.footer > small {
  color: #77909a;
}

.drawer-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  background: rgba(7, 21, 34, 0.62);
}

.drawer-backdrop[hidden] {
  display: none;
}

.cart-drawer {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(440px, 100vw);
  height: 100%;
  background: var(--paper);
  box-shadow: -18px 0 50px rgba(7, 21, 34, 0.2);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 25px 22px;
  color: #fff;
  background: var(--navy);
}

.drawer-header .section-kicker {
  margin-bottom: 7px;
}

.drawer-header h2 {
  margin: 0;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 27px;
  line-height: 1;
}

.drawer-header h2 span {
  color: var(--cyan);
  font-size: 14px;
  vertical-align: top;
}

.icon-button,
.remove-item {
  display: grid;
  place-items: center;
  border: 0;
  font-weight: 800;
}

.icon-button {
  width: 35px;
  height: 35px;
  color: #fff;
  background: #204158;
  border-radius: 4px;
  font-size: 15px;
}

.icon-button:hover {
  background: var(--coral);
}

.drawer-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.cart-items {
  flex: 1;
  min-height: 120px;
  overflow-y: auto;
  padding: 22px 25px;
}

.empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  color: var(--muted);
  text-align: center;
}

.empty-cart img {
  width: 72px;
  height: 72px;
  margin-bottom: 13px;
  object-fit: contain;
}

.empty-cart p {
  margin: 0 0 4px;
  color: var(--navy);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.empty-cart small {
  max-width: 220px;
  font-size: 12px;
}

.cart-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.cart-row-art {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  background: var(--mist);
  border-radius: 4px;
}

.cart-row-art img {
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
}

.cart-row-info {
  min-width: 0;
}

.cart-row-info strong,
.cart-row-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-row-info strong {
  color: var(--navy);
  font-size: 13px;
}

.cart-row-info small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.cart-row-price {
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.remove-item {
  width: 28px;
  height: 28px;
  color: var(--muted);
  background: transparent;
  border-radius: 3px;
  font-size: 12px;
}

.remove-item:hover {
  color: #fff;
  background: var(--coral);
}

.checkout-panel {
  padding: 22px 25px 25px;
  border-top: 1px solid var(--line);
  background: #f7f8f5;
}

.field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.field-label span {
  color: var(--coral);
  font-size: 10px;
  text-transform: uppercase;
}

.player-input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: 0;
  font-size: 13px;
}

.player-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 103, 216, 0.1);
}

.field-hint,
.checkout-note {
  color: var(--muted);
  font-size: 11px;
}

.field-hint {
  margin: 7px 0 20px;
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.total-row strong {
  color: var(--navy);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 22px;
}

.checkout-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 47px;
  padding: 0 15px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  transition: transform 140ms ease, filter 140ms ease;
}

.checkout-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.checkout-note {
  margin: 11px 0 0;
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: 24px;
  max-width: min(380px, calc(100vw - 48px));
  padding: 12px 15px;
  color: var(--navy);
  background: var(--lime);
  border-radius: 4px;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

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

.toast[data-error="true"] {
  color: #fff;
  background: var(--coral);
}

@media (max-width: 1150px) {
  .desktop-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .store-hero {
    min-height: 390px;
  }

  .hero-content {
    padding-left: 32px;
  }

  .store-layout {
    display: block;
  }

  .store-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-world {
    display: none;
  }

  .category-tabs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .category-tab {
    width: auto;
    min-width: max-content;
    padding: 0 15px;
  }

  .catalog-section {
    padding: 40px 32px 58px;
  }

  .steps-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 650px) {
  .topbar {
    min-height: 66px;
    padding: 9px 17px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 126px;
    height: 38px;
  }

  .brand-caption,
  .server-pill {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .cart-button {
    min-height: 38px;
    padding: 0 11px;
  }

  .store-hero {
    display: block;
    min-height: 432px;
  }

  .hero-banner {
    width: 100%;
    height: 100%;
    opacity: 0.55;
  }

  .hero-content {
    max-width: none;
    height: 100%;
    padding: 220px 22px 32px;
    background: rgba(11, 29, 46, 0.76);
  }

  .hero-content h1 {
    font-size: 44px;
  }

  .hero-text {
    max-width: 340px;
    margin: 16px 0 22px;
    font-size: 14px;
  }

  .store-sidebar {
    padding: 24px 17px 19px;
  }

  .sidebar-brand {
    padding-bottom: 20px;
  }

  .sidebar-label {
    margin-top: 20px;
  }

  .catalog-section {
    padding: 33px 17px 48px;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2,
  .steps-heading h2 {
    font-size: 32px;
  }

  .section-copy {
    font-size: 13px;
  }

  .catalog-status {
    margin-top: 15px;
  }

  .catalog-toolbar {
    display: block;
    margin-top: 25px;
  }

  .search-box {
    width: 100%;
  }

  .catalog-note {
    display: inline-block;
    margin-top: 14px;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .product-media {
    height: 190px;
  }

  .steps-section {
    padding: 53px 22px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .step,
  .step:first-child {
    min-height: 0;
    padding: 21px 0;
    border-top: 1px solid #315062;
    border-left: 0;
  }

  .step:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .step > span {
    margin-bottom: 12px;
  }

  .footer {
    grid-template-columns: 1fr auto;
    gap: 17px;
    padding: 24px 17px;
  }

  .footer p {
    display: none;
  }

  .footer > small {
    grid-column: 1 / -1;
  }

  .drawer-header,
  .cart-items,
  .checkout-panel {
    padding-left: 19px;
    padding-right: 19px;
  }
}
