.cd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

/* Bloque de categoría */
.cd-item {
    flex: 0 0 calc(25% - 15px);
    background: #fff;
    transition: transform 0.3s ease;
    border: 0.5px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.cd-item:hover {
    transform: translateY(-5px);
}

/* Estructura del contenido */
.cd-content {
    display: flex;
    flex-direction: column;
}

.cd-category-name {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    padding: 10px;
    border-bottom: 0px solid #ccc;
    text-align: left;
}

.cd-body {
    display: flex;
    flex-direction: row;
    padding: 10px;
    gap: 10px;
}

.cd-image-column {
    flex: 0 0 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cd-image-wrapper {
    width: 100px;
    height: 100px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cd-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cd-text-column {
    flex: 1;
}

.cd-subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cd-subcategory-list li {
    font-size: 14px;
    margin-bottom: 5px;
}

.cd-subcategory-list li a {
    color: #ad0000;
    text-decoration: none;
}

.cd-subcategory-list li a:hover {
    text-decoration: underline;
}

/* Responsive: Slider en móviles */
@media (max-width: 768px) {
    .cd-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .cd-item {
        flex: 0 0 90%;
        min-width: 90%;
        scroll-snap-align: start;
    }

    .cd-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cd-image-column {
        margin-bottom: 10px;
    }

    .cd-subcategory-list li {
        font-size: 13px;
    }

    .cd-category-name {
        font-size: 16px;
    }
}
