#detailModal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.8);
      z-index: 900;
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px);
    }

    .modal-content {
      background: rgba(30, 30, 30, 0.85);
      border: 1px solid rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      margin: 5% auto;
      padding: 25px;
      border-radius: 16px;
      width: 90%;
      max-width: 550px;
      max-height: 90vh;
      overflow-y: auto;
      position: relative;
      color: #f0f0f0;
    }
    
    .close {
      position: absolute;
      top: 15px;
      right: 20px;
      color: #e0e0e0;
      opacity: 0.7;
      font-size: 28px;
      transition: all var(--transition-speed) ease;
      width: 30px;
      height: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background: rgba(255,255,255,0.1);
    }
    
    .close:hover {
      opacity: 1;
      background: rgba(255,255,255,0.2);
    }
    
    #modalTitle {
      margin-top: 10px;
      font-size: 1.8rem;
      text-align: center;
      margin-bottom: 20px;
      color: #fff; /* Cor branca */
      font-weight: 600;
    }
    
    .main-img {
      width: 100%;
      height: 350px; /* Altura fixa para a imagem principal */
      object-fit: cover; /* Garante que a imagem cubra a área sem distorcer */
      border-radius: 12px;
      margin-bottom: 16px;
      background-color: rgba(255,255,255,0.05); /* Fundo para imagens que não carregam */
    }
    
    .thumbnails {
      display: grid;
      grid-template-columns: repeat(4, 1fr); /* 4 colunas iguais */
      gap: 10px;
      justify-content: center;
      margin-bottom: 20px;
    }
    
    .thumbnails img {
      width: 100%;
      height: 80px; /* Altura fixa para as miniaturas */
      object-fit: cover; /* Garante que a imagem cubra a área sem distorcer */
      border-radius: 8px;
      cursor: pointer;
      opacity: 0.7;
      border: 2px solid transparent;
      transition: all var(--transition-speed) ease;
      background-color: rgba(255,255,255,0.05);
    }
    
    .thumbnails img.active {
      border-color: #25D366;
      opacity: 1;
    }
    
    .material-specs {
      display: flex;
      gap: 10px;
      justify-content: center;
      margin-top: 5px;
      font-size: 0.85em;
      flex-wrap: wrap;
      padding: 5px 0;
    }
    
    .description {
      color: #e0e0e0;
      opacity: 0.9;
      font-size: 0.95rem;
      line-height: 1.8;
      margin: 15px 0;
      padding: 15px;
      background: rgba(255, 255, 255, 0.08);
      border-radius: 12px;
      border-left: 3px solid rgba(37,211,102,0.7);
      white-space: pre-line;
    }
    
    .description h4 {
      margin: 20px 0 8px;
      font-size: 1.05rem;
      font-weight: 500;
      color: #fff;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    
    .description p {
      margin: 8px 0;
    }
    
    .description ul {
      margin: 8px 0;
      padding-left: 25px;
    }
    
    .description li {
      margin-bottom: 5px;
    }
    
    .specs {
      list-style: none;
      padding: 15px;
      margin: 15px 0;
      background: rgba(255, 255, 255, 0.08);
      border-radius: 12px;
    }
    
    .specs li {
      margin: 12px 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .specs li:last-child {
      border-bottom: none;
    }
    
    .specs strong {
      color: #e0e0e0;
      opacity: 0.7;
    }
    
    .btn-wrap {
      display: flex;
      gap: 15px;
      flex-wrap: wrap;
      justify-content: center;
      margin-top: 25px;
    }
    
    .whatsapp-btn, .instagram-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 12px 24px;
      border-radius: 50px;
      text-decoration: none;
      color: #fff;
      font-weight: 500;
      font-size: 0.95rem;
      flex: 1;
      max-width: 220px;
      text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
      position: relative;
      overflow: hidden;
      transition: all var(--transition-speed) ease;
    }
    
    .whatsapp-btn {
      background: linear-gradient(45deg, #25D366, #128C7E);
    }
    
    .instagram-btn {
      background: linear-gradient(45deg,#feda75,#d62976,#4f5bd5);
    }
    
    .whatsapp-btn:hover, .instagram-btn:hover {
      transform: translateY(-3px);
    }
    
    .whatsapp-btn img, .instagram-btn img {
      width: 24px;
      height: 24px;
      margin-right: 10px;
    }