:root {
  --bg: #0f0f10;
  --panel: #151517;
  --panel-soft: #1b1b1e;
  --text: #f4f4f5;
  --muted: #a2a2a8;
  --quiet: #73737a;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #b84d6f;
  --accent-hover: #cf6686;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

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

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 14px clamp(16px, 4vw, 42px);
  background: rgba(15, 15, 16, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #18181a;
  color: var(--text);
  font-size: 13px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.desktop-nav a,
.back-link {
  transition: color 160ms ease;
}

.desktop-nav a:hover,
.back-link:hover {
  color: var(--text);
}

.cart-button,
.button,
.icon-button {
  border: 0;
  cursor: pointer;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14px;
}

.cart-button strong {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
}

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 92px) clamp(16px, 4vw, 32px) 28px;
}

.hero--simple {
  min-height: auto;
}

.hero__copy {
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 500;
  line-height: 1.12;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}

.hero__lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--accent);
  color: #fff;
}

.button--primary:hover {
  background: var(--accent-hover);
}

.button--ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.button--ghost:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.button--wide {
  width: 100%;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 52px clamp(16px, 4vw, 32px);
}

.section--products {
  padding-top: 20px;
}

.section__heading {
  max-width: 680px;
  margin-bottom: 24px;
}

.section__heading p,
.product-card p,
.steps p,
.faq p,
.product-detail__intro,
.product-points,
.cart-note,
.cart-empty,
.cart-item small {
  color: var(--muted);
}

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

.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.product-card:hover {
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-2px);
}

.product-card__image {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #18181a;
}

.product-photo {
  display: grid;
  place-items: center;
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: #18181a;
}

.product-photo img,
.product-detail__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  transition: transform 200ms ease;
}

.product-card__image:hover img {
  transform: scale(1.015);
}

.product-card__body {
  display: grid;
  align-content: start;
}

.product-card__body p {
  margin-bottom: 0;
  font-size: 14px;
}

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

.price {
  white-space: nowrap;
  font-weight: 600;
}

.price--large {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 22px;
  font-weight: 500;
}

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

.steps article,
.safe-mode-box,
.faq-list details {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.steps article {
  padding: 20px;
}

.steps span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent-hover);
  font-size: 13px;
}

.safe-mode-box {
  margin-top: 14px;
  padding: 20px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 500;
}

details p {
  padding: 0 18px 16px;
}

.product-detail {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 32px) 56px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--quiet);
  font-size: 14px;
}

.product-detail__grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.86fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: center;
  min-height: calc(100vh - 140px);
}

.product-detail__image {
  display: grid;
  place-items: center;
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: #18181a;
  box-shadow: var(--shadow);
}

.product-detail__image img {
  padding: 12px;
}

.product-detail__content {
  display: grid;
  gap: 14px;
}

.product-points {
  display: grid;
  gap: 8px;
  margin: 0 0 6px;
  padding-left: 18px;
}

.product-form {
  display: grid;
  gap: 16px;
  margin-top: 4px;
}

.product-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bundle-options {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.field select,
.field input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
}

.qr-fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.qr-fieldset legend {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.qr-choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.qr-choice:has(input:checked) {
  border-color: rgba(184, 77, 111, 0.75);
  background: rgba(184, 77, 111, 0.12);
}

.qr-choice input {
  margin-top: 4px;
  accent-color: var(--accent);
}

.qr-choice small {
  display: block;
  color: var(--muted);
}

.product-not-found {
  max-width: 640px;
  padding: 80px 0;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  background: rgba(0, 0, 0, 0.56);
}

.cart-drawer.is-open {
  display: block;
}

.cart-drawer__panel {
  margin-left: auto;
  width: min(440px, 100%);
  min-height: 100%;
  padding: 22px;
  background: #121214;
  box-shadow: var(--shadow);
}

.cart-drawer__header,
.cart-summary div,
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.cart-items {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.cart-item {
  align-items: flex-start;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.cart-item small {
  display: block;
}

.cart-item button {
  border: 0;
  background: transparent;
  color: var(--accent-hover);
  cursor: pointer;
  font-weight: 600;
}

.cart-empty {
  margin: 22px 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.cart-summary {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.cart-note {
  margin: 0;
  font-size: 13px;
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 80;
  display: none;
  transform: translateX(-50%);
  padding: 12px 16px;
  border-radius: var(--radius);
  background: #222226;
  color: var(--text);
  box-shadow: var(--shadow);
}

.toast.is-visible {
  display: block;
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    flex-wrap: wrap;
  }

  .desktop-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 16px;
  }

  .product-grid,
  .steps,
  .product-detail__grid {
    grid-template-columns: 1fr;
  }

  .product-detail__grid {
    min-height: auto;
  }

  .product-detail__image {
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 10px;
  }

  .cart-button span {
    display: none;
  }

  .desktop-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero__actions,
  .product-card__footer,
  .product-options {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}
