* {
  box-sizing: border-box;
}

:root {
  --bg: #01030a;
  --panel: rgba(3, 10, 24, 0.76);
  --line: rgba(54, 215, 255, 0.16);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --cyan: #26e6ff;
  --green: #12e67b;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #01030a;
  overflow-x: hidden;
}

.page-bg,
.page-bg span {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.page-bg {
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 94, 255, 0.12), transparent 18%),
    radial-gradient(circle at 90% 18%, rgba(0, 230, 255, 0.10), transparent 22%),
    radial-gradient(circle at 50% 90%, rgba(85, 55, 255, 0.10), transparent 26%),
    linear-gradient(180deg, #00020a 0%, #010716 45%, #01040d 100%);
}

.page-bg::before,
.page-bg::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.page-bg::before {
  background:
    radial-gradient(circle at 22% 30%, rgba(0, 155, 255, 0.10), transparent 16%),
    radial-gradient(circle at 78% 18%, rgba(0, 255, 255, 0.08), transparent 20%),
    radial-gradient(circle at 62% 78%, rgba(96, 62, 255, 0.08), transparent 22%);
  filter: blur(70px);
  animation: auroraDriftA 20s ease-in-out infinite alternate;
  opacity: 0.8;
}

.page-bg::after {
  background:
    linear-gradient(120deg, transparent 20%, rgba(0, 217, 255, 0.025) 44%, transparent 66%),
    linear-gradient(300deg, transparent 24%, rgba(45, 98, 255, 0.03) 54%, transparent 78%);
  filter: blur(28px);
  animation: auroraDriftB 26s ease-in-out infinite alternate;
  opacity: 0.65;
}

.orb {
  width: 34vw;
  height: 34vw;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.16;
}

.orb-one {
  top: 2%;
  left: -16%;
  background: #005dff;
  animation: floatOrbA 18s ease-in-out infinite alternate;
}

.orb-two {
  top: 10%;
  right: -14%;
  background: #00e7ff;
  animation: floatOrbB 21s ease-in-out infinite alternate;
}

.orb-three {
  bottom: -22%;
  left: 32%;
  background: #5f3fff;
  animation: floatOrbC 24s ease-in-out infinite alternate;
}

.grid-lines {
  background-image:
    linear-gradient(rgba(0, 217, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 255, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  transform: perspective(700px) rotateX(67deg) translateY(31%);
  transform-origin: bottom;
  opacity: 0.26;
  animation: gridShift 16s linear infinite alternate;
}

.stars {
  background-image:
    radial-gradient(circle, rgba(86, 234, 255, 0.55) 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.36) 1px, transparent 2px),
    radial-gradient(circle, rgba(72, 143, 255, 0.45) 1px, transparent 2px);
  background-size: 150px 150px, 210px 210px, 260px 260px;
  animation: driftStars 22s linear infinite, twinkle 5s ease-in-out infinite alternate;
  opacity: 0.42;
}

@keyframes auroraDriftA {
  0%   { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(2%, 3%, 0) rotate(4deg) scale(1.05); }
  100% { transform: translate3d(5%, -3%, 0) rotate(-3deg) scale(1.1); }
}

@keyframes auroraDriftB {
  0%   { transform: translate3d(2%, 0%, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(-3%, 4%, 0) rotate(-5deg) scale(1.04); }
  100% { transform: translate3d(4%, -4%, 0) rotate(6deg) scale(1.08); }
}

@keyframes floatOrbA {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(7%, 5%, 0) scale(1.12); }
}

@keyframes floatOrbB {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-9%, 5%, 0) scale(1.13); }
}

@keyframes floatOrbC {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6%, -8%, 0) scale(1.14); }
}

@keyframes gridShift {
  0%   { transform: perspective(700px) rotateX(67deg) translateY(31%) translateX(0); }
  50%  { transform: perspective(700px) rotateX(67deg) translateY(30%) translateX(-1.2%); }
  100% { transform: perspective(700px) rotateX(67deg) translateY(32%) translateX(1.2%); }
}

@keyframes driftStars {
  from { background-position: 0 0, 0 0, 0 0; }
  to   { background-position: 220px 120px, -170px 230px, 120px -180px; }
}

@keyframes twinkle {
  from { opacity: 0.3; }
  to   { opacity: 0.48; }
}

.hero {
  padding: 10px clamp(16px, 4vw, 54px) 20px;
}

.nav {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 0 18px rgba(0, 217, 255, 0.42);
}

.brand strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.05;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.nav-cta {
  color: white;
  text-decoration: none;
  font-weight: 900;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid rgba(54, 215, 255, 0.45);
  background: rgba(0, 165, 220, 0.18);
  box-shadow: 0 0 22px rgba(0, 217, 255, 0.12);
}

.hero-content {
  text-align: center;
  padding: 26px 0 22px;
}

.logos-strip {
  width: min(760px, 90vw);
  max-height: 150px;
  object-fit: contain;
  display: block;
  margin: 0 auto 20px;
  filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.22));
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 0 22px rgba(0, 204, 255, 0.3);
}

#catalogo {
  width: min(1540px, 94vw);
  margin: 0 auto 42px;
}

.controls-panel {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(2, 10, 24, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 0 32px rgba(0, 217, 255, 0.06);
  margin-bottom: 22px;
}

.controls-panel input,
.controls-panel select {
  width: 100%;
  border: 1px solid rgba(54, 215, 255, 0.22);
  background: rgba(0, 4, 18, 0.9);
  color: white;
  border-radius: 16px;
  padding: 15px 16px;
  outline: none;
  font-size: 0.96rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(54, 215, 255, 0.22);
  background: linear-gradient(180deg, rgba(4, 14, 35, 0.95), rgba(2, 8, 23, 0.98));
  min-height: 205px;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.34),
    inset 0 0 24px rgba(0, 217, 255, 0.035);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(38, 230, 255, 0.55);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.38),
    0 0 24px rgba(0, 217, 255, 0.12);
}

.image-wrap {
  height: 82px;
  display: grid;
  place-items: center;
  padding: 12px 12px 2px;
  position: relative;
  background:
    radial-gradient(circle at center, rgba(0, 217, 255, 0.10), transparent 62%),
    linear-gradient(180deg, rgba(0, 22, 54, 0.48), rgba(0, 4, 18, 0));
}

.product-logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 15px;
  filter: drop-shadow(0 0 8px rgba(0, 217, 255, 0.28));
}

.badges {
  position: absolute;
  right: 10px;
  bottom: -9px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge {
  font-size: 0.62rem;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.42);
}

.badge.hot {
  color: #9dffc9;
  background: rgba(18, 230, 123, 0.16);
  border-color: rgba(18, 230, 123, 0.32);
}

.badge.stock {
  color: #ffda8b;
  background: rgba(255, 181, 45, 0.14);
  border-color: rgba(255, 181, 45, 0.3);
}

.product-body {
  padding: 15px 12px 12px;
}

.category {
  display: block;
  color: #83f8ff;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.product-body h3 {
  min-height: 36px;
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.before {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: line-through;
  font-size: 0.68rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.price-row strong {
  display: block;
  font-size: 1.14rem;
  line-height: 1;
}

.buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 13px;
  color: white;
  text-decoration: none;
  font-weight: 900;
  background: linear-gradient(135deg, #11e87a, #09d26f);
  box-shadow: 0 0 18px rgba(17, 232, 122, 0.18);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.buy-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.offers-section {
  margin-top: 34px;
}

.section-heading {
  margin: 0 0 16px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(38, 230, 255, 0.18);
  background: rgba(2, 10, 24, 0.58);
  backdrop-filter: blur(14px);
}

.section-heading span {
  display: block;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 28px;
  border-radius: 18px;
  background: rgba(3, 14, 32, 0.55);
  border: 1px solid var(--line);
  color: var(--muted);
}

.footer {
  width: min(1540px, 94vw);
  margin: 0 auto;
  padding: 24px 0 38px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

@media (max-width: 1180px) {
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero {
    padding-inline: 14px;
  }

  .nav-cta {
    padding-inline: 16px;
  }

  .logos-strip {
    width: min(620px, 94vw);
    max-height: 120px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    gap: 10px;
  }

  .product-card {
    border-radius: 16px;
    min-height: 195px;
  }

  .product-logo-img {
    width: 54px;
    height: 54px;
  }

  .product-body h3 {
    font-size: 0.88rem;
  }

  .price-row strong {
    font-size: 1.02rem;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand small {
    font-size: 0.74rem;
  }

  .nav-cta {
    font-size: 0.9rem;
  }
}
