/* ── @font-face ──────────────────────────────────────────── */

@font-face {
  font-family: 'Helios';
  src: url('../media/fonts/TB1990Helios.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helios';
  src: url('../media/fonts/TB1990Helios-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Reset ───────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Base ────────────────────────────────────────────────── */

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font);
  font-weight: var(--weight-regular);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  background: var(--bg);
  color: var(--fg-1);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }

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

.accent-link {
  color: var(--accent-bright);
}

.accent-link:visited {
  color: var(--accent-bright);
}

.accent-link:hover {
  text-decoration: underline;
}



img {
  display: block;
  max-width: 100%;
}

/* ── Focus ───────────────────────────────────────────────── */

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ── Reduced motion ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  line-height: 1;
  padding: 10px 20px;
  border-radius: var(--radius-2);
  border: none;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-accent {
  background: var(--accent-fill);
  color: var(--fg-on-accent);
}

.btn-accent:hover {
  background: var(--accent-fill-hover);
}

.btn-accent:active {
  background: var(--accent-fill-press);
}

.btn-outline {
  background: transparent;
  color: var(--accent-bright);
  border: 1px solid var(--accent-bright);
}

.btn-outline:hover {
  background: var(--accent-fill-hover);
  border-color: var(--accent-fill-hover);
  color: var(--fg-on-accent);
}

.btn-outline:active {
  background: var(--accent-fill-press);
  border-color: var(--accent-fill-press);
  color: var(--fg-on-accent);
}

/* ── Header ──────────────────────────────────────────────── */

.global-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--header-bg);
  backdrop-filter: var(--header-blur);
  -webkit-backdrop-filter: var(--header-blur);
  border-bottom: 1px solid var(--header-border);
  z-index: var(--z-header);
}

@supports not (backdrop-filter: blur(1px)) {
  .global-header {
    background: var(--bg);
  }
}

.nav-content {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-5);
  height: 44px;
}

.nav-logo {
  display: flex;
  align-items: center;
  color: var(--fg-1);
  transition: color var(--transition);
}

.nav-logo:hover,
.nav-logo:active {
  color: var(--btn-neutral);
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: var(--space-5);
}

.nav-link {
  font-size: var(--text-xs);
  color: var(--fg-2);
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--fg-1);
}

.nav-right {
  display: flex;
  align-items: center;
}

.nav-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--fg-2);
  cursor: pointer;
  padding: var(--space-1);
  transition: color var(--transition);
}

.nav-search-btn:hover:not(:disabled) {
  color: var(--fg-1);
}

.nav-search-btn:disabled {
  color: var(--fg-3);
  cursor: not-allowed;
}

.icon-search {
  filter: invert(1);
  opacity: 0.6;
  transition: opacity var(--transition);
}

.nav-search-btn:hover:not(:disabled) .icon-search {
  opacity: 0.92;
}

.nav-search-btn:disabled .icon-search {
  opacity: 0.3;
}

/* ── Footer ──────────────────────────────────────────────── */

.global-footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-3) var(--space-4);
  margin-top: 0;
}

.footer-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
  font-size: var(--text-xs);
  color: var(--fg-3);
}

.footer-path {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.footer-path-logo {
  color: var(--fg-2);
  display: flex;
  transition: color var(--transition);
}

.footer-path-logo:hover,
.footer-path-logo:active {
  color: var(--fg-1);
}

.footer-path-sep {
  filter: invert(1);
  opacity: 0.38;
}

.footer-path-current {
  color: var(--fg-2);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
}

.footer-sitemap-link {
  color: var(--fg-3);
  transition: color var(--transition);
}

.footer-sitemap-link:hover {
  color: var(--fg-1);
}

/* ── Layout ──────────────────────────────────────────────── */

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

section {
  padding: var(--space-7) var(--space-4);
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

/* ── Page hero ───────────────────────────────────────────── */

.page-hero {
  text-align: center;
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
}

.page-hero h1 {
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-3);
}

.page-hero-sub {
  font-size: var(--text-lg);
  color: var(--fg-2);
}

/* ── Product hero ────────────────────────────────────────── */

.product-hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  overflow: hidden;
  background: var(--surface-sunken);
  cursor: pointer;
}

.product-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
}

.product-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-4);
  z-index: 1;
}

.product-hero h1 {
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-3);
}

.product-hero-sub {
  font-size: var(--text-xl);
  color: var(--fg-1);
  margin-bottom: var(--space-6);
}

.product-hero-actions {
  display: flex;
  gap: var(--space-3);
}

.product-hero-product {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: var(--container-wide);
  padding: var(--space-6) var(--space-4) 0;
  z-index: 1;
}

.product-hero-window {
  width: 100%;
  max-width: var(--container);
  height: auto;
  border-radius: var(--radius-4);
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 768px) {
  .nav-content {
    padding: 0 var(--space-4);
  }

  .search-bar-inner {
    padding: var(--space-3) var(--space-4);
  }

  .search-results {
    padding: 0 var(--space-4);
  }

  .product-hero {
    min-height: 500px;
  }

  .product-hero h1 {
    font-size: var(--text-3xl);
  }

  .product-hero-sub {
    font-size: var(--text-lg);
  }

  .footer-bottom {
    flex-direction: column-reverse;
    gap: var(--space-2);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .product-hero {
    min-height: 400px;
  }

  .product-hero h1 {
    font-size: var(--text-2xl);
  }

}
