@import url('https://fonts.cdnfonts.com/css/nexa-bold');

:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --text: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #fef3c7;
  --shadow-soft: 0 10px 20px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 25px 40px rgba(15, 23, 42, 0.12);
  --font: 'Nexa', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-family: var(--font);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font, 'Space Grotesk', 'Helvetica Neue', Helvetica, sans-serif);
  line-height: 1.6;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes floaty {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

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

a:hover {
  text-decoration: underline;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0;
}

.branding {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}

.branding:hover,
.branding:focus {
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 0.9rem;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.15);
}

.branding-text .logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header-controls {
  justify-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.header-menu {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
  border-radius: 0.85rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.18);
}

.site-header.nav-open .menu-toggle {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.menu-icon {
  position: relative;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  display: inline-block;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: inherit;
  transition: transform 0.2s ease;
}

.menu-icon::before {
  transform: translateY(-6px);
}

.menu-icon::after {
  transform: translateY(6px);
}

.site-header.nav-open .menu-icon {
  background: transparent;
}

.site-header.nav-open .menu-icon::before {
  transform: translateY(0) rotate(45deg);
}

.site-header.nav-open .menu-icon::after {
  transform: translateY(0) rotate(-45deg);
}

.menu-label {
  font-size: 0.95rem;
  font-weight: 600;
}

.main-nav {
  display: inline-flex;
  gap: 1.5rem;
  font-weight: 600;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(148, 163, 184, 0.4);
}

.language-switcher button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.language-switcher button.active {
  color: var(--primary-dark);
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(37, 99, 235, 0.1);
}

.language-switcher button span {
  font-size: 1rem;
}

.language-switcher [data-lang-label] {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(960px, 95vw);
  background: #fff;
  border-radius: 1rem;
  box-shadow: var(--shadow-strong);
  padding: 1.25rem 1.5rem;
  z-index: 100;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.is-hiding {
  opacity: 0;
  transform: translate(-50%, 20px);
}

.cookie-banner__content {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.cookie-banner__text {
  flex: 1;
}

.cookie-banner__text h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.cookie-banner__text p {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.cookie-banner__actions {
  display: inline-flex;
  gap: 0.75rem;
}

.cookie-banner__actions .btn {
  min-width: 120px;
}

.main-nav a {
  position: relative;
  padding: 0.4rem 0;
  color: var(--text);
  opacity: 0.75;
  transition: opacity 0.2s ease;
  text-decoration: none;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -0.25rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  opacity: 1;
  text-decoration: none;
}

.main-nav a[aria-current='page']::after,
.main-nav a:hover::after {
  opacity: 1;
}

main {
  padding: 3rem 0;
}

.motion-fade {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: var(--delay, 0ms);
}

.motion-slide {
  opacity: 0;
  animation: slideIn 0.9s ease forwards;
}

.motion-float {
  animation: floaty 4s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal[data-reveal='slide'] {
  transform: translateY(90px);
}

.reveal[data-reveal='zoom'] {
  transform: scale(0.96);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1.7rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
  background: var(--primary-dark);
}

.btn.secondary {
  background: var(--text);
  color: #fff;
}

.btn.ghost {
  border-color: var(--line);
  color: var(--text);
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  position: relative;
}

.hero-layer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 55%);
  pointer-events: none;
}

.hero-layer .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.intro-lead {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.stat-grid span {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
}

.hero-media {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.floating-card {
  background: var(--surface);
  border-radius: 1rem;
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  max-width: 320px;
}

.floating-card span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.preview-grid {
  padding: 3rem 0;
}

.preview-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.preview-card {
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.preview-image {
  background: linear-gradient(135deg, #e5edff, #f8fafc);
  aspect-ratio: 4 / 3;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-body {
  padding: 1.2rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.preview-body h3 {
  margin: 0;
  font-size: 1.1rem;
}

.preview-body p {
  margin: 0;
  color: var(--muted);
  min-height: 2.8rem;
}

.preview-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  font-weight: 600;
}

.price-tag {
  font-size: 1rem;
  color: var(--primary-dark);
}

.preview-link a,
.preview-link {
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: none;
}

.preview-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.preview-retry {
  align-self: flex-start;
  margin-top: 0.4rem;
}

.preview-retry:disabled {
  opacity: 0.6;
  cursor: wait;
}

.preview-card.skeleton .preview-image {
  background: linear-gradient(90deg, #f4f4f7, #e9edf5, #f4f4f7);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}

.preview-card.skeleton .preview-body h3,
.preview-card.skeleton .preview-body p,
.preview-card.skeleton .preview-meta span {
  background: #eef2ff;
  border-radius: 0.6rem;
  min-height: 16px;
  color: transparent;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.info-section {
  padding: 3rem 0 4rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.info-grid article {
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1.5rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0.6rem 0 1rem;
}

.hero-card,
.panel,
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}

.hero-banner {
  margin: 0;
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  background: var(--surface);
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent);
}

.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -60px 80px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.hero-banner figcaption {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 1.25rem;
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-soft);
}

.hero-banner h2 {
  margin: 0 0 0.3rem;
}

.hero-banner-large {
  min-height: 420px;
  width: 100%;
  height: 100%;
  display: flex;
}

.section-light,
.section-highlight {
  padding: 3.5rem 0;
}

.pillars {
  padding: 4rem 0;
}

.section-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.pillar-card {
  background: var(--surface);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  min-height: 210px;
}

.section-light {
  background: var(--surface);
}

.section-highlight {
  background: linear-gradient(120deg, #e0e7ff, #f5f3ff);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.highlight-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.featured {
  padding: 4rem 0;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), transparent);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: center;
}

.spotlight-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.spotlight-list li {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.spotlight-list strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.cta {
  padding: 4rem 0 5rem;
}

.cta-panel {
  background: var(--surface);
  border-radius: 1.5rem;
  padding: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-strong);
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 0.45rem 0;
  color: var(--muted);
}

.footer-slim {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.82rem;
  line-height: 1.2;
}

.footer-links {
  display: flex;
  gap: 0.7rem;
}

/* Products */
.catalog-shell {
  padding: 1.5rem 0 4rem;
}

.numbers-hero {
  padding: 1.5rem 0 1rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(15, 23, 42, 0.06));
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.numbers-hero .hero-grid {
  gap: 1.5rem;
  align-items: flex-end;
}

.numbers-hero .hero-copy h1 {
  margin: 0.2rem 0 0.6rem;
}

.zigzag-block {
  padding: 3rem 0;
}

.zigzag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.zigzag-media {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.zigzag-block.reverse .zigzag-media {
  order: 2;
}

.zigzag-block.reverse .zigzag-text {
  order: 1;
}

.zigzag-text article {
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1.3rem 1.4rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  margin-bottom: 1rem;
}

.zigzag-text article:last-of-type {
  margin-bottom: 0;
}

.zigzag-text .banner-figure {
  margin-top: 1rem;
}

.split-highlight {
  padding: 3rem 0;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: center;
}

.split-text ul {
  list-style: disc;
  margin: 1rem 0 0;
  padding-left: 1.4rem;
  color: var(--muted);
}

.split-text li + li {
  margin-top: 0.4rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.hero-metrics article {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1.25rem;
  padding: 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.hero-metrics span {
  display: block;
  font-size: 1.8rem;
  font-weight: 600;
}

.filter-hub {
  padding: 1.5rem 0 3.5rem;
}

.filter-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  padding: 1.1rem 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.filter-card-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
}

.filter-card-controls input,
.filter-card-controls select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  font: inherit;
  background: #fff;
}

.layout-grid-tight {
  margin-top: 2.5rem;
}

.layout-grid-tight .filters {
  position: sticky;
  top: 1rem;
}

.filters .dual {
  gap: 0.5rem;
}

.dual-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.filters button {
  margin-top: 0.5rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0.8rem;
  padding: 0.7rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

.product-feed {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1rem 1.25rem;
  background: #f8fafc;
}

.legend {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.legend-chip {
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.legend-deal {
  background: #fee2e2;
  color: #b91c1c;
}

.legend-fresh {
  background: #dcfce7;
  color: #15803d;
}

.legend-classic {
  background: #e0e7ff;
  color: #1d4ed8;
}

.quick-filter-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 1.1rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.chip:hover {
  background: #eef2ff;
}

.chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-soft);
}

.chip-row-muted .chip {
  background: #f8fafc;
}

.chip-hint {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.catalog-shell .layout-grid {
  margin-top: 1rem;
}

.page-header {
  margin-bottom: 2rem;
}

.layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

@media (max-width: 900px) {
  .container,
  .container-wide {
    padding: 0 1.25rem;
  }
}

@media (max-width: 768px) {
  .container,
  .container-wide {
    padding: 0 1rem;
  }

  .header-inner {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .header-controls {
    width: 100%;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
  }

  .menu-toggle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    padding: 0;
    gap: 0;
  }

  .menu-label {
    display: none;
  }

  .header-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: var(--shadow-strong);
    background: var(--surface);
    z-index: 40;
  }

  .header-menu::before {
    content: '';
    position: absolute;
    top: -9px;
    right: 32px;
    width: 18px;
    height: 18px;
    background: var(--surface);
    border-left: 1px solid rgba(148, 163, 184, 0.45);
    border-top: 1px solid rgba(148, 163, 184, 0.45);
    transform: rotate(45deg);
    pointer-events: none;
  }

  .site-header[data-nav-ready='true'] .header-menu {
    display: none;
  }

  .site-header[data-nav-ready='true'].nav-open .header-menu {
    display: flex;
  }

  .main-nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    font-size: 1rem;
  }

  .main-nav a {
    padding: 0.7rem 0.85rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #f8fafc;
    opacity: 1;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a[aria-current='page'] {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-dark);
  }

  .language-switcher {
    width: 100%;
    border: none;
    border-radius: 1rem;
    margin-left: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.45rem;
  }

  .language-switcher button {
    width: 100%;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 0.5rem 0.6rem;
  }

  .hero {
    padding: 2.8rem 0 2rem;
  }

  .hero-grid {
    gap: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .floating-card {
    max-width: 100%;
  }

  .zigzag-grid,
  .split-grid,
  .hero-metrics,
  .preview-card-grid {
    gap: 1.25rem;
  }

  .preview-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .filter-card-controls {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .layout-grid-tight {
    margin-top: 1.5rem;
  }

  .layout-grid-tight .filters {
    position: static;
  }

  .cookie-banner {
    width: calc(100% - 2rem);
    left: 1rem;
    transform: none;
    bottom: 1rem;
  }

  .cookie-banner__content {
    flex-direction: column;
    gap: 1rem;
    text-align: left;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: stretch;
    flex-direction: column;
  }

  .cookie-banner__actions .btn {
    width: 100%;
  }

  .filter-card {
    padding: 1rem 1.1rem 1.2rem;
  }

  .hero-metrics article {
    padding: 1rem;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 2rem;
  }

  .hero-copy h1 {
    font-size: 1.9rem;
  }

  .preview-card {
    border-radius: 1.1rem;
  }

  .filter-card-controls {
    grid-template-columns: 1fr;
  }

  .header-controls {
    gap: 0.5rem;
  }

  .cookie-banner__actions {
    flex-direction: column;
  }
}

@media (max-width: 960px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filters label {
  font-weight: 600;
  font-size: 0.9rem;
}

.filters input,
.filters select,
.form-control input,
.form-control textarea,
.multi-select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 0.8rem;
  border: 1px solid var(--line);
  font: inherit;
  background: #fff;
}

.form-control {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.banner-figure {
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.banner-figure img {
  border-radius: 0.8rem;
  width: 100%;
  height: auto;
}

.banner-figure-large {
  margin-top: 2rem;
  padding: 1rem;
}

.products-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.trend-badge {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.trend-deal {
  background: #fee2e2;
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.2);
}

.trend-classic {
  background: #e0f2fe;
  color: #0369a1;
  border-color: rgba(3, 105, 161, 0.2);
}

.product-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
}

.product-card .badge-row {
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge-accent {
  background: #fee2e2;
  color: #b91c1c;
}

.price-line {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
}

.price-line .price-current {
  font-size: 1.4rem;
  font-weight: 600;
}

.price-line .price-original {
  font-size: 0.95rem;
  text-decoration: line-through;
  color: var(--muted);
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.gallery-main {
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.gallery-thumbs button {
  border: 1px solid transparent;
  border-radius: 0.7rem;
  width: 64px;
  height: 64px;
  padding: 0;
  cursor: pointer;
  opacity: 0.6;
}

.gallery-thumbs button.active {
  border-color: var(--primary);
  opacity: 1;
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge,
.pill {
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary-dark);
  font-size: 0.8rem;
}

.card-btn {
  align-self: flex-start;
  font-size: 0.9rem;
}

.metric-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.metric-chip {
  padding: 0.25rem 0.7rem;
  border-radius: 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid;
}

.metric-deal {
  background: #fef2f2;
  border-color: rgba(185, 28, 28, 0.2);
  color: #b91c1c;
}

.metric-classic {
  background: #f0f9ff;
  border-color: rgba(2, 132, 199, 0.2);
  color: #0369a1;
}

.metric-category {
  background: #eef2ff;
  border-color: rgba(79, 70, 229, 0.25);
  color: #3730a3;
}

.card-note {
  margin: 0;
  color: var(--muted);
  min-height: 2.5rem;
}

.card-actions {
  display: flex;
  justify-content: flex-end;
}

.card-btn.elevated {
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .numbers-hero {
    display: none;
  }

  .filter-hub {
    padding-top: 0.5rem;
  }

  .legend {
    display: none;
  }

  .layout-grid-tight {
    margin-top: 1rem;
  }

  .layout-grid-tight .filters {
    display: none;
  }

  .products-grid {
    display: flex;
    flex-direction: column;
  }

  .feed-header {
    border: none;
    padding: 0.5rem 0 0;
    background: transparent;
    align-items: flex-start;
  }

  .product-card {
    flex-direction: row;
    gap: 1rem;
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    padding: 0.9rem;
    background: var(--surface);
    box-shadow: none;
  }

  .product-gallery {
    width: 130px;
    flex-shrink: 0;
    gap: 0;
  }

  .gallery-main {
    border: none;
    border-radius: 0.9rem;
  }

  .gallery-thumbs {
    display: none;
  }

  .product-card .card-body {
    gap: 0.5rem;
  }

  .product-card .card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
  }

  .product-card .badge-row,
  .product-card .metric-row,
  .product-card .card-note {
    display: none;
  }

  .product-card .card-top {
    order: -1;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0.1rem;
  }

  .product-card .trend-badge {
    font-size: 0.75rem;
  }

  .price-line {
    margin: 0;
    align-items: baseline;
    gap: 0.4rem;
  }

  .price-line .price-current {
    font-size: 1.2rem;
  }

  .price-line .price-original {
    font-size: 0.85rem;
  }

  .card-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .card-actions .card-btn {
    width: 100%;
    text-align: center;
  }
}

/* Admin */
.admin-shell {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.admin-area {
  display: contents;
}

.admin-tabs {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tab-button {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tab-button.active {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
  border-color: var(--primary);
}

.tab-panels {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.dashboard-grid .panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel.accent {
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
}

.panel-head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.panel-banner {
  width: 100%;
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
}

.form-vertical {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-section {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-section .section-head h3 {
  margin: 0;
}

.form-section .section-head .eyebrow {
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.form-grid-tight {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.form-grid .col-2 {
  grid-column: span 2;
}

.form-grid button[type='submit'] {
  grid-column: span 2;
  justify-self: flex-start;
}

@media (max-width: 640px) {
  .form-grid .col-2,
  .form-grid button[type='submit'] {
    grid-column: span 1;
  }
}

.switch-control {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  position: relative;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: relative;
  width: 46px;
  height: 24px;
  background: var(--line);
  border-radius: 999px;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.switch .slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease;
}

.switch input:checked + .slider {
  background: var(--primary);
}

.switch input:checked + .slider::before {
  transform: translateX(22px);
}

.switch-label {
  font-weight: 500;
}

.form-inline {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 0.8rem;
  align-items: end;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.image-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.image-row {
  display: flex;
  gap: 0.5rem;
}

.image-row input {
  flex: 1;
}

.btn.small {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

#categoryList {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

#categoryList li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

#categoryList li input {
  border-radius: 0.6rem;
  border: 1px solid var(--line);
  padding: 0.5rem 0.7rem;
  font: inherit;
}

.category-actions {
  display: flex;
  gap: 0.5rem;
}

.analytics-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.analytics-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.analytics-summary article {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.analytics-summary article span {
  font-size: 0.85rem;
  color: var(--muted);
}

.analytics-summary article strong {
  font-size: 2rem;
  line-height: 1.1;
}

.analytics-range {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.9rem 1.2rem;
  background: #fff;
}

.analytics-range .chip-row {
  gap: 0.5rem;
  display: flex;
  flex-wrap: wrap;
}

.analytics-range .chip {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0.4rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.analytics-range .chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-soft);
}

.analytics-chart {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  min-height: 200px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.analytics-bar {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: stretch;
}

.analytics-bar strong {
  font-size: 1.3rem;
}

.analytics-bar small {
  color: var(--muted);
}

.analytics-bar .bar {
  width: 100%;
  background: rgba(37, 99, 235, 0.15);
  border-radius: 0.6rem;
  overflow: hidden;
  min-height: 120px;
  display: flex;
  align-items: flex-end;
}

.analytics-bar .bar span {
  width: 100%;
  background: var(--primary);
  border-radius: 0.6rem;
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 0.3rem;
}

.analytics-table table {
  width: 100%;
  border-collapse: collapse;
}

.analytics-table th,
.analytics-table td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--line);
}

.analytics-table tr:last-child td {
  border-bottom: none;
}

.analytics-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.price-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.price-base.strike {
  text-decoration: line-through;
  color: var(--muted);
}

.price-sale {
  font-weight: 600;
  color: var(--primary-dark);
}

.price-note {
  font-size: 0.75rem;
  color: var(--primary-dark);
  background: #eef2ff;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  width: fit-content;
}

.status {
  font-size: 0.85rem;
  color: var(--muted);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 0.4rem;
  text-align: left;
}

.table button {
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.35rem 0.9rem;
  background: var(--surface);
  cursor: pointer;
}

.table a.table-link {
  display: inline-block;
  margin-left: 0.4rem;
  color: var(--primary);
  font-weight: 600;
}

.table-wrapper {
  overflow-x: auto;
}

.hidden {
  display: none !important;
}
