/* css/prensas.css */
.catalog-page {
  padding: 40px 0;
  background-color: var(--bg-gray);
}

.catalog-header {
  margin-bottom: 30px;
}

.catalog-header h1 {
  font-size: 32px;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.breadcrumbs {
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--primary-blue);
  font-weight: 500;
}

.catalog-layout {
  display: flex;
  gap: 30px;
}

/* Sidebar Filters */
.filters-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--surface-white);
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  position: sticky;
  top: 100px;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group h3 {
  font-size: 16px;
  color: var(--primary-blue);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.filter-option {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  cursor: pointer;
}

.filter-option input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: var(--cta-orange);
  cursor: pointer;
}

.filter-option span {
  font-size: 15px;
  color: var(--text-main);
}

/* Grid Produtos */
.products-area {
  flex-grow: 1;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.products-count {
  font-weight: 500;
  color: var(--text-muted);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--surface-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  border-color: var(--primary-blue);
}

.product-image-container {
  height: 260px;
  background-color: #FFFFFF;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  border-bottom: 1px solid var(--border-color);
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.2); /* Zoom de 20% para remover bordas transparentes da foto original */
  mix-blend-mode: multiply; /* Faz o fundo branco da foto se misturar com o fundo branco do card */
  transition: transform 0.3s ease;
}

.product-card:hover .product-image-container img {
  transform: scale(1.3); /* Efeito de zoom ao passar o mouse */
}

.product-image-container img.placeholder-logo {
  width: 50%;
  height: auto;
  transform: none;
  opacity: 0.2; /* Efeito de marca d'água para mostrar que não tem foto */
}

.product-card:hover .product-image-container img.placeholder-logo {
  transform: scale(1.05); /* Zoom muito mais suave no placeholder */
}


.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 8px;
}

.badge {
  background: var(--primary-blue);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge.pneumatica {
  background: var(--cta-orange);
}

.product-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  font-size: 20px;
  color: var(--text-main);
  margin-bottom: 8px;
}

.product-info p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
  flex-grow: 1;
}

.product-specs {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.product-specs div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-full {
  width: 100%;
}

/* Modal Detalhes Produto */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.product-modal {
  background: var(--surface-white);
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  border-radius: 12px;
  overflow-y: auto;
  position: relative;
  display: flex;
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .product-modal {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--primary-blue);
}

.modal-content {
  display: flex;
  width: 100%;
}

.modal-gallery {
  width: 50%;
  padding: 30px;
  background: var(--bg-gray);
}

.main-image {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
  background: white;
  cursor: zoom-in;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.2);
  mix-blend-mode: multiply;
  transition: transform 0.2s ease;
}

.thumbnails {
  display: flex;
  gap: 10px;
}

.thumb {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  background: white;
}

.thumb.active {
  border-color: var(--primary-blue);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.2);
  mix-blend-mode: multiply;
}

.modal-details {
  width: 50%;
  padding: 40px 30px;
}

.modal-details h2 {
  font-size: 28px;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.modal-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.specs-table tr {
  border-bottom: 1px solid var(--border-color);
}

.specs-table td {
  padding: 12px 0;
  font-size: 15px;
}

.specs-table td:first-child {
  font-weight: 600;
  color: var(--text-muted);
  width: 40%;
}

.whatsapp-cta {
  background: #25D366;
  color: white;
  width: 100%;
  padding: 16px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-cta:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(37, 211, 102, 0.2);
}

/* Responsive Catalog */
@media (max-width: 992px) {
  .catalog-layout {
    flex-direction: column;
  }
  .filters-sidebar {
    width: 100%;
    position: static;
  }
  .modal-content {
    flex-direction: column;
  }
  .modal-gallery, .modal-details {
    width: 100%;
  }
  .main-image {
    height: 300px;
  }
}
