/* Estilos para la página de listado de productos */
.product-listing-page {
  padding-bottom: 40px;
}

/* Sidebar de filtros */
.sidebar-filter {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  padding: 25px;
  position: sticky;
  top: 100px;
}

.sidebar-title {
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--dark-gray);
  position: relative;
  padding-bottom: 10px;
}

.sidebar-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-red) 0%,
    var(--dark-red) 100%
  );
  border-radius: 3px;
}

.filter-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.filter-section:last-child {
  border-bottom: none;
}

.filter-section-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--dark-gray);
}

.filter-options .form-check {
  margin-bottom: 10px;
}

.filter-options .form-check-input:checked {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
}

.filter-options .form-check-label {
  font-size: 0.9rem;
  color: var(--dark-gray);
  cursor: pointer;
}

/* Filtro de precio */
.price-filter .form-label {
  font-size: 0.85rem;
  color: var(--medium-gray);
  margin-bottom: 5px;
}

.price-filter .form-control {
  font-size: 0.9rem;
  padding: 5px 10px;
  width: 80px;
}

.price-slider {
  margin-top: 15px;
}

.price-slider .form-range::-webkit-slider-thumb {
  background-color: var(--primary-red);
}

.price-slider .form-range::-moz-range-thumb {
  background-color: var(--primary-red);
}

/* Cabecera de productos */
.products-header {
  padding: 15px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.active-filters .badge {
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 20px;
}

.sort-options .form-select {
  width: auto;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Grid de productos */
.products-grid .product-card {
  width: 100%;
  min-width: auto;
  margin-bottom: 0;
}

/* Paginación */
.pagination .page-link {
  color: var(--dark-gray);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 8px 15px;
  margin: 0 3px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.pagination .page-link:hover {
  background-color: rgba(229, 57, 53, 0.1);
  color: var(--primary-red);
  border-color: rgba(229, 57, 53, 0.3);
}

.pagination .page-item.active .page-link {
  background: linear-gradient(
    135deg,
    var(--primary-red) 0%,
    var(--dark-red) 100%
  );
  border-color: var(--primary-red);
  color: var(--white);
}

/* Responsive */
@media (max-width: 992px) {
  .sidebar-filter {
    position: static;
    margin-bottom: 30px;
  }

  .products-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .sort-options .form-select {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .sidebar-filter {
    padding: 20px;
  }

  .sidebar-title {
    font-size: 1.3rem;
  }

  .filter-section-title {
    font-size: 1rem;
  }
}

.btn-quitar-filtro {
  background: linear-gradient(
    90deg,
    var(--primary-red) 0%,
    var(--dark-red) 100%
  );
  border: none;
  border-radius: 50px;
  padding: 2px 5px;
  font-weight: 600;
  color: var(--white);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
  align-items: center;
  justify-content: center;
  position: absolute;
  overflow: hidden;
  top: 0;
  right: 0;
}
