/*  ACCESORIOS   */
/*!
 * Base Bootstrap
 * Componente Nombre: ACCESORIOS VEHICULOS
 * Autor: DIVIT
 * Copyright: DIVIT
 */

/*  ACCESORIOS - INDICE  */

/*  00. general - #accesorios_vehiculos                       */
/*  01. accesorios-modelo--title                              */
/*  02. accesorios-modelo--image                              */
/*  03. accesorios-modelo--boton                              */
/*                                                            */
/*  30. RESPONSIVE                                            */


/* 00. general
--------------------------------------------------------------*/
.main-accesorios-carousel .owl-dots {
  text-align: center;
}

.main-accesorios-carousel button.owl-dot {
  display: inline-flex;
  border: 7px solid #00000057 !important;
  margin: 10px;
  border-radius: 50px;
}

.main-accesorios-carousel button.owl-dot.active:focus {
  outline: none;
}

.main-accesorios-carousel button.owl-dot.active {
  border: 9px solid black !important;
  text-decoration: none;
  border-radius: 50px;
}

.main-accesorios-carousel .owl-item {
  padding: 25px 20px;
}

.owl-theme .owl-controls .owl-buttons div {
  color: white;
  background-color: #FE1430;
  opacity: 0.5;
  height: 25px;
  border-radius: 0;
}


.main-accesorios-carousel .owl-dots.disabled,
.main-accesorios-carousel .owl-nav.disabled {
  display: block !important;
}

.main-accesorios-carousel .owl-next {
  right: -20px;
}

.main-accesorios-carousel .owl-prev {
  left: -20px;
}

.main-accesorios-carousel .owl-next,
.main-accesorios-carousel .owl-prev {
  position: absolute;
  top: 50%;
  cursor: pointer;
  width: 25px;
  height: 25px;
  z-index: 10;
}

.main-accesorios-carousel .owl-next {
  right: 0;
}

.main-accesorios-carousel .owl-prev {
  left: -7px;
}

/*
.main-accesorios-carousel .slick-arrow:before {
  font-size: 30px;
}
.main-accesorios-carousel .slick-next:before {
  content: '>';
}

.main-accesorios-carousel .slick-prev:before {
  content: '<';
}
*/

.main-accesorios-carousel .slick-next:before,
.main-accesorios-carousel .slick-prev:before {
  font-size: 24px;
  line-height: 1;
  opacity: 1;
  font-weight: bold;
  color: #fff;
  position: relative;
  top: -4px;
  left: -6px;
}

.main-accesorios-carousel .slick-prev,
.main-accesorios-carousel .slick-next {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='60' version='1.1'%3E%3Cpolyline points='30 10 10 30 30 50' stroke='rgba(0,0,0,1)' stroke-width='4' stroke-linecap='butt' fill='none' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  height: 20px !important;
  width: 15px !important;
  background-color: transparent;
  background-size: 100% 100%;
}

.main-accesorios-carousel .slick-next {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='60' version='1.1'%3E%3Cpolyline points='10 10 30 30 10 50' stroke='rgba(0,0,0,1)' stroke-width='4' stroke-linecap='butt' fill='none' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

.accesorio-modelo {
  background-color: #ffffff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  height: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

/* 01. accesorios-modelo--title
--------------------------------------------------------------*/
#accesorios_vehiculos .accesorio--title {
  padding: 8px 20px 8px 10px;
  color: black;
  text-align: center;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 1.6rem;
}

#accesorios_vehiculos .accesorio--title span {
  color: black;
}

.main-accesorios-carousel .accesorio-modelo .accesorio-modelo--title {
  color: var(--color-primary);
  font-size: 16px !important;
  /*min-height: 39px;*/
  line-height: 120%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  /* number of lines to show */
  line-clamp: 1;
  -webkit-box-orient: vertical;
  margin: 1.5em 0;
  text-transform: uppercase;
}


/* 02. accesorio-modelo--image
--------------------------------------------------------------*/
.main-accesorios-carousel .accesorio-modelo--image,
.main-accesorios-carousel .accesorio-modelo--image img {
  height: 12rem;
  object-fit: cover;
  width: 100%;
}



.accesorio-modelo {
  text-align: center;
}

.main-accesorios-carousel .slick-next.slick-arrow,
.main-accesorios-carousel .slick-prev.slick-arrow,
.main-accesorios-carousel button.owl-dot {
  color: #fff;
  font-size: 0;
  font-weight: 800;
  line-height: 80%;
  overflow: hidden;
  width: 34px;
  height: 28px;
  border: none;
  position: absolute;
  top: 45%;
  z-index: 9999;
  outline: none;
}

.main-accesorios-carousel .slick-next.slick-arrow:focus,
.main-accesorios-carousel .slick-prev.slick-arrow:focus {
  border: none !important;
  border-color: transparent !important;
}

.main-accesorios-carousel .slick-next.slick-arrow {
  right: -30px;
}

.main-accesorios-carousel .slick-prev.slick-arrow {
  left: -30px;
}


.main-accesorios-carousel.no-carousel {
  justify-content: center !important;
  display: flex !important;
}

.main-accesorios-carousel.no-carousel .owl-nav.disabled {
  display: none !important;
}


/* 03 .accesorio-modelo--boton
--------------------------------------------------------------*/
.accesorio-modelo--boton a {
  color: black;
  padding: 3px 12px;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  margin: 10px auto;
  display: inline-block;
  justify-content: center;
}

.accesorio-modelo--boton a span span {
  font-size: .8em;
}

.accesorio-modelo--boton .fa-2x {
  font-size: 1.3em;
  position: relative;
  top: 2px;
}



/*  RESPONSIVE */
/* - - - - - - - - - - - - - - - - - - - - - - - - */

/* MOBILE */
@media (max-width: 768px) {
  #accesorios_vehiculos .accesorio--title {
    background-position-x: -120px;
    text-align: center !important;
    padding: 5% 10%
  }

  .main-accesorios-carousel.no-carousel .owl-nav.disabled {
    display: block !important;
  }

  .main-accesorios-carousel .owl-next {
    right: 10px !important;
  }

  .main-accesorios-carousel .owl-prev {
    left: 5px !important;
  }

  .accesorio-modelo--boton a {
    width: 80%;
    margin: 0px auto !important;
  }

  .accesorio-modelo--boton a:first-child {
    margin: 0px auto 10px !important;
  }

  .main-accesorios-carousel .accesorio-modelo--title {
    margin-bottom: 15px !important;
  }

  .main-accesorios-carousel .slick-slide {
    margin: 0 2em !important;
  }

  .main-accesorios-carousel .slick-next.slick-arrow {
    right: 0px;
  }

  .main-accesorios-carousel .slick-prev.slick-arrow {
    left: 0px;
  }
}

/* the slides */
.main-accesorios-carousel .slick-slide {
  margin: 0 8px;
}

/* the parent */
.main-accesorios-carousel .slick-list {
  /* margin: 0 -27px; */
  margin: auto;
  height: auto !important;
}

.main-accesorios-carousel .slick-list.draggable {
  padding: 1rem 0rem !important;
  margin-top: 2rem;
}

/*  Fin - Responsive */
/* - - - - - - - - - - - - - - - - - - - - - - - - */


/*  40. FILTROS ACCESORIOS
--------------------------------------------------------------*/

/* Sidebar Filtros */
.accesorios-filtros-sidebar {
  position: sticky;
  top: 0px;
}

.accesorios-filtros-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 24px;
  border: 1px solid #f0f0f0;
}

.accesorios-filtros-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.accesorios-filtros-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.accesorios-filtros-title i {
  color: var(--color-primary);
  margin-right: 8px;
}

.accesorios-filtros-limpiar {
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.accesorios-filtros-limpiar:hover {
  background: rgba(242, 29, 29, 0.08);
}

.accesorios-filtros-limpiar i {
  font-size: 0.8rem;
}

/* Búsqueda */
.accesorios-filtros-busqueda {
  margin-bottom: 20px;
}

.accesorios-filtros-input-group {
  position: relative;
}

.accesorios-filtros-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 0.9rem;
  pointer-events: none;
}

.accesorios-filtros-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #333;
  background: #fafafa;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.accesorios-filtros-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(242, 29, 29, 0.1);
}

.accesorios-filtros-input::placeholder {
  color: #aaa;
}

/* Selector Modelo */
.accesorios-filtros-modelo {
  margin-bottom: 0;
}

.accesorios-filtros-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.accesorios-filtros-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #333;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.accesorios-filtros-select:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(242, 29, 29, 0.1);
}

/* Contador de resultados */
.accesorios-contador {
  margin-bottom: 20px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border-radius: 10px;
  border-left: 4px solid var(--color-primary);
}

#accesorios-contador-texto {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
}

/* Loading State */
.accesorios-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.accesorios-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #f0f0f0;
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: accesorios-spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes accesorios-spin {
  to {
    transform: rotate(360deg);
  }
}

.accesorios-loading-text {
  font-size: 0.95rem;
  color: #666;
  font-weight: 500;
}

/* Listado */
.accesorios-listado {
  min-height: 200px;
  transition: opacity 0.2s ease;
}

.accesorios-listado.loading {
  opacity: 0.5;
  pointer-events: none;
}

.accesorios-item {
  transition: all 0.3s ease;
}

.accesorios-item.hidden {
  display: none !important;
}

/* Sin resultados */
.accesorios-ningun-resultados {
  text-align: center;
  padding: 60px 20px;
  background: #f8f9fa;
  border-radius: 16px;
  margin-top: 20px;
}

.accesorios-ningun-resultados h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 8px;
}

.accesorios-ningun-resultados p {
  font-size: 0.95rem;
  color: #666;
}

/* Responsive */
@media (max-width: 991px) {
  .accesorios-filtros-sidebar {
    position: static;
    margin-bottom: 30px;
  }

  .accesorios-filtros-card {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px;
  }

  .accesorios-filtros-header {
    width: 100%;
    margin-bottom: 8px;
    padding-bottom: 12px;
  }

  .accesorios-filtros-busqueda {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
  }

  .accesorios-filtros-modelo {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
  }
}

@media (max-width: 575px) {
  .accesorios-filtros-card {
    flex-direction: column;
  }

  .accesorios-filtros-busqueda,
  .accesorios-filtros-modelo {
    width: 100%;
  }
}