@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap");
    
    * { margin:0; padding:0; box-sizing:border-box; font-family:"Montserrat",sans-serif; }
    
    :root {
      --primary-gradient: linear-gradient(45deg, #25D366, #128C7E);
      --accent-gradient: linear-gradient(45deg, #feda75, #d62976, #4f5bd5);
      --card-bg: rgba(255, 255, 255, 0.1);
      --card-border: rgba(255, 255, 255, 0.2);
      --glass-blur: blur(10px);
      --transition-speed: 0.3s;
    }
    
    body {
      position: relative;
      min-height: 100vh;
      color: #f0f0f0;
      overflow-x: hidden;
      background-color: #0c0c0c;
    }
    
    body::after {
      content: "";
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.75);
      z-index: -1;
    }
    
    header {
      position: relative;
      z-index: 1;
      text-align: center;
      padding: 20px 20px 15px;
      background-color: transparent;
    }
    
    header img {
      max-width: 250px;
      margin-bottom: 0;
      filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
    }
    
    header img:first-child {
      margin-bottom: 0;
    }
    
    header img.title-image {
      margin-top: -10px;
    }
    
    header h1 {
      margin: 0;
      font-size: 2.5rem;
      letter-spacing: 2px;
      color: #fff; /* Cor branca */
      text-shadow: 0 3px 10px rgba(0,0,0,0.5);
    }
    
    .title-image {
      animation: slideUp 1.2s ease-out;
      display: block;
      filter: drop-shadow(0 3px 10px rgba(0,0,0,0.5));
      transition: all 0.3s ease;
    }
    
    @media (max-width: 768px) {
      .title-image {
        max-width: 220px;
      }
    }
    
    @media (max-width: 480px) {
      .title-image {
        max-width: 180px;
      }
    }
    
    header p {
      margin: 10px 0;
      font-size: 1.1rem;
      opacity: 0.9;
      color: #e0e0e0;
      text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }
    
    /* Estilos para barra de pesquisa */
    .search-container {
      position: relative;
      z-index: 1;
      max-width: 800px;
      margin: 20px auto 0;
      padding: 0 20px;
    }
    
    .search-form {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 10px;
    }
    
    .search-input {
      flex: 1;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 30px;
      padding: 12px 20px;
      color: #fff;
      font-size: 16px;
      backdrop-filter: var(--glass-blur);
      -webkit-backdrop-filter: var(--glass-blur);
    }
    
    .search-input::placeholder {
      color: rgba(255, 255, 255, 0.7);
    }
    
    .search-input:focus {
      outline: none;
      border-color: rgba(255, 255, 255, 0.4);
    }
    
    .search-btn {
      position: relative;
      overflow: hidden;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.2);
      color: #f0f0f0;
      border-radius: 30px;
      padding: 12px 25px;
      cursor: pointer;
      transition: all var(--transition-speed) ease;
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: 500;
    }

    .search-btn:before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: rgba(255,255,255,0.2);
      transform: rotate(45deg);
      z-index: 1;
      transition: all 0.6s ease;
      opacity: 0;
    }

    .search-btn:hover:before {
      opacity: 1;
      left: -100%;
    }
    
    .search-btn:hover {
      background: rgba(255, 255, 255, 0.15);
      transform: translateY(-2px);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
    
    .search-filters {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: center;
      margin-top: 15px;
    }
    
    .filter-select {
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 30px;
      padding: 10px 20px;
      color: #fff;
      backdrop-filter: var(--glass-blur);
      -webkit-backdrop-filter: var(--glass-blur);
    }
    
    .filter-select:focus {
      outline: none;
      border-color: rgba(255, 255, 255, 0.4);
    }
    
    .filter-select option {
      background-color: #333;
      color: #fff;
      padding: 8px;
    }
    
    .filters {
      position: relative;
      z-index: 1;
      display: flex;
      justify-content: center;
      gap: 10px;
      margin: 30px auto;
      flex-wrap: wrap;
      max-width: 1200px;
      padding: 0 20px;
    }

    .filter-btn {
      position: relative;
      overflow: hidden;
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.15);
      color: #e0e0e0;
      padding: 10px 20px;
      border-radius: 30px;
      cursor: pointer;
      transition: all var(--transition-speed) ease;
      display: flex;
      align-items: center;
      gap: 8px;
      backdrop-filter: var(--glass-blur);
      -webkit-backdrop-filter: var(--glass-blur);
    }

    .filter-btn:before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: rgba(255,255,255,0.2);
      transform: rotate(45deg);
      z-index: 1;
      transition: all 0.6s ease;
      opacity: 0;
    }

    .filter-btn:hover:before {
      opacity: 1;
      left: -100%;
    }

    .filter-btn:hover {
      background: rgba(255, 255, 255, 0.15);
      transform: translateY(-2px);
    }

    .filter-btn.active {
      background: var(--primary-gradient);
      border-color: transparent;
      color: #fff;
    }
    
    /* Estilos para os botões principais */
    .main-filter-btn {
      position: relative;
      overflow: hidden;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.2);
      color: #f0f0f0;
      border-radius: 30px;
      padding: 12px 25px;
      cursor: pointer;
      transition: all var(--transition-speed) ease;
      font-size: 1rem;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .main-filter-btn:before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: rgba(255,255,255,0.2);
      transform: rotate(45deg);
      z-index: 1;
      transition: all 0.6s ease;
      opacity: 0;
    }

    .main-filter-btn:hover:before {
      opacity: 1;
      left: -100%;
    }
    
    .main-filter-btn:hover {
      background: rgba(255, 255, 255, 0.15);
      transform: translateY(-3px);
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .filter-btn i {
      font-size: 1.2em;
    }

    .active-filter-btn {
      background: var(--primary-gradient) !important;
      color: #fff !important;
      border-color: transparent !important;
    }

    #categoryButtons {
      display: none; /* Escondido por padrão */
      margin: 15px auto;
      padding: 0 20px;
      max-width: 1200px;
      justify-content: center;
      flex-wrap: wrap;
      gap: 10px;
    }

    #categoryButtons.is-visible {
      display: flex; /* Mostra quando a classe é adicionada */
    }

    .container {
      position: relative;
      z-index: 1;
      max-width: 1200px;
      margin: 40px auto 60px;
      padding: 0 20px;
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 25px;
    }

    .card {
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 16px;
      padding: 15px;
      cursor: pointer;
      transition: all var(--transition-speed) ease;
      height: 100%;
      display: flex;
      flex-direction: column;
      color: #e0e0e0;
      backdrop-filter: var(--glass-blur);
      -webkit-backdrop-filter: var(--glass-blur);
    }

    .card-image-container {
      position: relative;
      padding-top: 100%;
      overflow: hidden;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.05);
    }

    .card img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: all var(--transition-speed) ease;
    }

    .card img.lazy { opacity: 0; }
    .card img.loaded { opacity: 1; }
    
    .card:hover {
      transform: translateY(-5px);
      border-color: rgba(255,255,255,0.3);
    }
    
    .card:hover img {
      transform: scale(1.05);
    }

    .card h3 {
      color: #f0f0f0;
      font-size: 1.2em;
      margin: 15px 0 8px;
      text-align: center;
      font-weight: 600;
      position: relative;
      padding-bottom: 8px;
    }
    
    .card h3::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 40px;
      height: 2px;
      background: var(--primary-gradient);
      transition: width var(--transition-speed) ease;
    }
    
    .card:hover h3::after {
      width: 60px;
    }

    .card .material-type {
      color: #e0e0e0;
      font-size: 0.9em;
      opacity: 0.8;
      text-align: center;
      margin-bottom: 8px;
    }
    
    .material-specs {
      display: flex;
      gap: 10px;
      justify-content: center;
      margin-top: 10px;
    }
    
    .spec-item {
      background: rgba(255, 255, 255, 0.08) !important;
      padding: 6px 12px;
      border-radius: 20px;
      font-size: 0.85em;
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }

    @media(max-width:768px){
      .container{grid-template-columns:repeat(2, 1fr)}
      header h1 { font-size: 2.2rem; }
      .filter-btn { padding: 8px 16px; font-size: 0.9em; }
    }
    
    @media(max-width:600px){
      .container{grid-template-columns:1fr}
      .modal-content{padding:16px}
      header h1 { font-size: 1.8rem; }
    }

    #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: auto;
      border-radius: 12px;
      margin-bottom: 16px;
    }
    
    .thumbnails {
      display: flex;
      gap: 10px;
      justify-content: center;
      margin-bottom: 20px;
    }
    
    .thumbnails img {
      width: 80px;
      height: 60px;
      object-fit: cover;
      border-radius: 8px;
      cursor: pointer;
      opacity: 0.7;
      border: 2px solid transparent;
      transition: all var(--transition-speed) ease;
    }
    
    .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;
}

.material-value {
    font-size: 1.1em;
    font-weight: bold;
    color: #25D366; /* Verde do WhatsApp para destaque */
    margin-top: 10px;
    padding: 5px 10px;
    background: rgba(37, 211, 102, 0.1);
    border-radius: 8px;
    width: 100%;
    text-align: center;
}

.material-value del {
    color: #ff416c; /* Vermelho para o preço antigo */
    margin-right: 8px;
    opacity: 0.8;
}

    
    .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;
    }
    
    footer {
      position: relative;
      z-index: 1;
      text-align: center;
      padding: 30px 20px;
      font-size: 0.95rem;
      text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    }
    
    footer a {
      color: #ffc107;
      text-decoration: none;
      transition: all var(--transition-speed) ease;
      display: inline-block;
    }
    
    footer a:hover {
      transform: scale(1.2);
    }

    /* Animações */
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    
    @keyframes slideUp {
      from { transform: translateY(30px); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }
    
    @keyframes scaleIn {
      from { transform: scale(0.9); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }
    
    header img:first-child {
      animation: fadeIn 1s ease-out;
    }
    
    .title-image {
      animation: slideUp 1.2s ease-out;
      display: block;
      filter: drop-shadow(0 3px 10px rgba(0,0,0,0.5));
      transition: all 0.3s ease;
    }
    
    header p {
      animation: slideUp 1.4s ease-out;
    }
    
    .buttons-container {
      animation: fadeIn 1.6s ease-out;
    }
    
    .card {
      animation: scaleIn 0.5s ease-out;
      animation-fill-mode: both;
    }
    
    .container .card:nth-child(1) { animation-delay: 0.2s; }
    .container .card:nth-child(2) { animation-delay: 0.3s; }
    .container .card:nth-child(3) { animation-delay: 0.4s; }
    .container .card:nth-child(4) { animation-delay: 0.5s; }
    .container .card:nth-child(5) { animation-delay: 0.6s; }
    .container .card:nth-child(6) { animation-delay: 0.7s; }
  </style>

@media(max-width:768px){
  .container{grid-template-columns:repeat(2, 1fr)}
  header h1 { font-size: 2.2rem; }
  .filter-btn { padding: 8px 16px; font-size: 0.9em; }
}

@media(max-width:600px){
  .container{grid-template-columns:1fr}
  .modal-content{padding:16px}
  header h1 { font-size: 1.8rem; }
  
  .description, .specs {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* Estilos aprimorados para Mobile */
@media (max-width: 768px) {
  /* Organiza os botões de filtro de busca e de categorias em colunas */
  .search-filters {
    display: flex; /* Garante que o container seja flex */
    flex-direction: column;
    gap: 12px; /* Espaçamento consistente entre os botões */
  }

  /* Padroniza os botões de filtro e de categoria */
  .filter-select, .filter-btn {
    width: 100%; /* Ocupa toda a largura */
    text-align: center; /* Centraliza o texto */
    font-size: 1rem; /* Tamanho de fonte consistente */
    padding: 12px; /* Padding consistente */
    justify-content: center; /* Centraliza ícone e texto no filter-btn */
  }

  /* Garante que os botões principais também se adaptem */
  .buttons-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 20px;
  }

  .main-filter-btn {
    width: 100%;
    justify-content: center;
  }

  #categoryButtons.is-visible {
    flex-direction: column;
  }
}
