/* ===== BUSCADOR SUPERIOR ===== */
.seinto-search-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
  font-family: 'Open Sans', sans-serif;
}


.seinto-search-form {
  width: 100%;
}
@media (min-width: 992px) {
  .seinto-filters-overlay {
    display: none !important;
  }
}

.seinto-search-input-wrapper {
  position: relative;
  width: 100%;
}

#seinto_search_query_top {
  width: 100%;
  padding: 20px 50px 20px 20px;
  font-size: 18px;
  font-weight: 400;
  color: #333;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s;
  background: #ffffff;
}

#seinto_search_query_top:focus {
  border-color: #3e997b;
}

.seinto-search-button {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  color: #144633;
  cursor: pointer;
}

.seinto-search-button i {
  vertical-align: middle;
  font-weight: bold;
  font-size: 40px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.ac_results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1001;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ac_result_item {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
}

.ac_result_item:hover {
  background-color: #f3f3f3;
}

/* Cabecera resultados + ordenación */
.search-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* -------------------- *
 * PÁGINA DE RESULTADOS *
 * -------------------- */
.product-card-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 20px;
  border: 2px solid #ffd700;
  border-radius: 8px;
  background-color: #fff;
  color: #2c2c2c;
  font-family: 'Open Sans', sans-serif;
  margin: 0px 0px 15px 0px;
  align-items: stretch;
}

/* ----- COLUMNAS ----- */

/* Izquierda */
.product-card-horizontal .image-col {
  flex-basis: 30%;
  flex-grow: 1;
  flex-shrink: 1;
  position: relative;
  min-width: 200px;
}

/* Centro */
.product-card-horizontal .details-col {
  flex-basis: 33%;
  flex-grow: 2;
  flex-shrink: 1;
  min-width: 220px;
}

/* Derecha */
.product-card-horizontal .action-col {
  flex-basis: 30%;
  flex-grow: 1;
  flex-shrink: 1;
  min-width: 260px;
}

/* ----- IMAGEN ----- */
.product-card-horizontal .product-image-wrapper {
  position: relative;
  height: 100%;
}

.product-card-horizontal .product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Badge */
.product-card-horizontal .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #144633;
  color: #fff;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: -0.6px;
  z-index: 2;
}

/* ----- TÍTULO ----- */
.product-card-horizontal .product-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: -0.6px;
  color: #2c2c2c;
  margin-bottom: 0;
  min-height: 50px;
  text-transform: uppercase;
  font-family: 'Open Sans', sans-serif;
}

/* Enlace dentro del título */
.product-card-horizontal .product-title a.product-title-link {
  color: inherit;
  text-decoration: none;
}

.product-card-horizontal .product-title a.product-title-link:hover {
  text-decoration: underline;
}

/* ----- METADATOS ----- */
.product-card-horizontal .product-meta {
  margin-top: 40px;
  margin-bottom: 10px;
  font-size: 16px;
  color: #2c2c2c;
  line-height: 24px;
  font-weight: 600 !important;
}

.product-card-horizontal .product-code {
  margin-top: 15px;
}

.product-card-horizontal .product-meta p {
  margin-bottom: 0;
}

/* ----- VEHÍCULO ----- */
.product-card-horizontal .vehicle-block {
  margin-top: 40px;
}

.product-card-horizontal .vehicle-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: -0.6px;
  color: #2c2c2c;
  margin-bottom: 8px;
  font-family: 'Open Sans', sans-serif;
}

.product-card-horizontal .vehicle-data {
  display: flex;
  gap: 20px;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.6px;
  color: #2c2c2c;
}

.product-card-horizontal .vehicle-data-col {
  flex: 1;
}

.product-card-horizontal .vehicle-data i.material-icons {
  font-size: 24px;
  vertical-align: middle;
  margin-right: 6px;
  color: #2c2c2c;
}

/* ----- PRECIO Y ACCIONES ----- */
.product-card-horizontal .product-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 38px;
  letter-spacing: -0.6px;
  color: #2c2c2c;
}

.product-card-horizontal .product-price .iva-inc {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.6px;
  color: #2c2c2c;
  display: inline-flex;
  align-items: center;
}

/* Precio sin IVA */
.product-card-horizontal .product-price-excl {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.6px;
  color: #b3b3b3;
  margin-top: 6px;
}

.product-card-horizontal .product-price-excl .label {
  font-weight: 600;
  margin-right: 4px;
}

.product-card-horizontal .product-price-excl .excl-value {
  font-weight: 700;
}

.product-card-horizontal .price-note {
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.6px;
  color: #2c2c2c;
  margin-bottom: 10px;
}

.product-card-horizontal .product-icons {
  list-style: none;
  padding: 0;
  margin: 40px 0 0 0;
  font-size: 16px;
  color: #2c2c2c;
}

.product-card-horizontal .material-icons {
  margin-right: 5px;
}

.product-card-horizontal .product-icons li {
  margin-bottom: 5px;
}

.product-card-horizontal .add-to-cart-btn {
  margin-top: 40px;
  display: block;
  width: 100%;
  padding: 20px 24px;
  background-color: #ffd700;
  color: #144633;
  border: none;
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0;
  text-align: center;
  cursor: pointer;
}

.product-card-horizontal .return-policy {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.6px;
  color: #2c2c2c;
  text-align: center;
  margin-top: 20px;
}


/* ----- RESPONSIVE TARJETAS ----- */
@media (max-width: 1235px) and (min-width: 1060px) {
  .product-card-horizontal {
    flex-wrap: nowrap; /* evita que la tercera columna baje */
  }

  .product-card-horizontal .image-col,
  .product-card-horizontal .details-col,
  .product-card-horizontal .action-col {
    min-width: 0; /* permite que se encojan dentro del ancho disponible */
  }
}

@media (max-width: 768px) {
  .product-card-horizontal {
    flex-direction: column;
  }

  .product-card-horizontal .image-col,
  .product-card-horizontal .details-col,
  .product-card-horizontal .action-col {
    flex: 1 1 100%;
    width: 100%;
    min-width: auto;
    text-align: left;
  }

  .product-card-horizontal .action-col {
    margin-top: 20px;
  }

  .product-card-horizontal .product-image-wrapper img {
    height: auto;
    object-fit: contain;
  }
}


/* ==== FILTROS DE PRODUCTOS (SEINTOAJAXFILTER) ==== */
#seinto-filters {
  margin-bottom: 20px;
}

.seinto-filters-card {
  padding: 16px 12px;
  background-color: #fff;
  border: 2px solid #e6e6e6;
  border-radius: 12px;
  font-family: 'Open Sans', sans-serif;
}

.seinto-filters-card h5 {
  font-weight: 700;
  font-size: 20px;
  padding: 6px 10px;
  margin-bottom: 16px;
  letter-spacing: -0.6px;
  display: flex;
  align-items: center;
  font-family: 'Open Sans', sans-serif;
}

.seinto-filters-card h5 i {
  margin-right: 6px;
}

/* ==== BLOQUES DE FILTRO ==== */
.seinto-filter-block {
  margin-bottom: 20px;
}

.seinto-filter-block h6 {
  font-weight: bold;
  font-size: 20px;
  border-bottom: 2px solid #e6e6e6;
  padding: 6px 10px;
  margin-bottom: 10px;
  font-family: 'Open Sans', sans-serif;
  letter-spacing: -0.6px;
}

/* ==== LISTA DE OPCIONES ==== */
.seinto-filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.seinto-filter-list li {
  /* margin-bottom: 8px; */
}

/* ==== OPCIÓN DE FILTRO ==== */
.seinto-filter-list .filter-option {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #2c2c2c;
  letter-spacing: -0.6px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.seinto-filter-list .filter-option:hover {
  background-color: #eaf3ec;
}


/* ==== BADGE CONTADOR ==== */
.seinto-filter-list .filter-option .badge {
  color: #2c2c2c;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.6px;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 10px;
  flex-shrink: 0;
}

/* ==== ENLACE "Quitar filtro" ==== */
.seinto-filter-remove {
  padding: 6px 10px;
}

.seinto-filter-remove a {
  font-size: 16px;
  color: #3e997b;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.6px;
}

.seinto-filter-remove a:hover {
  text-decoration: underline;
}

.filter-option.active {
  background-color: #eaf3ec;
}


/* ==== BOTÓN LIMPIAR FILTROS ==== */
#clear-all-filters {
  font-size: 14px;
  color: #cb1212;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 10px;
}


/* ==== MARCAS ==== */
/* Ancho completo solo en el listado de marcas (/marcas) */

/* Oculta la columna lateral vacía */
#manufacturer .sidebar {
  display: none !important;
}

/* Fuerza el wrapper de contenido a ocupar el 100% */
#manufacturer #content-wrapper {
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

/* Si el tema usa clases de grid Bootstrap, neutralízalas */
#manufacturer #content-wrapper.col-md-8,
#manufacturer #content-wrapper.col-lg-9 {
  width: 100% !important;
}

/* Ajustes menores de espaciado */
#manufacturer #content-wrapper.js-content-wrapper {
  padding-left: 0 !important;
  padding-right: 0 !important;
}


/* ==== ORDENACIÓN SUPERIOR (SEINTOAJAXFILTER) ==== */

.seinto-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Open Sans', sans-serif;
}

.seinto-sort-wrapper .sort-label {
  font-weight: 600;
  margin: 0;
  font-size: 20px;
  color: #2c2c2c;
  letter-spacing: -0.6px;
  white-space: nowrap;
}

.seinto-sort-select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  font-size: 16px;
  font-weight: 600;
  color: #2c2c2c;
  background-color: #fff;
  min-width: 230px;
  letter-spacing: -0.4px;
}

.seinto-sort-select:focus {
  outline: none;
  border-color: #3e997b;
}

/* ==== RESPONSIVE CABECERA RESULTADOS ==== */
@media (max-width: 768px) {
  .search-bar-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .search-bar-header #seinto-results-count {
    width: 100%;
  }

  .search-bar-header .seinto-sort-wrapper {
    width: 100%;
    justify-content: flex-start;
  }

  .search-bar-header .seinto-sort-select {
    width: 100%;
    max-width: 100%;
  }
}

/* Extra: <400px para evitar desbordes */
@media (max-width: 400px) {
  .search-bar-header {
    gap: 6px;
  }

  .search-bar-header .seinto-sort-wrapper {
    flex-direction: column;
    align-items: flex-start;
	margin-top: 15px;
  }

  .search-bar-header .sort-label {
    font-size: 14px;
    margin-bottom: 2px;
    white-space: normal;
  }

  .search-bar-header .seinto-sort-select {
    width: 100%;
    font-size: 14px;
    white-space: normal;
  }

  .search-bar-header .seinto-sort-select option {
    white-space: normal;
  }
}


/* Por defecto (PC): NO se ve */
.seinto-filters-toggle {
  display: none;
}

/* ====== MÓVIL: botón + panel deslizable de filtros ====== */
@media (max-width: 767px) {
  /* Botón flotante "Filtros" (se coloca donde esté el sidebar) */
  .seinto-filters-toggle {
    display: flow;              
    align-items: center;
    gap: 8px;
    padding: 15px 16px;
    border-radius: 8px;
    border: 1px solid gold;
    background: gold;
    color: #144633;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
    width: 100%;
  }
  .breadcrumb-bg {
    min-height: 20px !important;
}  
	.block-category{
	margin-bottom: 0rem;
	}
  .mb-3 {
    margin-bottom: 20px !important;
  }

  .product-card-horizontal .product-meta {
    margin-top: 0px !important;
  }

  .product-card-horizontal .vehicle-block {
    margin-top: 30px !important;
  }

  .product-card-horizontal .action-col {
    margin-top: 0px !important;
  }

  .product-card-horizontal .product-icons {
    margin: 20px 0 0 0 !important;
  }

  .seinto-filters-toggle__icon {
    font-size: 18px;
  }

  /* En móvil el sidebar no se muestra como columna fija */
  .seinto-filters-card {
    /* se oculta porque la mostramos dentro del panel */
    display: none;
  }

  body.seinto-filters-open .seinto-filters-card {
    display: block;
  }

  /* Overlay de pantalla completa */
  .seinto-filters-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: none;
    align-items: flex-end; /* panel abajo */
    justify-content: center;
    z-index: 9999;
  }

  .seinto-filters-overlay.is-open {
    display: flex;
  }

  /* Panel deslizante tipo bottom-sheet */
  .seinto-filters-panel {
    background: #ffffff;
    width: 100%;
    max-height: 90vh;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: seinto-filters-slide-up 0.25s ease-out;
  }

  @keyframes seinto-filters-slide-up {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0%);
    }
  }

  .seinto-filters-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    font-weight: 700;
    font-size: 20px;
    color: #2C2C2C;
  }

  .seinto-filters-close {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
  }

  .seinto-filters-panel__body {
    padding: 8px 16px 0;
    overflow-y: auto;
    flex: 1;
  }

  .seinto-filters-panel__footer {
    display: flex;
    gap: 8px;
    padding: 12px 16px 16px;
    border-top: 1px solid #eee;
    background: #ffffff;
  }

  .seinto-filters-btn {
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
  }

  .seinto-filters-btn--primary {
    background: gold;
    color: #144633;
    border-color: gold;
  }

  .seinto-filters-btn--ghost {
    background: #144633;
    color: gold;
    border-color: #144633;
  }

  /* Bloquear scroll del body cuando está abierto */
  body.seinto-filters-open {
    overflow: hidden;
  }
}

