/* 🔷 CONTADOR DE COCHES DISPONIBLES */

.contador-categorias {
  display: flex;
  justify-content: flex-end;     /* Alineado horizontal a la derecha */
  align-items: center;           /* Centrado verticalmente respecto a su línea */
  font-size: 15px;
 font-weight: 500;
  color: #2c3e50;
  width: 100%;
  padding: 0;
  background: none;
  margin: 0;
  align-self: center;          /* Asegura alineación dentro de flex container */
  line-height: 1;
  transform: translateY(22px); /* Eleva suavemente el texto sin romper el layout */
}



/* 🧭 BARRA DE ORDENAMIENTO Y CONTENEDORES SUPERIORES */

.sds-ordenar-barra {
  display: flex;
  justify-content: space-between;  /* Elementos a extremos opuestos */
  align-items: center;             /* Alineación vertical perfecta */
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding: 0 10px;
}

.woocommerce-ordering {
  float: none;
  text-align: left;
  width: 100%;
  margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
  .contador-categorias {
    display: none;
  }
}



/* 🎛️ SELECTOR DE ORDEN DE PRODUCTOS */

select.sds-ordenar-productos {
  width: 203px;
  max-width: 100%;
  padding: 8px 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23333' viewBox='0 0 24 24' width='18' height='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sds-ordenar-barra select.sds-ordenar-productos:hover,
.sds-ordenar-barra select.sds-ordenar-productos:focus {
  border-color: #0073e6;
  box-shadow: 0 0 4px rgba(0, 115, 230, 0.3);
  outline: none;
}

/* 🧱 GRID DE PRODUCTOS */

.sds-productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  padding: 10px;
}

/* 📱 Responsive: 1 columna en móvil */

@media screen and (max-width: 767px) {
  .sds-productos-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 🧩 TARJETA DE PRODUCTO */

.sds-producto-item {
  background: #fff;
  border-style: solid;
  padding: 12px;
  text-align: center;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.sds-producto-item:hover {
  border-color: #0073e6;
  box-shadow: 0 0 6px rgba(0, 115, 230, 0.2);
}

/* 🖼️ SLIDER DE IMÁGENES DEL PRODUCTO */

.sds-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 10px;
}

.swiper-wrapper {
  display: flex !important;
  flex-direction: row;
}

.swiper-slide {
  flex-shrink: 0;
  width: 100% !important;
  box-sizing: border-box;
}

.swiper-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

/* ⬅️➡️ BOTONES DE NAVEGACIÓN DEL SLIDER */

.swiper-button-prev,
.swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 30px;
  height: 30px;
  font-size: 16px;
  color: #333;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
}

.swiper-button-prev { left: 10px; }
.swiper-button-next { right: 10px; }

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: rgba(0,0,0,0.6);
  color: #fff;
}

/* 🏷️ TÍTULO Y SUBTÍTULO DEL PRODUCTO */

.titulo-producto {
  margin-bottom: 0;
  padding-bottom: 4px;
  font-weight: bold;
  font-size: 1.1em;
}

.subtitulo-producto {
  margin-top: 0 !important;
  font-size: 0.95em;
  line-height: 1.3;
}

/* 💸 PRECIOS DE PRODUCTO */

.precio-regular,
.precio-oferta,
.precio-unico {
  display: block;
  width: 100%;
  text-align: inherit; /* Elementor lo controla */
}

.precio-regular {
  text-decoration: line-through;
}

.precio-unico {
  text-decoration: none;
}

.precio-oferta {
  display: block;
  width: 100%;
}

.precio-apilado {
  align-items: stretch;
}

/* 📊 CONTADOR EXTRA OPCIONAL (sds-contador-wrapper) */

.sds-contador-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 20px;
  font-size: 16px;
  color: #333;
}

.sds-contador-label {
  background-color: #f0f4ff;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
  color: #1a3fa5;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
