/* 🎛️ ESTILOS DEL PLUGIN INDEPENDIENTE SDS FILTRO PRODUCTOS */

.sds-filtro-widget-wrapper {
  margin-bottom: 20px;
  width: 100%;
}

.sds-filtro-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* 🏷️ Botones / Pestañas (Pills) */
.sds-filtro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  background-color: #f4f4f6;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.sds-filtro-btn:hover {
  color: #0073e6;
  background-color: #e8f2ff;
  border-color: #0073e6;
  text-decoration: none;
}

.sds-filtro-btn.active {
  color: #ffffff !important;
  background-color: #0073e6 !important;
  border-color: #0073e6 !important;
  box-shadow: 0 2px 6px rgba(0, 115, 230, 0.3);
}

.sds-filtro-count {
  font-size: 0.85em;
  margin-left: 4px;
  opacity: 0.8;
}

/* 🔽 Desplegable (Select) */
select.sds-filtro-select {
  width: 100%;
  max-width: 300px;
  padding: 8px 14px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  cursor: pointer;
}

/* 🔘 Checkboxes / Radios */
.sds-filtro-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sds-filtro-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

/* ⏳ ESTADO DE CARGA EN GRID DE PRODUCTOS */
.sds-productos-widget-wrapper {
  transition: opacity 0.3s ease;
  position: relative;
}

.sds-productos-widget-wrapper.sds-loading {
  opacity: 0.45;
  pointer-events: none;
}

.sds-productos-widget-wrapper.sds-loading::after {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin-left: -16px;
  margin-top: -16px;
  border: 4px solid rgba(0, 115, 230, 0.2);
  border-top-color: #0073e6;
  border-radius: 50%;
  animation: sds-spin 0.8s linear infinite;
  z-index: 99;
}

@keyframes sds-spin {
  to { transform: rotate(360deg); }
}
