:root {
  --site-line: rgba(255, 255, 255, 0.1);
  --site-text: #e5e7eb;
  --site-muted: rgba(229, 231, 235, 0.72);
  --site-panel: rgba(15, 23, 42, 0.62);
  --site-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  --site-accent: #7c3aed;
  --site-accent-blue: #3b82f6;
  --site-accent-yellow: #ffd24d;
}

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

.site-header {
  padding-top: 14px;
  position: relative;
  z-index: 20;
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid var(--site-line);
  background: var(--site-panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--site-shadow);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  flex: 0 0 auto;
}

.site-brand img {
  width: 140px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 210, 77, 0.24));
}

.site-header__navwrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: auto;
  padding: 4px 0;
}

.site-header__row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-header__eyebrow {
  color: var(--site-accent-yellow);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--site-text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-weight: 600;
  overflow: hidden;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease;
}

.site-nav__link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 0.16s ease;
}

.site-nav__link.is-active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.28), rgba(59, 130, 246, 0.18));
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 20px rgba(59, 130, 246, 0.1);
}

.site-nav__link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.site-nav__link:hover::before,
.site-nav__link.is-active::before {
  opacity: 1;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding-left: 0;
}

.site-cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--site-text);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.site-cart-link:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(59, 130, 246, 0.12));
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

.site-cart-link strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--site-accent), var(--site-accent-blue));
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.22);
}

.theme-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

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

.theme-button--primary {
  background: linear-gradient(135deg, var(--site-accent-yellow), #ffe88e);
  color: #0b1020;
  border-color: transparent;
}

.theme-button--secondary {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(59, 130, 246, 0.16));
  color: var(--site-text);
  border-color: rgba(124, 58, 237, 0.34);
}

.theme-button--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--site-text);
}

.site-footer {
  padding: 22px 0 28px;
}

.site-footer__inner {
  align-items: start;
}

.site-footer__inner p {
  margin: 6px 0 0;
  color: var(--site-muted);
  line-height: 1.5;
}

.site-footer__links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-footer__links a {
  color: var(--site-muted);
  text-decoration: none;
}

@media (max-width: 760px) {
  .site-header,
  .site-footer {
    width: min(100% - 20px, 1240px);
  }

  .site-header__inner,
  .site-footer__inner {
    flex-direction: column;
    align-items: start;
  }

  .site-header__navwrap,
  .site-header__row,
  .site-nav,
  .site-footer__links,
  .site-header__actions {
    width: 100%;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .site-header__actions {
    padding-left: 0;
  }

  .site-cart-link {
    width: 100%;
  }
}
