:root {
  --helmets-bg: #070707;
  --helmets-accent: #ff7a1a;
  --helmets-muted: rgba(255, 255, 255, 0.72);
}

body.helmets-page {
  background: var(--helmets-bg);
  color: #fff;
}

.helmets-hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 140px 24px 70px;
  background: linear-gradient(180deg, rgba(255, 122, 26, 0.08), transparent 70%), var(--helmets-bg);
}

.helmets-hero-content {
  width: min(1200px, 100%);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.8s ease forwards;
}

.helmets-hero .eyebrow {
  margin-bottom: 16px;
  animation: none;
  opacity: 1;
  transform: none;
}

.helmets-hero h1 {
  margin: 0 0 18px;
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.helmets-hero-copy {
  margin: 0;
  max-width: 640px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--helmets-muted);
}

.helmets-hero-meta {
  margin-top: 24px;
  color: var(--helmets-accent);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.helmets-filters {
  position: static;
  z-index: auto;
  padding: 0 24px 28px;
  overflow: visible;
  margin-top: 0;
}

.helmets-filter-bar {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  grid-template-areas:
    "brand type price"
    "sort search search";
  gap: 16px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(18px);
  animation: heroFadeUp 0.8s ease forwards;
  animation-delay: 0.15s;
  position: relative;
  z-index: auto;
  overflow: visible;
}

.filter-brand {
  grid-area: brand;
}

.filter-type {
  grid-area: type;
}

.filter-price {
  grid-area: price;
}

.filter-sort {
  grid-area: sort;
}

.filter-search {
  grid-area: search;
}

@media (max-width: 1140px) {
  .helmets-filter-bar {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    grid-template-areas:
      "brand type"
      "price search"
      "sort search";
  }
}

@media (max-width: 760px) {
  .helmets-filter-bar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "type"
      "price"
      "sort"
      "search";
  }
}

.filter-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 10001;
}

.filter-control span {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.filter-control select,
.filter-control input {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.96);
  color: #fff;
  padding: 11px 14px;
  font-size: 0.95rem;
  outline: none;
  position: relative;
  z-index: 10002;
}

.filter-control select:focus,
.filter-control input:focus {
  border-color: var(--helmets-accent);
}

.filter-control select option {
  background: #0d0d0d;
  color: #fff;
}

.filter-control select option:checked,
.filter-control select option:hover {
  background: var(--helmets-accent);
  color: #fff;
}

.helmets-grid-section {
  padding: 20px 24px 100px;
  position: relative;
  z-index: 1;
  overflow: visible;
  margin-top: 0;
}

.helmets-grid {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  position: relative;
  z-index: 1;
}

.helmet-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 10px 10px;
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.35s ease, filter 0.35s ease;
  position: relative;
  z-index: 1;
}

.helmet-product.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.helmet-product:hover,
.helmet-product:focus-within {
  transform: translateY(-8px);
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.28));
}

.helmet-product-button {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 100%;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.helmet-product img {
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
  transition: transform 0.35s ease-in-out;
}

.helmet-product:hover img,
.helmet-product:focus-within img {
  transform: scale(1.03);
}

.helmet-product-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.helmet-brand {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.35s ease;
}

.helmet-product h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.helmet-price {
  margin: 0;
  font-size: 1rem;
  color: var(--helmets-accent);
  font-weight: 600;
}

.helmet-view-details {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--helmets-accent);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.helmet-product:hover .helmet-view-details,
.helmet-product:focus-within .helmet-view-details {
  opacity: 1;
  transform: translateY(0);
}

.helmet-product:hover .helmet-brand,
.helmet-product:focus-within .helmet-brand {
  color: var(--helmets-accent);
}

.helmet-empty-state {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 72px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  background: linear-gradient(140deg, rgba(255, 122, 26, 0.08), rgba(255, 255, 255, 0.03));
  text-align: center;
}

.helmet-empty-illustration {
  width: 124px;
  height: 124px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 122, 26, 0.35);
  position: relative;
  display: grid;
  place-items: center;
}

.helmet-empty-illustration span {
  position: absolute;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.helmet-empty-illustration span:nth-child(2) {
  transform: rotate(45deg);
}

.helmet-empty-state h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  text-transform: uppercase;
}

.helmet-empty-state p {
  margin: 0;
  color: var(--helmets-muted);
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .helmets-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .helmets-filter-bar {
    grid-template-columns: 1fr 1fr;
    border-radius: 24px;
  }

  .filter-control-search {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .helmets-hero {
    padding: 120px 18px 54px;
  }

  .helmets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .helmets-filter-bar {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .filter-control-search {
    grid-column: span 1;
  }
}
