

    body {
      font-family: Arial, sans-serif;
      background-color: #f5f5f5;
      margin: 0;
      padding: 0;
    }

    .top-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px 30px;
      background-color: #ffffff;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 999;
    }

    .top-bar h1 {
      font-size: 24px;
      color: #333;
      margin: 0;
    }

    .top-bar .home-icon {
      font-size: 22px;
      color: #003366;
      text-decoration: none;
    }

    .sidebar select {
  width: 100%;
  padding: 10px 14px;        /* mesmo padding da barra de pesquisa */
  font-size: 14px;           /* igual à barra */
  border: 1px solid #ccc;    /* mesma borda */
  border-radius: 8px;        /* cantos arredondados iguais */
  background-color: #fff;    /* mesma cor */
  appearance: none;           /* remove estilo nativo do select */
  box-sizing: border-box;
}

.sidebar select:focus {
  outline: none;
  border-color: #000000ff;     /* mesma cor de foco da barra */
}

.sidebar select:hover {
  border-color: #000000ff;
}

   .catalogo-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* força 4 por fileira */
  gap: 24px;
  width: 100%;
}


    .peca-card {
      background-color: #fff;
      border-radius: 12px;
      box-shadow: 0 4px 10px rgba(38, 38, 38, 0.08);
      overflow: hidden;
      transition: transform 0.2s ease-in-out;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 0;
      position: relative;
    }

    .peca-card:hover {
      transform: scale(1.02);
    }

    .peca-card img {
      display: block;
      width: 100%;
      height: 200px;
      max-width: none;
      max-height: none;
      object-fit: contain;
      margin: 16px 0 0;
      border-radius: 8px;
      background-color: transparent;
    }

    .peca-conteudo {
      padding: 15px 20px;
      display: flex;
      flex-direction: row;
      justify-content: flex-start;
      /* flex-grow: 1; */ /* opcional remover para ajustar altura */
      text-align: left;
      gap: 10px;
    }

    .peca-conteudo h3 {
      margin: 0 0 8px 0;
      font-size: 18px;
      color: #333;
      line-height: 1.2;
    }

    .peca-conteudo p {
      font-size: 14px;
      color: #666;
      margin: 0 0 12px 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%;
      line-height: 1.3;
    }

   .btn-comprar {
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: static; /* remove o absolute */
  flex-shrink: 0;
}

.btn-comprar i {
  color: #333;
}

.peca-info {
  flex: 1;
  min-width: 0;
}

    /* Modal styles */
    .modal-overlay {
      display: none;
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.5);
      z-index: 1000;
      justify-content: center;
      align-items: center;
    }

    .modal-overlay.active {
      display: flex;
    }

    .modal-close {
      position: absolute;
      top: 15px;
      right: 15px;
      background: transparent;
      border: none;
      font-size: 24px;
      color: rgb(0, 0, 0);
      cursor: pointer;
      font-weight: bold;
      line-height: 1;
    }

    .modal-content {
      background: white;
      border-radius: 12px;
      width: 90%;
      max-width: 500px;
      max-height: 80vh;
      box-shadow: 0 5px 15px rgba(0,0,0,0.3);
      position: relative;
      padding: 20px 30px 30px 30px;
      display: flex;
      flex-direction: column;
    }

    .modal-content img {
      max-width: 100%;
      max-height: 200px;
      object-fit: contain;
      border-radius: 8px;
      margin-bottom: 10px;
    }

    .modal-description-container {
      max-height: 200px;
      overflow-y: auto;
      overflow-x: hidden; /* evita scroll lateral */
      margin-bottom: 15px;
      word-wrap: break-word;
      word-break: break-word;
    }

    .modal-description-container p {
      font-size: 16px;
      color: #555;
      white-space: pre-wrap;
      word-wrap: break-word;
      word-break: break-word;
    }

    .modal-content p {
      font-size: 16px;
      color: #555;
    }

    .modal-content h3 {
      margin: 0;
      font-size: 24px;
      color: #333;
    }

    .btn-orcamento {
      background-color: rgb(0, 0, 0);
      color: white;
      border: none;
      padding: 12px;
      border-radius: 8px;
      font-size: 16px;
      cursor: pointer;
      align-self: center;
      transition: background-color 0.3s ease;
    }

    .btn-orcamento:hover {
      background-color: #003366;
    }

    

/* ===== WRAPPER ===== */
.filtro-wrapper {
  width: 280px;
  max-width: 280px;
  flex-shrink: 0;
}

/* ===== BUSCA ===== */
.busca-linha {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ccc;
  padding-bottom: 6px;
  margin-bottom: 24px;
  position: relative;
  border-bottom: none;
}

.busca-linha input {
  border: none;
  outline: none;
  font-size: 15px;
  width: 100%;
  padding: 14px 42px 14px 16px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.lupa {
  font-size: 16px;
  opacity: 0.6;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

/* ===== FILTRO CARD ===== */
.filtro-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
}

/* HEADER ESCURO */
.filtro-header {
  background: linear-gradient(90deg, #003366, #003366);
  color: #fff;
  padding: 14px 18px;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

/* SETA */
.seta {
  width: 10px;
  height: 10px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
  transition: transform 0.3s;
}

.filtro-card.aberto .seta {
  transform: rotate(-135deg);
}

/* ===== OPÇÕES ===== */
.filtro-opcoes {
  padding: 18px;
  display: none;
  flex-direction: column;
  gap: 14px;
  background: #fff;
}

.filtro-card.aberto .filtro-opcoes {
  display: flex;
}

/* ===== RADIO ===== */
.radio-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  cursor: pointer;
}

.radio-item input {
  display: none;
}

.radio {
  width: 14px;
  height: 14px;
  border: 2px solid #bbb;
  border-radius: 50%;
  position: relative;
}

.radio-item input:checked + .radio {
  border-color: #000;
}

.radio-item input:checked + .radio::after {
  content: "";
  width: 6px;
  height: 6px;
  background: #000;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.catalogo-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 120px 40px 60px;
}

@media (max-width: 768px) {

  .catalogo-layout {
    flex-direction: column;
    padding: 100px 16px 30px;
    gap: 20px;
  }

  .filtro-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .main-content {
    margin: 0;
    padding: 0;
  }

  .catalogo-container {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;

  }

  .peca-card {
    width: 100%;
  }

  .btn-comprar {
    width: 48px;
    height: 48px;
    font-size: 22px;
    border-radius: 12px;
  }
  .peca-info {
  flex: 1;
  min-width: 0;
}
.peca-card img {
    height: 140px;
  }
}
/* ===== HEADER ===== */
.header {
  background: #003366;
  width: 100%;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
}

.logo img {
  height: 55px;
}

/* MENU DESKTOP */
.menu-desktop {
  display: flex;
  gap: 30px;
}

.menu-desktop a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

/* HAMBURGER */
.hamburger {
  display: none;
  font-size: 32px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* MENU MOBILE */
.menu-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: #003366;
  padding: 30px 20px;
  transform: translateX(100%); /* FECHADO */
  transition: transform 0.3s ease;
  z-index: 1001;
}

.menu-mobile .close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 1002; /* 👈 ESSENCIAL */
}


.menu-mobile.open {
  transform: translateX(0);
}

.menu-mobile nav {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 60px;
}

.menu-mobile nav a {
  color: #fff;
  font-size: 22px;
  text-decoration: none;
}

/* OVERLAY */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 1000;
    display: none;

}

.overlay.show {
  display: block !important; 
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .menu-desktop {
    display: none;
  }

  .hamburger {
    display: block;
  }
  .header-content {
  justify-content: space-between 
  }
   .logo img {
    height: 80px;           /* aumenta a logo */
  }
}

@media (min-width: 769px) {
  .menu-mobile,
  .overlay {
    display: none;
  }
  /* HEADER */
  .header-content {
    gap: 280px;              /* aproxima logo e menu */
  }

  /* LOGO */
  .logo img {
    height: 100px;           /* aumenta a logo */
  }

  .menu-desktop a {
    font-size: 20px;        /* aumenta o texto */
    padding: 6px 0;         /* melhora a área de clique */
  }
   .menu-desktop {
    gap: 50px;              /* aproxima os links entre si */
  }
}
