:root {
  color-scheme: dark;
  --accent: #00d978;
  --text: #f5f6f5;
  --muted: #a4aaa6;
  --background-png-opacity: .05;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

.shop-page,
.error-body {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: #080a09;
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.shop-page::before,
.error-body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  background: url("/assets/images/background.png") center / cover no-repeat;
  content: "";
  opacity: var(--background-png-opacity);
  pointer-events: none;
}

.shop-page::after,
.error-body::after {
  position: fixed;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(rgba(5, 7, 7, .48), rgba(5, 7, 7, .54)),
    url("/assets/images/background2.webp") center / cover no-repeat;
  content: "";
  pointer-events: none;
}

.shop-page a,
.error-body a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: absolute;
  z-index: 2;
  top: 50px;
  right: 50px;
  left: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.025em;
  text-decoration: none;
}

.logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.menu-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  align-content: center;
  justify-items: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

.menu-panel {
  position: fixed;
  z-index: 4;
  top: 108px;
  right: 50px;
  width: min(340px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(15, 18, 17, .97);
  box-shadow: 0 18px 56px rgba(0, 0, 0, .45);
  backdrop-filter: blur(16px);
}

.menu-link {
  display: block;
  width: 100%;
  padding: 10px 0;
  color: var(--text);
  font-size: 14px;
}

.menu-link + .menu-link {
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.shop-page main {
  position: relative;
  z-index: 1;
}

.shop-hero {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 130px 24px 80px;
  text-align: center;
}

.shop-eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .18em;
}

.shop-hero .shop-eyebrow span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 1px;
}

.shop-hero h1 {
  margin: 24px 0 16px;
  font-size: clamp(42px, 8vw, 76px);
  font-weight: 750;
  letter-spacing: -.07em;
  line-height: 1.02;
  text-shadow: 0 3px 28px rgba(0, 0, 0, .45);
}

.shop-hero h1 span,
.shop-about h2 span {
  color: var(--accent);
}

.shop-intro {
  max-width: 440px;
  margin: 0;
  color: rgba(255, 255, 255, .83);
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.6;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .75);
}

.shop-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #052516 !important;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  transition: filter .2s ease, transform .2s ease;
}

.shop-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.hero-caption {
  position: absolute;
  right: 50px;
  bottom: 34px;
  color: rgba(255, 255, 255, .72);
  font-size: 9px;
  letter-spacing: .16em;
}

.hero-caption span {
  margin-right: 10px;
  color: var(--accent);
}

.shop-collections {
  padding: 70px max(24px, calc((100% - 1040px) / 2)) 90px;
  background: rgba(8, 10, 9, .68);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 26px;
}

.section-heading h2,
.shop-about h2 {
  margin: 11px 0 0;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 650;
  letter-spacing: -.055em;
}

.section-heading > p,
.collection-card p,
.shop-about > p:last-child {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.collection-card {
  position: relative;
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(15, 18, 17, .72);
}

.collection-card::after {
  position: absolute;
  right: -25px;
  bottom: -90px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(0, 217, 120, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(0, 217, 120, .025);
  content: "";
}

.collection-models::after {
  right: -15px;
  bottom: -55px;
  width: 160px;
  height: 220px;
  border-radius: 45% 45% 8px 8px;
  transform: rotate(35deg);
}

.collection-number {
  color: var(--accent);
  font-size: 9px;
  letter-spacing: .16em;
}

.collection-card h3 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -.04em;
}

.collection-card p {
  max-width: 260px;
  margin: 0;
}

.collection-arrow {
  position: absolute;
  right: 25px;
  bottom: 25px;
  color: var(--accent);
  font-size: 20px;
}

.shop-about {
  padding: 80px max(24px, calc((100% - 1040px) / 2));
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(8, 10, 9, .78);
}

.shop-about h2 {
  margin-top: 18px;
  font-size: clamp(38px, 5vw, 58px);
}

.shop-about > p:last-child {
  max-width: 450px;
  margin: 18px 0 0;
  font-size: 14px;
}

.shop-footer {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 50px;
  background: rgba(8, 10, 9, .9);
  color: var(--muted);
  font-size: 10px;
}

.shop-footer .shop-brand {
  color: var(--text);
  font-size: 12px;
  letter-spacing: .08em;
}

.shop-footer .shop-brand strong {
  color: var(--accent);
  font-weight: 500;
}

.error-body {
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 100px 24px 40px;
  text-align: center;
}

.error-content {
  position: relative;
  z-index: 1;
  width: min(100%, 700px);
}

.error-code {
  margin: 26px 0 0;
  color: var(--accent);
  font-size: clamp(60px, 10vw, 90px);
  font-weight: 750;
  letter-spacing: -.07em;
  line-height: 1;
  text-shadow: 0 3px 28px rgba(0, 0, 0, .45);
}

.error-content h1 {
  margin: 8px 0 12px;
  font-size: clamp(42px, 8vw, 68px);
  font-weight: 750;
  letter-spacing: -.07em;
  line-height: 1.02;
  text-shadow: 0 3px 28px rgba(0, 0, 0, .45);
}

.error-content > p:not(.shop-eyebrow):not(.error-code) {
  margin: 0;
  color: rgba(255, 255, 255, .83);
  font-size: 15px;
  line-height: 1.6;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .75);
}

@media (max-width: 600px) {
  .site-header {
    top: 24px;
    right: 24px;
    left: 24px;
  }

  .brand {
    gap: 9px;
    font-size: 13px;
  }

  .logo {
    width: 32px;
    height: 32px;
  }

  .menu-panel {
    top: 80px;
    right: 16px;
  }

  .hero-caption {
    right: 24px;
    bottom: 24px;
    font-size: 8px;
  }

  .shop-collections {
    padding: 54px 24px 68px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .section-heading > p {
    margin: 0;
  }

  .collection-grid {
    grid-template-columns: 1fr;
  }

  .collection-card {
    min-height: 210px;
  }

  .shop-about {
    padding: 62px 24px;
  }

  .shop-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle span,
  .shop-button {
    transition: none;
  }
}
