/* SANTI20052026 - Mejoras de categoría: descripción plegable y carrusel de subcategorías */

/* Descripción superior de categoría */
.am-category-description-content {
    line-height: 1.45;
}

.am-category-description-inline-toggle {
    display: inline;
    padding: 0 0 0 4px;
    border: 0;
    background: transparent;
    color: #F5A623;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font: inherit;
    line-height: inherit;
    vertical-align: baseline;
}

/* Carrusel de subcategorías */
.am-subcategories-carousel-wrapper {
    margin: 16px 0 24px;
    overflow: hidden;
}

.am-subcategories-carousel {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

.am-subcategories-carousel::-webkit-scrollbar {
    height: 5px;
}

.am-subcategories-carousel::-webkit-scrollbar-thumb {
    background: #d7d7d7;
    border-radius: 10px;
}

.am-subcategory-card {
    flex: 0 0 136px;
    scroll-snap-align: start;
}

.am-subcategory-link {
    display: block;
    color: #222;
    text-decoration: none;
}

.am-subcategory-image-wrapper {
    width: 136px;
    height: 170px;
    background: #f5f5f5;
    overflow: hidden;
}

.am-subcategory-image {
    display: block;
    width: 136px;
    height: 170px;
    object-fit: cover;
}

.am-subcategory-title {
    display: block;
    margin-top: 8px;
    padding-right: 8px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.25;
    color: #333;
    white-space: normal;
}

.am-subcategory-link:hover .am-subcategory-title {
    color: #F5A623;
}

@media (max-width: 767px) {
    .am-category-desc-card h1,
    .am-category-desc-card .h1 {
        font-size: 20.5px;
        line-height: 1.25;
    }

    .am-category-description-content,
    .am-category-description-content p,
    .am-category-description-content div,
    .am-category-description-content span,
    .am-category-description-inline-toggle {
        font-size: 13px;
    }

    .am-subcategories-carousel-wrapper {
        margin: 14px 0 20px;
    }

    .am-subcategories-carousel {
        gap: 4px;
        padding-bottom: 6px;
    }

    .am-subcategory-card {
        flex: 0 0 136px;
    }

    .am-subcategory-title {
        font-size: 13px;
        line-height: 1.25;
    }
}

/* FIN SANTI20052026 - Mejoras de categoría: descripción plegable y carrusel de subcategorías */
