/* ============================================================
   WIDGET 1: BOTONES (HAZT-CATEGORIES-LIST)
   ============================================================ */

.hazt-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap; 
    width: 100%;
}

/* ORIENTACIÓN */
.hazt-layout-horizontal {
    flex-direction: row;
}

.hazt-layout-vertical {
    flex-direction: column;
}

.hazt-layout-vertical .hazt-cat-item {
    width: 100%;
}

.hazt-layout-vertical .hazt-cat-item a {
    display: flex;
    width: 100%;
}

/* ESTILO DE BOTÓN (ESTRUCTURAL) */
.hazt-cat-item a {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    border-style: solid; 
}

.hazt-cat-item a:hover {
    transform: translateY(-1px);
}

/* Contador */
.hazt-cat-count {
    font-size: 0.8em;
    opacity: 0.8;
    margin-left: 10px;
    pointer-events: none;
}

/* ============================================================
   WIDGET 2: CARRUSEL (HAZT-CAROUSEL)
   ============================================================ */

/* Contenedor externo para evitar cortes en el hover */
.hazt-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 10px 0; /* Espacio extra para que el efecto "scale" no se corte */
}

.hazt-carousel-container {
    width: 100%;
}

/* Cada item del carrusel */
.hazt-carousel-item a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Imagen de la categoría */
.hazt-carousel-img {
    width: 120px; /* Tamaño base */
    height: 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 15px;
    background-color: #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

/* Efecto Hover en la imagen */
.hazt-carousel-item:hover .hazt-carousel-img {
    transform: scale(1.08); /* Crece un poco más */
}

/* Título debajo de la imagen */
.hazt-carousel-title {
    font-weight: 700;
    text-align: center;
    color: #000;
    margin-top: 5px;
    line-height: 1.2;
}

/* Ajuste para que Swiper funcione correctamente */
.swiper-slide {
    height: auto; /* Permite que el slide se ajuste al contenido */
}