:root {
  --bg: #f3f5fb;
  --surface: #ffffff;
  --text: #131626;
  --muted: #4e5775;
  --primary: #6955ff;
  --primary-strong: #4b36f2;
  --border: #dce2fa;
  --shadow: 0 14px 40px rgba(20, 24, 45, 0.12);
}

:root[data-theme='dark'] {
  --bg: #0b1020;
  --surface: #131a33;
  --text: #eef2ff;
  --muted: #b2bcde;
  --primary: #8d7dff;
  --primary-strong: #b5a9ff;
  --border: #2c3764;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.bg-decoration {
  position: fixed;
  inset: -20% 0 auto;
  height: 550px;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 25%, rgb(141 125 255 / 35%), transparent 28%),
    radial-gradient(circle at 80% 15%, rgb(59 129 246 / 25%), transparent 26%),
    radial-gradient(circle at 52% 70%, rgb(122 57 255 / 20%), transparent 30%);
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.brand__logo {
  background: var(--primary);
  color: #fff;
  border-radius: 0.65rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.95rem;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-link {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-link--active {
  background: var(--primary);
  color: #fff;
}

.theme-toggle {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.page-content {
  padding-bottom: 1rem;
}

.page-panel {
  padding: 2rem 0;
}

.hero {
  padding-top: 3rem;
}

.eyebrow {
  color: var(--primary-strong);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0.2rem 0 1rem;
}

h1 span {
  color: var(--primary-strong);
}

.hero__copy {
  max-width: 65ch;
  color: var(--muted);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.btn {
  border: 0;
  text-decoration: none;
  border-radius: 0.8rem;
  padding: 0.72rem 1.1rem;
  font-weight: 600;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.links-section,
.social {
  padding: 2rem 0;
}

h2 {
  margin-bottom: 0.3rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.links-section > p {
  color: var(--muted);
  margin-top: 0;
}

.cards-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.2rem;
}

.cards-grid--collections {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.cards-grid--filaments {
  grid-template-columns: 1fr;
}

@media (max-width: 900px) {
  .cards-grid--collections {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.card {
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 1.15rem;
}

.card h3 {
  margin-top: 0.2rem;
}

.card p {
  color: var(--muted);
}

.card-link {
  border: 0;
  background: transparent;
  color: var(--primary-strong);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.card a,
.social-links a {
  color: var(--primary-strong);
  text-decoration: none;
  font-weight: 600;
}

.product-card {
  padding: 0.5rem;
}

.product-card__layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
}

.product-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-card__media {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-card__image,
.product-card__image-placeholder {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.8rem;
  border: 1px solid var(--border);
}

.product-card__image-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
}

.product-card__badge {
  margin: 0;
  width: fit-content;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}

.product-card__rating {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #f59e0b;
}

.product-card__rating span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.product-card__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
}

.product-card__hint {
  margin: 0;
  color: var(--muted);
}

.product-card__cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .product-card {
    padding: 1.15rem;
  }

  .product-card__layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .product-card__cta {
    justify-content: flex-start;
  }
}

.warning {
  color: #dc2626;
  font-weight: 600;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
}

.site-footer {
  padding: 2.5rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.8rem;
}

.site-footer__social a {
  color: var(--primary-strong);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.back-button {
  margin-bottom: 1rem;
}

.details-list {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
}
