/*  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  
--------------------------------------------------------------*/

#accesorios_vehiculos .accesorio--title {
  padding: 8px 20px 8px 10px;
  color: black;
  text-align: center; 
}

#accesorios_vehiculos .accesorio--title span {
  color: black;
  /*background-color: #31308d;*/
}

.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;
  border: 1px solid red;
}

.main-accesorios-carousel .owl-prev {
  left: -7px;
}

.main-accesorios-carousel .slick-arrow:before {
  font-size: 30px;
}

.main-accesorios-carousel .slick-next:before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23dbdbdd" d="M16.67 0l2.83 2.829-9.339 9.175 9.339 9.167-2.83 2.829-12.17-11.996z"></path></svg>');  
  transform: rotate(180deg);
  top: -8px;
}

.main-accesorios-carousel .slick-prev:before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23dbdbdd" d="M16.67 0l2.83 2.829-9.339 9.175 9.339 9.167-2.83 2.829-12.17-11.996z"></path></svg>');  
  top:4px;
}

.main-accesorios-carousel .slick-next:before, 
.main-accesorios-carousel .slick-prev:before {
  content: ' ';
  font-size: 36px;
  line-height: 1;
  opacity: 1;
  font-weight: 400;
  color: #ccc;
  position: relative;
  left: -6px;
  width: 30px;
  height: 30px;
  display: block;  
}


.main-accesorios-carousel .accesorio-modelo .accesorio-modelo--title {
  color: white;
  background-color: black;
  font-size: 0.9rem;
  min-height: 85px;
  vertical-align: middle;
  line-height:120%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* number of lines to show */
  line-clamp: 2;
  -webkit-box-orient: vertical;  
  margin-bottom:0px;
  display: flex;
  justify-content: center;
  align-items: center;  
  text-transform: uppercase;
}

/* 02. accesorio-modelo--image
--------------------------------------------------------------*/
.main-accesorios-carousel .accesorio-modelo--image,
.main-accesorios-carousel .accesorio-modelo--image  img {
  height: 9rem;
  margin: auto;
  object-fit: cover;
  margin-bottom: 1.5rem;
  width: 100%;
  border: 1px solid #6c757d !important;
}

.accesorio-modelo {
  text-align:center;
}

.main-accesorios-carousel .slick-next.slick-arrow:focus, 
.main-accesorios-carousel .slick-prev.slick-arrow:focus,
.main-accesorios-carousel button.owl-dot:focus,
.main-accesorios-carousel .slick-next.slick-arrow, 
.main-accesorios-carousel .slick-prev.slick-arrow,
.main-accesorios-carousel button.owl-dot {
  color: #fff;
  border:none;
  font-size: 0;
  font-weight: 800;
  line-height: 80%;
  overflow: hidden;
  width: 34px;
  height: 28px;
  background-image: none !important;
  background-color: transparent;  
  outline: none;
}

.main-accesorios-carousel .slick-next.slick-arrow  {
  position: absolute;
  top: 13rem;
  z-index: 9999;
  right: -10px;
}

.main-accesorios-carousel .slick-prev.slick-arrow  {
  left: -10px;
  position: absolute;
  top: 13rem;
  z-index: 9999;
}

.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: white;
  padding: 10px;
  font-size: 11px !important;
  text-decoration: none;
  cursor: pointer;
  margin: 10px auto;
  display: block;
  text-transform: uppercase;  
}

.accesorio-modelo--boton .fa-2x {
  font-size: 1.5em;
}

.accesorio-modelo--boton h4 {
  font-size: 1.3em;
}



/*  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;
  }

}


 /* the slides */
.main-accesorios-carousel .slick-slide {
    margin: 0 26px;
}

/* the parent */
.main-accesorios-carousel .slick-list {
    margin: 0 -27px;
    height: auto !important;
}

.main-accesorios-carousel .slick-list.draggable {
  padding: 1rem !important;
}

/*  Fin - Responsive */
/* - - - - - - - - - - - - - - - - - - - - - - - - */


/*  FILTROS ACCESORIOS
--------------------------------------------------------------*/

.accesorios-filtros-wrap {
    padding-top: 20px;
}

/* Barra superior - contador y boton mobile */
.accesorios-barra-superior {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.accesorios-contador {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
}

.accesorios-filtros-mobile-btn {
    display: none;
    background: #00a3e0;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.accesorios-filtros-mobile-btn:hover {
    background: #0089c0;
}

/* Tarjeta de filtros */
.accesorios-filtros-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

.accesorios-filtros-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
    gap: 8px;
}

.accesorios-filtros-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.accesorios-filtros-title i {
    color: #212529;
    margin-right: 6px;
}

.accesorios-filtros-limpiar {
    background: transparent;
    border: none;
    color: #6c757d;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.accesorios-filtros-limpiar:hover {
    color: #dc3545;
}

.accesorios-filtros-limpiar i {
    font-size: 0.8rem;
}

/* Buscador */
.accesorios-filtros-buscar {
    margin-bottom: 20px;
}

.accesorios-buscar-input-wrap {
    position: relative;
}

.accesorios-buscar-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 0.9rem;
    pointer-events: none;
}

.accesorios-buscar-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #495057;
    background: #f8f9fa;
    transition: all 0.2s;
    outline: none;
}

.accesorios-buscar-input:focus {
    border-color: #00a3e0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 163, 224, 0.15);
}

.accesorios-buscar-input::placeholder {
    color: #adb5bd;
}

/* Selector de modelo */
.accesorios-filtros-modelo {
    margin-bottom: 0;
    width: 100%;
}

.accesorios-filtros-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.accesorios-filtros-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #495057;
    background: #f8f9fa;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.accesorios-filtros-select:focus {
    border-color: #00a3e0;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 163, 224, 0.15);
}

/* Loading */
.accesorios-loading {
    text-align: center;
    padding: 60px 20px;
}

.accesorios-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top-color: #00a3e0;
    border-radius: 50%;
    animation: accesoriosSpin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes accesoriosSpin {
    to { transform: rotate(360deg); }
}

.accesorios-loading-text {
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

/* Sin resultados */
.accesorios-ningun-resultados {
    text-align: center;
    padding: 80px 20px;
}

.accesorios-ningun-resultados h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.accesorios-ningun-resultados p {
    font-size: 0.95rem;
}

/* Tarjetas de accesorios */
.accesorios-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.accesorios-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.accesorios-card-nombre {
    background: #212529;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 16px 12px;
    min-height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.3;
}

.accesorios-card-img-wrap {
    overflow: hidden;
    background: #f8f9fa;
}

.accesorios-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.accesorios-card:hover .accesorios-card-img {
    transform: scale(1.03);
}

.accesorios-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.accesorios-card-precio {
    text-align: center;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e9ecef;
}

.accesorios-precio-valor {
    font-size: 1.3rem;
    font-weight: 700;
    color: #00a3e0;
}

.accesorios-precio-consultar {
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
}

.accesorios-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.2s;
    margin-bottom: 8px;
    border: none;
}

.accesorios-btn:last-child {
    margin-bottom: 0;
}

.accesorios-btn-whatsapp {
    background: #25d366;
    color: #fff;
}

.accesorios-btn-whatsapp:hover {
    background: #1da851;
    color: #fff;
    transform: translateY(-1px);
}

.accesorios-btn-whatsapp i {
    margin-right: 6px;
}

.accesorios-btn-comprar {
    background: #212529;
    color: #fff;
}

.accesorios-btn-comprar:hover {
    background: #343a40;
    color: #fff;
    transform: translateY(-1px);
}

/* Offcanvas Mobile */
.accesorios-offcanvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    width: 320px;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
}

.accesorios-offcanvas.show {
    transform: translateX(0);
}

.accesorios-offcanvas .offcanvas-header {
    border-bottom: 1px solid #e9ecef;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.accesorios-offcanvas .offcanvas-title {
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.accesorios-offcanvas .offcanvas-title i {
    color: #212529;
    margin-right: 0;
}

.accesorios-offcanvas .btn-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f1f3f5;
    border-radius: 50%;
    font-size: 1.1rem;
    color: #495057;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.accesorios-offcanvas .btn-close:hover {
    background: #e9ecef;
}

.accesorios-offcanvas .offcanvas-body {
    padding: 20px;
}

.accesorios-offcanvas .accesorios-filtros-buscar {
    margin-bottom: 20px;
}

.accesorios-btn-buscar-mobile {
    width: 100%;
    padding: 12px;
    background: #00a3e0;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.accesorios-btn-buscar-mobile:hover {
    background: #0089c0;
}

.accesorios-btn-buscar-mobile i {
    margin-right: 6px;
}

.accesorios-btn-aplicar-mobile {
    width: 100%;
    padding: 12px;
    background: #212529;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 10px;
}

.accesorios-btn-aplicar-mobile:hover {
    background: #343a40;
}

.accesorios-offcanvas .accesorios-filtros-modelo {
    margin-bottom: 24px;
}

.accesorios-offcanvas-actions {
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.accesorios-offcanvas-actions .accesorios-filtros-limpiar {
    width: 100%;
    justify-content: center;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
}

.accesorios-offcanvas-actions .accesorios-filtros-limpiar:hover {
    background: #f8f9fa;
    border-color: #dc3545;
}

/* Responsive */
/* Sidebar desktop: visible only lg+ */
.accesorios-sidebar-filtros {
    display: block;
}

/* Mobile button: hidden by default, visible only below lg */
.accesorios-filtros-mobile-btn {
    display: none !important;
}

@media (max-width: 991.98px) {
    .accesorios-sidebar-filtros {
        display: none !important;
    }

    .accesorios-filtros-mobile-btn {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
    }
}

/* Offcanvas backdrop */
.offcanvas-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
}

#accesoriosOffcanvas.show {
    visibility: visible;
}

@media (max-width: 767.98px) {
    .accesorios-card-img {
        height: 180px;
    }

    .accesorios-card-nombre {
        min-height: 60px;
        font-size: 0.8rem;
        padding: 12px 10px;
    }

    .accesorios-ningun-resultados {
        padding: 50px 15px;
    }
}
