:root {
  color-scheme: dark;
  --bg: #050505;
  --surface: #0c0c0c;
  --ink: #fff8e7;
  --muted: #b0a898;
  --line: rgba(212, 175, 55, .22);
  --gold: #d4af37;
  --gold-light: #f9e895;
  --amber: #ff9f00;
  --cyan: #6ce8ff;
  --glass: rgba(255, 248, 231, .05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 10%, rgba(212, 175, 55, .13), transparent 32%),
    radial-gradient(circle at 84% 90%, rgba(255, 159, 0, .11), transparent 40%),
    var(--bg);
  background-attachment: fixed;
  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 {
  font: inherit;
}

.site-header,
.site-footer,
main {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 0 26px rgba(212, 175, 55, .35);
}

.brand-mark span {
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--gold);
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.main-nav a,
.language-switcher button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  color: var(--muted);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  transition: .25s ease;
}

.main-nav a:hover,
.language-switcher button:hover {
  color: var(--bg);
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 26px rgba(212, 175, 55, .3);
}

.main-nav strong {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--bg);
  background: var(--gold);
  border-radius: 50%;
  font-size: .7rem;
}

.language-switcher {
  margin: 0;
}

.language-switcher input {
  display: none;
}

.hero {
  min-height: calc(100svh - 92px);
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(360px, 1fr);
  gap: 64px;
  align-items: center;
  padding: 40px 0 70px;
}

.hero-copy {
  display: grid;
  gap: 20px;
}

.eyebrow {
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 8px 14px;
  color: var(--bg);
  background: var(--gold);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .16em;
}

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

h1 {
  max-width: 14ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  line-height: .86;
  font-weight: 900;
  text-transform: uppercase;
}

h1 em {
  color: var(--gold);
  font-style: italic;
}

.hero-copy > p:not(.eyebrow),
.shop-head p,
.detail-copy,
.empty-state p {
  max-width: 44ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: .25s ease;
}

.button.primary {
  color: var(--bg);
  background: linear-gradient(135deg, var(--gold), var(--amber));
  border-color: transparent;
  box-shadow: 0 0 34px rgba(255, 159, 0, .3);
}

.button.primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 54px rgba(255, 159, 0, .5);
}

.button.ghost {
  color: var(--ink);
  background: var(--glass);
}

.button.ghost:hover {
  background: rgba(255, 248, 231, .12);
}

.button.wide {
  width: 100%;
}

.hero-visual {
  position: relative;
  height: 460px;
  display: grid;
  place-items: center;
  perspective: 900px;
}

.orbit-core {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, var(--gold-light), transparent 55%),
    radial-gradient(circle at 70% 80%, var(--amber), transparent 50%),
    var(--gold);
  box-shadow:
    0 0 50px rgba(212, 175, 55, .45),
    inset 0 0 45px rgba(0, 0, 0, .35);
  z-index: 2;
  animation: pulse-core 4s ease-in-out infinite;
}

.orbit-core::after {
  content: "O";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 4.2rem;
  font-weight: 900;
  color: var(--bg);
}

.orbit-ring {
  position: absolute;
  border: 1px solid rgba(212, 175, 55, .28);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(212, 175, 55, .08);
}

.ring-1 {
  width: 280px;
  height: 280px;
  animation: spin 12s linear infinite;
}

.ring-2 {
  width: 360px;
  height: 360px;
  border-color: rgba(255, 159, 0, .18);
  animation: spin 20s linear infinite reverse;
}

.ring-3 {
  width: 440px;
  height: 440px;
  border-color: rgba(255, 248, 231, .1);
  transform: rotateX(70deg);
  animation: spin 28s linear infinite;
}

.ticker {
  display: flex;
  gap: 12px;
  overflow: hidden;
  padding: 18px 0 50px;
  white-space: nowrap;
}

.ticker span {
  flex: 0 0 auto;
  padding: 14px 22px;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: Georgia, serif;
  font-weight: 700;
  letter-spacing: .06em;
  animation: marquee 24s linear infinite;
}

.section-head,
.shop-head {
  display: grid;
  gap: 14px;
  padding: 60px 0 10px;
}

.section-head h2,
.shop-head h1 {
  max-width: 14ch;
  font-family: Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: .95;
  text-transform: uppercase;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 18px;
}

.filters a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: var(--muted);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: .25s ease;
}

.filters a:hover,
.filters a.is-active {
  color: var(--bg);
  background: var(--gold);
  border-color: var(--gold);
}

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

.all-products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  display: grid;
  gap: 14px;
  transition: transform .35s ease;
}

.product-image {
  aspect-ratio: 4 / 5;
  display: block;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.product-image:hover {
  border-color: rgba(212, 175, 55, .55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 40px rgba(212, 175, 55, .1);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

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

.product-meta {
  display: grid;
  gap: 5px;
}

.product-meta p {
  color: var(--gold);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.product-meta h2,
.product-meta h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.1;
}

.product-meta span {
  color: var(--gold);
  font-weight: 900;
}

.product-page,
.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(300px, .95fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  padding: 40px 0 80px;
}

.detail-image {
  position: sticky;
  top: 24px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.detail-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.detail-panel,
.summary,
.checkout-form,
.empty-state {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.detail-panel h1,
.checkout-form h1,
.empty-state h1 {
  font-family: Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: .95;
}

.specs,
.summary dl {
  display: grid;
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
}

.specs div,
.summary dl div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, .04);
}

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

dd {
  margin: 0;
  font-weight: 900;
  color: var(--gold);
}

.buy-form,
.checkout-form {
  display: grid;
  gap: 16px;
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  border: 0;
}

.sizes legend {
  width: 100%;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 900;
}

.sizes input {
  position: absolute;
  opacity: 0;
}

.sizes span {
  min-width: 54px;
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 900;
  transition: .2s ease;
}

.sizes input:checked + span {
  color: var(--bg);
  background: var(--cyan);
  border-color: var(--cyan);
}

.quantity-field,
.checkout-form label,
.cart-line label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

input {
  min-height: 50px;
  width: 100%;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(0, 0, 0, .25);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.cart-lines {
  display: grid;
  gap: 16px;
}

.cart-line {
  display: grid;
  grid-template-columns: 110px 1fr 86px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.cart-line img {
  width: 110px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
}

.cart-line p {
  color: var(--gold);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cart-line h2 {
  margin: 4px 0;
  font-size: 1.3rem;
}

.cart-line span {
  color: var(--gold);
  font-weight: 900;
}

.remove-button {
  width: max-content;
  margin-top: 10px;
  padding: 0;
  color: #ff6b6b;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 900;
}

.summary {
  position: sticky;
  top: 24px;
}

.summary h2 {
  font-size: 1.8rem;
}

.empty-state {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 24px;
}

.empty-state h1 {
  margin: 0 auto;
}

.success-state strong {
  color: var(--gold);
}

.site-footer {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: .86rem;
}

.site-footer a {
  color: var(--gold);
  font-weight: 900;
}

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

@keyframes pulse-core {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 980px) {
  .hero,
  .product-page,
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

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

  .detail-image,
  .summary {
    position: static;
  }

  .hero {
    min-height: 0;
    padding-top: 30px;
  }

  .hero-visual {
    height: 360px;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .main-nav {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .product-grid,
  .all-products {
    grid-template-columns: 1fr;
  }

  .cart-line {
    grid-template-columns: 86px 1fr;
  }

  .cart-line img {
    width: 86px;
  }

  .cart-line label {
    grid-column: 1 / -1;
  }

  .specs div,
  .summary dl div {
    grid-template-columns: 1fr;
  }
}
