.wc-vcm-wrapper {
    width: 260px;
    position: relative; /* Contenedor de referencia */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    z-index: 9999;
}

.wc-vcm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #ffffff;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    user-select: none;
    transition: all 0.2s ease;
}

.wc-vcm-header:hover {
    border-color: #bbb;
}

.wc-vcm-title {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.8px;
    color: #333;
    text-transform: uppercase;
}

.wc-vcm-toggle-icon {
    font-size: 10px;
    color: #888;
    transition: transform 0.3s ease;
    transform: rotate(180deg); /* Apunta hacia abajo inicialmente */
}

/* Cuando está abierto, la flecha sube */
.wc-vcm-wrapper.is-open .wc-vcm-toggle-icon {
    transform: rotate(0deg);
}

/* CUERPO FLOTANTE */
.wc-vcm-body {
    display: none; /* Cerrado por defecto */
    position: absolute;
    top: 105%; /* Un poco separado del botón */
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    max-height: 450px;
    overflow-y: auto;
    z-index: 10000;
}

/* Estilos de lista (igual que antes pero optimizados) */
.wc-vcm-list, .wc-vcm-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wc-vcm-item {
    border-bottom: 1px solid #f5f5f5;
}

.wc-vcm-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}

.wc-vcm-item-header:hover {
    background: #f9f9f9;
}

.wc-vcm-cat-link {
    text-decoration: none;
    color: #444;
    font-size: 14px;
    flex: 1;
}

/* Flecha más grande y visible */
.wc-vcm-arrow {
    font-size: 16px; /* Aumentado de 9px a 16px */
    color: #666;
    cursor: pointer;
    padding: 5px 10px;
    transition: transform 0.3s ease;
    font-weight: bold;
    line-height: 1;
}

/* Color de la flecha cuando está abierto */
.wc-vcm-item.sub-open > .wc-vcm-item-header .wc-vcm-arrow {
    transform: rotate(90deg);
    color: #e07b39; /* Color de énfasis al abrir */
}

/* Cursor de mano en toda la fila del padre */
.wc-vcm-item.has-children .wc-vcm-item-header {
    cursor: pointer;
}

.wc-vcm-cat-link {
    text-decoration: none;
    color: #444;
    font-size: 14px;
    flex: 1;
    user-select: none; /* Evita que se seleccione el texto al hacer muchos clics */
}

.wc-vcm-item.sub-open > .wc-vcm-item-header .wc-vcm-arrow {
    transform: rotate(90deg);
}

.wc-vcm-sublist {
    display: none;
    background: #fcfcfc;
    padding-left: 15px;
    border-top: 1px solid #eee;
}

.wc-vcm-subcat-link {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: #666;
    font-size: 13px;
}

.wc-vcm-subcat-link:hover {
    color: #000;
    background: #f0f0f0;
}