/*
 * Estilo principal do site GVolt 3D
 *
 * Este arquivo unifica o estilo completo para todas as páginas públicas,
 * incorporando o design neon/roxo e os comportamentos responsivos. Ele foi
 * baseado no arquivo anterior `style(6).css` e substitui o antigo
 * `style.css` simplificado. Caso você deseje personalizar estilos para
 * páginas administrativas, utilize estilos inline dentro dos HTML ou
 * crie regras adicionais neste arquivo.
 */

:root {
  /* Brand palette — Yellow / Cyan / Carbon */
  --bg: #080e15;
  --bg-soft: #101923;
  --card: rgba(16, 25, 34, 0.94);
  --card-solid: #131f2a;
  --border: rgba(0, 221, 238, 0.28);
  --yellow: #fcee0a;
  --yellow-hover: #fff75b;
  --cyan: #00ddee;
  --cyan-soft: #88f7ff;
  --text: #f2f7f8;
  --muted: #b4c6ce;
  --success: #25d366;
  --shadow: 0 14px 44px rgba(0, 0, 0, 0.38);
  --radius: 12px;
  /* Compatibility with existing HTML and admin styles */
  --purple: var(--yellow);
  --purple-strong: #d6c600;
  --pink: var(--cyan);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(252, 238, 10, 0.28), transparent 35%),
    radial-gradient(circle at 90% 10%, rgba(0, 221, 238, 0.22), transparent 30%),
    linear-gradient(180deg, #090d14 0%, #070b12 100%);
  min-height: 100vh;
}

/* Aparência consistente para elementos de formulário em temas escuros */
select {
  /* Herdar o fundo semelhante aos inputs */
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-size: 0.95rem;
}

/* As opções dentro dos selects permanecem visíveis mesmo com tema escuro */
select option {
  background-color: var(--card-solid);
  color: var(--text);
}

/* Cor de destaque quando a opção é selecionada */
select option:checked {
  background-color: var(--purple);
  color: var(--text);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(252, 238, 10, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(252, 238, 10, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at top, black, transparent 72%);
  pointer-events: none;
  z-index: -2;
}

.site-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  left: -180px;
  top: 180px;
  background: rgba(0, 221, 238, 0.35);
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
}

.topbar {
  width: min(1180px, calc(100% - 32px));
  margin: 20px auto 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 17, 24, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  top: 14px;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: 'Oxanium', sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.brand img,
.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0, 221, 238, 0.8);
  box-shadow: 0 0 18px rgba(0, 221, 238, 0.8);
}

.brand strong,
.footer-brand span,
.hero h1 span,
.section-heading h2 span {
  color: var(--purple);
  text-shadow: 0 0 18px rgba(252, 238, 10, 0.9);
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 0.92rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  transition: 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  text-shadow: 0 0 12px var(--purple);
}

/* Botão hamburguer para menus responsivos */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  min-height: 520px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 40px;
  padding: clamp(28px, 6vw, 70px);
  border: 1px solid var(--border);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(15, 23, 32, 0.95), rgba(10, 35, 44, 0.44)),
    radial-gradient(circle at left, rgba(252, 238, 10, 0.24), transparent 34%);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  right: -160px;
  bottom: -210px;
  width: 720px;
  height: 260px;
  border-radius: 50%;
  border: 2px solid rgba(0, 221, 238, 0.35);
  box-shadow: 0 0 60px rgba(0, 221, 238, 0.5);
  transform: rotate(-8deg);
}

.hero-image-card {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.hero-image-card img {
  width: min(330px, 80vw);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(0, 221, 238, 0.75);
  box-shadow: 0 0 36px rgba(0, 221, 238, 0.8), 0 0 90px rgba(141, 0, 255, 0.46);
}

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

.eyebrow {
  color: #f4e899;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin: 0 0 12px;
}

.eyebrow i {
  color: var(--pink);
  margin-right: 8px;
}

.hero h1 {
  margin: 0;
  font-family: 'Oxanium', sans-serif;
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-text {
  max-width: 560px;
  color: #c2d1d4;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.6;
  margin: 22px 0 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn,
.details-link,
.buy-button,
.footer a {
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
}

.btn-primary,
.details-link,
.buy-button,
.footer a {
  background: linear-gradient(135deg, var(--pink), var(--purple-strong));
  color: white;
  box-shadow: 0 0 22px rgba(252, 238, 10, 0.42);
}

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

.btn:hover,
.details-link:hover,
.buy-button:hover,
.footer a:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.benefits {
  width: min(980px, calc(100% - 32px));
  margin: -34px auto 60px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  background: rgba(10, 17, 24, 0.88);
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 2;
}

.benefits article {
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.benefits i {
  color: var(--purple);
  font-size: 1.25rem;
}

.products-section,
.detail-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section-heading p:last-child {
  color: var(--muted);
  margin: 0;
}

.search-box {
  width: min(680px, 100%);
  margin: 0 auto 34px;
  position: relative;
}

.search-box i {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--purple);
}

.search-box input {
  width: 100%;
  padding: 17px 52px 17px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  outline: 0;
  background: rgba(13, 21, 30, 0.78);
  color: var(--text);
  font-size: 1rem;
  box-shadow: inset 0 0 22px rgba(252, 238, 10, 0.08);
}

.search-box input::placeholder {
  color: #849ea5;
}

.search-box input:focus {
  box-shadow: 0 0 0 3px rgba(252, 238, 10, 0.18), inset 0 0 22px rgba(252, 238, 10, 0.08);
}

.products-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 70px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 24, 33, 0.9), rgba(8, 13, 19, 0.95));
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
  transition: 0.2s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 34px rgba(252, 238, 10, 0.34);
}

.product-image {
  display: block;
  height: 245px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle, rgba(252, 238, 10, 0.18), transparent 65%);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.favorite {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(8, 13, 19, 0.74);
  color: #00ddee;
}

.product-card-body {
  padding: 22px;
}

.product-card h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.product-card p {
  color: var(--muted);
  min-height: 54px;
  line-height: 1.55;
  margin: 0 0 18px;
}

.product-card strong,
.price {
  display: block;
  color: var(--purple);
  font-size: 1.25rem;
  margin-bottom: 18px;
  text-shadow: 0 0 14px rgba(252, 238, 10, 0.55);
}

.details-link {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
}

.empty-message {
  text-align: center;
  color: var(--muted);
  padding: 40px 0 80px;
}

.detail-page {
  padding: 42px 0 70px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #00ddee;
  margin-bottom: 24px;
}

.product-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  padding: clamp(20px, 4vw, 46px);
  border: 1px solid var(--border);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(15, 23, 32, 0.94), rgba(8, 13, 19, 0.96));
  box-shadow: var(--shadow);
}

/* Gallery styles */
.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.main-image-wrapper {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 24px;
  min-height: 430px;
  overflow: hidden;
  background: radial-gradient(circle, rgba(252, 238, 10, 0.18), transparent 65%);
}

.main-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 17, 24, 0.82);
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 50%;
  z-index: 1;
  transition: background 0.2s;
}

.nav-arrow:hover {
  background: rgba(16, 25, 33, 0.92);
}

.nav-arrow.prev {
  left: 10px;
}

.nav-arrow.next {
  right: 10px;
}

.thumbnail-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumbnail-container img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s;
}

.thumbnail-container img.active-thumb {
  border-color: var(--purple);
}

/* Technical specs table */
.technical-specs {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.technical-specs th,
.technical-specs td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.technical-specs th {
  color: var(--muted);
  font-weight: 500;
}

.product-info h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  color: #dfe9ef;
  margin-bottom: 20px;
}

.rating i {
  color: var(--purple);
}

.rating span {
  color: var(--muted);
  margin-left: 8px;
  font-size: 0.92rem;
}

.product-info .price {
  font-size: 2rem;
  margin: 0 0 16px;
}

.description {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 22px;
}

.product-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
  color: #b5cad0;
}

.product-specs i {
  color: var(--purple);
  margin-right: 8px;
}

.buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  font-size: 1rem;
}

.buy-button i {
  font-size: 1.25rem;
}

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 22px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 17, 24, 0.82);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Oxanium', sans-serif;
  color: white;
  text-transform: uppercase;
}

.footer a {
  padding: 12px 18px;
}

/* Responsividade */
@media (max-width: 900px) {

  /* Mostra o botão de menu e transforma a navegação em um menu suspenso */
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(10, 17, 24, 0.95);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
    gap: 12px;
    margin: 0;
    z-index: 20;
  }

  /* Exibe a navegação quando a classe "show" está presente */
  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    color: var(--text);
  }

  .hero,
  .product-detail-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .benefits {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 22px;
  }

  .products-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-specs {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .topbar {
    justify-content: center;
  }

  .hero {
    padding: 26px 18px;
  }

  .products-container,
  .benefits {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 230px;
  }

  .detail-image-wrap,
  .detail-image-wrap img {
    min-height: 300px;
  }

  .footer {
    justify-content: center;
    text-align: center;
  }
}

/* Correção do menu dropdown mobile */
.topbar {
  position: sticky;
  top: 14px;
  z-index: 9999;
  overflow: visible;
  isolation: isolate;
}

@media (max-width: 900px) {
  .topbar {
    position: sticky;
    top: 12px;
    z-index: 9999;
    overflow: visible;
  }

  .menu-toggle {
    position: relative;
    z-index: 10001;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 10000;

    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;

    min-width: 190px;
    width: max-content;
    max-width: calc(100vw - 32px);

    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #101822;
    box-shadow: 0 0 28px rgba(252, 238, 10, 0.45);
    backdrop-filter: blur(16px);

    pointer-events: auto;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--text);
    white-space: nowrap;
    text-align: left;
  }

  .nav-links a:hover {
    background: rgba(252, 238, 10, 0.18);
    text-shadow: none;
  }
}

@media (max-width: 620px) {
  .topbar {
    justify-content: space-between;
  }
}

/* Melhorias mobile para a calculadora de custos */
@media (max-width: 700px) {
  .admin-page {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
  }

  .filament-row select,
  .filament-row input,
  .filament-row button,
  .packaging-row select,
  .packaging-row input,
  .packaging-row button {
    width: 100% !important;
    min-width: 0;
  }

  #add-filament-btn,
  #add-packaging-btn {
    width: 100%;
    margin-top: 4px;
    padding: 13px 16px;
  }

  .extras-row {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 92px;
    gap: 10px !important;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 221, 238, 0.18);
  }

  .extras-row label {
    min-width: 0;
    line-height: 1.35;
    word-break: break-word;
  }

  .extras-row input[type="number"] {
    width: 92px !important;
    min-width: 0;
    text-align: center;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    width: 100%;
    max-width: 100%;
  }

  .result-table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }
}

@media (max-width: 420px) {
  .admin-page {
    width: calc(100% - 16px);
    padding: 18px 12px;
  }

  .extras-row {
    grid-template-columns: 1fr 78px;
  }

  .extras-row input[type="number"] {
    width: 78px !important;
  }
}