/* =========================================================
   CONTENEDOR GENERAL
   ========================================================= */
#sml-container {
  padding: 10px 0 8px 0 !important;
  background: #ffffff;
  font-family: 'Poppins', sans-serif;
}


/* =========================================================
   1. CARRUSEL DE MARCAS
   ========================================================= */
.sml-brand-carousel-wrapper {
  position: relative;
  width: 100%;
}

.sml-brand-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 8px 12px;
  scroll-snap-type: x mandatory;
  border-bottom: 1px solid #eee;
  background: #fff;
  position: relative;
}
.sml-brand-carousel::-webkit-scrollbar {
  display: none;
}

.sml-brand-item {
  padding: 10px 18px !important;
  background: #000 !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  scroll-snap-align: start !important;
  border: 1px solid #000 !important;
  color: #fff !important;
  font-size: 16px !important;
  transition: all .2s ease !important;
}

.sml-brand-item:hover {
  background: #f0f0f0;
}

.sml-brand-item.is-active {
  background: #f1a737 !important;
  border-color: #f1a737 !important;
  color: #ffffff !important;
  box-shadow: 0 3px 8px rgba(241,167,55,.4) !important;
}


/* =========================================================
   2. SERIES (Nivel 2)
   ========================================================= */
.sml-series-item {
  padding: 14px 16px;
  font-size: 17px;
  cursor: pointer;
  border-bottom: 1px solid #ededed;
  background: #fff;
  font-weight: 500;
  transition: all .2s ease;
}

.sml-series-item:hover {
  background: #fafafa;
}

.sml-series-item.is-active {
  background: #fff7eb;
  border-left: 4px solid #f1a737;
  padding-left: 12px;
  font-weight: 600;
  color: #d5861c;
}


/* =========================================================
   3. MODELOS (Nivel 3)
   ========================================================= */
#sml-models-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  padding: 4px 12px 8px 12px !important;
}

.sml-models-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.sml-model-link {
  display: block;
  padding: 12px 16px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e6e6e6;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  transition: all .2s ease;
}
.sml-model-link:hover {
  background: #fff2dd;
  border-color: #f1a737;
  color: #d5861c;
  box-shadow: 0 2px 6px rgba(241, 167, 55, 0.25);
}


/* =========================================================
   4. SPINNER LOADER
   ========================================================= */
.sml-loading-spinner {
  border: 3px solid #ffffff55;
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: sml-spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
}

@keyframes sml-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* =========================================================
   5. TEXTO "DESLIZA" + FLECHAS PNG
   ========================================================= */
#sml-swipe-hint-wrapper {
  margin-top: 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

#sml-swipe-hint {
  font-weight: 700;
  color: #f1a737;
  font-size: 16px;
  letter-spacing: 0.4px;
}

.sml-hint-arrow {
  width: 30px;
  height: auto;
  cursor: pointer;
  user-select: none;
  transition: transform .2s ease;
}

.sml-hint-arrow:hover {
  transform: scale(1.08);
}


/* =========================================================
   6. RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {

  .sml-brand-item {
    padding: 10px 14px !important;
    font-size: 15px !important;
  }

  .sml-series-item {
    font-size: 16px;
  }

  .sml-model-link {
    font-size: 15px;
  }
}
