/**
 * Carrusel de Categorías con Miniaturas - PrestaShop 8.2.8
 * Estilos CSS
 */

.category-thumb-carousel-wrapper {
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  width: 100%;
  position: relative;
}

.category-thumb-carousel-wrapper .ctc-header {
  margin-bottom: 1.75rem;
}

.category-thumb-carousel-wrapper .ctc-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #232323;
  margin-bottom: 0.35rem;
  text-transform: none;
}

.category-thumb-carousel-wrapper .ctc-subtitle {
  font-size: 0.95rem;
  color: #7a7a7a;
  margin-bottom: 0;
}

.ctc-carousel-container {
  position: relative;
  padding: 0.5rem 0.25rem 1.5rem 0.25rem;
}

.ctc-swiper {
  width: 100%;
  padding-bottom: 2rem !important;
  position: relative;
}

/* Category Item Card */
.ctc-slide {
  height: auto;
  display: flex;
  justify-content: center;
}

.ctc-item-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
  width: 100%;
  padding: 0.5rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 12px;
}

.ctc-item-link:hover {
  text-decoration: none !important;
  transform: translateY(-4px);
}

/* Image Holder */
.ctc-image-holder {
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #eaeaea;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}

.ctc-item-link:hover .ctc-image-holder {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #2fb5d2;
}

/* Shape variants */
.ctc-shape-round .ctc-image-holder {
  border-radius: 50%;
}

.ctc-shape-rounded .ctc-image-holder {
  border-radius: 16px;
}

.ctc-shape-square .ctc-image-holder {
  border-radius: 4px;
}

/* Image styles */
.ctc-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ctc-item-link:hover .ctc-thumbnail-img {
  transform: scale(1.08);
}

/* No image placeholder */
.ctc-no-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #adb5bd;
}

.ctc-no-image-placeholder .material-icons {
  font-size: 48px;
}

/* Category Content (Name & Count) */
.ctc-item-content {
  margin-top: 0.85rem;
  text-align: center;
  width: 100%;
}

.ctc-cat-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #232323;
  line-height: 1.3;
  transition: color 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ctc-item-link:hover .ctc-cat-name {
  color: #2fb5d2;
}

.ctc-cat-count {
  display: block;
  font-size: 0.8rem;
  color: #8c8c8c;
  margin-top: 0.2rem;
}

/* Navigation Buttons */
.ctc-swiper .ctc-nav-btn {
  width: 38px;
  height: 38px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
  top: 45%;
}

.ctc-swiper .ctc-nav-btn::after {
  font-size: 15px;
  font-weight: bold;
  color: #232323;
}

.ctc-swiper .ctc-nav-btn:hover {
  background-color: #2fb5d2;
  box-shadow: 0 5px 15px rgba(47, 181, 210, 0.4);
}

.ctc-swiper .ctc-nav-btn:hover::after {
  color: #ffffff;
}

.ctc-swiper .ctc-prev {
  left: 5px;
}

.ctc-swiper .ctc-next {
  right: 5px;
}

/* Swiper Pagination */
.ctc-swiper .ctc-pagination {
  bottom: 0px !important;
}

.ctc-swiper .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  background: #cbd5e1;
  opacity: 0.8;
  transition: all 0.25s ease;
}

.ctc-swiper .swiper-pagination-bullet-active {
  background: #2fb5d2;
  width: 22px;
  border-radius: 5px;
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .category-thumb-carousel-wrapper {
    margin: 1.5rem 0;
    padding: 1rem 0;
  }

  .category-thumb-carousel-wrapper .ctc-title {
    font-size: 1.35rem;
  }

  .ctc-image-holder {
    max-width: 110px;
  }

  .ctc-cat-name {
    font-size: 0.85rem;
  }

  .ctc-swiper .ctc-nav-btn {
    display: none; /* Hide arrows on mobile touch screens for cleaner UI */
  }
}
