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

:root {
  --bg: #07090d;
  --bg-soft: #0d1118;
  --card: rgba(8, 12, 18, 0.82);
  --card-strong: rgba(12, 17, 25, 0.9);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f5f7fb;
  --muted: #a8b0c2;
  --muted-2: #798294;
  --white: #ffffff;

  --glow-one: rgba(62, 255, 154, 0.28);
  --glow-two: rgba(0, 194, 255, 0.22);
  --ambient: rgba(80, 255, 159, 0.18);
  --accent: #50ff9f;
  --logo-shadow: drop-shadow(0 8px 18px rgba(80, 255, 159, 0.24));
}

body.page-home {
  --glow-one: rgba(62, 255, 154, 0.28);
  --glow-two: rgba(0, 194, 255, 0.22);
  --ambient: rgba(80, 255, 159, 0.18);
  --accent: #50ff9f;
  --logo-shadow: drop-shadow(0 8px 18px rgba(80, 255, 159, 0.24));
}




body.page-parts {
  --glow-one: rgba(255, 188, 66, 0.26);
  --glow-two: rgba(255, 83, 112, 0.20);
  --ambient: rgba(255, 188, 66, 0.17);
  --accent: #ffbc42;
  --logo-shadow: drop-shadow(0 8px 18px rgba(255, 188, 66, 0.26));
}

body.page-colors {
  --glow-one: rgba(151, 71, 255, 0.36);
  --glow-two: rgba(95, 46, 255, 0.24);
  --ambient: rgba(151, 71, 255, 0.22);
  --accent: #b66cff;
  --logo-shadow: drop-shadow(0 8px 18px rgba(182, 108, 255, 0.3));
}

body.page-contact {
  --glow-one: rgba(46, 116, 255, 0.34);
  --glow-two: rgba(26, 73, 214, 0.24);
  --ambient: rgba(46, 116, 255, 0.2);
  --accent: #3f7cff;
  --logo-shadow: drop-shadow(0 8px 18px rgba(63, 124, 255, 0.28));
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  position: relative;
  background: linear-gradient(180deg, #080b11 0%, var(--bg) 52%, #05070b 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  isolation: isolate;
}

body.page-ready .main,
body.page-ready .footer {
  animation: pageFadeIn 0.34s ease-out both;
}

body.page-leaving .main,
body.page-leaving .footer {
  animation: pageFadeOut 0.18s ease-in both;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(6px);
  }
}

.page-glow {
  position: fixed;
  left: 52%;
  bottom: -120px;
  z-index: 0;
  width: min(1120px, 135vw);
  height: 500px;
  border-radius: 999px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, var(--accent) 0%, var(--glow-one) 32%, var(--glow-two) 58%, transparent 78%);
  filter: blur(72px);
  opacity: 0.58;
  transform: translateX(-50%);
}

.page-glow::before,
.page-glow::after {
  content: "";
  position: fixed;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  background: var(--accent);
  filter: blur(104px);
  opacity: 0.23;
  pointer-events: none;
}

.page-glow::before {
  right: 4%;
  top: 150px;
}

.page-glow::after {
  left: -140px;
  top: 42%;
  background: var(--accent);
}

.header,
.main,
.footer {
  position: relative;
  z-index: 1;
}


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

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

.container {
  width: min(1120px, 90%);
  margin: 0 auto;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 9, 13, 0.92);
}

.header-content {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  padding: 5px;
  border: 1px solid var(--border);
  filter: none;
}

.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.4px;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: -2px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: 0.2s;
}

.menu a:hover,
.menu a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* Geral */

.main {
  min-height: calc(100vh - 138px);
}

.hero {
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-text {
  max-width: 720px;
}

.tag,
.section-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 20px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -3px;
}

.hero p,
.page-title p {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 14px;
  font-weight: 800;
  transition: 0.2s;
}

.btn.primary {
  background: var(--accent);
  color: #06100b;
}

.btn.secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-2px);
}

/* Card inicial */

.hero-card {
  min-height: 420px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
}

.logo-big {
  width: 130px;
  height: 130px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 10px;
  position: relative;
  z-index: 1;
}

.logo-big img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: var(--logo-shadow);
}

.hero-card h2 {
  font-size: 34px;
  letter-spacing: -1px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.hero-card p {
  color: var(--muted);
  position: relative;
  z-index: 1;
}

/* Seções */

.section {
  padding: 90px 0;
}

.section.no-top {
  padding-top: 20px;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.section h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -1.5px;
}

.text-block {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 18px;
}

.page-title {
  padding: 90px 0 50px;
}

/* Cards */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.product-card,
.color-card,
.contact-card,
.info-box {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--card);
  overflow: hidden;
  contain: layout paint;
}

.product-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 280px;
}

.product-image,
.color-image {
  min-height: 240px;
  background: rgba(255, 255, 255, 0.035);
}

.product-image img,
.color-image img {
  height: 100%;
  object-fit: cover;
}

.product-image img.themed-logo-image,
.color-image img.themed-logo-image {
  object-fit: contain;
  padding: 22px;
  filter: var(--logo-shadow);
}

.product-image.placeholder,
.color-image.placeholder {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 900;
  font-size: 22px;
}

.product-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-content h2,
.color-card h2,
.contact-card h2,
.info-box h2 {
  margin-bottom: 10px;
  font-size: 26px;
  letter-spacing: -0.8px;
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.card-heading h2 {
  margin-bottom: 0;
}

.stock-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.stock-badge.out {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd2df;
}

.product-card.is-unavailable,
.color-card.is-unavailable {
  opacity: 0.72;
}

.product-content p,
.color-card p,
.contact-card p,
.info-box p {
  color: var(--muted);
}

.product-content a {
  width: fit-content;
  margin-top: 22px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--accent);
  font-weight: 900;
  transition: 0.2s;
}

.product-content a:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.095);
  transform: translateY(-1px);
}

/* Cores */

.color-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.color-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  align-items: center;
  min-height: 240px;
  padding: 0;
}

.color-image {
  height: 100%;
  min-height: 240px;
  border-radius: 0;
  overflow: hidden;
}

.color-card > div:not(.color-image) {
  padding: 28px;
}

/* Contato */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.contact-card {
  padding: 28px;
}

.contact-card .btn {
  margin-top: 24px;
}

.info-box {
  margin-top: 22px;
  padding: 30px;
}

/* Rodapé */

.footer {
  border-top: 1px solid var(--border);
  background: rgba(7, 9, 13, 0.92);
}

.footer-content {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 14px;
  gap: 18px;
}

/* Responsivo */

@media (max-width: 900px) {

  .header-content {
    min-height: 66px;
    padding: 10px 0;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .menu {
    flex: 1;
    justify-content: flex-end;
    gap: 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .menu::-webkit-scrollbar {
    display: none;
  }

  .menu a {
    flex: 0 0 auto;
    padding: 8px 10px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    padding: 70px 0;
  }

  .hero-grid,
  .split,
  .cards-grid,
  .color-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero-card {
    min-height: 320px;
  }

  .footer-content {
    padding: 18px 0;
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .brand {
    flex: 0 0 auto;
    gap: 8px;
    text-align: left;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    padding: 4px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand span {
    display: none;
  }

  .menu {
    justify-content: flex-start;
  }

  .menu a {
    padding: 7px 9px;
    font-size: 12px;
  }

  h1 {
    font-size: 42px;
    letter-spacing: -2px;
  }

  .page-title {
    padding-top: 60px;
  }

  .section {
    padding: 60px 0;
  }

  .buttons,
  .btn {
    width: 100%;
  }

  .btn {
    text-align: center;
  }
}

/* Reduz animações para aparelhos/configurações sensíveis */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Cards clicáveis */

.js-color-gallery-card,
.js-parts-gallery-card {
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.js-color-gallery-card:hover,
.js-parts-gallery-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.075);
  transform: translateY(-2px);
}

.js-color-gallery-card:focus,
.js-parts-gallery-card:focus {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Modal da galeria */

body.modal-open {
  overflow: hidden;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
}

.gallery-modal.active {
  display: flex;
}

.gallery-box {
  width: min(1120px, 96vw);
  max-height: 90vh;
  overflow: auto;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: #0b0f16;
  padding-top: 58px;
}

.gallery-close {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.gallery-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  padding: 0 28px 28px;
}

.gallery-media {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: stretch;
}

.gallery-image-area {
  min-height: 520px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.gallery-main-image {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: contain;
  padding: 12px;
}

.gallery-main-image.themed-logo-image,
.image-viewer-image.themed-logo-image {
  filter: var(--logo-shadow);
}

.gallery-thumbnails {
  order: -1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.gallery-thumb {
  width: 86px;
  height: 86px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  opacity: 0.65;
}

.gallery-thumb.active,
.gallery-thumb:hover {
  opacity: 1;
  border-color: var(--accent);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.gallery-thumb img.themed-logo-image {
  object-fit: contain;
  padding: 6px;
  filter: var(--logo-shadow);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0 0 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--text);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.gallery-arrow[hidden],
.gallery-thumbnails[hidden] {
  display: none;
}

.gallery-modal.single-image .gallery-media {
  grid-template-columns: 1fr;
}

.gallery-prev {
  left: 14px;
}

.gallery-next {
  right: 14px;
}

.gallery-fullscreen {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.gallery-arrow:hover,
.gallery-close:hover,
.gallery-fullscreen:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.gallery-info {
  padding: 14px 8px 14px 0;
}

.gallery-title {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -1.5px;
}

.gallery-description {
  color: var(--muted);
  font-size: 18px;
}

.gallery-material-box {
  margin-top: 26px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(8, 12, 18, 0.82);
}

.gallery-material-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.gallery-material-box p {
  color: var(--muted);
}

.image-viewer {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
  padding: 18px;
  background: rgba(0, 0, 0, 0.82);
}

.image-viewer.active {
  display: block;
}

.image-viewer-panel {
  display: grid;
  grid-template-rows: 1fr auto;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: #07090d;
}

.image-viewer-toolbar {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.055);
}

.image-viewer-toolbar button {
  min-width: 40px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.image-viewer-toolbar button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.image-viewer-zoom-label {
  min-width: 56px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.image-viewer-close {
  font-size: 24px;
  line-height: 1;
}

.image-viewer-stage {
  order: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 24px;
}

.image-viewer-image {
  display: block;
  max-width: min(96%, 1200px);
  max-height: 76vh;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.18s ease;
}

/* Responsivo da galeria */

@media (max-width: 900px) {
  .gallery-content {
    grid-template-columns: 1fr;
  }

  .gallery-media {
    grid-template-columns: 1fr;
  }

  .gallery-thumbnails {
    order: 2;
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .gallery-image-area {
    min-height: 360px;
  }

  .gallery-main-image {
    min-height: 360px;
  }

  .gallery-info {
    padding: 0;
  }
}

@media (max-width: 520px) {
  .gallery-modal {
    padding: 10px;
  }

  .gallery-box {
    border-radius: 22px;
    padding-top: 54px;
  }

  .gallery-close {
    top: 10px;
    right: 12px;
  }

  .gallery-content {
    padding: 0 18px 18px;
  }

  .gallery-image-area {
    min-height: 280px;
  }

  .gallery-main-image {
    min-height: 280px;
  }

  .gallery-thumb {
    width: 72px;
    height: 72px;
  }

  .gallery-arrow {
    width: 36px;
    height: 36px;
    font-size: 28px;
  }

  .gallery-fullscreen {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .image-viewer {
    padding: 8px;
  }

  .image-viewer-toolbar {
    justify-content: center;
    flex-wrap: wrap;
  }

  .image-viewer-stage {
    padding: 14px;
  }
}
