:root {
  --primary: #064734;
  --secundary: #f8f9f8;
  --optbg: #d4e0d4;
  --optbg-verde: #34c132;
  --accent: #D3AF37;
  --bg-glass: rgba(248, 248, 248, 0.92);
  --text-dark: #1a1a1a;
  --text-white: #fff;
  --text-light: #4d6655;
  --radius: 16px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.15);
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  outline: none;
}

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  background: #f0f2f0;
  overflow: hidden;
}

#logo-background {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  opacity: .05;
  pointer-events: none;
  z-index: 0;
}

#buttons {
  position: fixed;
  top: 20px;
  right: 20px;
  height: calc(100vh - 40px);
  width: 380px !important;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  padding: 100px 25px 30px;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(120%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2001;
}

#buttons::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

#buttons.show {
  transform: translateX(0);
}

#logo {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  height: 40px;
  z-index: 12;
  opacity: 0.9;
}

#search-texture {
  width: 100%;
  height: 45px;
  box-sizing: border-box;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23b1c2b7' d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 15px center;
  background-size: 16px;
  padding: 0 20px 0 45px;
  margin-bottom: 25px;
  border-radius: 50px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  background-color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  color: var(--text-dark);
}

#search-texture:focus {
  border-color: var(--text-light);
}

.texture-button {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.texture-button:hover {
  transform: translateY(-4px) scale(1.02);
  background: #fff;
  border-color: var(--optbg);
  box-shadow: 0 10px 25px rgba(6, 71, 52, 0.15);
}

.texture-button.selected {
  border: 2px solid var(--accent);
  background: linear-gradient(145deg, #ffffff, #f3f7f3);
  box-shadow: 0 8px 25px rgba(211, 175, 55, 0.35);
  transform: scale(1.02);
}

.texture-button.selected::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 14px;
  color: var(--accent);
  font-weight: bold;
}

.texture-preview {
  width: 55px;
  height: 55px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.texture-label {
  display: flex;
  flex-direction: column;
}

.texture-nome {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.texture-acabamento {
  font-weight: 400;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-light);
}

.texture-separador {
  color: var(--text-light);
  margin: 0 4px;
}

#toggle-button {
  position: fixed;
  top: 25px;
  right: 15px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--secundary);
  color: var(--primary);
  border: none;
  font-size: 20px;
  cursor: pointer;
  z-index: 1900;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  transition: background 0.3s, transform 0.2s, right 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

#toggle-button:hover {
  background: var(--primary);
  color: var(--text-white);
  transform: scale(1.05);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
}

#toggle-button.move {
  right: 415px;
}

/* ==========================================================================
   MENU LATERAL ESQUERDO (Agora Contendo Compartilhamento e Download)
   ========================================================================== */
#light-controls {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 40px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.tool-divider {
  width: 60%;
  height: 2px;
  background: rgba(0, 0, 0, 0.06);
  margin: 0 auto;
  border-radius: 2px;
}

#light-controls>button {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: transparent;
  color: var(--primary);
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

#light-controls>button:hover {
  background: rgba(6, 71, 52, 0.08);
  transform: translateY(-2px);
}

#light-controls>button.active {
  background: var(--primary);
  color: var(--text-white);
  box-shadow: 0 4px 12px rgba(6, 71, 52, 0.3);
}


@media (min-width: 769px) {
  #light-controls {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 40px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  #light-controls>button::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }

  #light-controls>button:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

#light-options {
  display: none;
  position: absolute;
  left: 75px;
  bottom: 0;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.05);
  min-width: 110px;
}

#light-controls.active #light-options {
  display: flex;
  animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#light-options button {
  background: transparent;
  color: #555;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  transition: 0.2s;
}

#light-options button:hover {
  background: #f4f4f4;
  color: var(--primary);
}

#light-options button.active {
  background: rgba(6, 71, 52, 0.08);
  color: var(--primary);
}

/* --- CARD PREMIUM INFERIOR (COMPACTO) --- */
#product-card {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 15px 25px;
  display: flex;
  gap: 20px;
  align-items: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.6);
  z-index: 1000;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
}

#product-card.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#pc-image {
  width: 45px;
  height: 45px;
  border-radius: 20%;
  border: 2px solid #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: none;
  object-fit: cover;
}

.product-info {
  display: flex;
  flex-direction: column;
}

#pc-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#pc-finish {
  margin: 2px 0 0 0;
  font-size: 0.9rem;
  color: var(--text-light);
  text-transform: uppercase;
}

#pc-harmonization {
  display: flex;
  flex-direction: column;
  margin-left: 15px;
  border-left: 2px solid #eee;
  padding-left: 20px;
  justify-content: center;
}

.harm-title {
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

.harm-list {
  display: flex;
  gap: 8px;
}

.harm-item {
  width: 32px;
  height: 32px;
  border-radius: 28%;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  object-fit: cover;
  transition: transform 0.2s;
}

.harm-item:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  border-color: var(--primary);
}

#info-modal,
#download-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1999;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#info-modal.active,
#download-modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: #fff;
  padding: 0;
  border-radius: 8px;
  max-width: 380px;
  width: 90%;
  z-index: 1050;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  text-align: left;
  position: relative;
  overflow: hidden;
  border: none;
}

.modal-hero {
  position: relative;
  width: 100%;
  height: 200px;
  background: #f0f0f0;
}

.modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.modal-hero img.fade-out {
  opacity: 0;
}

.modal-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent);
  pointer-events: none;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--secundary);
  color: var(--primary);
  border: none;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-close:hover {
  background: var(--primary);
  color: var(--text-white);
  transform: scale(1.05);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
}

.modal-body {
  padding: 25px 30px 20px;
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.modal-body h2 {
  color: var(--primary);
  margin: 0 0 20px 0;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  border-left: 5px solid var(--optbg-verde);
  padding-left: 15px;
}

.spec-block {
  margin-bottom: 15px;
}

.spec-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #888;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.spec-value-highlight {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.divider {
  height: 1px;
  background: #eee;
  margin: 20px 0;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags-container span {
  background: #f4f6f4;
  color: var(--primary);
  padding: 4px 6px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s;
  cursor: default;
}

.tags-container span:hover {
  background: #fff;
  border-color: var(--secundary);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 20px;
  padding-bottom: 10px;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.info-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: block !important;
  animation: none !important;
}

.modal-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
  background: #fff;
  position: sticky;
  bottom: 0;
  border-top: 1px solid #eee;
}

.slider-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4e0d4;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 0;
}

.dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--primary);
}

.nav-buttons {
  display: flex;
  gap: 10px;
}

.nav-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f0f0f0;
  color: var(--primary);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.nav-arrow:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* --- AVISOS --- */
#preloader {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#preloader .spinner {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

#preloader .spinner-ring {
  position: absolute;
  inset: 0;
  border: 6px solid #f0f0f0;
  border-top: 6px solid var(--optbg-verde);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

#preloader .preloader-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  object-fit: contain;
  z-index: 10;
}

#aviso-ilustrativo {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translate(-50%, -20px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  overflow: hidden;
  z-index: 99999 !important;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-width: 320px;
  max-width: 90%;
}

#aviso-ilustrativo.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.aviso-content {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  gap: 15px;
}

.aviso-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f0f4f2;
  color: var(--primary);
  border-radius: 50%;
  font-size: 18px;
  flex-shrink: 0;
}

.aviso-texto {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex-grow: 1;
}

.aviso-texto strong {
  color: var(--text-dark);
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.aviso-texto span {
  color: #666;
  font-size: 0.8rem;
  line-height: 1.3;
}

#aviso-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 16px;
  cursor: pointer;
  padding: 5px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

#aviso-close:hover {
  color: var(--primary);
  transform: scale(1.1);
}

#aviso-ilustrativo .barra {
  height: 3px;
  background: var(--primary);
  width: 100%;
  transform-origin: left;
}

/* --- DOWNLOAD MODAL INTERNO --- */
.download-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  background: #f8f9f8;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.download-item:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border-color: var(--secundary);
}

.dl-icon {
  width: 40px;
  height: 40px;
  background: rgba(6, 71, 52, 0.1);
  color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: 0.2s;
}

.download-item:hover .dl-icon {
  background: var(--primary);
  color: #fff;
}

.dl-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.dl-title {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.dl-desc {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 2px;
}

.dl-action {
  color: #ccc;
  font-size: 14px;
  transition: 0.2s;
}

.download-item:hover .dl-action {
  color: var(--secundary);
  transform: scale(1.2);
}

/* --- COMPARE UI --- */
#compare-ui {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1500;
  pointer-events: none;
}

#compare-ui.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

#compare-header {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 25px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.8);
  pointer-events: auto;
  width: max-content;
  max-width: 90vw;
}

.c-side {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Nome (title) permanece em destaque; acabamento fica sem negrito e sem uppercase */
.c-side .compare-name-finish {
  font-weight: 400;
  text-transform: none;
  color: var(--text-light);
  margin-left: 4px;
  font-size: 12px;
  text-transform: uppercase;
}
.c-side .compare-name-finish:empty::before { content: ''; }
.c-side .compare-name-finish::before { content: ' – '; font-weight:400; }

.c-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.c-badge.a {
  background: var(--primary);
}

/* Video modal styles */
#video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 10050;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

#video-modal.active {
  display: flex;
  opacity: 1;
}

.video-modal-content {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  background: transparent;
  border-radius: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-modal-close {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--secundary);
  color: var(--primary);
  border: none;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.25);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10100;
  font-size: 18px;
}

.video-modal-close:hover {
  background: var(--primary);
  color: var(--text-white);
  transform: scale(1.03);
}

#video-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

/* Keep iframe centered on small devices with some aspect ratio */
@media (min-width: 700px) {
  #video-iframe { width: 100%; height: 100%; }
}

/* Video window framing */
.video-window {
  width: min(1100px, 95vw);
  height: min(700px, 90vh);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.08);
}

.video-window-header {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: linear-gradient(180deg, rgba(248,248,248,0.6), rgba(255,255,255,0.9));
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.video-window-title {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-window-close {
  background: var(--secundary);
  color: var(--primary);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.video-window-close:hover { background: var(--primary); color: var(--text-white); }

.video-window-body {
  flex: 1 1 auto;
  padding: 18px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-frame {
  width: 100%;
  height: 100%;
  max-height: calc(100% - 0px);
  background: #000;
  padding: 10px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 6px rgba(0,0,0,0.25);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  border: none;
  display: block;
}

.c-badge.b {
  background: #888;
  transition: background 0.3s;
}

#compare-name-left,
#compare-name-right {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

#compare-side-right.waiting {
  opacity: 0.6;
  animation: pulseText 2s infinite;
}

@keyframes pulseText {
  0% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.5;
  }
}

.c-vs {
  color: #aaa;
  font-size: 11px;
  font-style: italic;
  font-weight: bold;
}

#compare-exit {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 35px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 100;
}

#compare-exit i {
  color: #ccc;
  font-size: 16px;
}

#compare-exit:hover {
  background: #000;
  transform: translateX(-50%) scale(1.03);
  color: #fff;
}

#compare-exit:hover i {
  color: #fff;
}

#compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transform: translateX(-50%);
  pointer-events: auto;
  cursor: ew-resize;
  z-index: 21;
}

#compare-handle::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -25px;
  right: -25px;
  background: transparent;
}

#compare-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #064734;
  border: 3px solid var(--secundary);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#compare-handle i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--secundary);
  font-size: 16px;
  z-index: 23;
  pointer-events: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ==========================================================================
   RESPONSIVO (SMARTPHONES)
   ========================================================================== */
@media (max-width: 768px) {
  #buttons {
    width: 100% !important;
    top: 0;
    right: 0;
    height: 100vh;
    border-radius: 0;
    border: none;
    transform: translateX(100%);
    border-left: none;
    z-index: 2001;
  }

  #light-controls {
    left: 15px;
    padding: 8px;
    border-radius: 30px;
    gap: 8px;
  }

  #light-controls>button {
    width: 27px;
    height: 27px;
    font-size: 16px;
  }

  #light-options {
    left: 65px;
  }

  /* Ajuste do Card Inferior (Super Compacto) */
  #product-card.show {
    width: 70vw;
    max-width: none;
    bottom: 15px;
    padding: 12px 15px;
    display: grid;
    grid-template-columns: 45px 1fr;
    grid-template-rows: auto auto;
    gap: 8px 12px;
    border-radius: 20px;
    align-items: center;
  }

  #pc-image {
    grid-column: 1;
    grid-row: 1;
    width: 45px;
    height: 45px;
    margin: 0;
    border-radius: 12px;
  }

  .product-info {
    grid-column: 2;
    grid-row: 1;
    align-items: flex-start;
    text-align: left;
  }

  #pc-name {
    font-size: 0.95rem;
  }

  #pc-finish {
    font-size: 0.75rem;
  }

  /* Harmonização passa a ocupar a linha de baixo toda */
  #pc-harmonization {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    padding: 10px 0 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-left: none;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .harm-title {
    margin: 0;
    font-size: 0.7rem;
  }

  .harm-list {
    gap: 8px;
  }

  .harm-item {
    width: 26px;
    height: 26px;
  }

  .modal-content {
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .modal-hero {
    height: 130px;
    flex-shrink: 0;
  }

  .modal-body {
    overflow-y: auto;
    flex-grow: 1;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #f0f0f0;
  }

  .modal-body h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  #compare-header {
    top: 25px;
    width: calc(100vw - 140px);
    padding: 10px 15px;
    gap: 10px;
    border-radius: 24px;
    align-items: flex-start;
    justify-content: space-between;
  }

  .c-side {
    flex-direction: column;
    width: 45%;
    gap: 6px;
    text-align: center;
    font-size: 10px;
  }

  .c-badge {
    margin: 0 auto;
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .c-vs {
    margin-top: 4px;
    font-size: 10px;
    display: block;
  }

  #compare-name-left,
  #compare-name-right {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
    max-width: 100%;
  }

  #compare-exit {
    bottom: 25px;
    padding: 10px 25px;
    font-size: 13px;
    width: max-content;
  }
}

/* =========================================
   ACESSIBILIDADE E ONBOARDINGS
   ========================================= */
button:focus-visible,
.texture-button:focus-visible,
#search-texture:focus-visible {
  outline: none;
}

#onboarding-hint,
#compare-onboarding-hint {
  position: fixed;
  bottom: 25%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1000;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#compare-onboarding-hint {
  z-index: 2000;
}

#onboarding-hint.show,
#compare-onboarding-hint.show {
  opacity: 1;
}

.hand-icon {
  font-size: 18px;
  animation: swipe-hand 2s infinite ease-in-out;
}

.hand-icon-compare {
  font-size: 18px;
  animation: swipe-hand-horizontal 2.5s infinite ease-in-out;
}

@keyframes swipe-hand {
  0% {
    transform: translateX(10px) rotate(0deg);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    transform: translateX(-15px) rotate(-15deg);
    opacity: 1;
  }

  100% {
    transform: translateX(-15px) rotate(-15deg);
    opacity: 0;
  }
}

@keyframes swipe-hand-horizontal {
  0% {
    transform: translateX(-15px);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    transform: translateX(15px);
    opacity: 1;
  }

  100% {
    transform: translateX(15px);
    opacity: 0;
  }
}

#compare-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translate(-50%, -20px);
  background: var(--primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(6, 71, 52, 0.4);
  z-index: 2500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#compare-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-height: 500px) {

  #onboarding-hint,
  #compare-onboarding-hint {
    display: none;
  }
}

#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  pointer-events: auto;
}

.cookie-inner {
  max-width: 1000px;
  width: calc(100% - 40px);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(6, 71, 52, 0.12);
  border: 1px solid rgba(6, 71, 52, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
}

.cookie-inner p {
  margin: 0;
  color: #1a1a1a;
  font-size: 0.95rem;
  line-height: 1.3;
  opacity: 0.95;
}

.cookie-inner a {
  color: #064734;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed rgba(6, 71, 52, 0.12);
  padding-bottom: 1px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

#cookie-accept {
  background: linear-gradient(90deg, #064734, #0a6b4f);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(6, 71, 52, 0.18);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

#cookie-accept:hover {
  transform: translateY(-2px);
}

#cookie-decline {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
  color: #1a1a1a;
  font-weight: 700;
  transition: background 0.15s ease;
}

#cookie-decline:hover {
  background: rgba(0, 0, 0, 0.03);
}

@media (max-width:720px) {
  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 10px;
    padding: 12px;
  }

  .cookie-actions {
    justify-content: center;
  }
}