/* Container principal */
.catalog-container {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 10px;
  padding: 15px;
  width: 100%;
  box-sizing: border-box;
}

#catalogContent {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 5px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Menu Lateral */
.catalog-menu {
  flex: 0 0 230px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(233, 86, 13, 0.08);
  padding: 16px;
  position: sticky;
  top: 20px;
  height: fit-content;
  border: 1px solid rgba(233, 86, 13, 0.12);
}

.menu-title {
  font-weight: 600;
  font-size: 15px;
  color: #2f2f2f;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(233, 86, 13, 0.15);
  text-align: left;
  padding-left: 15px;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-item {
  padding: 8px 15px;
  margin: 2px 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  color: #4a4a4a;
  transition: all 0.2s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-description {
  font-size: 12px;
  color:var(--main-color);
  font-weight:700;
  line-height: 1.3;
  display: block;
  margin-top: 2px;
  font-style: italic;
}

.menu-item:hover,
.menu-item.active {
  background-color: #e9560d;
  color: #fff;
}

/* Cards dos Produtos */
.produto-card {
  background: linear-gradient(to bottom, #ffffff, #fcfcfc);
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(233, 86, 13, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 0;
  min-width: 280px;
  max-width: 320px;
  border: 1px solid rgba(233, 86, 13, 0.08);
  height: fit-content;
}

.produto-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(233, 86, 13, 0.08);
}

/* Título do produto */
.produto-titulo {
  padding: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #fffdfc 100%);
  border-bottom: 1px solid rgba(233, 86, 13, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.titulo-texto {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.produto-titulo h3 {
  margin: 0;
  color: #666666;
  font-size: 13px;
  font-weight: 400;
  font-family: 'Poppins', sans-serif;
  text-align: left;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.produto-titulo h4 {
  margin: 0;
  color: #e9560d;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-align: left;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.logo-sauber {
  height: 24px;
  width: auto;
  object-fit: contain;
  margin-left: 4px;
  align-self: center;
}

/* Área da imagem */
.produto-imagem {
  padding: 0;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 50%, #f2f2f2 100%);
  margin: 0;
}

.produto-imagem a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0;
}

.produto-imagem img {
  max-width: 100%;
  max-height: 280px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.produto-imagem img:hover {
  transform: scale(1.02);
}

/* Botão de WhatsApp */
.produto-acao {
  padding: 6px;
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
  margin-top: auto;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 6px;
  background: #e9560d;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 2px 4px rgba(233, 86, 13, 0.2);
}

.whatsapp-btn:hover {
  background: #ea6421;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(233, 86, 13, 0.15);
}

.whatsapp-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.segmento-box {
  background: linear-gradient(to bottom right, #ffffff, #f0f0f0);
  max-width: 240px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.segmento-box:hover {
  background: linear-gradient(to bottom right, #ffffff, #fafafa);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}



/* Responsividade */
@media (max-width: 1200px) {
  #catalogContent {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .catalog-container {
    flex-direction: column;
  }
  
  .catalog-menu {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
  }
  
  #catalogContent {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
  }
  
  .produto-card {
    width: 100%;
  }
  
  .produto-imagem {
    height: 240px;
  }

  .produto-imagem img {
    max-height: 240px;
  }
}

@media (max-width: 480px) {
  #catalogContent {
    grid-template-columns: 1fr;
  }

  .produto-card {
    max-width: 100%;
  }

  .produto-imagem {
    height: 260px;
  }

  .produto-imagem img {
    max-height: 260px;
  }
}
#catalogContent {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 5px;
  padding: 5px;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- MENU LATERAL --- */
.catalog-menu {
  flex: 0 0 250px;
  background-color: #f5f5f5;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  position: sticky;
  top: 20px;
  height: fit-content;
}

.menu-title {
  font-weight: 700;
  font-size: 18px;
  color: #172950;
  margin-bottom: 15px;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-item {
  padding: 10px 15px;
  margin-bottom: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-item:hover,
.menu-item.active {
  background-color: #e9560d;
  color: #fff;
}

/* --- ÁREA DE CONTEÚDO --- */
.catalog-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 5px;
  min-height: 300px;
  padding: 5px;
}

/* --- ESTILO DOS CARDS --- */
.card {
  flex: 0 0 calc(33.333% - 4px); /* 3 cards por linha com gap de 5px */
  min-width: 320px;
  margin-bottom: 5px;
  margin-right: 1px;
}

.card-grid:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  height: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-header {
  padding: 6px 8px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #eee;
}

.card-title {
  margin: 0;
  color: #e9560d;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.01em;
}

.card-image {
  padding: 2px;
  text-align: center;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.card-content {
  padding: 0 16px 16px;
  flex: 1;
}

.card-description {
  margin: 0;
  color: #4a5568;
  font-size: 14px;
  line-height: 1.5;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 63px; /* Altura para 3 linhas com line-height 1.5 */
}

.img-link {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

.img-link:hover {
  opacity: 0.9;
}

.card-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  max-height: 380px;
  padding: 0;
  transform-origin: center;
}

.card-icon:hover {
  transform: scale(1.05);
}

.card-actions {
  padding: 16px;
  background: #f8f9fa;
  border-top: 1px solid #eee;
}

.whatsapp-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 4px;
  background: #25D366;
  color: white;
  border: none;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.whatsapp-button:hover {
  background: #128C7E;
}

.whatsapp-button svg {
  flex-shrink: 0;
}
  font-size: 15px;
}

.card-text p:last-child {
  color: #e9560d;
  font-weight: 700;
  font-size: 18px;
}

.card-icon {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 10px;
  margin-top: 10px;
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-grid:hover .card-icon {
  transform: scale(1.25);
  opacity: 1;
}

/* --- BOTÃO DE ORÇAMENTO --- */
.card .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  font-weight: 600;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  background-color: #28a745;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 128, 0, 0.2);
  color: #fff;
}

.card .btn:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 128, 0, 0.3);
}

.card .btn svg {
  width: 18px;
  height: 18px;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
  .catalog-container {
    flex-direction: column;
  }

  .catalog-menu {
    width: 100%;
    max-width: none;
    position: static;
  }

  .catalog-content {
    justify-content: center;
  }

  .card-grid {
    flex: 1 1 45%;
    max-width: 45%;
  }
}

@media (max-width: 576px) {
  .card-grid {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
