:root {
  color-scheme: dark;
  --bg: #000;
  --surface: #111;
  --surface2: #191919;
  --text: #fff;
  --muted: #aaa;
  --gold: #ffd700;
  --lemon: #c4ff61;
  --navy: #001f3f;
  --border: #333;
  --radius: 18px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #fff;
  --surface2: #edf1f4;
  --text: #001f3f;
  --muted: #526477;
  --gold: #a77d00;
  --lemon: #d9f6a5;
  --border: #d9e0e5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px / 1.6 system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

button {
  cursor: pointer;
}

.container {
  width: min(1480px, calc(100% - 48px));
  margin: auto;
}

/* Header */
.site-header {
  height: 76px;
  padding: 0 max(24px, calc((100vw - 1480px) / 2));
  display: flex;
  align-items: center;
  gap: 25px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
}

.brand {
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.brand i {
  color: var(--gold);
  font-style: normal;
}

.search {
  height: 42px;
  max-width: 560px;
  flex: 1;
  display: flex;
  border: 1px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  background: var(--surface);
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--text);
  padding: 0 16px;
}

.search button {
  width: 48px;
  border: 0;
  background: var(--gold);
  font-size: 23px;
}

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

.count {
  background: var(--gold);
  color: #000;
  border-radius: 20px;
  padding: 2px 7px;
  font-size: 11px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
}

/* Hero */
.hero {
  min-height: 500px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.hero > div:first-child {
  padding: 65px 0;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 850;
  color: var(--gold);
}

h1 {
  font-size: clamp(42px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin: 14px 0 20px;
}

h2 {
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0;
}

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

.lead {
  max-width: 480px;
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 28px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 21px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 850;
  border: 1px solid transparent;
}

.btn-gold {
  background: var(--gold);
  color: #000;
}

.btn-outline {
  border-color: var(--border);
  background: transparent;
  color: var(--text);
}

.hero-art {
  height: 380px;
  position: relative;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #ffd70024, transparent 60%);
}

.hero-art strong {
  font-size: 130px;
  color: var(--gold);
  z-index: 1;
}

.hero-art strong span {
  font-size: 30px;
  color: var(--lemon);
}

.hero-art small {
  position: absolute;
  bottom: 35px;
  right: 10%;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.orbit {
  position: absolute;
  width: 330px;
  height: 330px;
  border: 1px solid #ffd70066;
  border-radius: 50%;
}

.orbit-small {
  width: 235px;
  height: 235px;
  border-color: #c4ff6177;
}

/* Sections */
.section {
  padding: 70px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 25px;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

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

/* Categories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.category-tile {
  min-height: 170px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #242424, #090909);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-tile small {
  color: #aaa;
  letter-spacing: 0.2em;
}

.category-tile b {
  font-size: 25px;
}

.category-tile i {
  font-style: normal;
  align-self: end;
  color: var(--gold);
  font-size: 23px;
}

.category-tile.lemon {
  background: linear-gradient(135deg, #c4ff61, #718b38);
  color: #101a05;
}

.category-tile.blue {
  background: linear-gradient(135deg, #00345d, #00101e);
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  min-width: 0;
}

.product-image {
  height: 215px;
  background: var(--surface2);
  display: grid;
  place-items: center;
  overflow: hidden;
}

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

.product-placeholder {
  font-size: 55px;
  color: var(--gold);
}

.product-info {
  padding: 14px;
}

.product-category {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}

.product-info h3 {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.price {
  font-weight: 900;
  color: var(--gold);
}

.add-btn {
  border: 1px solid var(--border);
  background: none;
  color: var(--text);
  border-radius: 25px;
  padding: 7px 10px;
  font-size: 11px;
}

/* Newsletter & Footer */
.newsletter {
  margin: 15px 0 65px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.newsletter h2 {
  margin-bottom: 8px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px max(24px, calc((100vw - 1480px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}

.site-footer > div {
  display: flex;
  gap: 16px;
}

/* Pages */
.page-main {
  padding-top: 60px;
  padding-bottom: 90px;
  min-height: 65vh;
}

.page-main > h1 {
  font-size: clamp(40px, 5vw, 65px);
}

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

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 28px 0;
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  border: 1px solid var(--border);
  border-radius: 25px;
  padding: 8px 14px;
  font-size: 11px;
}

select,
input,
textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px;
  color: var(--text);
  outline-color: var(--gold);
}

.toolbar select {
  width: auto;
}

/* Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: #0009;
  z-index: 29;
}

.nav-drawer {
  position: fixed;
  z-index: 30;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(360px, 80vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transform: translateX(105%);
  transition: 0.25s;
}

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

.nav-drawer > a {
  padding: 13px;
  border-bottom: 1px solid var(--border);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

/* Forms & Layouts */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 23px;
}

.form-stack {
  display: grid;
  gap: 14px;
}

.form-stack label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}

.form-message {
  min-height: 20px;
  color: var(--lemon);
  font-size: 12px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.checkout-layout aside {
  position: sticky;
  top: 95px;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 460px);
  gap: 65px;
  align-items: center;
}

.auth-card {
  padding: 27px;
}

.auth-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.auth-tabs button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 10px 0;
}

.auth-tabs button.active {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  margin-top: 25px;
}

.product-detail .product-image {
  height: 450px;
  border-radius: var(--radius);
}

/* Cart */
.cart-row {
  display: grid;
  grid-template-columns: 75px 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.cart-thumb {
  width: 75px;
  height: 75px;
  object-fit: cover;
  background: var(--surface2);
  border-radius: 10px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 9px;
}

.qty-control button {
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  border-radius: 20px;
  padding: 3px 9px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 900;
  padding: 17px 0;
}

.success-mark {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--lemon);
  color: #000;
  display: grid;
  place-items: center;
  font-size: 30px;
}

.narrow {
  max-width: 650px;
}

[hidden] {
  display: none !important;
}

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.dashboard-grid h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

.dashboard-grid .panel {
  min-width: 0;
}

.dashboard-grid code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--lemon);
  margin: 12px 0;
}

.form-stack textarea {
  resize: vertical;
}

.success-mark {
  margin: 32px 0;
}

/* Responsive */
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 650px) {
  .container {
    width: calc(100% - 32px);
  }

  .site-header {
    height: 65px;
    padding: 0 16px;
    gap: 10px;
  }

  .brand {
    font-size: 11px;
  }

  .search {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero > div:first-child {
    padding: 55px 0 10px;
  }

  .hero-art {
    height: 220px;
  }

  .orbit {
    width: 210px;
    height: 210px;
  }

  .orbit-small {
    width: 150px;
    height: 150px;
  }

  .hero-art strong {
    font-size: 80px;
  }

  .section {
    padding: 45px 0;
  }

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

  .category-tile {
    min-height: 130px;
  }

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

  .product-image {
    height: 150px;
  }

  .product-info {
    padding: 10px;
  }

  .product-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .newsletter,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    padding: 22px 16px;
  }

  .page-main {
    padding-top: 40px;
  }

  .toolbar {
    flex-direction: column;
  }

  .auth-layout,
  .checkout-layout,
  .product-detail {
    grid-template-columns: 1fr;
    gap: 22px;
  }

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

  .product-detail .product-image {
    height: 300px;
  }

  .checkout-layout aside {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
    * {
    transition: none !important;
  }
}

@media (max-width: 650px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}