/* Contenedor general */
.prseinto-related-groups {
  --prse-radius: 14px;
  --prse-shadow: 0 2px 10px rgba(0,0,0,.06);
  --prse-border: #e9ecef;
  --prse-muted: #6c757d;
}

/* Tarjeta */
.prse-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--prse-border);
  border-radius: var(--prse-radius);
  background: #fff;
  box-shadow: var(--prse-shadow);
  overflow: hidden;
}

/* Imagen superior */
.prse-card .prse-img {
  background: #fff;
  display: block;
  padding: 8px;
  border-bottom: 1px solid var(--prse-border);
}
.prse-card .prse-img > img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: contain;
}

/* Cuerpo */
.prse-card .prse-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px 52px; /* espacio para el botón flotante */
}

/* Título */
.prse-title {
  font-weight: 800;
  font-size: 1.0rem;
  line-height: 1.2;
  margin: 0 0 4px 0;
  text-transform: uppercase;
  color: #111;
}
.prse-title a { color: inherit; text-decoration: none; }
.prse-title a:hover { text-decoration: underline; }

/* Subtítulo (línea gris) */
.prse-subtitle {
  font-size: .85rem;
  line-height: 1.2;
  color: var(--prse-muted);
  text-transform: uppercase;
  margin: 0 0 6px 0;
}

/* Meta (OEM/ID) */
.prse-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 6px 0;
}
.prse-meta li {
  font-size: .9rem;
  color: #111;
}
.prse-meta strong {
  font-weight: 700;
}

/* Precios */
.prse-price-excl {
  font-size: .85rem;
  color: var(--prse-muted);
  margin: 0;
}
.prse-price-incl {
  font-weight: 800;
  font-size: 1.25rem;
  margin: 2px 0 0 0;
  color: #111;
}

/* Botón flotante (carrito) */
.prse-cta {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(0,0,0,.15);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.prse-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
  opacity: .95;
}
.prse-cta svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* Grupos */
.prseinto-group > .h5 {
  font-weight: 800;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 575.98px) {
  .prse-card .prse-body { padding-bottom: 56px; }
}




/* ==== Grid 5/4/3/2/1 para las tarjetas del despiece ==== */
/* 1 por fila <576: viene dado por .col-12 */
/* 2 por fila ≥576: .col-sm-6 */
/* 3 por fila ≥768: .col-md-4 */
/* 4 por fila ≥992: .col-lg-3 */
/* 5 por fila ≥1200: helper específico */
@media (min-width: 1200px) {
  .prseinto-related-groups .prse-col-xl-5 {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

/* === Espaciados adicionales para el filtro y encabezados de categoría === */

/* 1. Separación entre etiqueta "Filtrar por categorías" y el selector */
.prseinto-filter label {
  margin-right: 10px;          /* deja un hueco entre texto y select */
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
  display: flex;
  align-items: center;
}

.prseinto-filter select.form-select {
  max-width: 320px;
}

/* 2. Espacio entre el nombre de la categoría y el número de piezas */
.prseinto-group .h5 span:first-child {
  margin-right: 8px;           /* separar texto de la “badge” */
}

/* También mejora la alineación vertical */
.prseinto-group .h5 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Badge más legible (opcional) */
.prse-badge {
  display: inline-block;
  padding: 2px 8px;
  margin-left: 6px;            /* respaldo por si span:first-child no aplica */
  border-radius: 999px;
  background: #f2f2f2;
  border: 1px solid #e1e1e1;
  font-size: .85rem;
  font-weight: 700;
  color: #333;
}

/* === Espacio vertical entre tarjetas del despiece === */
.prse-grid .sa-card {
  margin-bottom: 20px;  /* separación vertical entre filas */
}

/* Ajuste responsivo opcional: un poco menos en móvil */
@media (max-width: 575.98px) {
  .prse-grid .sa-card {
    margin-bottom: 15px;
  }
}

/* Centrar vertical y horizontalmente el botón dentro del bloque de precios */
.product-miniature-right.prse-no-price {
  display: flex;
  align-items: center;      /* centra verticalmente */
  justify-content: center;  /* centra horizontalmente */
  height: 100%;             /* ocupa todo el alto disponible */
  min-height: 60px;         /* altura mínima coherente con bloque de precios */
}

/* Botón "Ver" */
.prse-view-btn {
  background-color: #000 !important;
  color: #fff !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: .95rem;
  text-transform: uppercase;
  padding: 10px 20px;
  transition: background .25s ease, transform .2s ease;
}

.prse-view-btn:hover {
  background-color: #ff7f00 !important;
  color: #fff !important;
  transform: translateY(-2px);
}