.productos-page {
  padding: 80px 0;
}

.productos-page .search-container {
  max-width: 100%;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  overflow: hidden;
}

.search-box {
  display: flex;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  overflow: hidden;
}

.productos-page .section-title{
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 15px;
}

#product-search {
  flex: 1;
  padding: 15px 25px;
  border: none;
  font-size: 1rem;
  outline: none;
}

#search-button {
  background: #3498db;
  color: white;
  border: none;
  padding: 0 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

#search-button:hover {
  background: #2980b9;
}

.search-results {
  display: none;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  max-height: 400px;
  margin-top: 5px;
  padding-top: 10px;
  position: absolute;
  width: calc(100% - 40px);
}

.search-result-item {
  display: flex;
  padding: 10px 15px;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-result-item:hover {
  background: #f5f7fa;
}

.search-result-imagen {
  width: 50px;
  height: 50px;
  background: #f5f7fa;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-result-imagen img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.search-result-info {
  flex: 1;
}

.search-result-nombre {
  margin: 0 0 5px 0;
  color: #2c3e50;
  font-size: 0.95rem;
}

.search-result-clave,
.search-result-linea {
  color: #7f8c8d;
  font-size: 0.8rem;
  margin: 0;
}

.productos-grid {
  position: relative;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  z-index: -1;
}

.filtros-card {
  background: white;
  padding: 0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 20px;
}

.filtros-card h3 {
  margin-top: 0;
  margin-bottom: 0;
  color: #2c3e50;
  font-size: 1.2rem;
  padding: 1rem .5rem;
}

.filtro-group {
  margin-bottom: 25px;
}

.filtro-group h4 {
  margin: 0 0 15px 0;
  color: #7f8c8d;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filtro-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filtro-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.filtro-option input {
  margin: 0;
}

.filtro-option label {
  font-size: 0.9rem;
  color: #2c3e50;
  cursor: pointer;
  user-select: none;
}

.filtro-option:hover label {
  color: #3498db;
}

.limpiar-btn {
  width: 100%;
  padding: 10px;
  background: #f5f7fa;
  border: none;
  border-radius: 6px;
  color: #7f8c8d;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.limpiar-btn:hover {
  background: #e4e8eb;
  color: #2c3e50;
}

.productos-list-container {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.results-count {
  color: #7f8c8d;
  font-size: 0.9rem;
}

.sort-options {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-options label {
  font-size: 0.9rem;
  color: #7f8c8d;
}

#sort-by {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  background-color: white;
}

.productos-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.producto-card {
  border: 1px solid #eee;
  /* border-radius: 8px; */
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.producto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.producto-imagen-container {
  height: 200px;
  background: #f5f7fa;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.producto-imagen {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.producto-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #3498db;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
}

.producto-info {
  padding: 20px;
  flex: 1;
}

.producto-nombre {
  margin: 0 0 10px 0;
  color: #2c3e50;
  font-size: 1rem;
  line-height: 1.4;
}

.producto-linea,
.producto-clave,
.producto-acabados,
.producto-medidas {
  font-size: 0.8rem;
  color: #7f8c8d;
  margin: 5px 0;
}

.producto-clave {
  font-weight: 500;
  color: #3498db;
}

.ver-detalle-btn {
  display: block;
  text-align: center;
  padding: 10px;
  background: #f5f7fa;
  color: #3498db;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-top: 1px solid #eee;
}

.ver-detalle-btn:hover {
  background: #3498db;
  color: white;
}

.pagination {
  justify-content: center;
  display: flex;
  padding-left: 0;
  list-style: none;
  margin-top: 40px;
  gap: 6px;
}
.page-link {
  position: relative;
  display: block;
  padding: 0.175rem 0.55rem;
  margin-left: -1px;
  line-height: 1.5;
  text-decoration: none;
  color: #3498db;
  background-color: #fff;
  border: 1px solid #dee2e6;
}
.page-link:hover {
  z-index: 2;
  color: #3498db;
  background-color: #f5f7fa;
  border-color: #eee;
}
.page-item:first-child .page-link {
  border-top-left-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
}
.page-item:last-child .page-link {
  border-top-right-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
}
.page-item.active .page-link {
  z-index: 3;
  color: #fff;
  background-color: #3498db;
  border-color: #0F85D1;
}
.page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
  background-color: #fff;
  border-color: #dee2e6;
}
@media (min-width: 768px) {
  .page-link {
    padding: 0.375rem 0.75rem;
  }
}

/* Animaciones */
.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease forwards;
}

.animate-delay-100 {
  animation-delay: 0.2s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .productos-grid {
    grid-template-columns: 1fr;
  }

  .filtros-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 576px) {
  .productos-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .productos-list {
    grid-template-columns: 1fr;
  }

  .search-box {
    border-radius: 6px;
  }
}

.accordion {
  width: 100%;
  max-width: 600px;
  font-family: sans-serif;
}

.accordion-item {
  border-bottom: 1px solid #eee;
}

.accordion-header {
  background: #f5f7fa;
  cursor: pointer;
  font-weight: bold;
  padding: .5rem;
  color: #2c3e50;
  font-size: 14px;
}

.accordion-content {
  height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content.open {
  height: auto;
}

.accordion-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 240px;
  overflow-y: scroll;
}
.accordion-list::-webkit-scrollbar-track{
  border-radius: 3px;
  background-color: #DFDFDF;
}
.accordion-list::-webkit-scrollbar{
  width: 6px;
}
.accordion-list::-webkit-scrollbar-thumb{
  border-radius: 3px;
  background-color: var(--color-primary);
}
.accordion-list li {
  border-bottom: 1px solid #eee;
  padding: .5rem;
  font-size: 14px;
}
.accordion-list li:last-child {
  border-bottom: none;
}
.accordion-list li a {
  text-decoration: none;
  color: #7f8c8d;
}
.accordion-list li.active a {
  color: #2c3e50;
}